@compassdigital/sdk.typescript 4.945.0 → 4.946.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 +65 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +75 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +228 -6
- package/lib/interface/centricos.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +186 -2
- package/src/interface/centricos.ts +330 -8
package/lib/index.js
CHANGED
|
@@ -7256,6 +7256,81 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
7256
7256
|
get_centricos_loyalty_campaigns(options) {
|
|
7257
7257
|
return this.request('centricos', '/centricos/loyalty/campaigns', 'GET', `/centricos/loyalty/campaigns`, null, options);
|
|
7258
7258
|
}
|
|
7259
|
+
/**
|
|
7260
|
+
* GET /centricos/loyalty/rewards - List loyalty rewards with filters and pagination for CentricOS
|
|
7261
|
+
*
|
|
7262
|
+
* @param options - additional request options
|
|
7263
|
+
*/
|
|
7264
|
+
get_centricos_loyalty_rewards(options) {
|
|
7265
|
+
return this.request('centricos', '/centricos/loyalty/rewards', 'GET', `/centricos/loyalty/rewards`, null, options);
|
|
7266
|
+
}
|
|
7267
|
+
/**
|
|
7268
|
+
* POST /centricos/loyalty/rewards - Create a loyalty reward with earning rule conditions, associations and milestones for CentricOS
|
|
7269
|
+
*
|
|
7270
|
+
* @param body
|
|
7271
|
+
* @param options - additional request options
|
|
7272
|
+
*/
|
|
7273
|
+
post_centricos_loyalty_reward(body, options) {
|
|
7274
|
+
return this.request('centricos', '/centricos/loyalty/rewards', 'POST', `/centricos/loyalty/rewards`, body, options);
|
|
7275
|
+
}
|
|
7276
|
+
/**
|
|
7277
|
+
* GET /centricos/loyalty/rewards/{id} - Get loyalty reward detail with earning rule conditions, associations and milestones for CentricOS
|
|
7278
|
+
*
|
|
7279
|
+
* @param id
|
|
7280
|
+
* @param options - additional request options
|
|
7281
|
+
*/
|
|
7282
|
+
get_centricos_loyalty_reward(id, options) {
|
|
7283
|
+
return this.request('centricos', '/centricos/loyalty/rewards/{id}', 'GET', `/centricos/loyalty/rewards/${id}`, null, options);
|
|
7284
|
+
}
|
|
7285
|
+
/**
|
|
7286
|
+
* PUT /centricos/loyalty/rewards/{id} - Update a loyalty reward and replace its earning rule conditions, associations and milestones for CentricOS
|
|
7287
|
+
*
|
|
7288
|
+
* @param id
|
|
7289
|
+
* @param body
|
|
7290
|
+
* @param options - additional request options
|
|
7291
|
+
*/
|
|
7292
|
+
put_centricos_loyalty_reward(id, body, options) {
|
|
7293
|
+
return this.request('centricos', '/centricos/loyalty/rewards/{id}', 'PUT', `/centricos/loyalty/rewards/${id}`, body, options);
|
|
7294
|
+
}
|
|
7295
|
+
/**
|
|
7296
|
+
* PATCH /centricos/loyalty/rewards/{id}/status - Transition loyalty reward status for CentricOS
|
|
7297
|
+
*
|
|
7298
|
+
* @param id
|
|
7299
|
+
* @param body
|
|
7300
|
+
* @param options - additional request options
|
|
7301
|
+
*/
|
|
7302
|
+
patch_centricos_loyalty_reward_status(id, body, options) {
|
|
7303
|
+
return this.request('centricos', '/centricos/loyalty/rewards/{id}/status', 'PATCH', `/centricos/loyalty/rewards/${id}/status`, body, options);
|
|
7304
|
+
}
|
|
7305
|
+
/**
|
|
7306
|
+
* GET /centricos/loyalty/rewards/{id}/cards - List enrolled customer cards for a loyalty reward for CentricOS
|
|
7307
|
+
*
|
|
7308
|
+
* @param id
|
|
7309
|
+
* @param options - additional request options
|
|
7310
|
+
*/
|
|
7311
|
+
get_centricos_loyalty_reward_cards(id, options) {
|
|
7312
|
+
return this.request('centricos', '/centricos/loyalty/rewards/{id}/cards', 'GET', `/centricos/loyalty/rewards/${id}/cards`, null, options);
|
|
7313
|
+
}
|
|
7314
|
+
/**
|
|
7315
|
+
* GET /centricos/loyalty/rewards/{id}/cards/{customerId} - Get loyalty reward card detail with transaction event history for CentricOS
|
|
7316
|
+
*
|
|
7317
|
+
* @param id
|
|
7318
|
+
* @param customerId
|
|
7319
|
+
* @param options - additional request options
|
|
7320
|
+
*/
|
|
7321
|
+
get_centricos_loyalty_reward_card(id, customerId, options) {
|
|
7322
|
+
return this.request('centricos', '/centricos/loyalty/rewards/{id}/cards/{customerId}', 'GET', `/centricos/loyalty/rewards/${id}/cards/${customerId}`, null, options);
|
|
7323
|
+
}
|
|
7324
|
+
/**
|
|
7325
|
+
* POST /centricos/loyalty/rewards/cards/{cardId}/adjust - Manually adjust points on a loyalty reward card for CentricOS
|
|
7326
|
+
*
|
|
7327
|
+
* @param cardId
|
|
7328
|
+
* @param body
|
|
7329
|
+
* @param options - additional request options
|
|
7330
|
+
*/
|
|
7331
|
+
post_centricos_loyalty_reward_card_adjust(cardId, body, options) {
|
|
7332
|
+
return this.request('centricos', '/centricos/loyalty/rewards/cards/{cardId}/adjust', 'POST', `/centricos/loyalty/rewards/cards/${cardId}/adjust`, body, options);
|
|
7333
|
+
}
|
|
7259
7334
|
/**
|
|
7260
7335
|
* GET /tax/v1/health-check - Health Check
|
|
7261
7336
|
*
|