@abtnode/constant 1.16.25-next-44800645 → 1.16.25-next-1ada5956

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.
Files changed (2) hide show
  1. package/index.js +17 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -387,6 +387,20 @@ const ROUTING_RESPONSE_TYPES = [
387
387
  value: 'image/svg+xml',
388
388
  },
389
389
  ];
390
+ const LAUNCH_SESSION_STATUS = Object.freeze({
391
+ created: 0,
392
+ selected: 10,
393
+ connected: 20,
394
+ paid: 30,
395
+ nftMinted: 35,
396
+ allocated: 40,
397
+ consuming: 46,
398
+ installed: 50,
399
+ expired: 60,
400
+ terminated: 70,
401
+ timeout: 80,
402
+ transferred: 90,
403
+ });
390
404
 
391
405
  module.exports = Object.freeze({
392
406
  // Blocklet Server
@@ -575,7 +589,6 @@ module.exports = Object.freeze({
575
589
  },
576
590
 
577
591
  LOG_RETAIN_IN_DAYS: 60,
578
- EXPIRED_BLOCKLET_DATA_RETENTION_DAYS: 30,
579
592
 
580
593
  BLOCKLET_INSTALL_TYPE: {
581
594
  STORE: 'store',
@@ -606,6 +619,8 @@ module.exports = Object.freeze({
606
619
  USER_TYPE,
607
620
  SERVER_CACHE_TTL: 300 * 1000, // 5 minutes
608
621
  BLOCKLET_CACHE_TTL: 3600 * 1000, // 1 hour
622
+ SESSION_CACHE_TTL: 3600, // 1h: unit seconds
623
+ SESSION_TTL: 7 * 86400, // 7d: unit seconds
609
624
 
610
625
  BACKUPS,
611
626
 
@@ -624,4 +639,5 @@ module.exports = Object.freeze({
624
639
  FEDERATED,
625
640
  SESSION_TOKEN_STORAGE_KEY: 'login_token',
626
641
  REFRESH_TOKEN_STORAGE_KEY: 'refresh_token',
642
+ LAUNCH_SESSION_STATUS,
627
643
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.25-next-44800645",
6
+ "version": "1.16.25-next-1ada5956",
7
7
  "description": "ABT Node constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^29.7.0"
22
22
  },
23
- "gitHead": "7d09cee17eb88bcfe6a4b298a0394c5945aa5f2e"
23
+ "gitHead": "acabb2f45de011bb6db8038202c5632e85aef8f5"
24
24
  }