@chift/chift-nodejs 1.0.3 → 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 +5 -0
- package/dist/src/modules/accounting.d.ts +5 -1
- package/dist/src/modules/accounting.js +12 -1
- package/dist/src/modules/api.d.ts +781 -226
- package/dist/src/modules/consumer.d.ts +52 -15
- package/dist/src/modules/consumers.d.ts +260 -75
- package/dist/src/modules/datastores.d.ts +1 -1
- package/dist/src/modules/sync.d.ts +208 -60
- package/dist/src/modules/syncs.d.ts +520 -150
- package/dist/test/modules/accounting.test.js +23 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -45,7 +45,11 @@ declare const accountingFactory: {
|
|
|
45
45
|
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter']): RequestData<components['schemas']['AccountBalance'][]>;
|
|
46
46
|
getEmployees(): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
47
47
|
getOutstandings(params: getOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
48
|
-
|
|
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'][]>;
|
|
49
53
|
createJournalEntry(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
50
54
|
};
|
|
51
55
|
export { accountingFactory };
|
|
@@ -251,7 +251,10 @@ const accountingFactory = {
|
|
|
251
251
|
url: '/consumers/{consumer_id}/accounting/outstandings',
|
|
252
252
|
};
|
|
253
253
|
},
|
|
254
|
-
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated replaced by createFinancialEntry
|
|
256
|
+
*/
|
|
257
|
+
createFinancialEntryOld(financial_entry, params) {
|
|
255
258
|
return {
|
|
256
259
|
params,
|
|
257
260
|
method: 'post',
|
|
@@ -259,6 +262,14 @@ const accountingFactory = {
|
|
|
259
262
|
body: financial_entry,
|
|
260
263
|
};
|
|
261
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
|
+
},
|
|
262
273
|
createJournalEntry(journal_entry) {
|
|
263
274
|
return {
|
|
264
275
|
method: 'post',
|