@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
|
@@ -118,6 +118,8 @@ export declare class API {
|
|
|
118
118
|
}[];
|
|
119
119
|
items: {
|
|
120
120
|
id: string;
|
|
121
|
+
type?: "menu" | "product" | undefined;
|
|
122
|
+
menu_id?: string | undefined;
|
|
121
123
|
quantity: number;
|
|
122
124
|
unit_price: number;
|
|
123
125
|
total: number;
|
|
@@ -193,6 +195,8 @@ export declare class API {
|
|
|
193
195
|
}[];
|
|
194
196
|
items: {
|
|
195
197
|
id: string;
|
|
198
|
+
type?: "menu" | "product" | undefined;
|
|
199
|
+
menu_id?: string | undefined;
|
|
196
200
|
quantity: number;
|
|
197
201
|
unit_price: number;
|
|
198
202
|
total: number;
|
|
@@ -365,6 +369,8 @@ export declare class API {
|
|
|
365
369
|
}[];
|
|
366
370
|
items: {
|
|
367
371
|
id: string;
|
|
372
|
+
type?: "menu" | "product" | undefined;
|
|
373
|
+
menu_id?: string | undefined;
|
|
368
374
|
quantity: number;
|
|
369
375
|
unit_price: number;
|
|
370
376
|
total: number;
|
|
@@ -384,7 +390,6 @@ export declare class API {
|
|
|
384
390
|
} | undefined): import("../types/api").RequestData<{
|
|
385
391
|
id: string;
|
|
386
392
|
name: string;
|
|
387
|
-
id_parent?: string | undefined;
|
|
388
393
|
code?: string | undefined;
|
|
389
394
|
ledger_account_code?: string | undefined;
|
|
390
395
|
posting_account_code?: string | undefined;
|
|
@@ -445,6 +450,8 @@ export declare class API {
|
|
|
445
450
|
id?: string | undefined;
|
|
446
451
|
model?: string | undefined;
|
|
447
452
|
};
|
|
453
|
+
type?: "menu" | "product" | undefined;
|
|
454
|
+
menu_id?: string | undefined;
|
|
448
455
|
quantity: number;
|
|
449
456
|
unit_price: number;
|
|
450
457
|
total: number;
|
|
@@ -502,7 +509,6 @@ export declare class API {
|
|
|
502
509
|
model?: string | undefined;
|
|
503
510
|
};
|
|
504
511
|
name: string;
|
|
505
|
-
id_parent?: string | undefined;
|
|
506
512
|
code?: string | undefined;
|
|
507
513
|
ledger_account_code?: string | undefined;
|
|
508
514
|
posting_account_code?: string | undefined;
|
|
@@ -600,6 +606,7 @@ export declare class API {
|
|
|
600
606
|
active: boolean;
|
|
601
607
|
}[]>;
|
|
602
608
|
getClients(params?: {
|
|
609
|
+
search?: string | undefined;
|
|
603
610
|
folder_id?: string | undefined;
|
|
604
611
|
} | undefined): import("../types/api").RequestData<{
|
|
605
612
|
external_reference?: string | undefined;
|
|
@@ -818,6 +825,7 @@ export declare class API {
|
|
|
818
825
|
id?: string | undefined;
|
|
819
826
|
}>;
|
|
820
827
|
getSuppliers(params?: {
|
|
828
|
+
search?: string | undefined;
|
|
821
829
|
folder_id?: string | undefined;
|
|
822
830
|
} | undefined): import("../types/api").RequestData<{
|
|
823
831
|
external_reference?: string | undefined;
|
|
@@ -1995,6 +2003,8 @@ export declare class API {
|
|
|
1995
2003
|
}[];
|
|
1996
2004
|
pdf?: string | undefined;
|
|
1997
2005
|
posted: boolean;
|
|
2006
|
+
start_date?: string | undefined;
|
|
2007
|
+
end_date?: string | undefined;
|
|
1998
2008
|
}, params?: {
|
|
1999
2009
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
2000
2010
|
folder_id?: string | undefined;
|
|
@@ -2094,6 +2104,7 @@ export declare class API {
|
|
|
2094
2104
|
} | undefined;
|
|
2095
2105
|
last_updated_on?: string | undefined;
|
|
2096
2106
|
outstanding_amount?: number | undefined;
|
|
2107
|
+
accounting_date?: string | undefined;
|
|
2097
2108
|
}[]>;
|
|
2098
2109
|
getInvoiceById(invoiceId: string, params?: {
|
|
2099
2110
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -2139,6 +2150,7 @@ export declare class API {
|
|
|
2139
2150
|
} | undefined;
|
|
2140
2151
|
last_updated_on?: string | undefined;
|
|
2141
2152
|
outstanding_amount?: number | undefined;
|
|
2153
|
+
accounting_date?: string | undefined;
|
|
2142
2154
|
}>;
|
|
2143
2155
|
createInvoice(invoice: {
|
|
2144
2156
|
currency: string;
|
|
@@ -2217,6 +2229,7 @@ export declare class API {
|
|
|
2217
2229
|
} | undefined;
|
|
2218
2230
|
last_updated_on?: string | undefined;
|
|
2219
2231
|
outstanding_amount?: number | undefined;
|
|
2232
|
+
accounting_date?: string | undefined;
|
|
2220
2233
|
}>;
|
|
2221
2234
|
getProducts(): import("../types/api").RequestData<{
|
|
2222
2235
|
id: string;
|
|
@@ -2838,6 +2851,7 @@ export declare class API {
|
|
|
2838
2851
|
refunded_amount: number;
|
|
2839
2852
|
currency: string;
|
|
2840
2853
|
note?: string | undefined;
|
|
2854
|
+
tags: string[];
|
|
2841
2855
|
lines: {
|
|
2842
2856
|
id: string;
|
|
2843
2857
|
source_ref: {
|
|
@@ -3114,6 +3128,7 @@ export declare class API {
|
|
|
3114
3128
|
refunded_amount: number;
|
|
3115
3129
|
currency: string;
|
|
3116
3130
|
note?: string | undefined;
|
|
3131
|
+
tags: string[];
|
|
3117
3132
|
lines: {
|
|
3118
3133
|
id: string;
|
|
3119
3134
|
source_ref: {
|
|
@@ -3349,6 +3364,7 @@ export declare class API {
|
|
|
3349
3364
|
refunded_amount: number;
|
|
3350
3365
|
currency: string;
|
|
3351
3366
|
note?: string | undefined;
|
|
3367
|
+
tags: string[];
|
|
3352
3368
|
lines: {
|
|
3353
3369
|
id: string;
|
|
3354
3370
|
source_ref: {
|
|
@@ -3767,6 +3783,8 @@ export declare class API {
|
|
|
3767
3783
|
}[];
|
|
3768
3784
|
items: {
|
|
3769
3785
|
id: string;
|
|
3786
|
+
type?: "menu" | "product" | undefined;
|
|
3787
|
+
menu_id?: string | undefined;
|
|
3770
3788
|
quantity: number;
|
|
3771
3789
|
unit_price: number;
|
|
3772
3790
|
total: number;
|
|
@@ -3842,6 +3860,8 @@ export declare class API {
|
|
|
3842
3860
|
}[];
|
|
3843
3861
|
items: {
|
|
3844
3862
|
id: string;
|
|
3863
|
+
type?: "menu" | "product" | undefined;
|
|
3864
|
+
menu_id?: string | undefined;
|
|
3845
3865
|
quantity: number;
|
|
3846
3866
|
unit_price: number;
|
|
3847
3867
|
total: number;
|
|
@@ -4014,6 +4034,8 @@ export declare class API {
|
|
|
4014
4034
|
}[];
|
|
4015
4035
|
items: {
|
|
4016
4036
|
id: string;
|
|
4037
|
+
type?: "menu" | "product" | undefined;
|
|
4038
|
+
menu_id?: string | undefined;
|
|
4017
4039
|
quantity: number;
|
|
4018
4040
|
unit_price: number;
|
|
4019
4041
|
total: number;
|
|
@@ -4033,7 +4055,6 @@ export declare class API {
|
|
|
4033
4055
|
} | undefined): import("../types/api").RequestData<{
|
|
4034
4056
|
id: string;
|
|
4035
4057
|
name: string;
|
|
4036
|
-
id_parent?: string | undefined;
|
|
4037
4058
|
code?: string | undefined;
|
|
4038
4059
|
ledger_account_code?: string | undefined;
|
|
4039
4060
|
posting_account_code?: string | undefined;
|
|
@@ -4094,6 +4115,8 @@ export declare class API {
|
|
|
4094
4115
|
id?: string | undefined;
|
|
4095
4116
|
model?: string | undefined;
|
|
4096
4117
|
};
|
|
4118
|
+
type?: "menu" | "product" | undefined;
|
|
4119
|
+
menu_id?: string | undefined;
|
|
4097
4120
|
quantity: number;
|
|
4098
4121
|
unit_price: number;
|
|
4099
4122
|
total: number;
|
|
@@ -4151,7 +4174,6 @@ export declare class API {
|
|
|
4151
4174
|
model?: string | undefined;
|
|
4152
4175
|
};
|
|
4153
4176
|
name: string;
|
|
4154
|
-
id_parent?: string | undefined;
|
|
4155
4177
|
code?: string | undefined;
|
|
4156
4178
|
ledger_account_code?: string | undefined;
|
|
4157
4179
|
posting_account_code?: string | undefined;
|
|
@@ -4249,6 +4271,7 @@ export declare class API {
|
|
|
4249
4271
|
active: boolean;
|
|
4250
4272
|
}[]>;
|
|
4251
4273
|
getClients(params?: {
|
|
4274
|
+
search?: string | undefined;
|
|
4252
4275
|
folder_id?: string | undefined;
|
|
4253
4276
|
} | undefined): import("../types/api").RequestData<{
|
|
4254
4277
|
external_reference?: string | undefined;
|
|
@@ -4467,6 +4490,7 @@ export declare class API {
|
|
|
4467
4490
|
id?: string | undefined;
|
|
4468
4491
|
}>;
|
|
4469
4492
|
getSuppliers(params?: {
|
|
4493
|
+
search?: string | undefined;
|
|
4470
4494
|
folder_id?: string | undefined;
|
|
4471
4495
|
} | undefined): import("../types/api").RequestData<{
|
|
4472
4496
|
external_reference?: string | undefined;
|
|
@@ -5644,6 +5668,8 @@ export declare class API {
|
|
|
5644
5668
|
}[];
|
|
5645
5669
|
pdf?: string | undefined;
|
|
5646
5670
|
posted: boolean;
|
|
5671
|
+
start_date?: string | undefined;
|
|
5672
|
+
end_date?: string | undefined;
|
|
5647
5673
|
}, params?: {
|
|
5648
5674
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
5649
5675
|
folder_id?: string | undefined;
|
|
@@ -5743,6 +5769,7 @@ export declare class API {
|
|
|
5743
5769
|
} | undefined;
|
|
5744
5770
|
last_updated_on?: string | undefined;
|
|
5745
5771
|
outstanding_amount?: number | undefined;
|
|
5772
|
+
accounting_date?: string | undefined;
|
|
5746
5773
|
}[]>;
|
|
5747
5774
|
getInvoiceById(invoiceId: string, params?: {
|
|
5748
5775
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -5788,6 +5815,7 @@ export declare class API {
|
|
|
5788
5815
|
} | undefined;
|
|
5789
5816
|
last_updated_on?: string | undefined;
|
|
5790
5817
|
outstanding_amount?: number | undefined;
|
|
5818
|
+
accounting_date?: string | undefined;
|
|
5791
5819
|
}>;
|
|
5792
5820
|
createInvoice(invoice: {
|
|
5793
5821
|
currency: string;
|
|
@@ -5866,6 +5894,7 @@ export declare class API {
|
|
|
5866
5894
|
} | undefined;
|
|
5867
5895
|
last_updated_on?: string | undefined;
|
|
5868
5896
|
outstanding_amount?: number | undefined;
|
|
5897
|
+
accounting_date?: string | undefined;
|
|
5869
5898
|
}>;
|
|
5870
5899
|
getProducts(): import("../types/api").RequestData<{
|
|
5871
5900
|
id: string;
|
|
@@ -6487,6 +6516,7 @@ export declare class API {
|
|
|
6487
6516
|
refunded_amount: number;
|
|
6488
6517
|
currency: string;
|
|
6489
6518
|
note?: string | undefined;
|
|
6519
|
+
tags: string[];
|
|
6490
6520
|
lines: {
|
|
6491
6521
|
id: string;
|
|
6492
6522
|
source_ref: {
|
|
@@ -6763,6 +6793,7 @@ export declare class API {
|
|
|
6763
6793
|
refunded_amount: number;
|
|
6764
6794
|
currency: string;
|
|
6765
6795
|
note?: string | undefined;
|
|
6796
|
+
tags: string[];
|
|
6766
6797
|
lines: {
|
|
6767
6798
|
id: string;
|
|
6768
6799
|
source_ref: {
|
|
@@ -6998,6 +7029,7 @@ export declare class API {
|
|
|
6998
7029
|
refunded_amount: number;
|
|
6999
7030
|
currency: string;
|
|
7000
7031
|
note?: string | undefined;
|
|
7032
|
+
tags: string[];
|
|
7001
7033
|
lines: {
|
|
7002
7034
|
id: string;
|
|
7003
7035
|
source_ref: {
|
|
@@ -7412,6 +7444,8 @@ export declare class API {
|
|
|
7412
7444
|
}[];
|
|
7413
7445
|
items: {
|
|
7414
7446
|
id: string;
|
|
7447
|
+
type?: "menu" | "product" | undefined;
|
|
7448
|
+
menu_id?: string | undefined;
|
|
7415
7449
|
quantity: number;
|
|
7416
7450
|
unit_price: number;
|
|
7417
7451
|
total: number;
|
|
@@ -7487,6 +7521,8 @@ export declare class API {
|
|
|
7487
7521
|
}[];
|
|
7488
7522
|
items: {
|
|
7489
7523
|
id: string;
|
|
7524
|
+
type?: "menu" | "product" | undefined;
|
|
7525
|
+
menu_id?: string | undefined;
|
|
7490
7526
|
quantity: number;
|
|
7491
7527
|
unit_price: number;
|
|
7492
7528
|
total: number;
|
|
@@ -7659,6 +7695,8 @@ export declare class API {
|
|
|
7659
7695
|
}[];
|
|
7660
7696
|
items: {
|
|
7661
7697
|
id: string;
|
|
7698
|
+
type?: "menu" | "product" | undefined;
|
|
7699
|
+
menu_id?: string | undefined;
|
|
7662
7700
|
quantity: number;
|
|
7663
7701
|
unit_price: number;
|
|
7664
7702
|
total: number;
|
|
@@ -7678,7 +7716,6 @@ export declare class API {
|
|
|
7678
7716
|
} | undefined): import("../types/api").RequestData<{
|
|
7679
7717
|
id: string;
|
|
7680
7718
|
name: string;
|
|
7681
|
-
id_parent?: string | undefined;
|
|
7682
7719
|
code?: string | undefined;
|
|
7683
7720
|
ledger_account_code?: string | undefined;
|
|
7684
7721
|
posting_account_code?: string | undefined;
|
|
@@ -7739,6 +7776,8 @@ export declare class API {
|
|
|
7739
7776
|
id?: string | undefined;
|
|
7740
7777
|
model?: string | undefined;
|
|
7741
7778
|
};
|
|
7779
|
+
type?: "menu" | "product" | undefined;
|
|
7780
|
+
menu_id?: string | undefined;
|
|
7742
7781
|
quantity: number;
|
|
7743
7782
|
unit_price: number;
|
|
7744
7783
|
total: number;
|
|
@@ -7796,7 +7835,6 @@ export declare class API {
|
|
|
7796
7835
|
model?: string | undefined;
|
|
7797
7836
|
};
|
|
7798
7837
|
name: string;
|
|
7799
|
-
id_parent?: string | undefined;
|
|
7800
7838
|
code?: string | undefined;
|
|
7801
7839
|
ledger_account_code?: string | undefined;
|
|
7802
7840
|
posting_account_code?: string | undefined;
|
|
@@ -7894,6 +7932,7 @@ export declare class API {
|
|
|
7894
7932
|
active: boolean;
|
|
7895
7933
|
}[]>;
|
|
7896
7934
|
getClients(params?: {
|
|
7935
|
+
search?: string | undefined;
|
|
7897
7936
|
folder_id?: string | undefined;
|
|
7898
7937
|
} | undefined): import("../types/api").RequestData<{
|
|
7899
7938
|
external_reference?: string | undefined;
|
|
@@ -8112,6 +8151,7 @@ export declare class API {
|
|
|
8112
8151
|
id?: string | undefined;
|
|
8113
8152
|
}>;
|
|
8114
8153
|
getSuppliers(params?: {
|
|
8154
|
+
search?: string | undefined;
|
|
8115
8155
|
folder_id?: string | undefined;
|
|
8116
8156
|
} | undefined): import("../types/api").RequestData<{
|
|
8117
8157
|
external_reference?: string | undefined;
|
|
@@ -9289,6 +9329,8 @@ export declare class API {
|
|
|
9289
9329
|
}[];
|
|
9290
9330
|
pdf?: string | undefined;
|
|
9291
9331
|
posted: boolean;
|
|
9332
|
+
start_date?: string | undefined;
|
|
9333
|
+
end_date?: string | undefined;
|
|
9292
9334
|
}, params?: {
|
|
9293
9335
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
9294
9336
|
folder_id?: string | undefined;
|
|
@@ -9388,6 +9430,7 @@ export declare class API {
|
|
|
9388
9430
|
} | undefined;
|
|
9389
9431
|
last_updated_on?: string | undefined;
|
|
9390
9432
|
outstanding_amount?: number | undefined;
|
|
9433
|
+
accounting_date?: string | undefined;
|
|
9391
9434
|
}[]>;
|
|
9392
9435
|
getInvoiceById(invoiceId: string, params?: {
|
|
9393
9436
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -9433,6 +9476,7 @@ export declare class API {
|
|
|
9433
9476
|
} | undefined;
|
|
9434
9477
|
last_updated_on?: string | undefined;
|
|
9435
9478
|
outstanding_amount?: number | undefined;
|
|
9479
|
+
accounting_date?: string | undefined;
|
|
9436
9480
|
}>;
|
|
9437
9481
|
createInvoice(invoice: {
|
|
9438
9482
|
currency: string;
|
|
@@ -9511,6 +9555,7 @@ export declare class API {
|
|
|
9511
9555
|
} | undefined;
|
|
9512
9556
|
last_updated_on?: string | undefined;
|
|
9513
9557
|
outstanding_amount?: number | undefined;
|
|
9558
|
+
accounting_date?: string | undefined;
|
|
9514
9559
|
}>;
|
|
9515
9560
|
getProducts(): import("../types/api").RequestData<{
|
|
9516
9561
|
id: string;
|
|
@@ -10132,6 +10177,7 @@ export declare class API {
|
|
|
10132
10177
|
refunded_amount: number;
|
|
10133
10178
|
currency: string;
|
|
10134
10179
|
note?: string | undefined;
|
|
10180
|
+
tags: string[];
|
|
10135
10181
|
lines: {
|
|
10136
10182
|
id: string;
|
|
10137
10183
|
source_ref: {
|
|
@@ -10408,6 +10454,7 @@ export declare class API {
|
|
|
10408
10454
|
refunded_amount: number;
|
|
10409
10455
|
currency: string;
|
|
10410
10456
|
note?: string | undefined;
|
|
10457
|
+
tags: string[];
|
|
10411
10458
|
lines: {
|
|
10412
10459
|
id: string;
|
|
10413
10460
|
source_ref: {
|
|
@@ -10643,6 +10690,7 @@ export declare class API {
|
|
|
10643
10690
|
refunded_amount: number;
|
|
10644
10691
|
currency: string;
|
|
10645
10692
|
note?: string | undefined;
|
|
10693
|
+
tags: string[];
|
|
10646
10694
|
lines: {
|
|
10647
10695
|
id: string;
|
|
10648
10696
|
source_ref: {
|
|
@@ -11057,6 +11105,8 @@ export declare class API {
|
|
|
11057
11105
|
}[];
|
|
11058
11106
|
items: {
|
|
11059
11107
|
id: string;
|
|
11108
|
+
type?: "menu" | "product" | undefined;
|
|
11109
|
+
menu_id?: string | undefined;
|
|
11060
11110
|
quantity: number;
|
|
11061
11111
|
unit_price: number;
|
|
11062
11112
|
total: number;
|
|
@@ -11132,6 +11182,8 @@ export declare class API {
|
|
|
11132
11182
|
}[];
|
|
11133
11183
|
items: {
|
|
11134
11184
|
id: string;
|
|
11185
|
+
type?: "menu" | "product" | undefined;
|
|
11186
|
+
menu_id?: string | undefined;
|
|
11135
11187
|
quantity: number;
|
|
11136
11188
|
unit_price: number;
|
|
11137
11189
|
total: number;
|
|
@@ -11304,6 +11356,8 @@ export declare class API {
|
|
|
11304
11356
|
}[];
|
|
11305
11357
|
items: {
|
|
11306
11358
|
id: string;
|
|
11359
|
+
type?: "menu" | "product" | undefined;
|
|
11360
|
+
menu_id?: string | undefined;
|
|
11307
11361
|
quantity: number;
|
|
11308
11362
|
unit_price: number;
|
|
11309
11363
|
total: number;
|
|
@@ -11323,7 +11377,6 @@ export declare class API {
|
|
|
11323
11377
|
} | undefined): import("../types/api").RequestData<{
|
|
11324
11378
|
id: string;
|
|
11325
11379
|
name: string;
|
|
11326
|
-
id_parent?: string | undefined;
|
|
11327
11380
|
code?: string | undefined;
|
|
11328
11381
|
ledger_account_code?: string | undefined;
|
|
11329
11382
|
posting_account_code?: string | undefined;
|
|
@@ -11384,6 +11437,8 @@ export declare class API {
|
|
|
11384
11437
|
id?: string | undefined;
|
|
11385
11438
|
model?: string | undefined;
|
|
11386
11439
|
};
|
|
11440
|
+
type?: "menu" | "product" | undefined;
|
|
11441
|
+
menu_id?: string | undefined;
|
|
11387
11442
|
quantity: number;
|
|
11388
11443
|
unit_price: number;
|
|
11389
11444
|
total: number;
|
|
@@ -11441,7 +11496,6 @@ export declare class API {
|
|
|
11441
11496
|
model?: string | undefined;
|
|
11442
11497
|
};
|
|
11443
11498
|
name: string;
|
|
11444
|
-
id_parent?: string | undefined;
|
|
11445
11499
|
code?: string | undefined;
|
|
11446
11500
|
ledger_account_code?: string | undefined;
|
|
11447
11501
|
posting_account_code?: string | undefined;
|
|
@@ -11539,6 +11593,7 @@ export declare class API {
|
|
|
11539
11593
|
active: boolean;
|
|
11540
11594
|
}[]>;
|
|
11541
11595
|
getClients(params?: {
|
|
11596
|
+
search?: string | undefined;
|
|
11542
11597
|
folder_id?: string | undefined;
|
|
11543
11598
|
} | undefined): import("../types/api").RequestData<{
|
|
11544
11599
|
external_reference?: string | undefined;
|
|
@@ -11757,6 +11812,7 @@ export declare class API {
|
|
|
11757
11812
|
id?: string | undefined;
|
|
11758
11813
|
}>;
|
|
11759
11814
|
getSuppliers(params?: {
|
|
11815
|
+
search?: string | undefined;
|
|
11760
11816
|
folder_id?: string | undefined;
|
|
11761
11817
|
} | undefined): import("../types/api").RequestData<{
|
|
11762
11818
|
external_reference?: string | undefined;
|
|
@@ -12934,6 +12990,8 @@ export declare class API {
|
|
|
12934
12990
|
}[];
|
|
12935
12991
|
pdf?: string | undefined;
|
|
12936
12992
|
posted: boolean;
|
|
12993
|
+
start_date?: string | undefined;
|
|
12994
|
+
end_date?: string | undefined;
|
|
12937
12995
|
}, params?: {
|
|
12938
12996
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
12939
12997
|
folder_id?: string | undefined;
|
|
@@ -13033,6 +13091,7 @@ export declare class API {
|
|
|
13033
13091
|
} | undefined;
|
|
13034
13092
|
last_updated_on?: string | undefined;
|
|
13035
13093
|
outstanding_amount?: number | undefined;
|
|
13094
|
+
accounting_date?: string | undefined;
|
|
13036
13095
|
}[]>;
|
|
13037
13096
|
getInvoiceById(invoiceId: string, params?: {
|
|
13038
13097
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -13078,6 +13137,7 @@ export declare class API {
|
|
|
13078
13137
|
} | undefined;
|
|
13079
13138
|
last_updated_on?: string | undefined;
|
|
13080
13139
|
outstanding_amount?: number | undefined;
|
|
13140
|
+
accounting_date?: string | undefined;
|
|
13081
13141
|
}>;
|
|
13082
13142
|
createInvoice(invoice: {
|
|
13083
13143
|
currency: string;
|
|
@@ -13156,6 +13216,7 @@ export declare class API {
|
|
|
13156
13216
|
} | undefined;
|
|
13157
13217
|
last_updated_on?: string | undefined;
|
|
13158
13218
|
outstanding_amount?: number | undefined;
|
|
13219
|
+
accounting_date?: string | undefined;
|
|
13159
13220
|
}>;
|
|
13160
13221
|
getProducts(): import("../types/api").RequestData<{
|
|
13161
13222
|
id: string;
|
|
@@ -13777,6 +13838,7 @@ export declare class API {
|
|
|
13777
13838
|
refunded_amount: number;
|
|
13778
13839
|
currency: string;
|
|
13779
13840
|
note?: string | undefined;
|
|
13841
|
+
tags: string[];
|
|
13780
13842
|
lines: {
|
|
13781
13843
|
id: string;
|
|
13782
13844
|
source_ref: {
|
|
@@ -14053,6 +14115,7 @@ export declare class API {
|
|
|
14053
14115
|
refunded_amount: number;
|
|
14054
14116
|
currency: string;
|
|
14055
14117
|
note?: string | undefined;
|
|
14118
|
+
tags: string[];
|
|
14056
14119
|
lines: {
|
|
14057
14120
|
id: string;
|
|
14058
14121
|
source_ref: {
|
|
@@ -14288,6 +14351,7 @@ export declare class API {
|
|
|
14288
14351
|
refunded_amount: number;
|
|
14289
14352
|
currency: string;
|
|
14290
14353
|
note?: string | undefined;
|
|
14354
|
+
tags: string[];
|
|
14291
14355
|
lines: {
|
|
14292
14356
|
id: string;
|
|
14293
14357
|
source_ref: {
|
|
@@ -14706,6 +14770,8 @@ export declare class API {
|
|
|
14706
14770
|
}[];
|
|
14707
14771
|
items: {
|
|
14708
14772
|
id: string;
|
|
14773
|
+
type?: "menu" | "product" | undefined;
|
|
14774
|
+
menu_id?: string | undefined;
|
|
14709
14775
|
quantity: number;
|
|
14710
14776
|
unit_price: number;
|
|
14711
14777
|
total: number;
|
|
@@ -14781,6 +14847,8 @@ export declare class API {
|
|
|
14781
14847
|
}[];
|
|
14782
14848
|
items: {
|
|
14783
14849
|
id: string;
|
|
14850
|
+
type?: "menu" | "product" | undefined;
|
|
14851
|
+
menu_id?: string | undefined;
|
|
14784
14852
|
quantity: number;
|
|
14785
14853
|
unit_price: number;
|
|
14786
14854
|
total: number;
|
|
@@ -14953,6 +15021,8 @@ export declare class API {
|
|
|
14953
15021
|
}[];
|
|
14954
15022
|
items: {
|
|
14955
15023
|
id: string;
|
|
15024
|
+
type?: "menu" | "product" | undefined;
|
|
15025
|
+
menu_id?: string | undefined;
|
|
14956
15026
|
quantity: number;
|
|
14957
15027
|
unit_price: number;
|
|
14958
15028
|
total: number;
|
|
@@ -14972,7 +15042,6 @@ export declare class API {
|
|
|
14972
15042
|
} | undefined): import("../types/api").RequestData<{
|
|
14973
15043
|
id: string;
|
|
14974
15044
|
name: string;
|
|
14975
|
-
id_parent?: string | undefined;
|
|
14976
15045
|
code?: string | undefined;
|
|
14977
15046
|
ledger_account_code?: string | undefined;
|
|
14978
15047
|
posting_account_code?: string | undefined;
|
|
@@ -15033,6 +15102,8 @@ export declare class API {
|
|
|
15033
15102
|
id?: string | undefined;
|
|
15034
15103
|
model?: string | undefined;
|
|
15035
15104
|
};
|
|
15105
|
+
type?: "menu" | "product" | undefined;
|
|
15106
|
+
menu_id?: string | undefined;
|
|
15036
15107
|
quantity: number;
|
|
15037
15108
|
unit_price: number;
|
|
15038
15109
|
total: number;
|
|
@@ -15090,7 +15161,6 @@ export declare class API {
|
|
|
15090
15161
|
model?: string | undefined;
|
|
15091
15162
|
};
|
|
15092
15163
|
name: string;
|
|
15093
|
-
id_parent?: string | undefined;
|
|
15094
15164
|
code?: string | undefined;
|
|
15095
15165
|
ledger_account_code?: string | undefined;
|
|
15096
15166
|
posting_account_code?: string | undefined;
|
|
@@ -15188,6 +15258,7 @@ export declare class API {
|
|
|
15188
15258
|
active: boolean;
|
|
15189
15259
|
}[]>;
|
|
15190
15260
|
getClients(params?: {
|
|
15261
|
+
search?: string | undefined;
|
|
15191
15262
|
folder_id?: string | undefined;
|
|
15192
15263
|
} | undefined): import("../types/api").RequestData<{
|
|
15193
15264
|
external_reference?: string | undefined;
|
|
@@ -15406,6 +15477,7 @@ export declare class API {
|
|
|
15406
15477
|
id?: string | undefined;
|
|
15407
15478
|
}>;
|
|
15408
15479
|
getSuppliers(params?: {
|
|
15480
|
+
search?: string | undefined;
|
|
15409
15481
|
folder_id?: string | undefined;
|
|
15410
15482
|
} | undefined): import("../types/api").RequestData<{
|
|
15411
15483
|
external_reference?: string | undefined;
|
|
@@ -16583,6 +16655,8 @@ export declare class API {
|
|
|
16583
16655
|
}[];
|
|
16584
16656
|
pdf?: string | undefined;
|
|
16585
16657
|
posted: boolean;
|
|
16658
|
+
start_date?: string | undefined;
|
|
16659
|
+
end_date?: string | undefined;
|
|
16586
16660
|
}, params?: {
|
|
16587
16661
|
force_currency_exchange?: "true" | "false" | undefined;
|
|
16588
16662
|
folder_id?: string | undefined;
|
|
@@ -16682,6 +16756,7 @@ export declare class API {
|
|
|
16682
16756
|
} | undefined;
|
|
16683
16757
|
last_updated_on?: string | undefined;
|
|
16684
16758
|
outstanding_amount?: number | undefined;
|
|
16759
|
+
accounting_date?: string | undefined;
|
|
16685
16760
|
}[]>;
|
|
16686
16761
|
getInvoiceById(invoiceId: string, params?: {
|
|
16687
16762
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -16727,6 +16802,7 @@ export declare class API {
|
|
|
16727
16802
|
} | undefined;
|
|
16728
16803
|
last_updated_on?: string | undefined;
|
|
16729
16804
|
outstanding_amount?: number | undefined;
|
|
16805
|
+
accounting_date?: string | undefined;
|
|
16730
16806
|
}>;
|
|
16731
16807
|
createInvoice(invoice: {
|
|
16732
16808
|
currency: string;
|
|
@@ -16805,6 +16881,7 @@ export declare class API {
|
|
|
16805
16881
|
} | undefined;
|
|
16806
16882
|
last_updated_on?: string | undefined;
|
|
16807
16883
|
outstanding_amount?: number | undefined;
|
|
16884
|
+
accounting_date?: string | undefined;
|
|
16808
16885
|
}>;
|
|
16809
16886
|
getProducts(): import("../types/api").RequestData<{
|
|
16810
16887
|
id: string;
|
|
@@ -17426,6 +17503,7 @@ export declare class API {
|
|
|
17426
17503
|
refunded_amount: number;
|
|
17427
17504
|
currency: string;
|
|
17428
17505
|
note?: string | undefined;
|
|
17506
|
+
tags: string[];
|
|
17429
17507
|
lines: {
|
|
17430
17508
|
id: string;
|
|
17431
17509
|
source_ref: {
|
|
@@ -17702,6 +17780,7 @@ export declare class API {
|
|
|
17702
17780
|
refunded_amount: number;
|
|
17703
17781
|
currency: string;
|
|
17704
17782
|
note?: string | undefined;
|
|
17783
|
+
tags: string[];
|
|
17705
17784
|
lines: {
|
|
17706
17785
|
id: string;
|
|
17707
17786
|
source_ref: {
|
|
@@ -17937,6 +18016,7 @@ export declare class API {
|
|
|
17937
18016
|
refunded_amount: number;
|
|
17938
18017
|
currency: string;
|
|
17939
18018
|
note?: string | undefined;
|
|
18019
|
+
tags: string[];
|
|
17940
18020
|
lines: {
|
|
17941
18021
|
id: string;
|
|
17942
18022
|
source_ref: {
|