@snagsolutions/sdk 0.1.0-alpha.26 → 0.1.0-alpha.261
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 +151 -151
- package/LICENSE +1 -1
- package/README.md +15 -23
- package/core.d.ts +9 -6
- package/core.d.ts.map +1 -1
- package/core.js +36 -33
- package/core.js.map +1 -1
- package/core.mjs +36 -33
- package/core.mjs.map +1 -1
- package/index.d.mts +15 -9
- package/index.d.ts +15 -9
- package/index.d.ts.map +1 -1
- package/index.js +13 -6
- package/index.js.map +1 -1
- package/index.mjs +14 -7
- package/index.mjs.map +1 -1
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +33 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- 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 +341 -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 +885 -136
- 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 +2898 -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 +2368 -346
- 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 -253
- 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 +146 -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 +162 -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 +40 -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 +203 -36
- 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/index.d.ts +1 -1
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +1 -1
- package/resources/websites/index.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +0 -69
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +0 -16
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +0 -16
- 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 +21 -99
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +9 -1
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +10 -2
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +40 -36
- package/src/index.ts +84 -6
- package/src/internal/utils/query.ts +7 -0
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +523 -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 +1058 -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 +4208 -94
- package/src/resources/loyalty/rule-groups.ts +474 -64
- package/src/resources/loyalty/rules.ts +3708 -403
- 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 +932 -0
- package/src/resources/loyalty/transactions.ts +1 -446
- package/src/resources/minting/allowlist.ts +116 -0
- package/src/resources/minting/contracts.ts +415 -0
- package/src/resources/minting/index.ts +29 -0
- package/src/resources/minting/minting.ts +285 -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 +311 -0
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +66 -3
- package/src/resources/users/users.ts +277 -39
- package/src/resources/websites/index.ts +1 -6
- package/src/resources/websites/website-collections.ts +1 -146
- package/src/resources/websites/website-user-roles.ts +26 -1
- package/src/resources/websites/websites.ts +22 -127
- 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,70 @@ 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
|
+
| 'connected_phone'
|
|
272
|
+
| 'dapps_by_gas_spent'
|
|
273
|
+
| 'dapps_by_active_users'
|
|
274
|
+
| 'dapps_by_new_users'
|
|
275
|
+
| 'dapps_by_transaction_count'
|
|
276
|
+
| 'dapps_by_user_retention';
|
|
210
277
|
}
|
|
211
278
|
|
|
212
279
|
export namespace LoyaltyRule {
|
|
280
|
+
export interface LoyaltyBadge {
|
|
281
|
+
id: string;
|
|
282
|
+
|
|
283
|
+
description: string | null;
|
|
284
|
+
|
|
285
|
+
imageUrl: string | null;
|
|
286
|
+
|
|
287
|
+
name: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
213
290
|
export interface Metadata {
|
|
291
|
+
/**
|
|
292
|
+
* Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code
|
|
293
|
+
* only.
|
|
294
|
+
*/
|
|
295
|
+
allowMultipleRedemptions?: boolean;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Array of loyalty rule IDs that count as check-in when completed. If ["any"] then
|
|
299
|
+
* any rule completions count as check-in.
|
|
300
|
+
*/
|
|
301
|
+
autoCheckInRuleIds?: Array<(string & {}) | 'any'> | null;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Number of tokens per batch.
|
|
305
|
+
*/
|
|
306
|
+
batchSize?: number | null;
|
|
307
|
+
|
|
214
308
|
/**
|
|
215
309
|
* Text displayed on the action button.
|
|
216
310
|
*/
|
|
@@ -234,7 +328,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
234
328
|
/**
|
|
235
329
|
* Text to check in the Twitter post, username, or bio.
|
|
236
330
|
*/
|
|
237
|
-
checkText?: string | null;
|
|
331
|
+
checkText?: string | Array<string> | null;
|
|
238
332
|
|
|
239
333
|
/**
|
|
240
334
|
* Array of collections associated with the rule.
|
|
@@ -244,7 +338,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
244
338
|
/**
|
|
245
339
|
* Conditions for completing the profile.
|
|
246
340
|
*/
|
|
247
|
-
completeProfileConditions?:
|
|
341
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Description of the external rule condition (only for external rules)
|
|
345
|
+
*/
|
|
346
|
+
conditionDescription?: string;
|
|
248
347
|
|
|
249
348
|
/**
|
|
250
349
|
* Object containing details for the call-to-action.
|
|
@@ -256,6 +355,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
256
355
|
*/
|
|
257
356
|
customRewardsApiKey?: string;
|
|
258
357
|
|
|
358
|
+
/**
|
|
359
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
360
|
+
*/
|
|
361
|
+
directRpc?: boolean;
|
|
362
|
+
|
|
259
363
|
/**
|
|
260
364
|
* Array of Discord servers, channels, and roles to join.
|
|
261
365
|
*/
|
|
@@ -281,6 +385,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
281
385
|
*/
|
|
282
386
|
enableVerifiedMultiplier?: boolean;
|
|
283
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Type of ERC20 token for the loyalty rule.
|
|
390
|
+
*/
|
|
391
|
+
erc20Type?: 'erc20' | 'native';
|
|
392
|
+
|
|
284
393
|
/**
|
|
285
394
|
* Fill source of the order for the token sale
|
|
286
395
|
*/
|
|
@@ -291,6 +400,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
291
400
|
*/
|
|
292
401
|
firstReferralReward?: number | null;
|
|
293
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Name of the GitHub branch to check for PR merge.
|
|
405
|
+
*/
|
|
406
|
+
githubBranchName?: string | null;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* URL of the GitHub repository to check for star.
|
|
410
|
+
*/
|
|
411
|
+
githubRepoUrl?: string | null;
|
|
412
|
+
|
|
294
413
|
/**
|
|
295
414
|
* Flag indicating whether the fill source is included.
|
|
296
415
|
*/
|
|
@@ -301,11 +420,6 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
301
420
|
*/
|
|
302
421
|
hasNeverSold?: boolean;
|
|
303
422
|
|
|
304
|
-
/**
|
|
305
|
-
* Flag indicating whether the order source is included.
|
|
306
|
-
*/
|
|
307
|
-
hasOrderSource?: boolean;
|
|
308
|
-
|
|
309
423
|
/**
|
|
310
424
|
* Indicates if the full royalty has been paid for items.
|
|
311
425
|
*/
|
|
@@ -326,11 +440,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
326
440
|
*/
|
|
327
441
|
imageUrl?: string | null;
|
|
328
442
|
|
|
443
|
+
/**
|
|
444
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
445
|
+
*/
|
|
446
|
+
isCheckInOnEveryTxn?: boolean;
|
|
447
|
+
|
|
329
448
|
/**
|
|
330
449
|
* Indicates if the multiplier has been applied to rewards.
|
|
331
450
|
*/
|
|
332
451
|
isMultiplierApplied?: boolean;
|
|
333
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Flag indicating if the rule is restricted to new users.
|
|
455
|
+
*/
|
|
456
|
+
isRestrictedToNewUsers?: boolean;
|
|
457
|
+
|
|
334
458
|
/**
|
|
335
459
|
* Flag indicating if rewards are applied retroactively.
|
|
336
460
|
*/
|
|
@@ -346,11 +470,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
346
470
|
*/
|
|
347
471
|
link?: string | null;
|
|
348
472
|
|
|
473
|
+
/**
|
|
474
|
+
* Liquidity pool details.
|
|
475
|
+
*/
|
|
476
|
+
liquidity?: Metadata.Liquidity;
|
|
477
|
+
|
|
349
478
|
/**
|
|
350
479
|
* Maximum quantity constraint for token holding.
|
|
351
480
|
*/
|
|
352
481
|
maxQty?: number | null;
|
|
353
482
|
|
|
483
|
+
/**
|
|
484
|
+
* Minimum follower count for the rule. Accepts both number and string values.
|
|
485
|
+
*/
|
|
486
|
+
minimumFollowerCount?: number | null;
|
|
487
|
+
|
|
354
488
|
/**
|
|
355
489
|
* Minimum quantity constraint for token holding.
|
|
356
490
|
*/
|
|
@@ -387,20 +521,40 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
387
521
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
388
522
|
|
|
389
523
|
/**
|
|
390
|
-
*
|
|
524
|
+
* Pre-generated text template that will be used to prefill the post content.
|
|
391
525
|
*/
|
|
392
|
-
|
|
526
|
+
preGeneratedPostText?: string | null;
|
|
393
527
|
|
|
394
528
|
/**
|
|
395
529
|
* Promotional code associated with the rule.
|
|
396
530
|
*/
|
|
397
531
|
promoCode?: string;
|
|
398
532
|
|
|
533
|
+
/**
|
|
534
|
+
* URL of the CSV file containing promo codes.
|
|
535
|
+
*/
|
|
536
|
+
promoCodeCsvUrl?: string;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Numbers of the promotional code to be generated.
|
|
540
|
+
*/
|
|
541
|
+
promoCodeLength?: number | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Type of the promotional code.
|
|
545
|
+
*/
|
|
546
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
547
|
+
|
|
399
548
|
/**
|
|
400
549
|
* Array defining ranges and corresponding rewards.
|
|
401
550
|
*/
|
|
402
551
|
range?: Array<Metadata.Range>;
|
|
403
552
|
|
|
553
|
+
/**
|
|
554
|
+
* ID of the Reddit post.
|
|
555
|
+
*/
|
|
556
|
+
redditPostId?: string | null;
|
|
557
|
+
|
|
404
558
|
/**
|
|
405
559
|
* Object defining referral requirements.
|
|
406
560
|
*/
|
|
@@ -411,11 +565,75 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
411
565
|
*/
|
|
412
566
|
referrerReward?: number | null;
|
|
413
567
|
|
|
568
|
+
/**
|
|
569
|
+
* Loyalty currency ID of the referrer reward.
|
|
570
|
+
*/
|
|
571
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Flag indicating if the post link is required.
|
|
575
|
+
*/
|
|
576
|
+
requirePostLink?: boolean | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Flag indicating if media metadata is required.
|
|
580
|
+
*/
|
|
581
|
+
requirePostMediaLink?: boolean | null;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* If enabled, the progress tracking row will be deleted after a successful claim,
|
|
585
|
+
* allowing the user to re-earn the rule.
|
|
586
|
+
*/
|
|
587
|
+
resetProgressOnClaim?: boolean | null;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
591
|
+
*/
|
|
592
|
+
rewardBadgePerRange?: boolean;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
596
|
+
*/
|
|
597
|
+
rewardByBatch?: boolean | null;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Criteria to evaluate the reward.
|
|
601
|
+
*/
|
|
602
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Flag indicating if the reward is rewarded per action.
|
|
606
|
+
*/
|
|
607
|
+
rewardPerAction?: boolean | null;
|
|
608
|
+
|
|
414
609
|
/**
|
|
415
610
|
* Flag indicating if rewards are given per impression.
|
|
416
611
|
*/
|
|
417
612
|
rewardPerImpression?: boolean | null;
|
|
418
613
|
|
|
614
|
+
/**
|
|
615
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
616
|
+
* instead of count.
|
|
617
|
+
*/
|
|
618
|
+
rewardPerValue?: boolean;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Flag indicating if the rule should reward quality posts.
|
|
622
|
+
*/
|
|
623
|
+
rewardQualityPosts?: boolean;
|
|
624
|
+
|
|
625
|
+
robinhoodSymbols?: Array<string> | null;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
629
|
+
*/
|
|
630
|
+
royaltyAddress?: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Royalty percentage of the item.
|
|
634
|
+
*/
|
|
635
|
+
royaltyPercentage?: number;
|
|
636
|
+
|
|
419
637
|
/**
|
|
420
638
|
* Currency associated with sales.
|
|
421
639
|
*/
|
|
@@ -449,12 +667,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
449
667
|
| 'Discord'
|
|
450
668
|
| 'EpicGames'
|
|
451
669
|
| 'Instagram'
|
|
670
|
+
| 'Phone'
|
|
452
671
|
| 'Steam'
|
|
453
672
|
| 'Telegram'
|
|
454
673
|
| 'TikTok'
|
|
455
674
|
| 'Twitch'
|
|
456
675
|
| 'X(Twitter)'
|
|
457
676
|
| 'YouTube'
|
|
677
|
+
| 'Google'
|
|
678
|
+
| 'GitHub'
|
|
679
|
+
| 'Reddit'
|
|
458
680
|
| null;
|
|
459
681
|
|
|
460
682
|
/**
|
|
@@ -467,11 +689,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
467
689
|
*/
|
|
468
690
|
socialPlatformName?: string | null;
|
|
469
691
|
|
|
692
|
+
/**
|
|
693
|
+
* ID of the Steam app.
|
|
694
|
+
*/
|
|
695
|
+
steamAppId?: string | null;
|
|
696
|
+
|
|
470
697
|
/**
|
|
471
698
|
* Array of streak milestones and corresponding rewards.
|
|
472
699
|
*/
|
|
473
700
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
474
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Metadata for swap loyalty rules
|
|
704
|
+
*/
|
|
705
|
+
swap?: Metadata.Swap;
|
|
706
|
+
|
|
475
707
|
/**
|
|
476
708
|
* ID of the Telegram channel.
|
|
477
709
|
*/
|
|
@@ -487,6 +719,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
487
719
|
*/
|
|
488
720
|
trackAllContracts?: boolean | null;
|
|
489
721
|
|
|
722
|
+
/**
|
|
723
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
724
|
+
* completed once the progress is 100%.
|
|
725
|
+
*/
|
|
726
|
+
trackProgress?: boolean | null;
|
|
727
|
+
|
|
490
728
|
/**
|
|
491
729
|
* URL of the associated Twitter account.
|
|
492
730
|
*/
|
|
@@ -530,7 +768,28 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
530
768
|
/**
|
|
531
769
|
* Type of wallet associated with the rule.
|
|
532
770
|
*/
|
|
533
|
-
walletType?:
|
|
771
|
+
walletType?:
|
|
772
|
+
| 'evm'
|
|
773
|
+
| 'solana'
|
|
774
|
+
| 'imx'
|
|
775
|
+
| 'sui'
|
|
776
|
+
| 'ton'
|
|
777
|
+
| 'cosmos'
|
|
778
|
+
| 'ultra'
|
|
779
|
+
| 'agw'
|
|
780
|
+
| 'flow_cadence'
|
|
781
|
+
| 'substrate'
|
|
782
|
+
| null;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* ID of the Youtube channel.
|
|
786
|
+
*/
|
|
787
|
+
youtubeChannelId?: string | null;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* ID of the Youtube video.
|
|
791
|
+
*/
|
|
792
|
+
youtubeVideoId?: string | null;
|
|
534
793
|
}
|
|
535
794
|
|
|
536
795
|
export namespace Metadata {
|
|
@@ -557,7 +816,9 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
557
816
|
| 'avalancheFuji'
|
|
558
817
|
| 'base'
|
|
559
818
|
| 'baseSepolia'
|
|
819
|
+
| 'berachain'
|
|
560
820
|
| 'berachainArtio'
|
|
821
|
+
| 'berachainBepolia'
|
|
561
822
|
| 'binance'
|
|
562
823
|
| 'bscTestnet'
|
|
563
824
|
| 'campTestnet'
|
|
@@ -565,25 +826,45 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
565
826
|
| 'fantomTestnet'
|
|
566
827
|
| 'flowMainnet'
|
|
567
828
|
| 'mainnet'
|
|
829
|
+
| 'nexusTestnet'
|
|
568
830
|
| 'optimism'
|
|
569
831
|
| 'polygon'
|
|
570
832
|
| 'polygon_mumbai'
|
|
571
833
|
| 'skaleNebula'
|
|
834
|
+
| 'skaleEuropa'
|
|
835
|
+
| 'skaleCalypso'
|
|
572
836
|
| 'solana'
|
|
573
837
|
| 'sophon'
|
|
838
|
+
| 'sophonTestnet'
|
|
574
839
|
| 'sui'
|
|
575
840
|
| 'superseed'
|
|
576
841
|
| 'superseedSepolia'
|
|
577
842
|
| 'vanar'
|
|
578
843
|
| 'xai'
|
|
579
844
|
| 'zksync'
|
|
845
|
+
| 'coti'
|
|
846
|
+
| 'cotiTestnet'
|
|
847
|
+
| 'dogeosTestnet'
|
|
848
|
+
| 'morph'
|
|
849
|
+
| 'morphTestnet'
|
|
850
|
+
| 'morphHolesky'
|
|
851
|
+
| 'ultra'
|
|
852
|
+
| 'ultraTestnet'
|
|
853
|
+
| 'nitrograph'
|
|
580
854
|
| 'sepolia'
|
|
581
855
|
| 'optimism_sepolia'
|
|
582
856
|
| 'arbitrumSepolia'
|
|
583
857
|
| 'goerli'
|
|
584
858
|
| 'optimism_goerli'
|
|
585
859
|
| 'arbitrumGoerli'
|
|
586
|
-
| 'basecamp'
|
|
860
|
+
| 'basecamp'
|
|
861
|
+
| 'somnia'
|
|
862
|
+
| 'zkverify'
|
|
863
|
+
| 'polkadot'
|
|
864
|
+
| 'kusama'
|
|
865
|
+
| 'horizen'
|
|
866
|
+
| 'horizenTestnet'
|
|
867
|
+
| 'flow_cadence';
|
|
587
868
|
}
|
|
588
869
|
|
|
589
870
|
/**
|
|
@@ -660,6 +941,114 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
660
941
|
id: string;
|
|
661
942
|
}
|
|
662
943
|
|
|
944
|
+
/**
|
|
945
|
+
* Liquidity pool details.
|
|
946
|
+
*/
|
|
947
|
+
export interface Liquidity {
|
|
948
|
+
/**
|
|
949
|
+
* Calculation type of the liquidity pool.
|
|
950
|
+
*/
|
|
951
|
+
calculationType?: 'fixed' | 'custom';
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
955
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
956
|
+
* USD.
|
|
957
|
+
*/
|
|
958
|
+
customFunction?: string;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Liquidity provided per day in USD
|
|
962
|
+
*/
|
|
963
|
+
liquidityPerDay?: number;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Blockchain network of the liquidity pool.
|
|
967
|
+
*/
|
|
968
|
+
network?:
|
|
969
|
+
| 'abstract'
|
|
970
|
+
| 'abstractTestnet'
|
|
971
|
+
| 'apechain'
|
|
972
|
+
| 'arbitrum'
|
|
973
|
+
| 'avalanche'
|
|
974
|
+
| 'avalancheFuji'
|
|
975
|
+
| 'base'
|
|
976
|
+
| 'baseSepolia'
|
|
977
|
+
| 'berachain'
|
|
978
|
+
| 'berachainArtio'
|
|
979
|
+
| 'berachainBepolia'
|
|
980
|
+
| 'binance'
|
|
981
|
+
| 'bscTestnet'
|
|
982
|
+
| 'campTestnet'
|
|
983
|
+
| 'fantom'
|
|
984
|
+
| 'fantomTestnet'
|
|
985
|
+
| 'flowMainnet'
|
|
986
|
+
| 'mainnet'
|
|
987
|
+
| 'nexusTestnet'
|
|
988
|
+
| 'optimism'
|
|
989
|
+
| 'polygon'
|
|
990
|
+
| 'polygon_mumbai'
|
|
991
|
+
| 'skaleNebula'
|
|
992
|
+
| 'skaleEuropa'
|
|
993
|
+
| 'skaleCalypso'
|
|
994
|
+
| 'solana'
|
|
995
|
+
| 'sophon'
|
|
996
|
+
| 'sophonTestnet'
|
|
997
|
+
| 'sui'
|
|
998
|
+
| 'superseed'
|
|
999
|
+
| 'superseedSepolia'
|
|
1000
|
+
| 'vanar'
|
|
1001
|
+
| 'xai'
|
|
1002
|
+
| 'zksync'
|
|
1003
|
+
| 'coti'
|
|
1004
|
+
| 'cotiTestnet'
|
|
1005
|
+
| 'dogeosTestnet'
|
|
1006
|
+
| 'morph'
|
|
1007
|
+
| 'morphTestnet'
|
|
1008
|
+
| 'morphHolesky'
|
|
1009
|
+
| 'ultra'
|
|
1010
|
+
| 'ultraTestnet'
|
|
1011
|
+
| 'nitrograph'
|
|
1012
|
+
| 'sepolia'
|
|
1013
|
+
| 'optimism_sepolia'
|
|
1014
|
+
| 'arbitrumSepolia'
|
|
1015
|
+
| 'goerli'
|
|
1016
|
+
| 'optimism_goerli'
|
|
1017
|
+
| 'arbitrumGoerli'
|
|
1018
|
+
| 'basecamp'
|
|
1019
|
+
| 'somnia'
|
|
1020
|
+
| 'zkverify'
|
|
1021
|
+
| 'polkadot'
|
|
1022
|
+
| 'kusama'
|
|
1023
|
+
| 'horizen'
|
|
1024
|
+
| 'horizenTestnet'
|
|
1025
|
+
| 'flow_cadence';
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1029
|
+
*/
|
|
1030
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Array of liquidity pools associated with the rule.
|
|
1034
|
+
*/
|
|
1035
|
+
pools?: Array<Liquidity.Pool>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Protocol of the liquidity pool.
|
|
1039
|
+
*/
|
|
1040
|
+
protocol?: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export namespace Liquidity {
|
|
1044
|
+
export interface Pool {
|
|
1045
|
+
/**
|
|
1046
|
+
* Unique identifier of the liquidity pool.
|
|
1047
|
+
*/
|
|
1048
|
+
id: string;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
663
1052
|
export interface Range {
|
|
664
1053
|
/**
|
|
665
1054
|
* Reward amount for this range.
|
|
@@ -675,6 +1064,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
675
1064
|
* Start value of the range.
|
|
676
1065
|
*/
|
|
677
1066
|
startRange: number;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* ID of the loyalty badge for this range.
|
|
1070
|
+
*/
|
|
1071
|
+
loyaltyBadgeId?: string;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Amount of the loyalty multiplier for this range.
|
|
1075
|
+
*/
|
|
1076
|
+
loyaltyMultiplierAmount?: number;
|
|
678
1077
|
}
|
|
679
1078
|
|
|
680
1079
|
/**
|
|
@@ -727,20 +1126,15 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
727
1126
|
* Object containing details of the associated smart contract.
|
|
728
1127
|
*/
|
|
729
1128
|
export interface SmartContract {
|
|
730
|
-
/**
|
|
731
|
-
* ABI of the smart contract.
|
|
732
|
-
*/
|
|
733
|
-
abi?: string | null;
|
|
734
|
-
|
|
735
1129
|
/**
|
|
736
1130
|
* Mapping of addresses for the smart contract.
|
|
737
1131
|
*/
|
|
738
1132
|
addressMapping?: string | null;
|
|
739
1133
|
|
|
740
1134
|
/**
|
|
741
|
-
*
|
|
1135
|
+
* Object containing details of the amount multiplier from the event.
|
|
742
1136
|
*/
|
|
743
|
-
|
|
1137
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
744
1138
|
|
|
745
1139
|
/**
|
|
746
1140
|
* ID of the smart contract.
|
|
@@ -752,68 +1146,31 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
752
1146
|
*/
|
|
753
1147
|
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
754
1148
|
|
|
755
|
-
/**
|
|
756
|
-
* Time range applied to the rule.
|
|
757
|
-
*/
|
|
758
|
-
customRange?: SmartContract.CustomRange | null;
|
|
759
|
-
|
|
760
1149
|
/**
|
|
761
1150
|
* Event emitted by the smart contract.
|
|
762
1151
|
*/
|
|
763
1152
|
event?: string | null;
|
|
764
1153
|
|
|
765
|
-
/**
|
|
766
|
-
* Maximum value allowed for the parameter.
|
|
767
|
-
*/
|
|
768
|
-
max?: number | null;
|
|
769
|
-
|
|
770
1154
|
/**
|
|
771
1155
|
* Array of parameters for the smart contract.
|
|
772
1156
|
*/
|
|
773
1157
|
params?: Array<SmartContract.Param> | null;
|
|
774
1158
|
|
|
775
1159
|
/**
|
|
776
|
-
*
|
|
1160
|
+
* Type of the smart contract interaction.
|
|
777
1161
|
*/
|
|
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;
|
|
1162
|
+
type?: 'function' | 'event' | null;
|
|
789
1163
|
}
|
|
790
1164
|
|
|
791
1165
|
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
1166
|
/**
|
|
805
|
-
*
|
|
1167
|
+
* Object containing details of the amount multiplier from the event.
|
|
806
1168
|
*/
|
|
807
|
-
export interface
|
|
808
|
-
/**
|
|
809
|
-
* End time of the custom range.
|
|
810
|
-
*/
|
|
811
|
-
endsAt?: string | null;
|
|
812
|
-
|
|
1169
|
+
export interface AmountMultiplier {
|
|
813
1170
|
/**
|
|
814
|
-
*
|
|
1171
|
+
* Mapping of the value for the smart contract.
|
|
815
1172
|
*/
|
|
816
|
-
|
|
1173
|
+
valueMapping?: string | null;
|
|
817
1174
|
}
|
|
818
1175
|
|
|
819
1176
|
export interface Param {
|
|
@@ -857,6 +1214,59 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
857
1214
|
*/
|
|
858
1215
|
streakMilestone: number;
|
|
859
1216
|
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Metadata for swap loyalty rules
|
|
1220
|
+
*/
|
|
1221
|
+
export interface Swap {
|
|
1222
|
+
from?: Swap.From;
|
|
1223
|
+
|
|
1224
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1225
|
+
|
|
1226
|
+
relayReferrerId?: string;
|
|
1227
|
+
|
|
1228
|
+
requireCrossChainSwap?: boolean;
|
|
1229
|
+
|
|
1230
|
+
to?: Swap.To;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
export namespace Swap {
|
|
1234
|
+
export interface From {
|
|
1235
|
+
chain?: 'any' | number | string;
|
|
1236
|
+
|
|
1237
|
+
mode?: 'any' | 'specific';
|
|
1238
|
+
|
|
1239
|
+
tokens?: Array<From.Token>;
|
|
1240
|
+
|
|
1241
|
+
trackAmount?: boolean;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
export namespace From {
|
|
1245
|
+
export interface Token {
|
|
1246
|
+
address: string;
|
|
1247
|
+
|
|
1248
|
+
chainId: string;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export interface To {
|
|
1253
|
+
chain?: 'any' | number | string;
|
|
1254
|
+
|
|
1255
|
+
mode?: 'any' | 'specific';
|
|
1256
|
+
|
|
1257
|
+
tokens?: Array<To.Token>;
|
|
1258
|
+
|
|
1259
|
+
trackAmount?: boolean;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
export namespace To {
|
|
1263
|
+
export interface Token {
|
|
1264
|
+
address: string;
|
|
1265
|
+
|
|
1266
|
+
chainId: string;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
860
1270
|
}
|
|
861
1271
|
}
|
|
862
1272
|
}
|