@e-mc/types 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
- Copyright 2024 An Pham
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
1
+ Copyright 2024 An Pham
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
7
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @e-mc/types
2
-
3
- ## LICENSE
4
-
1
+ # @e-mc/types
2
+
3
+ ## LICENSE
4
+
5
5
  MIT
package/constant.d.ts CHANGED
@@ -1,270 +1,270 @@
1
- export const enum INTERNAL {
2
- VERSION = '0.7.8',
3
- TEMP_DIR = 'tmp',
4
- CJS = '__cjs__'
5
- }
6
-
7
- export const enum VAL_MESSAGE {
8
- SUCCESS = 'Success',
9
- MODIFIED_DIRECTORY = 'Directory was modified',
10
- COMMIT_TRANSACTION = 'Transactions were committed'
11
- }
12
-
13
- export const enum VAL_DB {
14
- EXEC_QUERYUNASSIGNED = 'Execute unassigned queries'
15
- }
16
-
17
- export const enum VAL_CLOUD {
18
- UPLOAD_FILE = 'Upload success',
19
- DOWNLOAD_FILE = 'Download success',
20
- DELETE_FILE = 'Delete success',
21
- RENAME_FILE = 'File renamed',
22
- CREATE_TAG = 'Tags created',
23
- DELETE_TAG = 'Tags deleted',
24
- PUBLIC_READ = 'Grant public-read',
25
- CREATE_BUCKET = 'Bucket created',
26
- DELETE_BUCKET = 'Bucket deleted',
27
- EMPTY_BUCKET = 'Bucket emptied',
28
- CONFIGURE_BUCKET = 'Bucket configured',
29
- POLICY_BUCKET = 'Bucket policy configured',
30
- ACL_BUCKET = 'Bucket ACL configured'
31
- }
32
-
33
- export const enum ERR_MESSAGE {
34
- UNKNOWN = 'Unknown',
35
- FAIL = 'FAIL!',
36
- WARN = 'WARN!',
37
- ABORTED = 'Aborted',
38
- ABORTED_OPERATION = 'The operation was aborted',
39
- FAILED = 'Failed',
40
- FAILED_CHECKSUM = 'Checksum did not match',
41
- PARAMETERS = 'Invalid parameters',
42
- FORMAT = 'Invalid format',
43
- CHECKSUM = 'Invalid checksum',
44
- ERROR_CODE = 'Error code',
45
- EXEC_PERMISSION = 'Exec command not permitted',
46
- NOT_CACHEABLE = 'Not able to cache',
47
- NOT_COPYABLE = 'Not able to copy file',
48
- NOT_DIRECTORY = 'Path is not a directory',
49
- CANCELLED = 'Transaction was cancelled',
50
- INCOMPLETE = 'Transaction was not completed',
51
- THREAD = 'Thread limit exceeded',
52
- THREAD_KILLED = 'Thread was killed',
53
- TIMEOUT = 'Timeout was exceeded',
54
- HANDLED_REJECTION = 'Handled rejection',
55
- UNSUPPORTED_ACCESS = 'Unsupported access',
56
- UNSUPPORTED_READ = 'Not permitted to read file',
57
- UNSUPPORTED_WRITE = 'Not permitted to write file',
58
- NOTFOUND_FILE = 'File not found',
59
- NOTFOUND_BINARY = 'Binary not found',
60
- NOTFOUND_PACKAGE = 'Package not found',
61
- NOTFOUND_MIME = 'MIME not found',
62
- INSTALL = 'Install required?',
63
- INLINE_METHOD = 'Unable to parse inline method',
64
- INLINE_OBJECT = 'Unable to parse inline object',
65
- PROCESS_FILE = 'Unable to process file',
66
- READ_FILE = 'Unable to read file',
67
- WRITE_FILE = 'Unable to write file',
68
- COPY_FILE = 'Unable to copy file',
69
- DELETE_FILE = 'Unable to delete file',
70
- RENAME_FILE = 'Unable to rename file',
71
- MOVE_FILE = 'Unable to move file',
72
- CONVERT_FILE = 'Unable to convert file',
73
- DOWNLOAD_FILE = 'Unable to download file',
74
- RESOLVE_FILE = 'Unable to resolve file',
75
- RESOLVE_HOSTNAME = 'Unable to resolve hostname',
76
- REPLACE_FILE = 'Unable to replace file',
77
- COMPRESS_FILE = 'Unable to compress file',
78
- COMPRESS_BUFFER = 'Unable to compress buffer',
79
- DECOMPRESS_FILE = 'Unable to decompress file',
80
- WATCH_FILE = 'Unable to watch file',
81
- EXECUTE_FILE = 'Unable to execute file',
82
- OVERWRITE_FILE = 'Unable to overwrite file',
83
- CREATE_DIRECTORY = 'Unable to create directory',
84
- TEMP_DIRECTORY = 'Unable to create temp directory',
85
- READ_DIRECTORY = 'Unable to read directory',
86
- WRITE_DIRECTORY = 'Unable to write directory',
87
- MOVE_DIRECTORY = 'Unable to move directory',
88
- REMOVE_DIRECTORY = 'Unable to remove directory',
89
- LOAD_CONFIG = 'Unable to load configuration',
90
- LOAD_HANDLER = 'Unable to load handler',
91
- READ_BUFFER = 'Unable to read buffer',
92
- WRITE_BUFFER = 'Unable to write buffer',
93
- TRANSFORM_DOCUMENT = 'Unable to transform document',
94
- PERFORM_TASK = 'Unable to perform task'
95
- }
96
-
97
- export const enum ERR_DB {
98
- CONSTRUCTOR = 'Not a Db constructor',
99
- PROVIDER_NOTFOUND = 'Database provider not found',
100
- MODULE_NOTFOUND = 'Db module not installed',
101
- UPGRADE = 'Upgrade client to latest version',
102
- NAME = 'Missing database name',
103
- INSTANCE = 'Missing instance name',
104
- PRODUCT = 'Missing database product',
105
- TABLE = 'Missing database table',
106
- QUERY = 'Missing database query',
107
- CONNECTION = 'Missing connection string',
108
- CLIENT = 'Unable to configure client',
109
- EXEC_QUERY = 'Unable to execute query',
110
- FILTER_QUERY = 'Unable to filter results',
111
- CONNECTION_OPEN = 'Unable to open connnection',
112
- CONNECTION_CLOSE = 'Unable to close connnection',
113
- KEY = 'Invalid key',
114
- VALUE = 'Invalid value',
115
- CREDENTIALS = 'Invalid credentials'
116
- }
117
-
118
- export const enum ERR_CLOUD {
119
- CONSTRUCTOR = 'Not a Cloud constructor',
120
- CREATE_BUCKET = 'Unable to create bucket',
121
- POLICY_BUCKET = 'Unable to update bucket policy',
122
- DELETE_BUCKET = 'Unable to empty bucket',
123
- CONFIGURE_BUCKET = 'Unable to configure bucket',
124
- EXISTS_BUCKET = 'Bucket does not exist',
125
- POLICY_INVALID = 'Invalid bucket policy',
126
- LIST_BUCKET = 'Unable to list bucket',
127
- PUBLIC_READ = 'Unable to grant public-read',
128
- TEMP_DIR = 'Unable to create temp directory',
129
- PROVIDER_NOTFOUND = 'Cloud provider not found',
130
- ACCOUNT_NOTFOUND = 'Cloud account not found',
131
- MODULE_NOTFOUND = 'Cloud module not installed',
132
- CREATE_BUCKET_SUPPORT = 'Create bucket not supported',
133
- BUCKET_POLICY_SUPPORT = 'Bucket policy not supported',
134
- DELETE_OBJECTS_SUPPORT = 'Delete objects not supported',
135
- BUCKET_WEBSITE_SUPPORT = 'Set bucket website not supported',
136
- EXECUTE_QUERY_SUPPORT = 'Execute query not supported',
137
- UPLOAD_SUPPORT = 'Upload function not supported',
138
- DOWNLOAD_SUPPORT = 'Download function not supported',
139
- UPLOAD_FAIL = 'Upload failed',
140
- DOWNLOAD_FAIL = 'Download failed',
141
- DELETE_FAIL = 'Delete failed',
142
- METADATA_FAIL = 'Metadata failed'
143
- }
144
-
145
- export const enum ERR_IMAGE {
146
- ROTATE = 'Unable to rotate image',
147
- FINALIZE = 'Unable to finalize image',
148
- METHOD_NAME = 'Invalid method name',
149
- METHOD_ARGS = 'Invalid method arguments'
150
- }
151
-
152
- export const enum DB_TRANSACTION {
153
- ACTIVE = 1,
154
- PARTIAL = 2,
155
- COMMIT = 4,
156
- TERMINATE = 8,
157
- ABORT = 16,
158
- FAIL = 32,
159
- AUTH = 64,
160
- CACHE = 128
161
- }
162
-
163
- export const enum TIME {
164
- Y = 1000 * 60 * 60 * 24 * 7 * 52,
165
- M = 1000 * 60 * 60 * 24 * 30,
166
- W = 1000 * 60 * 60 * 24 * 7,
167
- D = 1000 * 60 * 60 * 24,
168
- H = 1000 * 60 * 60,
169
- m = 1000 * 60,
170
- S = 1000
171
- }
172
-
173
- export const enum PACKAGE_NAME {
174
- CLOUD = '@e-mc/cloud',
175
- COMPAT_V4 = '@e-mc/compat-v4',
176
- COMPRESS = '@e-mc/compress',
177
- CORE = '@e-mc/core',
178
- DB = '@e-mc/db',
179
- DB_POOL = '@e-mc/db/pool',
180
- DOCUMENT = '@e-mc/document',
181
- DOCUMENT_ANDROID = '@pi-r/android',
182
- DOCUMENT_CHROME = '@pi-r/chrome',
183
- DOCUMENT_TRANSFORM = '@e-mc/document/transform',
184
- DOCUMENT_UTIL = '@e-mc/document/util',
185
- FILE_MANAGER = '@e-mc/file-manager',
186
- IMAGE = '@e-mc/image',
187
- IMAGE_JIMP = '@pi-r/jimp',
188
- MODULE = '@e-mc/module',
189
- MODULE_LIB_V4 = '@e-mc/module/lib-v4',
190
- REQUEST = '@e-mc/request',
191
- REQUEST_HTTP_HOST = '@e-mc/request/http/host',
192
- TASK = '@e-mc/task',
193
- TASK_GULP = '@pi-r/gulp',
194
- TYPES = '@e-mc/types',
195
- WATCH = '@e-mc/watch',
196
- WATCH_FILEGROUP = '@e-mc/watch/filegroup'
197
- }
198
-
199
- export const enum ASSET_FLAG {
200
- NONE = 0,
201
- IGNORE = 1,
202
- CLONE = 2,
203
- USING = 4,
204
- WATCH = 8,
205
- MODIFIED = 16,
206
- PROCESS = 32,
207
- MAIN = 64,
208
- EXISTS = 128
209
- }
210
-
211
- export const enum LOG_TYPE {
212
- UNKNOWN = 0,
213
- SYSTEM = 1,
214
- NODE = 2,
215
- PROCESS = 4,
216
- COMPRESS = 8,
217
- WATCH = 16,
218
- FILE = 32,
219
- CLOUD = 64,
220
- TIME_ELAPSED = 128,
221
- TIME_PROCESS = 256,
222
- FAIL = 512,
223
- HTTP = 1024,
224
- IMAGE = 2048,
225
- EXEC = 4096,
226
- PERMISSION = 8192,
227
- TIMEOUT = 16384,
228
- STDOUT = 32768,
229
- DB = 65536
230
- }
231
-
232
- export const enum READDIR_SORT {
233
- FILE = 0,
234
- DIRECTORY = 1,
235
- DESCENDING = 2
236
- }
237
-
238
- export const enum SETTINGS_KEY_NAME {
239
- NODE_PROCESS_CPUUSAGE = "node.process.cpu_usage",
240
- NODE_PROCESS_MEMORYUSAGE = "node.process.memory_usage",
241
- NODE_PROCESS_INLINE = "node.process.inline",
242
- NODE_REQUIRE_EXT = "node.require.ext",
243
- NODE_REQUIRE_NPM = "node.require.npm",
244
- NODE_REQUIRE_INLINE = "node.require.inline",
245
- TEMP_DIR = "temp.dir",
246
- TEMP_WRITE = "temp.write",
247
- PROCESS_PASSWORD = "process.password",
248
- PROCESS_ENV_APPLY = "process.env.apply",
249
- PROCESS_CIPHER_ALGORITHM = "process.cipher.algorithm",
250
- PERMISSION_PROCESS_EXEC = "permission.process_exec",
251
- PERMISSION_HOMEREAD = "permission.home_read",
252
- PERMISSION_HOMEWRITE = "permission.home_write",
253
- MEMORY_SETTINGS_USERS = "memory.settings.users",
254
- ERROR_OUT = "error.out",
255
- ERROR_FATAL = "error.fatal",
256
- BROADCAST_OUT = "broadcast.out",
257
- LOGGER_LEVEL = "logger.level"
258
- }
259
-
260
- export const enum CACHE_SIZE {
261
- CORE_CLIENTDB_PARTITION_SIZE = 16,
262
- CORE_CLIENTDB_PARTITION_MULT = 2,
263
- CLOUD_PARTITION_SIZE = 16,
264
- CLOUD_PARTITION_MULT = 2,
265
- DB_PARTITION_SIZE = 16,
266
- DB_PARTITION_MULT = 2,
267
- FILE_MANAGER_DISK_LIMIT = '1gb',
268
- FILE_MANAGER_MEMORY_LIMIT = '100mb',
269
- FILE_MANAGER_MEMORY_LIMIT_ALL = '512mb'
1
+ export const enum INTERNAL {
2
+ VERSION = '0.7.9',
3
+ TEMP_DIR = 'tmp',
4
+ CJS = '__cjs__'
5
+ }
6
+
7
+ export const enum VAL_MESSAGE {
8
+ SUCCESS = 'Success',
9
+ MODIFIED_DIRECTORY = 'Directory was modified',
10
+ COMMIT_TRANSACTION = 'Transactions were committed'
11
+ }
12
+
13
+ export const enum VAL_DB {
14
+ EXEC_QUERYUNASSIGNED = 'Execute unassigned queries'
15
+ }
16
+
17
+ export const enum VAL_CLOUD {
18
+ UPLOAD_FILE = 'Upload success',
19
+ DOWNLOAD_FILE = 'Download success',
20
+ DELETE_FILE = 'Delete success',
21
+ RENAME_FILE = 'File renamed',
22
+ CREATE_TAG = 'Tags created',
23
+ DELETE_TAG = 'Tags deleted',
24
+ PUBLIC_READ = 'Grant public-read',
25
+ CREATE_BUCKET = 'Bucket created',
26
+ DELETE_BUCKET = 'Bucket deleted',
27
+ EMPTY_BUCKET = 'Bucket emptied',
28
+ CONFIGURE_BUCKET = 'Bucket configured',
29
+ POLICY_BUCKET = 'Bucket policy configured',
30
+ ACL_BUCKET = 'Bucket ACL configured'
31
+ }
32
+
33
+ export const enum ERR_MESSAGE {
34
+ UNKNOWN = 'Unknown',
35
+ FAIL = 'FAIL!',
36
+ WARN = 'WARN!',
37
+ ABORTED = 'Aborted',
38
+ ABORTED_OPERATION = 'The operation was aborted',
39
+ FAILED = 'Failed',
40
+ FAILED_CHECKSUM = 'Checksum did not match',
41
+ PARAMETERS = 'Invalid parameters',
42
+ FORMAT = 'Invalid format',
43
+ CHECKSUM = 'Invalid checksum',
44
+ ERROR_CODE = 'Error code',
45
+ EXEC_PERMISSION = 'Exec command not permitted',
46
+ NOT_CACHEABLE = 'Not able to cache',
47
+ NOT_COPYABLE = 'Not able to copy file',
48
+ NOT_DIRECTORY = 'Path is not a directory',
49
+ CANCELLED = 'Transaction was cancelled',
50
+ INCOMPLETE = 'Transaction was not completed',
51
+ THREAD = 'Thread limit exceeded',
52
+ THREAD_KILLED = 'Thread was killed',
53
+ TIMEOUT = 'Timeout was exceeded',
54
+ HANDLED_REJECTION = 'Handled rejection',
55
+ UNSUPPORTED_ACCESS = 'Unsupported access',
56
+ UNSUPPORTED_READ = 'Not permitted to read file',
57
+ UNSUPPORTED_WRITE = 'Not permitted to write file',
58
+ NOTFOUND_FILE = 'File not found',
59
+ NOTFOUND_BINARY = 'Binary not found',
60
+ NOTFOUND_PACKAGE = 'Package not found',
61
+ NOTFOUND_MIME = 'MIME not found',
62
+ INSTALL = 'Install required?',
63
+ INLINE_METHOD = 'Unable to parse inline method',
64
+ INLINE_OBJECT = 'Unable to parse inline object',
65
+ PROCESS_FILE = 'Unable to process file',
66
+ READ_FILE = 'Unable to read file',
67
+ WRITE_FILE = 'Unable to write file',
68
+ COPY_FILE = 'Unable to copy file',
69
+ DELETE_FILE = 'Unable to delete file',
70
+ RENAME_FILE = 'Unable to rename file',
71
+ MOVE_FILE = 'Unable to move file',
72
+ CONVERT_FILE = 'Unable to convert file',
73
+ DOWNLOAD_FILE = 'Unable to download file',
74
+ RESOLVE_FILE = 'Unable to resolve file',
75
+ RESOLVE_HOSTNAME = 'Unable to resolve hostname',
76
+ REPLACE_FILE = 'Unable to replace file',
77
+ COMPRESS_FILE = 'Unable to compress file',
78
+ COMPRESS_BUFFER = 'Unable to compress buffer',
79
+ DECOMPRESS_FILE = 'Unable to decompress file',
80
+ WATCH_FILE = 'Unable to watch file',
81
+ EXECUTE_FILE = 'Unable to execute file',
82
+ OVERWRITE_FILE = 'Unable to overwrite file',
83
+ CREATE_DIRECTORY = 'Unable to create directory',
84
+ TEMP_DIRECTORY = 'Unable to create temp directory',
85
+ READ_DIRECTORY = 'Unable to read directory',
86
+ WRITE_DIRECTORY = 'Unable to write directory',
87
+ MOVE_DIRECTORY = 'Unable to move directory',
88
+ REMOVE_DIRECTORY = 'Unable to remove directory',
89
+ LOAD_CONFIG = 'Unable to load configuration',
90
+ LOAD_HANDLER = 'Unable to load handler',
91
+ READ_BUFFER = 'Unable to read buffer',
92
+ WRITE_BUFFER = 'Unable to write buffer',
93
+ TRANSFORM_DOCUMENT = 'Unable to transform document',
94
+ PERFORM_TASK = 'Unable to perform task'
95
+ }
96
+
97
+ export const enum ERR_DB {
98
+ CONSTRUCTOR = 'Not a Db constructor',
99
+ PROVIDER_NOTFOUND = 'Database provider not found',
100
+ MODULE_NOTFOUND = 'Db module not installed',
101
+ UPGRADE = 'Upgrade client to latest version',
102
+ NAME = 'Missing database name',
103
+ INSTANCE = 'Missing instance name',
104
+ PRODUCT = 'Missing database product',
105
+ TABLE = 'Missing database table',
106
+ QUERY = 'Missing database query',
107
+ CONNECTION = 'Missing connection string',
108
+ CLIENT = 'Unable to configure client',
109
+ EXEC_QUERY = 'Unable to execute query',
110
+ FILTER_QUERY = 'Unable to filter results',
111
+ CONNECTION_OPEN = 'Unable to open connnection',
112
+ CONNECTION_CLOSE = 'Unable to close connnection',
113
+ KEY = 'Invalid key',
114
+ VALUE = 'Invalid value',
115
+ CREDENTIALS = 'Invalid credentials'
116
+ }
117
+
118
+ export const enum ERR_CLOUD {
119
+ CONSTRUCTOR = 'Not a Cloud constructor',
120
+ CREATE_BUCKET = 'Unable to create bucket',
121
+ POLICY_BUCKET = 'Unable to update bucket policy',
122
+ DELETE_BUCKET = 'Unable to empty bucket',
123
+ CONFIGURE_BUCKET = 'Unable to configure bucket',
124
+ EXISTS_BUCKET = 'Bucket does not exist',
125
+ POLICY_INVALID = 'Invalid bucket policy',
126
+ LIST_BUCKET = 'Unable to list bucket',
127
+ PUBLIC_READ = 'Unable to grant public-read',
128
+ TEMP_DIR = 'Unable to create temp directory',
129
+ PROVIDER_NOTFOUND = 'Cloud provider not found',
130
+ ACCOUNT_NOTFOUND = 'Cloud account not found',
131
+ MODULE_NOTFOUND = 'Cloud module not installed',
132
+ CREATE_BUCKET_SUPPORT = 'Create bucket not supported',
133
+ BUCKET_POLICY_SUPPORT = 'Bucket policy not supported',
134
+ DELETE_OBJECTS_SUPPORT = 'Delete objects not supported',
135
+ BUCKET_WEBSITE_SUPPORT = 'Set bucket website not supported',
136
+ EXECUTE_QUERY_SUPPORT = 'Execute query not supported',
137
+ UPLOAD_SUPPORT = 'Upload function not supported',
138
+ DOWNLOAD_SUPPORT = 'Download function not supported',
139
+ UPLOAD_FAIL = 'Upload failed',
140
+ DOWNLOAD_FAIL = 'Download failed',
141
+ DELETE_FAIL = 'Delete failed',
142
+ METADATA_FAIL = 'Metadata failed'
143
+ }
144
+
145
+ export const enum ERR_IMAGE {
146
+ ROTATE = 'Unable to rotate image',
147
+ FINALIZE = 'Unable to finalize image',
148
+ METHOD_NAME = 'Invalid method name',
149
+ METHOD_ARGS = 'Invalid method arguments'
150
+ }
151
+
152
+ export const enum DB_TRANSACTION {
153
+ ACTIVE = 1,
154
+ PARTIAL = 2,
155
+ COMMIT = 4,
156
+ TERMINATE = 8,
157
+ ABORT = 16,
158
+ FAIL = 32,
159
+ AUTH = 64,
160
+ CACHE = 128
161
+ }
162
+
163
+ export const enum TIME {
164
+ Y = 1000 * 60 * 60 * 24 * 7 * 52,
165
+ M = 1000 * 60 * 60 * 24 * 30,
166
+ W = 1000 * 60 * 60 * 24 * 7,
167
+ D = 1000 * 60 * 60 * 24,
168
+ H = 1000 * 60 * 60,
169
+ m = 1000 * 60,
170
+ S = 1000
171
+ }
172
+
173
+ export const enum PACKAGE_NAME {
174
+ CLOUD = '@e-mc/cloud',
175
+ COMPAT_V4 = '@e-mc/compat-v4',
176
+ COMPRESS = '@e-mc/compress',
177
+ CORE = '@e-mc/core',
178
+ DB = '@e-mc/db',
179
+ DB_POOL = '@e-mc/db/pool',
180
+ DOCUMENT = '@e-mc/document',
181
+ DOCUMENT_ANDROID = '@pi-r/android',
182
+ DOCUMENT_CHROME = '@pi-r/chrome',
183
+ DOCUMENT_TRANSFORM = '@e-mc/document/transform',
184
+ DOCUMENT_UTIL = '@e-mc/document/util',
185
+ FILE_MANAGER = '@e-mc/file-manager',
186
+ IMAGE = '@e-mc/image',
187
+ IMAGE_JIMP = '@pi-r/jimp',
188
+ MODULE = '@e-mc/module',
189
+ MODULE_LIB_V4 = '@e-mc/module/lib-v4',
190
+ REQUEST = '@e-mc/request',
191
+ REQUEST_HTTP_HOST = '@e-mc/request/http/host',
192
+ TASK = '@e-mc/task',
193
+ TASK_GULP = '@pi-r/gulp',
194
+ TYPES = '@e-mc/types',
195
+ WATCH = '@e-mc/watch',
196
+ WATCH_FILEGROUP = '@e-mc/watch/filegroup'
197
+ }
198
+
199
+ export const enum ASSET_FLAG {
200
+ NONE = 0,
201
+ IGNORE = 1,
202
+ CLONE = 2,
203
+ USING = 4,
204
+ WATCH = 8,
205
+ MODIFIED = 16,
206
+ PROCESS = 32,
207
+ MAIN = 64,
208
+ EXISTS = 128
209
+ }
210
+
211
+ export const enum LOG_TYPE {
212
+ UNKNOWN = 0,
213
+ SYSTEM = 1,
214
+ NODE = 2,
215
+ PROCESS = 4,
216
+ COMPRESS = 8,
217
+ WATCH = 16,
218
+ FILE = 32,
219
+ CLOUD = 64,
220
+ TIME_ELAPSED = 128,
221
+ TIME_PROCESS = 256,
222
+ FAIL = 512,
223
+ HTTP = 1024,
224
+ IMAGE = 2048,
225
+ EXEC = 4096,
226
+ PERMISSION = 8192,
227
+ TIMEOUT = 16384,
228
+ STDOUT = 32768,
229
+ DB = 65536
230
+ }
231
+
232
+ export const enum READDIR_SORT {
233
+ FILE = 0,
234
+ DIRECTORY = 1,
235
+ DESCENDING = 2
236
+ }
237
+
238
+ export const enum SETTINGS_KEY_NAME {
239
+ NODE_PROCESS_CPUUSAGE = "node.process.cpu_usage",
240
+ NODE_PROCESS_MEMORYUSAGE = "node.process.memory_usage",
241
+ NODE_PROCESS_INLINE = "node.process.inline",
242
+ NODE_REQUIRE_EXT = "node.require.ext",
243
+ NODE_REQUIRE_NPM = "node.require.npm",
244
+ NODE_REQUIRE_INLINE = "node.require.inline",
245
+ TEMP_DIR = "temp.dir",
246
+ TEMP_WRITE = "temp.write",
247
+ PROCESS_PASSWORD = "process.password",
248
+ PROCESS_ENV_APPLY = "process.env.apply",
249
+ PROCESS_CIPHER_ALGORITHM = "process.cipher.algorithm",
250
+ PERMISSION_PROCESS_EXEC = "permission.process_exec",
251
+ PERMISSION_HOMEREAD = "permission.home_read",
252
+ PERMISSION_HOMEWRITE = "permission.home_write",
253
+ MEMORY_SETTINGS_USERS = "memory.settings.users",
254
+ ERROR_OUT = "error.out",
255
+ ERROR_FATAL = "error.fatal",
256
+ BROADCAST_OUT = "broadcast.out",
257
+ LOGGER_LEVEL = "logger.level"
258
+ }
259
+
260
+ export const enum CACHE_SIZE {
261
+ CORE_CLIENTDB_PARTITION_SIZE = 16,
262
+ CORE_CLIENTDB_PARTITION_MULT = 2,
263
+ CLOUD_PARTITION_SIZE = 16,
264
+ CLOUD_PARTITION_MULT = 2,
265
+ DB_PARTITION_SIZE = 16,
266
+ DB_PARTITION_MULT = 2,
267
+ FILE_MANAGER_DISK_LIMIT = '1gb',
268
+ FILE_MANAGER_MEMORY_LIMIT = '100mb',
269
+ FILE_MANAGER_MEMORY_LIMIT_ALL = '512mb'
270
270
  }