@onereach/billing-shared 29.11.3-beta.10142.0 → 29.11.3

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 (65) hide show
  1. package/dist/cjs/constants/index.js +0 -2
  2. package/dist/cjs/constants/index.js.map +1 -1
  3. package/dist/cjs/enums/index.js +0 -1
  4. package/dist/cjs/enums/index.js.map +1 -1
  5. package/dist/cjs/types/index.js +0 -1
  6. package/dist/cjs/types/index.js.map +1 -1
  7. package/dist/cjs/utils/index.js +0 -1
  8. package/dist/cjs/utils/index.js.map +1 -1
  9. package/dist/esm/constants/index.js +0 -2
  10. package/dist/esm/constants/index.js.map +1 -1
  11. package/dist/esm/enums/index.js +0 -1
  12. package/dist/esm/enums/index.js.map +1 -1
  13. package/dist/esm/types/index.js +0 -1
  14. package/dist/esm/types/index.js.map +1 -1
  15. package/dist/esm/utils/index.js +0 -1
  16. package/dist/esm/utils/index.js.map +1 -1
  17. package/dist/types/constants/index.d.ts +0 -2
  18. package/dist/types/constants/index.d.ts.map +1 -1
  19. package/dist/types/enums/index.d.ts +0 -1
  20. package/dist/types/enums/index.d.ts.map +1 -1
  21. package/dist/types/types/index.d.ts +0 -1
  22. package/dist/types/types/index.d.ts.map +1 -1
  23. package/dist/types/utils/index.d.ts +0 -1
  24. package/dist/types/utils/index.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/scripts/dev-single.mjs +15 -41
  27. package/src/constants/index.ts +0 -2
  28. package/src/enums/index.ts +0 -1
  29. package/src/types/index.ts +0 -1
  30. package/src/utils/index.ts +0 -1
  31. package/dist/cjs/constants/currency.js +0 -5
  32. package/dist/cjs/constants/currency.js.map +0 -1
  33. package/dist/cjs/constants/usage-worker.js +0 -12
  34. package/dist/cjs/constants/usage-worker.js.map +0 -1
  35. package/dist/cjs/enums/billing-domain.js +0 -78
  36. package/dist/cjs/enums/billing-domain.js.map +0 -1
  37. package/dist/cjs/types/billing-domain.js +0 -3
  38. package/dist/cjs/types/billing-domain.js.map +0 -1
  39. package/dist/cjs/utils/environment-name.js +0 -17
  40. package/dist/cjs/utils/environment-name.js.map +0 -1
  41. package/dist/esm/constants/currency.js +0 -2
  42. package/dist/esm/constants/currency.js.map +0 -1
  43. package/dist/esm/constants/usage-worker.js +0 -6
  44. package/dist/esm/constants/usage-worker.js.map +0 -1
  45. package/dist/esm/enums/billing-domain.js +0 -75
  46. package/dist/esm/enums/billing-domain.js.map +0 -1
  47. package/dist/esm/types/billing-domain.js +0 -2
  48. package/dist/esm/types/billing-domain.js.map +0 -1
  49. package/dist/esm/utils/environment-name.js +0 -11
  50. package/dist/esm/utils/environment-name.js.map +0 -1
  51. package/dist/types/constants/currency.d.ts +0 -2
  52. package/dist/types/constants/currency.d.ts.map +0 -1
  53. package/dist/types/constants/usage-worker.d.ts +0 -4
  54. package/dist/types/constants/usage-worker.d.ts.map +0 -1
  55. package/dist/types/enums/billing-domain.d.ts +0 -65
  56. package/dist/types/enums/billing-domain.d.ts.map +0 -1
  57. package/dist/types/types/billing-domain.d.ts +0 -33
  58. package/dist/types/types/billing-domain.d.ts.map +0 -1
  59. package/dist/types/utils/environment-name.d.ts +0 -2
  60. package/dist/types/utils/environment-name.d.ts.map +0 -1
  61. package/src/constants/currency.ts +0 -1
  62. package/src/constants/usage-worker.ts +0 -8
  63. package/src/enums/billing-domain.ts +0 -73
  64. package/src/types/billing-domain.ts +0 -36
  65. package/src/utils/environment-name.ts +0 -12
@@ -16,8 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.BATCH_SIZE = exports.test = void 0;
18
18
  __exportStar(require("./login-audit"), exports);
19
- __exportStar(require("./usage-worker"), exports);
20
- __exportStar(require("./currency"), exports);
21
19
  exports.test = 'test';
22
20
  exports.BATCH_SIZE = 10;
23
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,6CAA2B;AAEd,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,UAAU,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAEjB,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,UAAU,GAAG,EAAE,CAAC"}
@@ -30,5 +30,4 @@ __exportStar(require("./errored-sku"), exports);
30
30
  __exportStar(require("./sku-status"), exports);
31
31
  __exportStar(require("./customer-account-action"), exports);
32
32
  __exportStar(require("./environment-status"), exports);
33
- __exportStar(require("./billing-domain"), exports);
34
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,6CAA2B;AAC3B,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,4CAA0B;AAC1B,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,+CAA6B;AAC7B,4DAA0C;AAC1C,uDAAqC;AACrC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,6CAA2B;AAC3B,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,4CAA0B;AAC1B,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,+CAA6B;AAC7B,4DAA0C;AAC1C,uDAAqC"}
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
- __exportStar(require("./billing-domain"), exports);
19
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./math"), exports);
18
- __exportStar(require("./environment-name"), exports);
19
18
  __exportStar(require("./date"), exports);
20
19
  __exportStar(require("./format-date"), exports);
21
20
  __exportStar(require("./escape-csv-value"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,qDAAmC;AACnC,yCAAuB;AACvB,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,0DAAwC"}
@@ -1,6 +1,4 @@
1
1
  export * from './login-audit';
2
- export * from './usage-worker';
3
- export * from './currency';
4
2
  export const test = 'test';
5
3
  export const BATCH_SIZE = 10;
6
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAE3B,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC;AAC3B,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC;AAC3B,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC"}
@@ -14,5 +14,4 @@ export * from './errored-sku';
14
14
  export * from './sku-status';
15
15
  export * from './customer-account-action';
16
16
  export * from './environment-status';
17
- export * from './billing-domain';
18
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from './common';
2
- export * from './billing-domain';
3
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export * from './math';
2
- export * from './environment-name';
3
2
  export * from './date';
4
3
  export * from './format-date';
5
4
  export * from './escape-csv-value';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  export * from './login-audit';
2
- export * from './usage-worker';
3
- export * from './currency';
4
2
  export declare const test = "test";
5
3
  export declare const BATCH_SIZE = 10;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,KAAK,CAAC"}
@@ -14,5 +14,4 @@ export * from './errored-sku';
14
14
  export * from './sku-status';
15
15
  export * from './customer-account-action';
16
16
  export * from './environment-status';
17
- export * from './billing-domain';
18
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from './common';
2
- export * from './billing-domain';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export * from './math';
2
- export * from './environment-name';
3
2
  export * from './date';
4
3
  export * from './format-date';
5
4
  export * from './escape-csv-value';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/billing-shared",
3
- "version": "29.11.3-beta.10142.0",
3
+ "version": "29.11.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,5 +1,5 @@
1
1
  import { spawn } from 'node:child_process';
2
- import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
2
+ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
3
3
  import { resolve, dirname } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
 
@@ -8,58 +8,32 @@ const __dirname = dirname(__filename);
8
8
 
9
9
  const lockDir = '/tmp/shared-esm-build.lock';
10
10
  const pidFile = resolve(lockDir, 'pid');
11
- let ownsLock = false;
12
11
 
13
12
  const isAlive = (pid) => { try { process.kill(pid, 0);return true; } catch { return false; } };
14
- try {
15
- mkdirSync(lockDir);
16
- ownsLock = true;
17
- } catch (error) {
18
- if (error.code !== 'EEXIST') throw error;
19
-
20
- let oldPid = NaN;
21
- // eslint-disable-next-line no-empty
22
- try { oldPid = Number(readFileSync(pidFile, 'utf8').trim()); } catch {}
23
- if (!Number.isNaN(oldPid) && isAlive(oldPid)) {
24
- // eslint-disable-next-line no-console
25
- console.log(`shared already running (pid=${oldPid})`);
26
- process.exit(0);
27
- }
28
-
29
- throw new Error(`Stale shared build lock at ${lockDir}. Remove it and retry.`);
13
+ if (!existsSync(lockDir)) mkdirSync(lockDir, { recursive: true });
14
+
15
+ let oldPid = NaN;
16
+ // eslint-disable-next-line no-empty
17
+ try { oldPid = Number(readFileSync(pidFile, 'utf8').trim()); } catch {}
18
+ if (!Number.isNaN(oldPid) && isAlive(oldPid)) {
19
+ // eslint-disable-next-line no-console
20
+ console.log(`shared already run (pid=${oldPid})`);
21
+ process.exit(0);
30
22
  }
31
23
 
32
24
  writeFileSync(pidFile, String(process.pid), 'utf8');
33
- const cleanup = () => {
34
- if (!ownsLock) return;
35
- ownsLock = false;
36
- rmSync(lockDir, {
37
- recursive: true,
38
- force: true,
39
- });
40
- };
25
+ // eslint-disable-next-line no-empty
26
+ const cleanup = () => { try { rmSync(pidFile, { force: true }); } catch {} };
41
27
  process.on('exit', cleanup);
28
+ process.on('SIGINT', () => { cleanup();process.exit(130); });
29
+ process.on('SIGTERM', () => { cleanup();process.exit(143); });
42
30
 
43
31
  const child = spawn('pnpm', ['build:watch:esm'], {
44
32
  stdio: 'inherit',
45
33
  cwd: resolve(__dirname, '..'),
46
34
  });
47
-
48
- let shuttingDown = false;
49
- const shutdown = (signal) => {
50
- if (shuttingDown) return;
51
- shuttingDown = true;
52
- child.kill(signal);
53
- };
54
- process.on('SIGINT', () => shutdown('SIGINT'));
55
- process.on('SIGTERM', () => shutdown('SIGTERM'));
56
-
57
35
  child.on('exit', (code, signal) => {
58
36
  cleanup();
59
- if (signal) {
60
- process.removeAllListeners(signal);
61
- process.kill(process.pid, signal);
62
- return;
63
- }
37
+ if (signal) process.kill(process.pid, signal);
64
38
  process.exit(code ?? 0);
65
39
  });
@@ -1,6 +1,4 @@
1
1
  export * from './login-audit';
2
- export * from './usage-worker';
3
- export * from './currency';
4
2
 
5
3
  export const test = 'test';
6
4
  export const BATCH_SIZE = 10;
@@ -14,4 +14,3 @@ export * from './errored-sku';
14
14
  export * from './sku-status';
15
15
  export * from './customer-account-action';
16
16
  export * from './environment-status';
17
- export * from './billing-domain';
@@ -1,2 +1 @@
1
1
  export * from './common';
2
- export * from './billing-domain';
@@ -1,5 +1,4 @@
1
1
  export * from './math';
2
- export * from './environment-name';
3
2
  export * from './date';
4
3
  export * from './format-date';
5
4
  export * from './escape-csv-value';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USD_CURRENCY = void 0;
4
- exports.USD_CURRENCY = 'USD';
5
- //# sourceMappingURL=currency.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../src/constants/currency.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,KAAK,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isUsageWorkerCategory = exports.USAGE_WORKER_CATEGORIES = void 0;
4
- var enums_1 = require("../enums");
5
- exports.USAGE_WORKER_CATEGORIES = [
6
- enums_1.CategoryNamespace.EXECUTABLE_LLM,
7
- ];
8
- var isUsageWorkerCategory = function (category) {
9
- return exports.USAGE_WORKER_CATEGORIES.includes(category);
10
- };
11
- exports.isUsageWorkerCategory = isUsageWorkerCategory;
12
- //# sourceMappingURL=usage-worker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-worker.js","sourceRoot":"","sources":["../../../src/constants/usage-worker.ts"],"names":[],"mappings":";;;AAAA,kCAA6C;AAEhC,QAAA,uBAAuB,GAAiC;IACnE,yBAAiB,CAAC,cAAc;CACjC,CAAC;AAEK,IAAM,qBAAqB,GAAG,UAAC,QAA2B;IAC/D,OAAA,+BAAuB,CAAC,QAAQ,CAAC,QAAQ,CAAC;AAA1C,CAA0C,CAAC;AADhC,QAAA,qBAAqB,yBACW"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrepaymentStatus = exports.PrepaymentInvoiceType = exports.PrepaymentBucket = exports.InvoiceType = exports.UsageStrategyKey = exports.ThresholdCondition = exports.Status = exports.ProcessingStatus = exports.LogicalCategoryEnum = exports.BusinessCategoryEnum = void 0;
4
- var BusinessCategoryEnum;
5
- (function (BusinessCategoryEnum) {
6
- BusinessCategoryEnum["USERS"] = "Users";
7
- BusinessCategoryEnum["IDENTIFIERS"] = "Identifiers";
8
- BusinessCategoryEnum["PROCESSING"] = "Processing";
9
- BusinessCategoryEnum["TELEPHONY"] = "Telephony";
10
- BusinessCategoryEnum["MESSAGING"] = "Messaging";
11
- BusinessCategoryEnum["EXECUTABLE"] = "Executable";
12
- BusinessCategoryEnum["CARRIER_FEES"] = "Carrier Fees";
13
- BusinessCategoryEnum["DATA_STORAGE"] = "Data Storage";
14
- BusinessCategoryEnum["PRODUCT"] = "Product";
15
- })(BusinessCategoryEnum || (exports.BusinessCategoryEnum = BusinessCategoryEnum = {}));
16
- var LogicalCategoryEnum;
17
- (function (LogicalCategoryEnum) {
18
- LogicalCategoryEnum["USAGE"] = "usage";
19
- LogicalCategoryEnum["USERS"] = "users";
20
- LogicalCategoryEnum["IDENTIFIERS"] = "identifiers";
21
- LogicalCategoryEnum["STORAGE"] = "storage";
22
- })(LogicalCategoryEnum || (exports.LogicalCategoryEnum = LogicalCategoryEnum = {}));
23
- var ProcessingStatus;
24
- (function (ProcessingStatus) {
25
- ProcessingStatus["QUEUED"] = "queued";
26
- ProcessingStatus["IN_PROGRESS"] = "in_progress";
27
- ProcessingStatus["SUCCESS"] = "success";
28
- ProcessingStatus["SKIPPED"] = "skipped";
29
- ProcessingStatus["ERROR"] = "error";
30
- ProcessingStatus["CANCELLED"] = "cancelled";
31
- })(ProcessingStatus || (exports.ProcessingStatus = ProcessingStatus = {}));
32
- var Status;
33
- (function (Status) {
34
- Status["ACTIVE"] = "active";
35
- Status["NOT_ACTIVE"] = "not_active";
36
- })(Status || (exports.Status = Status = {}));
37
- var ThresholdCondition;
38
- (function (ThresholdCondition) {
39
- ThresholdCondition["DAILY_MAX_TRAFFIC"] = "dailyMaxTraffic";
40
- ThresholdCondition["WEEKLY_MAX_TRAFFIC"] = "weeklyMaxTraffic";
41
- ThresholdCondition["MONTHLY_MAX_TRAFFIC"] = "monthlyMaxTraffic";
42
- })(ThresholdCondition || (exports.ThresholdCondition = ThresholdCondition = {}));
43
- var UsageStrategyKey;
44
- (function (UsageStrategyKey) {
45
- UsageStrategyKey["PROD"] = "production";
46
- UsageStrategyKey["AZURE"] = "azure";
47
- UsageStrategyKey["DRUID"] = "druid";
48
- UsageStrategyKey["FALLBACK_AZURE_PRIMARY"] = "fallback:azure";
49
- UsageStrategyKey["FALLBACK_DRUID_PRIMARY"] = "fallback:druid";
50
- })(UsageStrategyKey || (exports.UsageStrategyKey = UsageStrategyKey = {}));
51
- var InvoiceType;
52
- (function (InvoiceType) {
53
- InvoiceType["USAGE"] = "USAGE";
54
- InvoiceType["OTHER"] = "OTHER";
55
- InvoiceType["MANUAL"] = "MANUAL";
56
- InvoiceType["MEMO"] = "MEMO";
57
- })(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
58
- var PrepaymentBucket;
59
- (function (PrepaymentBucket) {
60
- PrepaymentBucket["USAGE"] = "USAGE";
61
- PrepaymentBucket["PLATFORM"] = "PLATFORM";
62
- PrepaymentBucket["CUSTOM"] = "CUSTOM";
63
- PrepaymentBucket["VARIABLE"] = "VARIABLE";
64
- PrepaymentBucket["PDE"] = "PDE";
65
- PrepaymentBucket["PROFESSIONAL"] = "PROFESSIONAL";
66
- PrepaymentBucket["OTHER"] = "OTHER";
67
- })(PrepaymentBucket || (exports.PrepaymentBucket = PrepaymentBucket = {}));
68
- var PrepaymentInvoiceType;
69
- (function (PrepaymentInvoiceType) {
70
- PrepaymentInvoiceType["USAGE"] = "USAGE";
71
- PrepaymentInvoiceType["OTHER"] = "OTHER";
72
- })(PrepaymentInvoiceType || (exports.PrepaymentInvoiceType = PrepaymentInvoiceType = {}));
73
- var PrepaymentStatus;
74
- (function (PrepaymentStatus) {
75
- PrepaymentStatus["ACTIVE"] = "ACTIVE";
76
- PrepaymentStatus["CANCELED"] = "CANCELED";
77
- })(PrepaymentStatus || (exports.PrepaymentStatus = PrepaymentStatus = {}));
78
- //# sourceMappingURL=billing-domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.js","sourceRoot":"","sources":["../../../src/enums/billing-domain.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,mDAA2B,CAAA;IAC3B,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,qDAA6B,CAAA;IAC7B,qDAA6B,CAAA;IAC7B,2CAAmB,CAAA;AACrB,CAAC,EAVW,oBAAoB,oCAApB,oBAAoB,QAU/B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,sCAAe,CAAA;IACf,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,2CAAuB,CAAA;AACzB,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,mCAAyB,CAAA;AAC3B,CAAC,EAHW,MAAM,sBAAN,MAAM,QAGjB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAqC,CAAA;IACrC,6DAAuC,CAAA;IACvC,+DAAyC,CAAA;AAC3C,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,6DAAyC,CAAA;AAC3C,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,+BAAW,CAAA;IACX,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;AACjB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,wCAAe,CAAA;AACjB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=billing-domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.js","sourceRoot":"","sources":["../../../src/types/billing-domain.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveEnvironmentName = void 0;
4
- var capitalizeWords = function (value) { return value
5
- .trim()
6
- .split(/\s+/)
7
- .filter(Boolean)
8
- .map(function (word) { return "".concat(word.charAt(0).toUpperCase()).concat(word.slice(1).toLowerCase()); })
9
- .join(' '); };
10
- var resolveEnvironmentName = function (client, environment) {
11
- return [client, environment]
12
- .filter(function (value) { return Boolean(value === null || value === void 0 ? void 0 : value.trim()); })
13
- .map(capitalizeWords)
14
- .join(' ');
15
- };
16
- exports.resolveEnvironmentName = resolveEnvironmentName;
17
- //# sourceMappingURL=environment-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment-name.js","sourceRoot":"","sources":["../../../src/utils/environment-name.ts"],"names":[],"mappings":";;;AAAA,IAAM,eAAe,GAAG,UAAC,KAAa,IAAa,OAAA,KAAK;KACrD,IAAI,EAAE;KACN,KAAK,CAAC,KAAK,CAAC;KACZ,MAAM,CAAC,OAAO,CAAC;KACf,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,UAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,SAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAE,EAA/D,CAA+D,CAAC;KAC5E,IAAI,CAAC,GAAG,CAAC,EALuC,CAKvC,CAAC;AAEN,IAAM,sBAAsB,GAAG,UAAC,MAAsB,EAAE,WAA2B;IACxF,OAAA,CAAC,MAAM,EAAE,WAAW,CAAC;SAClB,MAAM,CAAC,UAAC,KAAK,IAAsB,OAAA,OAAO,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,CAAC,EAAtB,CAAsB,CAAC;SAC1D,GAAG,CAAC,eAAe,CAAC;SACpB,IAAI,CAAC,GAAG,CAAC;AAHZ,CAGY,CAAC;AAJF,QAAA,sBAAsB,0BAIpB"}
@@ -1,2 +0,0 @@
1
- export const USD_CURRENCY = 'USD';
2
- //# sourceMappingURL=currency.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../src/constants/currency.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC"}
@@ -1,6 +0,0 @@
1
- import { CategoryNamespace } from '../enums';
2
- export const USAGE_WORKER_CATEGORIES = [
3
- CategoryNamespace.EXECUTABLE_LLM,
4
- ];
5
- export const isUsageWorkerCategory = (category) => USAGE_WORKER_CATEGORIES.includes(category);
6
- //# sourceMappingURL=usage-worker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-worker.js","sourceRoot":"","sources":["../../../src/constants/usage-worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,CAAC,MAAM,uBAAuB,GAAiC;IACnE,iBAAiB,CAAC,cAAc;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAA2B,EAAW,EAAE,CAC5E,uBAAuB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,75 +0,0 @@
1
- export var BusinessCategoryEnum;
2
- (function (BusinessCategoryEnum) {
3
- BusinessCategoryEnum["USERS"] = "Users";
4
- BusinessCategoryEnum["IDENTIFIERS"] = "Identifiers";
5
- BusinessCategoryEnum["PROCESSING"] = "Processing";
6
- BusinessCategoryEnum["TELEPHONY"] = "Telephony";
7
- BusinessCategoryEnum["MESSAGING"] = "Messaging";
8
- BusinessCategoryEnum["EXECUTABLE"] = "Executable";
9
- BusinessCategoryEnum["CARRIER_FEES"] = "Carrier Fees";
10
- BusinessCategoryEnum["DATA_STORAGE"] = "Data Storage";
11
- BusinessCategoryEnum["PRODUCT"] = "Product";
12
- })(BusinessCategoryEnum || (BusinessCategoryEnum = {}));
13
- export var LogicalCategoryEnum;
14
- (function (LogicalCategoryEnum) {
15
- LogicalCategoryEnum["USAGE"] = "usage";
16
- LogicalCategoryEnum["USERS"] = "users";
17
- LogicalCategoryEnum["IDENTIFIERS"] = "identifiers";
18
- LogicalCategoryEnum["STORAGE"] = "storage";
19
- })(LogicalCategoryEnum || (LogicalCategoryEnum = {}));
20
- export var ProcessingStatus;
21
- (function (ProcessingStatus) {
22
- ProcessingStatus["QUEUED"] = "queued";
23
- ProcessingStatus["IN_PROGRESS"] = "in_progress";
24
- ProcessingStatus["SUCCESS"] = "success";
25
- ProcessingStatus["SKIPPED"] = "skipped";
26
- ProcessingStatus["ERROR"] = "error";
27
- ProcessingStatus["CANCELLED"] = "cancelled";
28
- })(ProcessingStatus || (ProcessingStatus = {}));
29
- export var Status;
30
- (function (Status) {
31
- Status["ACTIVE"] = "active";
32
- Status["NOT_ACTIVE"] = "not_active";
33
- })(Status || (Status = {}));
34
- export var ThresholdCondition;
35
- (function (ThresholdCondition) {
36
- ThresholdCondition["DAILY_MAX_TRAFFIC"] = "dailyMaxTraffic";
37
- ThresholdCondition["WEEKLY_MAX_TRAFFIC"] = "weeklyMaxTraffic";
38
- ThresholdCondition["MONTHLY_MAX_TRAFFIC"] = "monthlyMaxTraffic";
39
- })(ThresholdCondition || (ThresholdCondition = {}));
40
- export var UsageStrategyKey;
41
- (function (UsageStrategyKey) {
42
- UsageStrategyKey["PROD"] = "production";
43
- UsageStrategyKey["AZURE"] = "azure";
44
- UsageStrategyKey["DRUID"] = "druid";
45
- UsageStrategyKey["FALLBACK_AZURE_PRIMARY"] = "fallback:azure";
46
- UsageStrategyKey["FALLBACK_DRUID_PRIMARY"] = "fallback:druid";
47
- })(UsageStrategyKey || (UsageStrategyKey = {}));
48
- export var InvoiceType;
49
- (function (InvoiceType) {
50
- InvoiceType["USAGE"] = "USAGE";
51
- InvoiceType["OTHER"] = "OTHER";
52
- InvoiceType["MANUAL"] = "MANUAL";
53
- InvoiceType["MEMO"] = "MEMO";
54
- })(InvoiceType || (InvoiceType = {}));
55
- export var PrepaymentBucket;
56
- (function (PrepaymentBucket) {
57
- PrepaymentBucket["USAGE"] = "USAGE";
58
- PrepaymentBucket["PLATFORM"] = "PLATFORM";
59
- PrepaymentBucket["CUSTOM"] = "CUSTOM";
60
- PrepaymentBucket["VARIABLE"] = "VARIABLE";
61
- PrepaymentBucket["PDE"] = "PDE";
62
- PrepaymentBucket["PROFESSIONAL"] = "PROFESSIONAL";
63
- PrepaymentBucket["OTHER"] = "OTHER";
64
- })(PrepaymentBucket || (PrepaymentBucket = {}));
65
- export var PrepaymentInvoiceType;
66
- (function (PrepaymentInvoiceType) {
67
- PrepaymentInvoiceType["USAGE"] = "USAGE";
68
- PrepaymentInvoiceType["OTHER"] = "OTHER";
69
- })(PrepaymentInvoiceType || (PrepaymentInvoiceType = {}));
70
- export var PrepaymentStatus;
71
- (function (PrepaymentStatus) {
72
- PrepaymentStatus["ACTIVE"] = "ACTIVE";
73
- PrepaymentStatus["CANCELED"] = "CANCELED";
74
- })(PrepaymentStatus || (PrepaymentStatus = {}));
75
- //# sourceMappingURL=billing-domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.js","sourceRoot":"","sources":["../../../src/enums/billing-domain.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,mDAA2B,CAAA;IAC3B,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,qDAA6B,CAAA;IAC7B,qDAA6B,CAAA;IAC7B,2CAAmB,CAAA;AACrB,CAAC,EAVW,oBAAoB,KAApB,oBAAoB,QAU/B;AAED,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,sCAAe,CAAA;IACf,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,2CAAuB,CAAA;AACzB,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AAED,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,mCAAyB,CAAA;AAC3B,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAED,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAqC,CAAA;IACrC,6DAAuC,CAAA;IACvC,+DAAyC,CAAA;AAC3C,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AAED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,6DAAyC,CAAA;AAC3C,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,4BAAa,CAAA;AACf,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAED,MAAM,CAAN,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,+BAAW,CAAA;IACX,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;AACjB,CAAC,EARW,gBAAgB,KAAhB,gBAAgB,QAQ3B;AAED,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,wCAAe,CAAA;AACjB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AAED,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=billing-domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.js","sourceRoot":"","sources":["../../../src/types/billing-domain.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- const capitalizeWords = (value) => value
2
- .trim()
3
- .split(/\s+/)
4
- .filter(Boolean)
5
- .map(word => `${word.charAt(0).toUpperCase()}${word.slice(1).toLowerCase()}`)
6
- .join(' ');
7
- export const resolveEnvironmentName = (client, environment) => [client, environment]
8
- .filter((value) => Boolean(value === null || value === void 0 ? void 0 : value.trim()))
9
- .map(capitalizeWords)
10
- .join(' ');
11
- //# sourceMappingURL=environment-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment-name.js","sourceRoot":"","sources":["../../../src/utils/environment-name.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK;KACrD,IAAI,EAAE;KACN,KAAK,CAAC,KAAK,CAAC;KACZ,MAAM,CAAC,OAAO,CAAC;KACf,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;KAC5E,IAAI,CAAC,GAAG,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAsB,EAAE,WAA2B,EAAU,EAAE,CACpG,CAAC,MAAM,EAAE,WAAW,CAAC;KAClB,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,CAAC,CAAC;KAC1D,GAAG,CAAC,eAAe,CAAC;KACpB,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const USD_CURRENCY = "USD";
2
- //# sourceMappingURL=currency.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../../src/constants/currency.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAQ,CAAC"}
@@ -1,4 +0,0 @@
1
- import { CategoryNamespace } from '../enums';
2
- export declare const USAGE_WORKER_CATEGORIES: readonly CategoryNamespace[];
3
- export declare const isUsageWorkerCategory: (category: CategoryNamespace) => boolean;
4
- //# sourceMappingURL=usage-worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-worker.d.ts","sourceRoot":"","sources":["../../../src/constants/usage-worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,uBAAuB,EAAE,SAAS,iBAAiB,EAE/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,KAAG,OACxB,CAAC"}
@@ -1,65 +0,0 @@
1
- export declare enum BusinessCategoryEnum {
2
- USERS = "Users",
3
- IDENTIFIERS = "Identifiers",
4
- PROCESSING = "Processing",
5
- TELEPHONY = "Telephony",
6
- MESSAGING = "Messaging",
7
- EXECUTABLE = "Executable",
8
- CARRIER_FEES = "Carrier Fees",
9
- DATA_STORAGE = "Data Storage",
10
- PRODUCT = "Product"
11
- }
12
- export declare enum LogicalCategoryEnum {
13
- USAGE = "usage",
14
- USERS = "users",
15
- IDENTIFIERS = "identifiers",
16
- STORAGE = "storage"
17
- }
18
- export declare enum ProcessingStatus {
19
- QUEUED = "queued",
20
- IN_PROGRESS = "in_progress",
21
- SUCCESS = "success",
22
- SKIPPED = "skipped",
23
- ERROR = "error",
24
- CANCELLED = "cancelled"
25
- }
26
- export declare enum Status {
27
- ACTIVE = "active",
28
- NOT_ACTIVE = "not_active"
29
- }
30
- export declare enum ThresholdCondition {
31
- DAILY_MAX_TRAFFIC = "dailyMaxTraffic",
32
- WEEKLY_MAX_TRAFFIC = "weeklyMaxTraffic",
33
- MONTHLY_MAX_TRAFFIC = "monthlyMaxTraffic"
34
- }
35
- export declare enum UsageStrategyKey {
36
- PROD = "production",
37
- AZURE = "azure",
38
- DRUID = "druid",
39
- FALLBACK_AZURE_PRIMARY = "fallback:azure",
40
- FALLBACK_DRUID_PRIMARY = "fallback:druid"
41
- }
42
- export declare enum InvoiceType {
43
- USAGE = "USAGE",
44
- OTHER = "OTHER",
45
- MANUAL = "MANUAL",
46
- MEMO = "MEMO"
47
- }
48
- export declare enum PrepaymentBucket {
49
- USAGE = "USAGE",
50
- PLATFORM = "PLATFORM",
51
- CUSTOM = "CUSTOM",
52
- VARIABLE = "VARIABLE",
53
- PDE = "PDE",
54
- PROFESSIONAL = "PROFESSIONAL",
55
- OTHER = "OTHER"
56
- }
57
- export declare enum PrepaymentInvoiceType {
58
- USAGE = "USAGE",
59
- OTHER = "OTHER"
60
- }
61
- export declare enum PrepaymentStatus {
62
- ACTIVE = "ACTIVE",
63
- CANCELED = "CANCELED"
64
- }
65
- //# sourceMappingURL=billing-domain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.d.ts","sourceRoot":"","sources":["../../../src/enums/billing-domain.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,OAAO,YAAY;CACpB;AAED,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,oBAAY,MAAM;IAChB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,oBAAY,kBAAkB;IAC5B,iBAAiB,oBAAoB;IACrC,kBAAkB,qBAAqB;IACvC,mBAAmB,sBAAsB;CAC1C;AAED,oBAAY,gBAAgB;IAC1B,IAAI,eAAe;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,sBAAsB,mBAAmB;IACzC,sBAAsB,mBAAmB;CAC1C;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CAChB;AAED,oBAAY,qBAAqB;IAC/B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB"}
@@ -1,33 +0,0 @@
1
- export type CalculationType = 'units' | 'pricing';
2
- export type GitInfo = {
3
- branch?: string;
4
- commitHash?: string;
5
- isDirty?: boolean;
6
- };
7
- export type ServiceTranslations = Record<string, {
8
- label: string;
9
- }>;
10
- export type AdditionalDataItem = {
11
- label: string;
12
- key: string;
13
- value: unknown;
14
- [key: string]: unknown;
15
- };
16
- export type ActionItem = {
17
- channel: string;
18
- target: string;
19
- params?: Record<string, unknown>;
20
- };
21
- export type CategoryConfigurationItem = {
22
- id: string;
23
- skus: string[];
24
- exclude: boolean;
25
- category: string;
26
- };
27
- export type CategoriesConfiguration = {
28
- usageCategories: CategoryConfigurationItem[];
29
- pdePrepaymentCategories: CategoryConfigurationItem[];
30
- platformSupportCategories: CategoryConfigurationItem[];
31
- usagePrepaymentCategories: CategoryConfigurationItem[];
32
- };
33
- //# sourceMappingURL=billing-domain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billing-domain.d.ts","sourceRoot":"","sources":["../../../src/types/billing-domain.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,eAAe,EAAE,yBAAyB,EAAE,CAAC;IAC7C,uBAAuB,EAAE,yBAAyB,EAAE,CAAC;IACrD,yBAAyB,EAAE,yBAAyB,EAAE,CAAC;IACvD,yBAAyB,EAAE,yBAAyB,EAAE,CAAC;CACxD,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const resolveEnvironmentName: (client?: string | null, environment?: string | null) => string;
2
- //# sourceMappingURL=environment-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment-name.d.ts","sourceRoot":"","sources":["../../../src/utils/environment-name.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,GAAG,IAAI,EAAE,cAAc,MAAM,GAAG,IAAI,KAAG,MAI/E,CAAC"}
@@ -1 +0,0 @@
1
- export const USD_CURRENCY = 'USD';
@@ -1,8 +0,0 @@
1
- import { CategoryNamespace } from '../enums';
2
-
3
- export const USAGE_WORKER_CATEGORIES: readonly CategoryNamespace[] = [
4
- CategoryNamespace.EXECUTABLE_LLM,
5
- ];
6
-
7
- export const isUsageWorkerCategory = (category: CategoryNamespace): boolean =>
8
- USAGE_WORKER_CATEGORIES.includes(category);
@@ -1,73 +0,0 @@
1
- export enum BusinessCategoryEnum {
2
- USERS = 'Users',
3
- IDENTIFIERS = 'Identifiers',
4
- PROCESSING = 'Processing',
5
- TELEPHONY = 'Telephony',
6
- MESSAGING = 'Messaging',
7
- EXECUTABLE = 'Executable',
8
- CARRIER_FEES = 'Carrier Fees',
9
- DATA_STORAGE = 'Data Storage',
10
- PRODUCT = 'Product',
11
- }
12
-
13
- export enum LogicalCategoryEnum {
14
- USAGE = 'usage',
15
- USERS = 'users',
16
- IDENTIFIERS = 'identifiers',
17
- STORAGE = 'storage',
18
- }
19
-
20
- export enum ProcessingStatus {
21
- QUEUED = 'queued',
22
- IN_PROGRESS = 'in_progress',
23
- SUCCESS = 'success',
24
- SKIPPED = 'skipped',
25
- ERROR = 'error',
26
- CANCELLED = 'cancelled',
27
- }
28
-
29
- export enum Status {
30
- ACTIVE = 'active',
31
- NOT_ACTIVE = 'not_active',
32
- }
33
-
34
- export enum ThresholdCondition {
35
- DAILY_MAX_TRAFFIC = 'dailyMaxTraffic',
36
- WEEKLY_MAX_TRAFFIC = 'weeklyMaxTraffic',
37
- MONTHLY_MAX_TRAFFIC = 'monthlyMaxTraffic',
38
- }
39
-
40
- export enum UsageStrategyKey {
41
- PROD = 'production',
42
- AZURE = 'azure',
43
- DRUID = 'druid',
44
- FALLBACK_AZURE_PRIMARY = 'fallback:azure',
45
- FALLBACK_DRUID_PRIMARY = 'fallback:druid',
46
- }
47
-
48
- export enum InvoiceType {
49
- USAGE = 'USAGE',
50
- OTHER = 'OTHER',
51
- MANUAL = 'MANUAL',
52
- MEMO = 'MEMO',
53
- }
54
-
55
- export enum PrepaymentBucket {
56
- USAGE = 'USAGE',
57
- PLATFORM = 'PLATFORM',
58
- CUSTOM = 'CUSTOM',
59
- VARIABLE = 'VARIABLE',
60
- PDE = 'PDE',
61
- PROFESSIONAL = 'PROFESSIONAL',
62
- OTHER = 'OTHER',
63
- }
64
-
65
- export enum PrepaymentInvoiceType {
66
- USAGE = 'USAGE',
67
- OTHER = 'OTHER',
68
- }
69
-
70
- export enum PrepaymentStatus {
71
- ACTIVE = 'ACTIVE',
72
- CANCELED = 'CANCELED',
73
- }
@@ -1,36 +0,0 @@
1
- export type CalculationType = 'units' | 'pricing';
2
-
3
- export type GitInfo = {
4
- branch?: string;
5
- commitHash?: string;
6
- isDirty?: boolean;
7
- };
8
-
9
- export type ServiceTranslations = Record<string, { label: string }>;
10
-
11
- export type AdditionalDataItem = {
12
- label: string;
13
- key: string;
14
- value: unknown;
15
- [key: string]: unknown;
16
- };
17
-
18
- export type ActionItem = {
19
- channel: string;
20
- target: string;
21
- params?: Record<string, unknown>;
22
- };
23
-
24
- export type CategoryConfigurationItem = {
25
- id: string;
26
- skus: string[];
27
- exclude: boolean;
28
- category: string;
29
- };
30
-
31
- export type CategoriesConfiguration = {
32
- usageCategories: CategoryConfigurationItem[];
33
- pdePrepaymentCategories: CategoryConfigurationItem[];
34
- platformSupportCategories: CategoryConfigurationItem[];
35
- usagePrepaymentCategories: CategoryConfigurationItem[];
36
- };
@@ -1,12 +0,0 @@
1
- const capitalizeWords = (value: string): string => value
2
- .trim()
3
- .split(/\s+/)
4
- .filter(Boolean)
5
- .map(word => `${word.charAt(0).toUpperCase()}${word.slice(1).toLowerCase()}`)
6
- .join(' ');
7
-
8
- export const resolveEnvironmentName = (client?: string | null, environment?: string | null): string =>
9
- [client, environment]
10
- .filter((value): value is string => Boolean(value?.trim()))
11
- .map(capitalizeWords)
12
- .join(' ');