@snagsolutions/sdk 0.1.0-alpha.84 → 0.1.0-alpha.86
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 +16 -0
- package/package.json +1 -1
- package/resources/loyalty/badges.d.ts +124 -0
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +20 -0
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +5 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +25 -0
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/users/metadatas.d.ts +2 -0
- package/resources/users/metadatas.d.ts.map +1 -1
- package/src/resources/loyalty/badges.ts +148 -0
- package/src/resources/loyalty/rule-edits.ts +24 -0
- package/src/resources/loyalty/rule-groups.ts +6 -0
- package/src/resources/loyalty/rules.ts +30 -0
- package/src/resources/users/metadatas.ts +11 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -314,6 +314,11 @@ export namespace BadgeCreateResponse {
|
|
|
314
314
|
*/
|
|
315
315
|
id: string;
|
|
316
316
|
|
|
317
|
+
/**
|
|
318
|
+
* The date and time the user badge was created
|
|
319
|
+
*/
|
|
320
|
+
createdAt: string;
|
|
321
|
+
|
|
317
322
|
/**
|
|
318
323
|
* UUID of the badge (converted to lowercase)
|
|
319
324
|
*/
|
|
@@ -329,6 +334,11 @@ export namespace BadgeCreateResponse {
|
|
|
329
334
|
*/
|
|
330
335
|
status: 'active' | 'inactive' | 'revoked';
|
|
331
336
|
|
|
337
|
+
/**
|
|
338
|
+
* The date and time the user badge was updated
|
|
339
|
+
*/
|
|
340
|
+
updatedAt: string;
|
|
341
|
+
|
|
332
342
|
/**
|
|
333
343
|
* UUID of the user (converted to lowercase)
|
|
334
344
|
*/
|
|
@@ -343,6 +353,28 @@ export namespace BadgeCreateResponse {
|
|
|
343
353
|
* Array of progress for the badge
|
|
344
354
|
*/
|
|
345
355
|
progress?: unknown;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* User associated with the user badge
|
|
359
|
+
*/
|
|
360
|
+
user?: LoyaltyBadgeUser.User;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export namespace LoyaltyBadgeUser {
|
|
364
|
+
/**
|
|
365
|
+
* User associated with the user badge
|
|
366
|
+
*/
|
|
367
|
+
export interface User {
|
|
368
|
+
/**
|
|
369
|
+
* UUID of the user (converted to lowercase)
|
|
370
|
+
*/
|
|
371
|
+
id: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Wallet address of the user
|
|
375
|
+
*/
|
|
376
|
+
walletAddress: string;
|
|
377
|
+
}
|
|
346
378
|
}
|
|
347
379
|
|
|
348
380
|
export interface LoyaltyRule {
|
|
@@ -350,6 +382,11 @@ export namespace BadgeCreateResponse {
|
|
|
350
382
|
* UUID of the loyalty rule (converted to lowercase)
|
|
351
383
|
*/
|
|
352
384
|
id: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The name of the loyalty rule
|
|
388
|
+
*/
|
|
389
|
+
name: string;
|
|
353
390
|
}
|
|
354
391
|
}
|
|
355
392
|
|
|
@@ -528,6 +565,11 @@ export namespace BadgeUpdateResponse {
|
|
|
528
565
|
*/
|
|
529
566
|
id: string;
|
|
530
567
|
|
|
568
|
+
/**
|
|
569
|
+
* The date and time the user badge was created
|
|
570
|
+
*/
|
|
571
|
+
createdAt: string;
|
|
572
|
+
|
|
531
573
|
/**
|
|
532
574
|
* UUID of the badge (converted to lowercase)
|
|
533
575
|
*/
|
|
@@ -543,6 +585,11 @@ export namespace BadgeUpdateResponse {
|
|
|
543
585
|
*/
|
|
544
586
|
status: 'active' | 'inactive' | 'revoked';
|
|
545
587
|
|
|
588
|
+
/**
|
|
589
|
+
* The date and time the user badge was updated
|
|
590
|
+
*/
|
|
591
|
+
updatedAt: string;
|
|
592
|
+
|
|
546
593
|
/**
|
|
547
594
|
* UUID of the user (converted to lowercase)
|
|
548
595
|
*/
|
|
@@ -557,6 +604,28 @@ export namespace BadgeUpdateResponse {
|
|
|
557
604
|
* Array of progress for the badge
|
|
558
605
|
*/
|
|
559
606
|
progress?: unknown;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* User associated with the user badge
|
|
610
|
+
*/
|
|
611
|
+
user?: LoyaltyBadgeUser.User;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export namespace LoyaltyBadgeUser {
|
|
615
|
+
/**
|
|
616
|
+
* User associated with the user badge
|
|
617
|
+
*/
|
|
618
|
+
export interface User {
|
|
619
|
+
/**
|
|
620
|
+
* UUID of the user (converted to lowercase)
|
|
621
|
+
*/
|
|
622
|
+
id: string;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Wallet address of the user
|
|
626
|
+
*/
|
|
627
|
+
walletAddress: string;
|
|
628
|
+
}
|
|
560
629
|
}
|
|
561
630
|
|
|
562
631
|
export interface LoyaltyRule {
|
|
@@ -564,6 +633,11 @@ export namespace BadgeUpdateResponse {
|
|
|
564
633
|
* UUID of the loyalty rule (converted to lowercase)
|
|
565
634
|
*/
|
|
566
635
|
id: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* The name of the loyalty rule
|
|
639
|
+
*/
|
|
640
|
+
name: string;
|
|
567
641
|
}
|
|
568
642
|
}
|
|
569
643
|
|
|
@@ -742,6 +816,11 @@ export namespace BadgeListResponse {
|
|
|
742
816
|
*/
|
|
743
817
|
id: string;
|
|
744
818
|
|
|
819
|
+
/**
|
|
820
|
+
* The date and time the user badge was created
|
|
821
|
+
*/
|
|
822
|
+
createdAt: string;
|
|
823
|
+
|
|
745
824
|
/**
|
|
746
825
|
* UUID of the badge (converted to lowercase)
|
|
747
826
|
*/
|
|
@@ -757,6 +836,11 @@ export namespace BadgeListResponse {
|
|
|
757
836
|
*/
|
|
758
837
|
status: 'active' | 'inactive' | 'revoked';
|
|
759
838
|
|
|
839
|
+
/**
|
|
840
|
+
* The date and time the user badge was updated
|
|
841
|
+
*/
|
|
842
|
+
updatedAt: string;
|
|
843
|
+
|
|
760
844
|
/**
|
|
761
845
|
* UUID of the user (converted to lowercase)
|
|
762
846
|
*/
|
|
@@ -771,6 +855,28 @@ export namespace BadgeListResponse {
|
|
|
771
855
|
* Array of progress for the badge
|
|
772
856
|
*/
|
|
773
857
|
progress?: unknown;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* User associated with the user badge
|
|
861
|
+
*/
|
|
862
|
+
user?: LoyaltyBadgeUser.User;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export namespace LoyaltyBadgeUser {
|
|
866
|
+
/**
|
|
867
|
+
* User associated with the user badge
|
|
868
|
+
*/
|
|
869
|
+
export interface User {
|
|
870
|
+
/**
|
|
871
|
+
* UUID of the user (converted to lowercase)
|
|
872
|
+
*/
|
|
873
|
+
id: string;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Wallet address of the user
|
|
877
|
+
*/
|
|
878
|
+
walletAddress: string;
|
|
879
|
+
}
|
|
774
880
|
}
|
|
775
881
|
|
|
776
882
|
export interface LoyaltyRule {
|
|
@@ -778,6 +884,11 @@ export namespace BadgeListResponse {
|
|
|
778
884
|
* UUID of the loyalty rule (converted to lowercase)
|
|
779
885
|
*/
|
|
780
886
|
id: string;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* The name of the loyalty rule
|
|
890
|
+
*/
|
|
891
|
+
name: string;
|
|
781
892
|
}
|
|
782
893
|
}
|
|
783
894
|
|
|
@@ -956,6 +1067,11 @@ export namespace BadgeDeleteResponse {
|
|
|
956
1067
|
*/
|
|
957
1068
|
id: string;
|
|
958
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* The date and time the user badge was created
|
|
1072
|
+
*/
|
|
1073
|
+
createdAt: string;
|
|
1074
|
+
|
|
959
1075
|
/**
|
|
960
1076
|
* UUID of the badge (converted to lowercase)
|
|
961
1077
|
*/
|
|
@@ -971,6 +1087,11 @@ export namespace BadgeDeleteResponse {
|
|
|
971
1087
|
*/
|
|
972
1088
|
status: 'active' | 'inactive' | 'revoked';
|
|
973
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* The date and time the user badge was updated
|
|
1092
|
+
*/
|
|
1093
|
+
updatedAt: string;
|
|
1094
|
+
|
|
974
1095
|
/**
|
|
975
1096
|
* UUID of the user (converted to lowercase)
|
|
976
1097
|
*/
|
|
@@ -985,6 +1106,28 @@ export namespace BadgeDeleteResponse {
|
|
|
985
1106
|
* Array of progress for the badge
|
|
986
1107
|
*/
|
|
987
1108
|
progress?: unknown;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* User associated with the user badge
|
|
1112
|
+
*/
|
|
1113
|
+
user?: LoyaltyBadgeUser.User;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
export namespace LoyaltyBadgeUser {
|
|
1117
|
+
/**
|
|
1118
|
+
* User associated with the user badge
|
|
1119
|
+
*/
|
|
1120
|
+
export interface User {
|
|
1121
|
+
/**
|
|
1122
|
+
* UUID of the user (converted to lowercase)
|
|
1123
|
+
*/
|
|
1124
|
+
id: string;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Wallet address of the user
|
|
1128
|
+
*/
|
|
1129
|
+
walletAddress: string;
|
|
1130
|
+
}
|
|
988
1131
|
}
|
|
989
1132
|
|
|
990
1133
|
export interface LoyaltyRule {
|
|
@@ -992,6 +1135,11 @@ export namespace BadgeDeleteResponse {
|
|
|
992
1135
|
* UUID of the loyalty rule (converted to lowercase)
|
|
993
1136
|
*/
|
|
994
1137
|
id: string;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* The name of the loyalty rule
|
|
1141
|
+
*/
|
|
1142
|
+
name: string;
|
|
995
1143
|
}
|
|
996
1144
|
}
|
|
997
1145
|
|
|
@@ -429,6 +429,12 @@ export namespace RuleEditListResponse {
|
|
|
429
429
|
*/
|
|
430
430
|
rewardPerImpression?: boolean | null;
|
|
431
431
|
|
|
432
|
+
/**
|
|
433
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
434
|
+
* instead of count.
|
|
435
|
+
*/
|
|
436
|
+
rewardPerValue?: boolean;
|
|
437
|
+
|
|
432
438
|
/**
|
|
433
439
|
* Currency associated with sales.
|
|
434
440
|
*/
|
|
@@ -1375,6 +1381,12 @@ export namespace RuleEditListResponse {
|
|
|
1375
1381
|
*/
|
|
1376
1382
|
rewardPerImpression?: boolean | null;
|
|
1377
1383
|
|
|
1384
|
+
/**
|
|
1385
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1386
|
+
* instead of count.
|
|
1387
|
+
*/
|
|
1388
|
+
rewardPerValue?: boolean;
|
|
1389
|
+
|
|
1378
1390
|
/**
|
|
1379
1391
|
* Currency associated with sales.
|
|
1380
1392
|
*/
|
|
@@ -2376,6 +2388,12 @@ export namespace RuleEditRestoreResponse {
|
|
|
2376
2388
|
*/
|
|
2377
2389
|
rewardPerImpression?: boolean | null;
|
|
2378
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
2393
|
+
* instead of count.
|
|
2394
|
+
*/
|
|
2395
|
+
rewardPerValue?: boolean;
|
|
2396
|
+
|
|
2379
2397
|
/**
|
|
2380
2398
|
* Currency associated with sales.
|
|
2381
2399
|
*/
|
|
@@ -3322,6 +3340,12 @@ export namespace RuleEditRestoreResponse {
|
|
|
3322
3340
|
*/
|
|
3323
3341
|
rewardPerImpression?: boolean | null;
|
|
3324
3342
|
|
|
3343
|
+
/**
|
|
3344
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
3345
|
+
* instead of count.
|
|
3346
|
+
*/
|
|
3347
|
+
rewardPerValue?: boolean;
|
|
3348
|
+
|
|
3325
3349
|
/**
|
|
3326
3350
|
* Currency associated with sales.
|
|
3327
3351
|
*/
|
|
@@ -503,6 +503,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
503
503
|
*/
|
|
504
504
|
rewardPerImpression?: boolean | null;
|
|
505
505
|
|
|
506
|
+
/**
|
|
507
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
508
|
+
* instead of count.
|
|
509
|
+
*/
|
|
510
|
+
rewardPerValue?: boolean;
|
|
511
|
+
|
|
506
512
|
/**
|
|
507
513
|
* Currency associated with sales.
|
|
508
514
|
*/
|
|
@@ -674,6 +674,12 @@ export namespace RuleCreateResponse {
|
|
|
674
674
|
*/
|
|
675
675
|
rewardPerImpression?: boolean | null;
|
|
676
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
679
|
+
* instead of count.
|
|
680
|
+
*/
|
|
681
|
+
rewardPerValue?: boolean;
|
|
682
|
+
|
|
677
683
|
/**
|
|
678
684
|
* Currency associated with sales.
|
|
679
685
|
*/
|
|
@@ -1813,6 +1819,12 @@ export namespace RuleUpdateResponse {
|
|
|
1813
1819
|
*/
|
|
1814
1820
|
rewardPerImpression?: boolean | null;
|
|
1815
1821
|
|
|
1822
|
+
/**
|
|
1823
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1824
|
+
* instead of count.
|
|
1825
|
+
*/
|
|
1826
|
+
rewardPerValue?: boolean;
|
|
1827
|
+
|
|
1816
1828
|
/**
|
|
1817
1829
|
* Currency associated with sales.
|
|
1818
1830
|
*/
|
|
@@ -2868,6 +2880,12 @@ export namespace RuleListResponse {
|
|
|
2868
2880
|
*/
|
|
2869
2881
|
rewardPerImpression?: boolean | null;
|
|
2870
2882
|
|
|
2883
|
+
/**
|
|
2884
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
2885
|
+
* instead of count.
|
|
2886
|
+
*/
|
|
2887
|
+
rewardPerValue?: boolean;
|
|
2888
|
+
|
|
2871
2889
|
/**
|
|
2872
2890
|
* Currency associated with sales.
|
|
2873
2891
|
*/
|
|
@@ -4026,6 +4044,12 @@ export namespace RuleCreateParams {
|
|
|
4026
4044
|
*/
|
|
4027
4045
|
rewardPerImpression?: boolean | null;
|
|
4028
4046
|
|
|
4047
|
+
/**
|
|
4048
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
4049
|
+
* instead of count.
|
|
4050
|
+
*/
|
|
4051
|
+
rewardPerValue?: boolean;
|
|
4052
|
+
|
|
4029
4053
|
/**
|
|
4030
4054
|
* Currency associated with sales.
|
|
4031
4055
|
*/
|
|
@@ -5163,6 +5187,12 @@ export namespace RuleUpdateParams {
|
|
|
5163
5187
|
*/
|
|
5164
5188
|
rewardPerImpression?: boolean | null;
|
|
5165
5189
|
|
|
5190
|
+
/**
|
|
5191
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
5192
|
+
* instead of count.
|
|
5193
|
+
*/
|
|
5194
|
+
rewardPerValue?: boolean;
|
|
5195
|
+
|
|
5166
5196
|
/**
|
|
5167
5197
|
* Currency associated with sales.
|
|
5168
5198
|
*/
|
|
@@ -133,6 +133,15 @@ export namespace MetadataListResponse {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
export interface MetadataCreateParams {
|
|
136
|
+
blockStatusReason?:
|
|
137
|
+
| 'sybil_and_multi_account'
|
|
138
|
+
| 'account_migration'
|
|
139
|
+
| 'abuse_manipulation'
|
|
140
|
+
| 'not_sybil'
|
|
141
|
+
| 'issue_resolved'
|
|
142
|
+
| 'other'
|
|
143
|
+
| null;
|
|
144
|
+
|
|
136
145
|
discordUser?: string | null;
|
|
137
146
|
|
|
138
147
|
discordUserId?: string | null;
|
|
@@ -151,6 +160,8 @@ export interface MetadataCreateParams {
|
|
|
151
160
|
|
|
152
161
|
googleUserId?: string | null;
|
|
153
162
|
|
|
163
|
+
internalNotes?: string | null;
|
|
164
|
+
|
|
154
165
|
isBlocked?: boolean;
|
|
155
166
|
|
|
156
167
|
logoUrl?: string | null;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.86'; // 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.86";
|
|
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.86'; // 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.86'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|