@onereach/billing-shared 31.4.3 → 31.5.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.
@@ -18,4 +18,5 @@ __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./billing-domain"), exports);
19
19
  __exportStar(require("./customer-account-actions"), exports);
20
20
  __exportStar(require("./invoice-generation"), exports);
21
+ __exportStar(require("./threshold-calculation"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,6DAA2C;AAC3C,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,6DAA2C;AAC3C,uDAAqC;AACrC,0DAAwC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=threshold-calculation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threshold-calculation.js","sourceRoot":"","sources":["../../../src/types/threshold-calculation.ts"],"names":[],"mappings":""}
@@ -2,4 +2,5 @@ export * from './common';
2
2
  export * from './billing-domain';
3
3
  export * from './customer-account-actions';
4
4
  export * from './invoice-generation';
5
+ export * from './threshold-calculation';
5
6
  //# 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;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=threshold-calculation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threshold-calculation.js","sourceRoot":"","sources":["../../../src/types/threshold-calculation.ts"],"names":[],"mappings":""}
@@ -2,4 +2,5 @@ export * from './common';
2
2
  export * from './billing-domain';
3
3
  export * from './customer-account-actions';
4
4
  export * from './invoice-generation';
5
+ export * from './threshold-calculation';
5
6
  //# 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;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ThresholdCondition, UsageStrategyKey } from '../enums';
2
+ import type { ActionItem, CalculationType } from './billing-domain';
3
+ export interface ThresholdCalculationQueuePayload {
4
+ id: string;
5
+ name: string;
6
+ serviceSource: string;
7
+ source: UsageStrategyKey;
8
+ customerId: string;
9
+ environmentId?: string;
10
+ accountId?: string;
11
+ skuPattern: string[];
12
+ condition: ThresholdCondition;
13
+ calculationType: CalculationType;
14
+ value: number;
15
+ isActive: boolean;
16
+ actions: ActionItem[];
17
+ createdAt: Date | string;
18
+ updatedAt?: Date | string;
19
+ }
20
+ //# sourceMappingURL=threshold-calculation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threshold-calculation.d.ts","sourceRoot":"","sources":["../../../src/types/threshold-calculation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,gCAAgC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,eAAe,EAAE,eAAe,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;CAC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/billing-shared",
3
- "version": "31.4.3",
3
+ "version": "31.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -2,3 +2,4 @@ export * from './common';
2
2
  export * from './billing-domain';
3
3
  export * from './customer-account-actions';
4
4
  export * from './invoice-generation';
5
+ export * from './threshold-calculation';
@@ -0,0 +1,21 @@
1
+ import type { ThresholdCondition, UsageStrategyKey } from '../enums';
2
+
3
+ import type { ActionItem, CalculationType } from './billing-domain';
4
+
5
+ export interface ThresholdCalculationQueuePayload {
6
+ id: string;
7
+ name: string;
8
+ serviceSource: string;
9
+ source: UsageStrategyKey;
10
+ customerId: string;
11
+ environmentId?: string;
12
+ accountId?: string;
13
+ skuPattern: string[];
14
+ condition: ThresholdCondition;
15
+ calculationType: CalculationType;
16
+ value: number;
17
+ isActive: boolean;
18
+ actions: ActionItem[];
19
+ createdAt: Date | string;
20
+ updatedAt?: Date | string;
21
+ }