@chift/chift-nodejs 1.0.23 → 1.0.25
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/README.md +37 -0
- package/dist/src/modules/accounting.d.ts +45 -43
- package/dist/src/modules/accounting.js +102 -42
- package/dist/src/modules/api.d.ts +13247 -11010
- package/dist/src/modules/banking.d.ts +13 -0
- package/dist/src/modules/banking.js +38 -0
- package/dist/src/modules/consumer.d.ts +2594 -2163
- package/dist/src/modules/consumer.js +3 -0
- package/dist/src/modules/consumers.d.ts +13205 -10980
- package/dist/src/modules/custom.d.ts +4 -4
- package/dist/src/modules/custom.js +6 -3
- package/dist/src/modules/datastores.d.ts +12 -6
- package/dist/src/modules/ecommerce.d.ts +18 -15
- package/dist/src/modules/ecommerce.js +32 -14
- package/dist/src/modules/flow.d.ts +2 -2
- package/dist/src/modules/integrations.d.ts +4 -2
- package/dist/src/modules/internalApi.js +11 -0
- package/dist/src/modules/invoicing.d.ts +16 -16
- package/dist/src/modules/invoicing.js +33 -18
- package/dist/src/modules/payment.d.ts +6 -6
- package/dist/src/modules/payment.js +10 -5
- package/dist/src/modules/pms.d.ts +8 -8
- package/dist/src/modules/pms.js +16 -8
- package/dist/src/modules/pos.d.ts +15 -15
- package/dist/src/modules/pos.js +29 -15
- package/dist/src/modules/sync.d.ts +10553 -8771
- package/dist/src/modules/webhooks.d.ts +12 -12
- package/dist/src/types/api.d.ts +9 -0
- package/dist/src/types/public-api/mappings.d.ts +128 -1
- package/dist/src/types/public-api/schema.d.ts +3856 -2132
- package/dist/src/types/public-api/schema.js +6 -0
- package/dist/test/modules/banking.test.d.ts +1 -0
- package/dist/test/modules/banking.test.js +94 -0
- package/dist/test/modules/client-request-id.test.d.ts +1 -0
- package/dist/test/modules/client-request-id.test.js +135 -0
- package/dist/test/modules/ecommerce.test.js +2 -1
- package/dist/test/modules/invoicing-pdf.test.d.ts +1 -0
- package/dist/test/modules/invoicing-pdf.test.js +34 -0
- package/dist/test/modules/raw-data.test.d.ts +1 -0
- package/dist/test/modules/raw-data.test.js +55 -0
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +3856 -2132
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { operations, components } from '../types/public-api/schema';
|
|
2
|
+
import { AutoPaginatedParams, RequestData, RawDataOption } from '../types/api';
|
|
3
|
+
type GetFinancialInstitutionsParams = AutoPaginatedParams<operations['banking_get_financial_institutions']['parameters']['query']>;
|
|
4
|
+
type GetAccountsParams = AutoPaginatedParams<operations['banking_get_accounts']['parameters']['query']>;
|
|
5
|
+
type GetAccountTransactionsParams = AutoPaginatedParams<operations['banking_get_account_transactions']['parameters']['query']>;
|
|
6
|
+
type GetAccountCounterpartsParams = AutoPaginatedParams<operations['banking_get_account_counterparts']['parameters']['query']>;
|
|
7
|
+
declare const bankingFactory: {
|
|
8
|
+
getFinancialInstitutions(params?: GetFinancialInstitutionsParams, options?: RawDataOption): RequestData<components['schemas']['BankingFinancialInstitutionItem'][]>;
|
|
9
|
+
getAccounts(params?: GetAccountsParams, options?: RawDataOption): RequestData<components['schemas']['BankingAccountItem'][]>;
|
|
10
|
+
getAccountTransactions(accountId: string, params?: GetAccountTransactionsParams, options?: RawDataOption): RequestData<components['schemas']['BankingTransactionItem'][]>;
|
|
11
|
+
getAccountCounterparts(params?: GetAccountCounterpartsParams, options?: RawDataOption): RequestData<components['schemas']['BankingCounterPartItem'][]>;
|
|
12
|
+
};
|
|
13
|
+
export { bankingFactory };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bankingFactory = void 0;
|
|
4
|
+
const bankingFactory = {
|
|
5
|
+
getFinancialInstitutions(params, options) {
|
|
6
|
+
return {
|
|
7
|
+
params,
|
|
8
|
+
method: 'get',
|
|
9
|
+
url: '/consumers/{consumer_id}/banking/financial-institutions',
|
|
10
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
getAccounts(params, options) {
|
|
14
|
+
return {
|
|
15
|
+
params,
|
|
16
|
+
method: 'get',
|
|
17
|
+
url: '/consumers/{consumer_id}/banking/accounts',
|
|
18
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
getAccountTransactions(accountId, params, options) {
|
|
22
|
+
return {
|
|
23
|
+
params,
|
|
24
|
+
method: 'get',
|
|
25
|
+
url: `/consumers/{consumer_id}/banking/${accountId}/transactions`,
|
|
26
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
getAccountCounterparts(params, options) {
|
|
30
|
+
return {
|
|
31
|
+
params,
|
|
32
|
+
method: 'get',
|
|
33
|
+
url: '/consumers/{consumer_id}/banking/counterparts',
|
|
34
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
exports.bankingFactory = bankingFactory;
|