@compassdigital/sdk.typescript 4.289.0 → 4.291.0
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/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/messages/commands/UpdateOrderStatusCommand.d.ts.map +1 -1
- package/lib/messages/events/DiscountCreatedEvent.d.ts +2 -1
- package/lib/messages/events/DiscountCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountPublishedEvent.d.ts +2 -1
- package/lib/messages/events/DiscountPublishedEvent.d.ts.map +1 -1
- package/lib/messages/events/DiscountUpdatedEvent.d.ts +2 -1
- package/lib/messages/events/DiscountUpdatedEvent.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +339 -45
- package/src/interface/centricos.ts +8 -1
- package/src/interface/menu.ts +1 -0
- package/src/interface/search.ts +8 -1
- package/src/messages/commands/UpdateOrderStatusCommand.ts +7 -1
- package/src/messages/events/DiscountCreatedEvent.ts +3 -1
- package/src/messages/events/DiscountPublishedEvent.ts +3 -1
- package/src/messages/events/DiscountUpdatedEvent.ts +3 -1
package/src/index.ts
CHANGED
|
@@ -1502,7 +1502,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1502
1502
|
body: PostPaymentConsumerBody,
|
|
1503
1503
|
options?: RequestOptions,
|
|
1504
1504
|
): ResponsePromise<PostPaymentConsumerResponse> {
|
|
1505
|
-
return this.request(
|
|
1505
|
+
return this.request(
|
|
1506
|
+
'payment',
|
|
1507
|
+
'/payment/consumer',
|
|
1508
|
+
'POST',
|
|
1509
|
+
`/payment/consumer`,
|
|
1510
|
+
body,
|
|
1511
|
+
options,
|
|
1512
|
+
);
|
|
1506
1513
|
}
|
|
1507
1514
|
|
|
1508
1515
|
/**
|
|
@@ -1580,7 +1587,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1580
1587
|
query: GetPaymentMethodsQuery;
|
|
1581
1588
|
} & RequestOptions,
|
|
1582
1589
|
): ResponsePromise<GetPaymentMethodsResponse> {
|
|
1583
|
-
return this.request(
|
|
1590
|
+
return this.request(
|
|
1591
|
+
'payment',
|
|
1592
|
+
'/payment/methods',
|
|
1593
|
+
'GET',
|
|
1594
|
+
`/payment/methods`,
|
|
1595
|
+
null,
|
|
1596
|
+
options,
|
|
1597
|
+
);
|
|
1584
1598
|
}
|
|
1585
1599
|
|
|
1586
1600
|
/**
|
|
@@ -1784,7 +1798,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1784
1798
|
body: PostOrderIssueBody,
|
|
1785
1799
|
options?: RequestOptions,
|
|
1786
1800
|
): ResponsePromise<PostOrderIssueResponse> {
|
|
1787
|
-
return this.request(
|
|
1801
|
+
return this.request(
|
|
1802
|
+
'order',
|
|
1803
|
+
'/order/{id}/issue',
|
|
1804
|
+
'POST',
|
|
1805
|
+
`/order/${id}/issue`,
|
|
1806
|
+
body,
|
|
1807
|
+
options,
|
|
1808
|
+
);
|
|
1788
1809
|
}
|
|
1789
1810
|
|
|
1790
1811
|
/**
|
|
@@ -2036,7 +2057,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2036
2057
|
query?: GetLocationSearchQuery;
|
|
2037
2058
|
} & RequestOptions,
|
|
2038
2059
|
): ResponsePromise<GetLocationSearchResponse> {
|
|
2039
|
-
return this.request(
|
|
2060
|
+
return this.request(
|
|
2061
|
+
'location',
|
|
2062
|
+
'/location/search',
|
|
2063
|
+
'GET',
|
|
2064
|
+
`/location/search`,
|
|
2065
|
+
null,
|
|
2066
|
+
options,
|
|
2067
|
+
);
|
|
2040
2068
|
}
|
|
2041
2069
|
|
|
2042
2070
|
/**
|
|
@@ -2081,7 +2109,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2081
2109
|
body: DeleteLocationBody,
|
|
2082
2110
|
options?: RequestOptions,
|
|
2083
2111
|
): ResponsePromise<DeleteLocationResponse> {
|
|
2084
|
-
return this.request(
|
|
2112
|
+
return this.request(
|
|
2113
|
+
'location',
|
|
2114
|
+
'/location/{id}',
|
|
2115
|
+
'DELETE',
|
|
2116
|
+
`/location/${id}`,
|
|
2117
|
+
body,
|
|
2118
|
+
options,
|
|
2119
|
+
);
|
|
2085
2120
|
}
|
|
2086
2121
|
|
|
2087
2122
|
/**
|
|
@@ -2096,7 +2131,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2096
2131
|
body: PatchLocationBody,
|
|
2097
2132
|
options?: RequestOptions,
|
|
2098
2133
|
): ResponsePromise<PatchLocationResponse> {
|
|
2099
|
-
return this.request(
|
|
2134
|
+
return this.request(
|
|
2135
|
+
'location',
|
|
2136
|
+
'/location/{id}',
|
|
2137
|
+
'PATCH',
|
|
2138
|
+
`/location/${id}`,
|
|
2139
|
+
body,
|
|
2140
|
+
options,
|
|
2141
|
+
);
|
|
2100
2142
|
}
|
|
2101
2143
|
|
|
2102
2144
|
/**
|
|
@@ -2281,7 +2323,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2281
2323
|
body: PostLocationGroupBody,
|
|
2282
2324
|
options?: RequestOptions,
|
|
2283
2325
|
): ResponsePromise<PostLocationGroupResponse> {
|
|
2284
|
-
return this.request(
|
|
2326
|
+
return this.request(
|
|
2327
|
+
'location',
|
|
2328
|
+
'/location/group',
|
|
2329
|
+
'POST',
|
|
2330
|
+
`/location/group`,
|
|
2331
|
+
body,
|
|
2332
|
+
options,
|
|
2333
|
+
);
|
|
2285
2334
|
}
|
|
2286
2335
|
|
|
2287
2336
|
/**
|
|
@@ -2558,7 +2607,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2558
2607
|
query?: GetLocationBrandsQuery;
|
|
2559
2608
|
} & RequestOptions,
|
|
2560
2609
|
): ResponsePromise<GetLocationBrandsResponse> {
|
|
2561
|
-
return this.request(
|
|
2610
|
+
return this.request(
|
|
2611
|
+
'location',
|
|
2612
|
+
'/location/brands',
|
|
2613
|
+
'GET',
|
|
2614
|
+
`/location/brands`,
|
|
2615
|
+
null,
|
|
2616
|
+
options,
|
|
2617
|
+
);
|
|
2562
2618
|
}
|
|
2563
2619
|
|
|
2564
2620
|
/**
|
|
@@ -2729,7 +2785,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2729
2785
|
body: PostLocationBrandBody,
|
|
2730
2786
|
options?: RequestOptions,
|
|
2731
2787
|
): ResponsePromise<PostLocationBrandResponse> {
|
|
2732
|
-
return this.request(
|
|
2788
|
+
return this.request(
|
|
2789
|
+
'location',
|
|
2790
|
+
'/location/brand',
|
|
2791
|
+
'POST',
|
|
2792
|
+
`/location/brand`,
|
|
2793
|
+
body,
|
|
2794
|
+
options,
|
|
2795
|
+
);
|
|
2733
2796
|
}
|
|
2734
2797
|
|
|
2735
2798
|
/**
|
|
@@ -2870,7 +2933,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2870
2933
|
query?: GetLocationSectorsQuery;
|
|
2871
2934
|
} & RequestOptions,
|
|
2872
2935
|
): ResponsePromise<GetLocationSectorsResponse> {
|
|
2873
|
-
return this.request(
|
|
2936
|
+
return this.request(
|
|
2937
|
+
'location',
|
|
2938
|
+
'/location/sector',
|
|
2939
|
+
'GET',
|
|
2940
|
+
`/location/sector`,
|
|
2941
|
+
null,
|
|
2942
|
+
options,
|
|
2943
|
+
);
|
|
2874
2944
|
}
|
|
2875
2945
|
|
|
2876
2946
|
/**
|
|
@@ -2883,7 +2953,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2883
2953
|
body: PostLocationSectorBody,
|
|
2884
2954
|
options?: RequestOptions,
|
|
2885
2955
|
): ResponsePromise<PostLocationSectorResponse> {
|
|
2886
|
-
return this.request(
|
|
2956
|
+
return this.request(
|
|
2957
|
+
'location',
|
|
2958
|
+
'/location/sector',
|
|
2959
|
+
'POST',
|
|
2960
|
+
`/location/sector`,
|
|
2961
|
+
body,
|
|
2962
|
+
options,
|
|
2963
|
+
);
|
|
2887
2964
|
}
|
|
2888
2965
|
|
|
2889
2966
|
/**
|
|
@@ -3094,7 +3171,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3094
3171
|
query?: PostShoppingcartCartQuery;
|
|
3095
3172
|
} & RequestOptions,
|
|
3096
3173
|
): ResponsePromise<PostShoppingcartCartResponse> {
|
|
3097
|
-
return this.request(
|
|
3174
|
+
return this.request(
|
|
3175
|
+
'shoppingcart',
|
|
3176
|
+
'/shoppingcart',
|
|
3177
|
+
'POST',
|
|
3178
|
+
`/shoppingcart`,
|
|
3179
|
+
body,
|
|
3180
|
+
options,
|
|
3181
|
+
);
|
|
3098
3182
|
}
|
|
3099
3183
|
|
|
3100
3184
|
/**
|
|
@@ -3766,7 +3850,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3766
3850
|
body: DeleteMealplanBody,
|
|
3767
3851
|
options?: RequestOptions,
|
|
3768
3852
|
): ResponsePromise<DeleteMealplanResponse> {
|
|
3769
|
-
return this.request(
|
|
3853
|
+
return this.request(
|
|
3854
|
+
'mealplan',
|
|
3855
|
+
'/mealplan/{id}',
|
|
3856
|
+
'DELETE',
|
|
3857
|
+
`/mealplan/${id}`,
|
|
3858
|
+
body,
|
|
3859
|
+
options,
|
|
3860
|
+
);
|
|
3770
3861
|
}
|
|
3771
3862
|
|
|
3772
3863
|
/**
|
|
@@ -4369,7 +4460,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4369
4460
|
query?: GetConfigAppconfigQuery;
|
|
4370
4461
|
} & RequestOptions,
|
|
4371
4462
|
): ResponsePromise<GetConfigAppconfigResponse> {
|
|
4372
|
-
return this.request(
|
|
4463
|
+
return this.request(
|
|
4464
|
+
'config',
|
|
4465
|
+
'/config/appconfig',
|
|
4466
|
+
'GET',
|
|
4467
|
+
`/config/appconfig`,
|
|
4468
|
+
null,
|
|
4469
|
+
options,
|
|
4470
|
+
);
|
|
4373
4471
|
}
|
|
4374
4472
|
|
|
4375
4473
|
/**
|
|
@@ -4525,7 +4623,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4525
4623
|
query?: PostAnnouncementQuery;
|
|
4526
4624
|
} & RequestOptions,
|
|
4527
4625
|
): ResponsePromise<PostAnnouncementResponse> {
|
|
4528
|
-
return this.request(
|
|
4626
|
+
return this.request(
|
|
4627
|
+
'announcement',
|
|
4628
|
+
'/announcement',
|
|
4629
|
+
'POST',
|
|
4630
|
+
`/announcement`,
|
|
4631
|
+
body,
|
|
4632
|
+
options,
|
|
4633
|
+
);
|
|
4529
4634
|
}
|
|
4530
4635
|
|
|
4531
4636
|
/**
|
|
@@ -5027,7 +5132,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5027
5132
|
body: PostUserKdsTokenBody,
|
|
5028
5133
|
options?: RequestOptions,
|
|
5029
5134
|
): ResponsePromise<PostUserKdsTokenResponse> {
|
|
5030
|
-
return this.request(
|
|
5135
|
+
return this.request(
|
|
5136
|
+
'user',
|
|
5137
|
+
'/user/device/auth',
|
|
5138
|
+
'POST',
|
|
5139
|
+
`/user/device/auth`,
|
|
5140
|
+
body,
|
|
5141
|
+
options,
|
|
5142
|
+
);
|
|
5031
5143
|
}
|
|
5032
5144
|
|
|
5033
5145
|
/**
|
|
@@ -5288,7 +5400,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5288
5400
|
query?: GetUserScopesQuery;
|
|
5289
5401
|
} & RequestOptions,
|
|
5290
5402
|
): ResponsePromise<GetUserScopesResponse> {
|
|
5291
|
-
return this.request(
|
|
5403
|
+
return this.request(
|
|
5404
|
+
'user',
|
|
5405
|
+
'/user/{id}/scopes',
|
|
5406
|
+
'GET',
|
|
5407
|
+
`/user/${id}/scopes`,
|
|
5408
|
+
null,
|
|
5409
|
+
options,
|
|
5410
|
+
);
|
|
5292
5411
|
}
|
|
5293
5412
|
|
|
5294
5413
|
/**
|
|
@@ -5303,7 +5422,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5303
5422
|
body: PostUserCheckInBody,
|
|
5304
5423
|
options?: RequestOptions,
|
|
5305
5424
|
): ResponsePromise<PostUserCheckInResponse> {
|
|
5306
|
-
return this.request(
|
|
5425
|
+
return this.request(
|
|
5426
|
+
'user',
|
|
5427
|
+
'/user/{id}/checkin',
|
|
5428
|
+
'POST',
|
|
5429
|
+
`/user/${id}/checkin`,
|
|
5430
|
+
body,
|
|
5431
|
+
options,
|
|
5432
|
+
);
|
|
5307
5433
|
}
|
|
5308
5434
|
|
|
5309
5435
|
/**
|
|
@@ -5391,7 +5517,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5391
5517
|
body: PostUserGuestTokenBody,
|
|
5392
5518
|
options?: RequestOptions,
|
|
5393
5519
|
): ResponsePromise<PostUserGuestTokenResponse> {
|
|
5394
|
-
return this.request(
|
|
5520
|
+
return this.request(
|
|
5521
|
+
'user',
|
|
5522
|
+
'/user/guest/token',
|
|
5523
|
+
'POST',
|
|
5524
|
+
`/user/guest/token`,
|
|
5525
|
+
body,
|
|
5526
|
+
options,
|
|
5527
|
+
);
|
|
5395
5528
|
}
|
|
5396
5529
|
|
|
5397
5530
|
/**
|
|
@@ -5464,7 +5597,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5464
5597
|
* @param options - additional request options
|
|
5465
5598
|
*/
|
|
5466
5599
|
delete_calendar(id: string, options?: RequestOptions): ResponsePromise<DeleteCalendarResponse> {
|
|
5467
|
-
return this.request(
|
|
5600
|
+
return this.request(
|
|
5601
|
+
'calendar',
|
|
5602
|
+
'/calendar/{id}',
|
|
5603
|
+
'DELETE',
|
|
5604
|
+
`/calendar/${id}`,
|
|
5605
|
+
null,
|
|
5606
|
+
options,
|
|
5607
|
+
);
|
|
5468
5608
|
}
|
|
5469
5609
|
|
|
5470
5610
|
/**
|
|
@@ -5558,7 +5698,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5558
5698
|
* @param body
|
|
5559
5699
|
* @param options - additional request options
|
|
5560
5700
|
*/
|
|
5561
|
-
delete_file(
|
|
5701
|
+
delete_file(
|
|
5702
|
+
body: DeleteFileBody,
|
|
5703
|
+
options?: RequestOptions,
|
|
5704
|
+
): ResponsePromise<DeleteFileResponse> {
|
|
5562
5705
|
return this.request('file', '/file', 'DELETE', `/file`, body, options);
|
|
5563
5706
|
}
|
|
5564
5707
|
|
|
@@ -5581,7 +5724,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5581
5724
|
* @param body
|
|
5582
5725
|
* @param options - additional request options
|
|
5583
5726
|
*/
|
|
5584
|
-
create_menu(
|
|
5727
|
+
create_menu(
|
|
5728
|
+
body: CreateMenuBody,
|
|
5729
|
+
options?: RequestOptions,
|
|
5730
|
+
): ResponsePromise<CreateMenuResponse> {
|
|
5585
5731
|
return this.request('menu', '/menu', 'POST', `/menu`, body, options);
|
|
5586
5732
|
}
|
|
5587
5733
|
|
|
@@ -5685,7 +5831,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5685
5831
|
* @param body
|
|
5686
5832
|
* @param options - additional request options
|
|
5687
5833
|
*/
|
|
5688
|
-
import_menu(
|
|
5834
|
+
import_menu(
|
|
5835
|
+
body: ImportMenuBody,
|
|
5836
|
+
options?: RequestOptions,
|
|
5837
|
+
): ResponsePromise<ImportMenuResponse> {
|
|
5689
5838
|
return this.request('menu', '/menu/import', 'POST', `/menu/import`, body, options);
|
|
5690
5839
|
}
|
|
5691
5840
|
|
|
@@ -5910,7 +6059,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5910
6059
|
query?: GetMenuExportQuery;
|
|
5911
6060
|
} & RequestOptions,
|
|
5912
6061
|
): ResponsePromise<GetMenuExportResponse> {
|
|
5913
|
-
return this.request(
|
|
6062
|
+
return this.request(
|
|
6063
|
+
'menu',
|
|
6064
|
+
'/menu/{id}/export',
|
|
6065
|
+
'GET',
|
|
6066
|
+
`/menu/${id}/export`,
|
|
6067
|
+
null,
|
|
6068
|
+
options,
|
|
6069
|
+
);
|
|
5914
6070
|
}
|
|
5915
6071
|
|
|
5916
6072
|
/**
|
|
@@ -7776,7 +7932,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7776
7932
|
query?: GetMenuV3MenuQuery;
|
|
7777
7933
|
} & RequestOptions,
|
|
7778
7934
|
): ResponsePromise<GetMenuV3MenuResponse> {
|
|
7779
|
-
return this.request(
|
|
7935
|
+
return this.request(
|
|
7936
|
+
'menu',
|
|
7937
|
+
'/menu/v3/menu/{id}',
|
|
7938
|
+
'GET',
|
|
7939
|
+
`/menu/v3/menu/${id}`,
|
|
7940
|
+
null,
|
|
7941
|
+
options,
|
|
7942
|
+
);
|
|
7780
7943
|
}
|
|
7781
7944
|
|
|
7782
7945
|
/**
|
|
@@ -8730,7 +8893,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8730
8893
|
query?: GetMenuV3ItemQuery;
|
|
8731
8894
|
} & RequestOptions,
|
|
8732
8895
|
): ResponsePromise<GetMenuV3ItemResponse> {
|
|
8733
|
-
return this.request(
|
|
8896
|
+
return this.request(
|
|
8897
|
+
'menu',
|
|
8898
|
+
'/menu/v3/item/{id}',
|
|
8899
|
+
'GET',
|
|
8900
|
+
`/menu/v3/item/${id}`,
|
|
8901
|
+
null,
|
|
8902
|
+
options,
|
|
8903
|
+
);
|
|
8734
8904
|
}
|
|
8735
8905
|
|
|
8736
8906
|
/**
|
|
@@ -9844,7 +10014,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9844
10014
|
query?: GetMenuV3ModifiersQuery;
|
|
9845
10015
|
} & RequestOptions,
|
|
9846
10016
|
): ResponsePromise<GetMenuV3ModifiersResponse> {
|
|
9847
|
-
return this.request(
|
|
10017
|
+
return this.request(
|
|
10018
|
+
'menu',
|
|
10019
|
+
'/menu/v3/modifiers',
|
|
10020
|
+
'GET',
|
|
10021
|
+
`/menu/v3/modifiers`,
|
|
10022
|
+
null,
|
|
10023
|
+
options,
|
|
10024
|
+
);
|
|
9848
10025
|
}
|
|
9849
10026
|
|
|
9850
10027
|
/**
|
|
@@ -10001,7 +10178,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10001
10178
|
query?: GetMenuV3MenuworksQuery;
|
|
10002
10179
|
} & RequestOptions,
|
|
10003
10180
|
): ResponsePromise<GetMenuV3MenuworksResponse> {
|
|
10004
|
-
return this.request(
|
|
10181
|
+
return this.request(
|
|
10182
|
+
'menu',
|
|
10183
|
+
'/menu/v3/menuworks',
|
|
10184
|
+
'GET',
|
|
10185
|
+
`/menu/v3/menuworks`,
|
|
10186
|
+
null,
|
|
10187
|
+
options,
|
|
10188
|
+
);
|
|
10005
10189
|
}
|
|
10006
10190
|
|
|
10007
10191
|
/**
|
|
@@ -10656,7 +10840,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10656
10840
|
query?: GetMenuV4ItemQuery;
|
|
10657
10841
|
} & RequestOptions,
|
|
10658
10842
|
): ResponsePromise<GetMenuV4ItemResponse> {
|
|
10659
|
-
return this.request(
|
|
10843
|
+
return this.request(
|
|
10844
|
+
'menu',
|
|
10845
|
+
'/menu/v4/item/{id}',
|
|
10846
|
+
'GET',
|
|
10847
|
+
`/menu/v4/item/${id}`,
|
|
10848
|
+
null,
|
|
10849
|
+
options,
|
|
10850
|
+
);
|
|
10660
10851
|
}
|
|
10661
10852
|
|
|
10662
10853
|
/**
|
|
@@ -10837,7 +11028,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10837
11028
|
body: PostMenuV4ModifierBody,
|
|
10838
11029
|
options?: RequestOptions,
|
|
10839
11030
|
): ResponsePromise<PostMenuV4ModifierResponse> {
|
|
10840
|
-
return this.request(
|
|
11031
|
+
return this.request(
|
|
11032
|
+
'menu',
|
|
11033
|
+
'/menu/v4/modifier',
|
|
11034
|
+
'POST',
|
|
11035
|
+
`/menu/v4/modifier`,
|
|
11036
|
+
body,
|
|
11037
|
+
options,
|
|
11038
|
+
);
|
|
10841
11039
|
}
|
|
10842
11040
|
|
|
10843
11041
|
/**
|
|
@@ -11362,7 +11560,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11362
11560
|
query?: GetMenuV4MenuQuery;
|
|
11363
11561
|
} & RequestOptions,
|
|
11364
11562
|
): ResponsePromise<GetMenuV4MenuResponse> {
|
|
11365
|
-
return this.request(
|
|
11563
|
+
return this.request(
|
|
11564
|
+
'menu',
|
|
11565
|
+
'/menu/v4/menu/{id}',
|
|
11566
|
+
'GET',
|
|
11567
|
+
`/menu/v4/menu/${id}`,
|
|
11568
|
+
null,
|
|
11569
|
+
options,
|
|
11570
|
+
);
|
|
11366
11571
|
}
|
|
11367
11572
|
|
|
11368
11573
|
/**
|
|
@@ -11858,7 +12063,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11858
12063
|
body: PostNotificationBody,
|
|
11859
12064
|
options?: RequestOptions,
|
|
11860
12065
|
): ResponsePromise<PostNotificationResponse> {
|
|
11861
|
-
return this.request(
|
|
12066
|
+
return this.request(
|
|
12067
|
+
'notification',
|
|
12068
|
+
'/notification',
|
|
12069
|
+
'POST',
|
|
12070
|
+
`/notification`,
|
|
12071
|
+
body,
|
|
12072
|
+
options,
|
|
12073
|
+
);
|
|
11862
12074
|
}
|
|
11863
12075
|
|
|
11864
12076
|
/**
|
|
@@ -12202,7 +12414,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12202
12414
|
query?: GetVendorKeysQuery;
|
|
12203
12415
|
} & RequestOptions,
|
|
12204
12416
|
): ResponsePromise<GetVendorKeysResponse> {
|
|
12205
|
-
return this.request(
|
|
12417
|
+
return this.request(
|
|
12418
|
+
'vendor',
|
|
12419
|
+
'/vendor/{id}/key',
|
|
12420
|
+
'GET',
|
|
12421
|
+
`/vendor/${id}/key`,
|
|
12422
|
+
null,
|
|
12423
|
+
options,
|
|
12424
|
+
);
|
|
12206
12425
|
}
|
|
12207
12426
|
|
|
12208
12427
|
/**
|
|
@@ -12217,7 +12436,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12217
12436
|
body: PostVendorKeyBody,
|
|
12218
12437
|
options?: RequestOptions,
|
|
12219
12438
|
): ResponsePromise<PostVendorKeyResponse> {
|
|
12220
|
-
return this.request(
|
|
12439
|
+
return this.request(
|
|
12440
|
+
'vendor',
|
|
12441
|
+
'/vendor/{id}/key',
|
|
12442
|
+
'POST',
|
|
12443
|
+
`/vendor/${id}/key`,
|
|
12444
|
+
body,
|
|
12445
|
+
options,
|
|
12446
|
+
);
|
|
12221
12447
|
}
|
|
12222
12448
|
|
|
12223
12449
|
/**
|
|
@@ -12618,7 +12844,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12618
12844
|
body: PostConsumerOrderBody,
|
|
12619
12845
|
options?: RequestOptions,
|
|
12620
12846
|
): ResponsePromise<PostConsumerOrderResponse> {
|
|
12621
|
-
return this.request(
|
|
12847
|
+
return this.request(
|
|
12848
|
+
'consumer',
|
|
12849
|
+
'/consumer/order',
|
|
12850
|
+
'POST',
|
|
12851
|
+
`/consumer/order`,
|
|
12852
|
+
body,
|
|
12853
|
+
options,
|
|
12854
|
+
);
|
|
12622
12855
|
}
|
|
12623
12856
|
|
|
12624
12857
|
/**
|
|
@@ -12755,7 +12988,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12755
12988
|
post_consumer_add_secret(
|
|
12756
12989
|
options?: RequestOptions,
|
|
12757
12990
|
): ResponsePromise<PostConsumerAddSecretResponse> {
|
|
12758
|
-
return this.request(
|
|
12991
|
+
return this.request(
|
|
12992
|
+
'consumer',
|
|
12993
|
+
'/consumer/secret',
|
|
12994
|
+
'POST',
|
|
12995
|
+
`/consumer/secret`,
|
|
12996
|
+
null,
|
|
12997
|
+
options,
|
|
12998
|
+
);
|
|
12759
12999
|
}
|
|
12760
13000
|
|
|
12761
13001
|
/**
|
|
@@ -12979,7 +13219,9 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12979
13219
|
*
|
|
12980
13220
|
* @param options - additional request options
|
|
12981
13221
|
*/
|
|
12982
|
-
delete_consumer_logout(
|
|
13222
|
+
delete_consumer_logout(
|
|
13223
|
+
options?: RequestOptions,
|
|
13224
|
+
): ResponsePromise<DeleteConsumerLogoutResponse> {
|
|
12983
13225
|
return this.request(
|
|
12984
13226
|
'consumer',
|
|
12985
13227
|
'/consumer/user/logout',
|
|
@@ -13454,7 +13696,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13454
13696
|
body: PostAiImageGenerateBody,
|
|
13455
13697
|
options?: RequestOptions,
|
|
13456
13698
|
): ResponsePromise<PostAiImageGenerateResponse> {
|
|
13457
|
-
return this.request(
|
|
13699
|
+
return this.request(
|
|
13700
|
+
'ai',
|
|
13701
|
+
'/ai/image/generate',
|
|
13702
|
+
'POST',
|
|
13703
|
+
`/ai/image/generate`,
|
|
13704
|
+
body,
|
|
13705
|
+
options,
|
|
13706
|
+
);
|
|
13458
13707
|
}
|
|
13459
13708
|
|
|
13460
13709
|
/**
|
|
@@ -13668,7 +13917,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13668
13917
|
query: GetCentricosSitesQuery;
|
|
13669
13918
|
} & RequestOptions,
|
|
13670
13919
|
): ResponsePromise<GetCentricosSitesResponse> {
|
|
13671
|
-
return this.request(
|
|
13920
|
+
return this.request(
|
|
13921
|
+
'centricos',
|
|
13922
|
+
'/centricos/sites',
|
|
13923
|
+
'GET',
|
|
13924
|
+
`/centricos/sites`,
|
|
13925
|
+
null,
|
|
13926
|
+
options,
|
|
13927
|
+
);
|
|
13672
13928
|
}
|
|
13673
13929
|
|
|
13674
13930
|
/**
|
|
@@ -14005,7 +14261,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14005
14261
|
query?: GetSearchDiscountsQuery;
|
|
14006
14262
|
} & RequestOptions,
|
|
14007
14263
|
): ResponsePromise<GetSearchDiscountsResponse> {
|
|
14008
|
-
return this.request(
|
|
14264
|
+
return this.request(
|
|
14265
|
+
'search',
|
|
14266
|
+
'/search/discounts',
|
|
14267
|
+
'GET',
|
|
14268
|
+
`/search/discounts`,
|
|
14269
|
+
null,
|
|
14270
|
+
options,
|
|
14271
|
+
);
|
|
14009
14272
|
}
|
|
14010
14273
|
|
|
14011
14274
|
/**
|
|
@@ -14128,7 +14391,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14128
14391
|
body: PostAuthSsoExchangeBody,
|
|
14129
14392
|
options?: RequestOptions,
|
|
14130
14393
|
): ResponsePromise<PostAuthSsoExchangeResponse> {
|
|
14131
|
-
return this.request(
|
|
14394
|
+
return this.request(
|
|
14395
|
+
'auth',
|
|
14396
|
+
'/auth/sso/exchange',
|
|
14397
|
+
'POST',
|
|
14398
|
+
`/auth/sso/exchange`,
|
|
14399
|
+
body,
|
|
14400
|
+
options,
|
|
14401
|
+
);
|
|
14132
14402
|
}
|
|
14133
14403
|
|
|
14134
14404
|
/**
|
|
@@ -14141,7 +14411,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14141
14411
|
query: GetAuthSsoExchangeQuery;
|
|
14142
14412
|
} & RequestOptions,
|
|
14143
14413
|
): ResponsePromise<GetAuthSsoExchangeResponse> {
|
|
14144
|
-
return this.request(
|
|
14414
|
+
return this.request(
|
|
14415
|
+
'auth',
|
|
14416
|
+
'/auth/sso/exchange',
|
|
14417
|
+
'GET',
|
|
14418
|
+
`/auth/sso/exchange`,
|
|
14419
|
+
null,
|
|
14420
|
+
options,
|
|
14421
|
+
);
|
|
14145
14422
|
}
|
|
14146
14423
|
|
|
14147
14424
|
/**
|
|
@@ -14203,7 +14480,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14203
14480
|
* @param body
|
|
14204
14481
|
* @param options - additional request options
|
|
14205
14482
|
*/
|
|
14206
|
-
post_review(
|
|
14483
|
+
post_review(
|
|
14484
|
+
body: PostReviewBody,
|
|
14485
|
+
options?: RequestOptions,
|
|
14486
|
+
): ResponsePromise<PostReviewResponse> {
|
|
14207
14487
|
return this.request('review', '/review', 'POST', `/review`, body, options);
|
|
14208
14488
|
}
|
|
14209
14489
|
|
|
@@ -14259,7 +14539,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14259
14539
|
* @param options - additional request options
|
|
14260
14540
|
*/
|
|
14261
14541
|
delete_discount(id: string, options?: RequestOptions): ResponsePromise<DeleteDiscountResponse> {
|
|
14262
|
-
return this.request(
|
|
14542
|
+
return this.request(
|
|
14543
|
+
'discount',
|
|
14544
|
+
'/discount/{id}',
|
|
14545
|
+
'DELETE',
|
|
14546
|
+
`/discount/${id}`,
|
|
14547
|
+
null,
|
|
14548
|
+
options,
|
|
14549
|
+
);
|
|
14263
14550
|
}
|
|
14264
14551
|
|
|
14265
14552
|
/**
|
|
@@ -14274,7 +14561,14 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14274
14561
|
body: PatchDiscountBody,
|
|
14275
14562
|
options?: RequestOptions,
|
|
14276
14563
|
): ResponsePromise<PatchDiscountResponse> {
|
|
14277
|
-
return this.request(
|
|
14564
|
+
return this.request(
|
|
14565
|
+
'discount',
|
|
14566
|
+
'/discount/{id}',
|
|
14567
|
+
'PATCH',
|
|
14568
|
+
`/discount/${id}`,
|
|
14569
|
+
body,
|
|
14570
|
+
options,
|
|
14571
|
+
);
|
|
14278
14572
|
}
|
|
14279
14573
|
|
|
14280
14574
|
/**
|
|
@@ -544,7 +544,14 @@ export interface PostCentricosOrdersExportQuery {
|
|
|
544
544
|
// Search order by order_type
|
|
545
545
|
order_type?: ('frictionless' | 'delivery' | 'pickup' | 'scan_and_go')[];
|
|
546
546
|
// Search order by status
|
|
547
|
-
status?: (
|
|
547
|
+
status?: (
|
|
548
|
+
| 'ready'
|
|
549
|
+
| 'accepted'
|
|
550
|
+
| 'delivered'
|
|
551
|
+
| 'in_progress'
|
|
552
|
+
| 'out_for_delivery'
|
|
553
|
+
| 'created'
|
|
554
|
+
)[];
|
|
548
555
|
// Return items sorted by this column
|
|
549
556
|
sortBy?:
|
|
550
557
|
| 'date_created'
|