@chift/chift-nodejs 1.0.18 → 1.0.20
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/helpers/openapi.d.ts +3 -0
- package/dist/src/helpers/openapi.js +18 -0
- package/dist/src/helpers/settings.d.ts +4 -0
- package/dist/src/helpers/settings.js +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/modules/accounting.d.ts +68 -0
- package/dist/src/modules/accounting.js +326 -0
- package/dist/src/modules/api.d.ts +18431 -0
- package/dist/src/modules/api.js +36 -0
- package/dist/src/modules/consumer.d.ts +3638 -0
- package/dist/src/modules/consumer.js +142 -0
- package/dist/src/modules/consumers.d.ts +18317 -0
- package/dist/src/modules/consumers.js +51 -0
- package/dist/src/modules/custom.d.ts +8 -0
- package/dist/src/modules/custom.js +36 -0
- package/dist/src/modules/datastores.d.ts +18 -0
- package/dist/src/modules/datastores.js +23 -0
- package/dist/src/modules/ecommerce.d.ts +24 -0
- package/dist/src/modules/ecommerce.js +97 -0
- package/dist/src/modules/flow.d.ts +15 -0
- package/dist/src/modules/flow.js +156 -0
- package/dist/src/modules/integrations.d.ts +23 -0
- package/dist/src/modules/integrations.js +23 -0
- package/dist/src/modules/internalApi.d.ts +24 -0
- package/dist/src/modules/internalApi.js +175 -0
- package/dist/src/modules/invoicing.d.ts +20 -0
- package/dist/src/modules/invoicing.js +90 -0
- package/dist/src/modules/payment.d.ts +14 -0
- package/dist/src/modules/payment.js +41 -0
- package/dist/src/modules/pms.d.ts +15 -0
- package/dist/src/modules/pms.js +47 -0
- package/dist/src/modules/pos.d.ts +26 -0
- package/dist/src/modules/pos.js +101 -0
- package/dist/src/modules/sync.d.ts +14718 -0
- package/dist/src/modules/sync.js +73 -0
- package/dist/src/modules/syncs.d.ts +11 -0
- package/dist/src/modules/syncs.js +39 -0
- package/dist/src/modules/webhooks.d.ts +58 -0
- package/dist/src/modules/webhooks.js +53 -0
- package/{src/types/api.ts → dist/src/types/api.d.ts} +4 -12
- package/dist/src/types/api.js +2 -0
- package/{src/types/consumers.ts → dist/src/types/consumers.d.ts} +0 -1
- package/dist/src/types/consumers.js +2 -0
- package/dist/src/types/public-api/mappings.js +2 -0
- package/dist/src/types/public-api/schema.d.ts +15334 -0
- package/{src/types/sync.ts → dist/src/types/sync.d.ts} +5 -6
- package/dist/src/types/sync.js +2 -0
- package/dist/test/modules/accounting.test.d.ts +1 -0
- package/dist/test/modules/accounting.test.js +590 -0
- package/dist/test/modules/consumer.test.d.ts +1 -0
- package/dist/test/modules/consumer.test.js +89 -0
- package/dist/test/modules/consumers.test.d.ts +1 -0
- package/dist/test/modules/consumers.test.js +109 -0
- package/dist/test/modules/ecommerce.test.d.ts +1 -0
- package/dist/test/modules/ecommerce.test.js +224 -0
- package/dist/test/modules/integrations.test.d.ts +1 -0
- package/dist/test/modules/integrations.test.js +54 -0
- package/dist/test/modules/invoicing.test.d.ts +1 -0
- package/dist/test/modules/invoicing.test.js +115 -0
- package/dist/test/modules/payment.test.d.ts +1 -0
- package/dist/test/modules/payment.test.js +88 -0
- package/dist/test/modules/pms.test.d.ts +1 -0
- package/dist/test/modules/pms.test.js +90 -0
- package/dist/test/modules/pos.test.d.ts +1 -0
- package/dist/test/modules/pos.test.js +179 -0
- package/dist/test/modules/sync.test.d.ts +1 -0
- package/dist/test/modules/sync.test.js +93 -0
- package/dist/test/modules/syncs.test.d.ts +1 -0
- package/dist/test/modules/syncs.test.js +53 -0
- package/dist/test/modules/webhooks.test.d.ts +1 -0
- package/dist/test/modules/webhooks.test.js +120 -0
- package/package.json +3 -2
- package/src/types/public-api/schema.d.ts +50 -10
- /package/{src/types/public-api/mappings.ts → dist/src/types/public-api/mappings.d.ts} +0 -0
|
@@ -2347,17 +2347,19 @@ export interface components {
|
|
|
2347
2347
|
| 'expense'
|
|
2348
2348
|
| 'vat'
|
|
2349
2349
|
| 'other';
|
|
2350
|
+
/** AccountToCreate */
|
|
2351
|
+
AccountToCreate: {
|
|
2352
|
+
/** Account Number */
|
|
2353
|
+
account_number: string;
|
|
2354
|
+
/** Account Name */
|
|
2355
|
+
account_name: string;
|
|
2356
|
+
};
|
|
2350
2357
|
/** AccountingCategoryItem */
|
|
2351
2358
|
AccountingCategoryItem: {
|
|
2352
2359
|
/** Id */
|
|
2353
2360
|
id: string;
|
|
2354
2361
|
/** Name */
|
|
2355
2362
|
name: string;
|
|
2356
|
-
/**
|
|
2357
|
-
* Id Parent
|
|
2358
|
-
* @description Indicates if the category belongs to a parent category
|
|
2359
|
-
*/
|
|
2360
|
-
id_parent?: string;
|
|
2361
2363
|
/**
|
|
2362
2364
|
* Code
|
|
2363
2365
|
* @description Code assigned to the category
|
|
@@ -4587,6 +4589,16 @@ export interface components {
|
|
|
4587
4589
|
* @default true
|
|
4588
4590
|
*/
|
|
4589
4591
|
posted: boolean;
|
|
4592
|
+
/**
|
|
4593
|
+
* Start Date
|
|
4594
|
+
* Format: date
|
|
4595
|
+
*/
|
|
4596
|
+
start_date?: string;
|
|
4597
|
+
/**
|
|
4598
|
+
* End Date
|
|
4599
|
+
* Format: date
|
|
4600
|
+
*/
|
|
4601
|
+
end_date?: string;
|
|
4590
4602
|
};
|
|
4591
4603
|
/** GenericJournalItem */
|
|
4592
4604
|
GenericJournalItem: {
|
|
@@ -5007,6 +5019,12 @@ export interface components {
|
|
|
5007
5019
|
* @description Amount left to be paid
|
|
5008
5020
|
*/
|
|
5009
5021
|
outstanding_amount?: number;
|
|
5022
|
+
/**
|
|
5023
|
+
* Accounting Date
|
|
5024
|
+
* Format: date
|
|
5025
|
+
* @description Accounting date
|
|
5026
|
+
*/
|
|
5027
|
+
accounting_date?: string;
|
|
5010
5028
|
};
|
|
5011
5029
|
/** InvoiceItemOutMonoAnalyticPlan */
|
|
5012
5030
|
InvoiceItemOutMonoAnalyticPlan: {
|
|
@@ -5211,6 +5229,12 @@ export interface components {
|
|
|
5211
5229
|
* @description Amount left to be paid
|
|
5212
5230
|
*/
|
|
5213
5231
|
outstanding_amount?: number;
|
|
5232
|
+
/**
|
|
5233
|
+
* Accounting Date
|
|
5234
|
+
* Format: date
|
|
5235
|
+
* @description Accounting date
|
|
5236
|
+
*/
|
|
5237
|
+
accounting_date?: string;
|
|
5214
5238
|
/**
|
|
5215
5239
|
* Pdf
|
|
5216
5240
|
* @description PDF document in base64
|
|
@@ -6132,6 +6156,11 @@ export interface components {
|
|
|
6132
6156
|
currency: string;
|
|
6133
6157
|
/** Note */
|
|
6134
6158
|
note?: string;
|
|
6159
|
+
/**
|
|
6160
|
+
* Tags
|
|
6161
|
+
* @default []
|
|
6162
|
+
*/
|
|
6163
|
+
tags: string[];
|
|
6135
6164
|
/** Lines */
|
|
6136
6165
|
lines: components['schemas']['OrderLineItemOut'][];
|
|
6137
6166
|
/**
|
|
@@ -6457,11 +6486,6 @@ export interface components {
|
|
|
6457
6486
|
source_ref: components['schemas']['Ref'];
|
|
6458
6487
|
/** Name */
|
|
6459
6488
|
name: string;
|
|
6460
|
-
/**
|
|
6461
|
-
* Id Parent
|
|
6462
|
-
* @description Indicates if the category belongs to a parent category
|
|
6463
|
-
*/
|
|
6464
|
-
id_parent?: string;
|
|
6465
6489
|
/**
|
|
6466
6490
|
* Code
|
|
6467
6491
|
* @description Code assigned to the category
|
|
@@ -6587,6 +6611,9 @@ export interface components {
|
|
|
6587
6611
|
* @description Technical id in the target software
|
|
6588
6612
|
*/
|
|
6589
6613
|
source_ref: components['schemas']['Ref'];
|
|
6614
|
+
type?: components['schemas']['POSLineItemType'];
|
|
6615
|
+
/** Menu Id */
|
|
6616
|
+
menu_id?: string;
|
|
6590
6617
|
/** Quantity */
|
|
6591
6618
|
quantity: number;
|
|
6592
6619
|
/** Unit Price */
|
|
@@ -6716,6 +6743,9 @@ export interface components {
|
|
|
6716
6743
|
POSItem: {
|
|
6717
6744
|
/** Id */
|
|
6718
6745
|
id: string;
|
|
6746
|
+
type?: components['schemas']['POSLineItemType'];
|
|
6747
|
+
/** Menu Id */
|
|
6748
|
+
menu_id?: string;
|
|
6719
6749
|
/** Quantity */
|
|
6720
6750
|
quantity: number;
|
|
6721
6751
|
/** Unit Price */
|
|
@@ -6744,6 +6774,12 @@ export interface components {
|
|
|
6744
6774
|
*/
|
|
6745
6775
|
accounting_category_id?: string;
|
|
6746
6776
|
};
|
|
6777
|
+
/**
|
|
6778
|
+
* POSLineItemType
|
|
6779
|
+
* @description An enumeration.
|
|
6780
|
+
* @enum {string}
|
|
6781
|
+
*/
|
|
6782
|
+
POSLineItemType: 'menu' | 'product';
|
|
6747
6783
|
/** POSLocationItem */
|
|
6748
6784
|
POSLocationItem: {
|
|
6749
6785
|
/** Id */
|
|
@@ -10175,6 +10211,8 @@ export interface operations {
|
|
|
10175
10211
|
accounting_get_clients: {
|
|
10176
10212
|
parameters: {
|
|
10177
10213
|
query?: {
|
|
10214
|
+
/** @description Filter based on the following fields: name, email, first_name, last_name, external_reference, vat and company_number */
|
|
10215
|
+
search?: string;
|
|
10178
10216
|
/** @description Accounting folder ID, this needs to be passed when activating the multiple folders feature. */
|
|
10179
10217
|
folder_id?: string;
|
|
10180
10218
|
page?: number;
|
|
@@ -10379,6 +10417,8 @@ export interface operations {
|
|
|
10379
10417
|
accounting_get_suppliers: {
|
|
10380
10418
|
parameters: {
|
|
10381
10419
|
query?: {
|
|
10420
|
+
/** @description Filter based on the following fields: name, email, first_name, last_name, external_reference, vat and company_number */
|
|
10421
|
+
search?: string;
|
|
10382
10422
|
/** @description Accounting folder ID, this needs to be passed when activating the multiple folders feature. */
|
|
10383
10423
|
folder_id?: string;
|
|
10384
10424
|
page?: number;
|
|
File without changes
|