@chift/chift-nodejs 1.0.21 → 1.0.23

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.
@@ -50,7 +50,7 @@ declare const accountingFactory: {
50
50
  getMiscOperations(params?: GetMiscOperationsParams): RequestData<components['schemas']['MiscellaneousOperationOut'][]>;
51
51
  createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn'], params?: operations['accounting_create_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
52
52
  getMiscOperation(operation_id: string, params?: operations['accounting_get_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
53
- attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params?: operations['accounting_add_attachment']['parameters']['query']): RequestData<operations['accounting_add_attachment']['responses'][201]>;
53
+ attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params?: operations['accounting_add_attachment']['parameters']['query']): RequestData<operations['accounting_add_attachment']['responses'][204]>;
54
54
  getAttachments(params: GetAttachmentsParams): RequestData<components['schemas']['AttachmentItem'][]>;
55
55
  getChartOfAccounts(params?: GetChartOfAccountsParams): RequestData<components['schemas']['AccountItem'][]>;
56
56
  getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params?: GetBalanceOfAccountsParams): RequestData<components['schemas']['AccountBalance'][]>;
@@ -60,12 +60,14 @@ declare const accountingFactory: {
60
60
  * @deprecated replaced by createFinancialEntry
61
61
  */
62
62
  createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params?: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
63
- createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
63
+ createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut']>;
64
64
  createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
65
65
  createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
66
66
  matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
67
67
  matchEntriesMultiple(body: components['schemas']['MultipleMatchingIn'], params?: operations['accounting_match_entries_multiple']['parameters']['query']): RequestData<components['schemas']['MultipleMatchingOut'][]>;
68
68
  getFolders(): RequestData<components['schemas']['FolderItem'][]>;
69
69
  getBookyears(params?: GetBookyearsParams): RequestData<components['schemas']['BookYear'][]>;
70
+ createLedgerAccount(account: components['schemas']['LedgerAccountItemIn'], params?: operations['accounting_create_ledger_account']['parameters']['query']): RequestData<components['schemas']['AccountItem']>;
71
+ getJournalEntry(journalEntryId: string, params?: operations['accounting_get_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
70
72
  };
71
73
  export { accountingFactory };
@@ -311,17 +311,17 @@ const accountingFactory = {
311
311
  matchEntries(body, params) {
312
312
  return {
313
313
  params,
314
- body,
315
314
  method: 'post',
316
315
  url: '/consumers/{consumer_id}/accounting/matching',
316
+ body,
317
317
  };
318
318
  },
319
319
  matchEntriesMultiple(body, params) {
320
320
  return {
321
321
  params,
322
- body,
323
322
  method: 'post',
324
323
  url: '/consumers/{consumer_id}/accounting/matching-multiple',
324
+ body,
325
325
  };
326
326
  },
327
327
  getFolders() {
@@ -337,5 +337,20 @@ const accountingFactory = {
337
337
  url: '/consumers/{consumer_id}/accounting/bookyears',
338
338
  };
339
339
  },
340
+ createLedgerAccount(account, params) {
341
+ return {
342
+ params,
343
+ method: 'post',
344
+ url: '/consumers/{consumer_id}/accounting/accounts',
345
+ body: account,
346
+ };
347
+ },
348
+ getJournalEntry(journalEntryId, params) {
349
+ return {
350
+ params,
351
+ method: 'get',
352
+ url: `/consumers/{consumer_id}/accounting/journal/entries/${journalEntryId}`,
353
+ };
354
+ },
340
355
  };
341
356
  exports.accountingFactory = accountingFactory;