@snagsolutions/sdk 0.1.0-alpha.23 → 0.1.0-alpha.231
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 +13 -254
- 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 +29 -17
- package/core.js.map +1 -1
- package/core.mjs +29 -17
- 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 +368 -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 +666 -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 +2842 -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 +279 -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 +2299 -365
- 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 +564 -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 +196 -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 +118 -0
- 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 +45 -16
- 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 +561 -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 +121 -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 +790 -146
- 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 +4118 -100
- package/src/resources/loyalty/rule-groups.ts +454 -64
- package/src/resources/loyalty/rules.ts +3499 -372
- 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 +914 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +408 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +277 -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 +264 -38
- package/src/resources/websites/website-collections.ts +41 -1
- package/src/resources/websites/website-user-roles.ts +26 -1
- package/src/resources/websites/websites.ts +142 -0
- 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,63 @@ 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';
|
|
210
270
|
}
|
|
211
271
|
|
|
212
272
|
export namespace LoyaltyRule {
|
|
273
|
+
export interface LoyaltyBadge {
|
|
274
|
+
id: string;
|
|
275
|
+
|
|
276
|
+
description: string | null;
|
|
277
|
+
|
|
278
|
+
imageUrl: string | null;
|
|
279
|
+
|
|
280
|
+
name: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
213
283
|
export interface Metadata {
|
|
284
|
+
/**
|
|
285
|
+
* Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code
|
|
286
|
+
* only.
|
|
287
|
+
*/
|
|
288
|
+
allowMultipleRedemptions?: boolean;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
292
|
+
* any rule completions count as check-in.
|
|
293
|
+
*/
|
|
294
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Number of tokens per batch.
|
|
298
|
+
*/
|
|
299
|
+
batchSize?: number | null;
|
|
300
|
+
|
|
214
301
|
/**
|
|
215
302
|
* Text displayed on the action button.
|
|
216
303
|
*/
|
|
@@ -234,7 +321,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
234
321
|
/**
|
|
235
322
|
* Text to check in the Twitter post, username, or bio.
|
|
236
323
|
*/
|
|
237
|
-
checkText?: string | null;
|
|
324
|
+
checkText?: string | Array<string> | null;
|
|
238
325
|
|
|
239
326
|
/**
|
|
240
327
|
* Array of collections associated with the rule.
|
|
@@ -244,7 +331,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
244
331
|
/**
|
|
245
332
|
* Conditions for completing the profile.
|
|
246
333
|
*/
|
|
247
|
-
completeProfileConditions?:
|
|
334
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Description of the external rule condition (only for external rules)
|
|
338
|
+
*/
|
|
339
|
+
conditionDescription?: string;
|
|
248
340
|
|
|
249
341
|
/**
|
|
250
342
|
* Object containing details for the call-to-action.
|
|
@@ -256,6 +348,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
256
348
|
*/
|
|
257
349
|
customRewardsApiKey?: string;
|
|
258
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
353
|
+
*/
|
|
354
|
+
directRpc?: boolean;
|
|
355
|
+
|
|
259
356
|
/**
|
|
260
357
|
* Array of Discord servers, channels, and roles to join.
|
|
261
358
|
*/
|
|
@@ -281,6 +378,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
281
378
|
*/
|
|
282
379
|
enableVerifiedMultiplier?: boolean;
|
|
283
380
|
|
|
381
|
+
/**
|
|
382
|
+
* Type of ERC20 token for the loyalty rule.
|
|
383
|
+
*/
|
|
384
|
+
erc20Type?: 'erc20' | 'native';
|
|
385
|
+
|
|
284
386
|
/**
|
|
285
387
|
* Fill source of the order for the token sale
|
|
286
388
|
*/
|
|
@@ -291,6 +393,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
291
393
|
*/
|
|
292
394
|
firstReferralReward?: number | null;
|
|
293
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Name of the GitHub branch to check for PR merge.
|
|
398
|
+
*/
|
|
399
|
+
githubBranchName?: string | null;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* URL of the GitHub repository to check for star.
|
|
403
|
+
*/
|
|
404
|
+
githubRepoUrl?: string | null;
|
|
405
|
+
|
|
294
406
|
/**
|
|
295
407
|
* Flag indicating whether the fill source is included.
|
|
296
408
|
*/
|
|
@@ -301,11 +413,6 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
301
413
|
*/
|
|
302
414
|
hasNeverSold?: boolean;
|
|
303
415
|
|
|
304
|
-
/**
|
|
305
|
-
* Flag indicating whether the order source is included.
|
|
306
|
-
*/
|
|
307
|
-
hasOrderSource?: boolean;
|
|
308
|
-
|
|
309
416
|
/**
|
|
310
417
|
* Indicates if the full royalty has been paid for items.
|
|
311
418
|
*/
|
|
@@ -326,11 +433,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
326
433
|
*/
|
|
327
434
|
imageUrl?: string | null;
|
|
328
435
|
|
|
436
|
+
/**
|
|
437
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
438
|
+
*/
|
|
439
|
+
isCheckInOnEveryTxn?: boolean;
|
|
440
|
+
|
|
329
441
|
/**
|
|
330
442
|
* Indicates if the multiplier has been applied to rewards.
|
|
331
443
|
*/
|
|
332
444
|
isMultiplierApplied?: boolean;
|
|
333
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Flag indicating if the rule is restricted to new users.
|
|
448
|
+
*/
|
|
449
|
+
isRestrictedToNewUsers?: boolean;
|
|
450
|
+
|
|
334
451
|
/**
|
|
335
452
|
* Flag indicating if rewards are applied retroactively.
|
|
336
453
|
*/
|
|
@@ -346,11 +463,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
346
463
|
*/
|
|
347
464
|
link?: string | null;
|
|
348
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Liquidity pool details.
|
|
468
|
+
*/
|
|
469
|
+
liquidity?: Metadata.Liquidity;
|
|
470
|
+
|
|
349
471
|
/**
|
|
350
472
|
* Maximum quantity constraint for token holding.
|
|
351
473
|
*/
|
|
352
474
|
maxQty?: number | null;
|
|
353
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Minimum follower count for the rule. Accepts both number and string values.
|
|
478
|
+
*/
|
|
479
|
+
minimumFollowerCount?: number | null;
|
|
480
|
+
|
|
354
481
|
/**
|
|
355
482
|
* Minimum quantity constraint for token holding.
|
|
356
483
|
*/
|
|
@@ -387,20 +514,40 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
387
514
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
388
515
|
|
|
389
516
|
/**
|
|
390
|
-
*
|
|
517
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
391
518
|
*/
|
|
392
|
-
|
|
519
|
+
preGeneratedPostText?: string | null;
|
|
393
520
|
|
|
394
521
|
/**
|
|
395
522
|
* Promotional code associated with the rule.
|
|
396
523
|
*/
|
|
397
524
|
promoCode?: string;
|
|
398
525
|
|
|
526
|
+
/**
|
|
527
|
+
* URL of the CSV file containing promo codes.
|
|
528
|
+
*/
|
|
529
|
+
promoCodeCsvUrl?: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Numbers of the promotional code to be generated.
|
|
533
|
+
*/
|
|
534
|
+
promoCodeLength?: number | null;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Type of the promotional code.
|
|
538
|
+
*/
|
|
539
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
540
|
+
|
|
399
541
|
/**
|
|
400
542
|
* Array defining ranges and corresponding rewards.
|
|
401
543
|
*/
|
|
402
544
|
range?: Array<Metadata.Range>;
|
|
403
545
|
|
|
546
|
+
/**
|
|
547
|
+
* ID of the Reddit post.
|
|
548
|
+
*/
|
|
549
|
+
redditPostId?: string | null;
|
|
550
|
+
|
|
404
551
|
/**
|
|
405
552
|
* Object defining referral requirements.
|
|
406
553
|
*/
|
|
@@ -411,11 +558,69 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
411
558
|
*/
|
|
412
559
|
referrerReward?: number | null;
|
|
413
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Loyalty currency ID of the referrer reward.
|
|
563
|
+
*/
|
|
564
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Flag indicating if the post link is required.
|
|
568
|
+
*/
|
|
569
|
+
requirePostLink?: boolean | null;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Flag indicating if media metadata is required.
|
|
573
|
+
*/
|
|
574
|
+
requirePostMediaLink?: boolean | null;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
578
|
+
*/
|
|
579
|
+
rewardBadgePerRange?: boolean;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
583
|
+
*/
|
|
584
|
+
rewardByBatch?: boolean | null;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Criteria to evaluate the reward.
|
|
588
|
+
*/
|
|
589
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Flag indicating if the reward is rewarded per action.
|
|
593
|
+
*/
|
|
594
|
+
rewardPerAction?: boolean | null;
|
|
595
|
+
|
|
414
596
|
/**
|
|
415
597
|
* Flag indicating if rewards are given per impression.
|
|
416
598
|
*/
|
|
417
599
|
rewardPerImpression?: boolean | null;
|
|
418
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
603
|
+
* instead of count.
|
|
604
|
+
*/
|
|
605
|
+
rewardPerValue?: boolean;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Flag indicating if the rule should reward quality posts.
|
|
609
|
+
*/
|
|
610
|
+
rewardQualityPosts?: boolean;
|
|
611
|
+
|
|
612
|
+
robinhoodSymbols?: Array<string> | null;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
616
|
+
*/
|
|
617
|
+
royaltyAddress?: string;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Royalty percentage of the item.
|
|
621
|
+
*/
|
|
622
|
+
royaltyPercentage?: number;
|
|
623
|
+
|
|
419
624
|
/**
|
|
420
625
|
* Currency associated with sales.
|
|
421
626
|
*/
|
|
@@ -455,6 +660,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
455
660
|
| 'Twitch'
|
|
456
661
|
| 'X(Twitter)'
|
|
457
662
|
| 'YouTube'
|
|
663
|
+
| 'Google'
|
|
664
|
+
| 'GitHub'
|
|
665
|
+
| 'Reddit'
|
|
458
666
|
| null;
|
|
459
667
|
|
|
460
668
|
/**
|
|
@@ -467,11 +675,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
467
675
|
*/
|
|
468
676
|
socialPlatformName?: string | null;
|
|
469
677
|
|
|
678
|
+
/**
|
|
679
|
+
* ID of the Steam app.
|
|
680
|
+
*/
|
|
681
|
+
steamAppId?: string | null;
|
|
682
|
+
|
|
470
683
|
/**
|
|
471
684
|
* Array of streak milestones and corresponding rewards.
|
|
472
685
|
*/
|
|
473
686
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
474
687
|
|
|
688
|
+
/**
|
|
689
|
+
* Metadata for swap loyalty rules
|
|
690
|
+
*/
|
|
691
|
+
swap?: Metadata.Swap;
|
|
692
|
+
|
|
475
693
|
/**
|
|
476
694
|
* ID of the Telegram channel.
|
|
477
695
|
*/
|
|
@@ -487,6 +705,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
487
705
|
*/
|
|
488
706
|
trackAllContracts?: boolean | null;
|
|
489
707
|
|
|
708
|
+
/**
|
|
709
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
710
|
+
* completed once the progress is 100%.
|
|
711
|
+
*/
|
|
712
|
+
trackProgress?: boolean | null;
|
|
713
|
+
|
|
490
714
|
/**
|
|
491
715
|
* URL of the associated Twitter account.
|
|
492
716
|
*/
|
|
@@ -530,7 +754,28 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
530
754
|
/**
|
|
531
755
|
* Type of wallet associated with the rule.
|
|
532
756
|
*/
|
|
533
|
-
walletType?:
|
|
757
|
+
walletType?:
|
|
758
|
+
| 'evm'
|
|
759
|
+
| 'solana'
|
|
760
|
+
| 'imx'
|
|
761
|
+
| 'sui'
|
|
762
|
+
| 'ton'
|
|
763
|
+
| 'cosmos'
|
|
764
|
+
| 'ultra'
|
|
765
|
+
| 'agw'
|
|
766
|
+
| 'flow_cadence'
|
|
767
|
+
| 'substrate'
|
|
768
|
+
| null;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* ID of the Youtube channel.
|
|
772
|
+
*/
|
|
773
|
+
youtubeChannelId?: string | null;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* ID of the Youtube video.
|
|
777
|
+
*/
|
|
778
|
+
youtubeVideoId?: string | null;
|
|
534
779
|
}
|
|
535
780
|
|
|
536
781
|
export namespace Metadata {
|
|
@@ -557,7 +802,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
557
802
|
| 'avalancheFuji'
|
|
558
803
|
| 'base'
|
|
559
804
|
| 'baseSepolia'
|
|
805
|
+
| 'berachain'
|
|
560
806
|
| 'berachainArtio'
|
|
807
|
+
| 'berachainBepolia'
|
|
561
808
|
| 'binance'
|
|
562
809
|
| 'bscTestnet'
|
|
563
810
|
| 'campTestnet'
|
|
@@ -565,25 +812,42 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
565
812
|
| 'fantomTestnet'
|
|
566
813
|
| 'flowMainnet'
|
|
567
814
|
| 'mainnet'
|
|
815
|
+
| 'nexusTestnet'
|
|
568
816
|
| 'optimism'
|
|
569
817
|
| 'polygon'
|
|
570
818
|
| 'polygon_mumbai'
|
|
571
819
|
| 'skaleNebula'
|
|
820
|
+
| 'skaleEuropa'
|
|
821
|
+
| 'skaleCalypso'
|
|
572
822
|
| 'solana'
|
|
573
823
|
| 'sophon'
|
|
824
|
+
| 'sophonTestnet'
|
|
574
825
|
| 'sui'
|
|
575
826
|
| 'superseed'
|
|
576
827
|
| 'superseedSepolia'
|
|
577
828
|
| 'vanar'
|
|
578
829
|
| 'xai'
|
|
579
830
|
| 'zksync'
|
|
831
|
+
| 'coti'
|
|
832
|
+
| 'cotiTestnet'
|
|
833
|
+
| 'morph'
|
|
834
|
+
| 'morphTestnet'
|
|
835
|
+
| 'morphHolesky'
|
|
836
|
+
| 'ultra'
|
|
837
|
+
| 'ultraTestnet'
|
|
838
|
+
| 'nitrograph'
|
|
580
839
|
| 'sepolia'
|
|
581
840
|
| 'optimism_sepolia'
|
|
582
841
|
| 'arbitrumSepolia'
|
|
583
842
|
| 'goerli'
|
|
584
843
|
| 'optimism_goerli'
|
|
585
844
|
| 'arbitrumGoerli'
|
|
586
|
-
| 'basecamp'
|
|
845
|
+
| 'basecamp'
|
|
846
|
+
| 'somnia'
|
|
847
|
+
| 'zkverify'
|
|
848
|
+
| 'polkadot'
|
|
849
|
+
| 'kusama'
|
|
850
|
+
| 'flow_cadence';
|
|
587
851
|
}
|
|
588
852
|
|
|
589
853
|
/**
|
|
@@ -660,6 +924,111 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
660
924
|
id: string;
|
|
661
925
|
}
|
|
662
926
|
|
|
927
|
+
/**
|
|
928
|
+
* Liquidity pool details.
|
|
929
|
+
*/
|
|
930
|
+
export interface Liquidity {
|
|
931
|
+
/**
|
|
932
|
+
* Calculation type of the liquidity pool.
|
|
933
|
+
*/
|
|
934
|
+
calculationType?: 'fixed' | 'custom';
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
938
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
939
|
+
* USD.
|
|
940
|
+
*/
|
|
941
|
+
customFunction?: string;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Liquidity provided per day in USD
|
|
945
|
+
*/
|
|
946
|
+
liquidityPerDay?: number;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Blockchain network of the liquidity pool.
|
|
950
|
+
*/
|
|
951
|
+
network?:
|
|
952
|
+
| 'abstract'
|
|
953
|
+
| 'abstractTestnet'
|
|
954
|
+
| 'apechain'
|
|
955
|
+
| 'arbitrum'
|
|
956
|
+
| 'avalanche'
|
|
957
|
+
| 'avalancheFuji'
|
|
958
|
+
| 'base'
|
|
959
|
+
| 'baseSepolia'
|
|
960
|
+
| 'berachain'
|
|
961
|
+
| 'berachainArtio'
|
|
962
|
+
| 'berachainBepolia'
|
|
963
|
+
| 'binance'
|
|
964
|
+
| 'bscTestnet'
|
|
965
|
+
| 'campTestnet'
|
|
966
|
+
| 'fantom'
|
|
967
|
+
| 'fantomTestnet'
|
|
968
|
+
| 'flowMainnet'
|
|
969
|
+
| 'mainnet'
|
|
970
|
+
| 'nexusTestnet'
|
|
971
|
+
| 'optimism'
|
|
972
|
+
| 'polygon'
|
|
973
|
+
| 'polygon_mumbai'
|
|
974
|
+
| 'skaleNebula'
|
|
975
|
+
| 'skaleEuropa'
|
|
976
|
+
| 'skaleCalypso'
|
|
977
|
+
| 'solana'
|
|
978
|
+
| 'sophon'
|
|
979
|
+
| 'sophonTestnet'
|
|
980
|
+
| 'sui'
|
|
981
|
+
| 'superseed'
|
|
982
|
+
| 'superseedSepolia'
|
|
983
|
+
| 'vanar'
|
|
984
|
+
| 'xai'
|
|
985
|
+
| 'zksync'
|
|
986
|
+
| 'coti'
|
|
987
|
+
| 'cotiTestnet'
|
|
988
|
+
| 'morph'
|
|
989
|
+
| 'morphTestnet'
|
|
990
|
+
| 'morphHolesky'
|
|
991
|
+
| 'ultra'
|
|
992
|
+
| 'ultraTestnet'
|
|
993
|
+
| 'nitrograph'
|
|
994
|
+
| 'sepolia'
|
|
995
|
+
| 'optimism_sepolia'
|
|
996
|
+
| 'arbitrumSepolia'
|
|
997
|
+
| 'goerli'
|
|
998
|
+
| 'optimism_goerli'
|
|
999
|
+
| 'arbitrumGoerli'
|
|
1000
|
+
| 'basecamp'
|
|
1001
|
+
| 'somnia'
|
|
1002
|
+
| 'zkverify'
|
|
1003
|
+
| 'polkadot'
|
|
1004
|
+
| 'kusama'
|
|
1005
|
+
| 'flow_cadence';
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1009
|
+
*/
|
|
1010
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Array of liquidity pools associated with the rule.
|
|
1014
|
+
*/
|
|
1015
|
+
pools?: Array<Liquidity.Pool>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Protocol of the liquidity pool.
|
|
1019
|
+
*/
|
|
1020
|
+
protocol?: string;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export namespace Liquidity {
|
|
1024
|
+
export interface Pool {
|
|
1025
|
+
/**
|
|
1026
|
+
* Unique identifier of the liquidity pool.
|
|
1027
|
+
*/
|
|
1028
|
+
id: string;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
663
1032
|
export interface Range {
|
|
664
1033
|
/**
|
|
665
1034
|
* Reward amount for this range.
|
|
@@ -675,6 +1044,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
675
1044
|
* Start value of the range.
|
|
676
1045
|
*/
|
|
677
1046
|
startRange: number;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* ID of the loyalty badge for this range.
|
|
1050
|
+
*/
|
|
1051
|
+
loyaltyBadgeId?: string;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Amount of the loyalty multiplier for this range.
|
|
1055
|
+
*/
|
|
1056
|
+
loyaltyMultiplierAmount?: number;
|
|
678
1057
|
}
|
|
679
1058
|
|
|
680
1059
|
/**
|
|
@@ -727,20 +1106,15 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
727
1106
|
* Object containing details of the associated smart contract.
|
|
728
1107
|
*/
|
|
729
1108
|
export interface SmartContract {
|
|
730
|
-
/**
|
|
731
|
-
* ABI of the smart contract.
|
|
732
|
-
*/
|
|
733
|
-
abi?: string | null;
|
|
734
|
-
|
|
735
1109
|
/**
|
|
736
1110
|
* Mapping of addresses for the smart contract.
|
|
737
1111
|
*/
|
|
738
1112
|
addressMapping?: string | null;
|
|
739
1113
|
|
|
740
1114
|
/**
|
|
741
|
-
*
|
|
1115
|
+
* Object containing details of the amount multiplier from the event.
|
|
742
1116
|
*/
|
|
743
|
-
|
|
1117
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
744
1118
|
|
|
745
1119
|
/**
|
|
746
1120
|
* ID of the smart contract.
|
|
@@ -752,68 +1126,31 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
752
1126
|
*/
|
|
753
1127
|
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
754
1128
|
|
|
755
|
-
/**
|
|
756
|
-
* Time range applied to the rule.
|
|
757
|
-
*/
|
|
758
|
-
customRange?: SmartContract.CustomRange | null;
|
|
759
|
-
|
|
760
1129
|
/**
|
|
761
1130
|
* Event emitted by the smart contract.
|
|
762
1131
|
*/
|
|
763
1132
|
event?: string | null;
|
|
764
1133
|
|
|
765
|
-
/**
|
|
766
|
-
* Maximum value allowed for the parameter.
|
|
767
|
-
*/
|
|
768
|
-
max?: number | null;
|
|
769
|
-
|
|
770
1134
|
/**
|
|
771
1135
|
* Array of parameters for the smart contract.
|
|
772
1136
|
*/
|
|
773
1137
|
params?: Array<SmartContract.Param> | null;
|
|
774
1138
|
|
|
775
1139
|
/**
|
|
776
|
-
*
|
|
1140
|
+
* Type of the smart contract interaction.
|
|
777
1141
|
*/
|
|
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;
|
|
1142
|
+
type?: 'function' | 'event' | null;
|
|
789
1143
|
}
|
|
790
1144
|
|
|
791
1145
|
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
1146
|
/**
|
|
805
|
-
*
|
|
1147
|
+
* Object containing details of the amount multiplier from the event.
|
|
806
1148
|
*/
|
|
807
|
-
export interface
|
|
1149
|
+
export interface AmountMultiplier {
|
|
808
1150
|
/**
|
|
809
|
-
*
|
|
1151
|
+
* Mapping of the value for the smart contract.
|
|
810
1152
|
*/
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Start time of the custom range.
|
|
815
|
-
*/
|
|
816
|
-
startsAt?: string | null;
|
|
1153
|
+
valueMapping?: string | null;
|
|
817
1154
|
}
|
|
818
1155
|
|
|
819
1156
|
export interface Param {
|
|
@@ -857,6 +1194,59 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
857
1194
|
*/
|
|
858
1195
|
streakMilestone: number;
|
|
859
1196
|
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Metadata for swap loyalty rules
|
|
1200
|
+
*/
|
|
1201
|
+
export interface Swap {
|
|
1202
|
+
from?: Swap.From;
|
|
1203
|
+
|
|
1204
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1205
|
+
|
|
1206
|
+
relayReferrerId?: string;
|
|
1207
|
+
|
|
1208
|
+
requireCrossChainSwap?: boolean;
|
|
1209
|
+
|
|
1210
|
+
to?: Swap.To;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
export namespace Swap {
|
|
1214
|
+
export interface From {
|
|
1215
|
+
chain?: 'any' | number | string;
|
|
1216
|
+
|
|
1217
|
+
mode?: 'any' | 'specific';
|
|
1218
|
+
|
|
1219
|
+
tokens?: Array<From.Token>;
|
|
1220
|
+
|
|
1221
|
+
trackAmount?: boolean;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
export namespace From {
|
|
1225
|
+
export interface Token {
|
|
1226
|
+
address: string;
|
|
1227
|
+
|
|
1228
|
+
chainId: string;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
export interface To {
|
|
1233
|
+
chain?: 'any' | number | string;
|
|
1234
|
+
|
|
1235
|
+
mode?: 'any' | 'specific';
|
|
1236
|
+
|
|
1237
|
+
tokens?: Array<To.Token>;
|
|
1238
|
+
|
|
1239
|
+
trackAmount?: boolean;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
export namespace To {
|
|
1243
|
+
export interface Token {
|
|
1244
|
+
address: string;
|
|
1245
|
+
|
|
1246
|
+
chainId: string;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
860
1250
|
}
|
|
861
1251
|
}
|
|
862
1252
|
}
|