@chift/chift-nodejs 1.0.19 → 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/modules/api.d.ts +90 -10
- package/dist/src/modules/consumer.d.ts +18 -2
- package/dist/src/modules/consumers.d.ts +90 -10
- package/dist/src/modules/sync.d.ts +72 -8
- package/dist/src/types/public-api/schema.d.ts +50 -10
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +50 -10
|
@@ -129,6 +129,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
129
129
|
}[];
|
|
130
130
|
items: {
|
|
131
131
|
id: string;
|
|
132
|
+
type?: "menu" | "product" | undefined;
|
|
133
|
+
menu_id?: string | undefined;
|
|
132
134
|
quantity: number;
|
|
133
135
|
unit_price: number;
|
|
134
136
|
total: number;
|
|
@@ -204,6 +206,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
204
206
|
}[];
|
|
205
207
|
items: {
|
|
206
208
|
id: string;
|
|
209
|
+
type?: "menu" | "product" | undefined;
|
|
210
|
+
menu_id?: string | undefined;
|
|
207
211
|
quantity: number;
|
|
208
212
|
unit_price: number;
|
|
209
213
|
total: number;
|
|
@@ -376,6 +380,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
376
380
|
}[];
|
|
377
381
|
items: {
|
|
378
382
|
id: string;
|
|
383
|
+
type?: "menu" | "product" | undefined;
|
|
384
|
+
menu_id?: string | undefined;
|
|
379
385
|
quantity: number;
|
|
380
386
|
unit_price: number;
|
|
381
387
|
total: number;
|
|
@@ -395,7 +401,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
395
401
|
} | undefined): import("../types/api").RequestData<{
|
|
396
402
|
id: string;
|
|
397
403
|
name: string;
|
|
398
|
-
id_parent?: string | undefined;
|
|
399
404
|
code?: string | undefined;
|
|
400
405
|
ledger_account_code?: string | undefined;
|
|
401
406
|
posting_account_code?: string | undefined;
|
|
@@ -456,6 +461,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
456
461
|
id?: string | undefined;
|
|
457
462
|
model?: string | undefined;
|
|
458
463
|
};
|
|
464
|
+
type?: "menu" | "product" | undefined;
|
|
465
|
+
menu_id?: string | undefined;
|
|
459
466
|
quantity: number;
|
|
460
467
|
unit_price: number;
|
|
461
468
|
total: number;
|
|
@@ -513,7 +520,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
513
520
|
model?: string | undefined;
|
|
514
521
|
};
|
|
515
522
|
name: string;
|
|
516
|
-
id_parent?: string | undefined;
|
|
517
523
|
code?: string | undefined;
|
|
518
524
|
ledger_account_code?: string | undefined;
|
|
519
525
|
posting_account_code?: string | undefined;
|
|
@@ -611,6 +617,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
611
617
|
active: boolean;
|
|
612
618
|
}[]>;
|
|
613
619
|
getClients(params?: {
|
|
620
|
+
search?: string | undefined;
|
|
614
621
|
folder_id?: string | undefined;
|
|
615
622
|
} | undefined): import("../types/api").RequestData<{
|
|
616
623
|
external_reference?: string | undefined;
|
|
@@ -829,6 +836,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
829
836
|
id?: string | undefined;
|
|
830
837
|
}>;
|
|
831
838
|
getSuppliers(params?: {
|
|
839
|
+
search?: string | undefined;
|
|
832
840
|
folder_id?: string | undefined;
|
|
833
841
|
} | undefined): import("../types/api").RequestData<{
|
|
834
842
|
external_reference?: string | undefined;
|
|
@@ -2006,6 +2014,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2006
2014
|
}[];
|
|
2007
2015
|
pdf?: string | undefined;
|
|
2008
2016
|
posted: boolean;
|
|
2017
|
+
start_date?: string | undefined;
|
|
2018
|
+
end_date?: string | undefined;
|
|
2009
2019
|
}, params?: {
|
|
2010
2020
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
2011
2021
|
folder_id?: string | undefined;
|
|
@@ -2105,6 +2115,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2105
2115
|
} | undefined;
|
|
2106
2116
|
last_updated_on?: string | undefined;
|
|
2107
2117
|
outstanding_amount?: number | undefined;
|
|
2118
|
+
accounting_date?: string | undefined;
|
|
2108
2119
|
}[]>;
|
|
2109
2120
|
getInvoiceById(invoiceId: string, params?: {
|
|
2110
2121
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -2150,6 +2161,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2150
2161
|
} | undefined;
|
|
2151
2162
|
last_updated_on?: string | undefined;
|
|
2152
2163
|
outstanding_amount?: number | undefined;
|
|
2164
|
+
accounting_date?: string | undefined;
|
|
2153
2165
|
}>;
|
|
2154
2166
|
createInvoice(invoice: {
|
|
2155
2167
|
currency: string;
|
|
@@ -2228,6 +2240,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2228
2240
|
} | undefined;
|
|
2229
2241
|
last_updated_on?: string | undefined;
|
|
2230
2242
|
outstanding_amount?: number | undefined;
|
|
2243
|
+
accounting_date?: string | undefined;
|
|
2231
2244
|
}>;
|
|
2232
2245
|
getProducts(): import("../types/api").RequestData<{
|
|
2233
2246
|
id: string;
|
|
@@ -2849,6 +2862,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2849
2862
|
refunded_amount: number;
|
|
2850
2863
|
currency: string;
|
|
2851
2864
|
note?: string | undefined;
|
|
2865
|
+
tags: string[];
|
|
2852
2866
|
lines: {
|
|
2853
2867
|
id: string;
|
|
2854
2868
|
source_ref: {
|
|
@@ -3125,6 +3139,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3125
3139
|
refunded_amount: number;
|
|
3126
3140
|
currency: string;
|
|
3127
3141
|
note?: string | undefined;
|
|
3142
|
+
tags: string[];
|
|
3128
3143
|
lines: {
|
|
3129
3144
|
id: string;
|
|
3130
3145
|
source_ref: {
|
|
@@ -3360,6 +3375,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3360
3375
|
refunded_amount: number;
|
|
3361
3376
|
currency: string;
|
|
3362
3377
|
note?: string | undefined;
|
|
3378
|
+
tags: string[];
|
|
3363
3379
|
lines: {
|
|
3364
3380
|
id: string;
|
|
3365
3381
|
source_ref: {
|
|
@@ -3790,6 +3806,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3790
3806
|
}[];
|
|
3791
3807
|
items: {
|
|
3792
3808
|
id: string;
|
|
3809
|
+
type?: "menu" | "product" | undefined;
|
|
3810
|
+
menu_id?: string | undefined;
|
|
3793
3811
|
quantity: number;
|
|
3794
3812
|
unit_price: number;
|
|
3795
3813
|
total: number;
|
|
@@ -3865,6 +3883,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3865
3883
|
}[];
|
|
3866
3884
|
items: {
|
|
3867
3885
|
id: string;
|
|
3886
|
+
type?: "menu" | "product" | undefined;
|
|
3887
|
+
menu_id?: string | undefined;
|
|
3868
3888
|
quantity: number;
|
|
3869
3889
|
unit_price: number;
|
|
3870
3890
|
total: number;
|
|
@@ -4037,6 +4057,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4037
4057
|
}[];
|
|
4038
4058
|
items: {
|
|
4039
4059
|
id: string;
|
|
4060
|
+
type?: "menu" | "product" | undefined;
|
|
4061
|
+
menu_id?: string | undefined;
|
|
4040
4062
|
quantity: number;
|
|
4041
4063
|
unit_price: number;
|
|
4042
4064
|
total: number;
|
|
@@ -4056,7 +4078,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4056
4078
|
} | undefined): import("../types/api").RequestData<{
|
|
4057
4079
|
id: string;
|
|
4058
4080
|
name: string;
|
|
4059
|
-
id_parent?: string | undefined;
|
|
4060
4081
|
code?: string | undefined;
|
|
4061
4082
|
ledger_account_code?: string | undefined;
|
|
4062
4083
|
posting_account_code?: string | undefined;
|
|
@@ -4117,6 +4138,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4117
4138
|
id?: string | undefined;
|
|
4118
4139
|
model?: string | undefined;
|
|
4119
4140
|
};
|
|
4141
|
+
type?: "menu" | "product" | undefined;
|
|
4142
|
+
menu_id?: string | undefined;
|
|
4120
4143
|
quantity: number;
|
|
4121
4144
|
unit_price: number;
|
|
4122
4145
|
total: number;
|
|
@@ -4174,7 +4197,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4174
4197
|
model?: string | undefined;
|
|
4175
4198
|
};
|
|
4176
4199
|
name: string;
|
|
4177
|
-
id_parent?: string | undefined;
|
|
4178
4200
|
code?: string | undefined;
|
|
4179
4201
|
ledger_account_code?: string | undefined;
|
|
4180
4202
|
posting_account_code?: string | undefined;
|
|
@@ -4272,6 +4294,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4272
4294
|
active: boolean;
|
|
4273
4295
|
}[]>;
|
|
4274
4296
|
getClients(params?: {
|
|
4297
|
+
search?: string | undefined;
|
|
4275
4298
|
folder_id?: string | undefined;
|
|
4276
4299
|
} | undefined): import("../types/api").RequestData<{
|
|
4277
4300
|
external_reference?: string | undefined;
|
|
@@ -4490,6 +4513,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
4490
4513
|
id?: string | undefined;
|
|
4491
4514
|
}>;
|
|
4492
4515
|
getSuppliers(params?: {
|
|
4516
|
+
search?: string | undefined;
|
|
4493
4517
|
folder_id?: string | undefined;
|
|
4494
4518
|
} | undefined): import("../types/api").RequestData<{
|
|
4495
4519
|
external_reference?: string | undefined;
|
|
@@ -5667,6 +5691,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5667
5691
|
}[];
|
|
5668
5692
|
pdf?: string | undefined;
|
|
5669
5693
|
posted: boolean;
|
|
5694
|
+
start_date?: string | undefined;
|
|
5695
|
+
end_date?: string | undefined;
|
|
5670
5696
|
}, params?: {
|
|
5671
5697
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
5672
5698
|
folder_id?: string | undefined;
|
|
@@ -5766,6 +5792,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5766
5792
|
} | undefined;
|
|
5767
5793
|
last_updated_on?: string | undefined;
|
|
5768
5794
|
outstanding_amount?: number | undefined;
|
|
5795
|
+
accounting_date?: string | undefined;
|
|
5769
5796
|
}[]>;
|
|
5770
5797
|
getInvoiceById(invoiceId: string, params?: {
|
|
5771
5798
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -5811,6 +5838,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5811
5838
|
} | undefined;
|
|
5812
5839
|
last_updated_on?: string | undefined;
|
|
5813
5840
|
outstanding_amount?: number | undefined;
|
|
5841
|
+
accounting_date?: string | undefined;
|
|
5814
5842
|
}>;
|
|
5815
5843
|
createInvoice(invoice: {
|
|
5816
5844
|
currency: string;
|
|
@@ -5889,6 +5917,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
5889
5917
|
} | undefined;
|
|
5890
5918
|
last_updated_on?: string | undefined;
|
|
5891
5919
|
outstanding_amount?: number | undefined;
|
|
5920
|
+
accounting_date?: string | undefined;
|
|
5892
5921
|
}>;
|
|
5893
5922
|
getProducts(): import("../types/api").RequestData<{
|
|
5894
5923
|
id: string;
|
|
@@ -6510,6 +6539,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6510
6539
|
refunded_amount: number;
|
|
6511
6540
|
currency: string;
|
|
6512
6541
|
note?: string | undefined;
|
|
6542
|
+
tags: string[];
|
|
6513
6543
|
lines: {
|
|
6514
6544
|
id: string;
|
|
6515
6545
|
source_ref: {
|
|
@@ -6786,6 +6816,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6786
6816
|
refunded_amount: number;
|
|
6787
6817
|
currency: string;
|
|
6788
6818
|
note?: string | undefined;
|
|
6819
|
+
tags: string[];
|
|
6789
6820
|
lines: {
|
|
6790
6821
|
id: string;
|
|
6791
6822
|
source_ref: {
|
|
@@ -7021,6 +7052,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7021
7052
|
refunded_amount: number;
|
|
7022
7053
|
currency: string;
|
|
7023
7054
|
note?: string | undefined;
|
|
7055
|
+
tags: string[];
|
|
7024
7056
|
lines: {
|
|
7025
7057
|
id: string;
|
|
7026
7058
|
source_ref: {
|
|
@@ -7451,6 +7483,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7451
7483
|
}[];
|
|
7452
7484
|
items: {
|
|
7453
7485
|
id: string;
|
|
7486
|
+
type?: "menu" | "product" | undefined;
|
|
7487
|
+
menu_id?: string | undefined;
|
|
7454
7488
|
quantity: number;
|
|
7455
7489
|
unit_price: number;
|
|
7456
7490
|
total: number;
|
|
@@ -7526,6 +7560,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7526
7560
|
}[];
|
|
7527
7561
|
items: {
|
|
7528
7562
|
id: string;
|
|
7563
|
+
type?: "menu" | "product" | undefined;
|
|
7564
|
+
menu_id?: string | undefined;
|
|
7529
7565
|
quantity: number;
|
|
7530
7566
|
unit_price: number;
|
|
7531
7567
|
total: number;
|
|
@@ -7698,6 +7734,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7698
7734
|
}[];
|
|
7699
7735
|
items: {
|
|
7700
7736
|
id: string;
|
|
7737
|
+
type?: "menu" | "product" | undefined;
|
|
7738
|
+
menu_id?: string | undefined;
|
|
7701
7739
|
quantity: number;
|
|
7702
7740
|
unit_price: number;
|
|
7703
7741
|
total: number;
|
|
@@ -7717,7 +7755,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7717
7755
|
} | undefined): import("../types/api").RequestData<{
|
|
7718
7756
|
id: string;
|
|
7719
7757
|
name: string;
|
|
7720
|
-
id_parent?: string | undefined;
|
|
7721
7758
|
code?: string | undefined;
|
|
7722
7759
|
ledger_account_code?: string | undefined;
|
|
7723
7760
|
posting_account_code?: string | undefined;
|
|
@@ -7778,6 +7815,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7778
7815
|
id?: string | undefined;
|
|
7779
7816
|
model?: string | undefined;
|
|
7780
7817
|
};
|
|
7818
|
+
type?: "menu" | "product" | undefined;
|
|
7819
|
+
menu_id?: string | undefined;
|
|
7781
7820
|
quantity: number;
|
|
7782
7821
|
unit_price: number;
|
|
7783
7822
|
total: number;
|
|
@@ -7835,7 +7874,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7835
7874
|
model?: string | undefined;
|
|
7836
7875
|
};
|
|
7837
7876
|
name: string;
|
|
7838
|
-
id_parent?: string | undefined;
|
|
7839
7877
|
code?: string | undefined;
|
|
7840
7878
|
ledger_account_code?: string | undefined;
|
|
7841
7879
|
posting_account_code?: string | undefined;
|
|
@@ -7933,6 +7971,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7933
7971
|
active: boolean;
|
|
7934
7972
|
}[]>;
|
|
7935
7973
|
getClients(params?: {
|
|
7974
|
+
search?: string | undefined;
|
|
7936
7975
|
folder_id?: string | undefined;
|
|
7937
7976
|
} | undefined): import("../types/api").RequestData<{
|
|
7938
7977
|
external_reference?: string | undefined;
|
|
@@ -8151,6 +8190,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
8151
8190
|
id?: string | undefined;
|
|
8152
8191
|
}>;
|
|
8153
8192
|
getSuppliers(params?: {
|
|
8193
|
+
search?: string | undefined;
|
|
8154
8194
|
folder_id?: string | undefined;
|
|
8155
8195
|
} | undefined): import("../types/api").RequestData<{
|
|
8156
8196
|
external_reference?: string | undefined;
|
|
@@ -9328,6 +9368,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9328
9368
|
}[];
|
|
9329
9369
|
pdf?: string | undefined;
|
|
9330
9370
|
posted: boolean;
|
|
9371
|
+
start_date?: string | undefined;
|
|
9372
|
+
end_date?: string | undefined;
|
|
9331
9373
|
}, params?: {
|
|
9332
9374
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
9333
9375
|
folder_id?: string | undefined;
|
|
@@ -9427,6 +9469,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9427
9469
|
} | undefined;
|
|
9428
9470
|
last_updated_on?: string | undefined;
|
|
9429
9471
|
outstanding_amount?: number | undefined;
|
|
9472
|
+
accounting_date?: string | undefined;
|
|
9430
9473
|
}[]>;
|
|
9431
9474
|
getInvoiceById(invoiceId: string, params?: {
|
|
9432
9475
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -9472,6 +9515,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9472
9515
|
} | undefined;
|
|
9473
9516
|
last_updated_on?: string | undefined;
|
|
9474
9517
|
outstanding_amount?: number | undefined;
|
|
9518
|
+
accounting_date?: string | undefined;
|
|
9475
9519
|
}>;
|
|
9476
9520
|
createInvoice(invoice: {
|
|
9477
9521
|
currency: string;
|
|
@@ -9550,6 +9594,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9550
9594
|
} | undefined;
|
|
9551
9595
|
last_updated_on?: string | undefined;
|
|
9552
9596
|
outstanding_amount?: number | undefined;
|
|
9597
|
+
accounting_date?: string | undefined;
|
|
9553
9598
|
}>;
|
|
9554
9599
|
getProducts(): import("../types/api").RequestData<{
|
|
9555
9600
|
id: string;
|
|
@@ -10171,6 +10216,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10171
10216
|
refunded_amount: number;
|
|
10172
10217
|
currency: string;
|
|
10173
10218
|
note?: string | undefined;
|
|
10219
|
+
tags: string[];
|
|
10174
10220
|
lines: {
|
|
10175
10221
|
id: string;
|
|
10176
10222
|
source_ref: {
|
|
@@ -10447,6 +10493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10447
10493
|
refunded_amount: number;
|
|
10448
10494
|
currency: string;
|
|
10449
10495
|
note?: string | undefined;
|
|
10496
|
+
tags: string[];
|
|
10450
10497
|
lines: {
|
|
10451
10498
|
id: string;
|
|
10452
10499
|
source_ref: {
|
|
@@ -10682,6 +10729,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10682
10729
|
refunded_amount: number;
|
|
10683
10730
|
currency: string;
|
|
10684
10731
|
note?: string | undefined;
|
|
10732
|
+
tags: string[];
|
|
10685
10733
|
lines: {
|
|
10686
10734
|
id: string;
|
|
10687
10735
|
source_ref: {
|
|
@@ -11112,6 +11160,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11112
11160
|
}[];
|
|
11113
11161
|
items: {
|
|
11114
11162
|
id: string;
|
|
11163
|
+
type?: "menu" | "product" | undefined;
|
|
11164
|
+
menu_id?: string | undefined;
|
|
11115
11165
|
quantity: number;
|
|
11116
11166
|
unit_price: number;
|
|
11117
11167
|
total: number;
|
|
@@ -11187,6 +11237,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11187
11237
|
}[];
|
|
11188
11238
|
items: {
|
|
11189
11239
|
id: string;
|
|
11240
|
+
type?: "menu" | "product" | undefined;
|
|
11241
|
+
menu_id?: string | undefined;
|
|
11190
11242
|
quantity: number;
|
|
11191
11243
|
unit_price: number;
|
|
11192
11244
|
total: number;
|
|
@@ -11359,6 +11411,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11359
11411
|
}[];
|
|
11360
11412
|
items: {
|
|
11361
11413
|
id: string;
|
|
11414
|
+
type?: "menu" | "product" | undefined;
|
|
11415
|
+
menu_id?: string | undefined;
|
|
11362
11416
|
quantity: number;
|
|
11363
11417
|
unit_price: number;
|
|
11364
11418
|
total: number;
|
|
@@ -11378,7 +11432,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11378
11432
|
} | undefined): import("../types/api").RequestData<{
|
|
11379
11433
|
id: string;
|
|
11380
11434
|
name: string;
|
|
11381
|
-
id_parent?: string | undefined;
|
|
11382
11435
|
code?: string | undefined;
|
|
11383
11436
|
ledger_account_code?: string | undefined;
|
|
11384
11437
|
posting_account_code?: string | undefined;
|
|
@@ -11439,6 +11492,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11439
11492
|
id?: string | undefined;
|
|
11440
11493
|
model?: string | undefined;
|
|
11441
11494
|
};
|
|
11495
|
+
type?: "menu" | "product" | undefined;
|
|
11496
|
+
menu_id?: string | undefined;
|
|
11442
11497
|
quantity: number;
|
|
11443
11498
|
unit_price: number;
|
|
11444
11499
|
total: number;
|
|
@@ -11496,7 +11551,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11496
11551
|
model?: string | undefined;
|
|
11497
11552
|
};
|
|
11498
11553
|
name: string;
|
|
11499
|
-
id_parent?: string | undefined;
|
|
11500
11554
|
code?: string | undefined;
|
|
11501
11555
|
ledger_account_code?: string | undefined;
|
|
11502
11556
|
posting_account_code?: string | undefined;
|
|
@@ -11594,6 +11648,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11594
11648
|
active: boolean;
|
|
11595
11649
|
}[]>;
|
|
11596
11650
|
getClients(params?: {
|
|
11651
|
+
search?: string | undefined;
|
|
11597
11652
|
folder_id?: string | undefined;
|
|
11598
11653
|
} | undefined): import("../types/api").RequestData<{
|
|
11599
11654
|
external_reference?: string | undefined;
|
|
@@ -11812,6 +11867,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
11812
11867
|
id?: string | undefined;
|
|
11813
11868
|
}>;
|
|
11814
11869
|
getSuppliers(params?: {
|
|
11870
|
+
search?: string | undefined;
|
|
11815
11871
|
folder_id?: string | undefined;
|
|
11816
11872
|
} | undefined): import("../types/api").RequestData<{
|
|
11817
11873
|
external_reference?: string | undefined;
|
|
@@ -12989,6 +13045,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12989
13045
|
}[];
|
|
12990
13046
|
pdf?: string | undefined;
|
|
12991
13047
|
posted: boolean;
|
|
13048
|
+
start_date?: string | undefined;
|
|
13049
|
+
end_date?: string | undefined;
|
|
12992
13050
|
}, params?: {
|
|
12993
13051
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
12994
13052
|
folder_id?: string | undefined;
|
|
@@ -13088,6 +13146,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13088
13146
|
} | undefined;
|
|
13089
13147
|
last_updated_on?: string | undefined;
|
|
13090
13148
|
outstanding_amount?: number | undefined;
|
|
13149
|
+
accounting_date?: string | undefined;
|
|
13091
13150
|
}[]>;
|
|
13092
13151
|
getInvoiceById(invoiceId: string, params?: {
|
|
13093
13152
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -13133,6 +13192,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13133
13192
|
} | undefined;
|
|
13134
13193
|
last_updated_on?: string | undefined;
|
|
13135
13194
|
outstanding_amount?: number | undefined;
|
|
13195
|
+
accounting_date?: string | undefined;
|
|
13136
13196
|
}>;
|
|
13137
13197
|
createInvoice(invoice: {
|
|
13138
13198
|
currency: string;
|
|
@@ -13211,6 +13271,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13211
13271
|
} | undefined;
|
|
13212
13272
|
last_updated_on?: string | undefined;
|
|
13213
13273
|
outstanding_amount?: number | undefined;
|
|
13274
|
+
accounting_date?: string | undefined;
|
|
13214
13275
|
}>;
|
|
13215
13276
|
getProducts(): import("../types/api").RequestData<{
|
|
13216
13277
|
id: string;
|
|
@@ -13832,6 +13893,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13832
13893
|
refunded_amount: number;
|
|
13833
13894
|
currency: string;
|
|
13834
13895
|
note?: string | undefined;
|
|
13896
|
+
tags: string[];
|
|
13835
13897
|
lines: {
|
|
13836
13898
|
id: string;
|
|
13837
13899
|
source_ref: {
|
|
@@ -14108,6 +14170,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14108
14170
|
refunded_amount: number;
|
|
14109
14171
|
currency: string;
|
|
14110
14172
|
note?: string | undefined;
|
|
14173
|
+
tags: string[];
|
|
14111
14174
|
lines: {
|
|
14112
14175
|
id: string;
|
|
14113
14176
|
source_ref: {
|
|
@@ -14343,6 +14406,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
14343
14406
|
refunded_amount: number;
|
|
14344
14407
|
currency: string;
|
|
14345
14408
|
note?: string | undefined;
|
|
14409
|
+
tags: string[];
|
|
14346
14410
|
lines: {
|
|
14347
14411
|
id: string;
|
|
14348
14412
|
source_ref: {
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chift/chift-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
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",
|