@or-sdk/billing 24.2.1-beta.7605.0 → 24.2.1-beta.7623.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/dataReconciliationApi/index.js.map +1 -1
- package/dist/esm/api/dataReconciliationApi/index.js.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/dataReconciliationApi/index.ts +13 -20
- package/src/api/dataReconciliationApi/types.ts +13 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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.2.1-beta.
|
|
3
|
+
"version": "24.2.1-beta.7623.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.2.1-beta.
|
|
19
|
-
"@onereach/billing-shared": "^24.2.1-beta.
|
|
18
|
+
"@onereach/billing-dto": "^24.2.1-beta.7623.0",
|
|
19
|
+
"@onereach/billing-shared": "^24.2.1-beta.7623.0",
|
|
20
20
|
"@or-sdk/base": "^0.42.4",
|
|
21
21
|
"@or-sdk/discovery": "1.10.6",
|
|
22
22
|
"@types/qs": "6.14.0",
|
|
@@ -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
|
+
}
|