@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.14
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/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +12 -6
- package/core.js.map +1 -1
- package/core.mjs +12 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -9
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +29 -8
- package/resources/assets/assets.d.ts +153 -0
- package/resources/assets/assets.d.ts.map +1 -0
- package/resources/assets/assets.js +69 -0
- package/resources/assets/assets.js.map +1 -0
- package/resources/assets/assets.mjs +42 -0
- package/resources/assets/assets.mjs.map +1 -0
- package/resources/assets/index.d.ts +7 -0
- package/resources/assets/index.d.ts.map +1 -0
- package/resources/assets/index.js +17 -0
- package/resources/assets/index.js.map +1 -0
- package/resources/assets/index.mjs +8 -0
- package/resources/assets/index.mjs.map +1 -0
- package/resources/assets/minting.d.ts +95 -0
- package/resources/assets/minting.d.ts.map +1 -0
- package/resources/assets/minting.js +15 -0
- package/resources/assets/minting.js.map +1 -0
- package/resources/assets/minting.mjs +11 -0
- package/resources/assets/minting.mjs.map +1 -0
- package/resources/assets/referral/index.d.ts +3 -0
- package/resources/assets/referral/index.d.ts.map +1 -0
- package/resources/assets/referral/index.js +9 -0
- package/resources/assets/referral/index.js.map +1 -0
- package/resources/assets/referral/index.mjs +4 -0
- package/resources/assets/referral/index.mjs.map +1 -0
- package/resources/assets/referral/referral.d.ts +30 -0
- package/resources/assets/referral/referral.d.ts.map +1 -0
- package/resources/assets/referral/referral.js +46 -0
- package/resources/assets/referral/referral.js.map +1 -0
- package/resources/assets/referral/referral.mjs +19 -0
- package/resources/assets/referral/referral.mjs.map +1 -0
- package/resources/assets/referral/users.d.ts +57 -0
- package/resources/assets/referral/users.d.ts.map +1 -0
- package/resources/assets/referral/users.js +21 -0
- package/resources/assets/referral/users.js.map +1 -0
- package/resources/assets/referral/users.mjs +17 -0
- package/resources/assets/referral/users.mjs.map +1 -0
- package/resources/assets/users.d.ts +285 -0
- package/resources/assets/users.d.ts.map +1 -0
- package/resources/assets/users.js +34 -0
- package/resources/assets/users.js.map +1 -0
- package/resources/assets/users.mjs +30 -0
- package/resources/assets/users.mjs.map +1 -0
- package/resources/assets/website-collections.d.ts +73 -0
- package/resources/assets/website-collections.d.ts.map +1 -0
- package/resources/assets/website-collections.js +25 -0
- package/resources/assets/website-collections.js.map +1 -0
- package/resources/assets/website-collections.mjs +21 -0
- package/resources/assets/website-collections.mjs.map +1 -0
- package/resources/assets/website-user-roles.d.ts +73 -0
- package/resources/assets/website-user-roles.d.ts.map +1 -0
- package/resources/assets/website-user-roles.js +22 -0
- package/resources/assets/website-user-roles.js.map +1 -0
- package/resources/assets/website-user-roles.mjs +18 -0
- package/resources/assets/website-user-roles.mjs.map +1 -0
- package/resources/auction-bids.d.ts +2 -32
- package/resources/auction-bids.d.ts.map +1 -1
- package/resources/auction-bids.js +0 -10
- package/resources/auction-bids.js.map +1 -1
- package/resources/auction-bids.mjs +0 -10
- package/resources/auction-bids.mjs.map +1 -1
- package/resources/drip/drip.d.ts +4 -4
- package/resources/drip/drip.d.ts.map +1 -1
- package/resources/drip/drip.js.map +1 -1
- package/resources/drip/drip.mjs.map +1 -1
- package/resources/drip/index.d.ts +2 -2
- package/resources/drip/index.d.ts.map +1 -1
- package/resources/drip/index.js.map +1 -1
- package/resources/drip/index.mjs.map +1 -1
- package/resources/drip/quests.d.ts +0 -164
- package/resources/drip/quests.d.ts.map +1 -1
- package/resources/drip/quests.js +0 -8
- package/resources/drip/quests.js.map +1 -1
- package/resources/drip/quests.mjs +0 -8
- package/resources/drip/quests.mjs.map +1 -1
- package/resources/drip/status.d.ts +0 -22
- package/resources/drip/status.d.ts.map +1 -1
- package/resources/drip/status.js +0 -7
- package/resources/drip/status.js.map +1 -1
- package/resources/drip/status.mjs +0 -7
- package/resources/drip/status.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +0 -153
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +0 -7
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +0 -7
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +639 -72
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +1 -7
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +2 -2
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +7 -7
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +2 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +2 -2
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +29 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +3 -3
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +3 -3
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +1 -1
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +132 -71
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +191 -0
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.js +24 -0
- package/resources/loyalty/transaction-entries/accounts.js.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.mjs +20 -0
- package/resources/loyalty/transaction-entries/accounts.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/index.d.ts +5 -0
- package/resources/loyalty/transaction-entries/index.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/index.js +13 -0
- package/resources/loyalty/transaction-entries/index.js.map +1 -0
- package/resources/loyalty/transaction-entries/index.mjs +6 -0
- package/resources/loyalty/transaction-entries/index.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts +97 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.js +22 -0
- package/resources/loyalty/transaction-entries/questions-responses.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs +18 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions.d.ts +150 -0
- package/resources/loyalty/transaction-entries/questions.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions.js +27 -0
- package/resources/loyalty/transaction-entries/questions.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions.mjs +23 -0
- package/resources/loyalty/transaction-entries/questions.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +300 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js +66 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +39 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +79 -11
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +2 -2
- package/resources/users/users.mjs.map +1 -1
- package/resources/users/wallets.d.ts +0 -189
- package/resources/users/wallets.d.ts.map +1 -1
- package/resources/users/wallets.js +0 -19
- package/resources/users/wallets.js.map +1 -1
- package/resources/users/wallets.mjs +0 -19
- package/resources/users/wallets.mjs.map +1 -1
- package/src/core.ts +14 -6
- package/src/index.ts +14 -12
- package/src/resources/assets/assets.ts +294 -0
- package/src/resources/assets/index.ts +38 -0
- package/src/resources/assets/minting.ts +153 -0
- package/src/resources/assets/referral/index.ts +14 -0
- package/src/resources/assets/referral/referral.ts +74 -0
- package/src/resources/assets/referral/users.ts +99 -0
- package/src/resources/assets/users.ts +415 -0
- package/src/resources/assets/website-collections.ts +147 -0
- package/src/resources/assets/website-user-roles.ts +107 -0
- package/src/resources/auction-bids.ts +2 -48
- package/src/resources/drip/drip.ts +4 -8
- package/src/resources/drip/index.ts +2 -2
- package/src/resources/drip/quests.ts +1 -206
- package/src/resources/drip/status.ts +1 -29
- package/src/resources/index.ts +7 -2
- package/src/resources/loyalty/accounts.ts +1 -195
- package/src/resources/loyalty/badges.ts +779 -77
- package/src/resources/loyalty/currencies.ts +1 -7
- package/src/resources/loyalty/index.ts +7 -2
- package/src/resources/loyalty/loyalty.ts +14 -8
- package/src/resources/loyalty/multipliers.ts +49 -4
- package/src/resources/loyalty/rule-edits.ts +2 -2
- package/src/resources/loyalty/rules.ts +247 -159
- package/src/resources/loyalty/transaction-entries/accounts.ts +251 -0
- package/src/resources/loyalty/transaction-entries/index.ts +34 -0
- package/src/resources/loyalty/transaction-entries/questions-responses.ts +146 -0
- package/src/resources/loyalty/transaction-entries/questions.ts +208 -0
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +525 -0
- package/src/resources/users/index.ts +8 -9
- package/src/resources/users/metadatas.ts +109 -10
- package/src/resources/users/users.ts +11 -17
- package/src/resources/users/wallets.ts +1 -267
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/loyalty/transaction-entries.ts +0 -229
|
@@ -99,118 +99,808 @@ export class Badges extends APIResource {
|
|
|
99
99
|
* Response returned upon successful creation of the badge.
|
|
100
100
|
*/
|
|
101
101
|
export interface BadgeCreateResponse {
|
|
102
|
+
/**
|
|
103
|
+
* UUID of the badge (converted to lowercase)
|
|
104
|
+
*/
|
|
102
105
|
id: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The description of the badge
|
|
109
|
+
*/
|
|
110
|
+
description: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The URL of the badge image
|
|
114
|
+
*/
|
|
115
|
+
imageUrl: string | null;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Array of conditions of the badge
|
|
119
|
+
*/
|
|
120
|
+
loyaltyConditions: Array<BadgeCreateResponse.LoyaltyCondition>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The name of the badge
|
|
124
|
+
*/
|
|
125
|
+
name: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Array of user badges
|
|
129
|
+
*/
|
|
130
|
+
LoyaltyBadgeUser?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export namespace BadgeCreateResponse {
|
|
134
|
+
/**
|
|
135
|
+
* Schema for a loyalty condition rule.
|
|
136
|
+
*/
|
|
137
|
+
export interface LoyaltyCondition {
|
|
138
|
+
/**
|
|
139
|
+
* UUID of the condition (converted to lowercase)
|
|
140
|
+
*/
|
|
141
|
+
id: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The amount of the condition
|
|
145
|
+
*/
|
|
146
|
+
amount: number | null;
|
|
147
|
+
|
|
148
|
+
association: Array<LoyaltyCondition.Association>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The URL of the CSV file
|
|
152
|
+
*/
|
|
153
|
+
csvUrl: string | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The description of the condition
|
|
157
|
+
*/
|
|
158
|
+
description: string | null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* UUID of the currency (converted to lowercase)
|
|
162
|
+
*/
|
|
163
|
+
loyaltyCurrencyId: string | null;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* UUID of the rule group (converted to lowercase)
|
|
167
|
+
*/
|
|
168
|
+
loyaltyRuleGroupId: string | null;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The repeat count of the condition
|
|
172
|
+
*/
|
|
173
|
+
repeatCount: number | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The required count of the condition
|
|
177
|
+
*/
|
|
178
|
+
requiredCount: number | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The type of the condition
|
|
182
|
+
*/
|
|
183
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export namespace LoyaltyCondition {
|
|
187
|
+
export interface Association {
|
|
188
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
189
|
+
|
|
190
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
191
|
+
|
|
192
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
193
|
+
|
|
194
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
195
|
+
|
|
196
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace Association {
|
|
200
|
+
export interface LoyaltyBadge {
|
|
201
|
+
/**
|
|
202
|
+
* UUID of the association (converted to lowercase)
|
|
203
|
+
*/
|
|
204
|
+
id: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The name of the association
|
|
208
|
+
*/
|
|
209
|
+
name: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface LoyaltyCurrency {
|
|
213
|
+
/**
|
|
214
|
+
* UUID of the association (converted to lowercase)
|
|
215
|
+
*/
|
|
216
|
+
id: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The name of the association
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface LoyaltyLeaderboardView {
|
|
225
|
+
/**
|
|
226
|
+
* UUID of the association (converted to lowercase)
|
|
227
|
+
*/
|
|
228
|
+
id: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The name of the association
|
|
232
|
+
*/
|
|
233
|
+
name: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface LoyaltyRule {
|
|
237
|
+
/**
|
|
238
|
+
* UUID of the association (converted to lowercase)
|
|
239
|
+
*/
|
|
240
|
+
id: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The name of the association
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface LoyaltyRuleGroup {
|
|
249
|
+
/**
|
|
250
|
+
* UUID of the association (converted to lowercase)
|
|
251
|
+
*/
|
|
252
|
+
id: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The name of the association
|
|
256
|
+
*/
|
|
257
|
+
name: string;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface LoyaltyBadgeUser {
|
|
263
|
+
/**
|
|
264
|
+
* UUID of the user badge (converted to lowercase)
|
|
265
|
+
*/
|
|
266
|
+
id: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* UUID of the badge (converted to lowercase)
|
|
270
|
+
*/
|
|
271
|
+
loyaltyBadgeId: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* UUID of the organization (converted to lowercase)
|
|
275
|
+
*/
|
|
276
|
+
organizationId: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The status of the badge
|
|
280
|
+
*/
|
|
281
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* UUID of the user (converted to lowercase)
|
|
285
|
+
*/
|
|
286
|
+
userId: string;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* UUID of the website (converted to lowercase)
|
|
290
|
+
*/
|
|
291
|
+
websiteId: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Array of progress for the badge
|
|
295
|
+
*/
|
|
296
|
+
progress?: unknown;
|
|
297
|
+
}
|
|
103
298
|
}
|
|
104
299
|
|
|
105
300
|
/**
|
|
106
301
|
* Response returned upon successful update of the badge.
|
|
107
302
|
*/
|
|
108
303
|
export interface BadgeUpdateResponse {
|
|
304
|
+
/**
|
|
305
|
+
* UUID of the badge (converted to lowercase)
|
|
306
|
+
*/
|
|
109
307
|
id: string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* The description of the badge
|
|
311
|
+
*/
|
|
312
|
+
description: string | null;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* The URL of the badge image
|
|
316
|
+
*/
|
|
317
|
+
imageUrl: string | null;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Array of conditions of the badge
|
|
321
|
+
*/
|
|
322
|
+
loyaltyConditions: Array<BadgeUpdateResponse.LoyaltyCondition>;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* The name of the badge
|
|
326
|
+
*/
|
|
327
|
+
name: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Array of user badges
|
|
331
|
+
*/
|
|
332
|
+
LoyaltyBadgeUser?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export namespace BadgeUpdateResponse {
|
|
336
|
+
/**
|
|
337
|
+
* Schema for a loyalty condition rule.
|
|
338
|
+
*/
|
|
339
|
+
export interface LoyaltyCondition {
|
|
340
|
+
/**
|
|
341
|
+
* UUID of the condition (converted to lowercase)
|
|
342
|
+
*/
|
|
343
|
+
id: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* The amount of the condition
|
|
347
|
+
*/
|
|
348
|
+
amount: number | null;
|
|
349
|
+
|
|
350
|
+
association: Array<LoyaltyCondition.Association>;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* The URL of the CSV file
|
|
354
|
+
*/
|
|
355
|
+
csvUrl: string | null;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The description of the condition
|
|
359
|
+
*/
|
|
360
|
+
description: string | null;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* UUID of the currency (converted to lowercase)
|
|
364
|
+
*/
|
|
365
|
+
loyaltyCurrencyId: string | null;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* UUID of the rule group (converted to lowercase)
|
|
369
|
+
*/
|
|
370
|
+
loyaltyRuleGroupId: string | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The repeat count of the condition
|
|
374
|
+
*/
|
|
375
|
+
repeatCount: number | null;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The required count of the condition
|
|
379
|
+
*/
|
|
380
|
+
requiredCount: number | null;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* The type of the condition
|
|
384
|
+
*/
|
|
385
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export namespace LoyaltyCondition {
|
|
389
|
+
export interface Association {
|
|
390
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
391
|
+
|
|
392
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
393
|
+
|
|
394
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
395
|
+
|
|
396
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
397
|
+
|
|
398
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export namespace Association {
|
|
402
|
+
export interface LoyaltyBadge {
|
|
403
|
+
/**
|
|
404
|
+
* UUID of the association (converted to lowercase)
|
|
405
|
+
*/
|
|
406
|
+
id: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* The name of the association
|
|
410
|
+
*/
|
|
411
|
+
name: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface LoyaltyCurrency {
|
|
415
|
+
/**
|
|
416
|
+
* UUID of the association (converted to lowercase)
|
|
417
|
+
*/
|
|
418
|
+
id: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* The name of the association
|
|
422
|
+
*/
|
|
423
|
+
name: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface LoyaltyLeaderboardView {
|
|
427
|
+
/**
|
|
428
|
+
* UUID of the association (converted to lowercase)
|
|
429
|
+
*/
|
|
430
|
+
id: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The name of the association
|
|
434
|
+
*/
|
|
435
|
+
name: string;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface LoyaltyRule {
|
|
439
|
+
/**
|
|
440
|
+
* UUID of the association (converted to lowercase)
|
|
441
|
+
*/
|
|
442
|
+
id: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* The name of the association
|
|
446
|
+
*/
|
|
447
|
+
name: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface LoyaltyRuleGroup {
|
|
451
|
+
/**
|
|
452
|
+
* UUID of the association (converted to lowercase)
|
|
453
|
+
*/
|
|
454
|
+
id: string;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* The name of the association
|
|
458
|
+
*/
|
|
459
|
+
name: string;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface LoyaltyBadgeUser {
|
|
465
|
+
/**
|
|
466
|
+
* UUID of the user badge (converted to lowercase)
|
|
467
|
+
*/
|
|
468
|
+
id: string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* UUID of the badge (converted to lowercase)
|
|
472
|
+
*/
|
|
473
|
+
loyaltyBadgeId: string;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* UUID of the organization (converted to lowercase)
|
|
477
|
+
*/
|
|
478
|
+
organizationId: string;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* The status of the badge
|
|
482
|
+
*/
|
|
483
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* UUID of the user (converted to lowercase)
|
|
487
|
+
*/
|
|
488
|
+
userId: string;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* UUID of the website (converted to lowercase)
|
|
492
|
+
*/
|
|
493
|
+
websiteId: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Array of progress for the badge
|
|
497
|
+
*/
|
|
498
|
+
progress?: unknown;
|
|
499
|
+
}
|
|
110
500
|
}
|
|
111
501
|
|
|
112
502
|
/**
|
|
113
503
|
* Response returned upon successful fetching of the badges.
|
|
114
504
|
*/
|
|
115
505
|
export interface BadgeListResponse {
|
|
116
|
-
|
|
506
|
+
/**
|
|
507
|
+
* UUID of the badge (converted to lowercase)
|
|
508
|
+
*/
|
|
509
|
+
id: string;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* The description of the badge
|
|
513
|
+
*/
|
|
514
|
+
description: string | null;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* The URL of the badge image
|
|
518
|
+
*/
|
|
519
|
+
imageUrl: string | null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Array of conditions of the badge
|
|
523
|
+
*/
|
|
524
|
+
loyaltyConditions: Array<BadgeListResponse.LoyaltyCondition>;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* The name of the badge
|
|
528
|
+
*/
|
|
529
|
+
name: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Array of user badges
|
|
533
|
+
*/
|
|
534
|
+
LoyaltyBadgeUser?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
117
535
|
}
|
|
118
536
|
|
|
119
537
|
export namespace BadgeListResponse {
|
|
120
|
-
|
|
538
|
+
/**
|
|
539
|
+
* Schema for a loyalty condition rule.
|
|
540
|
+
*/
|
|
541
|
+
export interface LoyaltyCondition {
|
|
121
542
|
/**
|
|
122
|
-
* UUID of the
|
|
543
|
+
* UUID of the condition (converted to lowercase)
|
|
123
544
|
*/
|
|
124
545
|
id: string;
|
|
125
546
|
|
|
126
547
|
/**
|
|
127
|
-
*
|
|
548
|
+
* The amount of the condition
|
|
128
549
|
*/
|
|
129
|
-
|
|
550
|
+
amount: number | null;
|
|
551
|
+
|
|
552
|
+
association: Array<LoyaltyCondition.Association>;
|
|
130
553
|
|
|
131
554
|
/**
|
|
132
|
-
* The URL of the
|
|
555
|
+
* The URL of the CSV file
|
|
133
556
|
*/
|
|
134
|
-
|
|
557
|
+
csvUrl: string | null;
|
|
135
558
|
|
|
136
559
|
/**
|
|
137
|
-
*
|
|
560
|
+
* The description of the condition
|
|
138
561
|
*/
|
|
139
|
-
|
|
562
|
+
description: string | null;
|
|
140
563
|
|
|
141
564
|
/**
|
|
142
|
-
*
|
|
565
|
+
* UUID of the currency (converted to lowercase)
|
|
143
566
|
*/
|
|
144
|
-
|
|
567
|
+
loyaltyCurrencyId: string | null;
|
|
145
568
|
|
|
146
569
|
/**
|
|
147
|
-
*
|
|
570
|
+
* UUID of the rule group (converted to lowercase)
|
|
148
571
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
572
|
+
loyaltyRuleGroupId: string | null;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* The repeat count of the condition
|
|
576
|
+
*/
|
|
577
|
+
repeatCount: number | null;
|
|
151
578
|
|
|
152
|
-
export namespace Badge {
|
|
153
579
|
/**
|
|
154
|
-
*
|
|
580
|
+
* The required count of the condition
|
|
155
581
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
582
|
+
requiredCount: number | null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* The type of the condition
|
|
586
|
+
*/
|
|
587
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export namespace LoyaltyCondition {
|
|
591
|
+
export interface Association {
|
|
592
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
593
|
+
|
|
594
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
161
595
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
596
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
597
|
+
|
|
598
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
599
|
+
|
|
600
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
166
601
|
}
|
|
167
602
|
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
603
|
+
export namespace Association {
|
|
604
|
+
export interface LoyaltyBadge {
|
|
605
|
+
/**
|
|
606
|
+
* UUID of the association (converted to lowercase)
|
|
607
|
+
*/
|
|
608
|
+
id: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The name of the association
|
|
612
|
+
*/
|
|
613
|
+
name: string;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export interface LoyaltyCurrency {
|
|
617
|
+
/**
|
|
618
|
+
* UUID of the association (converted to lowercase)
|
|
619
|
+
*/
|
|
620
|
+
id: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The name of the association
|
|
624
|
+
*/
|
|
625
|
+
name: string;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export interface LoyaltyLeaderboardView {
|
|
629
|
+
/**
|
|
630
|
+
* UUID of the association (converted to lowercase)
|
|
631
|
+
*/
|
|
632
|
+
id: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* The name of the association
|
|
636
|
+
*/
|
|
637
|
+
name: string;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export interface LoyaltyRule {
|
|
641
|
+
/**
|
|
642
|
+
* UUID of the association (converted to lowercase)
|
|
643
|
+
*/
|
|
644
|
+
id: string;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* The name of the association
|
|
648
|
+
*/
|
|
649
|
+
name: string;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface LoyaltyRuleGroup {
|
|
653
|
+
/**
|
|
654
|
+
* UUID of the association (converted to lowercase)
|
|
655
|
+
*/
|
|
656
|
+
id: string;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* The name of the association
|
|
660
|
+
*/
|
|
661
|
+
name: string;
|
|
662
|
+
}
|
|
203
663
|
}
|
|
204
664
|
}
|
|
665
|
+
|
|
666
|
+
export interface LoyaltyBadgeUser {
|
|
667
|
+
/**
|
|
668
|
+
* UUID of the user badge (converted to lowercase)
|
|
669
|
+
*/
|
|
670
|
+
id: string;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* UUID of the badge (converted to lowercase)
|
|
674
|
+
*/
|
|
675
|
+
loyaltyBadgeId: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* UUID of the organization (converted to lowercase)
|
|
679
|
+
*/
|
|
680
|
+
organizationId: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* The status of the badge
|
|
684
|
+
*/
|
|
685
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* UUID of the user (converted to lowercase)
|
|
689
|
+
*/
|
|
690
|
+
userId: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* UUID of the website (converted to lowercase)
|
|
694
|
+
*/
|
|
695
|
+
websiteId: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Array of progress for the badge
|
|
699
|
+
*/
|
|
700
|
+
progress?: unknown;
|
|
701
|
+
}
|
|
205
702
|
}
|
|
206
703
|
|
|
207
704
|
/**
|
|
208
705
|
* Response returned upon successful deletion of the badge.
|
|
209
706
|
*/
|
|
210
707
|
export interface BadgeDeleteResponse {
|
|
708
|
+
/**
|
|
709
|
+
* UUID of the badge (converted to lowercase)
|
|
710
|
+
*/
|
|
211
711
|
id: string;
|
|
212
712
|
|
|
213
|
-
|
|
713
|
+
/**
|
|
714
|
+
* The description of the badge
|
|
715
|
+
*/
|
|
716
|
+
description: string | null;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The URL of the badge image
|
|
720
|
+
*/
|
|
721
|
+
imageUrl: string | null;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Array of conditions of the badge
|
|
725
|
+
*/
|
|
726
|
+
loyaltyConditions: Array<BadgeDeleteResponse.LoyaltyCondition>;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* The name of the badge
|
|
730
|
+
*/
|
|
731
|
+
name: string;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Array of user badges
|
|
735
|
+
*/
|
|
736
|
+
LoyaltyBadgeUser?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export namespace BadgeDeleteResponse {
|
|
740
|
+
/**
|
|
741
|
+
* Schema for a loyalty condition rule.
|
|
742
|
+
*/
|
|
743
|
+
export interface LoyaltyCondition {
|
|
744
|
+
/**
|
|
745
|
+
* UUID of the condition (converted to lowercase)
|
|
746
|
+
*/
|
|
747
|
+
id: string;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* The amount of the condition
|
|
751
|
+
*/
|
|
752
|
+
amount: number | null;
|
|
753
|
+
|
|
754
|
+
association: Array<LoyaltyCondition.Association>;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* The URL of the CSV file
|
|
758
|
+
*/
|
|
759
|
+
csvUrl: string | null;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* The description of the condition
|
|
763
|
+
*/
|
|
764
|
+
description: string | null;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* UUID of the currency (converted to lowercase)
|
|
768
|
+
*/
|
|
769
|
+
loyaltyCurrencyId: string | null;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* UUID of the rule group (converted to lowercase)
|
|
773
|
+
*/
|
|
774
|
+
loyaltyRuleGroupId: string | null;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* The repeat count of the condition
|
|
778
|
+
*/
|
|
779
|
+
repeatCount: number | null;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The required count of the condition
|
|
783
|
+
*/
|
|
784
|
+
requiredCount: number | null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The type of the condition
|
|
788
|
+
*/
|
|
789
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
export namespace LoyaltyCondition {
|
|
793
|
+
export interface Association {
|
|
794
|
+
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
795
|
+
|
|
796
|
+
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
797
|
+
|
|
798
|
+
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
799
|
+
|
|
800
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
801
|
+
|
|
802
|
+
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export namespace Association {
|
|
806
|
+
export interface LoyaltyBadge {
|
|
807
|
+
/**
|
|
808
|
+
* UUID of the association (converted to lowercase)
|
|
809
|
+
*/
|
|
810
|
+
id: string;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* The name of the association
|
|
814
|
+
*/
|
|
815
|
+
name: string;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
export interface LoyaltyCurrency {
|
|
819
|
+
/**
|
|
820
|
+
* UUID of the association (converted to lowercase)
|
|
821
|
+
*/
|
|
822
|
+
id: string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* The name of the association
|
|
826
|
+
*/
|
|
827
|
+
name: string;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export interface LoyaltyLeaderboardView {
|
|
831
|
+
/**
|
|
832
|
+
* UUID of the association (converted to lowercase)
|
|
833
|
+
*/
|
|
834
|
+
id: string;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* The name of the association
|
|
838
|
+
*/
|
|
839
|
+
name: string;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export interface LoyaltyRule {
|
|
843
|
+
/**
|
|
844
|
+
* UUID of the association (converted to lowercase)
|
|
845
|
+
*/
|
|
846
|
+
id: string;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* The name of the association
|
|
850
|
+
*/
|
|
851
|
+
name: string;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export interface LoyaltyRuleGroup {
|
|
855
|
+
/**
|
|
856
|
+
* UUID of the association (converted to lowercase)
|
|
857
|
+
*/
|
|
858
|
+
id: string;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* The name of the association
|
|
862
|
+
*/
|
|
863
|
+
name: string;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export interface LoyaltyBadgeUser {
|
|
869
|
+
/**
|
|
870
|
+
* UUID of the user badge (converted to lowercase)
|
|
871
|
+
*/
|
|
872
|
+
id: string;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* UUID of the badge (converted to lowercase)
|
|
876
|
+
*/
|
|
877
|
+
loyaltyBadgeId: string;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* UUID of the organization (converted to lowercase)
|
|
881
|
+
*/
|
|
882
|
+
organizationId: string;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* The status of the badge
|
|
886
|
+
*/
|
|
887
|
+
status: 'active' | 'inactive' | 'revoked';
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* UUID of the user (converted to lowercase)
|
|
891
|
+
*/
|
|
892
|
+
userId: string;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* UUID of the website (converted to lowercase)
|
|
896
|
+
*/
|
|
897
|
+
websiteId: string;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Array of progress for the badge
|
|
901
|
+
*/
|
|
902
|
+
progress?: unknown;
|
|
903
|
+
}
|
|
214
904
|
}
|
|
215
905
|
|
|
216
906
|
/**
|
|
@@ -294,49 +984,61 @@ export interface BadgeCreateParams {
|
|
|
294
984
|
}
|
|
295
985
|
|
|
296
986
|
export namespace BadgeCreateParams {
|
|
297
|
-
/**
|
|
298
|
-
* Schema for a loyalty condition rule.
|
|
299
|
-
*/
|
|
300
987
|
export interface Rule {
|
|
301
988
|
/**
|
|
302
989
|
* The type of rule
|
|
303
990
|
*/
|
|
304
|
-
type: 'rule' | '
|
|
991
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
305
992
|
|
|
306
993
|
/**
|
|
307
994
|
* The amount of the rule
|
|
308
995
|
*/
|
|
309
996
|
amount?: number | null;
|
|
310
997
|
|
|
998
|
+
/**
|
|
999
|
+
* URL of the CSV file (optional)
|
|
1000
|
+
*/
|
|
1001
|
+
csvUrl?: string | null;
|
|
1002
|
+
|
|
311
1003
|
/**
|
|
312
1004
|
* The description of the rule
|
|
313
1005
|
*/
|
|
314
|
-
description?: string;
|
|
1006
|
+
description?: string | null;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Array of UUIDs of the badge (optional, converted to lowercase)
|
|
1010
|
+
*/
|
|
1011
|
+
loyaltyBadgeIds?: Array<string>;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Array of UUIDs of the currency (optional, converted to lowercase)
|
|
1015
|
+
*/
|
|
1016
|
+
loyaltyCurrencyIds?: Array<string>;
|
|
315
1017
|
|
|
316
1018
|
/**
|
|
317
|
-
*
|
|
1019
|
+
* Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
|
|
318
1020
|
*/
|
|
319
|
-
|
|
1021
|
+
loyaltyLeaderboardViewIds?: Array<string>;
|
|
320
1022
|
|
|
321
1023
|
/**
|
|
322
|
-
*
|
|
1024
|
+
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
323
1025
|
*/
|
|
324
|
-
|
|
1026
|
+
loyaltyRuleGroupIds?: Array<string>;
|
|
325
1027
|
|
|
326
1028
|
/**
|
|
327
|
-
*
|
|
1029
|
+
* Array of UUIDs of the rules (optional, converted to lowercase)
|
|
328
1030
|
*/
|
|
329
|
-
|
|
1031
|
+
loyaltyRuleIds?: Array<string>;
|
|
330
1032
|
|
|
331
1033
|
/**
|
|
332
|
-
*
|
|
1034
|
+
* The number of times the rule should be repeated to fulfill the condition
|
|
333
1035
|
*/
|
|
334
|
-
|
|
1036
|
+
repeatCount?: number | null;
|
|
335
1037
|
|
|
336
1038
|
/**
|
|
337
|
-
*
|
|
1039
|
+
* The number of rules that need to be fulfilled to satisfy the condition
|
|
338
1040
|
*/
|
|
339
|
-
|
|
1041
|
+
requiredCount?: number | null;
|
|
340
1042
|
}
|
|
341
1043
|
}
|
|
342
1044
|
|
|
@@ -371,7 +1073,7 @@ export interface BadgeListParams {
|
|
|
371
1073
|
/**
|
|
372
1074
|
* Number of badges to fetch
|
|
373
1075
|
*/
|
|
374
|
-
limit?: number
|
|
1076
|
+
limit?: number;
|
|
375
1077
|
|
|
376
1078
|
/**
|
|
377
1079
|
* UUID of the organization (optional, converted to lowercase)
|