@snagsolutions/sdk 0.1.0-alpha.17 → 0.1.0-alpha.170
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 +1400 -0
- package/README.md +13 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -6
- package/index.d.ts +9 -6
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +9 -5
- 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 +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -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 +76 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +35 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +31 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +92 -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 +69 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +42 -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 +11 -3
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -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 +58 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +13 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +13 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +472 -22
- 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 +4 -4
- 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 +10 -10
- 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 +7 -7
- 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 +39 -0
- 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 +37 -2
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +31 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +31 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2626 -4
- 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 +273 -58
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +36 -0
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +36 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1887 -270
- 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 +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +61 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +23 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +19 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +292 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +61 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +34 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -247
- 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.d.ts +5 -5
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +11 -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 +28 -1
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +14 -0
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +14 -0
- package/resources/referral/users.mjs.map +1 -1
- 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 +27 -0
- 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 +159 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +53 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +53 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/index.d.ts +2 -2
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +2 -2
- 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 +23 -0
- 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 +8 -98
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +0 -6
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -7
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +30 -11
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -2
- package/src/resources/auctions/auctions.ts +432 -0
- package/src/resources/auctions/index.ts +16 -0
- package/src/resources/auctions/website-user-attributes/index.ts +10 -0
- package/src/resources/auctions/website-user-attributes/values.ts +97 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +137 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +14 -4
- package/src/resources/index.ts +12 -8
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +63 -18
- package/src/resources/loyalty/badges.ts +567 -24
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +12 -2
- package/src/resources/loyalty/loyalty.ts +33 -9
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +45 -0
- package/src/resources/loyalty/questions.ts +38 -2
- package/src/resources/loyalty/rule-edits.ts +3799 -97
- package/src/resources/loyalty/rule-groups.ts +465 -65
- package/src/resources/loyalty/rules.ts +2906 -313
- package/src/resources/loyalty/transactions/index.ts +10 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +87 -0
- package/src/resources/loyalty/transactions/transactions.ts +520 -0
- package/src/resources/loyalty/transactions.ts +1 -330
- package/src/resources/minting.ts +22 -5
- package/src/resources/referral/referral.ts +13 -11
- package/src/resources/referral/users.ts +33 -2
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +52 -0
- package/src/resources/users/users.ts +213 -5
- package/src/resources/websites/index.ts +2 -13
- package/src/resources/websites/website-collections.ts +1 -145
- package/src/resources/websites/website-user-roles.ts +23 -0
- package/src/resources/websites/websites.ts +8 -134
- 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 -4
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -9
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -5
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -5
|
@@ -5,8 +5,49 @@ import { isRequestOptions } from '../../core';
|
|
|
5
5
|
import * as Core from '../../core';
|
|
6
6
|
|
|
7
7
|
export class RuleGroups extends APIResource {
|
|
8
|
+
/**
|
|
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
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
createRuleGroup(
|
|
22
|
+
body: RuleGroupCreateRuleGroupParams,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<RuleGroupCreateRuleGroupResponse> {
|
|
25
|
+
return this._client.post('/api/loyalty/rule_groups/create', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
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
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
deleteRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
40
|
+
return this._client.delete(`/api/loyalty/rule_groups/${id}`, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
8
43
|
/**
|
|
9
44
|
* Retrieve configured loyalty rule groups
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const response =
|
|
49
|
+
* await client.loyalty.ruleGroups.getRuleGroups();
|
|
50
|
+
* ```
|
|
10
51
|
*/
|
|
11
52
|
getRuleGroups(
|
|
12
53
|
query?: RuleGroupGetRuleGroupsParams,
|
|
@@ -22,8 +63,63 @@ export class RuleGroups extends APIResource {
|
|
|
22
63
|
}
|
|
23
64
|
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
24
65
|
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
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
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
updateRuleGroup(
|
|
79
|
+
id: string,
|
|
80
|
+
body?: RuleGroupUpdateRuleGroupParams,
|
|
81
|
+
options?: Core.RequestOptions,
|
|
82
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
|
|
83
|
+
updateRuleGroup(
|
|
84
|
+
id: string,
|
|
85
|
+
options?: Core.RequestOptions,
|
|
86
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
|
|
87
|
+
updateRuleGroup(
|
|
88
|
+
id: string,
|
|
89
|
+
body: RuleGroupUpdateRuleGroupParams | Core.RequestOptions = {},
|
|
90
|
+
options?: Core.RequestOptions,
|
|
91
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse> {
|
|
92
|
+
if (isRequestOptions(body)) {
|
|
93
|
+
return this.updateRuleGroup(id, {}, body);
|
|
94
|
+
}
|
|
95
|
+
return this._client.post(`/api/loyalty/rule_groups/${id}`, { body, ...options });
|
|
96
|
+
}
|
|
25
97
|
}
|
|
26
98
|
|
|
99
|
+
export interface RuleGroupCreateRuleGroupResponse {
|
|
100
|
+
id: string;
|
|
101
|
+
|
|
102
|
+
createdAt: string;
|
|
103
|
+
|
|
104
|
+
isCollapsible: boolean;
|
|
105
|
+
|
|
106
|
+
isRequired: boolean;
|
|
107
|
+
|
|
108
|
+
name: string;
|
|
109
|
+
|
|
110
|
+
organizationId: string;
|
|
111
|
+
|
|
112
|
+
sortId: number;
|
|
113
|
+
|
|
114
|
+
subTitle: string | null;
|
|
115
|
+
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
|
|
118
|
+
websiteId: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type RuleGroupDeleteRuleGroupResponse = unknown;
|
|
122
|
+
|
|
27
123
|
export interface RuleGroupGetRuleGroupsResponse {
|
|
28
124
|
data: Array<RuleGroupGetRuleGroupsResponse.Data>;
|
|
29
125
|
|
|
@@ -77,6 +173,8 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
77
173
|
|
|
78
174
|
isRequired: boolean;
|
|
79
175
|
|
|
176
|
+
loyaltyBadge: LoyaltyRule.LoyaltyBadge;
|
|
177
|
+
|
|
80
178
|
loyaltyCurrencyId: string;
|
|
81
179
|
|
|
82
180
|
mediaUrl: string | null;
|
|
@@ -85,7 +183,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
85
183
|
|
|
86
184
|
name: string;
|
|
87
185
|
|
|
88
|
-
rewardType: 'points' | 'multiplier';
|
|
186
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
89
187
|
|
|
90
188
|
startTime: string | null;
|
|
91
189
|
|
|
@@ -142,11 +240,39 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
142
240
|
| 'twitter_like'
|
|
143
241
|
| 'twitter_post_hashtag'
|
|
144
242
|
| 'quiz'
|
|
145
|
-
| 'poll'
|
|
243
|
+
| 'poll'
|
|
244
|
+
| 'steam_wishlist'
|
|
245
|
+
| 'liquidity_uniswap_v2'
|
|
246
|
+
| 'liquidity_uniswap_v3'
|
|
247
|
+
| 'points_airdrop'
|
|
248
|
+
| 'youtube_subscribers'
|
|
249
|
+
| 'youtube_comment'
|
|
250
|
+
| 'shopify_spend'
|
|
251
|
+
| 'swap'
|
|
252
|
+
| 'tiktok_post'
|
|
253
|
+
| 'post_impressions'
|
|
254
|
+
| 'discord_join'
|
|
255
|
+
| 'connected_youtube'
|
|
256
|
+
| 'connected_tiktok';
|
|
146
257
|
}
|
|
147
258
|
|
|
148
259
|
export namespace LoyaltyRule {
|
|
260
|
+
export interface LoyaltyBadge {
|
|
261
|
+
id: string;
|
|
262
|
+
|
|
263
|
+
description: string | null;
|
|
264
|
+
|
|
265
|
+
imageUrl: string | null;
|
|
266
|
+
|
|
267
|
+
name: string;
|
|
268
|
+
}
|
|
269
|
+
|
|
149
270
|
export interface Metadata {
|
|
271
|
+
/**
|
|
272
|
+
* Number of tokens per batch.
|
|
273
|
+
*/
|
|
274
|
+
batchSize?: number | null;
|
|
275
|
+
|
|
150
276
|
/**
|
|
151
277
|
* Text displayed on the action button.
|
|
152
278
|
*/
|
|
@@ -170,7 +296,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
170
296
|
/**
|
|
171
297
|
* Text to check in the Twitter post, username, or bio.
|
|
172
298
|
*/
|
|
173
|
-
checkText?: string | null;
|
|
299
|
+
checkText?: string | Array<string> | null;
|
|
174
300
|
|
|
175
301
|
/**
|
|
176
302
|
* Array of collections associated with the rule.
|
|
@@ -180,7 +306,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
180
306
|
/**
|
|
181
307
|
* Conditions for completing the profile.
|
|
182
308
|
*/
|
|
183
|
-
completeProfileConditions?:
|
|
309
|
+
completeProfileConditions?: { [key: string]: boolean } | null;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Description of the external rule condition (only for external rules)
|
|
313
|
+
*/
|
|
314
|
+
conditionDescription?: string;
|
|
184
315
|
|
|
185
316
|
/**
|
|
186
317
|
* Object containing details for the call-to-action.
|
|
@@ -192,6 +323,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
192
323
|
*/
|
|
193
324
|
customRewardsApiKey?: string;
|
|
194
325
|
|
|
326
|
+
/**
|
|
327
|
+
* Flag indicating if the rule should use direct RPC to get the balance of tokens.
|
|
328
|
+
*/
|
|
329
|
+
directRpc?: boolean;
|
|
330
|
+
|
|
195
331
|
/**
|
|
196
332
|
* Array of Discord servers, channels, and roles to join.
|
|
197
333
|
*/
|
|
@@ -217,6 +353,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
217
353
|
*/
|
|
218
354
|
enableVerifiedMultiplier?: boolean;
|
|
219
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Type of ERC20 token for the loyalty rule.
|
|
358
|
+
*/
|
|
359
|
+
erc20Type?: 'erc20' | 'native';
|
|
360
|
+
|
|
220
361
|
/**
|
|
221
362
|
* Fill source of the order for the token sale
|
|
222
363
|
*/
|
|
@@ -237,11 +378,6 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
237
378
|
*/
|
|
238
379
|
hasNeverSold?: boolean;
|
|
239
380
|
|
|
240
|
-
/**
|
|
241
|
-
* Flag indicating whether the order source is included.
|
|
242
|
-
*/
|
|
243
|
-
hasOrderSource?: boolean;
|
|
244
|
-
|
|
245
381
|
/**
|
|
246
382
|
* Indicates if the full royalty has been paid for items.
|
|
247
383
|
*/
|
|
@@ -262,11 +398,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
262
398
|
*/
|
|
263
399
|
imageUrl?: string | null;
|
|
264
400
|
|
|
401
|
+
/**
|
|
402
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
403
|
+
*/
|
|
404
|
+
isCheckInOnEveryTxn?: boolean;
|
|
405
|
+
|
|
265
406
|
/**
|
|
266
407
|
* Indicates if the multiplier has been applied to rewards.
|
|
267
408
|
*/
|
|
268
409
|
isMultiplierApplied?: boolean;
|
|
269
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Flag indicating if the rule is restricted to new users.
|
|
413
|
+
*/
|
|
414
|
+
isRestrictedToNewUsers?: boolean;
|
|
415
|
+
|
|
270
416
|
/**
|
|
271
417
|
* Flag indicating if rewards are applied retroactively.
|
|
272
418
|
*/
|
|
@@ -282,6 +428,11 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
282
428
|
*/
|
|
283
429
|
link?: string | null;
|
|
284
430
|
|
|
431
|
+
/**
|
|
432
|
+
* Liquidity pool details.
|
|
433
|
+
*/
|
|
434
|
+
liquidity?: Metadata.Liquidity;
|
|
435
|
+
|
|
285
436
|
/**
|
|
286
437
|
* Maximum quantity constraint for token holding.
|
|
287
438
|
*/
|
|
@@ -323,14 +474,24 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
323
474
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
324
475
|
|
|
325
476
|
/**
|
|
326
|
-
*
|
|
477
|
+
* Promotional code associated with the rule.
|
|
327
478
|
*/
|
|
328
|
-
|
|
479
|
+
promoCode?: string;
|
|
329
480
|
|
|
330
481
|
/**
|
|
331
|
-
*
|
|
482
|
+
* URL of the CSV file containing promo codes.
|
|
332
483
|
*/
|
|
333
|
-
|
|
484
|
+
promoCodeCsvUrl?: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Numbers of the promotional code to be generated.
|
|
488
|
+
*/
|
|
489
|
+
promoCodeLength?: number | null;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Type of the promotional code.
|
|
493
|
+
*/
|
|
494
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
334
495
|
|
|
335
496
|
/**
|
|
336
497
|
* Array defining ranges and corresponding rewards.
|
|
@@ -347,11 +508,62 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
347
508
|
*/
|
|
348
509
|
referrerReward?: number | null;
|
|
349
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Loyalty currency ID of the referrer reward.
|
|
513
|
+
*/
|
|
514
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Flag indicating if the post link is required.
|
|
518
|
+
*/
|
|
519
|
+
requirePostLink?: boolean | null;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Flag indicating if media metadata is required.
|
|
523
|
+
*/
|
|
524
|
+
requirePostMediaLink?: boolean | null;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
528
|
+
*/
|
|
529
|
+
rewardBadgePerRange?: boolean;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
533
|
+
*/
|
|
534
|
+
rewardByBatch?: boolean | null;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Criteria to evaluate the reward.
|
|
538
|
+
*/
|
|
539
|
+
rewardCriteria?: 'IMPRESSIONS_COUNT' | 'ELIGIBLE_POST' | null;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Flag indicating if the reward is rewarded per action.
|
|
543
|
+
*/
|
|
544
|
+
rewardPerAction?: boolean | null;
|
|
545
|
+
|
|
350
546
|
/**
|
|
351
547
|
* Flag indicating if rewards are given per impression.
|
|
352
548
|
*/
|
|
353
549
|
rewardPerImpression?: boolean | null;
|
|
354
550
|
|
|
551
|
+
/**
|
|
552
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
553
|
+
* instead of count.
|
|
554
|
+
*/
|
|
555
|
+
rewardPerValue?: boolean;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Wallet address of the user can only be used if userId is not provided
|
|
559
|
+
*/
|
|
560
|
+
royaltyAddress?: string;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Royalty percentage of the item.
|
|
564
|
+
*/
|
|
565
|
+
royaltyPercentage?: number;
|
|
566
|
+
|
|
355
567
|
/**
|
|
356
568
|
* Currency associated with sales.
|
|
357
569
|
*/
|
|
@@ -391,6 +603,7 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
391
603
|
| 'Twitch'
|
|
392
604
|
| 'X(Twitter)'
|
|
393
605
|
| 'YouTube'
|
|
606
|
+
| 'Google'
|
|
394
607
|
| null;
|
|
395
608
|
|
|
396
609
|
/**
|
|
@@ -403,11 +616,21 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
403
616
|
*/
|
|
404
617
|
socialPlatformName?: string | null;
|
|
405
618
|
|
|
619
|
+
/**
|
|
620
|
+
* ID of the Steam app.
|
|
621
|
+
*/
|
|
622
|
+
steamAppId?: string | null;
|
|
623
|
+
|
|
406
624
|
/**
|
|
407
625
|
* Array of streak milestones and corresponding rewards.
|
|
408
626
|
*/
|
|
409
627
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
410
628
|
|
|
629
|
+
/**
|
|
630
|
+
* Metadata for swap loyalty rules
|
|
631
|
+
*/
|
|
632
|
+
swap?: Metadata.Swap;
|
|
633
|
+
|
|
411
634
|
/**
|
|
412
635
|
* ID of the Telegram channel.
|
|
413
636
|
*/
|
|
@@ -423,6 +646,12 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
423
646
|
*/
|
|
424
647
|
trackAllContracts?: boolean | null;
|
|
425
648
|
|
|
649
|
+
/**
|
|
650
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
651
|
+
* completed once the progress is 100%.
|
|
652
|
+
*/
|
|
653
|
+
trackProgress?: boolean | null;
|
|
654
|
+
|
|
426
655
|
/**
|
|
427
656
|
* URL of the associated Twitter account.
|
|
428
657
|
*/
|
|
@@ -466,7 +695,27 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
466
695
|
/**
|
|
467
696
|
* Type of wallet associated with the rule.
|
|
468
697
|
*/
|
|
469
|
-
walletType?:
|
|
698
|
+
walletType?:
|
|
699
|
+
| 'evm'
|
|
700
|
+
| 'solana'
|
|
701
|
+
| 'imx'
|
|
702
|
+
| 'sui'
|
|
703
|
+
| 'ton'
|
|
704
|
+
| 'cosmos'
|
|
705
|
+
| 'ultra'
|
|
706
|
+
| 'agw'
|
|
707
|
+
| 'flow_cadence'
|
|
708
|
+
| null;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* ID of the Youtube channel.
|
|
712
|
+
*/
|
|
713
|
+
youtubeChannelId?: string | null;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* ID of the Youtube video.
|
|
717
|
+
*/
|
|
718
|
+
youtubeVideoId?: string | null;
|
|
470
719
|
}
|
|
471
720
|
|
|
472
721
|
export namespace Metadata {
|
|
@@ -485,13 +734,17 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
485
734
|
* Blockchain network of the collection.
|
|
486
735
|
*/
|
|
487
736
|
network?:
|
|
737
|
+
| 'abstract'
|
|
738
|
+
| 'abstractTestnet'
|
|
488
739
|
| 'apechain'
|
|
489
740
|
| 'arbitrum'
|
|
490
741
|
| 'avalanche'
|
|
491
742
|
| 'avalancheFuji'
|
|
492
743
|
| 'base'
|
|
493
744
|
| 'baseSepolia'
|
|
745
|
+
| 'berachain'
|
|
494
746
|
| 'berachainArtio'
|
|
747
|
+
| 'berachainBepolia'
|
|
495
748
|
| 'binance'
|
|
496
749
|
| 'bscTestnet'
|
|
497
750
|
| 'campTestnet'
|
|
@@ -499,18 +752,30 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
499
752
|
| 'fantomTestnet'
|
|
500
753
|
| 'flowMainnet'
|
|
501
754
|
| 'mainnet'
|
|
755
|
+
| 'nexusTestnet'
|
|
502
756
|
| 'optimism'
|
|
503
757
|
| 'polygon'
|
|
504
758
|
| 'polygon_mumbai'
|
|
505
759
|
| 'skaleNebula'
|
|
760
|
+
| 'skaleEuropa'
|
|
761
|
+
| 'skaleCalypso'
|
|
506
762
|
| 'solana'
|
|
507
763
|
| 'sophon'
|
|
764
|
+
| 'sophonTestnet'
|
|
508
765
|
| 'sui'
|
|
509
766
|
| 'superseed'
|
|
510
767
|
| 'superseedSepolia'
|
|
511
768
|
| 'vanar'
|
|
512
769
|
| 'xai'
|
|
513
770
|
| 'zksync'
|
|
771
|
+
| 'coti'
|
|
772
|
+
| 'cotiTestnet'
|
|
773
|
+
| 'morph'
|
|
774
|
+
| 'morphTestnet'
|
|
775
|
+
| 'morphHolesky'
|
|
776
|
+
| 'ultra'
|
|
777
|
+
| 'ultraTestnet'
|
|
778
|
+
| 'nitrograph'
|
|
514
779
|
| 'sepolia'
|
|
515
780
|
| 'optimism_sepolia'
|
|
516
781
|
| 'arbitrumSepolia'
|
|
@@ -518,7 +783,8 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
518
783
|
| 'optimism_goerli'
|
|
519
784
|
| 'arbitrumGoerli'
|
|
520
785
|
| 'basecamp'
|
|
521
|
-
| '
|
|
786
|
+
| 'somnia'
|
|
787
|
+
| 'flow_cadence';
|
|
522
788
|
}
|
|
523
789
|
|
|
524
790
|
/**
|
|
@@ -595,6 +861,108 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
595
861
|
id: string;
|
|
596
862
|
}
|
|
597
863
|
|
|
864
|
+
/**
|
|
865
|
+
* Liquidity pool details.
|
|
866
|
+
*/
|
|
867
|
+
export interface Liquidity {
|
|
868
|
+
/**
|
|
869
|
+
* Calculation type of the liquidity pool.
|
|
870
|
+
*/
|
|
871
|
+
calculationType?: 'fixed' | 'custom';
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
875
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
876
|
+
* USD.
|
|
877
|
+
*/
|
|
878
|
+
customFunction?: string;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Liquidity provided per day in USD
|
|
882
|
+
*/
|
|
883
|
+
liquidityPerDay?: number;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Blockchain network of the liquidity pool.
|
|
887
|
+
*/
|
|
888
|
+
network?:
|
|
889
|
+
| 'abstract'
|
|
890
|
+
| 'abstractTestnet'
|
|
891
|
+
| 'apechain'
|
|
892
|
+
| 'arbitrum'
|
|
893
|
+
| 'avalanche'
|
|
894
|
+
| 'avalancheFuji'
|
|
895
|
+
| 'base'
|
|
896
|
+
| 'baseSepolia'
|
|
897
|
+
| 'berachain'
|
|
898
|
+
| 'berachainArtio'
|
|
899
|
+
| 'berachainBepolia'
|
|
900
|
+
| 'binance'
|
|
901
|
+
| 'bscTestnet'
|
|
902
|
+
| 'campTestnet'
|
|
903
|
+
| 'fantom'
|
|
904
|
+
| 'fantomTestnet'
|
|
905
|
+
| 'flowMainnet'
|
|
906
|
+
| 'mainnet'
|
|
907
|
+
| 'nexusTestnet'
|
|
908
|
+
| 'optimism'
|
|
909
|
+
| 'polygon'
|
|
910
|
+
| 'polygon_mumbai'
|
|
911
|
+
| 'skaleNebula'
|
|
912
|
+
| 'skaleEuropa'
|
|
913
|
+
| 'skaleCalypso'
|
|
914
|
+
| 'solana'
|
|
915
|
+
| 'sophon'
|
|
916
|
+
| 'sophonTestnet'
|
|
917
|
+
| 'sui'
|
|
918
|
+
| 'superseed'
|
|
919
|
+
| 'superseedSepolia'
|
|
920
|
+
| 'vanar'
|
|
921
|
+
| 'xai'
|
|
922
|
+
| 'zksync'
|
|
923
|
+
| 'coti'
|
|
924
|
+
| 'cotiTestnet'
|
|
925
|
+
| 'morph'
|
|
926
|
+
| 'morphTestnet'
|
|
927
|
+
| 'morphHolesky'
|
|
928
|
+
| 'ultra'
|
|
929
|
+
| 'ultraTestnet'
|
|
930
|
+
| 'nitrograph'
|
|
931
|
+
| 'sepolia'
|
|
932
|
+
| 'optimism_sepolia'
|
|
933
|
+
| 'arbitrumSepolia'
|
|
934
|
+
| 'goerli'
|
|
935
|
+
| 'optimism_goerli'
|
|
936
|
+
| 'arbitrumGoerli'
|
|
937
|
+
| 'basecamp'
|
|
938
|
+
| 'somnia'
|
|
939
|
+
| 'flow_cadence';
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
943
|
+
*/
|
|
944
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Array of liquidity pools associated with the rule.
|
|
948
|
+
*/
|
|
949
|
+
pools?: Array<Liquidity.Pool>;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Protocol of the liquidity pool.
|
|
953
|
+
*/
|
|
954
|
+
protocol?: string;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export namespace Liquidity {
|
|
958
|
+
export interface Pool {
|
|
959
|
+
/**
|
|
960
|
+
* Unique identifier of the liquidity pool.
|
|
961
|
+
*/
|
|
962
|
+
id: string;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
|
|
598
966
|
export interface Range {
|
|
599
967
|
/**
|
|
600
968
|
* Reward amount for this range.
|
|
@@ -610,6 +978,16 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
610
978
|
* Start value of the range.
|
|
611
979
|
*/
|
|
612
980
|
startRange: number;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* ID of the loyalty badge for this range.
|
|
984
|
+
*/
|
|
985
|
+
loyaltyBadgeId?: string;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Amount of the loyalty multiplier for this range.
|
|
989
|
+
*/
|
|
990
|
+
loyaltyMultiplierAmount?: number;
|
|
613
991
|
}
|
|
614
992
|
|
|
615
993
|
/**
|
|
@@ -662,20 +1040,15 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
662
1040
|
* Object containing details of the associated smart contract.
|
|
663
1041
|
*/
|
|
664
1042
|
export interface SmartContract {
|
|
665
|
-
/**
|
|
666
|
-
* ABI of the smart contract.
|
|
667
|
-
*/
|
|
668
|
-
abi?: string | null;
|
|
669
|
-
|
|
670
1043
|
/**
|
|
671
1044
|
* Mapping of addresses for the smart contract.
|
|
672
1045
|
*/
|
|
673
1046
|
addressMapping?: string | null;
|
|
674
1047
|
|
|
675
1048
|
/**
|
|
676
|
-
*
|
|
1049
|
+
* Object containing details of the amount multiplier from the event.
|
|
677
1050
|
*/
|
|
678
|
-
|
|
1051
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
679
1052
|
|
|
680
1053
|
/**
|
|
681
1054
|
* ID of the smart contract.
|
|
@@ -687,68 +1060,31 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
687
1060
|
*/
|
|
688
1061
|
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
689
1062
|
|
|
690
|
-
/**
|
|
691
|
-
* Time range applied to the rule.
|
|
692
|
-
*/
|
|
693
|
-
customRange?: SmartContract.CustomRange | null;
|
|
694
|
-
|
|
695
1063
|
/**
|
|
696
1064
|
* Event emitted by the smart contract.
|
|
697
1065
|
*/
|
|
698
1066
|
event?: string | null;
|
|
699
1067
|
|
|
700
|
-
/**
|
|
701
|
-
* Maximum value allowed for the parameter.
|
|
702
|
-
*/
|
|
703
|
-
max?: number | null;
|
|
704
|
-
|
|
705
1068
|
/**
|
|
706
1069
|
* Array of parameters for the smart contract.
|
|
707
1070
|
*/
|
|
708
1071
|
params?: Array<SmartContract.Param> | null;
|
|
709
1072
|
|
|
710
1073
|
/**
|
|
711
|
-
*
|
|
712
|
-
*/
|
|
713
|
-
withBonus?: boolean | null;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Flag indicating if a custom range is applied.
|
|
717
|
-
*/
|
|
718
|
-
withCustomRange?: boolean | null;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* Flag indicating if a maximum limit is applied.
|
|
1074
|
+
* Type of the smart contract interaction.
|
|
722
1075
|
*/
|
|
723
|
-
|
|
1076
|
+
type?: 'function' | 'event' | null;
|
|
724
1077
|
}
|
|
725
1078
|
|
|
726
1079
|
export namespace SmartContract {
|
|
727
|
-
export interface Bonus {
|
|
728
|
-
/**
|
|
729
|
-
* Amount of the bonus.
|
|
730
|
-
*/
|
|
731
|
-
amount?: number | null;
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* Number of times the bonus is applied.
|
|
735
|
-
*/
|
|
736
|
-
count?: number | null;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
1080
|
/**
|
|
740
|
-
*
|
|
1081
|
+
* Object containing details of the amount multiplier from the event.
|
|
741
1082
|
*/
|
|
742
|
-
export interface
|
|
743
|
-
/**
|
|
744
|
-
* End time of the custom range.
|
|
745
|
-
*/
|
|
746
|
-
endsAt?: string | null;
|
|
747
|
-
|
|
1083
|
+
export interface AmountMultiplier {
|
|
748
1084
|
/**
|
|
749
|
-
*
|
|
1085
|
+
* Mapping of the value for the smart contract.
|
|
750
1086
|
*/
|
|
751
|
-
|
|
1087
|
+
valueMapping?: string | null;
|
|
752
1088
|
}
|
|
753
1089
|
|
|
754
1090
|
export interface Param {
|
|
@@ -792,12 +1128,63 @@ export namespace RuleGroupGetRuleGroupsResponse {
|
|
|
792
1128
|
*/
|
|
793
1129
|
streakMilestone: number;
|
|
794
1130
|
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Metadata for swap loyalty rules
|
|
1134
|
+
*/
|
|
1135
|
+
export interface Swap {
|
|
1136
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1137
|
+
|
|
1138
|
+
relayReferrerId?: string;
|
|
1139
|
+
|
|
1140
|
+
requireCrossChainSwap?: boolean;
|
|
1141
|
+
|
|
1142
|
+
swappedToChain?: 'any' | number | string;
|
|
1143
|
+
|
|
1144
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
1145
|
+
|
|
1146
|
+
tokenMode?: 'any' | 'specific';
|
|
1147
|
+
|
|
1148
|
+
trackTokenAmount?: boolean;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export namespace Swap {
|
|
1152
|
+
export interface SwappedToToken {
|
|
1153
|
+
address: string;
|
|
1154
|
+
|
|
1155
|
+
chainId: string;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
795
1158
|
}
|
|
796
1159
|
}
|
|
797
1160
|
}
|
|
798
1161
|
}
|
|
799
1162
|
}
|
|
800
1163
|
|
|
1164
|
+
export interface RuleGroupUpdateRuleGroupResponse {
|
|
1165
|
+
isCollapsible?: boolean;
|
|
1166
|
+
|
|
1167
|
+
name?: string;
|
|
1168
|
+
|
|
1169
|
+
subTitle?: string;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export interface RuleGroupCreateRuleGroupParams {
|
|
1173
|
+
name: string;
|
|
1174
|
+
|
|
1175
|
+
organizationId: string;
|
|
1176
|
+
|
|
1177
|
+
websiteId: string;
|
|
1178
|
+
|
|
1179
|
+
isCollapsible?: boolean;
|
|
1180
|
+
|
|
1181
|
+
isRequired?: boolean;
|
|
1182
|
+
|
|
1183
|
+
sortId?: number;
|
|
1184
|
+
|
|
1185
|
+
subTitle?: string;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
801
1188
|
export interface RuleGroupGetRuleGroupsParams {
|
|
802
1189
|
excludeHidden?: string;
|
|
803
1190
|
|
|
@@ -810,9 +1197,22 @@ export interface RuleGroupGetRuleGroupsParams {
|
|
|
810
1197
|
websiteId?: string;
|
|
811
1198
|
}
|
|
812
1199
|
|
|
1200
|
+
export interface RuleGroupUpdateRuleGroupParams {
|
|
1201
|
+
isCollapsible?: boolean;
|
|
1202
|
+
|
|
1203
|
+
name?: string | null;
|
|
1204
|
+
|
|
1205
|
+
subtitle?: string | null;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
813
1208
|
export declare namespace RuleGroups {
|
|
814
1209
|
export {
|
|
1210
|
+
type RuleGroupCreateRuleGroupResponse as RuleGroupCreateRuleGroupResponse,
|
|
1211
|
+
type RuleGroupDeleteRuleGroupResponse as RuleGroupDeleteRuleGroupResponse,
|
|
815
1212
|
type RuleGroupGetRuleGroupsResponse as RuleGroupGetRuleGroupsResponse,
|
|
1213
|
+
type RuleGroupUpdateRuleGroupResponse as RuleGroupUpdateRuleGroupResponse,
|
|
1214
|
+
type RuleGroupCreateRuleGroupParams as RuleGroupCreateRuleGroupParams,
|
|
816
1215
|
type RuleGroupGetRuleGroupsParams as RuleGroupGetRuleGroupsParams,
|
|
1216
|
+
type RuleGroupUpdateRuleGroupParams as RuleGroupUpdateRuleGroupParams,
|
|
817
1217
|
};
|
|
818
1218
|
}
|