@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
|
@@ -47,7 +47,7 @@ export class Rules extends APIResource {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Verify a loyalty rule based on user action and reward them if applicable. This
|
|
50
|
-
* endpoint
|
|
50
|
+
* endpoint currently only supports following rule types code_entry, text_input,
|
|
51
51
|
* link_click, discord_member, connect_wallet, check_in, external_rule,
|
|
52
52
|
* drip_x_follow, drip_x_new_tweet, drip_x_text_in_bio, drip_x_text_in_name,
|
|
53
53
|
* drip_x_text_in_comment, drip_x_tweet, telegram_join
|
|
@@ -184,7 +184,9 @@ export interface RuleCreateResponse {
|
|
|
184
184
|
| 'twitter_follow'
|
|
185
185
|
| 'twitter_followers'
|
|
186
186
|
| 'twitter_like'
|
|
187
|
-
| 'twitter_post_hashtag'
|
|
187
|
+
| 'twitter_post_hashtag'
|
|
188
|
+
| 'quiz'
|
|
189
|
+
| 'poll';
|
|
188
190
|
|
|
189
191
|
/**
|
|
190
192
|
* Unique identifier for the associated website
|
|
@@ -229,7 +231,7 @@ export interface RuleCreateResponse {
|
|
|
229
231
|
/**
|
|
230
232
|
* Interval between rule executions
|
|
231
233
|
*/
|
|
232
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
234
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
233
235
|
|
|
234
236
|
/**
|
|
235
237
|
* Whether this rule is mandatory
|
|
@@ -441,6 +443,11 @@ export namespace RuleCreateResponse {
|
|
|
441
443
|
*/
|
|
442
444
|
onlyNonListed?: boolean;
|
|
443
445
|
|
|
446
|
+
/**
|
|
447
|
+
* give points for only one token ownership per contract
|
|
448
|
+
*/
|
|
449
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
450
|
+
|
|
444
451
|
/**
|
|
445
452
|
* Promotional code associated with the rule.
|
|
446
453
|
*/
|
|
@@ -476,6 +483,11 @@ export namespace RuleCreateResponse {
|
|
|
476
483
|
*/
|
|
477
484
|
secondReferralReward?: number | null;
|
|
478
485
|
|
|
486
|
+
/**
|
|
487
|
+
* Flag indicating if the multiplier is skipped.
|
|
488
|
+
*/
|
|
489
|
+
skipMultiplier?: boolean | null;
|
|
490
|
+
|
|
479
491
|
/**
|
|
480
492
|
* Object containing details of the associated smart contract.
|
|
481
493
|
*/
|
|
@@ -490,14 +502,16 @@ export namespace RuleCreateResponse {
|
|
|
490
502
|
* Social media platform associated with the rule.
|
|
491
503
|
*/
|
|
492
504
|
socialPlatform?:
|
|
493
|
-
| '
|
|
505
|
+
| 'Custom'
|
|
506
|
+
| 'Discord'
|
|
507
|
+
| 'EpicGames'
|
|
508
|
+
| 'Instagram'
|
|
509
|
+
| 'Steam'
|
|
510
|
+
| 'Telegram'
|
|
494
511
|
| 'TikTok'
|
|
512
|
+
| 'Twitch'
|
|
495
513
|
| 'X(Twitter)'
|
|
496
|
-
| 'Instagram'
|
|
497
|
-
| 'EpicGames'
|
|
498
514
|
| 'YouTube'
|
|
499
|
-
| 'Discord'
|
|
500
|
-
| 'Custom'
|
|
501
515
|
| null;
|
|
502
516
|
|
|
503
517
|
/**
|
|
@@ -666,6 +680,11 @@ export namespace RuleCreateResponse {
|
|
|
666
680
|
* Array of emojis used in the channel.
|
|
667
681
|
*/
|
|
668
682
|
emojis?: Array<Channel.Emoji>;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Phrase of text to be present in the discord message
|
|
686
|
+
*/
|
|
687
|
+
text?: string;
|
|
669
688
|
}
|
|
670
689
|
|
|
671
690
|
export namespace Channel {
|
|
@@ -941,41 +960,16 @@ export interface RuleUpdateResponse {
|
|
|
941
960
|
*/
|
|
942
961
|
amount: unknown;
|
|
943
962
|
|
|
944
|
-
/**
|
|
945
|
-
* Effective end time of the rule
|
|
946
|
-
*/
|
|
947
|
-
effectiveEndTime: string | null;
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* Effective start time of the rule
|
|
951
|
-
*/
|
|
952
|
-
effectiveStartTime: string | null;
|
|
953
|
-
|
|
954
963
|
/**
|
|
955
964
|
* End time for the loyalty rule
|
|
956
965
|
*/
|
|
957
966
|
endTime: string | null;
|
|
958
967
|
|
|
959
|
-
/**
|
|
960
|
-
* Frequency of the rule execution
|
|
961
|
-
*/
|
|
962
|
-
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* Additional metadata for the loyalty rule
|
|
966
|
-
*/
|
|
967
|
-
metadata: RuleUpdateResponse.Metadata;
|
|
968
|
-
|
|
969
968
|
/**
|
|
970
969
|
* Name of the loyalty rule
|
|
971
970
|
*/
|
|
972
971
|
name: string;
|
|
973
972
|
|
|
974
|
-
/**
|
|
975
|
-
* Start time for the loyalty rule
|
|
976
|
-
*/
|
|
977
|
-
startTime: string | null;
|
|
978
|
-
|
|
979
973
|
/**
|
|
980
974
|
* Blockchain address of the associated collection
|
|
981
975
|
*/
|
|
@@ -1001,6 +995,21 @@ export interface RuleUpdateResponse {
|
|
|
1001
995
|
*/
|
|
1002
996
|
description?: string;
|
|
1003
997
|
|
|
998
|
+
/**
|
|
999
|
+
* Effective end time of the rule
|
|
1000
|
+
*/
|
|
1001
|
+
effectiveEndTime?: string | null;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Effective start time of the rule
|
|
1005
|
+
*/
|
|
1006
|
+
effectiveStartTime?: string | null;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Frequency of the rule execution
|
|
1010
|
+
*/
|
|
1011
|
+
frequency?: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
1012
|
+
|
|
1004
1013
|
/**
|
|
1005
1014
|
* Whether to hide this rule in the user interface
|
|
1006
1015
|
*/
|
|
@@ -1009,7 +1018,7 @@ export interface RuleUpdateResponse {
|
|
|
1009
1018
|
/**
|
|
1010
1019
|
* Time interval for recurring rule execution
|
|
1011
1020
|
*/
|
|
1012
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
1021
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
1013
1022
|
|
|
1014
1023
|
/**
|
|
1015
1024
|
* Whether this rule is required for participation
|
|
@@ -1021,6 +1030,11 @@ export interface RuleUpdateResponse {
|
|
|
1021
1030
|
*/
|
|
1022
1031
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
1023
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* Additional metadata for the loyalty rule
|
|
1035
|
+
*/
|
|
1036
|
+
metadata?: RuleUpdateResponse.Metadata;
|
|
1037
|
+
|
|
1024
1038
|
/**
|
|
1025
1039
|
* Blockchain network where the rule will apply
|
|
1026
1040
|
*/
|
|
@@ -1065,6 +1079,11 @@ export interface RuleUpdateResponse {
|
|
|
1065
1079
|
*/
|
|
1066
1080
|
rewardType?: 'points' | 'multiplier';
|
|
1067
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* Start time for the loyalty rule
|
|
1084
|
+
*/
|
|
1085
|
+
startTime?: string | null;
|
|
1086
|
+
|
|
1068
1087
|
/**
|
|
1069
1088
|
* Optional subscription identifier for the rule
|
|
1070
1089
|
*/
|
|
@@ -1072,6 +1091,47 @@ export interface RuleUpdateResponse {
|
|
|
1072
1091
|
}
|
|
1073
1092
|
|
|
1074
1093
|
export namespace RuleUpdateResponse {
|
|
1094
|
+
export interface Collection {
|
|
1095
|
+
/**
|
|
1096
|
+
* Blockchain address of the collection
|
|
1097
|
+
*/
|
|
1098
|
+
address: string;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Blockchain network for the collection
|
|
1102
|
+
*/
|
|
1103
|
+
network:
|
|
1104
|
+
| 'mainnet'
|
|
1105
|
+
| 'polygon'
|
|
1106
|
+
| 'polygon_mumbai'
|
|
1107
|
+
| 'optimism'
|
|
1108
|
+
| 'arbitrum'
|
|
1109
|
+
| 'binance'
|
|
1110
|
+
| 'bscTestnet'
|
|
1111
|
+
| 'avalanche'
|
|
1112
|
+
| 'avalancheFuji'
|
|
1113
|
+
| 'zksync'
|
|
1114
|
+
| 'fantom'
|
|
1115
|
+
| 'fantomTestnet'
|
|
1116
|
+
| 'base'
|
|
1117
|
+
| 'baseSepolia'
|
|
1118
|
+
| 'skaleNebula'
|
|
1119
|
+
| 'xai'
|
|
1120
|
+
| 'berachainArtio'
|
|
1121
|
+
| 'solana'
|
|
1122
|
+
| 'apechain'
|
|
1123
|
+
| 'flowMainnet'
|
|
1124
|
+
| 'campTestnet'
|
|
1125
|
+
| 'sui'
|
|
1126
|
+
| 'vanar'
|
|
1127
|
+
| 'sepolia'
|
|
1128
|
+
| 'optimism_sepolia'
|
|
1129
|
+
| 'arbitrumSepolia'
|
|
1130
|
+
| 'goerli'
|
|
1131
|
+
| 'optimism_goerli'
|
|
1132
|
+
| 'arbitrumGoerli';
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1075
1135
|
/**
|
|
1076
1136
|
* Additional metadata for the loyalty rule
|
|
1077
1137
|
*/
|
|
@@ -1221,6 +1281,11 @@ export namespace RuleUpdateResponse {
|
|
|
1221
1281
|
*/
|
|
1222
1282
|
onlyNonListed?: boolean;
|
|
1223
1283
|
|
|
1284
|
+
/**
|
|
1285
|
+
* give points for only one token ownership per contract
|
|
1286
|
+
*/
|
|
1287
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1288
|
+
|
|
1224
1289
|
/**
|
|
1225
1290
|
* Promotional code associated with the rule.
|
|
1226
1291
|
*/
|
|
@@ -1256,6 +1321,11 @@ export namespace RuleUpdateResponse {
|
|
|
1256
1321
|
*/
|
|
1257
1322
|
secondReferralReward?: number | null;
|
|
1258
1323
|
|
|
1324
|
+
/**
|
|
1325
|
+
* Flag indicating if the multiplier is skipped.
|
|
1326
|
+
*/
|
|
1327
|
+
skipMultiplier?: boolean | null;
|
|
1328
|
+
|
|
1259
1329
|
/**
|
|
1260
1330
|
* Object containing details of the associated smart contract.
|
|
1261
1331
|
*/
|
|
@@ -1270,14 +1340,16 @@ export namespace RuleUpdateResponse {
|
|
|
1270
1340
|
* Social media platform associated with the rule.
|
|
1271
1341
|
*/
|
|
1272
1342
|
socialPlatform?:
|
|
1273
|
-
| '
|
|
1343
|
+
| 'Custom'
|
|
1344
|
+
| 'Discord'
|
|
1345
|
+
| 'EpicGames'
|
|
1346
|
+
| 'Instagram'
|
|
1347
|
+
| 'Steam'
|
|
1348
|
+
| 'Telegram'
|
|
1274
1349
|
| 'TikTok'
|
|
1350
|
+
| 'Twitch'
|
|
1275
1351
|
| 'X(Twitter)'
|
|
1276
|
-
| 'Instagram'
|
|
1277
|
-
| 'EpicGames'
|
|
1278
1352
|
| 'YouTube'
|
|
1279
|
-
| 'Discord'
|
|
1280
|
-
| 'Custom'
|
|
1281
1353
|
| null;
|
|
1282
1354
|
|
|
1283
1355
|
/**
|
|
@@ -1446,6 +1518,11 @@ export namespace RuleUpdateResponse {
|
|
|
1446
1518
|
* Array of emojis used in the channel.
|
|
1447
1519
|
*/
|
|
1448
1520
|
emojis?: Array<Channel.Emoji>;
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Phrase of text to be present in the discord message
|
|
1524
|
+
*/
|
|
1525
|
+
text?: string;
|
|
1449
1526
|
}
|
|
1450
1527
|
|
|
1451
1528
|
export namespace Channel {
|
|
@@ -1670,47 +1747,6 @@ export namespace RuleUpdateResponse {
|
|
|
1670
1747
|
streakMilestone: number;
|
|
1671
1748
|
}
|
|
1672
1749
|
}
|
|
1673
|
-
|
|
1674
|
-
export interface Collection {
|
|
1675
|
-
/**
|
|
1676
|
-
* Blockchain address of the collection
|
|
1677
|
-
*/
|
|
1678
|
-
address: string;
|
|
1679
|
-
|
|
1680
|
-
/**
|
|
1681
|
-
* Blockchain network for the collection
|
|
1682
|
-
*/
|
|
1683
|
-
network:
|
|
1684
|
-
| 'mainnet'
|
|
1685
|
-
| 'polygon'
|
|
1686
|
-
| 'polygon_mumbai'
|
|
1687
|
-
| 'optimism'
|
|
1688
|
-
| 'arbitrum'
|
|
1689
|
-
| 'binance'
|
|
1690
|
-
| 'bscTestnet'
|
|
1691
|
-
| 'avalanche'
|
|
1692
|
-
| 'avalancheFuji'
|
|
1693
|
-
| 'zksync'
|
|
1694
|
-
| 'fantom'
|
|
1695
|
-
| 'fantomTestnet'
|
|
1696
|
-
| 'base'
|
|
1697
|
-
| 'baseSepolia'
|
|
1698
|
-
| 'skaleNebula'
|
|
1699
|
-
| 'xai'
|
|
1700
|
-
| 'berachainArtio'
|
|
1701
|
-
| 'solana'
|
|
1702
|
-
| 'apechain'
|
|
1703
|
-
| 'flowMainnet'
|
|
1704
|
-
| 'campTestnet'
|
|
1705
|
-
| 'sui'
|
|
1706
|
-
| 'vanar'
|
|
1707
|
-
| 'sepolia'
|
|
1708
|
-
| 'optimism_sepolia'
|
|
1709
|
-
| 'arbitrumSepolia'
|
|
1710
|
-
| 'goerli'
|
|
1711
|
-
| 'optimism_goerli'
|
|
1712
|
-
| 'arbitrumGoerli';
|
|
1713
|
-
}
|
|
1714
1750
|
}
|
|
1715
1751
|
|
|
1716
1752
|
export interface RuleListResponse {
|
|
@@ -1912,7 +1948,9 @@ export interface RuleCreateParams {
|
|
|
1912
1948
|
| 'twitter_follow'
|
|
1913
1949
|
| 'twitter_followers'
|
|
1914
1950
|
| 'twitter_like'
|
|
1915
|
-
| 'twitter_post_hashtag'
|
|
1951
|
+
| 'twitter_post_hashtag'
|
|
1952
|
+
| 'quiz'
|
|
1953
|
+
| 'poll';
|
|
1916
1954
|
|
|
1917
1955
|
/**
|
|
1918
1956
|
* Unique identifier for the associated website
|
|
@@ -1957,7 +1995,7 @@ export interface RuleCreateParams {
|
|
|
1957
1995
|
/**
|
|
1958
1996
|
* Interval between rule executions
|
|
1959
1997
|
*/
|
|
1960
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
1998
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
1961
1999
|
|
|
1962
2000
|
/**
|
|
1963
2001
|
* Whether this rule is mandatory
|
|
@@ -2169,6 +2207,11 @@ export namespace RuleCreateParams {
|
|
|
2169
2207
|
*/
|
|
2170
2208
|
onlyNonListed?: boolean;
|
|
2171
2209
|
|
|
2210
|
+
/**
|
|
2211
|
+
* give points for only one token ownership per contract
|
|
2212
|
+
*/
|
|
2213
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
2214
|
+
|
|
2172
2215
|
/**
|
|
2173
2216
|
* Promotional code associated with the rule.
|
|
2174
2217
|
*/
|
|
@@ -2204,6 +2247,11 @@ export namespace RuleCreateParams {
|
|
|
2204
2247
|
*/
|
|
2205
2248
|
secondReferralReward?: number | null;
|
|
2206
2249
|
|
|
2250
|
+
/**
|
|
2251
|
+
* Flag indicating if the multiplier is skipped.
|
|
2252
|
+
*/
|
|
2253
|
+
skipMultiplier?: boolean | null;
|
|
2254
|
+
|
|
2207
2255
|
/**
|
|
2208
2256
|
* Object containing details of the associated smart contract.
|
|
2209
2257
|
*/
|
|
@@ -2218,14 +2266,16 @@ export namespace RuleCreateParams {
|
|
|
2218
2266
|
* Social media platform associated with the rule.
|
|
2219
2267
|
*/
|
|
2220
2268
|
socialPlatform?:
|
|
2221
|
-
| '
|
|
2269
|
+
| 'Custom'
|
|
2270
|
+
| 'Discord'
|
|
2271
|
+
| 'EpicGames'
|
|
2272
|
+
| 'Instagram'
|
|
2273
|
+
| 'Steam'
|
|
2274
|
+
| 'Telegram'
|
|
2222
2275
|
| 'TikTok'
|
|
2276
|
+
| 'Twitch'
|
|
2223
2277
|
| 'X(Twitter)'
|
|
2224
|
-
| 'Instagram'
|
|
2225
|
-
| 'EpicGames'
|
|
2226
2278
|
| 'YouTube'
|
|
2227
|
-
| 'Discord'
|
|
2228
|
-
| 'Custom'
|
|
2229
2279
|
| null;
|
|
2230
2280
|
|
|
2231
2281
|
/**
|
|
@@ -2394,6 +2444,11 @@ export namespace RuleCreateParams {
|
|
|
2394
2444
|
* Array of emojis used in the channel.
|
|
2395
2445
|
*/
|
|
2396
2446
|
emojis?: Array<Channel.Emoji>;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Phrase of text to be present in the discord message
|
|
2450
|
+
*/
|
|
2451
|
+
text?: string;
|
|
2397
2452
|
}
|
|
2398
2453
|
|
|
2399
2454
|
export namespace Channel {
|
|
@@ -2667,41 +2722,16 @@ export interface RuleUpdateParams {
|
|
|
2667
2722
|
*/
|
|
2668
2723
|
amount: unknown;
|
|
2669
2724
|
|
|
2670
|
-
/**
|
|
2671
|
-
* Effective end time of the rule
|
|
2672
|
-
*/
|
|
2673
|
-
effectiveEndTime: string | null;
|
|
2674
|
-
|
|
2675
|
-
/**
|
|
2676
|
-
* Effective start time of the rule
|
|
2677
|
-
*/
|
|
2678
|
-
effectiveStartTime: string | null;
|
|
2679
|
-
|
|
2680
2725
|
/**
|
|
2681
2726
|
* End time for the loyalty rule
|
|
2682
2727
|
*/
|
|
2683
2728
|
endTime: string | null;
|
|
2684
2729
|
|
|
2685
|
-
/**
|
|
2686
|
-
* Frequency of the rule execution
|
|
2687
|
-
*/
|
|
2688
|
-
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
2689
|
-
|
|
2690
|
-
/**
|
|
2691
|
-
* Additional metadata for the loyalty rule
|
|
2692
|
-
*/
|
|
2693
|
-
metadata: RuleUpdateParams.Metadata;
|
|
2694
|
-
|
|
2695
2730
|
/**
|
|
2696
2731
|
* Name of the loyalty rule
|
|
2697
2732
|
*/
|
|
2698
2733
|
name: string;
|
|
2699
2734
|
|
|
2700
|
-
/**
|
|
2701
|
-
* Start time for the loyalty rule
|
|
2702
|
-
*/
|
|
2703
|
-
startTime: string | null;
|
|
2704
|
-
|
|
2705
2735
|
/**
|
|
2706
2736
|
* Blockchain address of the associated collection
|
|
2707
2737
|
*/
|
|
@@ -2727,6 +2757,21 @@ export interface RuleUpdateParams {
|
|
|
2727
2757
|
*/
|
|
2728
2758
|
description?: string;
|
|
2729
2759
|
|
|
2760
|
+
/**
|
|
2761
|
+
* Effective end time of the rule
|
|
2762
|
+
*/
|
|
2763
|
+
effectiveEndTime?: string | null;
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* Effective start time of the rule
|
|
2767
|
+
*/
|
|
2768
|
+
effectiveStartTime?: string | null;
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* Frequency of the rule execution
|
|
2772
|
+
*/
|
|
2773
|
+
frequency?: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
2774
|
+
|
|
2730
2775
|
/**
|
|
2731
2776
|
* Whether to hide this rule in the user interface
|
|
2732
2777
|
*/
|
|
@@ -2735,7 +2780,7 @@ export interface RuleUpdateParams {
|
|
|
2735
2780
|
/**
|
|
2736
2781
|
* Time interval for recurring rule execution
|
|
2737
2782
|
*/
|
|
2738
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
2783
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
2739
2784
|
|
|
2740
2785
|
/**
|
|
2741
2786
|
* Whether this rule is required for participation
|
|
@@ -2747,6 +2792,11 @@ export interface RuleUpdateParams {
|
|
|
2747
2792
|
*/
|
|
2748
2793
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
2749
2794
|
|
|
2795
|
+
/**
|
|
2796
|
+
* Additional metadata for the loyalty rule
|
|
2797
|
+
*/
|
|
2798
|
+
metadata?: RuleUpdateParams.Metadata;
|
|
2799
|
+
|
|
2750
2800
|
/**
|
|
2751
2801
|
* Blockchain network where the rule will apply
|
|
2752
2802
|
*/
|
|
@@ -2791,6 +2841,11 @@ export interface RuleUpdateParams {
|
|
|
2791
2841
|
*/
|
|
2792
2842
|
rewardType?: 'points' | 'multiplier';
|
|
2793
2843
|
|
|
2844
|
+
/**
|
|
2845
|
+
* Start time for the loyalty rule
|
|
2846
|
+
*/
|
|
2847
|
+
startTime?: string | null;
|
|
2848
|
+
|
|
2794
2849
|
/**
|
|
2795
2850
|
* Optional subscription identifier for the rule
|
|
2796
2851
|
*/
|
|
@@ -2798,6 +2853,47 @@ export interface RuleUpdateParams {
|
|
|
2798
2853
|
}
|
|
2799
2854
|
|
|
2800
2855
|
export namespace RuleUpdateParams {
|
|
2856
|
+
export interface Collection {
|
|
2857
|
+
/**
|
|
2858
|
+
* Blockchain address of the collection
|
|
2859
|
+
*/
|
|
2860
|
+
address: string;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Blockchain network for the collection
|
|
2864
|
+
*/
|
|
2865
|
+
network:
|
|
2866
|
+
| 'mainnet'
|
|
2867
|
+
| 'polygon'
|
|
2868
|
+
| 'polygon_mumbai'
|
|
2869
|
+
| 'optimism'
|
|
2870
|
+
| 'arbitrum'
|
|
2871
|
+
| 'binance'
|
|
2872
|
+
| 'bscTestnet'
|
|
2873
|
+
| 'avalanche'
|
|
2874
|
+
| 'avalancheFuji'
|
|
2875
|
+
| 'zksync'
|
|
2876
|
+
| 'fantom'
|
|
2877
|
+
| 'fantomTestnet'
|
|
2878
|
+
| 'base'
|
|
2879
|
+
| 'baseSepolia'
|
|
2880
|
+
| 'skaleNebula'
|
|
2881
|
+
| 'xai'
|
|
2882
|
+
| 'berachainArtio'
|
|
2883
|
+
| 'solana'
|
|
2884
|
+
| 'apechain'
|
|
2885
|
+
| 'flowMainnet'
|
|
2886
|
+
| 'campTestnet'
|
|
2887
|
+
| 'sui'
|
|
2888
|
+
| 'vanar'
|
|
2889
|
+
| 'sepolia'
|
|
2890
|
+
| 'optimism_sepolia'
|
|
2891
|
+
| 'arbitrumSepolia'
|
|
2892
|
+
| 'goerli'
|
|
2893
|
+
| 'optimism_goerli'
|
|
2894
|
+
| 'arbitrumGoerli';
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2801
2897
|
/**
|
|
2802
2898
|
* Additional metadata for the loyalty rule
|
|
2803
2899
|
*/
|
|
@@ -2947,6 +3043,11 @@ export namespace RuleUpdateParams {
|
|
|
2947
3043
|
*/
|
|
2948
3044
|
onlyNonListed?: boolean;
|
|
2949
3045
|
|
|
3046
|
+
/**
|
|
3047
|
+
* give points for only one token ownership per contract
|
|
3048
|
+
*/
|
|
3049
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
3050
|
+
|
|
2950
3051
|
/**
|
|
2951
3052
|
* Promotional code associated with the rule.
|
|
2952
3053
|
*/
|
|
@@ -2982,6 +3083,11 @@ export namespace RuleUpdateParams {
|
|
|
2982
3083
|
*/
|
|
2983
3084
|
secondReferralReward?: number | null;
|
|
2984
3085
|
|
|
3086
|
+
/**
|
|
3087
|
+
* Flag indicating if the multiplier is skipped.
|
|
3088
|
+
*/
|
|
3089
|
+
skipMultiplier?: boolean | null;
|
|
3090
|
+
|
|
2985
3091
|
/**
|
|
2986
3092
|
* Object containing details of the associated smart contract.
|
|
2987
3093
|
*/
|
|
@@ -2996,14 +3102,16 @@ export namespace RuleUpdateParams {
|
|
|
2996
3102
|
* Social media platform associated with the rule.
|
|
2997
3103
|
*/
|
|
2998
3104
|
socialPlatform?:
|
|
2999
|
-
| '
|
|
3105
|
+
| 'Custom'
|
|
3106
|
+
| 'Discord'
|
|
3107
|
+
| 'EpicGames'
|
|
3108
|
+
| 'Instagram'
|
|
3109
|
+
| 'Steam'
|
|
3110
|
+
| 'Telegram'
|
|
3000
3111
|
| 'TikTok'
|
|
3112
|
+
| 'Twitch'
|
|
3001
3113
|
| 'X(Twitter)'
|
|
3002
|
-
| 'Instagram'
|
|
3003
|
-
| 'EpicGames'
|
|
3004
3114
|
| 'YouTube'
|
|
3005
|
-
| 'Discord'
|
|
3006
|
-
| 'Custom'
|
|
3007
3115
|
| null;
|
|
3008
3116
|
|
|
3009
3117
|
/**
|
|
@@ -3172,6 +3280,11 @@ export namespace RuleUpdateParams {
|
|
|
3172
3280
|
* Array of emojis used in the channel.
|
|
3173
3281
|
*/
|
|
3174
3282
|
emojis?: Array<Channel.Emoji>;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* Phrase of text to be present in the discord message
|
|
3286
|
+
*/
|
|
3287
|
+
text?: string;
|
|
3175
3288
|
}
|
|
3176
3289
|
|
|
3177
3290
|
export namespace Channel {
|
|
@@ -3396,47 +3509,6 @@ export namespace RuleUpdateParams {
|
|
|
3396
3509
|
streakMilestone: number;
|
|
3397
3510
|
}
|
|
3398
3511
|
}
|
|
3399
|
-
|
|
3400
|
-
export interface Collection {
|
|
3401
|
-
/**
|
|
3402
|
-
* Blockchain address of the collection
|
|
3403
|
-
*/
|
|
3404
|
-
address: string;
|
|
3405
|
-
|
|
3406
|
-
/**
|
|
3407
|
-
* Blockchain network for the collection
|
|
3408
|
-
*/
|
|
3409
|
-
network:
|
|
3410
|
-
| 'mainnet'
|
|
3411
|
-
| 'polygon'
|
|
3412
|
-
| 'polygon_mumbai'
|
|
3413
|
-
| 'optimism'
|
|
3414
|
-
| 'arbitrum'
|
|
3415
|
-
| 'binance'
|
|
3416
|
-
| 'bscTestnet'
|
|
3417
|
-
| 'avalanche'
|
|
3418
|
-
| 'avalancheFuji'
|
|
3419
|
-
| 'zksync'
|
|
3420
|
-
| 'fantom'
|
|
3421
|
-
| 'fantomTestnet'
|
|
3422
|
-
| 'base'
|
|
3423
|
-
| 'baseSepolia'
|
|
3424
|
-
| 'skaleNebula'
|
|
3425
|
-
| 'xai'
|
|
3426
|
-
| 'berachainArtio'
|
|
3427
|
-
| 'solana'
|
|
3428
|
-
| 'apechain'
|
|
3429
|
-
| 'flowMainnet'
|
|
3430
|
-
| 'campTestnet'
|
|
3431
|
-
| 'sui'
|
|
3432
|
-
| 'vanar'
|
|
3433
|
-
| 'sepolia'
|
|
3434
|
-
| 'optimism_sepolia'
|
|
3435
|
-
| 'arbitrumSepolia'
|
|
3436
|
-
| 'goerli'
|
|
3437
|
-
| 'optimism_goerli'
|
|
3438
|
-
| 'arbitrumGoerli';
|
|
3439
|
-
}
|
|
3440
3512
|
}
|
|
3441
3513
|
|
|
3442
3514
|
export interface RuleListParams {
|
|
@@ -3450,6 +3522,11 @@ export interface RuleListParams {
|
|
|
3450
3522
|
*/
|
|
3451
3523
|
limit?: number;
|
|
3452
3524
|
|
|
3525
|
+
/**
|
|
3526
|
+
* ID of the loyalty rule group to filter results
|
|
3527
|
+
*/
|
|
3528
|
+
loyaltyRuleGroupId?: string;
|
|
3529
|
+
|
|
3453
3530
|
/**
|
|
3454
3531
|
* Unique identifier for the organization to filter by
|
|
3455
3532
|
*/
|
|
@@ -3472,6 +3549,11 @@ export interface RuleCompleteParams {
|
|
|
3472
3549
|
*/
|
|
3473
3550
|
commentLink?: string;
|
|
3474
3551
|
|
|
3552
|
+
/**
|
|
3553
|
+
* ID of the choice selected by the user
|
|
3554
|
+
*/
|
|
3555
|
+
loyaltyQuestionChoiceId?: string;
|
|
3556
|
+
|
|
3475
3557
|
/**
|
|
3476
3558
|
* Unique identifier for the user
|
|
3477
3559
|
*/
|
|
@@ -3482,6 +3564,12 @@ export interface RuleCompleteParams {
|
|
|
3482
3564
|
*/
|
|
3483
3565
|
verificationCode?: string;
|
|
3484
3566
|
|
|
3567
|
+
/**
|
|
3568
|
+
* Flag indicating if only verification is required, this will not create a
|
|
3569
|
+
* transaction and reward the user
|
|
3570
|
+
*/
|
|
3571
|
+
verifyOnly?: string;
|
|
3572
|
+
|
|
3485
3573
|
/**
|
|
3486
3574
|
* Wallet address of the user can only be used if userId is not provided
|
|
3487
3575
|
*/
|