@esb-market-contracts/admin-backend 1.7.1 → 1.8.0

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/constants.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { UnofficialStatusCode } from 'hono/utils/http-status';
4
+
5
+ export declare const AUTH_TIMEOUT_STATUS_CODE: UnofficialStatusCode;
6
+ export declare const INVALID_SESSION_STATUS_CODE: UnofficialStatusCode;
7
+
8
+ export {};
package/constants.js ADDED
@@ -0,0 +1,9 @@
1
+ // src/app/flows/authentication/authentication.constants.ts
2
+ var SESSION_TOKEN_TTL_SECONDS = 60 * 15;
3
+ var REFRESH_TOKEN_TTL_SECONDS = 60 * 60 * 24 * 7;
4
+ var AUTH_TIMEOUT_STATUS_CODE = 440;
5
+ var INVALID_SESSION_STATUS_CODE = 498;
6
+ export {
7
+ AUTH_TIMEOUT_STATUS_CODE,
8
+ INVALID_SESSION_STATUS_CODE
9
+ };
package/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export type * from './api';
2
2
  export type * from './enums';
3
3
  export type * from './types';
4
- export * from './enums';
4
+ export type * from './constants';
5
+ export * from './enums';
6
+ export * from './constants';
package/index.js CHANGED
@@ -1 +1,2 @@
1
- export * from './enums.js';
1
+ export * from './enums.js';
2
+ export * from './constants.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esb-market-contracts/admin-backend",
3
3
  "description": "Shared TypeScript contract definitions for admin-backend.",
4
- "version": "1.7.1",
4
+ "version": "1.8.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -13,7 +13,9 @@
13
13
  "enums.d.ts",
14
14
  "enums.js",
15
15
  "types.d.ts",
16
- "types.js"
16
+ "types.js",
17
+ "constants.d.ts",
18
+ "constants.js"
17
19
  ],
18
20
  "exports": {
19
21
  ".": {
@@ -31,6 +33,10 @@
31
33
  "./types": {
32
34
  "types": "./types.d.ts",
33
35
  "default": "./types.js"
36
+ },
37
+ "./constants": {
38
+ "types": "./constants.d.ts",
39
+ "default": "./constants.js"
34
40
  }
35
41
  },
36
42
  "types": "./index.d.ts"