@abtnode/constant 1.6.27 → 1.6.28
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/index.js +21 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const NODE_SERVICES = Object.freeze({
|
|
2
|
-
|
|
2
|
+
AUTH: 'auth',
|
|
3
|
+
AUTH_SERVICE: '@abtnode/auth-service', // deprecated
|
|
3
4
|
});
|
|
4
5
|
|
|
5
6
|
const NODE_SERVICES_PREFIX = Object.freeze({
|
|
6
|
-
AUTH_SERVICE: `/.service/${NODE_SERVICES.AUTH_SERVICE}`,
|
|
7
|
+
AUTH_SERVICE: `/.service/${NODE_SERVICES.AUTH_SERVICE}`, // deprecated
|
|
7
8
|
});
|
|
8
9
|
|
|
9
10
|
const ROLES = Object.freeze({
|
|
@@ -164,6 +165,20 @@ const RBAC_CONFIG = {
|
|
|
164
165
|
|
|
165
166
|
const DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
166
167
|
|
|
168
|
+
const EVENTS = {
|
|
169
|
+
NOTIFICATION_CREATE: 'notification.create',
|
|
170
|
+
ROUTING_UPDATED: 'routing.updated',
|
|
171
|
+
NODE_UPDATED: 'node.updated',
|
|
172
|
+
NODE_UPGRADE_PROGRESS: 'node.upgrade.progress',
|
|
173
|
+
NODE_STARTED: 'node.started',
|
|
174
|
+
NODE_STOPPED: 'node.stopped',
|
|
175
|
+
NODE_ADDED_OWNER: 'node.addedOwner',
|
|
176
|
+
DOMAIN_STATUS: 'domain.status',
|
|
177
|
+
USER_ADDED: 'user.added',
|
|
178
|
+
USER_REMOVED: 'user.removed',
|
|
179
|
+
USER_UPDATED: 'user.updated',
|
|
180
|
+
};
|
|
181
|
+
|
|
167
182
|
module.exports = Object.freeze({
|
|
168
183
|
// Blocklet Server
|
|
169
184
|
NODE_MODES: Object.freeze({
|
|
@@ -244,8 +259,8 @@ module.exports = Object.freeze({
|
|
|
244
259
|
WELLKNOWN_PATH_PREFIX: '/.well-known',
|
|
245
260
|
WELLKNOWN_ACME_CHALLENGE_PREFIX: '/.well-known/acme-challenge',
|
|
246
261
|
WELLKNOWN_DID_RESOLVER_PREFIX: '/.well-known/did.json',
|
|
247
|
-
WELLKNOWN_AUTH_PATH_PREFIX: '/.well-known/auth',
|
|
248
262
|
WELLKNOWN_PING_PREFIX: '/.well-known/ping',
|
|
263
|
+
WELLKNOWN_SERVICE_PATH_PREFIX: '/.well-known/service',
|
|
249
264
|
SLOT_FOR_IP_DNS_SITE: '888-888-888-888',
|
|
250
265
|
|
|
251
266
|
DEFAULT_ADMIN_PATH: '/admin',
|
|
@@ -289,4 +304,7 @@ module.exports = Object.freeze({
|
|
|
289
304
|
NODE_SERVICES_PREFIX,
|
|
290
305
|
|
|
291
306
|
DISK_ALERT_THRESHOLD_PERCENT: 80,
|
|
307
|
+
|
|
308
|
+
// EVENTS
|
|
309
|
+
EVENTS,
|
|
292
310
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.6.
|
|
6
|
+
"version": "1.6.28",
|
|
7
7
|
"description": "ABT Node constants",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"jest": "^27.4.5"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "acef8ea339bd8fc9c785312eb5a1a113ecbf0d4d"
|
|
24
24
|
}
|