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