@aldb2b/common 1.0.475 → 1.0.477

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.
@@ -0,0 +1,7 @@
1
+ export declare class Terms {
2
+ private static _NO_TERM;
3
+ private static _TERM_KEY;
4
+ static get NoTermValue(): string;
5
+ static get TermKey(): string;
6
+ static userTermKey(userId: any): string;
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Terms = void 0;
4
+ class Terms {
5
+ static get NoTermValue() {
6
+ return this._NO_TERM;
7
+ }
8
+ static get TermKey() {
9
+ return this._TERM_KEY;
10
+ }
11
+ static userTermKey(userId) {
12
+ return this._TERM_KEY + '-' + userId;
13
+ }
14
+ }
15
+ exports.Terms = Terms;
16
+ Terms._NO_TERM = 'NoTerm';
17
+ Terms._TERM_KEY = 'TermKey';
18
+ //# sourceMappingURL=terms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terms.js","sourceRoot":"","sources":["../../src/utils/terms.ts"],"names":[],"mappings":";;;AAAA,MAAa,KAAK;IAIhB,MAAM,KAAK,WAAW;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED,MAAM,KAAK,OAAO;QAChB,OAAO,IAAI,CAAC,SAAS,CAAA;IACvB,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,MAAW;QAC5B,OAAO,IAAI,CAAC,SAAS,GAAG,GAAG,GAAG,MAAM,CAAA;IACtC,CAAC;;AAdH,sBAeC;AAdgB,cAAQ,GAAG,QAAQ,CAAA;AACnB,eAAS,GAAG,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.475",
3
+ "version": "1.0.477",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,2 +0,0 @@
1
- export declare function getCurrentTermKey(): string;
2
- export declare function getUserTermKeyById(userId: string, termId: string): string;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserTermKeyById = exports.getCurrentTermKey = void 0;
4
- function getCurrentTermKey() {
5
- return 'currentTerm';
6
- }
7
- exports.getCurrentTermKey = getCurrentTermKey;
8
- function getUserTermKeyById(userId, termId) {
9
- return userId + '-' + termId;
10
- }
11
- exports.getUserTermKeyById = getUserTermKeyById;
12
- //# sourceMappingURL=get-term-keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-term-keys.js","sourceRoot":"","sources":["../../src/utils/get-term-keys.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB;IAC/B,OAAO,aAAa,CAAA;AACtB,CAAC;AAFD,8CAEC;AAED,SAAgB,kBAAkB,CAAC,MAAc,EAAE,MAAc;IAC/D,OAAO,MAAM,GAAG,GAAG,GAAG,MAAM,CAAA;AAC9B,CAAC;AAFD,gDAEC"}