@compassdigital/sdk.typescript 4.797.0 → 4.799.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 +32 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +40 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +80 -6
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +8 -2
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +94 -6
- package/src/interface/centricos.ts +145 -9
- package/src/interface/consumer.ts +13 -2
package/lib/index.js
CHANGED
|
@@ -6844,6 +6844,24 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6844
6844
|
delete_centricos_station_integration(station_id, integration_type, options) {
|
|
6845
6845
|
return this.request('centricos', '/centricos/station/{station_id}/{integration_type}', 'DELETE', `/centricos/station/${station_id}/${integration_type}`, null, options);
|
|
6846
6846
|
}
|
|
6847
|
+
/**
|
|
6848
|
+
* PUT /centricos/discount - Add or Update a discount and assign it to multiple sites
|
|
6849
|
+
*
|
|
6850
|
+
* @param body
|
|
6851
|
+
* @param options - additional request options
|
|
6852
|
+
*/
|
|
6853
|
+
put_centricos_discount(body, options) {
|
|
6854
|
+
return this.request('centricos', '/centricos/discount', 'PUT', `/centricos/discount`, body, options);
|
|
6855
|
+
}
|
|
6856
|
+
/**
|
|
6857
|
+
* PUT /centricos/discount/{id}/publish - Update and publish a discount and assign it to multiple sites
|
|
6858
|
+
*
|
|
6859
|
+
* @param id - Discount ID
|
|
6860
|
+
* @param options - additional request options
|
|
6861
|
+
*/
|
|
6862
|
+
put_centricos_discount_publish(id, options) {
|
|
6863
|
+
return this.request('centricos', '/centricos/discount/{id}/publish', 'PUT', `/centricos/discount/${id}/publish`, null, options);
|
|
6864
|
+
}
|
|
6847
6865
|
/**
|
|
6848
6866
|
* PUT /centricos/discount/voucherify - Add or Update a voucherify discount and assign it to multiple sites
|
|
6849
6867
|
*
|
|
@@ -6863,13 +6881,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6863
6881
|
return this.request('centricos', '/centricos/discount/{id}/voucherify/publish', 'PUT', `/centricos/discount/${id}/voucherify/publish`, null, options);
|
|
6864
6882
|
}
|
|
6865
6883
|
/**
|
|
6866
|
-
* DELETE /centricos/discount/{id}
|
|
6884
|
+
* DELETE /centricos/discount/{id} - Delete a discount and all of its entity associations
|
|
6867
6885
|
*
|
|
6868
6886
|
* @param id - Discount ID
|
|
6869
6887
|
* @param options - additional request options
|
|
6870
6888
|
*/
|
|
6871
|
-
|
|
6872
|
-
return this.request('centricos', '/centricos/discount/{id}
|
|
6889
|
+
delete_centricos_discount(id, options) {
|
|
6890
|
+
return this.request('centricos', '/centricos/discount/{id}', 'DELETE', `/centricos/discount/${id}`, null, options);
|
|
6873
6891
|
}
|
|
6874
6892
|
/**
|
|
6875
6893
|
* GET /centricos/discount/{id} - Get discount information by ID
|
|
@@ -6880,6 +6898,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6880
6898
|
get_centricos_discount(id, options) {
|
|
6881
6899
|
return this.request('centricos', '/centricos/discount/{id}', 'GET', `/centricos/discount/${id}`, null, options);
|
|
6882
6900
|
}
|
|
6901
|
+
/**
|
|
6902
|
+
* DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
|
|
6903
|
+
*
|
|
6904
|
+
* @param id - Discount ID
|
|
6905
|
+
* @param options - additional request options
|
|
6906
|
+
*/
|
|
6907
|
+
delete_centricos_discounts_voucherify(id, options) {
|
|
6908
|
+
return this.request('centricos', '/centricos/discount/{id}/voucherify', 'DELETE', `/centricos/discount/${id}/voucherify`, null, options);
|
|
6909
|
+
}
|
|
6883
6910
|
/**
|
|
6884
6911
|
* GET /centricos/discounts - Get discounts with pagination and filtering
|
|
6885
6912
|
*
|
|
@@ -6941,6 +6968,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6941
6968
|
delete_centricos_business_unit(bu_id, options) {
|
|
6942
6969
|
return this.request('centricos', '/centricos/business-unit/{bu_id}', 'DELETE', `/centricos/business-unit/${bu_id}`, null, options);
|
|
6943
6970
|
}
|
|
6971
|
+
/**
|
|
6972
|
+
* PUT /centricos/business-unit/{bu_id}/drop-off - Update shared drop-off settings for a business unit
|
|
6973
|
+
*
|
|
6974
|
+
* @param bu_id - TODO: cannot use CompassLongID as path parameter
|
|
6975
|
+
* @param body
|
|
6976
|
+
* @param options - additional request options
|
|
6977
|
+
*/
|
|
6978
|
+
put_centricos_business_unit_drop_off(bu_id, body, options) {
|
|
6979
|
+
return this.request('centricos', '/centricos/business-unit/{bu_id}/drop-off', 'PUT', `/centricos/business-unit/${bu_id}/drop-off`, body, options);
|
|
6980
|
+
}
|
|
6944
6981
|
/**
|
|
6945
6982
|
* GET /centricos/menu/global-menu-groups - Get a paginated list of global menu groups with filtering, sorting, and relationships
|
|
6946
6983
|
*
|