@chift/chift-nodejs 1.0.2 → 1.0.4
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/CHANGELOG.md +9 -0
- package/dist/src/modules/accounting.d.ts +8 -1
- package/dist/src/modules/accounting.js +27 -1
- package/dist/src/modules/api.d.ts +2699 -912
- package/dist/src/modules/consumer.d.ts +146 -27
- package/dist/src/modules/consumers.d.ts +731 -136
- package/dist/src/modules/datastores.d.ts +1 -1
- package/dist/src/modules/integrations.d.ts +2 -0
- package/dist/src/modules/sync.d.ts +584 -108
- package/dist/src/modules/sync.js +0 -2
- package/dist/src/modules/syncs.d.ts +1464 -274
- package/dist/test/modules/accounting.test.js +127 -15
- package/dist/test/modules/consumers.test.js +1 -1
- package/dist/test/modules/pos.test.js +4 -4
- package/package.json +1 -1
- package/src/modules/accounting.ts +17 -3
- package/src/types/public-api/schema.d.ts +343 -33
- package/test/modules/accounting.test.ts +27 -0
- package/.eslintcache +0 -1
- package/coverage/clover.xml +0 -1645
- package/coverage/coverage-final.json +0 -19
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -146
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/helpers/index.html +0 -131
- package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
- package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/index.ts.html +0 -88
- package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
- package/coverage/lcov-report/src/modules/api.ts.html +0 -190
- package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
- package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
- package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
- package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
- package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
- package/coverage/lcov-report/src/modules/index.html +0 -326
- package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
- package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
- package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
- package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
- package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
- package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
- package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
- package/coverage/lcov.info +0 -1976
- package/dist/test/modules/flow.test.d.ts +0 -1
- package/dist/test/modules/flow.test.js +0 -69
package/CHANGELOG.md
CHANGED
|
@@ -14,3 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
- add createFinancialEntry params
|
|
16
16
|
- add createJournalEntry route
|
|
17
|
+
|
|
18
|
+
## 1.0.3 - 2023-10-09
|
|
19
|
+
|
|
20
|
+
- fix missing accounting model definitions
|
|
21
|
+
|
|
22
|
+
## 1.0.4 - 2023-10-18
|
|
23
|
+
|
|
24
|
+
- Update createFinancialEntry endpoint
|
|
25
|
+
- Deprecate previous createFinancialEntry endpoint (changed to createFinancialEntryOld)
|
|
@@ -6,6 +6,7 @@ type getJournalEntriesWithMultiplePlansParams = Omit<operations['accounting_get_
|
|
|
6
6
|
type getJournalEntriesParams = Omit<operations['accounting_get_journal_entries']['parameters']['query'], 'page' | 'size'>;
|
|
7
7
|
type getInvoicesByTypeWithMultiplePlansParams = Omit<operations['accounting_get_invoices_by_type_multi_analytic_plans']['parameters']['query'], 'page' | 'size'>;
|
|
8
8
|
type getInvoicesByTypeParams = Omit<operations['accounting_get_invoices_by_type']['parameters']['query'], 'page' | 'size'>;
|
|
9
|
+
type getOutstandingsParams = Omit<operations['accounting_get_outstandings']['parameters']['query'], 'page' | 'size'>;
|
|
9
10
|
declare const accountingFactory: {
|
|
10
11
|
getAnalyticPlans(): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
11
12
|
getClients(): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
@@ -43,6 +44,12 @@ declare const accountingFactory: {
|
|
|
43
44
|
getChartOfAccounts(params: getChartOfAccountsParams): RequestData<components['schemas']['AccountItem'][]>;
|
|
44
45
|
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter']): RequestData<components['schemas']['AccountBalance'][]>;
|
|
45
46
|
getEmployees(): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
46
|
-
|
|
47
|
+
getOutstandings(params: getOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated replaced by createFinancialEntry
|
|
50
|
+
*/
|
|
51
|
+
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
|
|
52
|
+
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
|
|
53
|
+
createJournalEntry(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
47
54
|
};
|
|
48
55
|
export { accountingFactory };
|
|
@@ -244,12 +244,38 @@ const accountingFactory = {
|
|
|
244
244
|
url: '/consumers/{consumer_id}/accounting/employees',
|
|
245
245
|
};
|
|
246
246
|
},
|
|
247
|
-
|
|
247
|
+
getOutstandings(params) {
|
|
248
248
|
return {
|
|
249
|
+
params,
|
|
250
|
+
method: 'get',
|
|
251
|
+
url: '/consumers/{consumer_id}/accounting/outstandings',
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated replaced by createFinancialEntry
|
|
256
|
+
*/
|
|
257
|
+
createFinancialEntryOld(financial_entry, params) {
|
|
258
|
+
return {
|
|
259
|
+
params,
|
|
249
260
|
method: 'post',
|
|
250
261
|
url: '/consumers/{consumer_id}/accounting/financial-entry',
|
|
251
262
|
body: financial_entry,
|
|
252
263
|
};
|
|
253
264
|
},
|
|
265
|
+
createFinancialEntry(financial_entry, params) {
|
|
266
|
+
return {
|
|
267
|
+
params,
|
|
268
|
+
method: 'post',
|
|
269
|
+
url: '/consumers/{consumer_id}/accounting/financial-entries',
|
|
270
|
+
body: financial_entry,
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
createJournalEntry(journal_entry) {
|
|
274
|
+
return {
|
|
275
|
+
method: 'post',
|
|
276
|
+
url: '/consumers/{consumer_id}/accounting/journal/entries',
|
|
277
|
+
body: journal_entry,
|
|
278
|
+
};
|
|
279
|
+
},
|
|
254
280
|
};
|
|
255
281
|
exports.accountingFactory = accountingFactory;
|