@compassdigital/sdk.typescript 4.964.0 → 4.965.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 +58 -58
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +69 -69
- package/lib/index.js.map +1 -1
- package/lib/interface/loyalty.d.ts +120 -120
- package/lib/interface/loyalty.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +168 -168
- package/src/interface/loyalty.ts +188 -188
package/lib/index.js
CHANGED
|
@@ -8083,189 +8083,189 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
8083
8083
|
return this.request('loyalty', '/loyalty/vouchers/redeem', 'POST', `/loyalty/vouchers/redeem`, body, options);
|
|
8084
8084
|
}
|
|
8085
8085
|
/**
|
|
8086
|
-
* GET /loyalty/
|
|
8086
|
+
* GET /loyalty/rewards - List rewards with filters and pagination
|
|
8087
8087
|
*
|
|
8088
8088
|
* @param options - additional request options
|
|
8089
8089
|
*/
|
|
8090
|
-
|
|
8091
|
-
return this.request('loyalty', '/loyalty/
|
|
8090
|
+
get_loyalty_rewards(options) {
|
|
8091
|
+
return this.request('loyalty', '/loyalty/rewards', 'GET', `/loyalty/rewards`, null, options);
|
|
8092
8092
|
}
|
|
8093
8093
|
/**
|
|
8094
|
-
* POST /loyalty/
|
|
8094
|
+
* POST /loyalty/rewards - Create a reward with earning rules and milestones
|
|
8095
8095
|
*
|
|
8096
8096
|
* @param body
|
|
8097
8097
|
* @param options - additional request options
|
|
8098
8098
|
*/
|
|
8099
|
-
|
|
8100
|
-
return this.request('loyalty', '/loyalty/
|
|
8099
|
+
post_loyalty_reward(body, options) {
|
|
8100
|
+
return this.request('loyalty', '/loyalty/rewards', 'POST', `/loyalty/rewards`, body, options);
|
|
8101
8101
|
}
|
|
8102
8102
|
/**
|
|
8103
|
-
* GET /loyalty/
|
|
8103
|
+
* GET /loyalty/rewards/{id} - Get reward detail with earning rules and milestones
|
|
8104
8104
|
*
|
|
8105
|
+
* @param id
|
|
8105
8106
|
* @param options - additional request options
|
|
8106
8107
|
*/
|
|
8107
|
-
|
|
8108
|
-
return this.request('loyalty', '/loyalty/
|
|
8108
|
+
get_loyalty_reward(id, options) {
|
|
8109
|
+
return this.request('loyalty', '/loyalty/rewards/{id}', 'GET', `/loyalty/rewards/${id}`, null, options);
|
|
8109
8110
|
}
|
|
8110
8111
|
/**
|
|
8111
|
-
*
|
|
8112
|
+
* PUT /loyalty/rewards/{id} - Update a reward and replace its earning rules and milestones
|
|
8112
8113
|
*
|
|
8114
|
+
* @param id
|
|
8113
8115
|
* @param body
|
|
8114
8116
|
* @param options - additional request options
|
|
8115
8117
|
*/
|
|
8116
|
-
|
|
8117
|
-
return this.request('loyalty', '/loyalty/
|
|
8118
|
+
put_loyalty_reward(id, body, options) {
|
|
8119
|
+
return this.request('loyalty', '/loyalty/rewards/{id}', 'PUT', `/loyalty/rewards/${id}`, body, options);
|
|
8118
8120
|
}
|
|
8119
8121
|
/**
|
|
8120
|
-
*
|
|
8122
|
+
* PATCH /loyalty/rewards/{id}/status - Transition reward status
|
|
8121
8123
|
*
|
|
8122
8124
|
* @param id
|
|
8125
|
+
* @param body
|
|
8123
8126
|
* @param options - additional request options
|
|
8124
8127
|
*/
|
|
8125
|
-
|
|
8126
|
-
return this.request('loyalty', '/loyalty/
|
|
8128
|
+
patch_loyalty_reward_status(id, body, options) {
|
|
8129
|
+
return this.request('loyalty', '/loyalty/rewards/{id}/status', 'PATCH', `/loyalty/rewards/${id}/status`, body, options);
|
|
8127
8130
|
}
|
|
8128
8131
|
/**
|
|
8129
|
-
*
|
|
8132
|
+
* GET /loyalty/rewards/{id}/cards - List enrolled customer cards for a reward
|
|
8130
8133
|
*
|
|
8131
8134
|
* @param id
|
|
8132
|
-
* @param body
|
|
8133
8135
|
* @param options - additional request options
|
|
8134
8136
|
*/
|
|
8135
|
-
|
|
8136
|
-
return this.request('loyalty', '/loyalty/
|
|
8137
|
+
get_loyalty_reward_cards(id, options) {
|
|
8138
|
+
return this.request('loyalty', '/loyalty/rewards/{id}/cards', 'GET', `/loyalty/rewards/${id}/cards`, null, options);
|
|
8137
8139
|
}
|
|
8138
8140
|
/**
|
|
8139
|
-
*
|
|
8141
|
+
* GET /loyalty/rewards/{id}/cards/{customerId} - Get card detail with transaction event history
|
|
8140
8142
|
*
|
|
8141
8143
|
* @param id
|
|
8144
|
+
* @param customerId
|
|
8142
8145
|
* @param options - additional request options
|
|
8143
8146
|
*/
|
|
8144
|
-
|
|
8145
|
-
return this.request('loyalty', '/loyalty/
|
|
8147
|
+
get_loyalty_reward_card(id, customerId, options) {
|
|
8148
|
+
return this.request('loyalty', '/loyalty/rewards/{id}/cards/{customerId}', 'GET', `/loyalty/rewards/${id}/cards/${customerId}`, null, options);
|
|
8146
8149
|
}
|
|
8147
8150
|
/**
|
|
8148
|
-
*
|
|
8151
|
+
* POST /loyalty/rewards/cards/{cardId}/adjust - Manual point adjustment on a reward card
|
|
8149
8152
|
*
|
|
8150
|
-
* @param
|
|
8153
|
+
* @param cardId
|
|
8154
|
+
* @param body
|
|
8151
8155
|
* @param options - additional request options
|
|
8152
8156
|
*/
|
|
8153
|
-
|
|
8154
|
-
return this.request('loyalty', '/loyalty/
|
|
8157
|
+
post_loyalty_reward_card_adjust(cardId, body, options) {
|
|
8158
|
+
return this.request('loyalty', '/loyalty/rewards/cards/{cardId}/adjust', 'POST', `/loyalty/rewards/cards/${cardId}/adjust`, body, options);
|
|
8155
8159
|
}
|
|
8156
8160
|
/**
|
|
8157
|
-
* POST /loyalty/
|
|
8161
|
+
* POST /loyalty/rewards/orders/earn - Evaluate an order against active reward rules and award points idempotently
|
|
8158
8162
|
*
|
|
8159
|
-
* @param id
|
|
8160
8163
|
* @param body
|
|
8161
8164
|
* @param options - additional request options
|
|
8162
8165
|
*/
|
|
8163
|
-
|
|
8164
|
-
return this.request('loyalty', '/loyalty/
|
|
8166
|
+
post_loyalty_reward_order_earn(body, options) {
|
|
8167
|
+
return this.request('loyalty', '/loyalty/rewards/orders/earn', 'POST', `/loyalty/rewards/orders/earn`, body, options);
|
|
8165
8168
|
}
|
|
8166
8169
|
/**
|
|
8167
|
-
*
|
|
8170
|
+
* GET /loyalty/segments - List segments with optional filters
|
|
8168
8171
|
*
|
|
8169
|
-
* @param id
|
|
8170
|
-
* @param body
|
|
8171
8172
|
* @param options - additional request options
|
|
8172
8173
|
*/
|
|
8173
|
-
|
|
8174
|
-
return this.request('loyalty', '/loyalty/segments
|
|
8174
|
+
get_loyalty_segments(options) {
|
|
8175
|
+
return this.request('loyalty', '/loyalty/segments', 'GET', `/loyalty/segments`, null, options);
|
|
8175
8176
|
}
|
|
8176
8177
|
/**
|
|
8177
|
-
* POST /loyalty/
|
|
8178
|
+
* POST /loyalty/segments - Create a new segment
|
|
8178
8179
|
*
|
|
8179
|
-
* @param id
|
|
8180
8180
|
* @param body
|
|
8181
8181
|
* @param options - additional request options
|
|
8182
8182
|
*/
|
|
8183
|
-
|
|
8184
|
-
return this.request('loyalty', '/loyalty/
|
|
8183
|
+
post_loyalty_segment(body, options) {
|
|
8184
|
+
return this.request('loyalty', '/loyalty/segments', 'POST', `/loyalty/segments`, body, options);
|
|
8185
8185
|
}
|
|
8186
8186
|
/**
|
|
8187
|
-
* GET /loyalty/
|
|
8187
|
+
* GET /loyalty/segments/attributes - List available attributes for rule-based segments
|
|
8188
8188
|
*
|
|
8189
8189
|
* @param options - additional request options
|
|
8190
8190
|
*/
|
|
8191
|
-
|
|
8192
|
-
return this.request('loyalty', '/loyalty/
|
|
8191
|
+
get_loyalty_segment_attributes(options) {
|
|
8192
|
+
return this.request('loyalty', '/loyalty/segments/attributes', 'GET', `/loyalty/segments/attributes`, null, options);
|
|
8193
8193
|
}
|
|
8194
8194
|
/**
|
|
8195
|
-
* POST /loyalty/
|
|
8195
|
+
* POST /loyalty/segments/preview-count - Preview how many customers match a segment rule
|
|
8196
8196
|
*
|
|
8197
8197
|
* @param body
|
|
8198
8198
|
* @param options - additional request options
|
|
8199
8199
|
*/
|
|
8200
|
-
|
|
8201
|
-
return this.request('loyalty', '/loyalty/
|
|
8200
|
+
post_loyalty_segment_preview_count(body, options) {
|
|
8201
|
+
return this.request('loyalty', '/loyalty/segments/preview-count', 'POST', `/loyalty/segments/preview-count`, body, options);
|
|
8202
8202
|
}
|
|
8203
8203
|
/**
|
|
8204
|
-
* GET /loyalty/
|
|
8204
|
+
* GET /loyalty/segments/{id} - Get segment by ID
|
|
8205
8205
|
*
|
|
8206
8206
|
* @param id
|
|
8207
8207
|
* @param options - additional request options
|
|
8208
8208
|
*/
|
|
8209
|
-
|
|
8210
|
-
return this.request('loyalty', '/loyalty/
|
|
8209
|
+
get_loyalty_segment(id, options) {
|
|
8210
|
+
return this.request('loyalty', '/loyalty/segments/{id}', 'GET', `/loyalty/segments/${id}`, null, options);
|
|
8211
8211
|
}
|
|
8212
8212
|
/**
|
|
8213
|
-
*
|
|
8213
|
+
* PATCH /loyalty/segments/{id} - Update a segment
|
|
8214
8214
|
*
|
|
8215
8215
|
* @param id
|
|
8216
8216
|
* @param body
|
|
8217
8217
|
* @param options - additional request options
|
|
8218
8218
|
*/
|
|
8219
|
-
|
|
8220
|
-
return this.request('loyalty', '/loyalty/
|
|
8219
|
+
patch_loyalty_segment(id, body, options) {
|
|
8220
|
+
return this.request('loyalty', '/loyalty/segments/{id}', 'PATCH', `/loyalty/segments/${id}`, body, options);
|
|
8221
8221
|
}
|
|
8222
8222
|
/**
|
|
8223
|
-
*
|
|
8223
|
+
* DELETE /loyalty/segments/{id} - Soft-delete a segment
|
|
8224
8224
|
*
|
|
8225
8225
|
* @param id
|
|
8226
|
-
* @param body
|
|
8227
8226
|
* @param options - additional request options
|
|
8228
8227
|
*/
|
|
8229
|
-
|
|
8230
|
-
return this.request('loyalty', '/loyalty/
|
|
8228
|
+
delete_loyalty_segment(id, options) {
|
|
8229
|
+
return this.request('loyalty', '/loyalty/segments/{id}', 'DELETE', `/loyalty/segments/${id}`, null, options);
|
|
8231
8230
|
}
|
|
8232
8231
|
/**
|
|
8233
|
-
* GET /loyalty/
|
|
8232
|
+
* GET /loyalty/segments/{id}/members - List members of a static_list segment
|
|
8234
8233
|
*
|
|
8235
8234
|
* @param id
|
|
8236
8235
|
* @param options - additional request options
|
|
8237
8236
|
*/
|
|
8238
|
-
|
|
8239
|
-
return this.request('loyalty', '/loyalty/
|
|
8237
|
+
get_loyalty_segment_members(id, options) {
|
|
8238
|
+
return this.request('loyalty', '/loyalty/segments/{id}/members', 'GET', `/loyalty/segments/${id}/members`, null, options);
|
|
8240
8239
|
}
|
|
8241
8240
|
/**
|
|
8242
|
-
*
|
|
8241
|
+
* POST /loyalty/segments/{id}/members - Add members to a segment
|
|
8243
8242
|
*
|
|
8244
8243
|
* @param id
|
|
8245
|
-
* @param
|
|
8244
|
+
* @param body
|
|
8246
8245
|
* @param options - additional request options
|
|
8247
8246
|
*/
|
|
8248
|
-
|
|
8249
|
-
return this.request('loyalty', '/loyalty/
|
|
8247
|
+
post_loyalty_segment_members(id, body, options) {
|
|
8248
|
+
return this.request('loyalty', '/loyalty/segments/{id}/members', 'POST', `/loyalty/segments/${id}/members`, body, options);
|
|
8250
8249
|
}
|
|
8251
8250
|
/**
|
|
8252
|
-
*
|
|
8251
|
+
* DELETE /loyalty/segments/{id}/members - Remove members from a segment
|
|
8253
8252
|
*
|
|
8254
|
-
* @param
|
|
8253
|
+
* @param id
|
|
8255
8254
|
* @param body
|
|
8256
8255
|
* @param options - additional request options
|
|
8257
8256
|
*/
|
|
8258
|
-
|
|
8259
|
-
return this.request('loyalty', '/loyalty/
|
|
8257
|
+
delete_loyalty_segment_members(id, body, options) {
|
|
8258
|
+
return this.request('loyalty', '/loyalty/segments/{id}/members', 'DELETE', `/loyalty/segments/${id}/members`, body, options);
|
|
8260
8259
|
}
|
|
8261
8260
|
/**
|
|
8262
|
-
* POST /loyalty/
|
|
8261
|
+
* POST /loyalty/redemptions/{id}/rollback - Roll back a redemption and restore the voucher
|
|
8263
8262
|
*
|
|
8263
|
+
* @param id
|
|
8264
8264
|
* @param body
|
|
8265
8265
|
* @param options - additional request options
|
|
8266
8266
|
*/
|
|
8267
|
-
|
|
8268
|
-
return this.request('loyalty', '/loyalty/
|
|
8267
|
+
post_loyalty_redemption_rollback(id, body, options) {
|
|
8268
|
+
return this.request('loyalty', '/loyalty/redemptions/{id}/rollback', 'POST', `/loyalty/redemptions/${id}/rollback`, body, options);
|
|
8269
8269
|
}
|
|
8270
8270
|
/**
|
|
8271
8271
|
* GET /timeslots/brand/{brandId} - Get timeslots for brand
|