harperdb 4.5.0-alpha.2 → 4.5.0-beta.1
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/README.md +1 -1
- package/bin/harperdb.js +83 -83
- package/bin/lite.js +81 -81
- package/launchServiceScripts/launchInstallNATSServer.js +3 -3
- package/launchServiceScripts/launchNatsIngestService.js +81 -81
- package/launchServiceScripts/launchNatsReplyService.js +83 -83
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +81 -81
- package/npm-shrinkwrap.json +872 -902
- package/package.json +9 -9
- package/resources/Table.d.ts +27 -27
- package/resources/blob.d.ts +17 -20
- package/resources/databases.d.ts +27 -27
- package/server/jobs/jobProcess.js +81 -81
- package/server/serverHelpers/JSONStream.d.ts +14 -0
- package/server/serverHelpers/contentTypes.d.ts +56 -0
- package/server/threads/threadServer.js +81 -81
- package/studio/build-local/asset-manifest.json +42 -41
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/css/main.60857e29.css +13 -0
- package/studio/build-local/static/js/122.830d4399.chunk.js +2 -0
- package/studio/build-local/static/js/122.830d4399.chunk.js.LICENSE.txt +5 -0
- package/studio/build-local/static/js/164.3490f18f.chunk.js +1 -0
- package/studio/build-local/static/js/279.7dfac9c5.chunk.js +1 -0
- package/studio/build-local/static/js/545.046f5738.chunk.js +1 -0
- package/studio/build-local/static/js/833.3aff61e3.chunk.js +1 -0
- package/studio/build-local/static/js/{browse-csvupload.02fdfbea.chunk.js → browse-csvupload.cdc5e843.chunk.js} +1 -1
- package/studio/build-local/static/js/browse-datatable.3f426683.chunk.js +1 -0
- package/studio/build-local/static/js/browse-entitymanager.e9b890eb.chunk.js +1 -0
- package/studio/build-local/static/js/{browse-jsonviewer.b690b1bb.chunk.js → browse-jsonviewer.d19731db.chunk.js} +1 -1
- package/studio/build-local/static/js/custom-functions.d0e98d37.chunk.js +1 -0
- package/studio/build-local/static/js/instance-cluster.d5a2a397.chunk.js +1 -0
- package/studio/build-local/static/js/instance-config.347093bf.chunk.js +1 -0
- package/studio/build-local/static/js/instance-logs.1aaf5d15.chunk.js +1 -0
- package/studio/build-local/static/js/instance-roles.7ac001d5.chunk.js +1 -0
- package/studio/build-local/static/js/instance-status.99235f8a.chunk.js +1 -0
- package/studio/build-local/static/js/instance-users-datatable.30e06140.chunk.js +1 -0
- package/studio/build-local/static/js/{instance-users-edit.6ea9cc6f.chunk.js → instance-users-edit.d860ecc3.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-users.876f6070.chunk.js → instance-users.dc880abe.chunk.js} +1 -1
- package/studio/build-local/static/js/instance.92e42f60.chunk.js +1 -0
- package/studio/build-local/static/js/instances.5ca66253.chunk.js +1 -0
- package/studio/build-local/static/js/main.9140b0ac.js +2 -0
- package/studio/build-local/static/js/offline-app.5bab91f6.chunk.js +1 -0
- package/studio/build-local/static/js/online-app.38675097.chunk.js +1 -0
- package/studio/build-local/static/js/{organization-billing.21b2d3c9.chunk.js → organization-billing.75660563.chunk.js} +1 -1
- package/studio/build-local/static/js/organization-users.d913dc35.chunk.js +1 -0
- package/studio/build-local/static/js/organization.2cbb1871.chunk.js +1 -0
- package/studio/build-local/static/js/organizations.b7abb2b5.chunk.js +1 -0
- package/studio/build-local/static/js/{profile.c05c7042.chunk.js → profile.cd02eab8.chunk.js} +1 -1
- package/studio/build-local/static/js/resetPassword.f56c6a03.chunk.js +1 -0
- package/studio/build-local/static/js/{roles-jsonviewer.bf1011d5.chunk.js → roles-jsonviewer.891faeff.chunk.js} +1 -1
- package/studio/build-local/static/js/signIn.426c63a1.chunk.js +1 -0
- package/studio/build-local/static/js/signUp.2caeeae2.chunk.js +1 -0
- package/studio/build-local/static/js/{structure-reloader.f65842a1.chunk.js → structure-reloader.4a977969.chunk.js} +1 -1
- package/studio/build-local/static/js/topnav.d2fd9b1a.chunk.js +1 -0
- package/studio/build-local/static/js/updatePassword.f282bf0b.chunk.js +1 -0
- package/studio/build-local/static/media/PPRadioGrotesk-Bold.31436818ea74a78b55af.woff +0 -0
- package/studio/build-local/static/media/checkmark.3d7d209874703a9cd0cc.svg +3 -0
- package/studio/build-local/static/media/logo_harper_db_studio.856391ec8a20ac3a6bee.png +0 -0
- package/utility/hdbTerms.d.ts +789 -0
- package/utility/scripts/restartHdb.js +81 -81
- package/studio/build-local/static/css/main.fee3019a.css +0 -13
- package/studio/build-local/static/js/279.7890bce3.chunk.js +0 -1
- package/studio/build-local/static/js/311.9e648b13.chunk.js +0 -2
- package/studio/build-local/static/js/311.9e648b13.chunk.js.LICENSE.txt +0 -38
- package/studio/build-local/static/js/452.d771b05a.chunk.js +0 -2
- package/studio/build-local/static/js/452.d771b05a.chunk.js.LICENSE.txt +0 -13
- package/studio/build-local/static/js/545.be2e36f9.chunk.js +0 -1
- package/studio/build-local/static/js/806.afb99f70.chunk.js +0 -1
- package/studio/build-local/static/js/833.5b133801.chunk.js +0 -1
- package/studio/build-local/static/js/browse-datatable.0e20a171.chunk.js +0 -1
- package/studio/build-local/static/js/browse-entitymanager.0db076c3.chunk.js +0 -1
- package/studio/build-local/static/js/custom-functions.04b93135.chunk.js +0 -1
- package/studio/build-local/static/js/instance-charts.217c477d.chunk.js +0 -1
- package/studio/build-local/static/js/instance-cluster.0ba07710.chunk.js +0 -1
- package/studio/build-local/static/js/instance-config.2274de0a.chunk.js +0 -1
- package/studio/build-local/static/js/instance-query.fdc5f922.chunk.js +0 -1
- package/studio/build-local/static/js/instance-roles.38ef8e77.chunk.js +0 -1
- package/studio/build-local/static/js/instance-status.d09551b0.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users-datatable.9b5617bc.chunk.js +0 -1
- package/studio/build-local/static/js/instance.ad30f892.chunk.js +0 -1
- package/studio/build-local/static/js/instances.f4fec0cb.chunk.js +0 -1
- package/studio/build-local/static/js/main.d0442481.js +0 -2
- package/studio/build-local/static/js/offline-app.31ad36fc.chunk.js +0 -1
- package/studio/build-local/static/js/online-app.91033fd0.chunk.js +0 -1
- package/studio/build-local/static/js/organization-users.6f50ca02.chunk.js +0 -1
- package/studio/build-local/static/js/organization.89b902c4.chunk.js +0 -1
- package/studio/build-local/static/js/organizations.4933fdbc.chunk.js +0 -1
- package/studio/build-local/static/js/resetPassword.3478535b.chunk.js +0 -1
- package/studio/build-local/static/js/signIn.996cf7ee.chunk.js +0 -1
- package/studio/build-local/static/js/signUp.c8fce52d.chunk.js +0 -1
- package/studio/build-local/static/js/topnav.0fa4de77.chunk.js +0 -1
- package/studio/build-local/static/js/updatePassword.bc881b36.chunk.js +0 -1
- /package/studio/build-local/static/js/{main.d0442481.js.LICENSE.txt → main.9140b0ac.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module contains common variables/values that will be used across the project.
|
|
3
|
+
* Using these constant values helps with consistency across the project.
|
|
4
|
+
*
|
|
5
|
+
* All variables should use a JSDoc comment to explain what it is, and any objects should be marked as `as const` for better type checking.
|
|
6
|
+
*/
|
|
7
|
+
/** HarperDB Root Config File */
|
|
8
|
+
export declare const HDB_CONFIG_FILE = "harperdb-config.yaml";
|
|
9
|
+
/** HarperDB Default Config File */
|
|
10
|
+
export declare const HDB_DEFAULT_CONFIG_FILE = "defaultConfig.yaml";
|
|
11
|
+
/** HarperDB Root Directory Name */
|
|
12
|
+
export declare const HDB_ROOT_DIR_NAME = "hdb";
|
|
13
|
+
/** HarperDB Component Config File */
|
|
14
|
+
export declare const HDB_COMPONENT_CONFIG_FILE = "config.yaml";
|
|
15
|
+
/** Name of the HarperDB Process Script */
|
|
16
|
+
export declare const HDB_PROC_NAME = "harperdb.js";
|
|
17
|
+
/** Name of the HarperDB Restart Script */
|
|
18
|
+
export declare const HDB_RESTART_SCRIPT = "restartHdb.js";
|
|
19
|
+
/**
|
|
20
|
+
* Process Descriptor Map
|
|
21
|
+
*
|
|
22
|
+
* Used throughout the project to map process descriptors to their respective process names.
|
|
23
|
+
*/
|
|
24
|
+
export declare const PROCESS_DESCRIPTORS: {
|
|
25
|
+
readonly HDB: "HarperDB";
|
|
26
|
+
readonly CLUSTERING_HUB: "Clustering Hub";
|
|
27
|
+
readonly CLUSTERING_LEAF: "Clustering Leaf";
|
|
28
|
+
readonly CLUSTERING_INGEST_SERVICE: "Clustering Ingest Service";
|
|
29
|
+
readonly CLUSTERING_REPLY_SERVICE: "Clustering Reply Service";
|
|
30
|
+
readonly CUSTOM_FUNCTIONS: "Custom Functions";
|
|
31
|
+
readonly RESTART_HDB: "Restart HDB";
|
|
32
|
+
readonly INSTALL: "Install";
|
|
33
|
+
readonly RUN: "Run";
|
|
34
|
+
readonly STOP: "Stop";
|
|
35
|
+
readonly UPGRADE: "Upgrade";
|
|
36
|
+
readonly REGISTER: "Register";
|
|
37
|
+
readonly JOB: "Job";
|
|
38
|
+
readonly CLUSTERING_UPGRADE_4_0_0: "Upgrade-4-0-0";
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Process Services Map
|
|
42
|
+
*
|
|
43
|
+
* These are the services that the HarperDB process provides.
|
|
44
|
+
* This object is used primarily in the restart workflow to determine which services to restart.
|
|
45
|
+
*/
|
|
46
|
+
export declare const HDB_PROCESS_SERVICES: {
|
|
47
|
+
readonly harperdb: "HarperDB";
|
|
48
|
+
readonly 'clustering hub': "Clustering Hub";
|
|
49
|
+
readonly 'clustering leaf': "Clustering Leaf";
|
|
50
|
+
readonly 'custom functions': "Custom Functions";
|
|
51
|
+
readonly custom_functions: "Custom Functions";
|
|
52
|
+
readonly clustering: "clustering";
|
|
53
|
+
readonly 'clustering config': "clustering config";
|
|
54
|
+
readonly clustering_config: "clustering_config";
|
|
55
|
+
readonly http_workers: "http_workers";
|
|
56
|
+
readonly http: "http";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Clustering Process Services Map
|
|
60
|
+
*
|
|
61
|
+
* Used for process management to easily iterate over the clustering processes.
|
|
62
|
+
*/
|
|
63
|
+
export declare const CLUSTERING_PROCESSES: {
|
|
64
|
+
readonly CLUSTERING_HUB_PROC_DESCRIPTOR: "Clustering Hub";
|
|
65
|
+
readonly CLUSTERING_LEAF_PROC_DESCRIPTOR: "Clustering Leaf";
|
|
66
|
+
};
|
|
67
|
+
/** HarperDB Process Identifier File Name */
|
|
68
|
+
export declare const HDB_PID_FILE = "hdb.pid";
|
|
69
|
+
/** Default database name */
|
|
70
|
+
export declare const DEFAULT_DATABASE_NAME = "data";
|
|
71
|
+
/** Log File Names */
|
|
72
|
+
export declare const LOG_NAMES: {
|
|
73
|
+
readonly HDB: "hdb.log";
|
|
74
|
+
readonly INSTALL: "install.log";
|
|
75
|
+
readonly CLUSTERING_HUB: "clustering_hub.log";
|
|
76
|
+
readonly CLUSTERING_LEAF: "clustering_leaf.log";
|
|
77
|
+
};
|
|
78
|
+
/** Log Levels */
|
|
79
|
+
export declare const LOG_LEVELS: {
|
|
80
|
+
readonly NOTIFY: "notify";
|
|
81
|
+
readonly FATAL: "fatal";
|
|
82
|
+
readonly ERROR: "error";
|
|
83
|
+
readonly WARN: "warn";
|
|
84
|
+
readonly INFO: "info";
|
|
85
|
+
readonly DEBUG: "debug";
|
|
86
|
+
readonly TRACE: "trace";
|
|
87
|
+
};
|
|
88
|
+
/** Launch Service script paths */
|
|
89
|
+
export declare const LAUNCH_SERVICE_SCRIPTS: {
|
|
90
|
+
readonly MAIN: "bin/harperdb.js";
|
|
91
|
+
readonly NATS_INGEST_SERVICE: string;
|
|
92
|
+
readonly NATS_REPLY_SERVICE: string;
|
|
93
|
+
readonly NODES_UPGRADE_4_0_0: string;
|
|
94
|
+
};
|
|
95
|
+
/** Specifies user role types */
|
|
96
|
+
export declare const ROLE_TYPES_ENUM: {
|
|
97
|
+
readonly SUPER_USER: "super_user";
|
|
98
|
+
readonly CLUSTER_USER: "cluster_user";
|
|
99
|
+
};
|
|
100
|
+
/** Email address for support requests */
|
|
101
|
+
export declare const HDB_SUPPORT_ADDRESS = "support@harperdb.io";
|
|
102
|
+
/** Support Help Message */
|
|
103
|
+
export declare const SUPPORT_HELP_MSG = "For support, please submit a request at https://harperdbhelp.zendesk.com/hc/en-us/requests/new or contact support@harperdb.io";
|
|
104
|
+
/** Message when records cannot be found for a DELETE operation */
|
|
105
|
+
export declare const SEARCH_NOT_FOUND_MESSAGE = "None of the specified records were found.";
|
|
106
|
+
/** Unicode for the `.` character */
|
|
107
|
+
export declare const UNICODE_PERIOD = "U+002E";
|
|
108
|
+
/** Regex for matching the `/` character */
|
|
109
|
+
export declare const FORWARD_SLASH_REGEX: RegExp;
|
|
110
|
+
/** Unicode for the `/` character */
|
|
111
|
+
export declare const UNICODE_FORWARD_SLASH = "U+002F";
|
|
112
|
+
/** Regex for matching an escaped `/` character */
|
|
113
|
+
export declare const ESCAPED_FORWARD_SLASH_REGEX: RegExp;
|
|
114
|
+
/** CLI Argument for setting the memory value */
|
|
115
|
+
export declare const MEM_SETTING_KEY = "--max-old-space-size=";
|
|
116
|
+
/** Name of the System schema */
|
|
117
|
+
export declare const SYSTEM_SCHEMA_NAME = "system";
|
|
118
|
+
/** HarperDB Home directory */
|
|
119
|
+
export declare const HDB_HOME_DIR_NAME = ".harperdb";
|
|
120
|
+
/** License Key directory */
|
|
121
|
+
export declare const LICENSE_KEY_DIR_NAME = "keys";
|
|
122
|
+
/** HarperDB Boot Properties file name */
|
|
123
|
+
export declare const BOOT_PROPS_FILE_NAME = "hdb_boot_properties.file";
|
|
124
|
+
/** Restart timeout (milliseconds) */
|
|
125
|
+
export declare const RESTART_TIMEOUT_MS = 60000;
|
|
126
|
+
/** HarperDB File Permissions Mode */
|
|
127
|
+
export declare const HDB_FILE_PERMISSIONS = 448;
|
|
128
|
+
/** Database directory */
|
|
129
|
+
export declare const DATABASES_DIR_NAME = "database";
|
|
130
|
+
/** Legacy Database directory */
|
|
131
|
+
export declare const LEGACY_DATABASES_DIR_NAME = "schema";
|
|
132
|
+
/** Transaction directory */
|
|
133
|
+
export declare const TRANSACTIONS_DIR_NAME = "transactions";
|
|
134
|
+
/** Key for specifying process specific environment variables */
|
|
135
|
+
export declare const PROCESS_NAME_ENV_PROP = "PROCESS_NAME";
|
|
136
|
+
/** Boot sequence property parameters */
|
|
137
|
+
export declare const BOOT_PROP_PARAMS: {
|
|
138
|
+
readonly SETTINGS_PATH_KEY: "settings_path";
|
|
139
|
+
};
|
|
140
|
+
/** Installation prompt map */
|
|
141
|
+
export declare const INSTALL_PROMPTS: {
|
|
142
|
+
readonly TC_AGREEMENT: "TC_AGREEMENT";
|
|
143
|
+
readonly CLUSTERING_USER: "CLUSTERING_USER";
|
|
144
|
+
readonly CLUSTERING_PASSWORD: "CLUSTERING_PASSWORD";
|
|
145
|
+
readonly HDB_ADMIN_USERNAME: "HDB_ADMIN_USERNAME";
|
|
146
|
+
readonly HDB_ADMIN_PASSWORD: "HDB_ADMIN_PASSWORD";
|
|
147
|
+
readonly OPERATIONSAPI_ROOT: "OPERATIONSAPI_ROOT";
|
|
148
|
+
readonly ROOTPATH: "ROOTPATH";
|
|
149
|
+
readonly CLUSTERING_NODENAME: "CLUSTERING_NODENAME";
|
|
150
|
+
readonly CLUSTERING_ENABLED: "CLUSTERING_ENABLED";
|
|
151
|
+
readonly HDB_CONFIG: "HDB_CONFIG";
|
|
152
|
+
readonly DEFAULTS_MODE: "DEFAULTS_MODE";
|
|
153
|
+
readonly REPLICATION_HOSTNAME: "REPLICATION_HOSTNAME";
|
|
154
|
+
readonly CLUSTERING_PORT: "CLUSTERING_PORT";
|
|
155
|
+
readonly HDB_ROOT: "HDB_ROOT";
|
|
156
|
+
readonly SERVER_PORT: "SERVER_PORT";
|
|
157
|
+
readonly NODE_NAME: "NODE_NAME";
|
|
158
|
+
readonly CLUSTERING: "CLUSTERING";
|
|
159
|
+
};
|
|
160
|
+
/** Insert operation max character size */
|
|
161
|
+
export declare const INSERT_MAX_CHARACTER_SIZE = 250;
|
|
162
|
+
/** Upgrade JSON field map */
|
|
163
|
+
export declare const UPGRADE_JSON_FIELD_NAMES_ENUM: {
|
|
164
|
+
readonly DATA_VERSION: "data_version";
|
|
165
|
+
readonly UPGRADE_VERSION: "upgrade_version";
|
|
166
|
+
};
|
|
167
|
+
/** System table names */
|
|
168
|
+
export declare const SYSTEM_TABLE_NAMES: {
|
|
169
|
+
readonly JOB_TABLE_NAME: "hdb_job";
|
|
170
|
+
readonly NODE_TABLE_NAME: "hdb_nodes";
|
|
171
|
+
readonly ATTRIBUTE_TABLE_NAME: "hdb_attribute";
|
|
172
|
+
readonly LICENSE_TABLE_NAME: "hdb_license";
|
|
173
|
+
readonly ROLE_TABLE_NAME: "hdb_role";
|
|
174
|
+
readonly SCHEMA_TABLE_NAME: "hdb_schema";
|
|
175
|
+
readonly TABLE_TABLE_NAME: "hdb_table";
|
|
176
|
+
readonly USER_TABLE_NAME: "hdb_user";
|
|
177
|
+
readonly INFO_TABLE_NAME: "hdb_info";
|
|
178
|
+
};
|
|
179
|
+
/** Hash attribute for the system info table */
|
|
180
|
+
export declare const INFO_TABLE_HASH_ATTRIBUTE = "info_id";
|
|
181
|
+
/** System default attributes */
|
|
182
|
+
export declare const SYSTEM_DEFAULT_ATTRIBUTE_NAMES: {
|
|
183
|
+
readonly ATTR_ATTRIBUTE_KEY: "attribute";
|
|
184
|
+
readonly ATTR_CREATEDDATE_KEY: "createddate";
|
|
185
|
+
readonly ATTR_HASH_ATTRIBUTE_KEY: "hash_attribute";
|
|
186
|
+
readonly ATTR_ID_KEY: "id";
|
|
187
|
+
readonly ATTR_NAME_KEY: "name";
|
|
188
|
+
readonly ATTR_PASSWORD_KEY: "password";
|
|
189
|
+
readonly ATTR_RESIDENCE_KEY: "residence";
|
|
190
|
+
readonly ATTR_ROLE_KEY: "role";
|
|
191
|
+
readonly ATTR_SCHEMA_KEY: "schema";
|
|
192
|
+
readonly ATTR_SCHEMA_TABLE_KEY: "schema_table";
|
|
193
|
+
readonly ATTR_TABLE_KEY: "table";
|
|
194
|
+
readonly ATTR_USERNAME_KEY: "username";
|
|
195
|
+
};
|
|
196
|
+
/** Registration key file name */
|
|
197
|
+
export declare const REG_KEY_FILE_NAME = "060493.ks";
|
|
198
|
+
/** License file name */
|
|
199
|
+
export declare const LICENSE_FILE_NAME = ".license";
|
|
200
|
+
/** Describes the available statuses for jobs */
|
|
201
|
+
export declare const JOB_STATUS_ENUM: {
|
|
202
|
+
readonly CREATED: "CREATED";
|
|
203
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
204
|
+
readonly COMPLETE: "COMPLETE";
|
|
205
|
+
readonly ERROR: "ERROR";
|
|
206
|
+
};
|
|
207
|
+
/** Operations */
|
|
208
|
+
export declare const OPERATIONS_ENUM: {
|
|
209
|
+
readonly INSERT: "insert";
|
|
210
|
+
readonly UPDATE: "update";
|
|
211
|
+
readonly UPSERT: "upsert";
|
|
212
|
+
readonly SEARCH_BY_CONDITIONS: "search_by_conditions";
|
|
213
|
+
readonly SEARCH_BY_HASH: "search_by_hash";
|
|
214
|
+
readonly SEARCH_BY_ID: "search_by_id";
|
|
215
|
+
readonly SEARCH_BY_VALUE: "search_by_value";
|
|
216
|
+
readonly SEARCH: "search";
|
|
217
|
+
readonly SQL: "sql";
|
|
218
|
+
readonly CSV_DATA_LOAD: "csv_data_load";
|
|
219
|
+
readonly CSV_FILE_LOAD: "csv_file_load";
|
|
220
|
+
readonly CSV_URL_LOAD: "csv_url_load";
|
|
221
|
+
readonly CREATE_SCHEMA: "create_schema";
|
|
222
|
+
readonly CREATE_DATABASE: "create_database";
|
|
223
|
+
readonly CREATE_TABLE: "create_table";
|
|
224
|
+
readonly CREATE_ATTRIBUTE: "create_attribute";
|
|
225
|
+
readonly DROP_SCHEMA: "drop_schema";
|
|
226
|
+
readonly DROP_DATABASE: "drop_database";
|
|
227
|
+
readonly DROP_TABLE: "drop_table";
|
|
228
|
+
readonly DESCRIBE_SCHEMA: "describe_schema";
|
|
229
|
+
readonly DESCRIBE_DATABASE: "describe_database";
|
|
230
|
+
readonly DESCRIBE_TABLE: "describe_table";
|
|
231
|
+
readonly DESCRIBE_ALL: "describe_all";
|
|
232
|
+
readonly DELETE: "delete";
|
|
233
|
+
readonly ADD_USER: "add_user";
|
|
234
|
+
readonly ALTER_USER: "alter_user";
|
|
235
|
+
readonly DROP_USER: "drop_user";
|
|
236
|
+
readonly LIST_USERS: "list_users";
|
|
237
|
+
readonly LIST_ROLES: "list_roles";
|
|
238
|
+
readonly ADD_ROLE: "add_role";
|
|
239
|
+
readonly ALTER_ROLE: "alter_role";
|
|
240
|
+
readonly DROP_ROLE: "drop_role";
|
|
241
|
+
readonly USER_INFO: "user_info";
|
|
242
|
+
readonly READ_LOG: "read_log";
|
|
243
|
+
readonly ADD_NODE: "add_node";
|
|
244
|
+
readonly UPDATE_NODE: "update_node";
|
|
245
|
+
readonly SET_NODE_REPLICATION: "set_node_replication";
|
|
246
|
+
readonly EXPORT_TO_S3: "export_to_s3";
|
|
247
|
+
readonly IMPORT_FROM_S3: "import_from_s3";
|
|
248
|
+
readonly DELETE_FILES_BEFORE: "delete_files_before";
|
|
249
|
+
readonly DELETE_RECORDS_BEFORE: "delete_records_before";
|
|
250
|
+
readonly EXPORT_LOCAL: "export_local";
|
|
251
|
+
readonly SEARCH_JOBS_BY_START_DATE: "search_jobs_by_start_date";
|
|
252
|
+
readonly GET_JOB: "get_job";
|
|
253
|
+
readonly DELETE_JOB: "delete_job";
|
|
254
|
+
readonly UPDATE_JOB: "update_job";
|
|
255
|
+
readonly GET_FINGERPRINT: "get_fingerprint";
|
|
256
|
+
readonly SET_LICENSE: "set_license";
|
|
257
|
+
readonly GET_REGISTRATION_INFO: "registration_info";
|
|
258
|
+
readonly CONFIGURE_CLUSTER: "configure_cluster";
|
|
259
|
+
readonly SET_CONFIGURATION: "set_configuration";
|
|
260
|
+
readonly CLUSTER_STATUS: "cluster_status";
|
|
261
|
+
readonly CLUSTER_NETWORK: "cluster_network";
|
|
262
|
+
readonly DROP_ATTRIBUTE: "drop_attribute";
|
|
263
|
+
readonly REMOVE_NODE: "remove_node";
|
|
264
|
+
readonly RESTART: "restart";
|
|
265
|
+
readonly RESTART_SERVICE: "restart_service";
|
|
266
|
+
readonly CATCHUP: "catchup";
|
|
267
|
+
readonly SYSTEM_INFORMATION: "system_information";
|
|
268
|
+
readonly DELETE_AUDIT_LOGS_BEFORE: "delete_audit_logs_before";
|
|
269
|
+
readonly READ_AUDIT_LOG: "read_audit_log";
|
|
270
|
+
readonly CREATE_AUTHENTICATION_TOKENS: "create_authentication_tokens";
|
|
271
|
+
readonly LOGIN: "login";
|
|
272
|
+
readonly LOGOUT: "logout";
|
|
273
|
+
readonly REFRESH_OPERATION_TOKEN: "refresh_operation_token";
|
|
274
|
+
readonly GET_CONFIGURATION: "get_configuration";
|
|
275
|
+
readonly CUSTOM_FUNCTIONS_STATUS: "custom_functions_status";
|
|
276
|
+
readonly GET_CUSTOM_FUNCTIONS: "get_custom_functions";
|
|
277
|
+
readonly GET_CUSTOM_FUNCTION: "get_custom_function";
|
|
278
|
+
readonly SET_CUSTOM_FUNCTION: "set_custom_function";
|
|
279
|
+
readonly GET_COMPONENTS: "get_components";
|
|
280
|
+
readonly GET_COMPONENT_FILE: "get_component_file";
|
|
281
|
+
readonly SET_COMPONENT_FILE: "set_component_file";
|
|
282
|
+
readonly DROP_COMPONENT: "drop_component";
|
|
283
|
+
readonly DROP_CUSTOM_FUNCTION: "drop_custom_function";
|
|
284
|
+
readonly ADD_CUSTOM_FUNCTION_PROJECT: "add_custom_function_project";
|
|
285
|
+
readonly ADD_COMPONENT: "add_component";
|
|
286
|
+
readonly DROP_CUSTOM_FUNCTION_PROJECT: "drop_custom_function_project";
|
|
287
|
+
readonly PACKAGE_CUSTOM_FUNCTION_PROJECT: "package_custom_function_project";
|
|
288
|
+
readonly DEPLOY_CUSTOM_FUNCTION_PROJECT: "deploy_custom_function_project";
|
|
289
|
+
readonly PACKAGE_COMPONENT: "package_component";
|
|
290
|
+
readonly DEPLOY_COMPONENT: "deploy_component";
|
|
291
|
+
readonly CLUSTER_SET_ROUTES: "cluster_set_routes";
|
|
292
|
+
readonly CLUSTER_DELETE_ROUTES: "cluster_delete_routes";
|
|
293
|
+
readonly CLUSTER_GET_ROUTES: "cluster_get_routes";
|
|
294
|
+
readonly READ_TRANSACTION_LOG: "read_transaction_log";
|
|
295
|
+
readonly DELETE_TRANSACTION_LOGS_BEFORE: "delete_transaction_logs_before";
|
|
296
|
+
readonly INSTALL_NODE_MODULES: "install_node_modules";
|
|
297
|
+
readonly AUDIT_NODE_MODULES: "audit_node_modules";
|
|
298
|
+
readonly PURGE_STREAM: "purge_stream";
|
|
299
|
+
readonly GET_BACKUP: "get_backup";
|
|
300
|
+
readonly SIGN_CERTIFICATE: "sign_certificate";
|
|
301
|
+
readonly CREATE_CSR: "create_csr";
|
|
302
|
+
readonly LIST_CERTIFICATES: "list_certificates";
|
|
303
|
+
readonly ADD_CERTIFICATES: "add_certificate";
|
|
304
|
+
readonly REMOVE_CERTIFICATE: "remove_certificate";
|
|
305
|
+
readonly ADD_NODE_BACK: "add_node_back";
|
|
306
|
+
readonly REMOVE_NODE_BACK: "remove_node_back";
|
|
307
|
+
readonly ADD_SSH_KEY: "add_ssh_key";
|
|
308
|
+
readonly UPDATE_SSH_KEY: "update_ssh_key";
|
|
309
|
+
readonly DELETE_SSH_KEY: "delete_ssh_key";
|
|
310
|
+
readonly LIST_SSH_KEYS: "list_ssh_keys";
|
|
311
|
+
readonly SET_SSH_KNOWN_HOSTS: "set_ssh_known_hosts";
|
|
312
|
+
readonly GET_SSH_KNOWN_HOSTS: "get_ssh_known_hosts";
|
|
313
|
+
readonly GET_KEY: "get_key";
|
|
314
|
+
};
|
|
315
|
+
/** Defines valid file types that we are able to handle in 'import_from_s3' ops */
|
|
316
|
+
export declare const VALID_S3_FILE_TYPES: {
|
|
317
|
+
readonly CSV: ".csv";
|
|
318
|
+
readonly JSON: ".json";
|
|
319
|
+
};
|
|
320
|
+
/** Defines the keys required in a request body for accessing a S3 bucket */
|
|
321
|
+
export declare const S3_BUCKET_AUTH_KEYS: {
|
|
322
|
+
readonly AWS_ACCESS_KEY: "aws_access_key_id";
|
|
323
|
+
readonly AWS_SECRET: "aws_secret_access_key";
|
|
324
|
+
readonly AWS_BUCKET: "bucket";
|
|
325
|
+
readonly AWS_FILE_KEY: "key";
|
|
326
|
+
readonly REGION: "region";
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Defines valid SQL operations to be used in the processAST method - this ensure we have appropriate unit test coverage
|
|
330
|
+
* for all SQL operations that are dynamically set after the chooseOperation method which behaves differently for the evaluateSQL operation.
|
|
331
|
+
*/
|
|
332
|
+
export declare const VALID_SQL_OPS_ENUM: {
|
|
333
|
+
readonly SELECT: "select";
|
|
334
|
+
readonly INSERT: "insert";
|
|
335
|
+
readonly UPDATE: "update";
|
|
336
|
+
readonly DELETE: "delete";
|
|
337
|
+
};
|
|
338
|
+
/** Defines operations that should be propagated to the cluster. */
|
|
339
|
+
export declare const CLUSTER_OPERATIONS: {
|
|
340
|
+
readonly insert: "insert";
|
|
341
|
+
readonly update: "update";
|
|
342
|
+
readonly upsert: "upsert";
|
|
343
|
+
readonly delete: "delete";
|
|
344
|
+
};
|
|
345
|
+
/** Available service actions */
|
|
346
|
+
export declare const SERVICE_ACTIONS_ENUM: {
|
|
347
|
+
readonly DEV: "dev";
|
|
348
|
+
readonly RUN: "run";
|
|
349
|
+
readonly START: "start";
|
|
350
|
+
readonly INSTALL: "install";
|
|
351
|
+
readonly REGISTER: "register";
|
|
352
|
+
readonly STOP: "stop";
|
|
353
|
+
readonly RESTART: "restart";
|
|
354
|
+
readonly VERSION: "version";
|
|
355
|
+
readonly UPGRADE: "upgrade";
|
|
356
|
+
readonly HELP: "help";
|
|
357
|
+
readonly STATUS: "status";
|
|
358
|
+
readonly OPERATION: "operation";
|
|
359
|
+
readonly RENEWCERTS: "renew-certs";
|
|
360
|
+
readonly COPYDB: "copy-db";
|
|
361
|
+
};
|
|
362
|
+
/** describes the Geo Conversion types */
|
|
363
|
+
export declare const GEO_CONVERSION_ENUM: {
|
|
364
|
+
readonly point: "point";
|
|
365
|
+
readonly lineString: "lineString";
|
|
366
|
+
readonly multiLineString: "multiLineString";
|
|
367
|
+
readonly multiPoint: "multiPoint";
|
|
368
|
+
readonly multiPolygon: "multiPolygon";
|
|
369
|
+
readonly polygon: "polygon";
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* These values are relics of before the config was converted to yaml.
|
|
373
|
+
* The should no longer be used. Instead use CONFIG_PARAMS.
|
|
374
|
+
*/
|
|
375
|
+
export declare const HDB_SETTINGS_NAMES: {
|
|
376
|
+
readonly HDB_ROOT_KEY: "HDB_ROOT";
|
|
377
|
+
readonly SERVER_PORT_KEY: "SERVER_PORT";
|
|
378
|
+
readonly CERT_KEY: "CERTIFICATE";
|
|
379
|
+
readonly PRIVATE_KEY_KEY: "PRIVATE_KEY";
|
|
380
|
+
readonly HTTP_SECURE_ENABLED_KEY: "HTTPS_ON";
|
|
381
|
+
readonly CORS_ENABLED_KEY: "CORS_ON";
|
|
382
|
+
readonly CORS_WHITELIST_KEY: "CORS_WHITELIST";
|
|
383
|
+
readonly LOG_LEVEL_KEY: "LOG_LEVEL";
|
|
384
|
+
readonly LOGGER_KEY: "LOGGER";
|
|
385
|
+
readonly LOG_PATH_KEY: "LOG_PATH";
|
|
386
|
+
readonly LOG_ROTATE: "LOG_ROTATE";
|
|
387
|
+
readonly LOG_ROTATE_MAX_SIZE: "LOG_ROTATE_MAX_SIZE";
|
|
388
|
+
readonly LOG_ROTATE_RETAIN: "LOG_ROTATE_RETAIN";
|
|
389
|
+
readonly LOG_ROTATE_COMPRESS: "LOG_ROTATE_COMPRESS";
|
|
390
|
+
readonly LOG_ROTATE_DATE_FORMAT: "LOG_ROTATE_DATE_FORMAT";
|
|
391
|
+
readonly LOG_ROTATE_ROTATE_MODULE: "LOG_ROTATE_ROTATE_MODULE";
|
|
392
|
+
readonly LOG_ROTATE_WORKER_INTERVAL: "LOG_ROTATE_WORKER_INTERVAL";
|
|
393
|
+
readonly LOG_ROTATE_ROTATE_INTERVAL: "LOG_ROTATE_ROTATE_INTERVAL";
|
|
394
|
+
readonly LOG_ROTATE_TIMEZONE: "LOG_ROTATE_TIMEZONE";
|
|
395
|
+
readonly LOG_DAILY_ROTATE_KEY: "LOG_DAILY_ROTATE";
|
|
396
|
+
readonly LOG_MAX_DAILY_FILES_KEY: "LOG_MAX_DAILY_FILES";
|
|
397
|
+
readonly PROPS_ENV_KEY: "NODE_ENV";
|
|
398
|
+
readonly SETTINGS_PATH_KEY: "settings_path";
|
|
399
|
+
readonly CLUSTERING_PORT_KEY: "CLUSTERING_PORT";
|
|
400
|
+
readonly CLUSTERING_NODE_NAME_KEY: "NODE_NAME";
|
|
401
|
+
readonly CLUSTERING_ENABLED_KEY: "CLUSTERING";
|
|
402
|
+
readonly ALLOW_SELF_SIGNED_SSL_CERTS: "ALLOW_SELF_SIGNED_SSL_CERTS";
|
|
403
|
+
readonly MAX_HDB_PROCESSES: "MAX_HDB_PROCESSES";
|
|
404
|
+
readonly INSTALL_USER: "install_user";
|
|
405
|
+
readonly CLUSTERING_USER_KEY: "CLUSTERING_USER";
|
|
406
|
+
readonly MAX_CLUSTERING_PROCESSES: "MAX_CLUSTERING_PROCESSES";
|
|
407
|
+
readonly SERVER_TIMEOUT_KEY: "SERVER_TIMEOUT_MS";
|
|
408
|
+
readonly SERVER_KEEP_ALIVE_TIMEOUT_KEY: "SERVER_KEEP_ALIVE_TIMEOUT";
|
|
409
|
+
readonly SERVER_HEADERS_TIMEOUT_KEY: "SERVER_HEADERS_TIMEOUT";
|
|
410
|
+
readonly DISABLE_TRANSACTION_LOG_KEY: "DISABLE_TRANSACTION_LOG";
|
|
411
|
+
readonly OPERATION_TOKEN_TIMEOUT_KEY: "OPERATION_TOKEN_TIMEOUT";
|
|
412
|
+
readonly REFRESH_TOKEN_TIMEOUT_KEY: "REFRESH_TOKEN_TIMEOUT";
|
|
413
|
+
readonly CUSTOM_FUNCTIONS_ENABLED_KEY: "CUSTOM_FUNCTIONS";
|
|
414
|
+
readonly CUSTOM_FUNCTIONS_PORT_KEY: "CUSTOM_FUNCTIONS_PORT";
|
|
415
|
+
readonly CUSTOM_FUNCTIONS_DIRECTORY_KEY: "CUSTOM_FUNCTIONS_DIRECTORY";
|
|
416
|
+
readonly MAX_CUSTOM_FUNCTION_PROCESSES: "MAX_CUSTOM_FUNCTION_PROCESSES";
|
|
417
|
+
readonly LOG_TO_FILE: "LOG_TO_FILE";
|
|
418
|
+
readonly LOG_TO_STDSTREAMS: "LOG_TO_STDSTREAMS";
|
|
419
|
+
readonly RUN_IN_FOREGROUND: "RUN_IN_FOREGROUND";
|
|
420
|
+
readonly LOCAL_STUDIO_ON: "LOCAL_STUDIO_ON";
|
|
421
|
+
readonly STORAGE_WRITE_ASYNC: "STORAGE_WRITE_ASYNC";
|
|
422
|
+
};
|
|
423
|
+
/** Legacy configuration parameters */
|
|
424
|
+
export declare const LEGACY_CONFIG_PARAMS: {
|
|
425
|
+
readonly CUSTOMFUNCTIONS_ENABLED: "customFunctions_enabled";
|
|
426
|
+
readonly CUSTOMFUNCTIONS_NETWORK_PORT: "customFunctions_network_port";
|
|
427
|
+
readonly CUSTOMFUNCTIONS_TLS_CERTIFICATE: "customFunctions_tls_certificate";
|
|
428
|
+
readonly CUSTOMFUNCTIONS_NETWORK_CORS: "customFunctions_network_cors";
|
|
429
|
+
readonly CUSTOMFUNCTIONS_NETWORK_CORSACCESSLIST: "customFunctions_network_corsAccessList";
|
|
430
|
+
readonly CUSTOMFUNCTIONS_NETWORK_HEADERSTIMEOUT: "customFunctions_network_headersTimeout";
|
|
431
|
+
readonly CUSTOMFUNCTIONS_NETWORK_HTTPS: "customFunctions_network_https";
|
|
432
|
+
readonly CUSTOMFUNCTIONS_NETWORK_KEEPALIVETIMEOUT: "customFunctions_network_keepAliveTimeout";
|
|
433
|
+
readonly CUSTOMFUNCTIONS_TLS_PRIVATEKEY: "customFunctions_tls_privateKey";
|
|
434
|
+
readonly CUSTOMFUNCTIONS_TLS_CERT_AUTH: "customFunctions_tls_certificateAuthority";
|
|
435
|
+
readonly CUSTOMFUNCTIONS_NETWORK_TIMEOUT: "customFunctions_network_timeout";
|
|
436
|
+
readonly CUSTOMFUNCTIONS_NODEENV: "customFunctions_nodeEnv";
|
|
437
|
+
readonly CUSTOMFUNCTIONS_ROOT: "customFunctions_root";
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* All configuration parameters for HarperDB
|
|
441
|
+
*
|
|
442
|
+
* If a param is added to config it must also be added here.
|
|
443
|
+
*/
|
|
444
|
+
export declare const CONFIG_PARAMS: {
|
|
445
|
+
readonly ANALYTICS_AGGREGATEPERIOD: "analytics_aggregatePeriod";
|
|
446
|
+
readonly AUTHENTICATION_AUTHORIZELOCAL: "authentication_authorizeLocal";
|
|
447
|
+
readonly AUTHENTICATION_CACHETTL: "authentication_cacheTTL";
|
|
448
|
+
readonly AUTHENTICATION_ENABLESESSIONS: "authentication_enableSessions";
|
|
449
|
+
readonly AUTHENTICATION_OPERATIONTOKENTIMEOUT: "authentication_operationTokenTimeout";
|
|
450
|
+
readonly AUTHENTICATION_REFRESHTOKENTIMEOUT: "authentication_refreshTokenTimeout";
|
|
451
|
+
readonly AUTHENTICATION_HASHFUNCTION: "authentication_hashFunction";
|
|
452
|
+
readonly CLUSTERING_USER: "clustering_user";
|
|
453
|
+
readonly CLUSTERING_ENABLED: "clustering_enabled";
|
|
454
|
+
readonly CLUSTERING_HUBSERVER_CLUSTER_NAME: "clustering_hubServer_cluster_name";
|
|
455
|
+
readonly CLUSTERING_HUBSERVER_CLUSTER_NETWORK_PORT: "clustering_hubServer_cluster_network_port";
|
|
456
|
+
readonly CLUSTERING_HUBSERVER_CLUSTER_NETWORK_ROUTES: "clustering_hubServer_cluster_network_routes";
|
|
457
|
+
readonly CLUSTERING_HUBSERVER_LEAFNODES_NETWORK_PORT: "clustering_hubServer_leafNodes_network_port";
|
|
458
|
+
readonly CLUSTERING_HUBSERVER_NETWORK_PORT: "clustering_hubServer_network_port";
|
|
459
|
+
readonly CLUSTERING_LEAFSERVER_NETWORK_PORT: "clustering_leafServer_network_port";
|
|
460
|
+
readonly CLUSTERING_LEAFSERVER_NETWORK_ROUTES: "clustering_leafServer_network_routes";
|
|
461
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_MAXAGE: "clustering_leafServer_streams_maxAge";
|
|
462
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_MAXBYTES: "clustering_leafServer_streams_maxBytes";
|
|
463
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_MAXMSGS: "clustering_leafServer_streams_maxMsgs";
|
|
464
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_MAXCONSUMEMSGS: "clustering_leafServer_streams_maxConsumeMsgs";
|
|
465
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_MAXINGESTTHREADS: "clustering_leafServer_streams_maxIngestThreads";
|
|
466
|
+
readonly CLUSTERING_LEAFSERVER_STREAMS_PATH: "clustering_leafServer_streams_path";
|
|
467
|
+
readonly CLUSTERING_NODENAME: "clustering_nodeName";
|
|
468
|
+
readonly CLUSTERING_TLS_CERTIFICATE: "clustering_tls_certificate";
|
|
469
|
+
readonly CLUSTERING_TLS_PRIVATEKEY: "clustering_tls_privateKey";
|
|
470
|
+
readonly CLUSTERING_TLS_CERT_AUTH: "clustering_tls_certificateAuthority";
|
|
471
|
+
readonly CLUSTERING_TLS_INSECURE: "clustering_tls_insecure";
|
|
472
|
+
readonly CLUSTERING_TLS_VERIFY: "clustering_tls_verify";
|
|
473
|
+
readonly CLUSTERING_LOGLEVEL: "clustering_logLevel";
|
|
474
|
+
readonly CLUSTERING_REPUBLISHMESSAGES: "clustering_republishMessages";
|
|
475
|
+
readonly CLUSTERING_DATABASELEVEL: "clustering_databaseLevel";
|
|
476
|
+
readonly CUSTOMFUNCTIONS_NETWORK_HTTPS: "customFunctions_network_https";
|
|
477
|
+
readonly THREADS: "threads";
|
|
478
|
+
readonly THREADS_COUNT: "threads_count";
|
|
479
|
+
readonly THREADS_DEBUG: "threads_debug";
|
|
480
|
+
readonly THREADS_DEBUG_STARTINGPORT: "threads_debug_startingPort";
|
|
481
|
+
readonly THREADS_DEBUG_PORT: "threads_debug_port";
|
|
482
|
+
readonly THREADS_DEBUG_HOST: "threads_debug_host";
|
|
483
|
+
readonly THREADS_DEBUG_WAITFORDEBUGGER: "threads_debug_waitForDebugger";
|
|
484
|
+
readonly THREADS_MAXHEAPMEMORY: "threads_maxHeapMemory";
|
|
485
|
+
readonly HTTP_SESSIONAFFINITY: "http_sessionAffinity";
|
|
486
|
+
readonly HTTP_COMPRESSIONTHRESHOLD: "http_compressionThreshold";
|
|
487
|
+
readonly HTTP_CORS: "http_cors";
|
|
488
|
+
readonly HTTP_CORSACCESSLIST: "http_corsAccessList";
|
|
489
|
+
readonly HTTP_HEADERSTIMEOUT: "http_headersTimeout";
|
|
490
|
+
readonly HTTP_KEEPALIVETIMEOUT: "http_keepAliveTimeout";
|
|
491
|
+
readonly HTTP_MAXPARAMLENGTH: "http_maxParamLength";
|
|
492
|
+
readonly HTTP_TIMEOUT: "http_timeout";
|
|
493
|
+
readonly HTTP_PORT: "http_port";
|
|
494
|
+
readonly HTTP_SECUREPORT: "http_securePort";
|
|
495
|
+
readonly HTTP_MTLS: "http_mtls";
|
|
496
|
+
readonly HTTP_MTLS_REQUIRED: "http_mtls_required";
|
|
497
|
+
readonly HTTP_MTLS_USER: "http_mtls_user";
|
|
498
|
+
readonly HTTP_MAXHEADERSIZE: "http_maxHeaderSize";
|
|
499
|
+
readonly HTTP_THREADRANGE: "http_threadRange";
|
|
500
|
+
readonly HTTP_HTTP2: "http_http2";
|
|
501
|
+
readonly LOCALSTUDIO_ENABLED: "localStudio_enabled";
|
|
502
|
+
readonly LOGGING_CONSOLE: "logging_console";
|
|
503
|
+
readonly LOGGING_FILE: "logging_file";
|
|
504
|
+
readonly LOGGING_LEVEL: "logging_level";
|
|
505
|
+
readonly LOGGING_ROOT: "logging_root";
|
|
506
|
+
readonly LOGGING_ROTATION_ENABLED: "logging_rotation_enabled";
|
|
507
|
+
readonly LOGGING_ROTATION_COMPRESS: "logging_rotation_compress";
|
|
508
|
+
readonly LOGGING_ROTATION_INTERVAL: "logging_rotation_interval";
|
|
509
|
+
readonly LOGGING_ROTATION_MAXSIZE: "logging_rotation_maxSize";
|
|
510
|
+
readonly LOGGING_ROTATION_PATH: "logging_rotation_path";
|
|
511
|
+
readonly LOGGING_STDSTREAMS: "logging_stdStreams";
|
|
512
|
+
readonly LOGGING_AUDITLOG: "logging_auditLog";
|
|
513
|
+
readonly LOGGING_AUDITRETENTION: "logging_auditRetention";
|
|
514
|
+
readonly LOGGING_AUDITAUTHEVENTS_LOGFAILED: "logging_auditAuthEvents_logFailed";
|
|
515
|
+
readonly LOGGING_AUDITAUTHEVENTS_LOGSUCCESSFUL: "logging_auditAuthEvents_logSuccessful";
|
|
516
|
+
readonly OPERATIONSAPI_NETWORK_CORS: "operationsApi_network_cors";
|
|
517
|
+
readonly OPERATIONSAPI_NETWORK_CORSACCESSLIST: "operationsApi_network_corsAccessList";
|
|
518
|
+
readonly OPERATIONSAPI_NETWORK_HEADERSTIMEOUT: "operationsApi_network_headersTimeout";
|
|
519
|
+
readonly OPERATIONSAPI_NETWORK_HTTPS: "operationsApi_network_https";
|
|
520
|
+
readonly OPERATIONSAPI_NETWORK_KEEPALIVETIMEOUT: "operationsApi_network_keepAliveTimeout";
|
|
521
|
+
readonly OPERATIONSAPI_NETWORK_PORT: "operationsApi_network_port";
|
|
522
|
+
readonly OPERATIONSAPI_NETWORK_DOMAINSOCKET: "operationsApi_network_domainSocket";
|
|
523
|
+
readonly OPERATIONSAPI_NETWORK_SECUREPORT: "operationsApi_network_securePort";
|
|
524
|
+
readonly OPERATIONSAPI_NETWORK_HTTP2: "operationsApi_network_http2";
|
|
525
|
+
readonly OPERATIONSAPI_TLS: "operationsApi_tls";
|
|
526
|
+
readonly OPERATIONSAPI_TLS_CERTIFICATE: "operationsApi_tls_certificate";
|
|
527
|
+
readonly OPERATIONSAPI_TLS_PRIVATEKEY: "operationsApi_tls_privateKey";
|
|
528
|
+
readonly OPERATIONSAPI_TLS_CERTIFICATEAUTHORITY: "operationsApi_tls_certificateAuthority";
|
|
529
|
+
readonly OPERATIONSAPI_NETWORK_TIMEOUT: "operationsApi_network_timeout";
|
|
530
|
+
readonly OPERATIONSAPI_SYSINFO_NETWORK: "operationsApi_sysInfo_network";
|
|
531
|
+
readonly OPERATIONSAPI_SYSINFO_DISK: "operationsApi_sysInfo_disk";
|
|
532
|
+
readonly REPLICATION: "replication";
|
|
533
|
+
readonly REPLICATION_HOSTNAME: "replication_hostname";
|
|
534
|
+
readonly REPLICATION_URL: "replication_url";
|
|
535
|
+
readonly REPLICATION_PORT: "replication_port";
|
|
536
|
+
readonly REPLICATION_SECUREPORT: "replication_securePort";
|
|
537
|
+
readonly REPLICATION_ROUTES: "replication_routes";
|
|
538
|
+
readonly REPLICATION_DATABASES: "replication_databases";
|
|
539
|
+
readonly REPLICATION_ENABLEROOTCAS: "replication_enableRootCAs";
|
|
540
|
+
readonly REPLICATION_COPYTABLESTOCATCHUP: "replication_copyTablesToCatchUp";
|
|
541
|
+
readonly ROOTPATH: "rootPath";
|
|
542
|
+
readonly SERIALIZATION_BIGINT: "serialization_bigInt";
|
|
543
|
+
readonly STORAGE_WRITEASYNC: "storage_writeAsync";
|
|
544
|
+
readonly STORAGE_OVERLAPPINGSYNC: "storage_overlappingSync";
|
|
545
|
+
readonly STORAGE_CACHING: "storage_caching";
|
|
546
|
+
readonly STORAGE_COMPRESSION: "storage_compression";
|
|
547
|
+
readonly STORAGE_NOREADAHEAD: "storage_noReadAhead";
|
|
548
|
+
readonly STORAGE_PREFETCHWRITES: "storage_prefetchWrites";
|
|
549
|
+
readonly STORAGE_ENCRYPTION: "storage_encryption";
|
|
550
|
+
readonly STORAGE_MAXTRANSACTIONQUEUETIME: "storage_maxTransactionQueueTime";
|
|
551
|
+
readonly STORAGE_PATH: "storage_path";
|
|
552
|
+
readonly STORAGE_BLOBPATHS: "storage_blobPaths";
|
|
553
|
+
readonly STORAGE_AUDIT_PATH: "storage_audit_path";
|
|
554
|
+
readonly STORAGE_MAXFREESPACETOLOAD: "storage_maxFreeSpaceToLoad";
|
|
555
|
+
readonly STORAGE_MAXFREESPACETORETAIN: "storage_maxFreeSpaceToRetain";
|
|
556
|
+
readonly STORAGE_PAGESIZE: "storage_pageSize";
|
|
557
|
+
readonly STORAGE_COMPRESSION_DICTIONARY: "storage_compression_dictionary";
|
|
558
|
+
readonly STORAGE_COMPRESSION_THRESHOLD: "storage_compression_threshold";
|
|
559
|
+
readonly STORAGE_COMPACTONSTART: "storage_compactOnStart";
|
|
560
|
+
readonly STORAGE_COMPACTONSTARTKEEPBACKUP: "storage_compactOnStartKeepBackup";
|
|
561
|
+
readonly DATABASES: "databases";
|
|
562
|
+
readonly IGNORE_SCRIPTS: "ignoreScripts";
|
|
563
|
+
readonly MQTT_NETWORK_PORT: "mqtt_network_port";
|
|
564
|
+
readonly MQTT_WEBSOCKET: "mqtt_webSocket";
|
|
565
|
+
readonly MQTT_NETWORK_SECUREPORT: "mqtt_network_securePort";
|
|
566
|
+
readonly MQTT_NETWORK_MTLS: "mqtt_network_mtls";
|
|
567
|
+
readonly MQTT_NETWORK_MTLS_REQUIRED: "mqtt_network_mtls_required";
|
|
568
|
+
readonly MQTT_NETWORK_MTLS_CERTIFICATEAUTHORITY: "mqtt_network_mtls_certificateAuthority";
|
|
569
|
+
readonly MQTT_NETWORK_MTLS_USER: "mqtt_network_mtls_user";
|
|
570
|
+
readonly MQTT_REQUIREAUTHENTICATION: "mqtt_requireAuthentication";
|
|
571
|
+
readonly COMPONENTSROOT: "componentsRoot";
|
|
572
|
+
readonly TLS_CERTIFICATE: "tls_certificate";
|
|
573
|
+
readonly TLS_PRIVATEKEY: "tls_privateKey";
|
|
574
|
+
readonly TLS_CERTIFICATEAUTHORITY: "tls_certificateAuthority";
|
|
575
|
+
readonly TLS_CIPHERS: "tls_ciphers";
|
|
576
|
+
readonly TLS: "tls";
|
|
577
|
+
readonly CLONED: "cloned";
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* This constant maps user-provided configuration parameters (from CLI, environment variables, etc.) to the
|
|
581
|
+
* case-sensitive configuration parameters. New parameters added to the CONFIG_PARAMS constant above are
|
|
582
|
+
* dynamically included in this mapping via the subsequent for loop, eliminating the need for manual updates.
|
|
583
|
+
* Additionally, this constant serves to map old configuration parameters to their updated counterparts.
|
|
584
|
+
*/
|
|
585
|
+
export declare const CONFIG_PARAM_MAP: {
|
|
586
|
+
settings_path: "settings_path";
|
|
587
|
+
hdb_root_key: "rootPath";
|
|
588
|
+
hdb_root: "rootPath";
|
|
589
|
+
rootpath: "rootPath";
|
|
590
|
+
server_port_key: "operationsApi_network_port";
|
|
591
|
+
server_port: "operationsApi_network_port";
|
|
592
|
+
cert_key: "tls_certificate";
|
|
593
|
+
certificate: "tls_certificate";
|
|
594
|
+
private_key_key: "tls_privateKey";
|
|
595
|
+
private_key: "tls_privateKey";
|
|
596
|
+
http_secure_enabled_key: "operationsApi_network_https";
|
|
597
|
+
https_on: "operationsApi_network_https";
|
|
598
|
+
cors_enabled_key: "operationsApi_network_cors";
|
|
599
|
+
cors_on: "operationsApi_network_cors";
|
|
600
|
+
cors_whitelist_key: "operationsApi_network_corsAccessList";
|
|
601
|
+
cors_whitelist: "operationsApi_network_corsAccessList";
|
|
602
|
+
cors_accesslist_key: "operationsApi_network_corsAccessList";
|
|
603
|
+
cors_accesslist: "operationsApi_network_corsAccessList";
|
|
604
|
+
log_level_key: "logging_level";
|
|
605
|
+
log_level: "logging_level";
|
|
606
|
+
log_path_key: "logging_root";
|
|
607
|
+
log_path: "logging_root";
|
|
608
|
+
clustering_node_name_key: "clustering_nodeName";
|
|
609
|
+
node_name: "clustering_nodeName";
|
|
610
|
+
clustering_enabled_key: "clustering_enabled";
|
|
611
|
+
clustering: "clustering_enabled";
|
|
612
|
+
max_http_threads: "threads_count";
|
|
613
|
+
max_hdb_processes: "threads_count";
|
|
614
|
+
server_timeout_key: "operationsApi_network_timeout";
|
|
615
|
+
server_timeout_ms: "operationsApi_network_timeout";
|
|
616
|
+
server_keep_alive_timeout_key: "operationsApi_network_keepAliveTimeout";
|
|
617
|
+
server_keep_alive_timeout: "operationsApi_network_keepAliveTimeout";
|
|
618
|
+
server_headers_timeout_key: "operationsApi_network_headersTimeout";
|
|
619
|
+
server_headers_timeout: "operationsApi_network_headersTimeout";
|
|
620
|
+
disable_transaction_log_key: "logging_auditLog";
|
|
621
|
+
disable_transaction_log: "logging_auditLog";
|
|
622
|
+
operation_token_timeout_key: "authentication_operationTokenTimeout";
|
|
623
|
+
operation_token_timeout: "authentication_operationTokenTimeout";
|
|
624
|
+
refresh_token_timeout_key: "authentication_refreshTokenTimeout";
|
|
625
|
+
refresh_token_timeout: "authentication_refreshTokenTimeout";
|
|
626
|
+
custom_functions_port_key: "http_port";
|
|
627
|
+
custom_functions_port: "http_port";
|
|
628
|
+
custom_functions_directory_key: "componentsRoot";
|
|
629
|
+
custom_functions_directory: "componentsRoot";
|
|
630
|
+
max_custom_function_processes: "threads_count";
|
|
631
|
+
logging_console: "logging_console";
|
|
632
|
+
log_to_file: "logging_file";
|
|
633
|
+
log_to_stdstreams: "logging_stdStreams";
|
|
634
|
+
local_studio_on: "localStudio_enabled";
|
|
635
|
+
clustering_port: "clustering_hubServer_cluster_network_port";
|
|
636
|
+
clustering_user: "clustering_user";
|
|
637
|
+
customfunctions_network_port: "http_port";
|
|
638
|
+
customfunctions_tls_certificate: "tls_certificate";
|
|
639
|
+
customfunctions_network_cors: "http_cors";
|
|
640
|
+
customfunctions_network_corsaccesslist: "http_corsAccessList";
|
|
641
|
+
customfunctions_network_headerstimeout: "http_headersTimeout";
|
|
642
|
+
customfunctions_network_https: "customFunctions_network_https";
|
|
643
|
+
customfunctions_network_keepalivetimeout: "http_keepAliveTimeout";
|
|
644
|
+
customfunctions_tls_privatekey: "tls_privateKey";
|
|
645
|
+
customfunctions_tls_certificateauthority: "tls_certificateAuthority";
|
|
646
|
+
customfunctions_network_timeout: "http_timeout";
|
|
647
|
+
customfunctions_tls: "tls";
|
|
648
|
+
http_threads: "threads_count";
|
|
649
|
+
threads: "threads_count";
|
|
650
|
+
threads_count: "threads_count";
|
|
651
|
+
customfunctions_processes: "threads_count";
|
|
652
|
+
customfunctions_root: "componentsRoot";
|
|
653
|
+
operationsapi_root: "rootPath";
|
|
654
|
+
};
|
|
655
|
+
/** Database parameter config */
|
|
656
|
+
export declare const DATABASES_PARAM_CONFIG: {
|
|
657
|
+
readonly TABLES: "tables";
|
|
658
|
+
readonly PATH: "path";
|
|
659
|
+
readonly AUDIT_PATH: "auditPath";
|
|
660
|
+
};
|
|
661
|
+
/** Describes all available job types */
|
|
662
|
+
export declare const JOB_TYPE_ENUM: {
|
|
663
|
+
readonly csv_file_load: "csv_file_load";
|
|
664
|
+
readonly csv_data_load: "csv_data_load";
|
|
665
|
+
readonly csv_url_load: "csv_url_load";
|
|
666
|
+
readonly delete_files_before: "delete_files_before";
|
|
667
|
+
readonly delete_records_before: "delete_records_before";
|
|
668
|
+
readonly delete_audit_logs_before: "delete_audit_logs_before";
|
|
669
|
+
readonly delete_transaction_logs_before: "delete_transaction_logs_before";
|
|
670
|
+
readonly empty_trash: "empty_trash";
|
|
671
|
+
readonly export_local: "export_local";
|
|
672
|
+
readonly export_to_s3: "export_to_s3";
|
|
673
|
+
readonly import_from_s3: "import_from_s3";
|
|
674
|
+
readonly restart_service: "restart_service";
|
|
675
|
+
};
|
|
676
|
+
/** Clustering Message types */
|
|
677
|
+
export declare const CLUSTER_MESSAGE_TYPE_ENUM: {
|
|
678
|
+
readonly CLUSTERING_PAYLOAD: "clustering_payload";
|
|
679
|
+
readonly DELEGATE_THREAD_RESPONSE: "delegate_thread_response";
|
|
680
|
+
readonly CLUSTERING: "clustering";
|
|
681
|
+
readonly SCHEMA: "schema";
|
|
682
|
+
readonly CLUSTER_STATUS: "cluster_status";
|
|
683
|
+
readonly JOB: "job";
|
|
684
|
+
readonly CHILD_STARTED: "child_started";
|
|
685
|
+
readonly CHILD_STOPPED: "child_stopped";
|
|
686
|
+
readonly USER: "user";
|
|
687
|
+
readonly RESTART: "restart";
|
|
688
|
+
};
|
|
689
|
+
/** Specifies values for licenses */
|
|
690
|
+
export declare const LICENSE_VALUES: {
|
|
691
|
+
readonly VERSION_DEFAULT: "2.2.0";
|
|
692
|
+
};
|
|
693
|
+
/** The maximum ram allocation in MB per HDB child process */
|
|
694
|
+
export declare const RAM_ALLOCATION_ENUM: {
|
|
695
|
+
readonly DEVELOPMENT: 8192;
|
|
696
|
+
readonly DEFAULT: 512;
|
|
697
|
+
};
|
|
698
|
+
/** Common Node.js Error Codes */
|
|
699
|
+
export declare const NODE_ERROR_CODES: {
|
|
700
|
+
readonly ENOENT: "ENOENT";
|
|
701
|
+
readonly EACCES: "EACCES";
|
|
702
|
+
readonly EEXIST: "EEXIST";
|
|
703
|
+
readonly ERR_INVALID_ARG_TYPE: "ERR_INVALID_ARG_TYPE";
|
|
704
|
+
};
|
|
705
|
+
/** Symbol for metadata */
|
|
706
|
+
export declare const METADATA_PROPERTY: unique symbol;
|
|
707
|
+
/** Clustering flag */
|
|
708
|
+
export declare const CLUSTERING_FLAG = "__clustering__";
|
|
709
|
+
/** Timestamp keys */
|
|
710
|
+
export declare const TIME_STAMP_NAMES_ENUM: {
|
|
711
|
+
readonly CREATED_TIME: "__createdtime__";
|
|
712
|
+
readonly UPDATED_TIME: "__updatedtime__";
|
|
713
|
+
};
|
|
714
|
+
/** Timestamp values */
|
|
715
|
+
export declare const TIME_STAMP_NAMES: readonly ["__createdtime__", "__updatedtime__"];
|
|
716
|
+
/**
|
|
717
|
+
* This value is used to help evaluate whether or not a permissions translation error is related to old permissions values or if it could be another code-related bug/error.
|
|
718
|
+
*/
|
|
719
|
+
export declare const PERMS_UPDATE_RELEASE_TIMESTAMP = 1598486400000;
|
|
720
|
+
/** Search comparator value strings */
|
|
721
|
+
export declare const VALUE_SEARCH_COMPARATORS: {
|
|
722
|
+
readonly LESS: "<";
|
|
723
|
+
readonly LESS_OR_EQ: "<=";
|
|
724
|
+
readonly GREATER: ">";
|
|
725
|
+
readonly GREATER_OR_EQ: ">=";
|
|
726
|
+
readonly BETWEEN: "...";
|
|
727
|
+
};
|
|
728
|
+
/** Inverted form of VALUE_SEARCH_COMPARATORS */
|
|
729
|
+
export declare const VALUE_SEARCH_COMPARATORS_REVERSE_LOOKUP: {
|
|
730
|
+
readonly '<': "LESS";
|
|
731
|
+
readonly '<=': "LESS_OR_EQ";
|
|
732
|
+
readonly '>': "GREATER";
|
|
733
|
+
readonly '>=': "GREATER_OR_EQ";
|
|
734
|
+
readonly '...': "BETWEEN";
|
|
735
|
+
};
|
|
736
|
+
/** Standard CRUD operation map */
|
|
737
|
+
export declare const PERMS_CRUD_ENUM: {
|
|
738
|
+
readonly READ: "read";
|
|
739
|
+
readonly INSERT: "insert";
|
|
740
|
+
readonly UPDATE: "update";
|
|
741
|
+
readonly DELETE: "delete";
|
|
742
|
+
};
|
|
743
|
+
/** Search wildcards */
|
|
744
|
+
export declare const SEARCH_WILDCARDS: readonly ["*", "%"];
|
|
745
|
+
/** Function value used in data layer and SQL transactions */
|
|
746
|
+
export declare const FUNC_VAL = "func_val";
|
|
747
|
+
/** Audit log search types for read operation */
|
|
748
|
+
export declare const READ_AUDIT_LOG_SEARCH_TYPES_ENUM: {
|
|
749
|
+
readonly HASH_VALUE: "hash_value";
|
|
750
|
+
readonly TIMESTAMP: "timestamp";
|
|
751
|
+
readonly USERNAME: "username";
|
|
752
|
+
};
|
|
753
|
+
/** JWT key and pass file names */
|
|
754
|
+
export declare const JWT_ENUM: {
|
|
755
|
+
readonly JWT_PRIVATE_KEY_NAME: ".jwtPrivate.key";
|
|
756
|
+
readonly JWT_PUBLIC_KEY_NAME: ".jwtPublic.key";
|
|
757
|
+
readonly JWT_PASSPHRASE_NAME: ".jwtPass";
|
|
758
|
+
};
|
|
759
|
+
/** ITC Channel Event types */
|
|
760
|
+
export declare const ITC_EVENT_TYPES: {
|
|
761
|
+
readonly SHUTDOWN: "shutdown";
|
|
762
|
+
readonly CHILD_STARTED: "child_started";
|
|
763
|
+
readonly CHILD_STOPPED: "child_stopped";
|
|
764
|
+
readonly SCHEMA: "schema";
|
|
765
|
+
readonly USER: "user";
|
|
766
|
+
readonly CLUSTER_STATUS_RESPONSE: "cluster_status_response";
|
|
767
|
+
readonly CLUSTER_STATUS_REQUEST: "cluster_status_request";
|
|
768
|
+
readonly METRICS: "metrics";
|
|
769
|
+
readonly GET_METRICS: "get_metrics";
|
|
770
|
+
readonly RESTART: "restart";
|
|
771
|
+
readonly START_JOB: "start_job";
|
|
772
|
+
readonly NATS_CONSUMER_UPDATE: "nats_consumer_update";
|
|
773
|
+
};
|
|
774
|
+
/** Supported thread types */
|
|
775
|
+
export declare const THREAD_TYPES: {
|
|
776
|
+
readonly HTTP: "http";
|
|
777
|
+
};
|
|
778
|
+
/** A version string for pre 4.0.0 comparison */
|
|
779
|
+
export declare const PRE_4_0_0_VERSION = "3.x.x";
|
|
780
|
+
/** Authentication audit statusses */
|
|
781
|
+
export declare const AUTH_AUDIT_STATUS: {
|
|
782
|
+
readonly SUCCESS: "success";
|
|
783
|
+
readonly FAILURE: "failure";
|
|
784
|
+
};
|
|
785
|
+
/** Authentication audit types */
|
|
786
|
+
export declare const AUTH_AUDIT_TYPES: {
|
|
787
|
+
readonly AUTHENTICATION: "authentication";
|
|
788
|
+
readonly AUTHORIZATION: "authorization";
|
|
789
|
+
};
|