@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
|
@@ -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'][]>;
|
|
@@ -57,19 +60,22 @@ declare const accountingFactory: {
|
|
|
57
60
|
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params?: GetBalanceOfAccountsParams): RequestData<components['schemas']['AccountBalance'][]>;
|
|
58
61
|
getEmployees(params?: GetEmployeesParams, options?: RawDataOption): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
59
62
|
getOutstandings(params: GetOutstandingsParams, options?: RawDataOption): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated replaced by createFinancialEntry
|
|
62
|
-
*/
|
|
63
|
-
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params?: operations['accounting_create_financial_entry']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
|
|
64
63
|
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['FinancialEntryItemOut']>;
|
|
65
|
-
createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn'], options?: ClientRequestOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
66
64
|
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
67
65
|
matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
|
|
68
66
|
matchEntriesMultiple(body: components['schemas']['MultipleMatchingIn'], params?: operations['accounting_match_entries_multiple']['parameters']['query']): RequestData<components['schemas']['MultipleMatchingOut'][]>;
|
|
67
|
+
createExpense(expense: components['schemas']['ExpenseItemIn'], params?: operations['accounting_create_expense']['parameters']['query'], options?: ClientRequestOption): RequestData<components['schemas']['ExpenseItemOut']>;
|
|
69
68
|
getFolders(options?: RawDataOption): RequestData<components['schemas']['FolderItem'][]>;
|
|
70
69
|
getBookyears(params?: GetBookyearsParams, options?: RawDataOption): RequestData<components['schemas']['BookYear'][]>;
|
|
71
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_']>;
|
|
72
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']>;
|
|
73
74
|
getJournalEntry(journalEntryId: string, params?: operations['accounting_get_journal_entry']['parameters']['query'], options?: RawDataOption): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
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_']>;
|
|
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'][]>;
|
|
74
80
|
};
|
|
75
81
|
export { accountingFactory };
|
|
@@ -231,7 +231,7 @@ const accountingFactory = {
|
|
|
231
231
|
return {
|
|
232
232
|
params,
|
|
233
233
|
method: 'post',
|
|
234
|
-
url: '/consumers/{consumer_id}/accounting/
|
|
234
|
+
url: '/consumers/{consumer_id}/accounting/journal',
|
|
235
235
|
body: journal,
|
|
236
236
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
237
237
|
};
|
|
@@ -317,18 +317,6 @@ const accountingFactory = {
|
|
|
317
317
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
318
318
|
};
|
|
319
319
|
},
|
|
320
|
-
/**
|
|
321
|
-
* @deprecated replaced by createFinancialEntry
|
|
322
|
-
*/
|
|
323
|
-
createFinancialEntryOld(financial_entry, params, options) {
|
|
324
|
-
return {
|
|
325
|
-
params,
|
|
326
|
-
method: 'post',
|
|
327
|
-
url: '/consumers/{consumer_id}/accounting/financial-entry',
|
|
328
|
-
body: financial_entry,
|
|
329
|
-
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
330
|
-
};
|
|
331
|
-
},
|
|
332
320
|
createFinancialEntry(financial_entry, params, options) {
|
|
333
321
|
return {
|
|
334
322
|
params,
|
|
@@ -338,14 +326,6 @@ const accountingFactory = {
|
|
|
338
326
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
339
327
|
};
|
|
340
328
|
},
|
|
341
|
-
createJournalEntryOld(journal_entry, options) {
|
|
342
|
-
return {
|
|
343
|
-
method: 'post',
|
|
344
|
-
url: '/consumers/{consumer_id}/accounting/journal/entries',
|
|
345
|
-
body: journal_entry,
|
|
346
|
-
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
347
|
-
};
|
|
348
|
-
},
|
|
349
329
|
createJournalEntry(journal_entry, params, options) {
|
|
350
330
|
return {
|
|
351
331
|
params,
|
|
@@ -371,6 +351,15 @@ const accountingFactory = {
|
|
|
371
351
|
body,
|
|
372
352
|
};
|
|
373
353
|
},
|
|
354
|
+
createExpense(expense, params, options) {
|
|
355
|
+
return {
|
|
356
|
+
params,
|
|
357
|
+
method: 'post',
|
|
358
|
+
url: '/consumers/{consumer_id}/accounting/expenses',
|
|
359
|
+
body: expense,
|
|
360
|
+
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
361
|
+
};
|
|
362
|
+
},
|
|
374
363
|
getFolders(options) {
|
|
375
364
|
return {
|
|
376
365
|
method: 'get',
|
|
@@ -395,6 +384,14 @@ const accountingFactory = {
|
|
|
395
384
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
396
385
|
};
|
|
397
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
|
+
},
|
|
398
395
|
createBankAccount(bankAccount, params, options) {
|
|
399
396
|
return {
|
|
400
397
|
params,
|
|
@@ -404,6 +401,15 @@ const accountingFactory = {
|
|
|
404
401
|
clientRequestId: options === null || options === void 0 ? void 0 : options.clientRequestId,
|
|
405
402
|
};
|
|
406
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
|
+
},
|
|
407
413
|
getJournalEntry(journalEntryId, params, options) {
|
|
408
414
|
return {
|
|
409
415
|
params,
|
|
@@ -412,5 +418,45 @@ const accountingFactory = {
|
|
|
412
418
|
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
413
419
|
};
|
|
414
420
|
},
|
|
421
|
+
getPaymentMethods(params, options) {
|
|
422
|
+
return {
|
|
423
|
+
params,
|
|
424
|
+
method: 'get',
|
|
425
|
+
url: `/consumers/{consumer_id}/accounting/payment-methods`,
|
|
426
|
+
rawData: options === null || options === void 0 ? void 0 : options.rawData,
|
|
427
|
+
};
|
|
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
|
+
},
|
|
445
|
+
createInvoicePayment(body, params) {
|
|
446
|
+
return {
|
|
447
|
+
params,
|
|
448
|
+
method: 'post',
|
|
449
|
+
url: `/consumers/{consumer_id}/accounting/invoices/payments`,
|
|
450
|
+
body,
|
|
451
|
+
};
|
|
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
|
+
},
|
|
415
461
|
};
|
|
416
462
|
exports.accountingFactory = accountingFactory;
|