@chift/chift-nodejs 1.0.20 → 1.0.22
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 +7 -4
- package/dist/src/modules/accounting.js +15 -0
- package/dist/src/modules/api.d.ts +2059 -169
- package/dist/src/modules/consumer.d.ts +387 -22
- package/dist/src/modules/consumer.js +10 -0
- package/dist/src/modules/consumers.d.ts +2028 -163
- package/dist/src/modules/datastores.d.ts +17 -0
- package/dist/src/modules/datastores.js +19 -0
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/flow.d.ts +6 -0
- package/dist/src/modules/flow.js +5 -0
- package/dist/src/modules/integrations.d.ts +2 -1
- package/dist/src/modules/integrations.js +5 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/invoicing.js +12 -0
- package/dist/src/modules/pms.d.ts +4 -0
- package/dist/src/modules/pms.js +14 -0
- package/dist/src/modules/sync.d.ts +1680 -143
- package/dist/src/modules/sync.js +15 -0
- package/dist/src/modules/syncs.d.ts +3 -0
- package/dist/src/modules/syncs.js +15 -0
- package/dist/src/modules/webhooks.d.ts +2 -0
- package/dist/src/types/public-api/schema.d.ts +1755 -779
- package/dist/src/types/public-api/schema.js +6 -0
- package/dist/test/modules/accounting.test.js +4 -0
- package/dist/test/modules/invoicing.test.js +15 -0
- package/dist/test/modules/pms.test.js +17 -0
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +1755 -779
|
@@ -9,7 +9,7 @@ type GetAnalyticPlansParams = AutoPaginatedParams<operations['accounting_get_ana
|
|
|
9
9
|
type GetVatCodesParams = AutoPaginatedParams<operations['accounting_get_vat_codes']['parameters']['query']>;
|
|
10
10
|
type GetJournalsParams = AutoPaginatedParams<operations['accounting_get_journals']['parameters']['query']>;
|
|
11
11
|
type GetJournalEntriesParams = AutoPaginatedParams<operations['accounting_get_journal_entries']['parameters']['query']>;
|
|
12
|
-
type GetJournalEntriesWithMultiplePlansParams = AutoPaginatedParams<operations['
|
|
12
|
+
type GetJournalEntriesWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_journal_entries_multi_plan']['parameters']['query']>;
|
|
13
13
|
type GetEmployeesParams = AutoPaginatedParams<operations['accounting_get_employees']['parameters']['query']>;
|
|
14
14
|
type GetAttachmentsParams = AutoPaginatedParams<operations['accounting_get_attachments']['parameters']['query']>;
|
|
15
15
|
type GetBalanceOfAccountsParams = AutoPaginatedParams<operations['accounting_get_accounts_balances']['parameters']['query']>;
|
|
@@ -17,6 +17,7 @@ type GetClientsParams = AutoPaginatedParams<operations['accounting_get_clients']
|
|
|
17
17
|
type GetSuppliersParams = AutoPaginatedParams<operations['accounting_get_suppliers']['parameters']['query']>;
|
|
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
|
+
type GetBookyearsParams = AutoPaginatedParams<operations['accounting_get_bookyears']['parameters']['query']>;
|
|
20
21
|
declare const accountingFactory: {
|
|
21
22
|
getAnalyticPlans(params?: GetAnalyticPlansParams): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
22
23
|
getClients(params?: GetClientsParams): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
@@ -29,10 +30,10 @@ declare const accountingFactory: {
|
|
|
29
30
|
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate'], params?: operations['accounting_update_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
30
31
|
createInvoice(invoice: components['schemas']['InvoiceItemInMonoAnalyticPlan'], params?: operations['accounting_create_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
31
32
|
createInvoiceWithMultiplePlans(invoice: components['schemas']['InvoiceItemInMultiAnalyticPlans'], params?: operations['accounting_create_invoice_multiple_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
32
|
-
getInvoicesByType(invoice_type: components['schemas']['
|
|
33
|
+
getInvoicesByType(invoice_type: components['schemas']['backbone_common__models__accounting__common__InvoiceType'], params?: GetInvoicesByTypeParams): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan'][]>;
|
|
33
34
|
getInvoice(invoiceId: string, params?: operations['accounting_get_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
34
35
|
getInvoiceWithMultiplePlans(invoiceId: string, params?: operations['accounting_get_invoice_multi_analytic_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
35
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['
|
|
36
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['backbone_common__models__accounting__common__InvoiceType'], params?: GetInvoicesByTypeWithMultiplePlansParams): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans'][]>;
|
|
36
37
|
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
37
38
|
getAnalyticAccounts(params?: GetAnalyticAccountsParams): RequestData<components['schemas']['AnalyticAccountItemOut'][]>;
|
|
38
39
|
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
@@ -45,7 +46,7 @@ declare const accountingFactory: {
|
|
|
45
46
|
getJournalEntriesWithMultiplePlans(params: GetJournalEntriesWithMultiplePlansParams): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan'][]>;
|
|
46
47
|
getPaymentsByInvoiceId(invoice_id: string, params?: operations['accounting_get_payments_by_invoice']['parameters']['query']): RequestData<components['schemas']['Payment'][]>;
|
|
47
48
|
getJournals(params?: GetJournalsParams): RequestData<components['schemas']['Journal'][]>;
|
|
48
|
-
getVatCodes(params?: GetVatCodesParams): RequestData<components['schemas']['
|
|
49
|
+
getVatCodes(params?: GetVatCodesParams): RequestData<components['schemas']['AccountingVatCode'][]>;
|
|
49
50
|
getMiscOperations(params?: GetMiscOperationsParams): RequestData<components['schemas']['MiscellaneousOperationOut'][]>;
|
|
50
51
|
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn'], params?: operations['accounting_create_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
51
52
|
getMiscOperation(operation_id: string, params?: operations['accounting_get_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
@@ -63,6 +64,8 @@ declare const accountingFactory: {
|
|
|
63
64
|
createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
64
65
|
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
65
66
|
matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
|
|
67
|
+
matchEntriesMultiple(body: components['schemas']['MultipleMatchingIn'], params?: operations['accounting_match_entries_multiple']['parameters']['query']): RequestData<components['schemas']['MultipleMatchingOut'][]>;
|
|
66
68
|
getFolders(): RequestData<components['schemas']['FolderItem'][]>;
|
|
69
|
+
getBookyears(params?: GetBookyearsParams): RequestData<components['schemas']['BookYear'][]>;
|
|
67
70
|
};
|
|
68
71
|
export { accountingFactory };
|
|
@@ -316,11 +316,26 @@ const accountingFactory = {
|
|
|
316
316
|
url: '/consumers/{consumer_id}/accounting/matching',
|
|
317
317
|
};
|
|
318
318
|
},
|
|
319
|
+
matchEntriesMultiple(body, params) {
|
|
320
|
+
return {
|
|
321
|
+
params,
|
|
322
|
+
body,
|
|
323
|
+
method: 'post',
|
|
324
|
+
url: '/consumers/{consumer_id}/accounting/matching-multiple',
|
|
325
|
+
};
|
|
326
|
+
},
|
|
319
327
|
getFolders() {
|
|
320
328
|
return {
|
|
321
329
|
method: 'get',
|
|
322
330
|
url: '/consumers/{consumer_id}/accounting/folders',
|
|
323
331
|
};
|
|
324
332
|
},
|
|
333
|
+
getBookyears(params) {
|
|
334
|
+
return {
|
|
335
|
+
params,
|
|
336
|
+
method: 'get',
|
|
337
|
+
url: '/consumers/{consumer_id}/accounting/bookyears',
|
|
338
|
+
};
|
|
339
|
+
},
|
|
325
340
|
};
|
|
326
341
|
exports.accountingFactory = accountingFactory;
|