@chift/chift-nodejs 1.0.2 → 1.0.3
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 +4 -0
- package/dist/src/modules/accounting.d.ts +4 -1
- package/dist/src/modules/accounting.js +16 -1
- package/dist/src/modules/api.d.ts +1494 -262
- package/dist/src/modules/consumer.d.ts +95 -13
- package/dist/src/modules/consumers.d.ts +475 -65
- package/dist/src/modules/integrations.d.ts +2 -0
- package/dist/src/modules/sync.d.ts +380 -52
- package/dist/src/modules/sync.js +0 -2
- package/dist/src/modules/syncs.d.ts +956 -136
- package/dist/test/modules/accounting.test.js +104 -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/.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
|
@@ -69,6 +69,18 @@ let journals;
|
|
|
69
69
|
(0, globals_1.expect)(journals[0]).toHaveProperty('name', globals_1.expect.any(String));
|
|
70
70
|
(0, globals_1.expect)(journals[0]).toHaveProperty('journal_type', globals_1.expect.any(String));
|
|
71
71
|
}));
|
|
72
|
+
let vatCodes;
|
|
73
|
+
(0, globals_1.test)('getVatCodes', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
+
vatCodes = yield consumer.accounting.getVatCodes();
|
|
75
|
+
(0, globals_1.expect)(vatCodes).toBeInstanceOf(Array);
|
|
76
|
+
(0, globals_1.expect)(vatCodes.length).toBeGreaterThan(0);
|
|
77
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('id', globals_1.expect.any(String));
|
|
78
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('code');
|
|
79
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('label', globals_1.expect.any(String));
|
|
80
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('scope', globals_1.expect.any(String));
|
|
81
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('rate', globals_1.expect.any(Number));
|
|
82
|
+
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('type', globals_1.expect.any(String));
|
|
83
|
+
}));
|
|
72
84
|
(0, globals_1.test)('createClient', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
85
|
const body = {
|
|
74
86
|
external_reference: 'sdk test',
|
|
@@ -186,6 +198,14 @@ let suppliers;
|
|
|
186
198
|
}));
|
|
187
199
|
(0, globals_1.test)('createInvoice', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
188
200
|
var _a;
|
|
201
|
+
const journal = journals.find((journal) => journal.journal_type === 'customer_invoice');
|
|
202
|
+
if (!journal) {
|
|
203
|
+
throw new Error('No journal with type "customer_invoice" found to create invoice');
|
|
204
|
+
}
|
|
205
|
+
const vatCode = vatCodes.find((vatCode) => vatCode.type === 'sale' && vatCode.rate === 21);
|
|
206
|
+
if (!(vatCode === null || vatCode === void 0 ? void 0 : vatCode.id)) {
|
|
207
|
+
throw new Error('No vat code with type "sale" and rate 21 found to create invoice');
|
|
208
|
+
}
|
|
189
209
|
const body = {
|
|
190
210
|
invoice_type: 'customer_invoice',
|
|
191
211
|
invoice_date: '2022-12-01',
|
|
@@ -195,7 +215,7 @@ let suppliers;
|
|
|
195
215
|
tax_amount: 21,
|
|
196
216
|
total: 121,
|
|
197
217
|
partner_id: (_a = clients[0]) === null || _a === void 0 ? void 0 : _a.id,
|
|
198
|
-
journal_id:
|
|
218
|
+
journal_id: journal.id,
|
|
199
219
|
lines: [
|
|
200
220
|
{
|
|
201
221
|
description: 'Test',
|
|
@@ -206,7 +226,7 @@ let suppliers;
|
|
|
206
226
|
tax_amount: 21,
|
|
207
227
|
total: 121,
|
|
208
228
|
account_number: '700000',
|
|
209
|
-
tax_code:
|
|
229
|
+
tax_code: vatCode.id,
|
|
210
230
|
},
|
|
211
231
|
],
|
|
212
232
|
};
|
|
@@ -259,6 +279,14 @@ let invoices;
|
|
|
259
279
|
}));
|
|
260
280
|
(0, globals_1.test)('createInvoiceWithMultiplePlans', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
261
281
|
var _b;
|
|
282
|
+
const journal = journals.find((journal) => journal.journal_type === 'customer_invoice');
|
|
283
|
+
if (!journal) {
|
|
284
|
+
throw new Error('No journal with type customer_invoice found to create Invoice With Multiple Plans');
|
|
285
|
+
}
|
|
286
|
+
const vatCode = vatCodes.find((vatCode) => vatCode.type === 'sale' && vatCode.rate === 21);
|
|
287
|
+
if (!(vatCode === null || vatCode === void 0 ? void 0 : vatCode.id)) {
|
|
288
|
+
throw new Error('No vat code with type "sale" and rate 21 found to create invoice');
|
|
289
|
+
}
|
|
262
290
|
const body = {
|
|
263
291
|
invoice_type: 'customer_invoice',
|
|
264
292
|
invoice_date: '2022-12-01',
|
|
@@ -268,7 +296,7 @@ let invoices;
|
|
|
268
296
|
tax_amount: 21,
|
|
269
297
|
total: 121,
|
|
270
298
|
partner_id: (_b = clients[0]) === null || _b === void 0 ? void 0 : _b.id,
|
|
271
|
-
journal_id:
|
|
299
|
+
journal_id: journal.id,
|
|
272
300
|
lines: [
|
|
273
301
|
{
|
|
274
302
|
description: 'Test',
|
|
@@ -279,7 +307,7 @@ let invoices;
|
|
|
279
307
|
tax_amount: 21,
|
|
280
308
|
total: 121,
|
|
281
309
|
account_number: '700000',
|
|
282
|
-
tax_code:
|
|
310
|
+
tax_code: vatCode.id,
|
|
283
311
|
},
|
|
284
312
|
],
|
|
285
313
|
};
|
|
@@ -360,6 +388,34 @@ let analyticAccounts;
|
|
|
360
388
|
(0, globals_1.expect)(analyticLinesOfAccount[0]).toHaveProperty('id', globals_1.expect.any(String));
|
|
361
389
|
}
|
|
362
390
|
}));
|
|
391
|
+
(0, globals_1.test)('createJournalEntry', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
392
|
+
const journal = journals.find((journal) => journal.journal_type === 'customer_invoice');
|
|
393
|
+
if (!journal) {
|
|
394
|
+
throw new Error('No journal with type "customer_invoice" found to create journal entry');
|
|
395
|
+
}
|
|
396
|
+
const journalEntry = yield consumer.accounting.createJournalEntry({
|
|
397
|
+
journal_id: journal.id,
|
|
398
|
+
name: Date.now().toString(),
|
|
399
|
+
date: '2022-01-01',
|
|
400
|
+
items: [
|
|
401
|
+
{
|
|
402
|
+
account_number: clients[0].account_number,
|
|
403
|
+
credit: 0,
|
|
404
|
+
debit: 10,
|
|
405
|
+
partner_id: clients[0].id,
|
|
406
|
+
currency: 'EUR',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
account_number: '700000',
|
|
410
|
+
credit: 10,
|
|
411
|
+
debit: 0,
|
|
412
|
+
currency: 'EUR',
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
});
|
|
416
|
+
(0, globals_1.expect)(journalEntry).toBeTruthy();
|
|
417
|
+
(0, globals_1.expect)(journalEntry).toHaveProperty('journal_id', journal.id);
|
|
418
|
+
}));
|
|
363
419
|
(0, globals_1.test)('getJournalEntries', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
364
420
|
const journalEntries = yield consumer.accounting.getJournalEntries({
|
|
365
421
|
unposted_allowed: true,
|
|
@@ -382,17 +438,6 @@ let analyticAccounts;
|
|
|
382
438
|
const payments = yield consumer.accounting.getPaymentsByInvoiceId(invoices[0].id);
|
|
383
439
|
(0, globals_1.expect)(payments).toBeInstanceOf(Array);
|
|
384
440
|
}));
|
|
385
|
-
(0, globals_1.test)('getVatCodes', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
386
|
-
const vatCodes = yield consumer.accounting.getVatCodes();
|
|
387
|
-
(0, globals_1.expect)(vatCodes).toBeInstanceOf(Array);
|
|
388
|
-
(0, globals_1.expect)(vatCodes.length).toBeGreaterThan(0);
|
|
389
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('id', globals_1.expect.any(String));
|
|
390
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('code');
|
|
391
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('label', globals_1.expect.any(String));
|
|
392
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('scope', globals_1.expect.any(String));
|
|
393
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('rate', globals_1.expect.any(Number));
|
|
394
|
-
(0, globals_1.expect)(vatCodes[0]).toHaveProperty('type', globals_1.expect.any(String));
|
|
395
|
-
}));
|
|
396
441
|
let miscOperations;
|
|
397
442
|
(0, globals_1.test)('getMiscOperations', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
398
443
|
miscOperations = yield consumer.accounting.getMiscOperations();
|
|
@@ -451,3 +496,47 @@ let miscOperations;
|
|
|
451
496
|
(0, globals_1.expect)(balanceOfAccounts).toHaveProperty('items');
|
|
452
497
|
(0, globals_1.expect)(balanceOfAccounts.items).toBeInstanceOf(Array);
|
|
453
498
|
}));
|
|
499
|
+
(0, globals_1.test)('getEmployees', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
500
|
+
const employees = yield consumer.accounting.getEmployees();
|
|
501
|
+
(0, globals_1.expect)(employees).toBeTruthy();
|
|
502
|
+
}));
|
|
503
|
+
(0, globals_1.test)('getOutstandings', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
504
|
+
var _d;
|
|
505
|
+
globals_1.expect.assertions(1);
|
|
506
|
+
try {
|
|
507
|
+
const outstandings = yield consumer.accounting.getOutstandings({
|
|
508
|
+
type: 'client',
|
|
509
|
+
unposted_allowed: true,
|
|
510
|
+
});
|
|
511
|
+
(0, globals_1.expect)(outstandings).toBeTruthy();
|
|
512
|
+
(0, globals_1.expect)(outstandings.items).toBeInstanceOf(Array);
|
|
513
|
+
}
|
|
514
|
+
catch (e) {
|
|
515
|
+
if ((_d = e === null || e === void 0 ? void 0 : e.error) === null || _d === void 0 ? void 0 : _d.error_code) {
|
|
516
|
+
(0, globals_1.expect)(e.error.error_code).toMatch('ERROR_API_RESOURCE_NOT_FOUND');
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
throw e;
|
|
520
|
+
}
|
|
521
|
+
}));
|
|
522
|
+
(0, globals_1.test)('createFinancialEntry', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
523
|
+
const journal = journals.find((journal) => journal.journal_type === 'financial_operation');
|
|
524
|
+
if (!journal) {
|
|
525
|
+
throw new Error('No journal with type "financial_operation" found to create financial entry');
|
|
526
|
+
}
|
|
527
|
+
const financialEntry = yield consumer.accounting.createFinancialEntry({
|
|
528
|
+
date: '2022-01-01',
|
|
529
|
+
journal_id: journal.id,
|
|
530
|
+
currency: 'EUR',
|
|
531
|
+
items: [
|
|
532
|
+
{
|
|
533
|
+
type: 'customer_account',
|
|
534
|
+
account_number: clients[0].account_number,
|
|
535
|
+
partner_id: clients[0].id,
|
|
536
|
+
amount: 10,
|
|
537
|
+
},
|
|
538
|
+
],
|
|
539
|
+
});
|
|
540
|
+
(0, globals_1.expect)(financialEntry).toBeTruthy();
|
|
541
|
+
(0, globals_1.expect)(financialEntry).toHaveProperty('journal_id', journal.id);
|
|
542
|
+
}));
|
|
@@ -80,7 +80,7 @@ let consumer;
|
|
|
80
80
|
(0, globals_1.test)('getConsumersByName', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
81
81
|
const consumersWithName = yield client.Consumers.getConsumersByName(consumerName);
|
|
82
82
|
(0, globals_1.expect)(consumersWithName).toBeInstanceOf(Array);
|
|
83
|
-
(0, globals_1.expect)(consumersWithName
|
|
83
|
+
(0, globals_1.expect)(consumersWithName.some((consumer) => consumer.name.includes(consumerName))).toBe(true);
|
|
84
84
|
}));
|
|
85
85
|
(0, globals_1.test)('getConsumerById', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
86
86
|
const consumerWithId = yield client.Consumers.getConsumerById(consumer.consumerId);
|
|
@@ -61,8 +61,8 @@ let lightspeedConsumer;
|
|
|
61
61
|
let orders;
|
|
62
62
|
(0, globals_1.test)('getOrders', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
63
|
orders = yield lightspeedConsumer.pos.getOrders({
|
|
64
|
-
date_from: '
|
|
65
|
-
date_to: '
|
|
64
|
+
date_from: '2023-01-11',
|
|
65
|
+
date_to: '2023-02-28',
|
|
66
66
|
});
|
|
67
67
|
(0, globals_1.expect)(orders).toBeInstanceOf(Array);
|
|
68
68
|
(0, globals_1.expect)(orders.length).toBeGreaterThan(0);
|
|
@@ -142,8 +142,8 @@ globals_1.test.skip('getCustomer', () => __awaiter(void 0, void 0, void 0, funct
|
|
|
142
142
|
}));
|
|
143
143
|
(0, globals_1.test)('getPayments', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
144
144
|
const payments = yield lightspeedConsumer.pos.getPayments({
|
|
145
|
-
date_from: '
|
|
146
|
-
date_to: '
|
|
145
|
+
date_from: '2023-01-11',
|
|
146
|
+
date_to: '2023-02-28',
|
|
147
147
|
});
|
|
148
148
|
(0, globals_1.expect)(payments).toBeInstanceOf(Array);
|
|
149
149
|
(0, globals_1.expect)(payments.length).toBeGreaterThan(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chift/chift-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "The Chift NodeJS library provides convenient access to the Chift API from applications written in the NodeJS language (Javascript/Typescript).",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/package.json":"1","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/accounting.ts":"2","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/consumer.ts":"3","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/ecommerce.ts":"4","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/flow.ts":"5","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/public-api/schema.d.ts":"6","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/sync.ts":"7","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/invoicing.ts":"8","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/sync.ts":"9","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/internalApi.ts":"10","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/consumers.ts":"11","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/testing/package-lock.json":"12","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/testing/package.json":"13","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/helpers/openapi.ts":"14","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/api.ts":"15","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/consumers.ts":"16","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/integrations.ts":"17","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/syncs.ts":"18","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/webhooks.ts":"19","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/datastores.ts":"20","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/package-lock.json":"21","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/consumer.test.ts":"22","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/invoicing.test.ts":"23","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/accounting.test.ts":"24","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/ecommerce.test.ts":"25","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/sync.test.ts":"26","/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/pos.test.ts":"27"},{"size":1587,"mtime":1695288835903,"results":"28","hashOfConfig":"29"},{"size":13616,"mtime":1695288852169,"results":"30","hashOfConfig":"29"},{"size":6381,"mtime":1694531695111,"results":"31","hashOfConfig":"29"},{"size":3389,"mtime":1681414203195,"results":"32","hashOfConfig":"29"},{"size":7292,"mtime":1694531695114,"results":"33","hashOfConfig":"29"},{"size":306721,"mtime":1695288852528,"results":"34","hashOfConfig":"29"},{"size":410,"mtime":1694527496802,"results":"35","hashOfConfig":"29"},{"size":3628,"mtime":1694607757583,"results":"36","hashOfConfig":"29"},{"size":2521,"mtime":1694617205773,"results":"37","hashOfConfig":"29"},{"size":5833,"mtime":1694603747885,"results":"38","hashOfConfig":"29"},{"size":140,"mtime":1682346605856,"results":"39","hashOfConfig":"29"},{"size":16335,"mtime":1694617151996,"results":"40","hashOfConfig":"29"},{"size":394,"mtime":1694615991301,"results":"41","hashOfConfig":"29"},{"size":827,"mtime":1688504577670,"results":"42","hashOfConfig":"29"},{"size":1066,"mtime":1694531695110,"results":"43","hashOfConfig":"29"},{"size":2891,"mtime":1694531695113,"results":"44","hashOfConfig":"29"},{"size":632,"mtime":1694531695117,"results":"45","hashOfConfig":"29"},{"size":782,"mtime":1694531695118,"results":"46","hashOfConfig":"29"},{"size":2829,"mtime":1694531695119,"results":"47","hashOfConfig":"29"},{"size":483,"mtime":1694531695113,"results":"48","hashOfConfig":"29"},{"size":585883,"mtime":1694693069498,"results":"49","hashOfConfig":"29"},{"size":2152,"mtime":1694611494912,"results":"50","hashOfConfig":"29"},{"size":3282,"mtime":1694608127373,"results":"51","hashOfConfig":"29"},{"size":19093,"mtime":1695288994022,"results":"52","hashOfConfig":"29"},{"size":6535,"mtime":1694608857026,"results":"53","hashOfConfig":"29"},{"size":1713,"mtime":1694610668711,"results":"54","hashOfConfig":"29"},{"size":5817,"mtime":1694690935813,"results":"55","hashOfConfig":"29"},{"filePath":"56","messages":"57","suppressedMessages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"q07fwj",{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":12,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/package.json",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/accounting.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/consumer.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/ecommerce.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/flow.ts",["137","138","139","140","141","142","143","144","145","146","147","148"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/public-api/schema.d.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/sync.ts",["149","150","151","152"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/invoicing.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/sync.ts",["153","154"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/internalApi.ts",["155","156","157"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/types/consumers.ts",["158"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/testing/package-lock.json",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/testing/package.json",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/helpers/openapi.ts",["159","160"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/api.ts",["161"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/consumers.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/integrations.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/syncs.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/webhooks.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/src/modules/datastores.ts",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/package-lock.json",[],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/consumer.test.ts",["162","163","164"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/invoicing.test.ts",["165"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/accounting.test.ts",["166"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/ecommerce.test.ts",["167"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/sync.test.ts",["168","169","170","171"],[],"/Users/henry/Documents/Development/chift/sdk/chift-nodejs-sdk/test/modules/pos.test.ts",["172","173","174"],[],{"ruleId":"175","severity":1,"message":"176","line":8,"column":18,"nodeType":"177","messageId":"178","endLine":8,"endColumn":21,"suggestions":"179"},{"ruleId":"175","severity":1,"message":"176","line":12,"column":26,"nodeType":"177","messageId":"178","endLine":12,"endColumn":29,"suggestions":"180"},{"ruleId":"175","severity":1,"message":"176","line":12,"column":40,"nodeType":"177","messageId":"178","endLine":12,"endColumn":43,"suggestions":"181"},{"ruleId":"175","severity":1,"message":"176","line":12,"column":48,"nodeType":"177","messageId":"178","endLine":12,"endColumn":51,"suggestions":"182"},{"ruleId":"175","severity":1,"message":"176","line":35,"column":61,"nodeType":"177","messageId":"178","endLine":35,"endColumn":64,"suggestions":"183"},{"ruleId":"175","severity":1,"message":"176","line":58,"column":55,"nodeType":"177","messageId":"178","endLine":58,"endColumn":58,"suggestions":"184"},{"ruleId":"175","severity":1,"message":"176","line":58,"column":69,"nodeType":"177","messageId":"178","endLine":58,"endColumn":72,"suggestions":"185"},{"ruleId":"175","severity":1,"message":"176","line":58,"column":77,"nodeType":"177","messageId":"178","endLine":58,"endColumn":80,"suggestions":"186"},{"ruleId":"175","severity":1,"message":"176","line":98,"column":55,"nodeType":"177","messageId":"178","endLine":98,"endColumn":58,"suggestions":"187"},{"ruleId":"175","severity":1,"message":"176","line":98,"column":63,"nodeType":"177","messageId":"178","endLine":98,"endColumn":66,"suggestions":"188"},{"ruleId":"175","severity":1,"message":"176","line":117,"column":31,"nodeType":"177","messageId":"178","endLine":117,"endColumn":34,"suggestions":"189"},{"ruleId":"175","severity":1,"message":"176","line":148,"column":27,"nodeType":"177","messageId":"178","endLine":148,"endColumn":30,"suggestions":"190"},{"ruleId":"175","severity":1,"message":"176","line":3,"column":12,"nodeType":"177","messageId":"178","endLine":3,"endColumn":15,"suggestions":"191"},{"ruleId":"175","severity":1,"message":"176","line":8,"column":12,"nodeType":"177","messageId":"178","endLine":8,"endColumn":15,"suggestions":"192"},{"ruleId":"175","severity":1,"message":"176","line":16,"column":14,"nodeType":"177","messageId":"178","endLine":16,"endColumn":17,"suggestions":"193"},{"ruleId":"175","severity":1,"message":"176","line":22,"column":12,"nodeType":"177","messageId":"178","endLine":22,"endColumn":15,"suggestions":"194"},{"ruleId":"175","severity":1,"message":"176","line":42,"column":56,"nodeType":"177","messageId":"178","endLine":42,"endColumn":59,"suggestions":"195"},{"ruleId":"175","severity":1,"message":"176","line":42,"column":64,"nodeType":"177","messageId":"178","endLine":42,"endColumn":67,"suggestions":"196"},{"ruleId":"175","severity":1,"message":"176","line":75,"column":23,"nodeType":"177","messageId":"178","endLine":75,"endColumn":26,"suggestions":"197"},{"ruleId":"175","severity":1,"message":"176","line":105,"column":24,"nodeType":"177","messageId":"178","endLine":105,"endColumn":27,"suggestions":"198"},{"ruleId":"175","severity":1,"message":"176","line":143,"column":21,"nodeType":"177","messageId":"178","endLine":143,"endColumn":24,"suggestions":"199"},{"ruleId":"175","severity":1,"message":"176","line":8,"column":14,"nodeType":"177","messageId":"178","endLine":8,"endColumn":17,"suggestions":"200"},{"ruleId":"175","severity":1,"message":"176","line":11,"column":21,"nodeType":"177","messageId":"178","endLine":11,"endColumn":24,"suggestions":"201"},{"ruleId":"175","severity":1,"message":"176","line":12,"column":30,"nodeType":"177","messageId":"178","endLine":12,"endColumn":33,"suggestions":"202"},{"ruleId":"175","severity":1,"message":"176","line":12,"column":19,"nodeType":"177","messageId":"178","endLine":12,"endColumn":22,"suggestions":"203"},{"ruleId":"175","severity":1,"message":"176","line":18,"column":19,"nodeType":"177","messageId":"178","endLine":18,"endColumn":22,"suggestions":"204"},{"ruleId":"175","severity":1,"message":"176","line":19,"column":15,"nodeType":"177","messageId":"178","endLine":19,"endColumn":18,"suggestions":"205"},{"ruleId":"175","severity":1,"message":"176","line":20,"column":17,"nodeType":"177","messageId":"178","endLine":20,"endColumn":20,"suggestions":"206"},{"ruleId":"175","severity":1,"message":"176","line":16,"column":15,"nodeType":"177","messageId":"178","endLine":16,"endColumn":18,"suggestions":"207"},{"ruleId":"175","severity":1,"message":"176","line":18,"column":15,"nodeType":"177","messageId":"178","endLine":18,"endColumn":18,"suggestions":"208"},{"ruleId":"175","severity":1,"message":"176","line":16,"column":15,"nodeType":"177","messageId":"178","endLine":16,"endColumn":18,"suggestions":"209"},{"ruleId":"175","severity":1,"message":"176","line":16,"column":11,"nodeType":"177","messageId":"178","endLine":16,"endColumn":14,"suggestions":"210"},{"ruleId":"175","severity":1,"message":"176","line":17,"column":11,"nodeType":"177","messageId":"178","endLine":17,"endColumn":14,"suggestions":"211"},{"ruleId":"175","severity":1,"message":"176","line":37,"column":26,"nodeType":"177","messageId":"178","endLine":37,"endColumn":29,"suggestions":"212"},{"ruleId":"175","severity":1,"message":"176","line":37,"column":44,"nodeType":"177","messageId":"178","endLine":37,"endColumn":47,"suggestions":"213"},{"ruleId":"175","severity":1,"message":"176","line":18,"column":22,"nodeType":"177","messageId":"178","endLine":18,"endColumn":25,"suggestions":"214"},{"ruleId":"175","severity":1,"message":"176","line":19,"column":25,"nodeType":"177","messageId":"178","endLine":19,"endColumn":28,"suggestions":"215"},{"ruleId":"175","severity":1,"message":"176","line":58,"column":16,"nodeType":"177","messageId":"178","endLine":58,"endColumn":19,"suggestions":"216"},"@typescript-eslint/no-explicit-any","Unexpected any. Specify a different type.","TSAnyKeyword","unexpectedAny",["217","218"],["219","220"],["221","222"],["223","224"],["225","226"],["227","228"],["229","230"],["231","232"],["233","234"],["235","236"],["237","238"],["239","240"],["241","242"],["243","244"],["245","246"],["247","248"],["249","250"],["251","252"],["253","254"],["255","256"],["257","258"],["259","260"],["261","262"],["263","264"],["265","266"],["267","268"],["269","270"],["271","272"],["273","274"],["275","276"],["277","278"],["279","280"],["281","282"],["283","284"],["285","286"],["287","288"],["289","290"],["291","292"],{"messageId":"293","fix":"294","desc":"295"},{"messageId":"296","fix":"297","desc":"298"},{"messageId":"293","fix":"299","desc":"295"},{"messageId":"296","fix":"300","desc":"298"},{"messageId":"293","fix":"301","desc":"295"},{"messageId":"296","fix":"302","desc":"298"},{"messageId":"293","fix":"303","desc":"295"},{"messageId":"296","fix":"304","desc":"298"},{"messageId":"293","fix":"305","desc":"295"},{"messageId":"296","fix":"306","desc":"298"},{"messageId":"293","fix":"307","desc":"295"},{"messageId":"296","fix":"308","desc":"298"},{"messageId":"293","fix":"309","desc":"295"},{"messageId":"296","fix":"310","desc":"298"},{"messageId":"293","fix":"311","desc":"295"},{"messageId":"296","fix":"312","desc":"298"},{"messageId":"293","fix":"313","desc":"295"},{"messageId":"296","fix":"314","desc":"298"},{"messageId":"293","fix":"315","desc":"295"},{"messageId":"296","fix":"316","desc":"298"},{"messageId":"293","fix":"317","desc":"295"},{"messageId":"296","fix":"318","desc":"298"},{"messageId":"293","fix":"319","desc":"295"},{"messageId":"296","fix":"320","desc":"298"},{"messageId":"293","fix":"321","desc":"295"},{"messageId":"296","fix":"322","desc":"298"},{"messageId":"293","fix":"323","desc":"295"},{"messageId":"296","fix":"324","desc":"298"},{"messageId":"293","fix":"325","desc":"295"},{"messageId":"296","fix":"326","desc":"298"},{"messageId":"293","fix":"327","desc":"295"},{"messageId":"296","fix":"328","desc":"298"},{"messageId":"293","fix":"329","desc":"295"},{"messageId":"296","fix":"330","desc":"298"},{"messageId":"293","fix":"331","desc":"295"},{"messageId":"296","fix":"332","desc":"298"},{"messageId":"293","fix":"333","desc":"295"},{"messageId":"296","fix":"334","desc":"298"},{"messageId":"293","fix":"335","desc":"295"},{"messageId":"296","fix":"336","desc":"298"},{"messageId":"293","fix":"337","desc":"295"},{"messageId":"296","fix":"338","desc":"298"},{"messageId":"293","fix":"339","desc":"295"},{"messageId":"296","fix":"340","desc":"298"},{"messageId":"293","fix":"341","desc":"295"},{"messageId":"296","fix":"342","desc":"298"},{"messageId":"293","fix":"343","desc":"295"},{"messageId":"296","fix":"344","desc":"298"},{"messageId":"293","fix":"345","desc":"295"},{"messageId":"296","fix":"346","desc":"298"},{"messageId":"293","fix":"347","desc":"295"},{"messageId":"296","fix":"348","desc":"298"},{"messageId":"293","fix":"349","desc":"295"},{"messageId":"296","fix":"350","desc":"298"},{"messageId":"293","fix":"351","desc":"295"},{"messageId":"296","fix":"352","desc":"298"},{"messageId":"293","fix":"353","desc":"295"},{"messageId":"296","fix":"354","desc":"298"},{"messageId":"293","fix":"355","desc":"295"},{"messageId":"296","fix":"356","desc":"298"},{"messageId":"293","fix":"357","desc":"295"},{"messageId":"296","fix":"358","desc":"298"},{"messageId":"293","fix":"359","desc":"295"},{"messageId":"296","fix":"360","desc":"298"},{"messageId":"293","fix":"361","desc":"295"},{"messageId":"296","fix":"362","desc":"298"},{"messageId":"293","fix":"363","desc":"295"},{"messageId":"296","fix":"364","desc":"298"},{"messageId":"293","fix":"365","desc":"295"},{"messageId":"296","fix":"366","desc":"298"},{"messageId":"293","fix":"367","desc":"295"},{"messageId":"296","fix":"368","desc":"298"},{"messageId":"293","fix":"369","desc":"295"},{"messageId":"296","fix":"370","desc":"298"},{"messageId":"293","fix":"371","desc":"295"},{"messageId":"296","fix":"372","desc":"298"},"suggestUnknown",{"range":"373","text":"374"},"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.","suggestNever",{"range":"373","text":"375"},"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",{"range":"376","text":"374"},{"range":"376","text":"375"},{"range":"377","text":"374"},{"range":"377","text":"375"},{"range":"378","text":"374"},{"range":"378","text":"375"},{"range":"379","text":"374"},{"range":"379","text":"375"},{"range":"380","text":"374"},{"range":"380","text":"375"},{"range":"381","text":"374"},{"range":"381","text":"375"},{"range":"382","text":"374"},{"range":"382","text":"375"},{"range":"383","text":"374"},{"range":"383","text":"375"},{"range":"384","text":"374"},{"range":"384","text":"375"},{"range":"385","text":"374"},{"range":"385","text":"375"},{"range":"386","text":"374"},{"range":"386","text":"375"},{"range":"387","text":"374"},{"range":"387","text":"375"},{"range":"388","text":"374"},{"range":"388","text":"375"},{"range":"389","text":"374"},{"range":"389","text":"375"},{"range":"390","text":"374"},{"range":"390","text":"375"},{"range":"391","text":"374"},{"range":"391","text":"375"},{"range":"392","text":"374"},{"range":"392","text":"375"},{"range":"393","text":"374"},{"range":"393","text":"375"},{"range":"394","text":"374"},{"range":"394","text":"375"},{"range":"395","text":"374"},{"range":"395","text":"375"},{"range":"396","text":"374"},{"range":"396","text":"375"},{"range":"397","text":"374"},{"range":"397","text":"375"},{"range":"398","text":"374"},{"range":"398","text":"375"},{"range":"399","text":"374"},{"range":"399","text":"375"},{"range":"400","text":"374"},{"range":"400","text":"375"},{"range":"401","text":"374"},{"range":"401","text":"375"},{"range":"402","text":"374"},{"range":"402","text":"375"},{"range":"403","text":"374"},{"range":"403","text":"375"},{"range":"404","text":"374"},{"range":"404","text":"375"},{"range":"405","text":"374"},{"range":"405","text":"375"},{"range":"406","text":"374"},{"range":"406","text":"375"},{"range":"407","text":"374"},{"range":"407","text":"375"},{"range":"408","text":"374"},{"range":"408","text":"375"},{"range":"409","text":"374"},{"range":"409","text":"375"},{"range":"410","text":"374"},{"range":"410","text":"375"},{"range":"411","text":"374"},{"range":"411","text":"375"},{"range":"412","text":"374"},{"range":"412","text":"375"},[268,271],"unknown","never",[392,395],[406,409],[414,417],[1397,1400],[2371,2374],[2385,2388],[2393,2396],[4229,4232],[4237,4240],[5120,5123],[6724,6727],[71,74],[152,155],[304,307],[403,406],[1400,1403],[1408,1411],[2710,2713],[3672,3675],[5221,5224],[133,136],[331,334],[377,380],[367,370],[595,598],[614,617],[635,638],[544,547],[563,566],[548,551],[453,456],[468,471],[960,963],[978,981],[698,701],[727,730],[2082,2085]]
|