DocSpace-buildtools/web/ASC.Web.Common/src/constants/index.js

56 lines
938 B
JavaScript
Raw Normal View History

export const AUTH_KEY = 'asc_auth_key';
/**
* Enum for employee activation status.
* @readonly
*/
export const EmployeeActivationStatus = Object.freeze({
NotActivated: 0,
Activated: 1,
Pending: 2,
AutoGenerated: 4
});
/**
* Enum for type of confirm link.
* @readonly
*/
export const ConfirmType = Object.freeze({
EmpInvite: 0,
LinkInvite: 1,
PortalSuspend: 2,
PortalContinue: 3,
PortalRemove: 4,
DnsChange: 5,
PortalOwnerChange: 6,
Activation: 7,
EmailChange: 8,
EmailActivation: 9,
PasswordChange: 10,
ProfileRemove: 11,
PhoneActivation: 12,
PhoneAuth: 13,
Auth: 14,
TfaActivation: 15,
TfaAuth: 16
});
/**
* Enum for result of validation confirm link.
* @readonly
*/
export const ValidationResult = Object.freeze({
Ok: 0,
Invalid: 1,
Expired: 2
});
/**
* Enum for employee status.
* @readonly
*/
export const EmployeeStatus = Object.freeze({
Active: 1,
Disabled: 2
});