@snagsolutions/sdk 0.1.0-alpha.24 → 0.1.0-alpha.241
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 +48 -209
- package/LICENSE +1 -1
- package/README.md +15 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +28 -16
- package/core.js.map +1 -1
- package/core.mjs +28 -16
- package/core.mjs.map +1 -1
- package/index.d.mts +14 -8
- package/index.d.ts +14 -8
- package/index.d.ts.map +1 -1
- package/index.js +12 -5
- package/index.js.map +1 -1
- package/index.mjs +13 -6
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +364 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.mjs.map +1 -1
- package/resources/auth.d.ts +66 -6
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +6 -0
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -3
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +96 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +884 -135
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.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 +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +2 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +9 -9
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +6 -6
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +55 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +60 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +39 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +39 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2862 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +284 -56
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +18 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +18 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +2324 -355
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +4 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +11 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +5 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/posts.d.ts +145 -0
- package/resources/loyalty/transactions/posts.d.ts.map +1 -0
- package/resources/loyalty/transactions/posts.js +32 -0
- package/resources/loyalty/transactions/posts.js.map +1 -0
- package/resources/loyalty/transactions/posts.mjs +28 -0
- package/resources/loyalty/transactions/posts.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +121 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +566 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +110 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +83 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -248
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/minting/allowlist.d.ts +84 -0
- package/resources/minting/allowlist.d.ts.map +1 -0
- package/resources/minting/allowlist.js +42 -0
- package/resources/minting/allowlist.js.map +1 -0
- package/resources/minting/allowlist.mjs +38 -0
- package/resources/minting/allowlist.mjs.map +1 -0
- package/resources/minting/contracts.d.ts +165 -0
- package/resources/minting/contracts.d.ts.map +1 -0
- package/resources/minting/contracts.js +30 -0
- package/resources/minting/contracts.js.map +1 -0
- package/resources/minting/contracts.mjs +26 -0
- package/resources/minting/contracts.mjs.map +1 -0
- package/resources/minting/index.d.ts +5 -0
- package/resources/minting/index.d.ts.map +1 -0
- package/resources/minting/index.js +13 -0
- package/resources/minting/index.js.map +1 -0
- package/resources/minting/index.mjs +6 -0
- package/resources/minting/index.mjs.map +1 -0
- package/resources/minting/minting.d.ts +142 -0
- package/resources/minting/minting.d.ts.map +1 -0
- package/resources/minting/minting.js +79 -0
- package/resources/minting/minting.js.map +1 -0
- package/resources/minting/minting.mjs +52 -0
- package/resources/minting/minting.mjs.map +1 -0
- package/resources/minting/status.d.ts +44 -0
- package/resources/minting/status.d.ts.map +1 -0
- package/resources/minting/status.js +33 -0
- package/resources/minting/status.js.map +1 -0
- package/resources/minting/status.mjs +29 -0
- package/resources/minting/status.mjs.map +1 -0
- package/resources/minting.d.ts +1 -94
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -11
- package/resources/minting.js.map +1 -1
- package/resources/minting.mjs +1 -9
- package/resources/minting.mjs.map +1 -1
- package/resources/referral/referral.d.ts +12 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +30 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.mjs.map +1 -1
- package/resources/token-claims.d.ts +160 -0
- package/resources/token-claims.d.ts.map +1 -0
- package/resources/token-claims.js +46 -0
- package/resources/token-claims.js.map +1 -0
- package/resources/token-claims.mjs +42 -0
- package/resources/token-claims.mjs.map +1 -0
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +36 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +202 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +110 -8
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +44 -15
- package/src/index.ts +82 -4
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +556 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +124 -6
- package/src/resources/index.ts +41 -3
- package/src/resources/loyalty/account-streaks.ts +128 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +1057 -145
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +13 -2
- package/src/resources/loyalty/loyalty.ts +30 -12
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +64 -4
- package/src/resources/loyalty/questions.ts +64 -6
- package/src/resources/loyalty/rule-edits.ts +4158 -100
- package/src/resources/loyalty/rule-groups.ts +466 -64
- package/src/resources/loyalty/rules.ts +3586 -377
- package/src/resources/loyalty/transactions/index.ts +29 -0
- package/src/resources/loyalty/transactions/posts.ts +221 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +179 -0
- package/src/resources/loyalty/transactions/transactions.ts +922 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +412 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +279 -0
- package/src/resources/minting/status.ts +70 -0
- package/src/resources/minting.ts +1 -157
- package/src/resources/referral/referral.ts +15 -11
- package/src/resources/referral/users.ts +45 -5
- package/src/resources/token-claims.ts +307 -0
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +61 -3
- package/src/resources/users/users.ts +276 -38
- package/src/resources/websites/website-collections.ts +43 -1
- package/src/resources/websites/website-user-roles.ts +26 -1
- package/src/resources/websites/websites.ts +130 -8
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -7,6 +7,16 @@ import * as Core from '../../core';
|
|
|
7
7
|
export class RuleGroups extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Create a new loyalty rule groups
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response =
|
|
14
|
+
* await client.loyalty.ruleGroups.createRuleGroup({
|
|
15
|
+
* name: 'name',
|
|
16
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
17
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
createRuleGroup(
|
|
12
22
|
body: RuleGroupCreateRuleGroupParams,
|
|
@@ -17,6 +27,14 @@ export class RuleGroups extends APIResource {
|
|
|
17
27
|
|
|
18
28
|
/**
|
|
19
29
|
* Delete loyalty rule group by ID
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response =
|
|
34
|
+
* await client.loyalty.ruleGroups.deleteRuleGroup(
|
|
35
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
20
38
|
*/
|
|
21
39
|
deleteRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
22
40
|
return this._client.delete(`/api/loyalty/rule_groups/${id}`, options);
|
|
@@ -24,6 +42,12 @@ export class RuleGroups extends APIResource {
|
|
|
24
42
|
|
|
25
43
|
/**
|
|
26
44
|
* Retrieve configured loyalty rule groups
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const response =
|
|
49
|
+
* await client.loyalty.ruleGroups.getRuleGroups();
|
|
50
|
+
* ```
|
|
27
51
|
*/
|
|
28
52
|
getRuleGroups(
|
|
29
53
|
query?: RuleGroupGetRuleGroupsParams,
|
|
@@ -42,6 +66,14 @@ export class RuleGroups extends APIResource {
|
|
|
42
66
|
|
|
43
67
|
/**
|
|
44
68
|
* Update loyalty rule group by ID
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const response =
|
|
73
|
+
* await client.loyalty.ruleGroups.updateRuleGroup(
|
|
74
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
45
77
|
*/
|
|
46
78
|
updateRuleGroup(
|
|
47
79
|
id: string,
|
|
@@ -135,12 +167,14 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
135
167
|
|
|
136
168
|
endTime: string | null;
|
|
137
169
|
|
|
138
|
-
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
|
|
170
|
+
frequency: 'none' | 'once' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
|
|
139
171
|
|
|
140
172
|
hideInUi: boolean;
|
|
141
173
|
|
|
142
174
|
isRequired: boolean;
|
|
143
175
|
|
|
176
|
+
loyaltyBadge: LoyaltyRule.LoyaltyBadge;
|
|
177
|
+
|
|
144
178
|
loyaltyCurrencyId: string;
|
|
145
179
|
|
|
146
180
|
mediaUrl: string | null;
|
|
@@ -149,7 +183,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
149
183
|
|
|
150
184
|
name: string;
|
|
151
185
|
|
|
152
|
-
rewardType: 'points' | 'multiplier';
|
|
186
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
153
187
|
|
|
154
188
|
startTime: string | null;
|
|
155
189
|
|
|
@@ -177,6 +211,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
177
211
|
| 'connected_discord'
|
|
178
212
|
| 'connected_email'
|
|
179
213
|
| 'connected_epic'
|
|
214
|
+
| 'connected_github'
|
|
180
215
|
| 'connected_steam'
|
|
181
216
|
| 'connected_telegram'
|
|
182
217
|
| 'connected_twitter'
|
|
@@ -206,11 +241,65 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
206
241
|
| 'twitter_like'
|
|
207
242
|
| 'twitter_post_hashtag'
|
|
208
243
|
| 'quiz'
|
|
209
|
-
| 'poll'
|
|
244
|
+
| 'poll'
|
|
245
|
+
| 'steam_wishlist'
|
|
246
|
+
| 'liquidity_uniswap_v2'
|
|
247
|
+
| 'liquidity_uniswap_v3'
|
|
248
|
+
| 'points_airdrop'
|
|
249
|
+
| 'youtube_subscribers'
|
|
250
|
+
| 'youtube_comment'
|
|
251
|
+
| 'shopify_spend'
|
|
252
|
+
| 'swap'
|
|
253
|
+
| 'tiktok_post'
|
|
254
|
+
| 'post_impressions'
|
|
255
|
+
| 'discord_join'
|
|
256
|
+
| 'connected_youtube'
|
|
257
|
+
| 'stratus_function'
|
|
258
|
+
| 'connected_tiktok'
|
|
259
|
+
| 'tiktok_follow'
|
|
260
|
+
| 'github_repo_star'
|
|
261
|
+
| 'github_repo_fork'
|
|
262
|
+
| 'github_repo_collaborator'
|
|
263
|
+
| 'github_merge_PR'
|
|
264
|
+
| 'discord_role_grant'
|
|
265
|
+
| 'connected_reddit'
|
|
266
|
+
| 'reddit_comment'
|
|
267
|
+
| 'robinhood_token_hold'
|
|
268
|
+
| 'connected_instagram'
|
|
269
|
+
| 'instagram_post'
|
|
270
|
+
| 'instagram_follow'
|
|
271
|
+
| 'dapps_by_gas_spent';
|
|
210
272
|
}
|
|
211
273
|
|
|
212
274
|
export namespace LoyaltyRule {
|
|
275
|
+
export interface LoyaltyBadge {
|
|
276
|
+
id: string;
|
|
277
|
+
|
|
278
|
+
description: string | null;
|
|
279
|
+
|
|
280
|
+
imageUrl: string | null;
|
|
281
|
+
|
|
282
|
+
name: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
213
285
|
export interface Metadata {
|
|
286
|
+
/**
|
|
287
|
+
* Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code
|
|
288
|
+
* only.
|
|
289
|
+
*/
|
|
290
|
+
allowMultipleRedemptions?: boolean;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
294
|
+
* any rule completions count as check-in.
|
|
295
|
+
*/
|
|
296
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Number of tokens per batch.
|
|
300
|
+
*/
|
|
301
|
+
batchSize?: number | null;
|
|
302
|
+
|
|
214
303
|
/**
|
|
215
304
|
* Text displayed on the action button.
|
|
216
305
|
*/
|
|
@@ -234,7 +323,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
234
323
|
/**
|
|
235
324
|
* Text to check in the Twitter post, username, or bio.
|
|
236
325
|
*/
|
|
237
|
-
checkText?: string | null;
|
|
326
|
+
checkText?: string | Array<string> | null;
|
|
238
327
|
|
|
239
328
|
/**
|
|
240
329
|
* Array of collections associated with the rule.
|
|
@@ -244,7 +333,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
244
333
|
/**
|
|
245
334
|
* Conditions for completing the profile.
|
|
246
335
|
*/
|
|
247
|
-
completeProfileConditions?:
|
|
336
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Description of the external rule condition (only for external rules)
|
|
340
|
+
*/
|
|
341
|
+
conditionDescription?: string;
|
|
248
342
|
|
|
249
343
|
/**
|
|
250
344
|
* Object containing details for the call-to-action.
|
|
@@ -256,6 +350,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
256
350
|
*/
|
|
257
351
|
customRewardsApiKey?: string;
|
|
258
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
355
|
+
*/
|
|
356
|
+
directRpc?: boolean;
|
|
357
|
+
|
|
259
358
|
/**
|
|
260
359
|
* Array of Discord servers, channels, and roles to join.
|
|
261
360
|
*/
|
|
@@ -281,6 +380,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
281
380
|
*/
|
|
282
381
|
enableVerifiedMultiplier?: boolean;
|
|
283
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Type of ERC20 token for the loyalty rule.
|
|
385
|
+
*/
|
|
386
|
+
erc20Type?: 'erc20' | 'native';
|
|
387
|
+
|
|
284
388
|
/**
|
|
285
389
|
* Fill source of the order for the token sale
|
|
286
390
|
*/
|
|
@@ -291,6 +395,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
291
395
|
*/
|
|
292
396
|
firstReferralReward?: number | null;
|
|
293
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Name of the GitHub branch to check for PR merge.
|
|
400
|
+
*/
|
|
401
|
+
githubBranchName?: string | null;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* URL of the GitHub repository to check for star.
|
|
405
|
+
*/
|
|
406
|
+
githubRepoUrl?: string | null;
|
|
407
|
+
|
|
294
408
|
/**
|
|
295
409
|
* Flag indicating whether the fill source is included.
|
|
296
410
|
*/
|
|
@@ -301,11 +415,6 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
301
415
|
*/
|
|
302
416
|
hasNeverSold?: boolean;
|
|
303
417
|
|
|
304
|
-
/**
|
|
305
|
-
* Flag indicating whether the order source is included.
|
|
306
|
-
*/
|
|
307
|
-
hasOrderSource?: boolean;
|
|
308
|
-
|
|
309
418
|
/**
|
|
310
419
|
* Indicates if the full royalty has been paid for items.
|
|
311
420
|
*/
|
|
@@ -326,11 +435,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
326
435
|
*/
|
|
327
436
|
imageUrl?: string | null;
|
|
328
437
|
|
|
438
|
+
/**
|
|
439
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
440
|
+
*/
|
|
441
|
+
isCheckInOnEveryTxn?: boolean;
|
|
442
|
+
|
|
329
443
|
/**
|
|
330
444
|
* Indicates if the multiplier has been applied to rewards.
|
|
331
445
|
*/
|
|
332
446
|
isMultiplierApplied?: boolean;
|
|
333
447
|
|
|
448
|
+
/**
|
|
449
|
+
* Flag indicating if the rule is restricted to new users.
|
|
450
|
+
*/
|
|
451
|
+
isRestrictedToNewUsers?: boolean;
|
|
452
|
+
|
|
334
453
|
/**
|
|
335
454
|
* Flag indicating if rewards are applied retroactively.
|
|
336
455
|
*/
|
|
@@ -346,11 +465,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
346
465
|
*/
|
|
347
466
|
link?: string | null;
|
|
348
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Liquidity pool details.
|
|
470
|
+
*/
|
|
471
|
+
liquidity?: Metadata.Liquidity;
|
|
472
|
+
|
|
349
473
|
/**
|
|
350
474
|
* Maximum quantity constraint for token holding.
|
|
351
475
|
*/
|
|
352
476
|
maxQty?: number | null;
|
|
353
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Minimum follower count for the rule. Accepts both number and string values.
|
|
480
|
+
*/
|
|
481
|
+
minimumFollowerCount?: number | null;
|
|
482
|
+
|
|
354
483
|
/**
|
|
355
484
|
* Minimum quantity constraint for token holding.
|
|
356
485
|
*/
|
|
@@ -387,20 +516,40 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
387
516
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
388
517
|
|
|
389
518
|
/**
|
|
390
|
-
*
|
|
519
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
391
520
|
*/
|
|
392
|
-
|
|
521
|
+
preGeneratedPostText?: string | null;
|
|
393
522
|
|
|
394
523
|
/**
|
|
395
524
|
* Promotional code associated with the rule.
|
|
396
525
|
*/
|
|
397
526
|
promoCode?: string;
|
|
398
527
|
|
|
528
|
+
/**
|
|
529
|
+
* URL of the CSV file containing promo codes.
|
|
530
|
+
*/
|
|
531
|
+
promoCodeCsvUrl?: string;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Numbers of the promotional code to be generated.
|
|
535
|
+
*/
|
|
536
|
+
promoCodeLength?: number | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Type of the promotional code.
|
|
540
|
+
*/
|
|
541
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
542
|
+
|
|
399
543
|
/**
|
|
400
544
|
* Array defining ranges and corresponding rewards.
|
|
401
545
|
*/
|
|
402
546
|
range?: Array<Metadata.Range>;
|
|
403
547
|
|
|
548
|
+
/**
|
|
549
|
+
* ID of the Reddit post.
|
|
550
|
+
*/
|
|
551
|
+
redditPostId?: string | null;
|
|
552
|
+
|
|
404
553
|
/**
|
|
405
554
|
* Object defining referral requirements.
|
|
406
555
|
*/
|
|
@@ -411,11 +560,75 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
411
560
|
*/
|
|
412
561
|
referrerReward?: number | null;
|
|
413
562
|
|
|
563
|
+
/**
|
|
564
|
+
* Loyalty currency ID of the referrer reward.
|
|
565
|
+
*/
|
|
566
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Flag indicating if the post link is required.
|
|
570
|
+
*/
|
|
571
|
+
requirePostLink?: boolean | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Flag indicating if media metadata is required.
|
|
575
|
+
*/
|
|
576
|
+
requirePostMediaLink?: boolean | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* If enabled, the progress tracking row will be deleted after a successful claim,
|
|
580
|
+
* allowing the user to re-earn the rule.
|
|
581
|
+
*/
|
|
582
|
+
resetProgressOnClaim?: boolean | null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
586
|
+
*/
|
|
587
|
+
rewardBadgePerRange?: boolean;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
591
|
+
*/
|
|
592
|
+
rewardByBatch?: boolean | null;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Criteria to evaluate the reward.
|
|
596
|
+
*/
|
|
597
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Flag indicating if the reward is rewarded per action.
|
|
601
|
+
*/
|
|
602
|
+
rewardPerAction?: boolean | null;
|
|
603
|
+
|
|
414
604
|
/**
|
|
415
605
|
* Flag indicating if rewards are given per impression.
|
|
416
606
|
*/
|
|
417
607
|
rewardPerImpression?: boolean | null;
|
|
418
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
611
|
+
* instead of count.
|
|
612
|
+
*/
|
|
613
|
+
rewardPerValue?: boolean;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Flag indicating if the rule should reward quality posts.
|
|
617
|
+
*/
|
|
618
|
+
rewardQualityPosts?: boolean;
|
|
619
|
+
|
|
620
|
+
robinhoodSymbols?: Array<string> | null;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
624
|
+
*/
|
|
625
|
+
royaltyAddress?: string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Royalty percentage of the item.
|
|
629
|
+
*/
|
|
630
|
+
royaltyPercentage?: number;
|
|
631
|
+
|
|
419
632
|
/**
|
|
420
633
|
* Currency associated with sales.
|
|
421
634
|
*/
|
|
@@ -455,6 +668,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
455
668
|
| 'Twitch'
|
|
456
669
|
| 'X(Twitter)'
|
|
457
670
|
| 'YouTube'
|
|
671
|
+
| 'Google'
|
|
672
|
+
| 'GitHub'
|
|
673
|
+
| 'Reddit'
|
|
458
674
|
| null;
|
|
459
675
|
|
|
460
676
|
/**
|
|
@@ -467,11 +683,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
467
683
|
*/
|
|
468
684
|
socialPlatformName?: string | null;
|
|
469
685
|
|
|
686
|
+
/**
|
|
687
|
+
* ID of the Steam app.
|
|
688
|
+
*/
|
|
689
|
+
steamAppId?: string | null;
|
|
690
|
+
|
|
470
691
|
/**
|
|
471
692
|
* Array of streak milestones and corresponding rewards.
|
|
472
693
|
*/
|
|
473
694
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
474
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Metadata for swap loyalty rules
|
|
698
|
+
*/
|
|
699
|
+
swap?: Metadata.Swap;
|
|
700
|
+
|
|
475
701
|
/**
|
|
476
702
|
* ID of the Telegram channel.
|
|
477
703
|
*/
|
|
@@ -487,6 +713,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
487
713
|
*/
|
|
488
714
|
trackAllContracts?: boolean | null;
|
|
489
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
718
|
+
* completed once the progress is 100%.
|
|
719
|
+
*/
|
|
720
|
+
trackProgress?: boolean | null;
|
|
721
|
+
|
|
490
722
|
/**
|
|
491
723
|
* URL of the associated Twitter account.
|
|
492
724
|
*/
|
|
@@ -530,7 +762,28 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
530
762
|
/**
|
|
531
763
|
* Type of wallet associated with the rule.
|
|
532
764
|
*/
|
|
533
|
-
walletType?:
|
|
765
|
+
walletType?:
|
|
766
|
+
| 'evm'
|
|
767
|
+
| 'solana'
|
|
768
|
+
| 'imx'
|
|
769
|
+
| 'sui'
|
|
770
|
+
| 'ton'
|
|
771
|
+
| 'cosmos'
|
|
772
|
+
| 'ultra'
|
|
773
|
+
| 'agw'
|
|
774
|
+
| 'flow_cadence'
|
|
775
|
+
| 'substrate'
|
|
776
|
+
| null;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* ID of the Youtube channel.
|
|
780
|
+
*/
|
|
781
|
+
youtubeChannelId?: string | null;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* ID of the Youtube video.
|
|
785
|
+
*/
|
|
786
|
+
youtubeVideoId?: string | null;
|
|
534
787
|
}
|
|
535
788
|
|
|
536
789
|
export namespace Metadata {
|
|
@@ -557,7 +810,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
557
810
|
| 'avalancheFuji'
|
|
558
811
|
| 'base'
|
|
559
812
|
| 'baseSepolia'
|
|
813
|
+
| 'berachain'
|
|
560
814
|
| 'berachainArtio'
|
|
815
|
+
| 'berachainBepolia'
|
|
561
816
|
| 'binance'
|
|
562
817
|
| 'bscTestnet'
|
|
563
818
|
| 'campTestnet'
|
|
@@ -565,25 +820,44 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
565
820
|
| 'fantomTestnet'
|
|
566
821
|
| 'flowMainnet'
|
|
567
822
|
| 'mainnet'
|
|
823
|
+
| 'nexusTestnet'
|
|
568
824
|
| 'optimism'
|
|
569
825
|
| 'polygon'
|
|
570
826
|
| 'polygon_mumbai'
|
|
571
827
|
| 'skaleNebula'
|
|
828
|
+
| 'skaleEuropa'
|
|
829
|
+
| 'skaleCalypso'
|
|
572
830
|
| 'solana'
|
|
573
831
|
| 'sophon'
|
|
832
|
+
| 'sophonTestnet'
|
|
574
833
|
| 'sui'
|
|
575
834
|
| 'superseed'
|
|
576
835
|
| 'superseedSepolia'
|
|
577
836
|
| 'vanar'
|
|
578
837
|
| 'xai'
|
|
579
838
|
| 'zksync'
|
|
839
|
+
| 'coti'
|
|
840
|
+
| 'cotiTestnet'
|
|
841
|
+
| 'morph'
|
|
842
|
+
| 'morphTestnet'
|
|
843
|
+
| 'morphHolesky'
|
|
844
|
+
| 'ultra'
|
|
845
|
+
| 'ultraTestnet'
|
|
846
|
+
| 'nitrograph'
|
|
580
847
|
| 'sepolia'
|
|
581
848
|
| 'optimism_sepolia'
|
|
582
849
|
| 'arbitrumSepolia'
|
|
583
850
|
| 'goerli'
|
|
584
851
|
| 'optimism_goerli'
|
|
585
852
|
| 'arbitrumGoerli'
|
|
586
|
-
| 'basecamp'
|
|
853
|
+
| 'basecamp'
|
|
854
|
+
| 'somnia'
|
|
855
|
+
| 'zkverify'
|
|
856
|
+
| 'polkadot'
|
|
857
|
+
| 'kusama'
|
|
858
|
+
| 'horizen'
|
|
859
|
+
| 'horizenTestnet'
|
|
860
|
+
| 'flow_cadence';
|
|
587
861
|
}
|
|
588
862
|
|
|
589
863
|
/**
|
|
@@ -660,6 +934,113 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
660
934
|
id: string;
|
|
661
935
|
}
|
|
662
936
|
|
|
937
|
+
/**
|
|
938
|
+
* Liquidity pool details.
|
|
939
|
+
*/
|
|
940
|
+
export interface Liquidity {
|
|
941
|
+
/**
|
|
942
|
+
* Calculation type of the liquidity pool.
|
|
943
|
+
*/
|
|
944
|
+
calculationType?: 'fixed' | 'custom';
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
948
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
949
|
+
* USD.
|
|
950
|
+
*/
|
|
951
|
+
customFunction?: string;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Liquidity provided per day in USD
|
|
955
|
+
*/
|
|
956
|
+
liquidityPerDay?: number;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Blockchain network of the liquidity pool.
|
|
960
|
+
*/
|
|
961
|
+
network?:
|
|
962
|
+
| 'abstract'
|
|
963
|
+
| 'abstractTestnet'
|
|
964
|
+
| 'apechain'
|
|
965
|
+
| 'arbitrum'
|
|
966
|
+
| 'avalanche'
|
|
967
|
+
| 'avalancheFuji'
|
|
968
|
+
| 'base'
|
|
969
|
+
| 'baseSepolia'
|
|
970
|
+
| 'berachain'
|
|
971
|
+
| 'berachainArtio'
|
|
972
|
+
| 'berachainBepolia'
|
|
973
|
+
| 'binance'
|
|
974
|
+
| 'bscTestnet'
|
|
975
|
+
| 'campTestnet'
|
|
976
|
+
| 'fantom'
|
|
977
|
+
| 'fantomTestnet'
|
|
978
|
+
| 'flowMainnet'
|
|
979
|
+
| 'mainnet'
|
|
980
|
+
| 'nexusTestnet'
|
|
981
|
+
| 'optimism'
|
|
982
|
+
| 'polygon'
|
|
983
|
+
| 'polygon_mumbai'
|
|
984
|
+
| 'skaleNebula'
|
|
985
|
+
| 'skaleEuropa'
|
|
986
|
+
| 'skaleCalypso'
|
|
987
|
+
| 'solana'
|
|
988
|
+
| 'sophon'
|
|
989
|
+
| 'sophonTestnet'
|
|
990
|
+
| 'sui'
|
|
991
|
+
| 'superseed'
|
|
992
|
+
| 'superseedSepolia'
|
|
993
|
+
| 'vanar'
|
|
994
|
+
| 'xai'
|
|
995
|
+
| 'zksync'
|
|
996
|
+
| 'coti'
|
|
997
|
+
| 'cotiTestnet'
|
|
998
|
+
| 'morph'
|
|
999
|
+
| 'morphTestnet'
|
|
1000
|
+
| 'morphHolesky'
|
|
1001
|
+
| 'ultra'
|
|
1002
|
+
| 'ultraTestnet'
|
|
1003
|
+
| 'nitrograph'
|
|
1004
|
+
| 'sepolia'
|
|
1005
|
+
| 'optimism_sepolia'
|
|
1006
|
+
| 'arbitrumSepolia'
|
|
1007
|
+
| 'goerli'
|
|
1008
|
+
| 'optimism_goerli'
|
|
1009
|
+
| 'arbitrumGoerli'
|
|
1010
|
+
| 'basecamp'
|
|
1011
|
+
| 'somnia'
|
|
1012
|
+
| 'zkverify'
|
|
1013
|
+
| 'polkadot'
|
|
1014
|
+
| 'kusama'
|
|
1015
|
+
| 'horizen'
|
|
1016
|
+
| 'horizenTestnet'
|
|
1017
|
+
| 'flow_cadence';
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1021
|
+
*/
|
|
1022
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Array of liquidity pools associated with the rule.
|
|
1026
|
+
*/
|
|
1027
|
+
pools?: Array<Liquidity.Pool>;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Protocol of the liquidity pool.
|
|
1031
|
+
*/
|
|
1032
|
+
protocol?: string;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export namespace Liquidity {
|
|
1036
|
+
export interface Pool {
|
|
1037
|
+
/**
|
|
1038
|
+
* Unique identifier of the liquidity pool.
|
|
1039
|
+
*/
|
|
1040
|
+
id: string;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
663
1044
|
export interface Range {
|
|
664
1045
|
/**
|
|
665
1046
|
* Reward amount for this range.
|
|
@@ -675,6 +1056,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
675
1056
|
* Start value of the range.
|
|
676
1057
|
*/
|
|
677
1058
|
startRange: number;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* ID of the loyalty badge for this range.
|
|
1062
|
+
*/
|
|
1063
|
+
loyaltyBadgeId?: string;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Amount of the loyalty multiplier for this range.
|
|
1067
|
+
*/
|
|
1068
|
+
loyaltyMultiplierAmount?: number;
|
|
678
1069
|
}
|
|
679
1070
|
|
|
680
1071
|
/**
|
|
@@ -727,20 +1118,15 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
727
1118
|
* Object containing details of the associated smart contract.
|
|
728
1119
|
*/
|
|
729
1120
|
export interface SmartContract {
|
|
730
|
-
/**
|
|
731
|
-
* ABI of the smart contract.
|
|
732
|
-
*/
|
|
733
|
-
abi?: string | null;
|
|
734
|
-
|
|
735
1121
|
/**
|
|
736
1122
|
* Mapping of addresses for the smart contract.
|
|
737
1123
|
*/
|
|
738
1124
|
addressMapping?: string | null;
|
|
739
1125
|
|
|
740
1126
|
/**
|
|
741
|
-
*
|
|
1127
|
+
* Object containing details of the amount multiplier from the event.
|
|
742
1128
|
*/
|
|
743
|
-
|
|
1129
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
744
1130
|
|
|
745
1131
|
/**
|
|
746
1132
|
* ID of the smart contract.
|
|
@@ -752,68 +1138,31 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
752
1138
|
*/
|
|
753
1139
|
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
754
1140
|
|
|
755
|
-
/**
|
|
756
|
-
* Time range applied to the rule.
|
|
757
|
-
*/
|
|
758
|
-
customRange?: SmartContract.CustomRange | null;
|
|
759
|
-
|
|
760
1141
|
/**
|
|
761
1142
|
* Event emitted by the smart contract.
|
|
762
1143
|
*/
|
|
763
1144
|
event?: string | null;
|
|
764
1145
|
|
|
765
|
-
/**
|
|
766
|
-
* Maximum value allowed for the parameter.
|
|
767
|
-
*/
|
|
768
|
-
max?: number | null;
|
|
769
|
-
|
|
770
1146
|
/**
|
|
771
1147
|
* Array of parameters for the smart contract.
|
|
772
1148
|
*/
|
|
773
1149
|
params?: Array<SmartContract.Param> | null;
|
|
774
1150
|
|
|
775
1151
|
/**
|
|
776
|
-
*
|
|
1152
|
+
* Type of the smart contract interaction.
|
|
777
1153
|
*/
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Flag indicating if a custom range is applied.
|
|
782
|
-
*/
|
|
783
|
-
withCustomRange?: boolean | null;
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Flag indicating if a maximum limit is applied.
|
|
787
|
-
*/
|
|
788
|
-
withMax?: boolean | null;
|
|
1154
|
+
type?: 'function' | 'event' | null;
|
|
789
1155
|
}
|
|
790
1156
|
|
|
791
1157
|
export namespace SmartContract {
|
|
792
|
-
export interface Bonus {
|
|
793
|
-
/**
|
|
794
|
-
* Amount of the bonus.
|
|
795
|
-
*/
|
|
796
|
-
amount?: number | null;
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* Number of times the bonus is applied.
|
|
800
|
-
*/
|
|
801
|
-
count?: number | null;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
1158
|
/**
|
|
805
|
-
*
|
|
1159
|
+
* Object containing details of the amount multiplier from the event.
|
|
806
1160
|
*/
|
|
807
|
-
export interface
|
|
808
|
-
/**
|
|
809
|
-
* End time of the custom range.
|
|
810
|
-
*/
|
|
811
|
-
endsAt?: string | null;
|
|
812
|
-
|
|
1161
|
+
export interface AmountMultiplier {
|
|
813
1162
|
/**
|
|
814
|
-
*
|
|
1163
|
+
* Mapping of the value for the smart contract.
|
|
815
1164
|
*/
|
|
816
|
-
|
|
1165
|
+
valueMapping?: string | null;
|
|
817
1166
|
}
|
|
818
1167
|
|
|
819
1168
|
export interface Param {
|
|
@@ -857,6 +1206,59 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
857
1206
|
*/
|
|
858
1207
|
streakMilestone: number;
|
|
859
1208
|
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Metadata for swap loyalty rules
|
|
1212
|
+
*/
|
|
1213
|
+
export interface Swap {
|
|
1214
|
+
from?: Swap.From;
|
|
1215
|
+
|
|
1216
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1217
|
+
|
|
1218
|
+
relayReferrerId?: string;
|
|
1219
|
+
|
|
1220
|
+
requireCrossChainSwap?: boolean;
|
|
1221
|
+
|
|
1222
|
+
to?: Swap.To;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
export namespace Swap {
|
|
1226
|
+
export interface From {
|
|
1227
|
+
chain?: 'any' | number | string;
|
|
1228
|
+
|
|
1229
|
+
mode?: 'any' | 'specific';
|
|
1230
|
+
|
|
1231
|
+
tokens?: Array<From.Token>;
|
|
1232
|
+
|
|
1233
|
+
trackAmount?: boolean;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export namespace From {
|
|
1237
|
+
export interface Token {
|
|
1238
|
+
address: string;
|
|
1239
|
+
|
|
1240
|
+
chainId: string;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
export interface To {
|
|
1245
|
+
chain?: 'any' | number | string;
|
|
1246
|
+
|
|
1247
|
+
mode?: 'any' | 'specific';
|
|
1248
|
+
|
|
1249
|
+
tokens?: Array<To.Token>;
|
|
1250
|
+
|
|
1251
|
+
trackAmount?: boolean;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export namespace To {
|
|
1255
|
+
export interface Token {
|
|
1256
|
+
address: string;
|
|
1257
|
+
|
|
1258
|
+
chainId: string;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
860
1262
|
}
|
|
861
1263
|
}
|
|
862
1264
|
}
|