@or-sdk/billing 24.0.2-beta.7426.0 → 24.0.2-beta.7431.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/api/customerUsageApi/index.js +34 -0
- package/dist/cjs/api/customerUsageApi/index.js.map +1 -1
- package/dist/cjs/api/dataReconciliationApi/index.js.map +1 -1
- package/dist/esm/api/customerUsageApi/index.js +16 -0
- package/dist/esm/api/customerUsageApi/index.js.map +1 -1
- package/dist/esm/api/dataReconciliationApi/index.js.map +1 -1
- package/dist/types/api/customerUsageApi/index.d.ts +4 -0
- package/dist/types/api/customerUsageApi/index.d.ts.map +1 -1
- package/dist/types/api/dataReconciliationApi/index.d.ts.map +1 -1
- package/dist/types/api/dataReconciliationApi/types.d.ts +12 -22
- package/dist/types/api/dataReconciliationApi/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/customerUsageApi/index.ts +66 -0
- package/src/api/dataReconciliationApi/index.ts +13 -20
- package/src/api/dataReconciliationApi/types.ts +13 -23
|
@@ -70,6 +70,7 @@ var CustomerUsageApi = (function (_super) {
|
|
|
70
70
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
71
71
|
_this.apiBasePath = '/customer-usage';
|
|
72
72
|
_this.apiCursorPath = '/customer-usage/cursor';
|
|
73
|
+
_this.apiCursorPollingPath = '/customer-usage/cursor/polling';
|
|
73
74
|
_this.apiUsageProcessingPath = '/usage-processing';
|
|
74
75
|
return _this;
|
|
75
76
|
}
|
|
@@ -95,6 +96,39 @@ var CustomerUsageApi = (function (_super) {
|
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
98
|
};
|
|
99
|
+
CustomerUsageApi.prototype.startAllTrafficCursorPolling = function (filters_1) {
|
|
100
|
+
return __awaiter(this, arguments, void 0, function (filters, apiParams) {
|
|
101
|
+
if (apiParams === void 0) { apiParams = {}; }
|
|
102
|
+
return __generator(this, function (_a) {
|
|
103
|
+
switch (_a.label) {
|
|
104
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiCursorPollingPath, "/fetch-init"), params: filters }, apiParams))];
|
|
105
|
+
case 1: return [2, _a.sent()];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
CustomerUsageApi.prototype.allTrafficCursorPollingResultsChunksCount = function (jobId_1) {
|
|
111
|
+
return __awaiter(this, arguments, void 0, function (jobId, apiParams) {
|
|
112
|
+
if (apiParams === void 0) { apiParams = {}; }
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiCursorPollingPath, "/").concat(jobId, "/results/chunks") }, apiParams))];
|
|
116
|
+
case 1: return [2, _a.sent()];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
CustomerUsageApi.prototype.allTrafficCursorPollingFetchResultChunk = function (jobId_1, chunk_1) {
|
|
122
|
+
return __awaiter(this, arguments, void 0, function (jobId, chunk, apiParams) {
|
|
123
|
+
if (apiParams === void 0) { apiParams = {}; }
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiCursorPollingPath, "/").concat(jobId, "/results/chunks/").concat(chunk) }, apiParams))];
|
|
127
|
+
case 1: return [2, _a.sent()];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
98
132
|
CustomerUsageApi.prototype.getUsageTraffic = function (filters_1) {
|
|
99
133
|
return __awaiter(this, arguments, void 0, function (filters, apiParams) {
|
|
100
134
|
if (apiParams === void 0) { apiParams = {}; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerUsageApi/index.ts"],"names":[],"mapp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":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAAqC;AAWrC;IAAmD,yCAAO;IAA1D;;QACmB,iBAAW,GAAG,qBAAqB,CAAC;;IAmKvD,CAAC;IAlIc,6DAA6B,GAA1C;4DAA2C,WAA0C,EAAE,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BAC/G,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,IAAI,EAAE,WAAW,IACd,SAAS,EACZ,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IAwCY,mDAAmB,GAAhC;4DAAiC,aAA2C,EAAE,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BACtG,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,MAAM,EAAE,aAAa,IAClB,SAAS,EACZ,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IAmCY,qDAAqB,GAAlC;4DAAmC,EAAU,EAAE,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BACvE,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAI,EAAE,CAAE,IAC/B,SAAS,EACZ,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IA2BY,oDAAoB,GAAjC;4DAAkC,EAAU,EAAE,SAAiC;YAAjC,0BAAA,EAAA,cAAiC;;;4BACtE,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE,IACX,SAAS,EACZ,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IACH,4BAAC;AAAD,CAAC,AApKD,CAAmD,iBAAO,GAoKzD"}
|
|
@@ -14,6 +14,7 @@ export default class CustomerUsageApi extends BaseApi {
|
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.apiBasePath = '/customer-usage';
|
|
16
16
|
this.apiCursorPath = '/customer-usage/cursor';
|
|
17
|
+
this.apiCursorPollingPath = '/customer-usage/cursor/polling';
|
|
17
18
|
this.apiUsageProcessingPath = '/usage-processing';
|
|
18
19
|
}
|
|
19
20
|
getAllTraffic(filters_1) {
|
|
@@ -26,6 +27,21 @@ export default class CustomerUsageApi extends BaseApi {
|
|
|
26
27
|
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiCursorPath}`, params: filters }, apiParams));
|
|
27
28
|
});
|
|
28
29
|
}
|
|
30
|
+
startAllTrafficCursorPolling(filters_1) {
|
|
31
|
+
return __awaiter(this, arguments, void 0, function* (filters, apiParams = {}) {
|
|
32
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiCursorPollingPath}/fetch-init`, params: filters }, apiParams));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
allTrafficCursorPollingResultsChunksCount(jobId_1) {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* (jobId, apiParams = {}) {
|
|
37
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiCursorPollingPath}/${jobId}/results/chunks` }, apiParams));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
allTrafficCursorPollingFetchResultChunk(jobId_1, chunk_1) {
|
|
41
|
+
return __awaiter(this, arguments, void 0, function* (jobId, chunk, apiParams = {}) {
|
|
42
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiCursorPollingPath}/${jobId}/results/chunks/${chunk}` }, apiParams));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
29
45
|
getUsageTraffic(filters_1) {
|
|
30
46
|
return __awaiter(this, arguments, void 0, function* (filters, apiParams = {}) {
|
|
31
47
|
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/${LogicalCategoryEnum.USAGE}`, params: filters }, apiParams));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerUsageApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAA0E,MAAM,uBAAuB,CAAC;AAIpI,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAmBrC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;IAArD;;QACmB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,kBAAa,GAAG,wBAAwB,CAAC;QACzC,2BAAsB,GAAG,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerUsageApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAA0E,MAAM,uBAAuB,CAAC;AAIpI,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAmBrC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;IAArD;;QACmB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,kBAAa,GAAG,wBAAwB,CAAC;QACzC,yBAAoB,GAAG,gCAAgC,CAAC;QACxD,2BAAsB,GAAG,mBAAmB,CAAC;IAkuBhE,CAAC;IAjrBc,aAAa;6DACxB,OAAiC,EACjC,YAA+B,EAAE;YAEjC,OAAO,MAAM,IAAI,CAAC,OAAO,iBAC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AAE,YAA+B,EAAE;YACpF,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,sBAAsB,IAAI,KAAK,SAAS,IACpD,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAaY,iCAAiC;6DAAC,KAAa,EAAE,YAA+B,EAAE;YAC7F,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,sBAAsB,IAAI,KAAK,iBAAiB,IAC5D,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAeY,+BAA+B;6DAAC,KAAa,EAAE,KAAa,EAAE,YAA+B,EAAE;YAC1G,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,sBAAsB,IAAI,KAAK,mBAAmB,KAAK,EAAE,IACrE,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAgCY,kBAAkB,CAAC,OAA0B;;YACxD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,kBAAkB;gBAC5C,MAAM,EAAE,OAAO;aAChB,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrC,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,OAAO;IAA1D;;QACmB,gBAAW,GAAG,qBAAqB,CAAC;IAmKvD,CAAC;IAlIc,6BAA6B;6DAAC,WAA0C,EAAE,YAA+B,EAAE;YACtH,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,EAC5B,IAAI,EAAE,WAAW,IACd,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAwCY,mBAAmB;6DAAC,aAA2C,EAAE,YAA+B,EAAE;YAC7G,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,EAC5B,MAAM,EAAE,aAAa,IAClB,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IAmCY,qBAAqB;6DAAC,EAAU,EAAE,YAA+B,EAAE;YAC9E,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,EAAE,IAC/B,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;IA2BY,oBAAoB;6DAAC,EAAU,EAAE,YAA+B,EAAE;YAC7E,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,EAC5B,MAAM,EAAE,EAAE,EAAE,EAAE,IACX,SAAS,EACZ,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -6,9 +6,13 @@ import { CustomerUsageQueryParams, FindUsageByCursor, QueueBuilderResponse, Sess
|
|
|
6
6
|
export default class CustomerUsageApi extends BaseApi {
|
|
7
7
|
private readonly apiBasePath;
|
|
8
8
|
private readonly apiCursorPath;
|
|
9
|
+
private readonly apiCursorPollingPath;
|
|
9
10
|
private readonly apiUsageProcessingPath;
|
|
10
11
|
getAllTraffic(filters: CustomerUsageQueryParams, apiParams?: OptionalApiParams): Promise<ResponseDto<UsageRecordDto>>;
|
|
11
12
|
getAllTrafficCursor(filters: FindUsageByCursor, apiParams?: OptionalApiParams): Promise<CursorResponseDto<UsageRecordDto>>;
|
|
13
|
+
startAllTrafficCursorPolling(filters: FindUsageByCursor, apiParams?: OptionalApiParams): Promise<string>;
|
|
14
|
+
allTrafficCursorPollingResultsChunksCount(jobId: string, apiParams?: OptionalApiParams): Promise<number>;
|
|
15
|
+
allTrafficCursorPollingFetchResultChunk(jobId: string, chunk: number, apiParams?: OptionalApiParams): Promise<ProcessedUsageDataChunkDto | null>;
|
|
12
16
|
getUsageTraffic(filters: Omit<CustomerUsageQueryParams, 'logicalCategory'>, apiParams?: OptionalApiParams): Promise<ResponseDto<UsageRecordDto>>;
|
|
13
17
|
getUsageTrafficCursor(filters: Omit<FindUsageByCursor, 'logicalCategory'>, apiParams?: OptionalApiParams): Promise<CursorResponseDto<UsageRecordDto>>;
|
|
14
18
|
getIdentifiersTraffic(filters: Omit<CustomerUsageQueryParams, 'logicalCategory'>, apiParams?: OptionalApiParams): Promise<ResponseDto<UsageRecordDto>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/customerUsageApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,0BAA0B,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACpI,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACf,MAAM,SAAS,CAAC;AAUjB,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;IACnD,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AA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AASvI,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,OAAO;IACxD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAyB;IAiCxC,6BAA6B,CAAC,WAAW,EAAE,6BAA6B,EAAE,SAAS,GAAE,iBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IA+ChJ,mBAAmB,CAAC,aAAa,EAAE,4BAA4B,EAAE,SAAS,GAAE,iBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA0C/I,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,GAAE,iBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAiCnG,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAQhG"}
|
|
@@ -4,22 +4,18 @@ export type InitiateReconciliationRequest = {
|
|
|
4
4
|
dateFrom: string;
|
|
5
5
|
dateTo: string;
|
|
6
6
|
sourceProvider: DataSourceProvider;
|
|
7
|
-
|
|
8
|
-
environmentsIds?: string[];
|
|
9
|
-
customerId?: string;
|
|
7
|
+
sourceId: string;
|
|
10
8
|
eventTypes?: CategoryNamespace[];
|
|
11
9
|
};
|
|
12
10
|
export type ReconciliationJobResponse = {
|
|
13
11
|
count: number;
|
|
14
|
-
|
|
12
|
+
jobId: string;
|
|
15
13
|
message: string;
|
|
16
14
|
};
|
|
17
15
|
export type ReconciliationSearchCriteria = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
sourceProvider?: DataSourceProvider;
|
|
22
|
-
customerId?: string;
|
|
16
|
+
eventType?: string;
|
|
17
|
+
sourceId?: string;
|
|
18
|
+
sourceProvider?: string;
|
|
23
19
|
status?: ProcessingStatus;
|
|
24
20
|
jobId?: string;
|
|
25
21
|
dateFrom?: string;
|
|
@@ -27,30 +23,24 @@ export type ReconciliationSearchCriteria = {
|
|
|
27
23
|
} & RequestDto;
|
|
28
24
|
export type ReconciliationRecord = {
|
|
29
25
|
id: string;
|
|
26
|
+
eventType: CategoryNamespace;
|
|
27
|
+
sourceId: string;
|
|
30
28
|
sourceProvider: DataSourceProvider;
|
|
31
|
-
sourceIds: string[];
|
|
32
|
-
environmentsIds?: string[];
|
|
33
|
-
eventTypes: CategoryNamespace[];
|
|
34
|
-
customerId?: string;
|
|
35
|
-
accountIds: string[];
|
|
36
29
|
dateFrom: string;
|
|
37
30
|
dateTo: string;
|
|
38
31
|
rawTotalSum?: number;
|
|
39
32
|
calcTotalSum?: number;
|
|
40
33
|
calcTotalSumLegacy?: number;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
deltaSum?: number;
|
|
35
|
+
deltaSumLegacy?: number;
|
|
36
|
+
calcDetails: Record<string, number>;
|
|
37
|
+
calcDetailsLegacy: Record<string, number>;
|
|
38
|
+
rawDetails: Record<string, number>;
|
|
45
39
|
status: ProcessingStatus;
|
|
46
40
|
errorMessage?: string;
|
|
47
41
|
startTime?: string;
|
|
48
42
|
endTime?: string;
|
|
49
43
|
jobId: string;
|
|
50
44
|
createdAt: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
durationMs: number | null;
|
|
53
|
-
isCompleted: boolean;
|
|
54
|
-
isRunning: boolean;
|
|
55
45
|
};
|
|
56
46
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7F,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,kBAAkB,CAAC;IACnC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/dataReconciliationApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7F,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,kBAAkB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACnB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,UAAU,CAAC;AAEf,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,kBAAkB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/billing",
|
|
3
|
-
"version": "24.0.2-beta.
|
|
3
|
+
"version": "24.0.2-beta.7431.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"dev": "pnpm build:watch:esm"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@onereach/billing-dto": "^24.0.2-beta.
|
|
19
|
-
"@onereach/billing-shared": "^24.0.2-beta.
|
|
18
|
+
"@onereach/billing-dto": "^24.0.2-beta.7431.0",
|
|
19
|
+
"@onereach/billing-shared": "^24.0.2-beta.7431.0",
|
|
20
20
|
"@or-sdk/base": "^0.42.4",
|
|
21
21
|
"@or-sdk/discovery": "1.10.6",
|
|
22
22
|
"@types/qs": "6.14.0",
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
export default class CustomerUsageApi extends BaseApi {
|
|
25
25
|
private readonly apiBasePath = '/customer-usage';
|
|
26
26
|
private readonly apiCursorPath = '/customer-usage/cursor';
|
|
27
|
+
private readonly apiCursorPollingPath = '/customer-usage/cursor/polling';
|
|
27
28
|
private readonly apiUsageProcessingPath = '/usage-processing';
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -131,6 +132,71 @@ export default class CustomerUsageApi extends BaseApi {
|
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @description
|
|
137
|
+
* Creates an asynchronous polling job that drains getAllTrafficCursor server-side until no next cursor remains.
|
|
138
|
+
* Poll the returned job ID with pollingApi.getJobStatus; on success, job.result contains cursor metadata
|
|
139
|
+
* and fetched rows are available through allTrafficCursorPollingFetchResultChunk.
|
|
140
|
+
*
|
|
141
|
+
* @param {FindUsageByCursor} filters - Cursor-based query parameters used to fetch customer usage.
|
|
142
|
+
* @param {OptionalApiParams} [apiParams] - Additional API configuration options.
|
|
143
|
+
*
|
|
144
|
+
* @returns {Promise<string>} Promise resolving to the unique job ID for polling.
|
|
145
|
+
*/
|
|
146
|
+
public async startAllTrafficCursorPolling(
|
|
147
|
+
filters: FindUsageByCursor,
|
|
148
|
+
apiParams: OptionalApiParams = {},
|
|
149
|
+
): Promise<string> {
|
|
150
|
+
return await this.apiCall({
|
|
151
|
+
method: 'GET',
|
|
152
|
+
route: `${this.apiCursorPollingPath}/fetch-init`,
|
|
153
|
+
params: filters,
|
|
154
|
+
...apiParams,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @description
|
|
160
|
+
* Retrieves the number of stored data chunks for a completed all-traffic cursor polling job.
|
|
161
|
+
*
|
|
162
|
+
* @param {string} jobId - Unique polling job identifier returned by startAllTrafficCursorPolling.
|
|
163
|
+
* @param {OptionalApiParams} [apiParams] - Additional API configuration options.
|
|
164
|
+
*
|
|
165
|
+
* @returns {Promise<number>} Promise resolving to the number of available chunks.
|
|
166
|
+
*/
|
|
167
|
+
public async allTrafficCursorPollingResultsChunksCount(
|
|
168
|
+
jobId: string,
|
|
169
|
+
apiParams: OptionalApiParams = {},
|
|
170
|
+
): Promise<number> {
|
|
171
|
+
return await this.apiCall({
|
|
172
|
+
method: 'GET',
|
|
173
|
+
route: `${this.apiCursorPollingPath}/${jobId}/results/chunks`,
|
|
174
|
+
...apiParams,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @description
|
|
180
|
+
* Fetches one stored data chunk for a completed all-traffic cursor polling job.
|
|
181
|
+
*
|
|
182
|
+
* @param {string} jobId - Unique polling job identifier returned by startAllTrafficCursorPolling.
|
|
183
|
+
* @param {number} chunk - One-based chunk sequence number.
|
|
184
|
+
* @param {OptionalApiParams} [apiParams] - Additional API configuration options.
|
|
185
|
+
*
|
|
186
|
+
* @returns {Promise<ProcessedUsageDataChunkDto | null>} Promise resolving to the stored chunk.
|
|
187
|
+
*/
|
|
188
|
+
public async allTrafficCursorPollingFetchResultChunk(
|
|
189
|
+
jobId: string,
|
|
190
|
+
chunk: number,
|
|
191
|
+
apiParams: OptionalApiParams = {},
|
|
192
|
+
): Promise<ProcessedUsageDataChunkDto | null> {
|
|
193
|
+
return await this.apiCall({
|
|
194
|
+
method: 'GET',
|
|
195
|
+
route: `${this.apiCursorPollingPath}/${jobId}/results/chunks/${chunk}`,
|
|
196
|
+
...apiParams,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
|
|
134
200
|
/**
|
|
135
201
|
* @description
|
|
136
202
|
* Retrieves usage traffic records filtered to the 'usage' logical category only.
|
|
@@ -3,12 +3,7 @@ import { ResponseDto } from '@onereach/billing-shared';
|
|
|
3
3
|
import { OptionalApiParams } from '../../types';
|
|
4
4
|
import { BaseApi } from '../baseApi';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
InitiateReconciliationRequest,
|
|
8
|
-
ReconciliationJobResponse,
|
|
9
|
-
ReconciliationRecord,
|
|
10
|
-
ReconciliationSearchCriteria,
|
|
11
|
-
} from './types';
|
|
6
|
+
import { InitiateReconciliationRequest, ReconciliationJobResponse, ReconciliationRecord, ReconciliationSearchCriteria } from './types';
|
|
12
7
|
|
|
13
8
|
/**
|
|
14
9
|
* API client for data reconciliation operations.
|
|
@@ -27,7 +22,7 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
27
22
|
* @param {string} queueParams.dateFrom - Start date for reconciliation period (ISO string format)
|
|
28
23
|
* @param {string} queueParams.dateTo - End date for reconciliation period (ISO string format)
|
|
29
24
|
* @param {'azure' | 'druid'} queueParams.sourceProvider - Data source provider ('azure' | 'druid')
|
|
30
|
-
* @param {
|
|
25
|
+
* @param {string} queueParams.sourceId - Unique identifier for the data source
|
|
31
26
|
* @param {Array<CategoryNamespace>} [queueParams.eventTypes] - Optional array of query types to reconcile. Options:
|
|
32
27
|
* 'processing-flow', 'processing-voice', 'executable-general', 'executable-llm',
|
|
33
28
|
* 'lookup', 'telephony-voice', 'messaging-text', 'conversation-wap', 'carrier-fee', 'user'
|
|
@@ -36,7 +31,7 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
36
31
|
* @param {number} [apiParams.retries] - Number of retry attempts
|
|
37
32
|
* @returns {Promise<ReconciliationJobResponse>} Promise resolving to the reconciliation job response
|
|
38
33
|
* @returns {number} returns.count - Number of reconciliation tasks queued
|
|
39
|
-
* @returns {
|
|
34
|
+
* @returns {string} returns.jobId - Unique identifier for the reconciliation job
|
|
40
35
|
* @returns {string} returns.message - Status message about the job initiation
|
|
41
36
|
*
|
|
42
37
|
* @example
|
|
@@ -45,10 +40,10 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
45
40
|
* dateFrom: '2023-01-01T00:00:00.000Z',
|
|
46
41
|
* dateTo: '2023-01-31T23:59:59.999Z',
|
|
47
42
|
* sourceProvider: 'azure',
|
|
48
|
-
*
|
|
43
|
+
* sourceId: 'azure-source-123',
|
|
49
44
|
* eventTypes: ['processing-flow', 'executable-general']
|
|
50
45
|
* });
|
|
51
|
-
* console.log(`
|
|
46
|
+
* console.log(`Job started with ID: ${response.jobId}, queued ${response.count} tasks`);
|
|
52
47
|
* ```
|
|
53
48
|
*/
|
|
54
49
|
public async initiateReconciliationProcess(queueParams: InitiateReconciliationRequest, apiParams: OptionalApiParams = {}): Promise<ReconciliationJobResponse> {
|
|
@@ -64,10 +59,9 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
64
59
|
* Retrieves a paginated list of reconciliation records.
|
|
65
60
|
*
|
|
66
61
|
* @param {ReconciliationSearchCriteria} filterOptions - Search and filter criteria for reconciliation records
|
|
67
|
-
* @param {
|
|
68
|
-
* @param {
|
|
62
|
+
* @param {string} [filterOptions.eventType] - Filter by event type (optional)
|
|
63
|
+
* @param {string} [filterOptions.sourceId] - Filter by source identifier (optional)
|
|
69
64
|
* @param {'azure' | 'druid'} [filterOptions.sourceProvider] - Filter by source provider (optional)
|
|
70
|
-
* @param {string} [filterOptions.customerId] - Filter by customer identifier (optional)
|
|
71
65
|
* @param {ProcessingStatus} [filterOptions.status] - Filter by processing status ('success', 'error', 'pending', 'in_progress', 'canceled')
|
|
72
66
|
* @param {string} [filterOptions.jobId] - Filter by job identifier (optional)
|
|
73
67
|
* @param {string} [filterOptions.dateFrom] - Filter by start date (ISO string format, optional)
|
|
@@ -115,23 +109,20 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
115
109
|
* @param {OptionalApiParams} [apiParams={}] - Optional API configuration parameters
|
|
116
110
|
* @returns {Promise<ReconciliationRecord>} Promise resolving to the reconciliation record details
|
|
117
111
|
* @returns {string} returns.id - Unique identifier of the reconciliation record
|
|
112
|
+
* @returns {CategoryNamespace} returns.eventType - The event type that was reconciled
|
|
113
|
+
* @returns {string} returns.sourceId - Source identifier
|
|
118
114
|
* @returns {'azure' | 'druid'} returns.sourceProvider - Data source provider ('azure' | 'druid')
|
|
119
|
-
* @returns {Array<string>} returns.sourceIds - Source identifiers included in the run
|
|
120
|
-
* @returns {Array<CategoryNamespace>} returns.eventTypes - Event types reconciled in the run
|
|
121
115
|
* @returns {string} returns.dateFrom - Start date of reconciliation period (ISO string)
|
|
122
116
|
* @returns {string} returns.dateTo - End date of reconciliation period (ISO string)
|
|
123
117
|
* @returns {number} [returns.rawTotalSum] - Raw total sum from source data (optional)
|
|
124
118
|
* @returns {number} [returns.calcTotalSum] - Calculated total sum (optional)
|
|
119
|
+
* @returns {number} [returns.deltaSum] - Difference between raw and calculated sums (optional)
|
|
125
120
|
* @returns {'success' | 'error' | 'pending' | 'in_progress' | 'canceled'} returns.status - Processing status ('success', 'error', 'pending', 'in_progress', 'canceled')
|
|
126
121
|
* @returns {string} [returns.errorMessage] - Error details if status is 'error' (optional)
|
|
127
122
|
* @returns {string} [returns.startTime] - Reconciliation start time (ISO string, optional)
|
|
128
123
|
* @returns {string} [returns.endTime] - Reconciliation end time (ISO string, optional)
|
|
129
124
|
* @returns {string} returns.jobId - Associated job identifier
|
|
130
125
|
* @returns {string} returns.createdAt - Record creation timestamp (ISO string)
|
|
131
|
-
* @returns {string} returns.updatedAt - Record update timestamp (ISO string)
|
|
132
|
-
* @returns {number | null} returns.durationMs - Processing duration in milliseconds
|
|
133
|
-
* @returns {boolean} returns.isCompleted - Whether processing has finished
|
|
134
|
-
* @returns {boolean} returns.isRunning - Whether processing is currently running
|
|
135
126
|
*
|
|
136
127
|
* @throws {NotFoundError} When the reconciliation record with the given ID doesn't exist
|
|
137
128
|
*
|
|
@@ -139,7 +130,9 @@ export default class DataReconciliationApi extends BaseApi {
|
|
|
139
130
|
* ```typescript
|
|
140
131
|
* const reconciliation = await api.getReconciliationById('uuid-123');
|
|
141
132
|
* console.log(`Status: ${reconciliation.status}`);
|
|
142
|
-
*
|
|
133
|
+
* if (reconciliation.deltaSum !== undefined) {
|
|
134
|
+
* console.log(`Delta: ${reconciliation.deltaSum}`);
|
|
135
|
+
* }
|
|
143
136
|
* ```
|
|
144
137
|
*/
|
|
145
138
|
public async getReconciliationById(id: string, apiParams: OptionalApiParams = {}): Promise<ReconciliationRecord> {
|
|
@@ -5,24 +5,20 @@ export type InitiateReconciliationRequest = {
|
|
|
5
5
|
dateFrom: string;
|
|
6
6
|
dateTo: string;
|
|
7
7
|
sourceProvider: DataSourceProvider;
|
|
8
|
-
|
|
9
|
-
environmentsIds?: string[];
|
|
10
|
-
customerId?: string;
|
|
8
|
+
sourceId: string;
|
|
11
9
|
eventTypes?: CategoryNamespace[];
|
|
12
10
|
};
|
|
13
11
|
|
|
14
12
|
export type ReconciliationJobResponse = {
|
|
15
13
|
count: number;
|
|
16
|
-
|
|
14
|
+
jobId: string;
|
|
17
15
|
message: string;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
export type ReconciliationSearchCriteria = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
sourceProvider?: DataSourceProvider;
|
|
25
|
-
customerId?: string;
|
|
19
|
+
eventType?: string;
|
|
20
|
+
sourceId?: string;
|
|
21
|
+
sourceProvider?: string;
|
|
26
22
|
status?: ProcessingStatus;
|
|
27
23
|
jobId?: string;
|
|
28
24
|
dateFrom?: string;
|
|
@@ -31,29 +27,23 @@ export type ReconciliationSearchCriteria = {
|
|
|
31
27
|
|
|
32
28
|
export type ReconciliationRecord = {
|
|
33
29
|
id: string;
|
|
30
|
+
eventType: CategoryNamespace;
|
|
31
|
+
sourceId: string;
|
|
34
32
|
sourceProvider: DataSourceProvider;
|
|
35
|
-
sourceIds: string[];
|
|
36
|
-
environmentsIds?: string[];
|
|
37
|
-
eventTypes: CategoryNamespace[];
|
|
38
|
-
customerId?: string;
|
|
39
|
-
accountIds: string[];
|
|
40
33
|
dateFrom: string;
|
|
41
34
|
dateTo: string;
|
|
42
35
|
rawTotalSum?: number;
|
|
43
36
|
calcTotalSum?: number;
|
|
44
37
|
calcTotalSumLegacy?: number;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
deltaSum?: number;
|
|
39
|
+
deltaSumLegacy?: number;
|
|
40
|
+
calcDetails: Record<string, number>;
|
|
41
|
+
calcDetailsLegacy: Record<string, number>;
|
|
42
|
+
rawDetails: Record<string, number>;
|
|
49
43
|
status: ProcessingStatus;
|
|
50
44
|
errorMessage?: string;
|
|
51
45
|
startTime?: string;
|
|
52
46
|
endTime?: string;
|
|
53
47
|
jobId: string;
|
|
54
48
|
createdAt: string;
|
|
55
|
-
|
|
56
|
-
durationMs: number | null;
|
|
57
|
-
isCompleted: boolean;
|
|
58
|
-
isRunning: boolean;
|
|
59
|
-
};
|
|
49
|
+
}
|