@chift/chift-nodejs 1.0.15 → 1.0.16
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/.eslintcache +1 -1
- package/CHANGELOG.md +4 -1
- package/dist/src/modules/api.d.ts +60 -0
- package/dist/src/modules/consumer.d.ts +12 -1
- package/dist/src/modules/consumers.d.ts +55 -0
- package/dist/src/modules/integrations.d.ts +5 -0
- package/dist/src/modules/sync.d.ts +44 -0
- package/dist/src/types/public-api/schema.d.ts +69 -25
- package/package.json +1 -1
- package/src/modules/consumer.ts +3 -1
- package/src/types/public-api/schema.d.ts +69 -25
- package/src/types/public-api/schema.ts +69 -25
|
@@ -111,6 +111,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
111
111
|
tax_amount: number;
|
|
112
112
|
total: number;
|
|
113
113
|
}[] | undefined;
|
|
114
|
+
guests?: number | undefined;
|
|
114
115
|
payments: {
|
|
115
116
|
id?: string | undefined;
|
|
116
117
|
payment_method_id?: string | undefined;
|
|
@@ -184,6 +185,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
184
185
|
tax_amount: number;
|
|
185
186
|
total: number;
|
|
186
187
|
}[] | undefined;
|
|
188
|
+
guests?: number | undefined;
|
|
187
189
|
payments: {
|
|
188
190
|
id?: string | undefined;
|
|
189
191
|
payment_method_id?: string | undefined;
|
|
@@ -354,6 +356,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
354
356
|
tax_amount: number;
|
|
355
357
|
total: number;
|
|
356
358
|
}[] | undefined;
|
|
359
|
+
guests?: number | undefined;
|
|
357
360
|
payments: {
|
|
358
361
|
id?: string | undefined;
|
|
359
362
|
payment_method_id?: string | undefined;
|
|
@@ -436,6 +439,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
436
439
|
tax_amount: number;
|
|
437
440
|
total: number;
|
|
438
441
|
}[] | undefined;
|
|
442
|
+
guests?: number | undefined;
|
|
439
443
|
items: {
|
|
440
444
|
id: string;
|
|
441
445
|
source_ref: {
|
|
@@ -2673,6 +2677,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2673
2677
|
updated_after?: string | undefined;
|
|
2674
2678
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2675
2679
|
include_product_categories?: "true" | "false" | undefined;
|
|
2680
|
+
include_customer_details?: "true" | "false" | undefined;
|
|
2676
2681
|
} | undefined): import("../types/api").RequestData<{
|
|
2677
2682
|
id: string;
|
|
2678
2683
|
source_ref: {
|
|
@@ -2768,6 +2773,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2768
2773
|
}[] | undefined;
|
|
2769
2774
|
transactions?: {
|
|
2770
2775
|
id: string;
|
|
2776
|
+
created_on?: string | undefined;
|
|
2771
2777
|
payment_method_id?: string | undefined;
|
|
2772
2778
|
payment_method_name?: string | undefined;
|
|
2773
2779
|
amount: number;
|
|
@@ -2829,6 +2835,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2829
2835
|
payment_method_id?: string | undefined;
|
|
2830
2836
|
transactions?: {
|
|
2831
2837
|
id: string;
|
|
2838
|
+
created_on?: string | undefined;
|
|
2832
2839
|
payment_method_id?: string | undefined;
|
|
2833
2840
|
payment_method_name?: string | undefined;
|
|
2834
2841
|
amount: number;
|
|
@@ -2975,6 +2982,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
2975
2982
|
}[] | undefined;
|
|
2976
2983
|
transactions?: {
|
|
2977
2984
|
id: string;
|
|
2985
|
+
created_on?: string | undefined;
|
|
2978
2986
|
payment_method_id?: string | undefined;
|
|
2979
2987
|
payment_method_name?: string | undefined;
|
|
2980
2988
|
amount: number;
|
|
@@ -3036,6 +3044,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3036
3044
|
payment_method_id?: string | undefined;
|
|
3037
3045
|
transactions?: {
|
|
3038
3046
|
id: string;
|
|
3047
|
+
created_on?: string | undefined;
|
|
3039
3048
|
payment_method_id?: string | undefined;
|
|
3040
3049
|
payment_method_name?: string | undefined;
|
|
3041
3050
|
amount: number;
|
|
@@ -3141,6 +3150,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3141
3150
|
}[] | undefined;
|
|
3142
3151
|
transactions?: {
|
|
3143
3152
|
id: string;
|
|
3153
|
+
created_on?: string | undefined;
|
|
3144
3154
|
payment_method_id?: string | undefined;
|
|
3145
3155
|
payment_method_name?: string | undefined;
|
|
3146
3156
|
amount: number;
|
|
@@ -3202,6 +3212,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3202
3212
|
payment_method_id?: string | undefined;
|
|
3203
3213
|
transactions?: {
|
|
3204
3214
|
id: string;
|
|
3215
|
+
created_on?: string | undefined;
|
|
3205
3216
|
payment_method_id?: string | undefined;
|
|
3206
3217
|
payment_method_name?: string | undefined;
|
|
3207
3218
|
amount: number;
|
|
@@ -3451,6 +3462,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3451
3462
|
tax_amount: number;
|
|
3452
3463
|
total: number;
|
|
3453
3464
|
}[] | undefined;
|
|
3465
|
+
guests?: number | undefined;
|
|
3454
3466
|
payments: {
|
|
3455
3467
|
id?: string | undefined;
|
|
3456
3468
|
payment_method_id?: string | undefined;
|
|
@@ -3524,6 +3536,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3524
3536
|
tax_amount: number;
|
|
3525
3537
|
total: number;
|
|
3526
3538
|
}[] | undefined;
|
|
3539
|
+
guests?: number | undefined;
|
|
3527
3540
|
payments: {
|
|
3528
3541
|
id?: string | undefined;
|
|
3529
3542
|
payment_method_id?: string | undefined;
|
|
@@ -3694,6 +3707,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3694
3707
|
tax_amount: number;
|
|
3695
3708
|
total: number;
|
|
3696
3709
|
}[] | undefined;
|
|
3710
|
+
guests?: number | undefined;
|
|
3697
3711
|
payments: {
|
|
3698
3712
|
id?: string | undefined;
|
|
3699
3713
|
payment_method_id?: string | undefined;
|
|
@@ -3776,6 +3790,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
3776
3790
|
tax_amount: number;
|
|
3777
3791
|
total: number;
|
|
3778
3792
|
}[] | undefined;
|
|
3793
|
+
guests?: number | undefined;
|
|
3779
3794
|
items: {
|
|
3780
3795
|
id: string;
|
|
3781
3796
|
source_ref: {
|
|
@@ -6013,6 +6028,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6013
6028
|
updated_after?: string | undefined;
|
|
6014
6029
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
6015
6030
|
include_product_categories?: "true" | "false" | undefined;
|
|
6031
|
+
include_customer_details?: "true" | "false" | undefined;
|
|
6016
6032
|
} | undefined): import("../types/api").RequestData<{
|
|
6017
6033
|
id: string;
|
|
6018
6034
|
source_ref: {
|
|
@@ -6108,6 +6124,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6108
6124
|
}[] | undefined;
|
|
6109
6125
|
transactions?: {
|
|
6110
6126
|
id: string;
|
|
6127
|
+
created_on?: string | undefined;
|
|
6111
6128
|
payment_method_id?: string | undefined;
|
|
6112
6129
|
payment_method_name?: string | undefined;
|
|
6113
6130
|
amount: number;
|
|
@@ -6169,6 +6186,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6169
6186
|
payment_method_id?: string | undefined;
|
|
6170
6187
|
transactions?: {
|
|
6171
6188
|
id: string;
|
|
6189
|
+
created_on?: string | undefined;
|
|
6172
6190
|
payment_method_id?: string | undefined;
|
|
6173
6191
|
payment_method_name?: string | undefined;
|
|
6174
6192
|
amount: number;
|
|
@@ -6315,6 +6333,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6315
6333
|
}[] | undefined;
|
|
6316
6334
|
transactions?: {
|
|
6317
6335
|
id: string;
|
|
6336
|
+
created_on?: string | undefined;
|
|
6318
6337
|
payment_method_id?: string | undefined;
|
|
6319
6338
|
payment_method_name?: string | undefined;
|
|
6320
6339
|
amount: number;
|
|
@@ -6376,6 +6395,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6376
6395
|
payment_method_id?: string | undefined;
|
|
6377
6396
|
transactions?: {
|
|
6378
6397
|
id: string;
|
|
6398
|
+
created_on?: string | undefined;
|
|
6379
6399
|
payment_method_id?: string | undefined;
|
|
6380
6400
|
payment_method_name?: string | undefined;
|
|
6381
6401
|
amount: number;
|
|
@@ -6481,6 +6501,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6481
6501
|
}[] | undefined;
|
|
6482
6502
|
transactions?: {
|
|
6483
6503
|
id: string;
|
|
6504
|
+
created_on?: string | undefined;
|
|
6484
6505
|
payment_method_id?: string | undefined;
|
|
6485
6506
|
payment_method_name?: string | undefined;
|
|
6486
6507
|
amount: number;
|
|
@@ -6542,6 +6563,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6542
6563
|
payment_method_id?: string | undefined;
|
|
6543
6564
|
transactions?: {
|
|
6544
6565
|
id: string;
|
|
6566
|
+
created_on?: string | undefined;
|
|
6545
6567
|
payment_method_id?: string | undefined;
|
|
6546
6568
|
payment_method_name?: string | undefined;
|
|
6547
6569
|
amount: number;
|
|
@@ -6791,6 +6813,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6791
6813
|
tax_amount: number;
|
|
6792
6814
|
total: number;
|
|
6793
6815
|
}[] | undefined;
|
|
6816
|
+
guests?: number | undefined;
|
|
6794
6817
|
payments: {
|
|
6795
6818
|
id?: string | undefined;
|
|
6796
6819
|
payment_method_id?: string | undefined;
|
|
@@ -6864,6 +6887,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
6864
6887
|
tax_amount: number;
|
|
6865
6888
|
total: number;
|
|
6866
6889
|
}[] | undefined;
|
|
6890
|
+
guests?: number | undefined;
|
|
6867
6891
|
payments: {
|
|
6868
6892
|
id?: string | undefined;
|
|
6869
6893
|
payment_method_id?: string | undefined;
|
|
@@ -7034,6 +7058,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7034
7058
|
tax_amount: number;
|
|
7035
7059
|
total: number;
|
|
7036
7060
|
}[] | undefined;
|
|
7061
|
+
guests?: number | undefined;
|
|
7037
7062
|
payments: {
|
|
7038
7063
|
id?: string | undefined;
|
|
7039
7064
|
payment_method_id?: string | undefined;
|
|
@@ -7116,6 +7141,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
7116
7141
|
tax_amount: number;
|
|
7117
7142
|
total: number;
|
|
7118
7143
|
}[] | undefined;
|
|
7144
|
+
guests?: number | undefined;
|
|
7119
7145
|
items: {
|
|
7120
7146
|
id: string;
|
|
7121
7147
|
source_ref: {
|
|
@@ -9353,6 +9379,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9353
9379
|
updated_after?: string | undefined;
|
|
9354
9380
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
9355
9381
|
include_product_categories?: "true" | "false" | undefined;
|
|
9382
|
+
include_customer_details?: "true" | "false" | undefined;
|
|
9356
9383
|
} | undefined): import("../types/api").RequestData<{
|
|
9357
9384
|
id: string;
|
|
9358
9385
|
source_ref: {
|
|
@@ -9448,6 +9475,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9448
9475
|
}[] | undefined;
|
|
9449
9476
|
transactions?: {
|
|
9450
9477
|
id: string;
|
|
9478
|
+
created_on?: string | undefined;
|
|
9451
9479
|
payment_method_id?: string | undefined;
|
|
9452
9480
|
payment_method_name?: string | undefined;
|
|
9453
9481
|
amount: number;
|
|
@@ -9509,6 +9537,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9509
9537
|
payment_method_id?: string | undefined;
|
|
9510
9538
|
transactions?: {
|
|
9511
9539
|
id: string;
|
|
9540
|
+
created_on?: string | undefined;
|
|
9512
9541
|
payment_method_id?: string | undefined;
|
|
9513
9542
|
payment_method_name?: string | undefined;
|
|
9514
9543
|
amount: number;
|
|
@@ -9655,6 +9684,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9655
9684
|
}[] | undefined;
|
|
9656
9685
|
transactions?: {
|
|
9657
9686
|
id: string;
|
|
9687
|
+
created_on?: string | undefined;
|
|
9658
9688
|
payment_method_id?: string | undefined;
|
|
9659
9689
|
payment_method_name?: string | undefined;
|
|
9660
9690
|
amount: number;
|
|
@@ -9716,6 +9746,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9716
9746
|
payment_method_id?: string | undefined;
|
|
9717
9747
|
transactions?: {
|
|
9718
9748
|
id: string;
|
|
9749
|
+
created_on?: string | undefined;
|
|
9719
9750
|
payment_method_id?: string | undefined;
|
|
9720
9751
|
payment_method_name?: string | undefined;
|
|
9721
9752
|
amount: number;
|
|
@@ -9821,6 +9852,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9821
9852
|
}[] | undefined;
|
|
9822
9853
|
transactions?: {
|
|
9823
9854
|
id: string;
|
|
9855
|
+
created_on?: string | undefined;
|
|
9824
9856
|
payment_method_id?: string | undefined;
|
|
9825
9857
|
payment_method_name?: string | undefined;
|
|
9826
9858
|
amount: number;
|
|
@@ -9882,6 +9914,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
9882
9914
|
payment_method_id?: string | undefined;
|
|
9883
9915
|
transactions?: {
|
|
9884
9916
|
id: string;
|
|
9917
|
+
created_on?: string | undefined;
|
|
9885
9918
|
payment_method_id?: string | undefined;
|
|
9886
9919
|
payment_method_name?: string | undefined;
|
|
9887
9920
|
amount: number;
|
|
@@ -10131,6 +10164,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10131
10164
|
tax_amount: number;
|
|
10132
10165
|
total: number;
|
|
10133
10166
|
}[] | undefined;
|
|
10167
|
+
guests?: number | undefined;
|
|
10134
10168
|
payments: {
|
|
10135
10169
|
id?: string | undefined;
|
|
10136
10170
|
payment_method_id?: string | undefined;
|
|
@@ -10204,6 +10238,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10204
10238
|
tax_amount: number;
|
|
10205
10239
|
total: number;
|
|
10206
10240
|
}[] | undefined;
|
|
10241
|
+
guests?: number | undefined;
|
|
10207
10242
|
payments: {
|
|
10208
10243
|
id?: string | undefined;
|
|
10209
10244
|
payment_method_id?: string | undefined;
|
|
@@ -10374,6 +10409,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10374
10409
|
tax_amount: number;
|
|
10375
10410
|
total: number;
|
|
10376
10411
|
}[] | undefined;
|
|
10412
|
+
guests?: number | undefined;
|
|
10377
10413
|
payments: {
|
|
10378
10414
|
id?: string | undefined;
|
|
10379
10415
|
payment_method_id?: string | undefined;
|
|
@@ -10456,6 +10492,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
10456
10492
|
tax_amount: number;
|
|
10457
10493
|
total: number;
|
|
10458
10494
|
}[] | undefined;
|
|
10495
|
+
guests?: number | undefined;
|
|
10459
10496
|
items: {
|
|
10460
10497
|
id: string;
|
|
10461
10498
|
source_ref: {
|
|
@@ -12693,6 +12730,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12693
12730
|
updated_after?: string | undefined;
|
|
12694
12731
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
12695
12732
|
include_product_categories?: "true" | "false" | undefined;
|
|
12733
|
+
include_customer_details?: "true" | "false" | undefined;
|
|
12696
12734
|
} | undefined): import("../types/api").RequestData<{
|
|
12697
12735
|
id: string;
|
|
12698
12736
|
source_ref: {
|
|
@@ -12788,6 +12826,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12788
12826
|
}[] | undefined;
|
|
12789
12827
|
transactions?: {
|
|
12790
12828
|
id: string;
|
|
12829
|
+
created_on?: string | undefined;
|
|
12791
12830
|
payment_method_id?: string | undefined;
|
|
12792
12831
|
payment_method_name?: string | undefined;
|
|
12793
12832
|
amount: number;
|
|
@@ -12849,6 +12888,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12849
12888
|
payment_method_id?: string | undefined;
|
|
12850
12889
|
transactions?: {
|
|
12851
12890
|
id: string;
|
|
12891
|
+
created_on?: string | undefined;
|
|
12852
12892
|
payment_method_id?: string | undefined;
|
|
12853
12893
|
payment_method_name?: string | undefined;
|
|
12854
12894
|
amount: number;
|
|
@@ -12995,6 +13035,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
12995
13035
|
}[] | undefined;
|
|
12996
13036
|
transactions?: {
|
|
12997
13037
|
id: string;
|
|
13038
|
+
created_on?: string | undefined;
|
|
12998
13039
|
payment_method_id?: string | undefined;
|
|
12999
13040
|
payment_method_name?: string | undefined;
|
|
13000
13041
|
amount: number;
|
|
@@ -13056,6 +13097,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13056
13097
|
payment_method_id?: string | undefined;
|
|
13057
13098
|
transactions?: {
|
|
13058
13099
|
id: string;
|
|
13100
|
+
created_on?: string | undefined;
|
|
13059
13101
|
payment_method_id?: string | undefined;
|
|
13060
13102
|
payment_method_name?: string | undefined;
|
|
13061
13103
|
amount: number;
|
|
@@ -13161,6 +13203,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13161
13203
|
}[] | undefined;
|
|
13162
13204
|
transactions?: {
|
|
13163
13205
|
id: string;
|
|
13206
|
+
created_on?: string | undefined;
|
|
13164
13207
|
payment_method_id?: string | undefined;
|
|
13165
13208
|
payment_method_name?: string | undefined;
|
|
13166
13209
|
amount: number;
|
|
@@ -13222,6 +13265,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
|
|
|
13222
13265
|
payment_method_id?: string | undefined;
|
|
13223
13266
|
transactions?: {
|
|
13224
13267
|
id: string;
|
|
13268
|
+
created_on?: string | undefined;
|
|
13225
13269
|
payment_method_id?: string | undefined;
|
|
13226
13270
|
payment_method_name?: string | undefined;
|
|
13227
13271
|
amount: number;
|
|
@@ -860,9 +860,15 @@ export interface components {
|
|
|
860
860
|
schemas: {
|
|
861
861
|
/** AccountBalance */
|
|
862
862
|
AccountBalance: {
|
|
863
|
-
/**
|
|
863
|
+
/**
|
|
864
|
+
* Account Number
|
|
865
|
+
* @description Number of the account
|
|
866
|
+
*/
|
|
864
867
|
account_number: string;
|
|
865
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* Account Name
|
|
870
|
+
* @description Display name of the account
|
|
871
|
+
*/
|
|
866
872
|
account_name?: string;
|
|
867
873
|
/** Debit */
|
|
868
874
|
debit: number;
|
|
@@ -3127,6 +3133,12 @@ export interface components {
|
|
|
3127
3133
|
logo_url: string;
|
|
3128
3134
|
/** Icon Url */
|
|
3129
3135
|
icon_url: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* Post Connections
|
|
3138
|
+
* @description List of post-connections that can be activated for this integration.
|
|
3139
|
+
* @default []
|
|
3140
|
+
*/
|
|
3141
|
+
post_connections?: components['schemas']['app__routers__integrations__PostConnectionItem'][];
|
|
3130
3142
|
/**
|
|
3131
3143
|
* Credentials
|
|
3132
3144
|
* @description List of credentials that must be specified to create a connection. Can be used if you want to pass credentials on connection creation. Not compatible with oAuth2 routes.
|
|
@@ -4738,6 +4750,11 @@ export interface components {
|
|
|
4738
4750
|
* @description Technical id of the transaction in the eCommerce
|
|
4739
4751
|
*/
|
|
4740
4752
|
id: string;
|
|
4753
|
+
/**
|
|
4754
|
+
* Created On
|
|
4755
|
+
* Format: date-time
|
|
4756
|
+
*/
|
|
4757
|
+
created_on?: string;
|
|
4741
4758
|
/**
|
|
4742
4759
|
* Payment Method Id
|
|
4743
4760
|
* @description Technical id of the payment method in the eCommerce
|
|
@@ -4886,9 +4903,15 @@ export interface components {
|
|
|
4886
4903
|
total: number;
|
|
4887
4904
|
/** Tax Amount */
|
|
4888
4905
|
tax_amount: number;
|
|
4889
|
-
/**
|
|
4906
|
+
/**
|
|
4907
|
+
* Total Discount
|
|
4908
|
+
* @default 0
|
|
4909
|
+
*/
|
|
4890
4910
|
total_discount?: number;
|
|
4891
|
-
/**
|
|
4911
|
+
/**
|
|
4912
|
+
* Total Refund
|
|
4913
|
+
* @default 0
|
|
4914
|
+
*/
|
|
4892
4915
|
total_refund?: number;
|
|
4893
4916
|
/**
|
|
4894
4917
|
* Total Tip
|
|
@@ -4907,6 +4930,8 @@ export interface components {
|
|
|
4907
4930
|
location_id?: string;
|
|
4908
4931
|
/** Taxes */
|
|
4909
4932
|
taxes?: components['schemas']['TotalTaxItem'][];
|
|
4933
|
+
/** Guests */
|
|
4934
|
+
guests?: number;
|
|
4910
4935
|
/** Items */
|
|
4911
4936
|
items: components['schemas']['PMSOrderLineItem'][];
|
|
4912
4937
|
/**
|
|
@@ -5125,9 +5150,15 @@ export interface components {
|
|
|
5125
5150
|
total: number;
|
|
5126
5151
|
/** Tax Amount */
|
|
5127
5152
|
tax_amount: number;
|
|
5128
|
-
/**
|
|
5153
|
+
/**
|
|
5154
|
+
* Total Discount
|
|
5155
|
+
* @default 0
|
|
5156
|
+
*/
|
|
5129
5157
|
total_discount?: number;
|
|
5130
|
-
/**
|
|
5158
|
+
/**
|
|
5159
|
+
* Total Refund
|
|
5160
|
+
* @default 0
|
|
5161
|
+
*/
|
|
5131
5162
|
total_refund?: number;
|
|
5132
5163
|
/**
|
|
5133
5164
|
* Total Tip
|
|
@@ -5146,6 +5177,8 @@ export interface components {
|
|
|
5146
5177
|
location_id?: string;
|
|
5147
5178
|
/** Taxes */
|
|
5148
5179
|
taxes?: components['schemas']['TotalTaxItem'][];
|
|
5180
|
+
/** Guests */
|
|
5181
|
+
guests?: number;
|
|
5149
5182
|
/** Payments */
|
|
5150
5183
|
payments: components['schemas']['POSPaymentItem'][];
|
|
5151
5184
|
/** Items */
|
|
@@ -5349,24 +5382,6 @@ export interface components {
|
|
|
5349
5382
|
/** Country */
|
|
5350
5383
|
country?: string;
|
|
5351
5384
|
};
|
|
5352
|
-
/** PostConnectionItem */
|
|
5353
|
-
PostConnectionItem: {
|
|
5354
|
-
/**
|
|
5355
|
-
* Integrationid
|
|
5356
|
-
* @description Can be used to specify the integration code of a specific connector. If specified, the url will will point directly to the connection page of the connector and will redirect on save to the redirect url of the consumer if specified.
|
|
5357
|
-
*/
|
|
5358
|
-
integrationid?: number;
|
|
5359
|
-
/**
|
|
5360
|
-
* Name
|
|
5361
|
-
* @description Can be used to specify the name of the connection. Must be used in combination with an integrationid.
|
|
5362
|
-
*/
|
|
5363
|
-
name?: string;
|
|
5364
|
-
/**
|
|
5365
|
-
* Credentials
|
|
5366
|
-
* @description Can be used to specify the credentials of your connection. Must be used in combination with an integrationid and a name. Please use the getIntegrations route to see the available credentials for each integration
|
|
5367
|
-
*/
|
|
5368
|
-
credentials?: components['schemas']['app__routers__connections__CredentialItem'][];
|
|
5369
|
-
};
|
|
5370
5385
|
/** PostConsumerItem */
|
|
5371
5386
|
PostConsumerItem: {
|
|
5372
5387
|
/** Name */
|
|
@@ -6533,6 +6548,24 @@ export interface components {
|
|
|
6533
6548
|
/** Value */
|
|
6534
6549
|
value: string;
|
|
6535
6550
|
};
|
|
6551
|
+
/** PostConnectionItem */
|
|
6552
|
+
app__routers__connections__PostConnectionItem: {
|
|
6553
|
+
/**
|
|
6554
|
+
* Integrationid
|
|
6555
|
+
* @description Can be used to specify the integration code of a specific connector. If specified, the url will will point directly to the connection page of the connector and will redirect on save to the redirect url of the consumer if specified.
|
|
6556
|
+
*/
|
|
6557
|
+
integrationid?: number;
|
|
6558
|
+
/**
|
|
6559
|
+
* Name
|
|
6560
|
+
* @description Can be used to specify the name of the connection. Must be used in combination with an integrationid.
|
|
6561
|
+
*/
|
|
6562
|
+
name?: string;
|
|
6563
|
+
/**
|
|
6564
|
+
* Credentials
|
|
6565
|
+
* @description Can be used to specify the credentials of your connection. Must be used in combination with an integrationid and a name. Please use the getIntegrations route to see the available credentials for each integration
|
|
6566
|
+
*/
|
|
6567
|
+
credentials?: components['schemas']['app__routers__connections__CredentialItem'][];
|
|
6568
|
+
};
|
|
6536
6569
|
/**
|
|
6537
6570
|
* Status
|
|
6538
6571
|
* @description An enumeration.
|
|
@@ -6555,6 +6588,15 @@ export interface components {
|
|
|
6555
6588
|
*/
|
|
6556
6589
|
optional?: boolean;
|
|
6557
6590
|
};
|
|
6591
|
+
/** PostConnectionItem */
|
|
6592
|
+
app__routers__integrations__PostConnectionItem: {
|
|
6593
|
+
/** Title */
|
|
6594
|
+
title: string;
|
|
6595
|
+
/** Optional */
|
|
6596
|
+
optional: boolean;
|
|
6597
|
+
/** Resource */
|
|
6598
|
+
resource: string;
|
|
6599
|
+
};
|
|
6558
6600
|
/**
|
|
6559
6601
|
* Status
|
|
6560
6602
|
* @description An enumeration.
|
|
@@ -6990,7 +7032,7 @@ export interface operations {
|
|
|
6990
7032
|
};
|
|
6991
7033
|
requestBody?: {
|
|
6992
7034
|
content: {
|
|
6993
|
-
'application/json': components['schemas']['
|
|
7035
|
+
'application/json': components['schemas']['app__routers__connections__PostConnectionItem'];
|
|
6994
7036
|
};
|
|
6995
7037
|
};
|
|
6996
7038
|
responses: {
|
|
@@ -10684,6 +10726,8 @@ export interface operations {
|
|
|
10684
10726
|
include_detailed_refunds?: components['schemas']['BoolParam'];
|
|
10685
10727
|
/** @description Include detailed information about categories */
|
|
10686
10728
|
include_product_categories?: components['schemas']['BoolParam'];
|
|
10729
|
+
/** @description Include detailed information about customer */
|
|
10730
|
+
include_customer_details?: components['schemas']['BoolParam'];
|
|
10687
10731
|
page?: number;
|
|
10688
10732
|
size?: number;
|
|
10689
10733
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chift/chift-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
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/src/modules/consumer.ts
CHANGED
|
@@ -45,7 +45,9 @@ const Consumer = (
|
|
|
45
45
|
return data;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const createConnection = async (
|
|
48
|
+
const createConnection = async (
|
|
49
|
+
body?: components['schemas']['app__routers__connections__PostConnectionItem']
|
|
50
|
+
) => {
|
|
49
51
|
const {
|
|
50
52
|
data,
|
|
51
53
|
}: {
|