2023-01-27 14:08:30 +00:00
|
|
|
import ShareGoogleReactSvgUrl from "PUBLIC_DIR/images/share.google.react.svg?url";
|
|
|
|
import ShareFacebookReactSvgUrl from "PUBLIC_DIR/images/share.facebook.react.svg?url";
|
|
|
|
import ShareTwitterReactSvgUrl from "PUBLIC_DIR/images/share.twitter.react.svg?url";
|
|
|
|
import ShareLinkedinReactSvgUrl from "PUBLIC_DIR/images/share.linkedin.react.svg?url";
|
2023-01-11 15:08:01 +00:00
|
|
|
|
2022-08-05 14:21:14 +00:00
|
|
|
export const LANGUAGE = "asc_language";
|
2022-08-30 14:50:54 +00:00
|
|
|
export const COOKIE_EXPIRATION_YEAR = 31536000000;
|
2020-08-14 19:14:42 +00:00
|
|
|
export const ARTICLE_PINNED_KEY = "asc_article_pinned_key";
|
2022-03-03 11:25:10 +00:00
|
|
|
|
2019-11-12 11:55:22 +00:00
|
|
|
/**
|
|
|
|
* Enum for employee activation status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeActivationStatus = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
NotActivated: 0,
|
|
|
|
Activated: 1,
|
|
|
|
Pending: 2,
|
|
|
|
AutoGenerated: 4,
|
2019-11-12 11:55:22 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for employee status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeStatus = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Active: 1,
|
|
|
|
Disabled: 2,
|
2019-11-12 11:55:22 +00:00
|
|
|
});
|
2019-11-19 11:10:56 +00:00
|
|
|
/**
|
|
|
|
* Enum for employee type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
User: 1,
|
|
|
|
Guest: 2,
|
2022-10-27 06:35:44 +00:00
|
|
|
Admin: 3,
|
2022-10-13 14:46:38 +00:00
|
|
|
UserString: "user",
|
|
|
|
RoomAdmin: "manager",
|
|
|
|
DocSpaceAdmin: "admin",
|
|
|
|
Owner: "Owner",
|
2020-03-03 06:30:27 +00:00
|
|
|
});
|
2022-11-30 09:24:12 +00:00
|
|
|
/**
|
|
|
|
* Enum for user payments type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const PaymentsType = Object.freeze({
|
2022-11-30 12:47:11 +00:00
|
|
|
Paid: "0",
|
|
|
|
Free: "1",
|
2022-11-30 09:24:12 +00:00
|
|
|
});
|
2022-11-30 14:15:02 +00:00
|
|
|
/**
|
|
|
|
* Enum for filter subject.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FilterSubject = Object.freeze({
|
|
|
|
Owner: "0",
|
|
|
|
Member: "1",
|
|
|
|
});
|
2020-03-03 06:30:27 +00:00
|
|
|
/**
|
|
|
|
* Enum for filter type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FilterType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
FilesOnly: 1,
|
|
|
|
FoldersOnly: 2,
|
|
|
|
DocumentsOnly: 3,
|
|
|
|
PresentationsOnly: 4,
|
|
|
|
SpreadsheetsOnly: 5,
|
|
|
|
ImagesOnly: 7,
|
|
|
|
ByUser: 8,
|
|
|
|
ByDepartment: 9,
|
|
|
|
ArchiveOnly: 10,
|
|
|
|
ByExtension: 11,
|
|
|
|
MediaOnly: 12,
|
2022-09-15 08:38:59 +00:00
|
|
|
OFormTemplateOnly: 18,
|
|
|
|
OFormOnly: 19,
|
2020-03-03 06:30:27 +00:00
|
|
|
});
|
2022-11-16 15:31:14 +00:00
|
|
|
|
2020-03-03 06:30:27 +00:00
|
|
|
/**
|
|
|
|
* Enum for file type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Unknown: 0,
|
|
|
|
Archive: 1,
|
|
|
|
Video: 2,
|
|
|
|
Audio: 3,
|
|
|
|
Image: 4,
|
|
|
|
Spreadsheet: 5,
|
|
|
|
Presentation: 6,
|
|
|
|
Document: 7,
|
2022-09-15 08:38:59 +00:00
|
|
|
OFormTemplate: 8,
|
|
|
|
OForm: 9,
|
2020-03-18 08:39:43 +00:00
|
|
|
});
|
2022-06-23 00:21:40 +00:00
|
|
|
/**
|
2022-06-28 14:36:42 +00:00
|
|
|
* Enum for room type.
|
2022-06-23 00:21:40 +00:00
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const RoomsType = Object.freeze({
|
|
|
|
FillingFormsRoom: 1,
|
|
|
|
EditingRoom: 2,
|
|
|
|
ReviewRoom: 3,
|
|
|
|
ReadOnlyRoom: 4,
|
|
|
|
CustomRoom: 5,
|
|
|
|
});
|
2022-08-24 16:38:03 +00:00
|
|
|
|
|
|
|
export const RoomsTypeTranslations = Object.freeze({
|
|
|
|
1: "Files:FillingFormRooms",
|
|
|
|
2: "Files:CollaborationRooms",
|
2022-11-28 16:41:21 +00:00
|
|
|
3: "Common:Review",
|
2022-08-24 16:38:03 +00:00
|
|
|
4: "Files:ViewOnlyRooms",
|
|
|
|
5: "Files:CustomRooms",
|
|
|
|
});
|
2022-10-05 11:52:02 +00:00
|
|
|
/**
|
|
|
|
* Enum for room provider type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const RoomsProviderType = Object.freeze({
|
|
|
|
Box: 1,
|
|
|
|
DropBox: 2,
|
|
|
|
GoogleDrive: 3,
|
|
|
|
kDrive: 4,
|
|
|
|
OneDrive: 5,
|
|
|
|
SharePoint: 6,
|
|
|
|
WebDav: 7,
|
|
|
|
Yandex: 8,
|
|
|
|
});
|
2022-08-24 16:38:03 +00:00
|
|
|
|
2022-10-13 08:55:54 +00:00
|
|
|
export const RoomsProviderTypeName = Object.freeze({
|
|
|
|
1: "Box",
|
|
|
|
2: "DropBox",
|
|
|
|
3: "Google Drive",
|
|
|
|
4: "kDrive",
|
|
|
|
5: "OneDrive",
|
|
|
|
6: "SharePoint",
|
|
|
|
7: "WebDav",
|
|
|
|
8: "Yandex",
|
|
|
|
});
|
|
|
|
|
2022-06-28 14:36:42 +00:00
|
|
|
/**
|
|
|
|
* Enum for room search area.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const RoomSearchArea = Object.freeze({
|
|
|
|
Any: "Any",
|
|
|
|
Active: "Active",
|
|
|
|
Archive: "Archive",
|
|
|
|
});
|
2020-03-18 08:39:43 +00:00
|
|
|
/**
|
|
|
|
* Enum for file action.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileAction = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Create: 0,
|
|
|
|
Rename: 1,
|
2020-03-23 10:47:28 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for root folders type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FolderType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
DEFAULT: 0,
|
|
|
|
COMMON: 1,
|
|
|
|
BUNCH: 2,
|
|
|
|
TRASH: 3,
|
|
|
|
USER: 5,
|
|
|
|
SHARE: 6,
|
|
|
|
Projects: 8,
|
|
|
|
Favorites: 10,
|
|
|
|
Recent: 11,
|
|
|
|
Templates: 12,
|
|
|
|
Privacy: 13,
|
2022-06-22 08:47:42 +00:00
|
|
|
Rooms: 14,
|
|
|
|
Archive: 20,
|
2020-04-07 08:10:32 +00:00
|
|
|
});
|
2022-11-14 10:04:50 +00:00
|
|
|
|
|
|
|
// extends FolderType keys
|
|
|
|
export const FolderNames = Object.freeze({
|
|
|
|
0: "default",
|
|
|
|
1: "common",
|
|
|
|
2: "bunch",
|
|
|
|
3: "trash",
|
|
|
|
5: "personal",
|
|
|
|
6: "share",
|
|
|
|
8: "projects",
|
|
|
|
10: "favorites",
|
|
|
|
11: "recent",
|
|
|
|
12: "templates",
|
|
|
|
13: "privacy",
|
|
|
|
14: "shared",
|
|
|
|
20: "archive",
|
|
|
|
});
|
|
|
|
|
2020-04-07 08:10:32 +00:00
|
|
|
export const ShareAccessRights = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
FullAccess: 1,
|
|
|
|
ReadOnly: 2,
|
|
|
|
DenyAccess: 3,
|
|
|
|
Varies: 4,
|
|
|
|
Review: 5,
|
|
|
|
Comment: 6,
|
|
|
|
FormFilling: 7,
|
|
|
|
CustomFilter: 8,
|
2022-09-22 15:10:44 +00:00
|
|
|
RoomManager: 9,
|
|
|
|
Editing: 10,
|
2020-08-14 19:14:42 +00:00
|
|
|
});
|
2021-04-16 13:04:50 +00:00
|
|
|
export const ConflictResolveType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Skip: 0,
|
|
|
|
Overwrite: 1,
|
|
|
|
Duplicate: 2,
|
2021-04-16 13:04:50 +00:00
|
|
|
});
|
2021-04-12 07:57:21 +00:00
|
|
|
export const providersData = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
google: {
|
|
|
|
label: "google",
|
2023-01-11 15:08:01 +00:00
|
|
|
icon: ShareGoogleReactSvgUrl,
|
2022-03-03 10:43:43 +00:00
|
|
|
},
|
|
|
|
facebook: {
|
|
|
|
label: "facebook",
|
2023-01-11 15:08:01 +00:00
|
|
|
icon: ShareFacebookReactSvgUrl,
|
2022-03-03 10:43:43 +00:00
|
|
|
},
|
|
|
|
twitter: {
|
|
|
|
label: "twitter",
|
2023-01-11 15:08:01 +00:00
|
|
|
icon: ShareTwitterReactSvgUrl,
|
2022-03-03 10:43:43 +00:00
|
|
|
iconOptions: { color: "#2AA3EF" },
|
|
|
|
},
|
|
|
|
linkedin: {
|
|
|
|
label: "linkedin",
|
2023-01-11 15:08:01 +00:00
|
|
|
icon: ShareLinkedinReactSvgUrl,
|
2022-03-03 10:43:43 +00:00
|
|
|
},
|
2021-04-22 13:13:02 +00:00
|
|
|
});
|
2020-11-03 12:54:21 +00:00
|
|
|
export const LoaderStyle = {
|
2022-03-03 10:43:43 +00:00
|
|
|
title: "",
|
|
|
|
width: "100%",
|
|
|
|
height: "32",
|
|
|
|
backgroundColor: "#000000",
|
|
|
|
foregroundColor: "#000000",
|
|
|
|
backgroundOpacity: 0.1,
|
|
|
|
foregroundOpacity: 0.15,
|
|
|
|
borderRadius: "3",
|
|
|
|
radius: "3",
|
|
|
|
speed: 2,
|
|
|
|
animate: true,
|
2020-11-03 12:54:21 +00:00
|
|
|
};
|
2021-03-21 21:34:21 +00:00
|
|
|
|
2022-03-04 13:12:06 +00:00
|
|
|
/**
|
|
|
|
* Enum for third-party storages.
|
|
|
|
* @readonly
|
|
|
|
*/
|
2021-09-28 15:10:11 +00:00
|
|
|
export const ThirdPartyStorages = Object.freeze({
|
2021-10-05 16:20:21 +00:00
|
|
|
GoogleId: "googlecloud",
|
|
|
|
RackspaceId: "rackspace",
|
|
|
|
SelectelId: "selectel",
|
|
|
|
AmazonId: "s3",
|
2021-09-28 15:10:11 +00:00
|
|
|
});
|
2022-03-04 13:12:06 +00:00
|
|
|
/**
|
|
|
|
* Enum for backup types.
|
|
|
|
* @readonly
|
|
|
|
*/
|
2022-03-21 09:06:10 +00:00
|
|
|
export const BackupStorageType = Object.freeze({
|
2022-03-04 13:12:06 +00:00
|
|
|
DocumentModuleType: 0,
|
|
|
|
ResourcesModuleType: 1,
|
2022-03-04 14:00:04 +00:00
|
|
|
LocalFileModuleType: 3,
|
|
|
|
TemporaryModuleType: 4,
|
2022-03-04 13:12:06 +00:00
|
|
|
StorageModuleType: 5,
|
2022-03-21 09:06:10 +00:00
|
|
|
});
|
2022-03-04 13:12:06 +00:00
|
|
|
|
2022-03-21 09:06:10 +00:00
|
|
|
export const AutoBackupPeriod = Object.freeze({
|
2022-03-04 13:12:06 +00:00
|
|
|
EveryDayType: 0,
|
|
|
|
EveryWeekType: 1,
|
|
|
|
EveryMonthType: 2,
|
|
|
|
});
|
2021-09-28 15:10:11 +00:00
|
|
|
|
2021-05-04 12:35:09 +00:00
|
|
|
/**
|
|
|
|
* Enum for Tenant trusted domains on registration.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const TenantTrustedDomainsType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
Custom: 1,
|
|
|
|
All: 2,
|
2021-05-04 12:35:09 +00:00
|
|
|
});
|
2022-03-03 10:59:20 +00:00
|
|
|
export const PasswordLimitSpecialCharacters = "!@#$%^&*";
|
2022-02-10 16:49:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for file status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileStatus = Object.freeze({
|
|
|
|
None: 0,
|
|
|
|
IsEditing: 1,
|
|
|
|
IsNew: 2,
|
|
|
|
IsConverting: 4,
|
|
|
|
IsOriginal: 8,
|
|
|
|
IsEditingAlone: 16,
|
|
|
|
IsFavorite: 32,
|
|
|
|
IsTemplate: 64,
|
|
|
|
IsFillFormDraft: 128,
|
|
|
|
});
|
2022-02-25 13:05:43 +00:00
|
|
|
|
2022-02-18 07:01:55 +00:00
|
|
|
/**
|
|
|
|
* Enum for tenant status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const TenantStatus = Object.freeze({
|
|
|
|
PortalRestore: 4,
|
|
|
|
});
|
2022-04-21 07:17:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for theme keys.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const ThemeKeys = Object.freeze({
|
|
|
|
Base: "0",
|
|
|
|
BaseStr: "Base",
|
|
|
|
Dark: "1",
|
|
|
|
DarkStr: "Dark",
|
|
|
|
System: "2",
|
|
|
|
SystemStr: "System",
|
|
|
|
});
|
2022-09-15 10:24:18 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for global events.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const Events = Object.freeze({
|
|
|
|
CREATE: "create",
|
|
|
|
RENAME: "rename",
|
|
|
|
ROOM_CREATE: "create_room",
|
|
|
|
ROOM_EDIT: "edit_room",
|
|
|
|
CHANGE_COLUMN: "change_column",
|
2022-12-26 18:15:22 +00:00
|
|
|
CHANGE_USER_TYPE: "change_user_type",
|
2022-09-15 10:24:18 +00:00
|
|
|
});
|
2022-09-19 15:16:34 +00:00
|
|
|
|
2022-09-26 07:35:58 +00:00
|
|
|
/**
|
2022-10-01 23:44:29 +00:00
|
|
|
* Enum for feed action types.
|
2022-09-26 07:35:58 +00:00
|
|
|
* @readonly
|
|
|
|
*/
|
2022-10-01 23:44:29 +00:00
|
|
|
export const FeedActionTypes = Object.freeze({
|
|
|
|
Create: 0,
|
|
|
|
Update: 1,
|
|
|
|
Rename: 2,
|
|
|
|
Move: 3,
|
|
|
|
Delete: 4,
|
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for feed item types.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FeedItemTypes = Object.freeze({
|
|
|
|
File: "file",
|
|
|
|
Folder: "folder",
|
|
|
|
Room: "room",
|
2022-12-12 12:38:15 +00:00
|
|
|
Tag: "tag",
|
2022-10-01 23:44:29 +00:00
|
|
|
User: "sharedRoom",
|
2022-09-26 07:35:58 +00:00
|
|
|
});
|
2022-10-11 07:20:42 +00:00
|
|
|
|
2022-08-24 07:25:08 +00:00
|
|
|
/**
|
|
|
|
* Enum for theme keys.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const TariffState = Object.freeze({
|
|
|
|
Trial: 0,
|
|
|
|
Paid: 1,
|
|
|
|
Delay: 2,
|
|
|
|
NotPaid: 3,
|
|
|
|
});
|
2022-09-14 06:55:22 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for theme keys.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const PortalFeaturesLimitations = Object.freeze({
|
|
|
|
Limitless: -1,
|
|
|
|
Unavailable: 0,
|
|
|
|
});
|
2022-10-20 15:47:02 +00:00
|
|
|
|
|
|
|
export const EDITOR_ID = "docspace_editor";
|