@compassdigital/sdk.typescript 4.794.0 → 4.796.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.js CHANGED
@@ -2257,6 +2257,16 @@ class ServiceClient extends base_1.BaseServiceClient {
2257
2257
  get_user_secret(id, key, options) {
2258
2258
  return this.request('user', '/user/{id}/secret/{key}', 'GET', `/user/${id}/secret/${key}`, null, options);
2259
2259
  }
2260
+ /**
2261
+ * DELETE /user/{id}/secret/{key} - Delete a secret key
2262
+ *
2263
+ * @param id - User ID
2264
+ * @param key
2265
+ * @param options - additional request options
2266
+ */
2267
+ delete_user_secret(id, key, options) {
2268
+ return this.request('user', '/user/{id}/secret/{key}', 'DELETE', `/user/${id}/secret/${key}`, null, options);
2269
+ }
2260
2270
  /**
2261
2271
  * POST /user/forgotpassword - Reset the users password
2262
2272
  *
@@ -6834,24 +6844,6 @@ class ServiceClient extends base_1.BaseServiceClient {
6834
6844
  delete_centricos_station_integration(station_id, integration_type, options) {
6835
6845
  return this.request('centricos', '/centricos/station/{station_id}/{integration_type}', 'DELETE', `/centricos/station/${station_id}/${integration_type}`, null, options);
6836
6846
  }
6837
- /**
6838
- * PUT /centricos/discount - Add or Update a discount and assign it to multiple sites
6839
- *
6840
- * @param body
6841
- * @param options - additional request options
6842
- */
6843
- put_centricos_discount(body, options) {
6844
- return this.request('centricos', '/centricos/discount', 'PUT', `/centricos/discount`, body, options);
6845
- }
6846
- /**
6847
- * PUT /centricos/discount/{id}/publish - Update and publish a discount and assign it to multiple sites
6848
- *
6849
- * @param id - Discount ID
6850
- * @param options - additional request options
6851
- */
6852
- put_centricos_discount_publish(id, options) {
6853
- return this.request('centricos', '/centricos/discount/{id}/publish', 'PUT', `/centricos/discount/${id}/publish`, null, options);
6854
- }
6855
6847
  /**
6856
6848
  * PUT /centricos/discount/voucherify - Add or Update a voucherify discount and assign it to multiple sites
6857
6849
  *
@@ -6871,13 +6863,13 @@ class ServiceClient extends base_1.BaseServiceClient {
6871
6863
  return this.request('centricos', '/centricos/discount/{id}/voucherify/publish', 'PUT', `/centricos/discount/${id}/voucherify/publish`, null, options);
6872
6864
  }
6873
6865
  /**
6874
- * DELETE /centricos/discount/{id} - Delete a discount and all of its entity associations
6866
+ * DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
6875
6867
  *
6876
6868
  * @param id - Discount ID
6877
6869
  * @param options - additional request options
6878
6870
  */
6879
- delete_centricos_discount(id, options) {
6880
- return this.request('centricos', '/centricos/discount/{id}', 'DELETE', `/centricos/discount/${id}`, null, options);
6871
+ delete_centricos_discounts_voucherify(id, options) {
6872
+ return this.request('centricos', '/centricos/discount/{id}/voucherify', 'DELETE', `/centricos/discount/${id}/voucherify`, null, options);
6881
6873
  }
6882
6874
  /**
6883
6875
  * GET /centricos/discount/{id} - Get discount information by ID
@@ -6888,15 +6880,6 @@ class ServiceClient extends base_1.BaseServiceClient {
6888
6880
  get_centricos_discount(id, options) {
6889
6881
  return this.request('centricos', '/centricos/discount/{id}', 'GET', `/centricos/discount/${id}`, null, options);
6890
6882
  }
6891
- /**
6892
- * DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
6893
- *
6894
- * @param id - Discount ID
6895
- * @param options - additional request options
6896
- */
6897
- delete_centricos_discounts_voucherify(id, options) {
6898
- return this.request('centricos', '/centricos/discount/{id}/voucherify', 'DELETE', `/centricos/discount/${id}/voucherify`, null, options);
6899
- }
6900
6883
  /**
6901
6884
  * GET /centricos/discounts - Get discounts with pagination and filtering
6902
6885
  *
@@ -6958,16 +6941,6 @@ class ServiceClient extends base_1.BaseServiceClient {
6958
6941
  delete_centricos_business_unit(bu_id, options) {
6959
6942
  return this.request('centricos', '/centricos/business-unit/{bu_id}', 'DELETE', `/centricos/business-unit/${bu_id}`, null, options);
6960
6943
  }
6961
- /**
6962
- * PUT /centricos/business-unit/{bu_id}/drop-off - Update shared drop-off settings for a business unit
6963
- *
6964
- * @param bu_id - TODO: cannot use CompassLongID as path parameter
6965
- * @param body
6966
- * @param options - additional request options
6967
- */
6968
- put_centricos_business_unit_drop_off(bu_id, body, options) {
6969
- return this.request('centricos', '/centricos/business-unit/{bu_id}/drop-off', 'PUT', `/centricos/business-unit/${bu_id}/drop-off`, body, options);
6970
- }
6971
6944
  /**
6972
6945
  * GET /centricos/menu/global-menu-groups - Get a paginated list of global menu groups with filtering, sorting, and relationships
6973
6946
  *