@chift/chift-nodejs 1.0.25 → 1.0.27
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/modules/accounting.d.ts +11 -5
- package/dist/src/modules/accounting.js +67 -21
- package/dist/src/modules/api.d.ts +3729 -583
- package/dist/src/modules/api.js +2 -0
- package/dist/src/modules/banking.d.ts +3 -1
- package/dist/src/modules/banking.js +10 -2
- package/dist/src/modules/consumer.d.ts +722 -113
- package/dist/src/modules/consumer.js +5 -0
- package/dist/src/modules/consumers.d.ts +3657 -597
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/integrations.d.ts +6 -0
- package/dist/src/modules/internalApi.d.ts +4 -4
- package/dist/src/modules/invoicing.d.ts +7 -2
- package/dist/src/modules/invoicing.js +24 -0
- package/dist/src/modules/issues.d.ts +68 -0
- package/dist/src/modules/issues.js +33 -0
- package/dist/src/modules/pms.d.ts +3 -0
- package/dist/src/modules/pms.js +15 -0
- package/dist/src/modules/pos.d.ts +1 -0
- package/dist/src/modules/pos.js +8 -0
- package/dist/src/modules/sync.d.ts +2930 -482
- package/dist/src/modules/syncs.d.ts +0 -1
- package/dist/src/modules/syncs.js +0 -5
- package/dist/src/types/public-api/mappings.d.ts +21 -3
- package/dist/src/types/public-api/schema.d.ts +5593 -1670
- package/dist/test/modules/accounting.test.js +1 -29
- package/dist/test/modules/banking.test.js +3 -1
- package/dist/test/modules/consumer.test.js +1 -1
- package/dist/test/modules/raw-data.test.js +6 -4
- package/package.json +2 -3
- package/src/types/public-api/schema.d.ts +5593 -1670
package/dist/src/modules/api.js
CHANGED
|
@@ -16,6 +16,7 @@ const syncs_1 = require("./syncs");
|
|
|
16
16
|
const integrations_1 = require("./integrations");
|
|
17
17
|
const webhooks_1 = require("./webhooks");
|
|
18
18
|
const datastores_1 = require("./datastores");
|
|
19
|
+
const issues_1 = require("./issues");
|
|
19
20
|
class API {
|
|
20
21
|
constructor(auth) {
|
|
21
22
|
this._setup = () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -31,6 +32,7 @@ class API {
|
|
|
31
32
|
this.Integrations = (0, integrations_1.Integrations)(this.internalApi);
|
|
32
33
|
this.Webhooks = (0, webhooks_1.Webhooks)(this.internalApi);
|
|
33
34
|
this.DataStores = (0, datastores_1.DataStores)(this.internalApi);
|
|
35
|
+
this.Issues = (0, issues_1.Issues)(this.internalApi);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
exports.API = API;
|
|
@@ -4,10 +4,12 @@ type GetFinancialInstitutionsParams = AutoPaginatedParams<operations['banking_ge
|
|
|
4
4
|
type GetAccountsParams = AutoPaginatedParams<operations['banking_get_accounts']['parameters']['query']>;
|
|
5
5
|
type GetAccountTransactionsParams = AutoPaginatedParams<operations['banking_get_account_transactions']['parameters']['query']>;
|
|
6
6
|
type GetAccountCounterpartsParams = AutoPaginatedParams<operations['banking_get_account_counterparts']['parameters']['query']>;
|
|
7
|
+
type GetAttachmentsParams = AutoPaginatedParams<operations['banking_get_attachments']['parameters']['query']>;
|
|
7
8
|
declare const bankingFactory: {
|
|
8
9
|
getFinancialInstitutions(params?: GetFinancialInstitutionsParams, options?: RawDataOption): RequestData<components['schemas']['BankingFinancialInstitutionItem'][]>;
|
|
9
10
|
getAccounts(params?: GetAccountsParams, options?: RawDataOption): RequestData<components['schemas']['BankingAccountItem'][]>;
|
|
10
|
-
getAccountTransactions(
|
|
11
|
+
getAccountTransactions(params: GetAccountTransactionsParams, options?: RawDataOption): RequestData<components['schemas']['BankingTransactionItem'][]>;
|
|
11
12
|
getAccountCounterparts(params?: GetAccountCounterpartsParams, options?: RawDataOption): RequestData<components['schemas']['BankingCounterPartItem'][]>;
|
|
13
|
+
getAttachments(params: GetAttachmentsParams, options?: RawDataOption): RequestData<components['schemas']['ChiftPage_AttachmentItemOut_']>;
|
|
12
14
|
};
|
|
13
15
|
export { bankingFactory };
|
|
@@ -18,11 +18,11 @@ const bankingFactory = {
|
|
|
18
18
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
|
-
getAccountTransactions(
|
|
21
|
+
getAccountTransactions(params, options) {
|
|
22
22
|
return {
|
|
23
23
|
params,
|
|
24
24
|
method: 'get',
|
|
25
|
-
url: `/consumers/{consumer_id}/banking
|
|
25
|
+
url: `/consumers/{consumer_id}/banking/transactions`,
|
|
26
26
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
27
27
|
};
|
|
28
28
|
},
|
|
@@ -34,5 +34,13 @@ const bankingFactory = {
|
|
|
34
34
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
35
35
|
};
|
|
36
36
|
},
|
|
37
|
+
getAttachments(params, options) {
|
|
38
|
+
return {
|
|
39
|
+
params,
|
|
40
|
+
method: 'get',
|
|
41
|
+
url: '/consumers/{consumer_id}/banking/attachments',
|
|
42
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
43
|
+
};
|
|
44
|
+
},
|
|
37
45
|
};
|
|
38
46
|
exports.bankingFactory = bankingFactory;
|