@snagsolutions/sdk 0.1.0-alpha.54 → 0.1.0-alpha.56
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 +24 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/resources/loyalty/rule-edits.d.ts +36 -4
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +10 -2
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +136 -10
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +86 -2
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/src/resources/loyalty/rule-edits.ts +44 -0
- package/src/resources/loyalty/rule-groups.ts +14 -1
- package/src/resources/loyalty/rules.ts +171 -5
- package/src/resources/loyalty/transactions/transactions.ts +109 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -215,11 +215,113 @@ export namespace TransactionGetTransactionEntriesResponse {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export interface TransactionListRuleChainsResponse {
|
|
218
|
-
data: Array<
|
|
218
|
+
data: Array<TransactionListRuleChainsResponse.Data>;
|
|
219
219
|
|
|
220
220
|
hasNextPage: boolean;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
export namespace TransactionListRuleChainsResponse {
|
|
224
|
+
export interface Data {
|
|
225
|
+
/**
|
|
226
|
+
* Unique identifier for the rule chain
|
|
227
|
+
*/
|
|
228
|
+
id: string;
|
|
229
|
+
|
|
230
|
+
loyaltyConditions: Array<Data.LoyaltyCondition>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Unique identifier for the loyalty rule
|
|
234
|
+
*/
|
|
235
|
+
loyaltyRuleId: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Name of the rule chain
|
|
239
|
+
*/
|
|
240
|
+
name: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace Data {
|
|
244
|
+
export interface LoyaltyCondition {
|
|
245
|
+
/**
|
|
246
|
+
* Unique identifier for the condition
|
|
247
|
+
*/
|
|
248
|
+
id: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Amount of the condition
|
|
252
|
+
*/
|
|
253
|
+
amount: number | null;
|
|
254
|
+
|
|
255
|
+
association: Array<LoyaltyCondition.Association>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* URL of the CSV file
|
|
259
|
+
*/
|
|
260
|
+
csvUrl: string | null;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Description of the condition
|
|
264
|
+
*/
|
|
265
|
+
description: string | null;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Number of times the condition must be met
|
|
269
|
+
*/
|
|
270
|
+
repeatCount: number | null;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Number of times the condition must be met
|
|
274
|
+
*/
|
|
275
|
+
requiredCount: number | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Type of the condition
|
|
279
|
+
*/
|
|
280
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export namespace LoyaltyCondition {
|
|
284
|
+
export interface Association {
|
|
285
|
+
/**
|
|
286
|
+
* Unique identifier for the association
|
|
287
|
+
*/
|
|
288
|
+
id: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Unique identifier for the loyalty badge
|
|
292
|
+
*/
|
|
293
|
+
loyaltyBadgeId: string | null;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Unique identifier for the loyalty currency
|
|
297
|
+
*/
|
|
298
|
+
loyaltyCurrencyId: string | null;
|
|
299
|
+
|
|
300
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Unique identifier for the loyalty rule group
|
|
304
|
+
*/
|
|
305
|
+
loyaltyRuleGroupId: string | null;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Unique identifier for the loyalty rule
|
|
309
|
+
*/
|
|
310
|
+
loyaltyRuleId: string | null;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export namespace Association {
|
|
314
|
+
export interface LoyaltyRule {
|
|
315
|
+
/**
|
|
316
|
+
* Name of the loyalty rule
|
|
317
|
+
*/
|
|
318
|
+
name: string;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
223
325
|
export interface TransactionCreateTransactionParams {
|
|
224
326
|
/**
|
|
225
327
|
* Description of the loyalty transaction
|
|
@@ -284,6 +386,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
284
386
|
*/
|
|
285
387
|
direction?: 'credit' | 'debit';
|
|
286
388
|
|
|
389
|
+
excludeDeletedCurrency?: 'true' | 'false';
|
|
390
|
+
|
|
287
391
|
/**
|
|
288
392
|
* Key to ensure idempotency of the request
|
|
289
393
|
*/
|
|
@@ -361,6 +465,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
361
465
|
| 'steam_wishlist'
|
|
362
466
|
| 'liquidity_uniswap_v2'
|
|
363
467
|
| 'liquidity_uniswap_v3'
|
|
468
|
+
| 'youtube_subscribers'
|
|
469
|
+
| 'youtube_comment'
|
|
364
470
|
| Array<
|
|
365
471
|
| 'Bonus'
|
|
366
472
|
| 'BoughtOn'
|
|
@@ -418,6 +524,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
418
524
|
| 'steam_wishlist'
|
|
419
525
|
| 'liquidity_uniswap_v2'
|
|
420
526
|
| 'liquidity_uniswap_v3'
|
|
527
|
+
| 'youtube_subscribers'
|
|
528
|
+
| 'youtube_comment'
|
|
421
529
|
>;
|
|
422
530
|
|
|
423
531
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.56'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.56";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.56'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.56'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|