@snagsolutions/sdk 0.1.0-alpha.52 → 0.1.0-alpha.53
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 +9 -0
- package/package.json +1 -1
- package/resources/loyalty/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +2 -2
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs.map +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 +55 -8
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +6 -5
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +6 -5
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +1 -1
- 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/index.ts +1 -0
- package/src/resources/loyalty/loyalty.ts +2 -0
- package/src/resources/loyalty/rule-edits.ts +44 -0
- package/src/resources/loyalty/rule-groups.ts +14 -1
- package/src/resources/loyalty/rules.ts +85 -4
- package/src/resources/loyalty/transactions/transactions.ts +4 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -439,6 +439,7 @@ export namespace RuleEditListResponse {
|
|
|
439
439
|
| 'Twitch'
|
|
440
440
|
| 'X(Twitter)'
|
|
441
441
|
| 'YouTube'
|
|
442
|
+
| 'Google'
|
|
442
443
|
| null;
|
|
443
444
|
|
|
444
445
|
/**
|
|
@@ -526,6 +527,16 @@ export namespace RuleEditListResponse {
|
|
|
526
527
|
* Type of wallet associated with the rule.
|
|
527
528
|
*/
|
|
528
529
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* ID of the Youtube channel.
|
|
533
|
+
*/
|
|
534
|
+
youtubeChannelId?: string | null;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* ID of the Youtube video.
|
|
538
|
+
*/
|
|
539
|
+
youtubeVideoId?: string | null;
|
|
529
540
|
}
|
|
530
541
|
|
|
531
542
|
export namespace Metadata {
|
|
@@ -1295,6 +1306,7 @@ export namespace RuleEditListResponse {
|
|
|
1295
1306
|
| 'Twitch'
|
|
1296
1307
|
| 'X(Twitter)'
|
|
1297
1308
|
| 'YouTube'
|
|
1309
|
+
| 'Google'
|
|
1298
1310
|
| null;
|
|
1299
1311
|
|
|
1300
1312
|
/**
|
|
@@ -1382,6 +1394,16 @@ export namespace RuleEditListResponse {
|
|
|
1382
1394
|
* Type of wallet associated with the rule.
|
|
1383
1395
|
*/
|
|
1384
1396
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* ID of the Youtube channel.
|
|
1400
|
+
*/
|
|
1401
|
+
youtubeChannelId?: string | null;
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* ID of the Youtube video.
|
|
1405
|
+
*/
|
|
1406
|
+
youtubeVideoId?: string | null;
|
|
1385
1407
|
}
|
|
1386
1408
|
|
|
1387
1409
|
export namespace Metadata {
|
|
@@ -2206,6 +2228,7 @@ export namespace RuleEditRestoreResponse {
|
|
|
2206
2228
|
| 'Twitch'
|
|
2207
2229
|
| 'X(Twitter)'
|
|
2208
2230
|
| 'YouTube'
|
|
2231
|
+
| 'Google'
|
|
2209
2232
|
| null;
|
|
2210
2233
|
|
|
2211
2234
|
/**
|
|
@@ -2293,6 +2316,16 @@ export namespace RuleEditRestoreResponse {
|
|
|
2293
2316
|
* Type of wallet associated with the rule.
|
|
2294
2317
|
*/
|
|
2295
2318
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* ID of the Youtube channel.
|
|
2322
|
+
*/
|
|
2323
|
+
youtubeChannelId?: string | null;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* ID of the Youtube video.
|
|
2327
|
+
*/
|
|
2328
|
+
youtubeVideoId?: string | null;
|
|
2296
2329
|
}
|
|
2297
2330
|
|
|
2298
2331
|
export namespace Metadata {
|
|
@@ -3062,6 +3095,7 @@ export namespace RuleEditRestoreResponse {
|
|
|
3062
3095
|
| 'Twitch'
|
|
3063
3096
|
| 'X(Twitter)'
|
|
3064
3097
|
| 'YouTube'
|
|
3098
|
+
| 'Google'
|
|
3065
3099
|
| null;
|
|
3066
3100
|
|
|
3067
3101
|
/**
|
|
@@ -3149,6 +3183,16 @@ export namespace RuleEditRestoreResponse {
|
|
|
3149
3183
|
* Type of wallet associated with the rule.
|
|
3150
3184
|
*/
|
|
3151
3185
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* ID of the Youtube channel.
|
|
3189
|
+
*/
|
|
3190
|
+
youtubeChannelId?: string | null;
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* ID of the Youtube video.
|
|
3194
|
+
*/
|
|
3195
|
+
youtubeVideoId?: string | null;
|
|
3152
3196
|
}
|
|
3153
3197
|
|
|
3154
3198
|
export namespace Metadata {
|
|
@@ -211,7 +211,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
211
211
|
| 'poll'
|
|
212
212
|
| 'steam_wishlist'
|
|
213
213
|
| 'liquidity_uniswap_v2'
|
|
214
|
-
| 'liquidity_uniswap_v3'
|
|
214
|
+
| 'liquidity_uniswap_v3'
|
|
215
|
+
| 'youtube_subscribers'
|
|
216
|
+
| 'youtube_comment';
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
export namespace LoyaltyRule {
|
|
@@ -490,6 +492,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
490
492
|
| 'Twitch'
|
|
491
493
|
| 'X(Twitter)'
|
|
492
494
|
| 'YouTube'
|
|
495
|
+
| 'Google'
|
|
493
496
|
| null;
|
|
494
497
|
|
|
495
498
|
/**
|
|
@@ -577,6 +580,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
577
580
|
* Type of wallet associated with the rule.
|
|
578
581
|
*/
|
|
579
582
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* ID of the Youtube channel.
|
|
586
|
+
*/
|
|
587
|
+
youtubeChannelId?: string | null;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* ID of the Youtube video.
|
|
591
|
+
*/
|
|
592
|
+
youtubeVideoId?: string | null;
|
|
580
593
|
}
|
|
581
594
|
|
|
582
595
|
export namespace Metadata {
|
|
@@ -41,8 +41,22 @@ export class Rules extends APIResource {
|
|
|
41
41
|
/**
|
|
42
42
|
* Delete an existing Loyalty Rule
|
|
43
43
|
*/
|
|
44
|
-
delete(
|
|
45
|
-
|
|
44
|
+
delete(
|
|
45
|
+
id: string,
|
|
46
|
+
params?: RuleDeleteParams,
|
|
47
|
+
options?: Core.RequestOptions,
|
|
48
|
+
): Core.APIPromise<RuleDeleteResponse>;
|
|
49
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
|
|
50
|
+
delete(
|
|
51
|
+
id: string,
|
|
52
|
+
params: RuleDeleteParams | Core.RequestOptions = {},
|
|
53
|
+
options?: Core.RequestOptions,
|
|
54
|
+
): Core.APIPromise<RuleDeleteResponse> {
|
|
55
|
+
if (isRequestOptions(params)) {
|
|
56
|
+
return this.delete(id, {}, params);
|
|
57
|
+
}
|
|
58
|
+
const { debitLoyaltyPoints } = params;
|
|
59
|
+
return this._client.delete(`/api/loyalty/rules/${id}`, { query: { debitLoyaltyPoints }, ...options });
|
|
46
60
|
}
|
|
47
61
|
|
|
48
62
|
/**
|
|
@@ -200,7 +214,9 @@ export interface RuleCreateResponse {
|
|
|
200
214
|
| 'poll'
|
|
201
215
|
| 'steam_wishlist'
|
|
202
216
|
| 'liquidity_uniswap_v2'
|
|
203
|
-
| 'liquidity_uniswap_v3'
|
|
217
|
+
| 'liquidity_uniswap_v3'
|
|
218
|
+
| 'youtube_subscribers'
|
|
219
|
+
| 'youtube_comment';
|
|
204
220
|
|
|
205
221
|
/**
|
|
206
222
|
* Unique identifier for the associated website
|
|
@@ -592,6 +608,7 @@ export namespace RuleCreateResponse {
|
|
|
592
608
|
| 'Twitch'
|
|
593
609
|
| 'X(Twitter)'
|
|
594
610
|
| 'YouTube'
|
|
611
|
+
| 'Google'
|
|
595
612
|
| null;
|
|
596
613
|
|
|
597
614
|
/**
|
|
@@ -679,6 +696,16 @@ export namespace RuleCreateResponse {
|
|
|
679
696
|
* Type of wallet associated with the rule.
|
|
680
697
|
*/
|
|
681
698
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* ID of the Youtube channel.
|
|
702
|
+
*/
|
|
703
|
+
youtubeChannelId?: string | null;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* ID of the Youtube video.
|
|
707
|
+
*/
|
|
708
|
+
youtubeVideoId?: string | null;
|
|
682
709
|
}
|
|
683
710
|
|
|
684
711
|
export namespace Metadata {
|
|
@@ -1604,6 +1631,7 @@ export namespace RuleUpdateResponse {
|
|
|
1604
1631
|
| 'Twitch'
|
|
1605
1632
|
| 'X(Twitter)'
|
|
1606
1633
|
| 'YouTube'
|
|
1634
|
+
| 'Google'
|
|
1607
1635
|
| null;
|
|
1608
1636
|
|
|
1609
1637
|
/**
|
|
@@ -1691,6 +1719,16 @@ export namespace RuleUpdateResponse {
|
|
|
1691
1719
|
* Type of wallet associated with the rule.
|
|
1692
1720
|
*/
|
|
1693
1721
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* ID of the Youtube channel.
|
|
1725
|
+
*/
|
|
1726
|
+
youtubeChannelId?: string | null;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* ID of the Youtube video.
|
|
1730
|
+
*/
|
|
1731
|
+
youtubeVideoId?: string | null;
|
|
1694
1732
|
}
|
|
1695
1733
|
|
|
1696
1734
|
export namespace Metadata {
|
|
@@ -2467,6 +2505,7 @@ export namespace RuleListResponse {
|
|
|
2467
2505
|
| 'Twitch'
|
|
2468
2506
|
| 'X(Twitter)'
|
|
2469
2507
|
| 'YouTube'
|
|
2508
|
+
| 'Google'
|
|
2470
2509
|
| null;
|
|
2471
2510
|
|
|
2472
2511
|
/**
|
|
@@ -2554,6 +2593,16 @@ export namespace RuleListResponse {
|
|
|
2554
2593
|
* Type of wallet associated with the rule.
|
|
2555
2594
|
*/
|
|
2556
2595
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* ID of the Youtube channel.
|
|
2599
|
+
*/
|
|
2600
|
+
youtubeChannelId?: string | null;
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* ID of the Youtube video.
|
|
2604
|
+
*/
|
|
2605
|
+
youtubeVideoId?: string | null;
|
|
2557
2606
|
}
|
|
2558
2607
|
|
|
2559
2608
|
export namespace Metadata {
|
|
@@ -3104,7 +3153,9 @@ export interface RuleCreateParams {
|
|
|
3104
3153
|
| 'poll'
|
|
3105
3154
|
| 'steam_wishlist'
|
|
3106
3155
|
| 'liquidity_uniswap_v2'
|
|
3107
|
-
| 'liquidity_uniswap_v3'
|
|
3156
|
+
| 'liquidity_uniswap_v3'
|
|
3157
|
+
| 'youtube_subscribers'
|
|
3158
|
+
| 'youtube_comment';
|
|
3108
3159
|
|
|
3109
3160
|
/**
|
|
3110
3161
|
* Unique identifier for the associated website
|
|
@@ -3496,6 +3547,7 @@ export namespace RuleCreateParams {
|
|
|
3496
3547
|
| 'Twitch'
|
|
3497
3548
|
| 'X(Twitter)'
|
|
3498
3549
|
| 'YouTube'
|
|
3550
|
+
| 'Google'
|
|
3499
3551
|
| null;
|
|
3500
3552
|
|
|
3501
3553
|
/**
|
|
@@ -3583,6 +3635,16 @@ export namespace RuleCreateParams {
|
|
|
3583
3635
|
* Type of wallet associated with the rule.
|
|
3584
3636
|
*/
|
|
3585
3637
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* ID of the Youtube channel.
|
|
3641
|
+
*/
|
|
3642
|
+
youtubeChannelId?: string | null;
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* ID of the Youtube video.
|
|
3646
|
+
*/
|
|
3647
|
+
youtubeVideoId?: string | null;
|
|
3586
3648
|
}
|
|
3587
3649
|
|
|
3588
3650
|
export namespace Metadata {
|
|
@@ -4506,6 +4568,7 @@ export namespace RuleUpdateParams {
|
|
|
4506
4568
|
| 'Twitch'
|
|
4507
4569
|
| 'X(Twitter)'
|
|
4508
4570
|
| 'YouTube'
|
|
4571
|
+
| 'Google'
|
|
4509
4572
|
| null;
|
|
4510
4573
|
|
|
4511
4574
|
/**
|
|
@@ -4593,6 +4656,16 @@ export namespace RuleUpdateParams {
|
|
|
4593
4656
|
* Type of wallet associated with the rule.
|
|
4594
4657
|
*/
|
|
4595
4658
|
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
4659
|
+
|
|
4660
|
+
/**
|
|
4661
|
+
* ID of the Youtube channel.
|
|
4662
|
+
*/
|
|
4663
|
+
youtubeChannelId?: string | null;
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* ID of the Youtube video.
|
|
4667
|
+
*/
|
|
4668
|
+
youtubeVideoId?: string | null;
|
|
4596
4669
|
}
|
|
4597
4670
|
|
|
4598
4671
|
export namespace Metadata {
|
|
@@ -5049,6 +5122,13 @@ export interface RuleListParams {
|
|
|
5049
5122
|
websiteId?: string;
|
|
5050
5123
|
}
|
|
5051
5124
|
|
|
5125
|
+
export interface RuleDeleteParams {
|
|
5126
|
+
/**
|
|
5127
|
+
* Whether to debit loyalty points
|
|
5128
|
+
*/
|
|
5129
|
+
debitLoyaltyPoints?: string;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5052
5132
|
export interface RuleCompleteParams {
|
|
5053
5133
|
/**
|
|
5054
5134
|
* Override amount for the reward (rounded to nearest whole number). This will
|
|
@@ -5114,6 +5194,7 @@ export declare namespace Rules {
|
|
|
5114
5194
|
type RuleCreateParams as RuleCreateParams,
|
|
5115
5195
|
type RuleUpdateParams as RuleUpdateParams,
|
|
5116
5196
|
type RuleListParams as RuleListParams,
|
|
5197
|
+
type RuleDeleteParams as RuleDeleteParams,
|
|
5117
5198
|
type RuleCompleteParams as RuleCompleteParams,
|
|
5118
5199
|
type RuleGetStatusParams as RuleGetStatusParams,
|
|
5119
5200
|
};
|
|
@@ -361,6 +361,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
361
361
|
| 'steam_wishlist'
|
|
362
362
|
| 'liquidity_uniswap_v2'
|
|
363
363
|
| 'liquidity_uniswap_v3'
|
|
364
|
+
| 'youtube_subscribers'
|
|
365
|
+
| 'youtube_comment'
|
|
364
366
|
| Array<
|
|
365
367
|
| 'Bonus'
|
|
366
368
|
| 'BoughtOn'
|
|
@@ -418,6 +420,8 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
418
420
|
| 'steam_wishlist'
|
|
419
421
|
| 'liquidity_uniswap_v2'
|
|
420
422
|
| 'liquidity_uniswap_v3'
|
|
423
|
+
| 'youtube_subscribers'
|
|
424
|
+
| 'youtube_comment'
|
|
421
425
|
>;
|
|
422
426
|
|
|
423
427
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.53'; // 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.53";
|
|
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.53'; // 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.53'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|