@compassdigital/sdk.typescript 4.97.0 → 4.99.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 +115 -17
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +132 -22
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +2 -2
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +1 -1
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +430 -62
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +559 -67
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +22 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +321 -46
- package/src/interface/announcement.ts +2 -2
- package/src/interface/centricos.ts +1 -1
- package/src/interface/consumer.ts +567 -70
- package/src/interface/mealplan.ts +0 -3
- package/src/interface/menu.ts +649 -80
- package/src/interface/order.ts +25 -24
package/lib/index.js
CHANGED
|
@@ -2989,6 +2989,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2989
2989
|
post_menu_v3_draft_category_duplicate(id, body, options) {
|
|
2990
2990
|
return this.request('menu', '/menu/v3/draft/category/{id}/duplicate', 'post', `/menu/v3/draft/category/${id}/duplicate`, body, options);
|
|
2991
2991
|
}
|
|
2992
|
+
/**
|
|
2993
|
+
* GET /menu/v3/draft/category/{id}/unattached_items
|
|
2994
|
+
*
|
|
2995
|
+
* @param id
|
|
2996
|
+
* @param options - additional request options
|
|
2997
|
+
*/
|
|
2998
|
+
get_menu_v3_draft_category_unattached_items(id, options) {
|
|
2999
|
+
return this.request('menu', '/menu/v3/draft/category/{id}/unattached_items', 'get', `/menu/v3/draft/category/${id}/unattached_items`, null, options);
|
|
3000
|
+
}
|
|
2992
3001
|
/**
|
|
2993
3002
|
* GET /menu/v3/category/{id}
|
|
2994
3003
|
*
|
|
@@ -3876,6 +3885,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3876
3885
|
get_menu_v4_brand(id, options) {
|
|
3877
3886
|
return this.request('menu', '/menu/v4/brand/{id}', 'get', `/menu/v4/brand/${id}`, null, options);
|
|
3878
3887
|
}
|
|
3888
|
+
/**
|
|
3889
|
+
* DELETE /menu/v4/brand/{id}
|
|
3890
|
+
*
|
|
3891
|
+
* @param id
|
|
3892
|
+
* @param options - additional request options
|
|
3893
|
+
*/
|
|
3894
|
+
delete_menu_v4_brand(id, options) {
|
|
3895
|
+
return this.request('menu', '/menu/v4/brand/{id}', 'delete', `/menu/v4/brand/${id}`, null, options);
|
|
3896
|
+
}
|
|
3879
3897
|
/**
|
|
3880
3898
|
* POST /menu/v4/brand/{id}/menu
|
|
3881
3899
|
*
|
|
@@ -3897,6 +3915,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3897
3915
|
patch_menu_v4_brand_menu(brand_id, menu_id, body, options) {
|
|
3898
3916
|
return this.request('menu', '/menu/v4/brand/{brand_id}/menu/{menu_id}', 'patch', `/menu/v4/brand/${brand_id}/menu/${menu_id}`, body, options);
|
|
3899
3917
|
}
|
|
3918
|
+
/**
|
|
3919
|
+
* DELETE /menu/v4/brand/{brand_id}/menu/{menu_id}
|
|
3920
|
+
*
|
|
3921
|
+
* @param brand_id
|
|
3922
|
+
* @param menu_id
|
|
3923
|
+
* @param options - additional request options
|
|
3924
|
+
*/
|
|
3925
|
+
delete_menu_v4_brand_menu(brand_id, menu_id, options) {
|
|
3926
|
+
return this.request('menu', '/menu/v4/brand/{brand_id}/menu/{menu_id}', 'delete', `/menu/v4/brand/${brand_id}/menu/${menu_id}`, null, options);
|
|
3927
|
+
}
|
|
3900
3928
|
/**
|
|
3901
3929
|
* GET /menu/v4/brand/{id}/items
|
|
3902
3930
|
*
|
|
@@ -3955,6 +3983,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3955
3983
|
patch_menu_v4_brand_category(brand_id, category_id, body, options) {
|
|
3956
3984
|
return this.request('menu', '/menu/v4/brand/{brand_id}/category/{category_id}', 'patch', `/menu/v4/brand/${brand_id}/category/${category_id}`, body, options);
|
|
3957
3985
|
}
|
|
3986
|
+
/**
|
|
3987
|
+
* DELETE /menu/v4/brand/{brand_id}/category/{category_id}
|
|
3988
|
+
*
|
|
3989
|
+
* @param brand_id
|
|
3990
|
+
* @param category_id
|
|
3991
|
+
* @param options - additional request options
|
|
3992
|
+
*/
|
|
3993
|
+
delete_menu_v4_brand_category(brand_id, category_id, options) {
|
|
3994
|
+
return this.request('menu', '/menu/v4/brand/{brand_id}/category/{category_id}', 'delete', `/menu/v4/brand/${brand_id}/category/${category_id}`, null, options);
|
|
3995
|
+
}
|
|
3958
3996
|
/**
|
|
3959
3997
|
* POST /menu/v4/brand/{id}/category/attach-items
|
|
3960
3998
|
*
|
|
@@ -3966,51 +4004,64 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3966
4004
|
return this.request('menu', '/menu/v4/brand/{id}/category/attach-items', 'post', `/menu/v4/brand/${id}/category/attach-items`, body, options);
|
|
3967
4005
|
}
|
|
3968
4006
|
/**
|
|
3969
|
-
* POST menu/v4/brand/{id}/publish
|
|
4007
|
+
* POST /menu/v4/brand/{id}/publish
|
|
3970
4008
|
*
|
|
3971
4009
|
* @param id
|
|
3972
4010
|
* @param options - additional request options
|
|
3973
4011
|
*/
|
|
3974
4012
|
post_menu_v4_brand_publish(id, options) {
|
|
3975
|
-
return this.request('menu', 'menu/v4/brand/{id}/publish', 'post',
|
|
4013
|
+
return this.request('menu', '/menu/v4/brand/{id}/publish', 'post', `/menu/v4/brand/${id}/publish`, null, options);
|
|
3976
4014
|
}
|
|
3977
4015
|
/**
|
|
3978
|
-
* POST menu/v4/brand/{id}/v3-to-v4
|
|
4016
|
+
* POST /menu/v4/brand/{id}/v3-to-v4
|
|
3979
4017
|
*
|
|
3980
4018
|
* @param id
|
|
3981
4019
|
* @param options - additional request options
|
|
3982
4020
|
*/
|
|
3983
4021
|
post_menu_v4_brand_v3_to_v4(id, options) {
|
|
3984
|
-
return this.request('menu', 'menu/v4/brand/{id}/v3-to-v4', 'post',
|
|
4022
|
+
return this.request('menu', '/menu/v4/brand/{id}/v3-to-v4', 'post', `/menu/v4/brand/${id}/v3-to-v4`, null, options);
|
|
3985
4023
|
}
|
|
3986
4024
|
/**
|
|
3987
|
-
*
|
|
4025
|
+
* POST /menu/v4/brand/{brand_id}/category/{category_id}/duplicate
|
|
3988
4026
|
*
|
|
3989
|
-
* @param
|
|
4027
|
+
* @param brand_id
|
|
4028
|
+
* @param category_id
|
|
4029
|
+
* @param body
|
|
3990
4030
|
* @param options - additional request options
|
|
3991
4031
|
*/
|
|
3992
|
-
|
|
3993
|
-
return this.request('menu', 'menu/v4/brand/{
|
|
4032
|
+
post_menu_v4_brand_category_duplicate(brand_id, category_id, body, options) {
|
|
4033
|
+
return this.request('menu', '/menu/v4/brand/{brand_id}/category/{category_id}/duplicate', 'post', `/menu/v4/brand/${brand_id}/category/${category_id}/duplicate`, body, options);
|
|
3994
4034
|
}
|
|
3995
4035
|
/**
|
|
3996
|
-
*
|
|
4036
|
+
* POST /menu/v4/brand/{brand_id}/menu/{menu_id}/duplicate
|
|
3997
4037
|
*
|
|
3998
4038
|
* @param brand_id
|
|
3999
4039
|
* @param menu_id
|
|
4040
|
+
* @param body
|
|
4000
4041
|
* @param options - additional request options
|
|
4001
4042
|
*/
|
|
4002
|
-
|
|
4003
|
-
return this.request('menu', 'menu/v4/brand/{brand_id}/menu/{menu_id}', '
|
|
4043
|
+
post_menu_v4_brand_menu_duplicate(brand_id, menu_id, body, options) {
|
|
4044
|
+
return this.request('menu', '/menu/v4/brand/{brand_id}/menu/{menu_id}/duplicate', 'post', `/menu/v4/brand/${brand_id}/menu/${menu_id}/duplicate`, body, options);
|
|
4004
4045
|
}
|
|
4005
4046
|
/**
|
|
4006
|
-
*
|
|
4047
|
+
* POST /menu/v4/category/{id}/attachment/{name}
|
|
4007
4048
|
*
|
|
4008
|
-
* @param
|
|
4009
|
-
* @param
|
|
4049
|
+
* @param id
|
|
4050
|
+
* @param name
|
|
4010
4051
|
* @param options - additional request options
|
|
4011
4052
|
*/
|
|
4012
|
-
|
|
4013
|
-
return this.request('menu', 'menu/v4/
|
|
4053
|
+
post_menu_v4_category_attachment(id, name, options) {
|
|
4054
|
+
return this.request('menu', '/menu/v4/category/{id}/attachment/{name}', 'post', `/menu/v4/category/${id}/attachment/${name}`, null, options);
|
|
4055
|
+
}
|
|
4056
|
+
/**
|
|
4057
|
+
* POST /menu/v4/item/{id}/attachment/{name}
|
|
4058
|
+
*
|
|
4059
|
+
* @param id
|
|
4060
|
+
* @param name
|
|
4061
|
+
* @param options - additional request options
|
|
4062
|
+
*/
|
|
4063
|
+
post_menu_v4_item_attachment(id, name, options) {
|
|
4064
|
+
return this.request('menu', '/menu/v4/item/{id}/attachment/{name}', 'post', `/menu/v4/item/${id}/attachment/${name}`, null, options);
|
|
4014
4065
|
}
|
|
4015
4066
|
/**
|
|
4016
4067
|
* POST /menu/v4/item
|
|
@@ -4049,6 +4100,25 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
4049
4100
|
delete_menu_v4_item(id, options) {
|
|
4050
4101
|
return this.request('menu', '/menu/v4/item/{id}', 'delete', `/menu/v4/item/${id}`, null, options);
|
|
4051
4102
|
}
|
|
4103
|
+
/**
|
|
4104
|
+
* PATCH /menu/v4/items/bulk-update
|
|
4105
|
+
*
|
|
4106
|
+
* @param body
|
|
4107
|
+
* @param options - additional request options
|
|
4108
|
+
*/
|
|
4109
|
+
patch_menu_v4_items_bulk_update(body, options) {
|
|
4110
|
+
return this.request('menu', '/menu/v4/items/bulk-update', 'patch', `/menu/v4/items/bulk-update`, body, options);
|
|
4111
|
+
}
|
|
4112
|
+
/**
|
|
4113
|
+
* POST /menu/v4/item/{id}/duplicate
|
|
4114
|
+
*
|
|
4115
|
+
* @param id
|
|
4116
|
+
* @param body
|
|
4117
|
+
* @param options - additional request options
|
|
4118
|
+
*/
|
|
4119
|
+
post_menu_v4_item_duplicate(id, body, options) {
|
|
4120
|
+
return this.request('menu', '/menu/v4/item/{id}/duplicate', 'post', `/menu/v4/item/${id}/duplicate`, body, options);
|
|
4121
|
+
}
|
|
4052
4122
|
/**
|
|
4053
4123
|
* POST /menu/v4/modifier
|
|
4054
4124
|
*
|
|
@@ -4086,6 +4156,35 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
4086
4156
|
delete_menu_v4_modifier(id, options) {
|
|
4087
4157
|
return this.request('menu', '/menu/v4/modifier/{id}', 'delete', `/menu/v4/modifier/${id}`, null, options);
|
|
4088
4158
|
}
|
|
4159
|
+
/**
|
|
4160
|
+
* POST /menu/v4/modifier/{id}/duplicate
|
|
4161
|
+
*
|
|
4162
|
+
* @param id
|
|
4163
|
+
* @param body
|
|
4164
|
+
* @param options - additional request options
|
|
4165
|
+
*/
|
|
4166
|
+
post_menu_v4_modifier_duplicate(id, body, options) {
|
|
4167
|
+
return this.request('menu', '/menu/v4/modifier/{id}/duplicate', 'post', `/menu/v4/modifier/${id}/duplicate`, body, options);
|
|
4168
|
+
}
|
|
4169
|
+
/**
|
|
4170
|
+
* PATCH /menu/v4/modifiers/bulk-update
|
|
4171
|
+
*
|
|
4172
|
+
* @param body
|
|
4173
|
+
* @param options - additional request options
|
|
4174
|
+
*/
|
|
4175
|
+
patch_menu_v4_modifiers_bulk_update(body, options) {
|
|
4176
|
+
return this.request('menu', '/menu/v4/modifiers/bulk-update', 'patch', `/menu/v4/modifiers/bulk-update`, body, options);
|
|
4177
|
+
}
|
|
4178
|
+
/**
|
|
4179
|
+
* POST /menu/v4/modifier/{id}/attachment/{name}
|
|
4180
|
+
*
|
|
4181
|
+
* @param id
|
|
4182
|
+
* @param name
|
|
4183
|
+
* @param options - additional request options
|
|
4184
|
+
*/
|
|
4185
|
+
post_menu_v4_modifier_attachment(id, name, options) {
|
|
4186
|
+
return this.request('menu', '/menu/v4/modifier/{id}/attachment/{name}', 'post', `/menu/v4/modifier/${id}/attachment/${name}`, null, options);
|
|
4187
|
+
}
|
|
4089
4188
|
/**
|
|
4090
4189
|
* POST /menu/v4/modifier-group
|
|
4091
4190
|
*
|
|
@@ -4133,6 +4232,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
4133
4232
|
post_menu_v4_modifier_group_attach_modifiers(id, body, options) {
|
|
4134
4233
|
return this.request('menu', '/menu/v4/modifier-group/{id}/attach-modifiers', 'post', `/menu/v4/modifier-group/${id}/attach-modifiers`, body, options);
|
|
4135
4234
|
}
|
|
4235
|
+
/**
|
|
4236
|
+
* POST /menu/v4/modifier-group/{id}/duplicate
|
|
4237
|
+
*
|
|
4238
|
+
* @param id
|
|
4239
|
+
* @param body
|
|
4240
|
+
* @param options - additional request options
|
|
4241
|
+
*/
|
|
4242
|
+
post_menu_v4_modifier_group_duplicate(id, body, options) {
|
|
4243
|
+
return this.request('menu', '/menu/v4/modifier-group/{id}/duplicate', 'post', `/menu/v4/modifier-group/${id}/duplicate`, body, options);
|
|
4244
|
+
}
|
|
4136
4245
|
/**
|
|
4137
4246
|
* GET /notification - Get all notifications
|
|
4138
4247
|
*
|
|
@@ -4461,21 +4570,22 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
4461
4570
|
return this.request('consumer', '/consumer/v1/payment-methods', 'get', `/consumer/v1/payment-methods`, null, options);
|
|
4462
4571
|
}
|
|
4463
4572
|
/**
|
|
4464
|
-
* GET /consumer/customer-orders - Get customer orders
|
|
4573
|
+
* GET /consumer/customer-orders/{userId} - Get customer orders
|
|
4465
4574
|
*
|
|
4575
|
+
* @param userId - TODO: add parameter to swagger.json
|
|
4466
4576
|
* @param options - additional request options
|
|
4467
4577
|
*/
|
|
4468
|
-
get_customer_orders(options) {
|
|
4469
|
-
return this.request('consumer', '/consumer/customer-orders', 'get', `/consumer/customer-orders`, null, options);
|
|
4578
|
+
get_customer_orders(userId, options) {
|
|
4579
|
+
return this.request('consumer', '/consumer/customer-orders/{userId}', 'get', `/consumer/customer-orders/${userId}`, null, options);
|
|
4470
4580
|
}
|
|
4471
4581
|
/**
|
|
4472
|
-
* POST /consumer/review/order
|
|
4582
|
+
* POST /consumer/review/order-items - Submit reviews for order items
|
|
4473
4583
|
*
|
|
4474
4584
|
* @param body
|
|
4475
4585
|
* @param options - additional request options
|
|
4476
4586
|
*/
|
|
4477
|
-
|
|
4478
|
-
return this.request('consumer', '/consumer/review/order
|
|
4587
|
+
post_review_order_items(body, options) {
|
|
4588
|
+
return this.request('consumer', '/consumer/review/order-items', 'post', `/consumer/review/order-items`, body, options);
|
|
4479
4589
|
}
|
|
4480
4590
|
/**
|
|
4481
4591
|
* POST /ai/language/generate - Generate text from a given prompt
|