@medipass/web-sdk 12.2.1 → 12.2.2-fix-bulk-submits-types.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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
import type { BulkSubmitsProgressResponse, BulkSubmitsResponse } from '../types/bulk-submits';
|
|
3
|
+
export type { BulkSubmitsResponse, BulkSubmitsProgressResponse };
|
|
2
4
|
export declare const pathSubmitDraftInvoices: (businessId: string) => string;
|
|
3
5
|
export declare const pathGetDraftProgressStatus: (businessId: string, bulkSubmitId: string) => string;
|
|
4
6
|
/**
|
|
@@ -7,11 +9,11 @@ export declare const pathGetDraftProgressStatus: (businessId: string, bulkSubmit
|
|
|
7
9
|
* @param {Object} body - Request body
|
|
8
10
|
* @param {Object} opts - Additional options
|
|
9
11
|
*/
|
|
10
|
-
export declare const submitDraftInvoices: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<
|
|
12
|
+
export declare const submitDraftInvoices: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<BulkSubmitsResponse>;
|
|
11
13
|
/**
|
|
12
14
|
* Get draft invocies progress status
|
|
13
15
|
* @param {String} businessId - Business ID
|
|
14
16
|
* @param {String} bulkSubmitId - Bulk Submit ID
|
|
15
17
|
* @param {Object} opts - Additional options
|
|
16
18
|
*/
|
|
17
|
-
export declare const getDraftProgressStatus: (businessId: string, bulkSubmitId: string, query
|
|
19
|
+
export declare const getDraftProgressStatus: (businessId: string, bulkSubmitId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<BulkSubmitsProgressResponse>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface BulkSubmitsResponse {
|
|
2
|
+
organisationId: string;
|
|
3
|
+
businessId: string;
|
|
4
|
+
funderId: string;
|
|
5
|
+
transactionIds: Array<string>;
|
|
6
|
+
draftConversionProgress: {
|
|
7
|
+
processedTransactionsIds: Array<string>;
|
|
8
|
+
erroredTransactionsIds: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
submissionProgress: {
|
|
11
|
+
processedTransactionsIds: Array<string>;
|
|
12
|
+
erroredTransactionsIds: Array<string>;
|
|
13
|
+
};
|
|
14
|
+
status: string;
|
|
15
|
+
statusHistory: Array<{
|
|
16
|
+
status: string;
|
|
17
|
+
created: string;
|
|
18
|
+
createdByAccountId: string;
|
|
19
|
+
createdByAccountUsername: string;
|
|
20
|
+
createdByApplicationId: string;
|
|
21
|
+
}>;
|
|
22
|
+
_id: string;
|
|
23
|
+
created: string;
|
|
24
|
+
modified: string;
|
|
25
|
+
}
|
|
26
|
+
export interface BulkSubmitsProgressResponse {
|
|
27
|
+
draftConversionProgress: {
|
|
28
|
+
processedTransactionsIds: Array<string>;
|
|
29
|
+
erroredTransactionsIds: Array<string>;
|
|
30
|
+
};
|
|
31
|
+
submissionProgress: {
|
|
32
|
+
processedTransactionsIds: Array<string>;
|
|
33
|
+
erroredTransactionsIds: Array<string>;
|
|
34
|
+
};
|
|
35
|
+
_id: string;
|
|
36
|
+
organisationId: string;
|
|
37
|
+
businessId: string;
|
|
38
|
+
transactionIds: Array<string>;
|
|
39
|
+
status: string;
|
|
40
|
+
statusHistory: Array<{
|
|
41
|
+
status: string;
|
|
42
|
+
created: string;
|
|
43
|
+
createdByAccountId: string;
|
|
44
|
+
createdByAccountUsername: string;
|
|
45
|
+
createdByApplicationId: string;
|
|
46
|
+
}>;
|
|
47
|
+
created: string;
|
|
48
|
+
modified: string;
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.2-fix-bulk-submits-types.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"resolutions": {
|
|
59
59
|
"react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "308c10936125f39eb5ed6af25af4266708d86130"
|
|
62
62
|
}
|