@onereach/billing-shared 31.4.3-beta.12751.0 → 31.4.4-beta.12770.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/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/threshold-calculation.js +3 -0
- package/dist/cjs/types/threshold-calculation.js.map +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/threshold-calculation.js +2 -0
- package/dist/esm/types/threshold-calculation.js.map +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/threshold-calculation.d.ts +20 -0
- package/dist/types/types/threshold-calculation.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/types/index.ts +1 -0
- package/src/types/threshold-calculation.ts +21 -0
package/dist/cjs/types/index.js
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"threshold-calculation.js","sourceRoot":"","sources":["../../../src/types/threshold-calculation.ts"],"names":[],"mappings":""}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"threshold-calculation.js","sourceRoot":"","sources":["../../../src/types/threshold-calculation.ts"],"names":[],"mappings":""}
|
|
@@ -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
package/src/types/index.ts
CHANGED
|
@@ -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
|
+
}
|