@chift/chift-nodejs 1.0.26 → 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 +8 -0
- package/dist/src/modules/accounting.js +41 -0
- package/dist/src/modules/api.d.ts +2133 -83
- 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 +405 -15
- package/dist/src/modules/consumer.js +5 -0
- package/dist/src/modules/consumers.d.ts +2049 -84
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/integrations.d.ts +5 -0
- package/dist/src/modules/internalApi.d.ts +4 -4
- package/dist/src/modules/invoicing.d.ts +2 -2
- 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/sync.d.ts +1639 -67
- 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 +2682 -1001
- 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 -2
- package/src/types/public-api/schema.d.ts +2682 -1001
|
@@ -18,6 +18,9 @@ type GetSuppliersParams = AutoPaginatedParams<operations['accounting_get_supplie
|
|
|
18
18
|
type GetAnalyticAccountsParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts']['parameters']['query']>;
|
|
19
19
|
type GetAnalyticAccountsWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts_multi_plans']['parameters']['query']>;
|
|
20
20
|
type GetBookyearsParams = AutoPaginatedParams<operations['accounting_get_bookyears']['parameters']['query']>;
|
|
21
|
+
type GetBankAccountsParams = AutoPaginatedParams<operations['accounting_get_bank_accounts']['parameters']['query']>;
|
|
22
|
+
type GetPaymentTermsParams = AutoPaginatedParams<operations['accounting_get_payment_terms']['parameters']['query']>;
|
|
23
|
+
type GetSchemesParams = AutoPaginatedParams<operations['accounting_get_schemes']['parameters']['query']>;
|
|
21
24
|
declare const accountingFactory: {
|
|
22
25
|
getAnalyticPlans(params?: GetAnalyticPlansParams, options?: RawDataOption): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
23
26
|
getClients(params?: GetClientsParams, options?: RawDataOption): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
@@ -65,9 +68,14 @@ declare const accountingFactory: {
|
|
|
65
68
|
getFolders(options?: RawDataOption): RequestData<components['schemas']['FolderItem'][]>;
|
|
66
69
|
getBookyears(params?: GetBookyearsParams, options?: RawDataOption): RequestData<components['schemas']['BookYear'][]>;
|
|
67
70
|
createLedgerAccount(account: components['schemas']['LedgerAccountItemIn'], params?: operations['accounting_create_ledger_account']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['AccountItem']>;
|
|
71
|
+
getBankAccounts(params?: GetBankAccountsParams, options?: RawDataOption): RequestData<components['schemas']['ChiftPage_BankAccountItemOut_']>;
|
|
68
72
|
createBankAccount(bankAccount: components['schemas']['BankAccountItemIn'], params?: operations['accounting_create_bank_account']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['BankAccountItemOut']>;
|
|
73
|
+
createBankTransactions(bankStatement: components['schemas']['BankStatementItemIn'], params?: operations['accounting_create_bank_transactions']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['BankStatementItemOut']>;
|
|
69
74
|
getJournalEntry(journalEntryId: string, params?: operations['accounting_get_journal_entry']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
70
75
|
getPaymentMethods(params?: operations['accounting_get_payment_methods']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['ChiftPage_AccountingPaymentMethod_']>;
|
|
76
|
+
getPaymentTerms(params?: GetPaymentTermsParams, options?: RawDataOption): RequestData<components['schemas']['ChiftPage_AccountingPaymentTerms_']>;
|
|
77
|
+
getSchemes(params?: GetSchemesParams, options?: RawDataOption): RequestData<components['schemas']['ChiftPage_SchemeItem_']>;
|
|
71
78
|
createInvoicePayment(body: components['schemas']['AccountingInvoicePaymentIn'], params?: operations['accounting_create_invoice_payment']['parameters']['query']): RequestData<operations['accounting_create_invoice_payment']['responses'][204]>;
|
|
79
|
+
exportFec(params: operations['accounting_export_fec']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['FECItemOut'][]>;
|
|
72
80
|
};
|
|
73
81
|
export { accountingFactory };
|
|
@@ -384,6 +384,14 @@ const accountingFactory = {
|
|
|
384
384
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
385
385
|
};
|
|
386
386
|
},
|
|
387
|
+
getBankAccounts(params, options) {
|
|
388
|
+
return {
|
|
389
|
+
params,
|
|
390
|
+
method: 'get',
|
|
391
|
+
url: '/consumers/{consumer_id}/accounting/bank-accounts',
|
|
392
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
393
|
+
};
|
|
394
|
+
},
|
|
387
395
|
createBankAccount(bankAccount, params, options) {
|
|
388
396
|
return {
|
|
389
397
|
params,
|
|
@@ -393,6 +401,15 @@ const accountingFactory = {
|
|
|
393
401
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
394
402
|
};
|
|
395
403
|
},
|
|
404
|
+
createBankTransactions(bankStatement, params, options) {
|
|
405
|
+
return {
|
|
406
|
+
params,
|
|
407
|
+
method: 'post',
|
|
408
|
+
url: '/consumers/{consumer_id}/accounting/bank-transactions',
|
|
409
|
+
body: bankStatement,
|
|
410
|
+
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
411
|
+
};
|
|
412
|
+
},
|
|
396
413
|
getJournalEntry(journalEntryId, params, options) {
|
|
397
414
|
return {
|
|
398
415
|
params,
|
|
@@ -409,6 +426,22 @@ const accountingFactory = {
|
|
|
409
426
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
410
427
|
};
|
|
411
428
|
},
|
|
429
|
+
getPaymentTerms(params, options) {
|
|
430
|
+
return {
|
|
431
|
+
params,
|
|
432
|
+
method: 'get',
|
|
433
|
+
url: `/consumers/{consumer_id}/accounting/payment-terms`,
|
|
434
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
getSchemes(params, options) {
|
|
438
|
+
return {
|
|
439
|
+
params,
|
|
440
|
+
method: 'get',
|
|
441
|
+
url: `/consumers/{consumer_id}/accounting/schemes`,
|
|
442
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
443
|
+
};
|
|
444
|
+
},
|
|
412
445
|
createInvoicePayment(body, params) {
|
|
413
446
|
return {
|
|
414
447
|
params,
|
|
@@ -417,5 +450,13 @@ const accountingFactory = {
|
|
|
417
450
|
body,
|
|
418
451
|
};
|
|
419
452
|
},
|
|
453
|
+
exportFec(params, options) {
|
|
454
|
+
return {
|
|
455
|
+
params,
|
|
456
|
+
method: 'get',
|
|
457
|
+
url: `/consumers/{consumer_id}/accounting/export-fec`,
|
|
458
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
459
|
+
};
|
|
460
|
+
},
|
|
420
461
|
};
|
|
421
462
|
exports.accountingFactory = accountingFactory;
|