sysone-api-mapper 1.0.157 → 1.0.158
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/src/adapters/billingAdapter.d.ts +3 -0
- package/dist/src/adapters/billingAdapter.js +8 -0
- package/dist/src/adapters/collectionAdapter.d.ts +1 -0
- package/dist/src/adapters/collectionAdapter.js +1 -0
- package/dist/src/adapters/createApiAdapter.d.ts +4 -0
- package/dist/src/adapters/createApiAdapter.js +2 -0
- package/dist/src/mapper/endpointsConfig.d.ts +369 -354
- package/dist/src/mapper/endpointsConfig.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.billingAdapter = void 0;
|
|
4
|
+
const Mapper_1 = require("../mapper/Mapper");
|
|
5
|
+
const billingAdapter = (tenant) => ({
|
|
6
|
+
getBillings: (params) => (0, Mapper_1.apiMapper)("GET_BILLINGS", tenant, params),
|
|
7
|
+
});
|
|
8
|
+
exports.billingAdapter = billingAdapter;
|
|
@@ -4,5 +4,6 @@ exports.collectionAdapter = void 0;
|
|
|
4
4
|
const Mapper_1 = require("../mapper/Mapper");
|
|
5
5
|
const collectionAdapter = (tenant) => ({
|
|
6
6
|
getCollections: (params) => (0, Mapper_1.apiMapper)("GET_COLLECTIONS", tenant, params),
|
|
7
|
+
getCollectionStatuses: () => (0, Mapper_1.apiMapper)("GET_COLLECTION_STATUSES", tenant),
|
|
7
8
|
});
|
|
8
9
|
exports.collectionAdapter = collectionAdapter;
|
|
@@ -34,9 +34,13 @@ export interface Api {
|
|
|
34
34
|
};
|
|
35
35
|
collection: {
|
|
36
36
|
getCollections: (params?: Object) => Promise<any>;
|
|
37
|
+
getCollectionStatuses: () => Promise<any>;
|
|
37
38
|
};
|
|
38
39
|
claims: {
|
|
39
40
|
getClaims: (params?: Object) => Promise<any>;
|
|
40
41
|
};
|
|
42
|
+
billing: {
|
|
43
|
+
getBillings: (params?: Object) => Promise<any>;
|
|
44
|
+
};
|
|
41
45
|
}
|
|
42
46
|
export declare const createApiAdapter: (tenant?: string) => Api;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createApiAdapter = void 0;
|
|
4
|
+
const billingAdapter_1 = require("./billingAdapter");
|
|
4
5
|
const claimsAdapter_1 = require("./claimsAdapter");
|
|
5
6
|
const collectionAdapter_1 = require("./collectionAdapter");
|
|
6
7
|
const financeAdapter_1 = require("./financeAdapter");
|
|
@@ -14,5 +15,6 @@ const createApiAdapter = (tenant = 'default') => ({
|
|
|
14
15
|
policy: (0, policyAdapter_1.policyAdapter)(tenant),
|
|
15
16
|
collection: (0, collectionAdapter_1.collectionAdapter)(tenant),
|
|
16
17
|
claims: (0, claimsAdapter_1.claimsAdapter)(tenant),
|
|
18
|
+
billing: (0, billingAdapter_1.billingAdapter)(tenant)
|
|
17
19
|
});
|
|
18
20
|
exports.createApiAdapter = createApiAdapter;
|