@snagsolutions/sdk 0.1.0-alpha.10 → 0.1.0-alpha.101
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 +907 -0
- package/README.md +24 -28
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +35 -19
- package/core.js.map +1 -1
- package/core.mjs +36 -20
- package/core.mjs.map +1 -1
- package/index.d.mts +25 -16
- package/index.d.ts +25 -16
- package/index.d.ts.map +1 -1
- package/index.js +19 -9
- package/index.js.map +1 -1
- package/index.mjs +20 -10
- 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 +22 -8
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +12 -4
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +12 -4
- 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 +122 -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 +132 -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 +2 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/auctions.js +19 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +3 -0
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +44 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +16 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +12 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/index.d.ts +7 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -4
- 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 +62 -15
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +22 -1
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +22 -1
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +876 -77
- 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 +20 -1
- 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 +9 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +11 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +6 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +33 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +28 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +29 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +97 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +29 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +29 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +112 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/questions-responses.js +31 -0
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/questions-responses.mjs +27 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/questions.d.ts +183 -0
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/questions.js +60 -0
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/questions.mjs +56 -0
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +2661 -11
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +16 -2
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +16 -2
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +781 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +52 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +48 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +1789 -141
- 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 +120 -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 +414 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +2 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +19 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +3 -0
- package/resources/loyalty/transactions.mjs.map +1 -0
- package/resources/loyalty.d.ts +2 -0
- package/resources/loyalty.d.ts.map +1 -0
- package/resources/loyalty.js +19 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs +3 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/minting.d.ts +95 -0
- package/resources/minting.d.ts.map +1 -0
- package/resources/minting.js +15 -0
- package/resources/minting.js.map +1 -0
- package/resources/minting.mjs +11 -0
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts +3 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js +9 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/referral/index.mjs +4 -0
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +39 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → referral/referral.js} +21 -12
- package/resources/referral/referral.js.map +1 -0
- package/resources/referral/referral.mjs +25 -0
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/referral/users.d.ts +83 -0
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/referral/users.js +35 -0
- package/resources/referral/users.js.map +1 -0
- package/resources/referral/users.mjs +31 -0
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts +2 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js +19 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs +3 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +1 -3
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -3
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +108 -9
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +418 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +77 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +78 -5
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/websites/index.mjs +5 -0
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +94 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/websites/website-collections.js +46 -0
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs +42 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts +96 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/websites/website-user-roles.js +45 -0
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs +41 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +223 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/websites/websites.js +63 -0
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +36 -0
- package/resources/websites/websites.mjs.map +1 -0
- package/resources/websites.d.ts +1 -202
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -18
- package/resources/websites.js.map +1 -1
- package/resources/websites.mjs +1 -16
- package/resources/websites.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +56 -20
- package/src/index.ts +95 -23
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +29 -8
- package/src/resources/auctions/auctions.ts +436 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +165 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +3 -0
- package/src/resources/auth.ts +74 -0
- package/src/resources/index.ts +31 -5
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +79 -16
- package/src/resources/loyalty/badges.ts +1055 -83
- package/src/resources/loyalty/currencies.ts +20 -1
- package/src/resources/loyalty/index.ts +53 -9
- package/src/resources/loyalty/loyalty.ts +160 -60
- package/src/resources/loyalty/multipliers.ts +124 -4
- package/src/resources/loyalty/questions-responses.ts +161 -0
- package/src/resources/loyalty/questions.ts +241 -0
- package/src/resources/loyalty/rule-edits.ts +3686 -63
- package/src/resources/loyalty/rule-groups.ts +1195 -0
- package/src/resources/loyalty/rules.ts +2932 -420
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +676 -0
- package/src/resources/loyalty/transactions.ts +3 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/minting.ts +167 -0
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +72 -0
- package/src/resources/referral/users.ts +122 -0
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +21 -9
- package/src/resources/users/metadatas.ts +159 -8
- package/src/resources/users/users.ts +586 -17
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/websites/website-collections.ts +179 -0
- package/src/resources/websites/website-user-roles.ts +130 -0
- package/src/resources/websites/websites.ts +311 -0
- package/src/resources/websites.ts +1 -257
- package/src/resources.ts +1 -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/auction-bids.d.ts +0 -81
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -30
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -26
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -168
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -17
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -13
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -26
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -16
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -12
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -193
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -28
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -24
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/auction-bids.ts +0 -123
- package/src/resources/drip/drip.ts +0 -25
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -210
- package/src/resources/drip/status.ts +0 -33
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/wallets.ts +0 -271
|
@@ -3,34 +3,91 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class Rules extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Create a new Loyalty Rule
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const rule = await client.loyalty.rules.create({
|
|
10
|
+
* amount: '10.5',
|
|
11
|
+
* effectiveEndTime: '2024-12-31T23:59:00Z',
|
|
12
|
+
* effectiveStartTime: '2024-01-01T00:00:00Z',
|
|
13
|
+
* endTime: '2024-12-31T23:59:00Z',
|
|
14
|
+
* frequency: 'daily',
|
|
15
|
+
* loyaltyCurrencyId: '456e1234-e89b-12d3-a456-426614174003',
|
|
16
|
+
* metadata: {},
|
|
17
|
+
* name: 'Referral Bonus Rule',
|
|
18
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
19
|
+
* startTime: '2024-01-01T00:00:00Z',
|
|
20
|
+
* type: 'Bonus',
|
|
21
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174002',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
6
24
|
*/
|
|
7
25
|
create(body: RuleCreateParams, options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
|
|
8
26
|
/**
|
|
9
27
|
* Update an existing Loyalty Rule
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const rule = await client.loyalty.rules.update(
|
|
32
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
33
|
+
* {
|
|
34
|
+
* amount: '10.5',
|
|
35
|
+
* endTime: '2024-12-31T23:59:00Z',
|
|
36
|
+
* name: 'Daily Rewards Program',
|
|
37
|
+
* },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
10
40
|
*/
|
|
11
41
|
update(id: string, body: RuleUpdateParams, options?: Core.RequestOptions): Core.APIPromise<RuleUpdateResponse>;
|
|
12
42
|
/**
|
|
13
43
|
* Retrieve configured loyalty rules with optional pagination and filters
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const rules = await client.loyalty.rules.list();
|
|
48
|
+
* ```
|
|
14
49
|
*/
|
|
15
50
|
list(query?: RuleListParams, options?: Core.RequestOptions): Core.APIPromise<RuleListResponse>;
|
|
16
51
|
list(options?: Core.RequestOptions): Core.APIPromise<RuleListResponse>;
|
|
17
52
|
/**
|
|
18
53
|
* Delete an existing Loyalty Rule
|
|
19
|
-
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const rule = await client.loyalty.rules.delete(
|
|
58
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
delete(id: string, params?: RuleDeleteParams, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
|
|
20
63
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
|
|
21
64
|
/**
|
|
22
65
|
* Verify a loyalty rule based on user action and reward them if applicable. This
|
|
23
|
-
* endpoint
|
|
66
|
+
* endpoint currently only supports following rule types code_entry, text_input,
|
|
24
67
|
* link_click, discord_member, connect_wallet, check_in, external_rule,
|
|
25
68
|
* drip_x_follow, drip_x_new_tweet, drip_x_text_in_bio, drip_x_text_in_name,
|
|
26
|
-
* drip_x_text_in_comment, drip_x_tweet, telegram_join
|
|
69
|
+
* drip_x_text_in_comment, drip_x_tweet, telegram_join, DiscordMessages,
|
|
70
|
+
* youtube_subscribers, youtube_comment, steam_wishlist
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response = await client.loyalty.rules.complete(
|
|
75
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
27
78
|
*/
|
|
28
79
|
complete(id: string, body?: RuleCompleteParams, options?: Core.RequestOptions): Core.APIPromise<RuleCompleteResponse>;
|
|
29
80
|
complete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleCompleteResponse>;
|
|
30
81
|
/**
|
|
31
82
|
* This will return the processing status of quests for a specific user
|
|
32
|
-
|
|
33
|
-
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const response = await client.loyalty.rules.getStatus();
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
getStatus(query?: RuleGetStatusParams, options?: Core.RequestOptions): Core.APIPromise<RuleGetStatusResponse>;
|
|
90
|
+
getStatus(options?: Core.RequestOptions): Core.APIPromise<RuleGetStatusResponse>;
|
|
34
91
|
}
|
|
35
92
|
export interface RuleCreateResponse {
|
|
36
93
|
id: string;
|
|
@@ -77,7 +134,7 @@ export interface RuleCreateResponse {
|
|
|
77
134
|
/**
|
|
78
135
|
* Type of loyalty rule being created
|
|
79
136
|
*/
|
|
80
|
-
type: 'Bonus' | 'BoughtOn' | 'BoughtWithRoyalties' | 'DiscordMessages' | 'Listing' | 'Lodging' | 'MintOn' | 'PoapClaim' | 'SnagSocialsConnected' | 'SnapshotFullset' | 'SnapshotHold' | 'SoldOn' | 'SoldWithRoyalties' | 'TokenHold' | 'TwitterBio' | 'TwitterHashTagPost' | 'Retweet' | 'check_in' | 'code_entry' | 'connect_wallet' | 'connected_discord' | 'connected_email' | 'connected_epic' | 'connected_steam' | 'connected_telegram' | 'connected_twitter' | 'create_partner_account' | 'discord_member' | 'drip_x_follow' | 'drip_x_new_tweet' | 'drip_x_text_in_bio' | 'drip_x_text_in_comment' | 'drip_x_text_in_name' | 'drip_x_tweet' | 'external_rule' | 'link_click' | 'manual_upload' | 'profile_completed' | 'referred_user' | 'smart_contract_event' | 'snapshot_governance' | 'telegram_join' | 'telegram_messages' | 'text_input' | 'token_hold_erc20' | 'tweet_liked_by_project' | 'twitter_comment' | 'twitter_follow' | 'twitter_followers' | 'twitter_like' | 'twitter_post_hashtag';
|
|
137
|
+
type: 'Bonus' | 'BoughtOn' | 'BoughtWithRoyalties' | 'DiscordMessages' | 'Listing' | 'Lodging' | 'MintOn' | 'PoapClaim' | 'SnagSocialsConnected' | 'SnapshotFullset' | 'SnapshotHold' | 'SoldOn' | 'SoldWithRoyalties' | 'TokenHold' | 'TwitterBio' | 'TwitterHashTagPost' | 'Retweet' | 'check_in' | 'code_entry' | 'connect_wallet' | 'connected_discord' | 'connected_email' | 'connected_epic' | 'connected_steam' | 'connected_telegram' | 'connected_twitter' | 'create_partner_account' | 'discord_member' | 'drip_x_follow' | 'drip_x_new_tweet' | 'drip_x_text_in_bio' | 'drip_x_text_in_comment' | 'drip_x_text_in_name' | 'drip_x_tweet' | 'external_rule' | 'link_click' | 'manual_upload' | 'profile_completed' | 'referred_user' | 'smart_contract_event' | 'snapshot_governance' | 'telegram_join' | 'telegram_messages' | 'text_input' | 'token_hold_erc20' | 'tweet_liked_by_project' | 'twitter_comment' | 'twitter_follow' | 'twitter_followers' | 'twitter_like' | 'twitter_post_hashtag' | 'quiz' | 'poll' | 'steam_wishlist' | 'liquidity_uniswap_v2' | 'liquidity_uniswap_v3' | 'points_airdrop' | 'youtube_subscribers' | 'youtube_comment' | 'shopify_spend' | 'swap' | 'tiktok_post';
|
|
81
138
|
/**
|
|
82
139
|
* Unique identifier for the associated website
|
|
83
140
|
*/
|
|
@@ -106,6 +163,10 @@ export interface RuleCreateResponse {
|
|
|
106
163
|
* Optional detailed description of the rule
|
|
107
164
|
*/
|
|
108
165
|
description?: string;
|
|
166
|
+
/**
|
|
167
|
+
* ID of the external integration
|
|
168
|
+
*/
|
|
169
|
+
externalIntegrationId?: string | null;
|
|
109
170
|
/**
|
|
110
171
|
* Whether to hide this rule in the user interface
|
|
111
172
|
*/
|
|
@@ -113,19 +174,41 @@ export interface RuleCreateResponse {
|
|
|
113
174
|
/**
|
|
114
175
|
* Interval between rule executions
|
|
115
176
|
*/
|
|
116
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
177
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
117
178
|
/**
|
|
118
179
|
* Whether this rule is mandatory
|
|
119
180
|
*/
|
|
120
181
|
isRequired?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Unique identifier for the loyalty badge
|
|
184
|
+
*/
|
|
185
|
+
loyaltyBadgeId?: string | null;
|
|
121
186
|
/**
|
|
122
187
|
* Unique identifier for the loyalty rule group
|
|
123
188
|
*/
|
|
124
189
|
loyaltyRuleGroupId?: 'no-section' | (string & {}) | null;
|
|
190
|
+
/**
|
|
191
|
+
* URL for uploading loyalty user allotment via CSV
|
|
192
|
+
*/
|
|
193
|
+
loyaltyUserAllotmentCsvUrl?: string;
|
|
194
|
+
/**
|
|
195
|
+
* The interval for the max amount. Available for the smart contract and external
|
|
196
|
+
* rules.
|
|
197
|
+
*/
|
|
198
|
+
maxAmountInterval?: 'daily' | 'weekly' | 'monthly' | 'lifetime' | null;
|
|
199
|
+
/**
|
|
200
|
+
* The maximum amount of points a user can earn per interval. Available for the
|
|
201
|
+
* smart contract and external rules.
|
|
202
|
+
*/
|
|
203
|
+
maxAmountPerInterval?: number | null;
|
|
204
|
+
/**
|
|
205
|
+
* URL of the media to be displayed
|
|
206
|
+
*/
|
|
207
|
+
mediaUrl?: string | null;
|
|
125
208
|
/**
|
|
126
209
|
* Blockchain network where the rule will apply
|
|
127
210
|
*/
|
|
128
|
-
network?: '
|
|
211
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
129
212
|
/**
|
|
130
213
|
* OAuth credentials associated with the rule
|
|
131
214
|
*/
|
|
@@ -133,17 +216,25 @@ export interface RuleCreateResponse {
|
|
|
133
216
|
/**
|
|
134
217
|
* Type of reward issued by the rule
|
|
135
218
|
*/
|
|
136
|
-
rewardType?: 'points' | 'multiplier';
|
|
219
|
+
rewardType?: 'points' | 'multiplier' | 'badge';
|
|
220
|
+
/**
|
|
221
|
+
* URL of the Shopify store
|
|
222
|
+
*/
|
|
223
|
+
shopifyStoreUrl?: string | null;
|
|
137
224
|
/**
|
|
138
|
-
*
|
|
225
|
+
* Optional subscription id for the rule
|
|
139
226
|
*/
|
|
140
|
-
|
|
227
|
+
subscriptionId?: string | null;
|
|
141
228
|
}
|
|
142
229
|
export declare namespace RuleCreateResponse {
|
|
143
230
|
/**
|
|
144
231
|
* Additional metadata for the loyalty rule
|
|
145
232
|
*/
|
|
146
233
|
interface Metadata {
|
|
234
|
+
/**
|
|
235
|
+
* Number of tokens per batch.
|
|
236
|
+
*/
|
|
237
|
+
batchSize?: number | null;
|
|
147
238
|
/**
|
|
148
239
|
* Text displayed on the action button.
|
|
149
240
|
*/
|
|
@@ -168,6 +259,12 @@ export declare namespace RuleCreateResponse {
|
|
|
168
259
|
* Array of collections associated with the rule.
|
|
169
260
|
*/
|
|
170
261
|
collection?: Array<Metadata.Collection>;
|
|
262
|
+
/**
|
|
263
|
+
* Conditions for completing the profile.
|
|
264
|
+
*/
|
|
265
|
+
completeProfileConditions?: {
|
|
266
|
+
[key: string]: boolean;
|
|
267
|
+
} | null;
|
|
171
268
|
/**
|
|
172
269
|
* Object containing details for the call-to-action.
|
|
173
270
|
*/
|
|
@@ -196,10 +293,18 @@ export declare namespace RuleCreateResponse {
|
|
|
196
293
|
* Flag indicating whether the verified multiplier is enabled.
|
|
197
294
|
*/
|
|
198
295
|
enableVerifiedMultiplier?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Fill source of the order for the token sale
|
|
298
|
+
*/
|
|
299
|
+
fillSource?: string;
|
|
199
300
|
/**
|
|
200
301
|
* Percentage reward given to a user for their first referral.
|
|
201
302
|
*/
|
|
202
303
|
firstReferralReward?: number | null;
|
|
304
|
+
/**
|
|
305
|
+
* Flag indicating whether the fill source is included.
|
|
306
|
+
*/
|
|
307
|
+
hasFillSource?: boolean;
|
|
203
308
|
/**
|
|
204
309
|
* Indicates if the item has never been sold.
|
|
205
310
|
*/
|
|
@@ -220,10 +325,18 @@ export declare namespace RuleCreateResponse {
|
|
|
220
325
|
* URL of the image associated with the rule.
|
|
221
326
|
*/
|
|
222
327
|
imageUrl?: string | null;
|
|
328
|
+
/**
|
|
329
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
330
|
+
*/
|
|
331
|
+
isCheckInOnEveryTxn?: boolean;
|
|
223
332
|
/**
|
|
224
333
|
* Indicates if the multiplier has been applied to rewards.
|
|
225
334
|
*/
|
|
226
335
|
isMultiplierApplied?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Flag indicating if the rule is restricted to new users.
|
|
338
|
+
*/
|
|
339
|
+
isRestrictedToNewUsers?: boolean;
|
|
227
340
|
/**
|
|
228
341
|
* Flag indicating if rewards are applied retroactively.
|
|
229
342
|
*/
|
|
@@ -236,6 +349,10 @@ export declare namespace RuleCreateResponse {
|
|
|
236
349
|
* Optional link associated with the metadata.
|
|
237
350
|
*/
|
|
238
351
|
link?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Liquidity pool details.
|
|
354
|
+
*/
|
|
355
|
+
liquidity?: Metadata.Liquidity;
|
|
239
356
|
/**
|
|
240
357
|
* Maximum quantity constraint for token holding.
|
|
241
358
|
*/
|
|
@@ -260,10 +377,30 @@ export declare namespace RuleCreateResponse {
|
|
|
260
377
|
* Flag indicating whether to include only non-listed items.
|
|
261
378
|
*/
|
|
262
379
|
onlyNonListed?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* Indicates if only existing users are rewarded.
|
|
382
|
+
*/
|
|
383
|
+
onlyRewardExistingUser?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* give points for only one token ownership per contract
|
|
386
|
+
*/
|
|
387
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
263
388
|
/**
|
|
264
389
|
* Promotional code associated with the rule.
|
|
265
390
|
*/
|
|
266
391
|
promoCode?: string;
|
|
392
|
+
/**
|
|
393
|
+
* URL of the CSV file containing promo codes.
|
|
394
|
+
*/
|
|
395
|
+
promoCodeCsvUrl?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Numbers of the promotional code to be generated.
|
|
398
|
+
*/
|
|
399
|
+
promoCodeLength?: number | null;
|
|
400
|
+
/**
|
|
401
|
+
* Type of the promotional code.
|
|
402
|
+
*/
|
|
403
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
267
404
|
/**
|
|
268
405
|
* Array defining ranges and corresponding rewards.
|
|
269
406
|
*/
|
|
@@ -276,10 +413,27 @@ export declare namespace RuleCreateResponse {
|
|
|
276
413
|
* Lump sum reward given to a referrer.
|
|
277
414
|
*/
|
|
278
415
|
referrerReward?: number | null;
|
|
416
|
+
/**
|
|
417
|
+
* Loyalty currency ID of the referrer reward.
|
|
418
|
+
*/
|
|
419
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
422
|
+
*/
|
|
423
|
+
rewardBadgePerRange?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
426
|
+
*/
|
|
427
|
+
rewardByBatch?: boolean | null;
|
|
279
428
|
/**
|
|
280
429
|
* Flag indicating if rewards are given per impression.
|
|
281
430
|
*/
|
|
282
431
|
rewardPerImpression?: boolean | null;
|
|
432
|
+
/**
|
|
433
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
434
|
+
* instead of count.
|
|
435
|
+
*/
|
|
436
|
+
rewardPerValue?: boolean;
|
|
283
437
|
/**
|
|
284
438
|
* Currency associated with sales.
|
|
285
439
|
*/
|
|
@@ -288,6 +442,10 @@ export declare namespace RuleCreateResponse {
|
|
|
288
442
|
* Percentage reward given for a second-level referral.
|
|
289
443
|
*/
|
|
290
444
|
secondReferralReward?: number | null;
|
|
445
|
+
/**
|
|
446
|
+
* Flag indicating if the multiplier is skipped.
|
|
447
|
+
*/
|
|
448
|
+
skipMultiplier?: boolean | null;
|
|
291
449
|
/**
|
|
292
450
|
* Object containing details of the associated smart contract.
|
|
293
451
|
*/
|
|
@@ -299,7 +457,7 @@ export declare namespace RuleCreateResponse {
|
|
|
299
457
|
/**
|
|
300
458
|
* Social media platform associated with the rule.
|
|
301
459
|
*/
|
|
302
|
-
socialPlatform?: '
|
|
460
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
|
|
303
461
|
/**
|
|
304
462
|
* URL of the social platform's logo.
|
|
305
463
|
*/
|
|
@@ -308,10 +466,18 @@ export declare namespace RuleCreateResponse {
|
|
|
308
466
|
* Name of the social platform.
|
|
309
467
|
*/
|
|
310
468
|
socialPlatformName?: string | null;
|
|
469
|
+
/**
|
|
470
|
+
* ID of the Steam app.
|
|
471
|
+
*/
|
|
472
|
+
steamAppId?: string | null;
|
|
311
473
|
/**
|
|
312
474
|
* Array of streak milestones and corresponding rewards.
|
|
313
475
|
*/
|
|
314
476
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
477
|
+
/**
|
|
478
|
+
* Metadata for swap loyalty rules
|
|
479
|
+
*/
|
|
480
|
+
swap?: Metadata.Swap;
|
|
315
481
|
/**
|
|
316
482
|
* ID of the Telegram channel.
|
|
317
483
|
*/
|
|
@@ -324,6 +490,11 @@ export declare namespace RuleCreateResponse {
|
|
|
324
490
|
* Flag indicating if all contracts are tracked.
|
|
325
491
|
*/
|
|
326
492
|
trackAllContracts?: boolean | null;
|
|
493
|
+
/**
|
|
494
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
495
|
+
* completed once the progress is 100%.
|
|
496
|
+
*/
|
|
497
|
+
trackProgress?: boolean | null;
|
|
327
498
|
/**
|
|
328
499
|
* URL of the associated Twitter account.
|
|
329
500
|
*/
|
|
@@ -359,7 +530,15 @@ export declare namespace RuleCreateResponse {
|
|
|
359
530
|
/**
|
|
360
531
|
* Type of wallet associated with the rule.
|
|
361
532
|
*/
|
|
362
|
-
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
533
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
|
|
534
|
+
/**
|
|
535
|
+
* ID of the Youtube channel.
|
|
536
|
+
*/
|
|
537
|
+
youtubeChannelId?: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* ID of the Youtube video.
|
|
540
|
+
*/
|
|
541
|
+
youtubeVideoId?: string | null;
|
|
363
542
|
}
|
|
364
543
|
namespace Metadata {
|
|
365
544
|
interface Collection {
|
|
@@ -374,7 +553,7 @@ export declare namespace RuleCreateResponse {
|
|
|
374
553
|
/**
|
|
375
554
|
* Blockchain network of the collection.
|
|
376
555
|
*/
|
|
377
|
-
network?: '
|
|
556
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
378
557
|
}
|
|
379
558
|
/**
|
|
380
559
|
* Object containing details for the call-to-action.
|
|
@@ -413,6 +592,10 @@ export declare namespace RuleCreateResponse {
|
|
|
413
592
|
* Array of emojis used in the channel.
|
|
414
593
|
*/
|
|
415
594
|
emojis?: Array<Channel.Emoji>;
|
|
595
|
+
/**
|
|
596
|
+
* Phrase of text to be present in the discord message
|
|
597
|
+
*/
|
|
598
|
+
text?: string;
|
|
416
599
|
}
|
|
417
600
|
namespace Channel {
|
|
418
601
|
interface Emoji {
|
|
@@ -435,6 +618,49 @@ export declare namespace RuleCreateResponse {
|
|
|
435
618
|
*/
|
|
436
619
|
id: string;
|
|
437
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* Liquidity pool details.
|
|
623
|
+
*/
|
|
624
|
+
interface Liquidity {
|
|
625
|
+
/**
|
|
626
|
+
* Calculation type of the liquidity pool.
|
|
627
|
+
*/
|
|
628
|
+
calculationType?: 'fixed' | 'custom';
|
|
629
|
+
/**
|
|
630
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
631
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
632
|
+
* USD.
|
|
633
|
+
*/
|
|
634
|
+
customFunction?: string;
|
|
635
|
+
/**
|
|
636
|
+
* Liquidity provided per day in USD
|
|
637
|
+
*/
|
|
638
|
+
liquidityPerDay?: number;
|
|
639
|
+
/**
|
|
640
|
+
* Blockchain network of the liquidity pool.
|
|
641
|
+
*/
|
|
642
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
643
|
+
/**
|
|
644
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
645
|
+
*/
|
|
646
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Array of liquidity pools associated with the rule.
|
|
649
|
+
*/
|
|
650
|
+
pools?: Array<Liquidity.Pool>;
|
|
651
|
+
/**
|
|
652
|
+
* Protocol of the liquidity pool.
|
|
653
|
+
*/
|
|
654
|
+
protocol?: string;
|
|
655
|
+
}
|
|
656
|
+
namespace Liquidity {
|
|
657
|
+
interface Pool {
|
|
658
|
+
/**
|
|
659
|
+
* Unique identifier of the liquidity pool.
|
|
660
|
+
*/
|
|
661
|
+
id: string;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
438
664
|
interface Range {
|
|
439
665
|
/**
|
|
440
666
|
* Reward amount for this range.
|
|
@@ -448,6 +674,14 @@ export declare namespace RuleCreateResponse {
|
|
|
448
674
|
* Start value of the range.
|
|
449
675
|
*/
|
|
450
676
|
startRange: number;
|
|
677
|
+
/**
|
|
678
|
+
* ID of the loyalty badge for this range.
|
|
679
|
+
*/
|
|
680
|
+
loyaltyBadgeId?: string;
|
|
681
|
+
/**
|
|
682
|
+
* Amount of the loyalty multiplier for this range.
|
|
683
|
+
*/
|
|
684
|
+
loyaltyMultiplierAmount?: number;
|
|
451
685
|
}
|
|
452
686
|
/**
|
|
453
687
|
* Object defining referral requirements.
|
|
@@ -491,14 +725,14 @@ export declare namespace RuleCreateResponse {
|
|
|
491
725
|
* Object containing details of the associated smart contract.
|
|
492
726
|
*/
|
|
493
727
|
interface SmartContract {
|
|
494
|
-
/**
|
|
495
|
-
* ABI of the smart contract.
|
|
496
|
-
*/
|
|
497
|
-
abi?: string | null;
|
|
498
728
|
/**
|
|
499
729
|
* Mapping of addresses for the smart contract.
|
|
500
730
|
*/
|
|
501
731
|
addressMapping?: string | null;
|
|
732
|
+
/**
|
|
733
|
+
* Object containing details of the amount multiplier from the event.
|
|
734
|
+
*/
|
|
735
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
502
736
|
/**
|
|
503
737
|
* Array of bonus details applied to the rule.
|
|
504
738
|
*/
|
|
@@ -527,6 +761,10 @@ export declare namespace RuleCreateResponse {
|
|
|
527
761
|
* Array of parameters for the smart contract.
|
|
528
762
|
*/
|
|
529
763
|
params?: Array<SmartContract.Param> | null;
|
|
764
|
+
/**
|
|
765
|
+
* Type of the smart contract interaction.
|
|
766
|
+
*/
|
|
767
|
+
type?: 'function' | 'event' | null;
|
|
530
768
|
/**
|
|
531
769
|
* Flag indicating if a bonus is applied.
|
|
532
770
|
*/
|
|
@@ -535,12 +773,17 @@ export declare namespace RuleCreateResponse {
|
|
|
535
773
|
* Flag indicating if a custom range is applied.
|
|
536
774
|
*/
|
|
537
775
|
withCustomRange?: boolean | null;
|
|
538
|
-
/**
|
|
539
|
-
* Flag indicating if a maximum limit is applied.
|
|
540
|
-
*/
|
|
541
|
-
withMax?: boolean | null;
|
|
542
776
|
}
|
|
543
777
|
namespace SmartContract {
|
|
778
|
+
/**
|
|
779
|
+
* Object containing details of the amount multiplier from the event.
|
|
780
|
+
*/
|
|
781
|
+
interface AmountMultiplier {
|
|
782
|
+
/**
|
|
783
|
+
* Mapping of the value for the smart contract.
|
|
784
|
+
*/
|
|
785
|
+
valueMapping?: string | null;
|
|
786
|
+
}
|
|
544
787
|
interface Bonus {
|
|
545
788
|
/**
|
|
546
789
|
* Amount of the bonus.
|
|
@@ -599,6 +842,24 @@ export declare namespace RuleCreateResponse {
|
|
|
599
842
|
*/
|
|
600
843
|
streakMilestone: number;
|
|
601
844
|
}
|
|
845
|
+
/**
|
|
846
|
+
* Metadata for swap loyalty rules
|
|
847
|
+
*/
|
|
848
|
+
interface Swap {
|
|
849
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
850
|
+
relayReferrerId?: string;
|
|
851
|
+
requireCrossChainSwap?: boolean;
|
|
852
|
+
swappedToChain?: 'any' | number | string;
|
|
853
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
854
|
+
tokenMode?: 'any' | 'specific';
|
|
855
|
+
trackTokenAmount?: boolean;
|
|
856
|
+
}
|
|
857
|
+
namespace Swap {
|
|
858
|
+
interface SwappedToToken {
|
|
859
|
+
address: string;
|
|
860
|
+
chainId: string;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
602
863
|
}
|
|
603
864
|
interface Collection {
|
|
604
865
|
/**
|
|
@@ -608,7 +869,7 @@ export declare namespace RuleCreateResponse {
|
|
|
608
869
|
/**
|
|
609
870
|
* Blockchain network for the collection
|
|
610
871
|
*/
|
|
611
|
-
network: '
|
|
872
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
612
873
|
}
|
|
613
874
|
}
|
|
614
875
|
export interface RuleUpdateResponse {
|
|
@@ -617,34 +878,14 @@ export interface RuleUpdateResponse {
|
|
|
617
878
|
* Reward amount for the loyalty rule
|
|
618
879
|
*/
|
|
619
880
|
amount: unknown;
|
|
620
|
-
/**
|
|
621
|
-
* Effective end time of the rule
|
|
622
|
-
*/
|
|
623
|
-
effectiveEndTime: string | null;
|
|
624
|
-
/**
|
|
625
|
-
* Effective start time of the rule
|
|
626
|
-
*/
|
|
627
|
-
effectiveStartTime: string | null;
|
|
628
881
|
/**
|
|
629
882
|
* End time for the loyalty rule
|
|
630
883
|
*/
|
|
631
884
|
endTime: string | null;
|
|
632
|
-
/**
|
|
633
|
-
* Frequency of the rule execution
|
|
634
|
-
*/
|
|
635
|
-
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
636
|
-
/**
|
|
637
|
-
* Additional metadata for the loyalty rule
|
|
638
|
-
*/
|
|
639
|
-
metadata: RuleUpdateResponse.Metadata;
|
|
640
885
|
/**
|
|
641
886
|
* Name of the loyalty rule
|
|
642
887
|
*/
|
|
643
888
|
name: string;
|
|
644
|
-
/**
|
|
645
|
-
* Start time for the loyalty rule
|
|
646
|
-
*/
|
|
647
|
-
startTime: string | null;
|
|
648
889
|
/**
|
|
649
890
|
* Blockchain address of the associated collection
|
|
650
891
|
*/
|
|
@@ -665,6 +906,22 @@ export interface RuleUpdateResponse {
|
|
|
665
906
|
* Optional description of the loyalty rule
|
|
666
907
|
*/
|
|
667
908
|
description?: string;
|
|
909
|
+
/**
|
|
910
|
+
* Effective end time of the rule
|
|
911
|
+
*/
|
|
912
|
+
effectiveEndTime?: string | null;
|
|
913
|
+
/**
|
|
914
|
+
* Effective start time of the rule
|
|
915
|
+
*/
|
|
916
|
+
effectiveStartTime?: string | null;
|
|
917
|
+
/**
|
|
918
|
+
* ID of the external integration
|
|
919
|
+
*/
|
|
920
|
+
externalIntegrationId?: string | null;
|
|
921
|
+
/**
|
|
922
|
+
* Frequency of the rule execution
|
|
923
|
+
*/
|
|
924
|
+
frequency?: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
668
925
|
/**
|
|
669
926
|
* Whether to hide this rule in the user interface
|
|
670
927
|
*/
|
|
@@ -672,7 +929,7 @@ export interface RuleUpdateResponse {
|
|
|
672
929
|
/**
|
|
673
930
|
* Time interval for recurring rule execution
|
|
674
931
|
*/
|
|
675
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
932
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
676
933
|
/**
|
|
677
934
|
* Whether this rule is required for participation
|
|
678
935
|
*/
|
|
@@ -681,10 +938,28 @@ export interface RuleUpdateResponse {
|
|
|
681
938
|
* ID of the rule group section to associate with the rule
|
|
682
939
|
*/
|
|
683
940
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
941
|
+
/**
|
|
942
|
+
* The interval for the max amount. Available for the smart contract and external
|
|
943
|
+
* rules.
|
|
944
|
+
*/
|
|
945
|
+
maxAmountInterval?: 'daily' | 'weekly' | 'monthly' | 'lifetime' | null;
|
|
946
|
+
/**
|
|
947
|
+
* The maximum amount of points a user can earn per interval. Available for the
|
|
948
|
+
* smart contract and external rules.
|
|
949
|
+
*/
|
|
950
|
+
maxAmountPerInterval?: number | null;
|
|
951
|
+
/**
|
|
952
|
+
* URL of the media to be displayed
|
|
953
|
+
*/
|
|
954
|
+
mediaUrl?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
* Additional metadata for the loyalty rule
|
|
957
|
+
*/
|
|
958
|
+
metadata?: RuleUpdateResponse.Metadata;
|
|
684
959
|
/**
|
|
685
960
|
* Blockchain network where the rule will apply
|
|
686
961
|
*/
|
|
687
|
-
network?: '
|
|
962
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
688
963
|
/**
|
|
689
964
|
* ID for associated OAuth credentials
|
|
690
965
|
*/
|
|
@@ -692,17 +967,39 @@ export interface RuleUpdateResponse {
|
|
|
692
967
|
/**
|
|
693
968
|
* Type of reward issued by this rule
|
|
694
969
|
*/
|
|
695
|
-
rewardType?: 'points' | 'multiplier';
|
|
970
|
+
rewardType?: 'points' | 'multiplier' | 'badge';
|
|
971
|
+
/**
|
|
972
|
+
* URL of the Shopify store
|
|
973
|
+
*/
|
|
974
|
+
shopifyStoreUrl?: string | null;
|
|
975
|
+
/**
|
|
976
|
+
* Start time for the loyalty rule
|
|
977
|
+
*/
|
|
978
|
+
startTime?: string | null;
|
|
696
979
|
/**
|
|
697
|
-
* Optional subscription
|
|
980
|
+
* Optional subscription id for the rule
|
|
698
981
|
*/
|
|
699
|
-
|
|
982
|
+
subscriptionId?: string | null;
|
|
700
983
|
}
|
|
701
984
|
export declare namespace RuleUpdateResponse {
|
|
985
|
+
interface Collection {
|
|
986
|
+
/**
|
|
987
|
+
* Blockchain address of the collection
|
|
988
|
+
*/
|
|
989
|
+
address: string;
|
|
990
|
+
/**
|
|
991
|
+
* Blockchain network for the collection
|
|
992
|
+
*/
|
|
993
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
994
|
+
}
|
|
702
995
|
/**
|
|
703
996
|
* Additional metadata for the loyalty rule
|
|
704
997
|
*/
|
|
705
998
|
interface Metadata {
|
|
999
|
+
/**
|
|
1000
|
+
* Number of tokens per batch.
|
|
1001
|
+
*/
|
|
1002
|
+
batchSize?: number | null;
|
|
706
1003
|
/**
|
|
707
1004
|
* Text displayed on the action button.
|
|
708
1005
|
*/
|
|
@@ -727,6 +1024,12 @@ export declare namespace RuleUpdateResponse {
|
|
|
727
1024
|
* Array of collections associated with the rule.
|
|
728
1025
|
*/
|
|
729
1026
|
collection?: Array<Metadata.Collection>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Conditions for completing the profile.
|
|
1029
|
+
*/
|
|
1030
|
+
completeProfileConditions?: {
|
|
1031
|
+
[key: string]: boolean;
|
|
1032
|
+
} | null;
|
|
730
1033
|
/**
|
|
731
1034
|
* Object containing details for the call-to-action.
|
|
732
1035
|
*/
|
|
@@ -755,10 +1058,18 @@ export declare namespace RuleUpdateResponse {
|
|
|
755
1058
|
* Flag indicating whether the verified multiplier is enabled.
|
|
756
1059
|
*/
|
|
757
1060
|
enableVerifiedMultiplier?: boolean;
|
|
1061
|
+
/**
|
|
1062
|
+
* Fill source of the order for the token sale
|
|
1063
|
+
*/
|
|
1064
|
+
fillSource?: string;
|
|
758
1065
|
/**
|
|
759
1066
|
* Percentage reward given to a user for their first referral.
|
|
760
1067
|
*/
|
|
761
1068
|
firstReferralReward?: number | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Flag indicating whether the fill source is included.
|
|
1071
|
+
*/
|
|
1072
|
+
hasFillSource?: boolean;
|
|
762
1073
|
/**
|
|
763
1074
|
* Indicates if the item has never been sold.
|
|
764
1075
|
*/
|
|
@@ -779,10 +1090,18 @@ export declare namespace RuleUpdateResponse {
|
|
|
779
1090
|
* URL of the image associated with the rule.
|
|
780
1091
|
*/
|
|
781
1092
|
imageUrl?: string | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
1095
|
+
*/
|
|
1096
|
+
isCheckInOnEveryTxn?: boolean;
|
|
782
1097
|
/**
|
|
783
1098
|
* Indicates if the multiplier has been applied to rewards.
|
|
784
1099
|
*/
|
|
785
1100
|
isMultiplierApplied?: boolean;
|
|
1101
|
+
/**
|
|
1102
|
+
* Flag indicating if the rule is restricted to new users.
|
|
1103
|
+
*/
|
|
1104
|
+
isRestrictedToNewUsers?: boolean;
|
|
786
1105
|
/**
|
|
787
1106
|
* Flag indicating if rewards are applied retroactively.
|
|
788
1107
|
*/
|
|
@@ -795,6 +1114,10 @@ export declare namespace RuleUpdateResponse {
|
|
|
795
1114
|
* Optional link associated with the metadata.
|
|
796
1115
|
*/
|
|
797
1116
|
link?: string | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Liquidity pool details.
|
|
1119
|
+
*/
|
|
1120
|
+
liquidity?: Metadata.Liquidity;
|
|
798
1121
|
/**
|
|
799
1122
|
* Maximum quantity constraint for token holding.
|
|
800
1123
|
*/
|
|
@@ -819,10 +1142,30 @@ export declare namespace RuleUpdateResponse {
|
|
|
819
1142
|
* Flag indicating whether to include only non-listed items.
|
|
820
1143
|
*/
|
|
821
1144
|
onlyNonListed?: boolean;
|
|
1145
|
+
/**
|
|
1146
|
+
* Indicates if only existing users are rewarded.
|
|
1147
|
+
*/
|
|
1148
|
+
onlyRewardExistingUser?: boolean;
|
|
1149
|
+
/**
|
|
1150
|
+
* give points for only one token ownership per contract
|
|
1151
|
+
*/
|
|
1152
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
822
1153
|
/**
|
|
823
1154
|
* Promotional code associated with the rule.
|
|
824
1155
|
*/
|
|
825
1156
|
promoCode?: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* URL of the CSV file containing promo codes.
|
|
1159
|
+
*/
|
|
1160
|
+
promoCodeCsvUrl?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Numbers of the promotional code to be generated.
|
|
1163
|
+
*/
|
|
1164
|
+
promoCodeLength?: number | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* Type of the promotional code.
|
|
1167
|
+
*/
|
|
1168
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
826
1169
|
/**
|
|
827
1170
|
* Array defining ranges and corresponding rewards.
|
|
828
1171
|
*/
|
|
@@ -835,10 +1178,27 @@ export declare namespace RuleUpdateResponse {
|
|
|
835
1178
|
* Lump sum reward given to a referrer.
|
|
836
1179
|
*/
|
|
837
1180
|
referrerReward?: number | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Loyalty currency ID of the referrer reward.
|
|
1183
|
+
*/
|
|
1184
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
1187
|
+
*/
|
|
1188
|
+
rewardBadgePerRange?: boolean;
|
|
1189
|
+
/**
|
|
1190
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
1191
|
+
*/
|
|
1192
|
+
rewardByBatch?: boolean | null;
|
|
838
1193
|
/**
|
|
839
1194
|
* Flag indicating if rewards are given per impression.
|
|
840
1195
|
*/
|
|
841
1196
|
rewardPerImpression?: boolean | null;
|
|
1197
|
+
/**
|
|
1198
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1199
|
+
* instead of count.
|
|
1200
|
+
*/
|
|
1201
|
+
rewardPerValue?: boolean;
|
|
842
1202
|
/**
|
|
843
1203
|
* Currency associated with sales.
|
|
844
1204
|
*/
|
|
@@ -847,6 +1207,10 @@ export declare namespace RuleUpdateResponse {
|
|
|
847
1207
|
* Percentage reward given for a second-level referral.
|
|
848
1208
|
*/
|
|
849
1209
|
secondReferralReward?: number | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Flag indicating if the multiplier is skipped.
|
|
1212
|
+
*/
|
|
1213
|
+
skipMultiplier?: boolean | null;
|
|
850
1214
|
/**
|
|
851
1215
|
* Object containing details of the associated smart contract.
|
|
852
1216
|
*/
|
|
@@ -858,7 +1222,7 @@ export declare namespace RuleUpdateResponse {
|
|
|
858
1222
|
/**
|
|
859
1223
|
* Social media platform associated with the rule.
|
|
860
1224
|
*/
|
|
861
|
-
socialPlatform?: '
|
|
1225
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
|
|
862
1226
|
/**
|
|
863
1227
|
* URL of the social platform's logo.
|
|
864
1228
|
*/
|
|
@@ -867,10 +1231,18 @@ export declare namespace RuleUpdateResponse {
|
|
|
867
1231
|
* Name of the social platform.
|
|
868
1232
|
*/
|
|
869
1233
|
socialPlatformName?: string | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* ID of the Steam app.
|
|
1236
|
+
*/
|
|
1237
|
+
steamAppId?: string | null;
|
|
870
1238
|
/**
|
|
871
1239
|
* Array of streak milestones and corresponding rewards.
|
|
872
1240
|
*/
|
|
873
1241
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Metadata for swap loyalty rules
|
|
1244
|
+
*/
|
|
1245
|
+
swap?: Metadata.Swap;
|
|
874
1246
|
/**
|
|
875
1247
|
* ID of the Telegram channel.
|
|
876
1248
|
*/
|
|
@@ -883,6 +1255,11 @@ export declare namespace RuleUpdateResponse {
|
|
|
883
1255
|
* Flag indicating if all contracts are tracked.
|
|
884
1256
|
*/
|
|
885
1257
|
trackAllContracts?: boolean | null;
|
|
1258
|
+
/**
|
|
1259
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
1260
|
+
* completed once the progress is 100%.
|
|
1261
|
+
*/
|
|
1262
|
+
trackProgress?: boolean | null;
|
|
886
1263
|
/**
|
|
887
1264
|
* URL of the associated Twitter account.
|
|
888
1265
|
*/
|
|
@@ -918,7 +1295,15 @@ export declare namespace RuleUpdateResponse {
|
|
|
918
1295
|
/**
|
|
919
1296
|
* Type of wallet associated with the rule.
|
|
920
1297
|
*/
|
|
921
|
-
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
1298
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* ID of the Youtube channel.
|
|
1301
|
+
*/
|
|
1302
|
+
youtubeChannelId?: string | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* ID of the Youtube video.
|
|
1305
|
+
*/
|
|
1306
|
+
youtubeVideoId?: string | null;
|
|
922
1307
|
}
|
|
923
1308
|
namespace Metadata {
|
|
924
1309
|
interface Collection {
|
|
@@ -933,7 +1318,7 @@ export declare namespace RuleUpdateResponse {
|
|
|
933
1318
|
/**
|
|
934
1319
|
* Blockchain network of the collection.
|
|
935
1320
|
*/
|
|
936
|
-
network?: '
|
|
1321
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
937
1322
|
}
|
|
938
1323
|
/**
|
|
939
1324
|
* Object containing details for the call-to-action.
|
|
@@ -972,6 +1357,10 @@ export declare namespace RuleUpdateResponse {
|
|
|
972
1357
|
* Array of emojis used in the channel.
|
|
973
1358
|
*/
|
|
974
1359
|
emojis?: Array<Channel.Emoji>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Phrase of text to be present in the discord message
|
|
1362
|
+
*/
|
|
1363
|
+
text?: string;
|
|
975
1364
|
}
|
|
976
1365
|
namespace Channel {
|
|
977
1366
|
interface Emoji {
|
|
@@ -994,6 +1383,49 @@ export declare namespace RuleUpdateResponse {
|
|
|
994
1383
|
*/
|
|
995
1384
|
id: string;
|
|
996
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Liquidity pool details.
|
|
1388
|
+
*/
|
|
1389
|
+
interface Liquidity {
|
|
1390
|
+
/**
|
|
1391
|
+
* Calculation type of the liquidity pool.
|
|
1392
|
+
*/
|
|
1393
|
+
calculationType?: 'fixed' | 'custom';
|
|
1394
|
+
/**
|
|
1395
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
1396
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
1397
|
+
* USD.
|
|
1398
|
+
*/
|
|
1399
|
+
customFunction?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Liquidity provided per day in USD
|
|
1402
|
+
*/
|
|
1403
|
+
liquidityPerDay?: number;
|
|
1404
|
+
/**
|
|
1405
|
+
* Blockchain network of the liquidity pool.
|
|
1406
|
+
*/
|
|
1407
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1408
|
+
/**
|
|
1409
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
1410
|
+
*/
|
|
1411
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
1412
|
+
/**
|
|
1413
|
+
* Array of liquidity pools associated with the rule.
|
|
1414
|
+
*/
|
|
1415
|
+
pools?: Array<Liquidity.Pool>;
|
|
1416
|
+
/**
|
|
1417
|
+
* Protocol of the liquidity pool.
|
|
1418
|
+
*/
|
|
1419
|
+
protocol?: string;
|
|
1420
|
+
}
|
|
1421
|
+
namespace Liquidity {
|
|
1422
|
+
interface Pool {
|
|
1423
|
+
/**
|
|
1424
|
+
* Unique identifier of the liquidity pool.
|
|
1425
|
+
*/
|
|
1426
|
+
id: string;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
997
1429
|
interface Range {
|
|
998
1430
|
/**
|
|
999
1431
|
* Reward amount for this range.
|
|
@@ -1007,6 +1439,14 @@ export declare namespace RuleUpdateResponse {
|
|
|
1007
1439
|
* Start value of the range.
|
|
1008
1440
|
*/
|
|
1009
1441
|
startRange: number;
|
|
1442
|
+
/**
|
|
1443
|
+
* ID of the loyalty badge for this range.
|
|
1444
|
+
*/
|
|
1445
|
+
loyaltyBadgeId?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* Amount of the loyalty multiplier for this range.
|
|
1448
|
+
*/
|
|
1449
|
+
loyaltyMultiplierAmount?: number;
|
|
1010
1450
|
}
|
|
1011
1451
|
/**
|
|
1012
1452
|
* Object defining referral requirements.
|
|
@@ -1050,14 +1490,14 @@ export declare namespace RuleUpdateResponse {
|
|
|
1050
1490
|
* Object containing details of the associated smart contract.
|
|
1051
1491
|
*/
|
|
1052
1492
|
interface SmartContract {
|
|
1053
|
-
/**
|
|
1054
|
-
* ABI of the smart contract.
|
|
1055
|
-
*/
|
|
1056
|
-
abi?: string | null;
|
|
1057
1493
|
/**
|
|
1058
1494
|
* Mapping of addresses for the smart contract.
|
|
1059
1495
|
*/
|
|
1060
1496
|
addressMapping?: string | null;
|
|
1497
|
+
/**
|
|
1498
|
+
* Object containing details of the amount multiplier from the event.
|
|
1499
|
+
*/
|
|
1500
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
1061
1501
|
/**
|
|
1062
1502
|
* Array of bonus details applied to the rule.
|
|
1063
1503
|
*/
|
|
@@ -1086,6 +1526,10 @@ export declare namespace RuleUpdateResponse {
|
|
|
1086
1526
|
* Array of parameters for the smart contract.
|
|
1087
1527
|
*/
|
|
1088
1528
|
params?: Array<SmartContract.Param> | null;
|
|
1529
|
+
/**
|
|
1530
|
+
* Type of the smart contract interaction.
|
|
1531
|
+
*/
|
|
1532
|
+
type?: 'function' | 'event' | null;
|
|
1089
1533
|
/**
|
|
1090
1534
|
* Flag indicating if a bonus is applied.
|
|
1091
1535
|
*/
|
|
@@ -1094,12 +1538,17 @@ export declare namespace RuleUpdateResponse {
|
|
|
1094
1538
|
* Flag indicating if a custom range is applied.
|
|
1095
1539
|
*/
|
|
1096
1540
|
withCustomRange?: boolean | null;
|
|
1097
|
-
/**
|
|
1098
|
-
* Flag indicating if a maximum limit is applied.
|
|
1099
|
-
*/
|
|
1100
|
-
withMax?: boolean | null;
|
|
1101
1541
|
}
|
|
1102
1542
|
namespace SmartContract {
|
|
1543
|
+
/**
|
|
1544
|
+
* Object containing details of the amount multiplier from the event.
|
|
1545
|
+
*/
|
|
1546
|
+
interface AmountMultiplier {
|
|
1547
|
+
/**
|
|
1548
|
+
* Mapping of the value for the smart contract.
|
|
1549
|
+
*/
|
|
1550
|
+
valueMapping?: string | null;
|
|
1551
|
+
}
|
|
1103
1552
|
interface Bonus {
|
|
1104
1553
|
/**
|
|
1105
1554
|
* Amount of the bonus.
|
|
@@ -1158,16 +1607,24 @@ export declare namespace RuleUpdateResponse {
|
|
|
1158
1607
|
*/
|
|
1159
1608
|
streakMilestone: number;
|
|
1160
1609
|
}
|
|
1161
|
-
}
|
|
1162
|
-
interface Collection {
|
|
1163
|
-
/**
|
|
1164
|
-
* Blockchain address of the collection
|
|
1165
|
-
*/
|
|
1166
|
-
address: string;
|
|
1167
1610
|
/**
|
|
1168
|
-
*
|
|
1611
|
+
* Metadata for swap loyalty rules
|
|
1169
1612
|
*/
|
|
1170
|
-
|
|
1613
|
+
interface Swap {
|
|
1614
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
1615
|
+
relayReferrerId?: string;
|
|
1616
|
+
requireCrossChainSwap?: boolean;
|
|
1617
|
+
swappedToChain?: 'any' | number | string;
|
|
1618
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
1619
|
+
tokenMode?: 'any' | 'specific';
|
|
1620
|
+
trackTokenAmount?: boolean;
|
|
1621
|
+
}
|
|
1622
|
+
namespace Swap {
|
|
1623
|
+
interface SwappedToToken {
|
|
1624
|
+
address: string;
|
|
1625
|
+
chainId: string;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1171
1628
|
}
|
|
1172
1629
|
}
|
|
1173
1630
|
export interface RuleListResponse {
|
|
@@ -1175,9 +1632,6 @@ export interface RuleListResponse {
|
|
|
1175
1632
|
hasNextPage: boolean;
|
|
1176
1633
|
}
|
|
1177
1634
|
export declare namespace RuleListResponse {
|
|
1178
|
-
/**
|
|
1179
|
-
* Schema for a loyalty rule
|
|
1180
|
-
*/
|
|
1181
1635
|
interface Data {
|
|
1182
1636
|
/**
|
|
1183
1637
|
* Unique identifier for the loyalty rule
|
|
@@ -1195,14 +1649,38 @@ export declare namespace RuleListResponse {
|
|
|
1195
1649
|
* Timestamp when the loyalty rule was deleted (if applicable)
|
|
1196
1650
|
*/
|
|
1197
1651
|
deletedAt: string | null;
|
|
1652
|
+
/**
|
|
1653
|
+
* Description of the loyalty rule
|
|
1654
|
+
*/
|
|
1655
|
+
description: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* End time of the loyalty rule
|
|
1658
|
+
*/
|
|
1659
|
+
endTime: string;
|
|
1198
1660
|
/**
|
|
1199
1661
|
* Frequency of the loyalty rule
|
|
1200
1662
|
*/
|
|
1201
1663
|
frequency: string;
|
|
1664
|
+
/**
|
|
1665
|
+
* Chains attached to the loyalty rule
|
|
1666
|
+
*/
|
|
1667
|
+
loyaltyRuleChain: Array<Data.LoyaltyRuleChain>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Name of the loyalty rule
|
|
1670
|
+
*/
|
|
1671
|
+
name: string;
|
|
1202
1672
|
/**
|
|
1203
1673
|
* Unique identifier for the organization
|
|
1204
1674
|
*/
|
|
1205
1675
|
organizationId: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* Type of the reward
|
|
1678
|
+
*/
|
|
1679
|
+
rewardType: 'points' | 'multiplier' | 'badge';
|
|
1680
|
+
/**
|
|
1681
|
+
* Start time of the loyalty rule
|
|
1682
|
+
*/
|
|
1683
|
+
startTime: string;
|
|
1206
1684
|
/**
|
|
1207
1685
|
* Type of the loyalty rule
|
|
1208
1686
|
*/
|
|
@@ -1219,10 +1697,730 @@ export declare namespace RuleListResponse {
|
|
|
1219
1697
|
* Optional address of the collection
|
|
1220
1698
|
*/
|
|
1221
1699
|
collectionAddress?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
* URL of the media associated with the loyalty rule
|
|
1702
|
+
*/
|
|
1703
|
+
mediaUrl?: string | null;
|
|
1222
1704
|
/**
|
|
1223
1705
|
* Optional metadata for the loyalty rule
|
|
1224
1706
|
*/
|
|
1225
|
-
metadata?:
|
|
1707
|
+
metadata?: {
|
|
1708
|
+
[key: string]: Data.Metadata;
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
namespace Data {
|
|
1712
|
+
interface LoyaltyRuleChain {
|
|
1713
|
+
/**
|
|
1714
|
+
* Unique identifier for the rule chain
|
|
1715
|
+
*/
|
|
1716
|
+
id: string;
|
|
1717
|
+
loyaltyConditions: Array<LoyaltyRuleChain.LoyaltyCondition>;
|
|
1718
|
+
/**
|
|
1719
|
+
* Unique identifier for the loyalty rule
|
|
1720
|
+
*/
|
|
1721
|
+
loyaltyRuleId: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Name of the rule chain
|
|
1724
|
+
*/
|
|
1725
|
+
name: string;
|
|
1726
|
+
}
|
|
1727
|
+
namespace LoyaltyRuleChain {
|
|
1728
|
+
interface LoyaltyCondition {
|
|
1729
|
+
/**
|
|
1730
|
+
* Unique identifier for the condition
|
|
1731
|
+
*/
|
|
1732
|
+
id: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Amount of the condition
|
|
1735
|
+
*/
|
|
1736
|
+
amount: number | null;
|
|
1737
|
+
association: Array<LoyaltyCondition.Association>;
|
|
1738
|
+
/**
|
|
1739
|
+
* URL of the CSV file
|
|
1740
|
+
*/
|
|
1741
|
+
csvUrl: string | null;
|
|
1742
|
+
/**
|
|
1743
|
+
* Description of the condition
|
|
1744
|
+
*/
|
|
1745
|
+
description: string | null;
|
|
1746
|
+
/**
|
|
1747
|
+
* Number of times the condition must be met
|
|
1748
|
+
*/
|
|
1749
|
+
repeatCount: number | null;
|
|
1750
|
+
/**
|
|
1751
|
+
* Number of times the condition must be met
|
|
1752
|
+
*/
|
|
1753
|
+
requiredCount: number | null;
|
|
1754
|
+
/**
|
|
1755
|
+
* Type of the condition
|
|
1756
|
+
*/
|
|
1757
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1758
|
+
}
|
|
1759
|
+
namespace LoyaltyCondition {
|
|
1760
|
+
interface Association {
|
|
1761
|
+
/**
|
|
1762
|
+
* Unique identifier for the association
|
|
1763
|
+
*/
|
|
1764
|
+
id: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* Unique identifier for the loyalty badge
|
|
1767
|
+
*/
|
|
1768
|
+
loyaltyBadgeId: string | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Unique identifier for the loyalty currency
|
|
1771
|
+
*/
|
|
1772
|
+
loyaltyCurrencyId: string | null;
|
|
1773
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
1774
|
+
/**
|
|
1775
|
+
* Unique identifier for the loyalty rule group
|
|
1776
|
+
*/
|
|
1777
|
+
loyaltyRuleGroupId: string | null;
|
|
1778
|
+
/**
|
|
1779
|
+
* Unique identifier for the loyalty rule
|
|
1780
|
+
*/
|
|
1781
|
+
loyaltyRuleId: string | null;
|
|
1782
|
+
}
|
|
1783
|
+
namespace Association {
|
|
1784
|
+
interface LoyaltyRule {
|
|
1785
|
+
/**
|
|
1786
|
+
* Name of the loyalty rule
|
|
1787
|
+
*/
|
|
1788
|
+
name: string;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
interface Metadata {
|
|
1794
|
+
/**
|
|
1795
|
+
* Number of tokens per batch.
|
|
1796
|
+
*/
|
|
1797
|
+
batchSize?: number | null;
|
|
1798
|
+
/**
|
|
1799
|
+
* Text displayed on the action button.
|
|
1800
|
+
*/
|
|
1801
|
+
buttonText?: string | null;
|
|
1802
|
+
/**
|
|
1803
|
+
* Flag indicating if commenting is required.
|
|
1804
|
+
*/
|
|
1805
|
+
checkComment?: boolean | null;
|
|
1806
|
+
/**
|
|
1807
|
+
* Flag indicating if liking the post is required.
|
|
1808
|
+
*/
|
|
1809
|
+
checkLike?: boolean | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* Flag indicating if reposting is required.
|
|
1812
|
+
*/
|
|
1813
|
+
checkRepost?: boolean | null;
|
|
1814
|
+
/**
|
|
1815
|
+
* Text to check in the Twitter post, username, or bio.
|
|
1816
|
+
*/
|
|
1817
|
+
checkText?: string | null;
|
|
1818
|
+
/**
|
|
1819
|
+
* Array of collections associated with the rule.
|
|
1820
|
+
*/
|
|
1821
|
+
collection?: Array<Metadata.Collection>;
|
|
1822
|
+
/**
|
|
1823
|
+
* Conditions for completing the profile.
|
|
1824
|
+
*/
|
|
1825
|
+
completeProfileConditions?: {
|
|
1826
|
+
[key: string]: boolean;
|
|
1827
|
+
} | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* Object containing details for the call-to-action.
|
|
1830
|
+
*/
|
|
1831
|
+
cta?: Metadata.Cta | null;
|
|
1832
|
+
/**
|
|
1833
|
+
* API key for custom rewards integration.
|
|
1834
|
+
*/
|
|
1835
|
+
customRewardsApiKey?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* Array of Discord servers, channels, and roles to join.
|
|
1838
|
+
*/
|
|
1839
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
1840
|
+
/**
|
|
1841
|
+
* Array of drip quests required to complete the rule.
|
|
1842
|
+
*/
|
|
1843
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
1844
|
+
/**
|
|
1845
|
+
* Flag indicating whether joining Discord servers is required.
|
|
1846
|
+
*/
|
|
1847
|
+
enableJoinDiscordServers?: boolean | null;
|
|
1848
|
+
/**
|
|
1849
|
+
* Flag indicating whether streaks are enabled.
|
|
1850
|
+
*/
|
|
1851
|
+
enableStreaks?: boolean | null;
|
|
1852
|
+
/**
|
|
1853
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
1854
|
+
*/
|
|
1855
|
+
enableVerifiedMultiplier?: boolean;
|
|
1856
|
+
/**
|
|
1857
|
+
* Fill source of the order for the token sale
|
|
1858
|
+
*/
|
|
1859
|
+
fillSource?: string;
|
|
1860
|
+
/**
|
|
1861
|
+
* Percentage reward given to a user for their first referral.
|
|
1862
|
+
*/
|
|
1863
|
+
firstReferralReward?: number | null;
|
|
1864
|
+
/**
|
|
1865
|
+
* Flag indicating whether the fill source is included.
|
|
1866
|
+
*/
|
|
1867
|
+
hasFillSource?: boolean;
|
|
1868
|
+
/**
|
|
1869
|
+
* Indicates if the item has never been sold.
|
|
1870
|
+
*/
|
|
1871
|
+
hasNeverSold?: boolean;
|
|
1872
|
+
/**
|
|
1873
|
+
* Indicates if the full royalty has been paid for items.
|
|
1874
|
+
*/
|
|
1875
|
+
hasPaidFullRoyalty?: boolean;
|
|
1876
|
+
/**
|
|
1877
|
+
* Flag indicating if the sale currency is included.
|
|
1878
|
+
*/
|
|
1879
|
+
hasSaleCurrency?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Indicates if the user has a verified Twitter account.
|
|
1882
|
+
*/
|
|
1883
|
+
hasVerifiedTwitter?: boolean;
|
|
1884
|
+
/**
|
|
1885
|
+
* URL of the image associated with the rule.
|
|
1886
|
+
*/
|
|
1887
|
+
imageUrl?: string | null;
|
|
1888
|
+
/**
|
|
1889
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
1890
|
+
*/
|
|
1891
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1892
|
+
/**
|
|
1893
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
1894
|
+
*/
|
|
1895
|
+
isMultiplierApplied?: boolean;
|
|
1896
|
+
/**
|
|
1897
|
+
* Flag indicating if the rule is restricted to new users.
|
|
1898
|
+
*/
|
|
1899
|
+
isRestrictedToNewUsers?: boolean;
|
|
1900
|
+
/**
|
|
1901
|
+
* Flag indicating if rewards are applied retroactively.
|
|
1902
|
+
*/
|
|
1903
|
+
isRetroactive?: boolean | null;
|
|
1904
|
+
/**
|
|
1905
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
1906
|
+
*/
|
|
1907
|
+
isTokenHoldMultiplier?: boolean;
|
|
1908
|
+
/**
|
|
1909
|
+
* Optional link associated with the metadata.
|
|
1910
|
+
*/
|
|
1911
|
+
link?: string | null;
|
|
1912
|
+
/**
|
|
1913
|
+
* Liquidity pool details.
|
|
1914
|
+
*/
|
|
1915
|
+
liquidity?: Metadata.Liquidity;
|
|
1916
|
+
/**
|
|
1917
|
+
* Maximum quantity constraint for token holding.
|
|
1918
|
+
*/
|
|
1919
|
+
maxQty?: number | null;
|
|
1920
|
+
/**
|
|
1921
|
+
* Minimum quantity constraint for token holding.
|
|
1922
|
+
*/
|
|
1923
|
+
minQty?: number | null;
|
|
1924
|
+
/**
|
|
1925
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
1926
|
+
*/
|
|
1927
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
1928
|
+
/**
|
|
1929
|
+
* Flag indicating whether to include only known users.
|
|
1930
|
+
*/
|
|
1931
|
+
onlyKnownUsers?: boolean;
|
|
1932
|
+
/**
|
|
1933
|
+
* Flag indicating whether to include only native tokens.
|
|
1934
|
+
*/
|
|
1935
|
+
onlyNative?: boolean;
|
|
1936
|
+
/**
|
|
1937
|
+
* Flag indicating whether to include only non-listed items.
|
|
1938
|
+
*/
|
|
1939
|
+
onlyNonListed?: boolean;
|
|
1940
|
+
/**
|
|
1941
|
+
* Indicates if only existing users are rewarded.
|
|
1942
|
+
*/
|
|
1943
|
+
onlyRewardExistingUser?: boolean;
|
|
1944
|
+
/**
|
|
1945
|
+
* give points for only one token ownership per contract
|
|
1946
|
+
*/
|
|
1947
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1948
|
+
/**
|
|
1949
|
+
* Promotional code associated with the rule.
|
|
1950
|
+
*/
|
|
1951
|
+
promoCode?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* URL of the CSV file containing promo codes.
|
|
1954
|
+
*/
|
|
1955
|
+
promoCodeCsvUrl?: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* Numbers of the promotional code to be generated.
|
|
1958
|
+
*/
|
|
1959
|
+
promoCodeLength?: number | null;
|
|
1960
|
+
/**
|
|
1961
|
+
* Type of the promotional code.
|
|
1962
|
+
*/
|
|
1963
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
1964
|
+
/**
|
|
1965
|
+
* Array defining ranges and corresponding rewards.
|
|
1966
|
+
*/
|
|
1967
|
+
range?: Array<Metadata.Range>;
|
|
1968
|
+
/**
|
|
1969
|
+
* Object defining referral requirements.
|
|
1970
|
+
*/
|
|
1971
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
1972
|
+
/**
|
|
1973
|
+
* Lump sum reward given to a referrer.
|
|
1974
|
+
*/
|
|
1975
|
+
referrerReward?: number | null;
|
|
1976
|
+
/**
|
|
1977
|
+
* Loyalty currency ID of the referrer reward.
|
|
1978
|
+
*/
|
|
1979
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
1980
|
+
/**
|
|
1981
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
1982
|
+
*/
|
|
1983
|
+
rewardBadgePerRange?: boolean;
|
|
1984
|
+
/**
|
|
1985
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
1986
|
+
*/
|
|
1987
|
+
rewardByBatch?: boolean | null;
|
|
1988
|
+
/**
|
|
1989
|
+
* Flag indicating if rewards are given per impression.
|
|
1990
|
+
*/
|
|
1991
|
+
rewardPerImpression?: boolean | null;
|
|
1992
|
+
/**
|
|
1993
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
1994
|
+
* instead of count.
|
|
1995
|
+
*/
|
|
1996
|
+
rewardPerValue?: boolean;
|
|
1997
|
+
/**
|
|
1998
|
+
* Currency associated with sales.
|
|
1999
|
+
*/
|
|
2000
|
+
saleCurrency?: string;
|
|
2001
|
+
/**
|
|
2002
|
+
* Percentage reward given for a second-level referral.
|
|
2003
|
+
*/
|
|
2004
|
+
secondReferralReward?: number | null;
|
|
2005
|
+
/**
|
|
2006
|
+
* Flag indicating if the multiplier is skipped.
|
|
2007
|
+
*/
|
|
2008
|
+
skipMultiplier?: boolean | null;
|
|
2009
|
+
/**
|
|
2010
|
+
* Object containing details of the associated smart contract.
|
|
2011
|
+
*/
|
|
2012
|
+
smartContract?: Metadata.SmartContract;
|
|
2013
|
+
/**
|
|
2014
|
+
* Array of snapshot proposals for the rule.
|
|
2015
|
+
*/
|
|
2016
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
2017
|
+
/**
|
|
2018
|
+
* Social media platform associated with the rule.
|
|
2019
|
+
*/
|
|
2020
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
|
|
2021
|
+
/**
|
|
2022
|
+
* URL of the social platform's logo.
|
|
2023
|
+
*/
|
|
2024
|
+
socialPlatformLogo?: string | null;
|
|
2025
|
+
/**
|
|
2026
|
+
* Name of the social platform.
|
|
2027
|
+
*/
|
|
2028
|
+
socialPlatformName?: string | null;
|
|
2029
|
+
/**
|
|
2030
|
+
* ID of the Steam app.
|
|
2031
|
+
*/
|
|
2032
|
+
steamAppId?: string | null;
|
|
2033
|
+
/**
|
|
2034
|
+
* Array of streak milestones and corresponding rewards.
|
|
2035
|
+
*/
|
|
2036
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
2037
|
+
/**
|
|
2038
|
+
* Metadata for swap loyalty rules
|
|
2039
|
+
*/
|
|
2040
|
+
swap?: Metadata.Swap;
|
|
2041
|
+
/**
|
|
2042
|
+
* ID of the Telegram channel.
|
|
2043
|
+
*/
|
|
2044
|
+
telegramChannelId?: string | null;
|
|
2045
|
+
/**
|
|
2046
|
+
* Time delay in seconds to verify actions.
|
|
2047
|
+
*/
|
|
2048
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
2049
|
+
/**
|
|
2050
|
+
* Flag indicating if all contracts are tracked.
|
|
2051
|
+
*/
|
|
2052
|
+
trackAllContracts?: boolean | null;
|
|
2053
|
+
/**
|
|
2054
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2055
|
+
* completed once the progress is 100%.
|
|
2056
|
+
*/
|
|
2057
|
+
trackProgress?: boolean | null;
|
|
2058
|
+
/**
|
|
2059
|
+
* URL of the associated Twitter account.
|
|
2060
|
+
*/
|
|
2061
|
+
twitterAccountUrl?: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* Hashtag associated with the Twitter post.
|
|
2064
|
+
*/
|
|
2065
|
+
twitterHashtag?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* URL of the associated Twitter post.
|
|
2068
|
+
*/
|
|
2069
|
+
twitterPostUrl?: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Unique identifier of the Twitter user.
|
|
2072
|
+
*/
|
|
2073
|
+
twitterUserId?: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Twitter username of the user.
|
|
2076
|
+
*/
|
|
2077
|
+
twitterUsername?: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* Minimum length of the verification text.
|
|
2080
|
+
*/
|
|
2081
|
+
verificationTextMinimumLength?: number | null;
|
|
2082
|
+
/**
|
|
2083
|
+
* Multiplier applied to rewards for verified users.
|
|
2084
|
+
*/
|
|
2085
|
+
verifiedMultiplier?: number | null;
|
|
2086
|
+
/**
|
|
2087
|
+
* Placeholder text for verification input fields.
|
|
2088
|
+
*/
|
|
2089
|
+
verifyPlaceHolderText?: string | null;
|
|
2090
|
+
/**
|
|
2091
|
+
* Type of wallet associated with the rule.
|
|
2092
|
+
*/
|
|
2093
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
|
|
2094
|
+
/**
|
|
2095
|
+
* ID of the Youtube channel.
|
|
2096
|
+
*/
|
|
2097
|
+
youtubeChannelId?: string | null;
|
|
2098
|
+
/**
|
|
2099
|
+
* ID of the Youtube video.
|
|
2100
|
+
*/
|
|
2101
|
+
youtubeVideoId?: string | null;
|
|
2102
|
+
}
|
|
2103
|
+
namespace Metadata {
|
|
2104
|
+
interface Collection {
|
|
2105
|
+
/**
|
|
2106
|
+
* Blockchain address of the collection.
|
|
2107
|
+
*/
|
|
2108
|
+
address?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* Multiplier applied to the rewards for this collection.
|
|
2111
|
+
*/
|
|
2112
|
+
multiplier?: number;
|
|
2113
|
+
/**
|
|
2114
|
+
* Blockchain network of the collection.
|
|
2115
|
+
*/
|
|
2116
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Object containing details for the call-to-action.
|
|
2120
|
+
*/
|
|
2121
|
+
interface Cta {
|
|
2122
|
+
/**
|
|
2123
|
+
* Link for the call-to-action.
|
|
2124
|
+
*/
|
|
2125
|
+
href?: string | null;
|
|
2126
|
+
/**
|
|
2127
|
+
* Label for the call-to-action.
|
|
2128
|
+
*/
|
|
2129
|
+
label?: string | null;
|
|
2130
|
+
}
|
|
2131
|
+
interface DiscordServersToJoin {
|
|
2132
|
+
/**
|
|
2133
|
+
* ID of the Discord server to join.
|
|
2134
|
+
*/
|
|
2135
|
+
id?: string;
|
|
2136
|
+
/**
|
|
2137
|
+
* Array of Discord channels to join.
|
|
2138
|
+
*/
|
|
2139
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
2140
|
+
/**
|
|
2141
|
+
* Array of roles to assign in the Discord server.
|
|
2142
|
+
*/
|
|
2143
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
2144
|
+
}
|
|
2145
|
+
namespace DiscordServersToJoin {
|
|
2146
|
+
interface Channel {
|
|
2147
|
+
/**
|
|
2148
|
+
* ID of the Discord channel.
|
|
2149
|
+
*/
|
|
2150
|
+
id?: string;
|
|
2151
|
+
/**
|
|
2152
|
+
* Array of emojis used in the channel.
|
|
2153
|
+
*/
|
|
2154
|
+
emojis?: Array<Channel.Emoji>;
|
|
2155
|
+
/**
|
|
2156
|
+
* Phrase of text to be present in the discord message
|
|
2157
|
+
*/
|
|
2158
|
+
text?: string;
|
|
2159
|
+
}
|
|
2160
|
+
namespace Channel {
|
|
2161
|
+
interface Emoji {
|
|
2162
|
+
/**
|
|
2163
|
+
* ID of the emoji used in the channel.
|
|
2164
|
+
*/
|
|
2165
|
+
id?: string;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
interface Role {
|
|
2169
|
+
/**
|
|
2170
|
+
* ID of the role in the Discord server.
|
|
2171
|
+
*/
|
|
2172
|
+
id: string;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
interface DripQuestsToComplete {
|
|
2176
|
+
/**
|
|
2177
|
+
* ID of the drip quest to complete.
|
|
2178
|
+
*/
|
|
2179
|
+
id: string;
|
|
2180
|
+
}
|
|
2181
|
+
/**
|
|
2182
|
+
* Liquidity pool details.
|
|
2183
|
+
*/
|
|
2184
|
+
interface Liquidity {
|
|
2185
|
+
/**
|
|
2186
|
+
* Calculation type of the liquidity pool.
|
|
2187
|
+
*/
|
|
2188
|
+
calculationType?: 'fixed' | 'custom';
|
|
2189
|
+
/**
|
|
2190
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
2191
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
2192
|
+
* USD.
|
|
2193
|
+
*/
|
|
2194
|
+
customFunction?: string;
|
|
2195
|
+
/**
|
|
2196
|
+
* Liquidity provided per day in USD
|
|
2197
|
+
*/
|
|
2198
|
+
liquidityPerDay?: number;
|
|
2199
|
+
/**
|
|
2200
|
+
* Blockchain network of the liquidity pool.
|
|
2201
|
+
*/
|
|
2202
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
2203
|
+
/**
|
|
2204
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
2205
|
+
*/
|
|
2206
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
2207
|
+
/**
|
|
2208
|
+
* Array of liquidity pools associated with the rule.
|
|
2209
|
+
*/
|
|
2210
|
+
pools?: Array<Liquidity.Pool>;
|
|
2211
|
+
/**
|
|
2212
|
+
* Protocol of the liquidity pool.
|
|
2213
|
+
*/
|
|
2214
|
+
protocol?: string;
|
|
2215
|
+
}
|
|
2216
|
+
namespace Liquidity {
|
|
2217
|
+
interface Pool {
|
|
2218
|
+
/**
|
|
2219
|
+
* Unique identifier of the liquidity pool.
|
|
2220
|
+
*/
|
|
2221
|
+
id: string;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
interface Range {
|
|
2225
|
+
/**
|
|
2226
|
+
* Reward amount for this range.
|
|
2227
|
+
*/
|
|
2228
|
+
amount: number;
|
|
2229
|
+
/**
|
|
2230
|
+
* End value of the range.
|
|
2231
|
+
*/
|
|
2232
|
+
endRange: number;
|
|
2233
|
+
/**
|
|
2234
|
+
* Start value of the range.
|
|
2235
|
+
*/
|
|
2236
|
+
startRange: number;
|
|
2237
|
+
/**
|
|
2238
|
+
* ID of the loyalty badge for this range.
|
|
2239
|
+
*/
|
|
2240
|
+
loyaltyBadgeId?: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* Amount of the loyalty multiplier for this range.
|
|
2243
|
+
*/
|
|
2244
|
+
loyaltyMultiplierAmount?: number;
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* Object defining referral requirements.
|
|
2248
|
+
*/
|
|
2249
|
+
interface ReferralRequirements {
|
|
2250
|
+
/**
|
|
2251
|
+
* Flag indicating if achieving points is required.
|
|
2252
|
+
*/
|
|
2253
|
+
achievePoints?: boolean | null;
|
|
2254
|
+
/**
|
|
2255
|
+
* Flag indicating if completing the profile is required.
|
|
2256
|
+
*/
|
|
2257
|
+
completeProfile?: boolean | null;
|
|
2258
|
+
/**
|
|
2259
|
+
* Flag indicating if connecting Discord is required.
|
|
2260
|
+
*/
|
|
2261
|
+
connectDiscord?: boolean | null;
|
|
2262
|
+
/**
|
|
2263
|
+
* Flag indicating if connecting email is required.
|
|
2264
|
+
*/
|
|
2265
|
+
connectEmail?: boolean | null;
|
|
2266
|
+
/**
|
|
2267
|
+
* Flag indicating if connecting Twitter is required.
|
|
2268
|
+
*/
|
|
2269
|
+
connectTwitter?: boolean | null;
|
|
2270
|
+
points?: ReferralRequirements.Points | null;
|
|
2271
|
+
}
|
|
2272
|
+
namespace ReferralRequirements {
|
|
2273
|
+
interface Points {
|
|
2274
|
+
/**
|
|
2275
|
+
* Points required for referral.
|
|
2276
|
+
*/
|
|
2277
|
+
amount?: number | null;
|
|
2278
|
+
/**
|
|
2279
|
+
* ID of the loyalty currency for referral.
|
|
2280
|
+
*/
|
|
2281
|
+
loyaltyCurrecyId?: string | null;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* Object containing details of the associated smart contract.
|
|
2286
|
+
*/
|
|
2287
|
+
interface SmartContract {
|
|
2288
|
+
/**
|
|
2289
|
+
* Mapping of addresses for the smart contract.
|
|
2290
|
+
*/
|
|
2291
|
+
addressMapping?: string | null;
|
|
2292
|
+
/**
|
|
2293
|
+
* Object containing details of the amount multiplier from the event.
|
|
2294
|
+
*/
|
|
2295
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
2296
|
+
/**
|
|
2297
|
+
* Array of bonus details applied to the rule.
|
|
2298
|
+
*/
|
|
2299
|
+
bonus?: Array<SmartContract.Bonus> | null;
|
|
2300
|
+
/**
|
|
2301
|
+
* ID of the smart contract.
|
|
2302
|
+
*/
|
|
2303
|
+
contractId?: string | null;
|
|
2304
|
+
/**
|
|
2305
|
+
* Criteria to evaluate the smart contract event.
|
|
2306
|
+
*/
|
|
2307
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
2308
|
+
/**
|
|
2309
|
+
* Time range applied to the rule.
|
|
2310
|
+
*/
|
|
2311
|
+
customRange?: SmartContract.CustomRange | null;
|
|
2312
|
+
/**
|
|
2313
|
+
* Event emitted by the smart contract.
|
|
2314
|
+
*/
|
|
2315
|
+
event?: string | null;
|
|
2316
|
+
/**
|
|
2317
|
+
* Maximum value allowed for the parameter.
|
|
2318
|
+
*/
|
|
2319
|
+
max?: number | null;
|
|
2320
|
+
/**
|
|
2321
|
+
* Array of parameters for the smart contract.
|
|
2322
|
+
*/
|
|
2323
|
+
params?: Array<SmartContract.Param> | null;
|
|
2324
|
+
/**
|
|
2325
|
+
* Type of the smart contract interaction.
|
|
2326
|
+
*/
|
|
2327
|
+
type?: 'function' | 'event' | null;
|
|
2328
|
+
/**
|
|
2329
|
+
* Flag indicating if a bonus is applied.
|
|
2330
|
+
*/
|
|
2331
|
+
withBonus?: boolean | null;
|
|
2332
|
+
/**
|
|
2333
|
+
* Flag indicating if a custom range is applied.
|
|
2334
|
+
*/
|
|
2335
|
+
withCustomRange?: boolean | null;
|
|
2336
|
+
}
|
|
2337
|
+
namespace SmartContract {
|
|
2338
|
+
/**
|
|
2339
|
+
* Object containing details of the amount multiplier from the event.
|
|
2340
|
+
*/
|
|
2341
|
+
interface AmountMultiplier {
|
|
2342
|
+
/**
|
|
2343
|
+
* Mapping of the value for the smart contract.
|
|
2344
|
+
*/
|
|
2345
|
+
valueMapping?: string | null;
|
|
2346
|
+
}
|
|
2347
|
+
interface Bonus {
|
|
2348
|
+
/**
|
|
2349
|
+
* Amount of the bonus.
|
|
2350
|
+
*/
|
|
2351
|
+
amount?: number | null;
|
|
2352
|
+
/**
|
|
2353
|
+
* Number of times the bonus is applied.
|
|
2354
|
+
*/
|
|
2355
|
+
count?: number | null;
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* Time range applied to the rule.
|
|
2359
|
+
*/
|
|
2360
|
+
interface CustomRange {
|
|
2361
|
+
/**
|
|
2362
|
+
* End time of the custom range.
|
|
2363
|
+
*/
|
|
2364
|
+
endsAt?: string | null;
|
|
2365
|
+
/**
|
|
2366
|
+
* Start time of the custom range.
|
|
2367
|
+
*/
|
|
2368
|
+
startsAt?: string | null;
|
|
2369
|
+
}
|
|
2370
|
+
interface Param {
|
|
2371
|
+
/**
|
|
2372
|
+
* Condition to check for the parameter.
|
|
2373
|
+
*/
|
|
2374
|
+
condition?: string | null;
|
|
2375
|
+
/**
|
|
2376
|
+
* Name of the smart contract parameter.
|
|
2377
|
+
*/
|
|
2378
|
+
name?: string | null;
|
|
2379
|
+
/**
|
|
2380
|
+
* Value of the parameter.
|
|
2381
|
+
*/
|
|
2382
|
+
value?: string | null;
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
interface SnapshotProposal {
|
|
2386
|
+
/**
|
|
2387
|
+
* ID of the snapshot proposal.
|
|
2388
|
+
*/
|
|
2389
|
+
id: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* Space associated with the snapshot proposal.
|
|
2392
|
+
*/
|
|
2393
|
+
space: string;
|
|
2394
|
+
}
|
|
2395
|
+
interface StreakArray {
|
|
2396
|
+
/**
|
|
2397
|
+
* Reward amount for achieving the streak milestone.
|
|
2398
|
+
*/
|
|
2399
|
+
streakAmount: number;
|
|
2400
|
+
/**
|
|
2401
|
+
* Milestone required to achieve the streak.
|
|
2402
|
+
*/
|
|
2403
|
+
streakMilestone: number;
|
|
2404
|
+
}
|
|
2405
|
+
/**
|
|
2406
|
+
* Metadata for swap loyalty rules
|
|
2407
|
+
*/
|
|
2408
|
+
interface Swap {
|
|
2409
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
2410
|
+
relayReferrerId?: string;
|
|
2411
|
+
requireCrossChainSwap?: boolean;
|
|
2412
|
+
swappedToChain?: 'any' | number | string;
|
|
2413
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
2414
|
+
tokenMode?: 'any' | 'specific';
|
|
2415
|
+
trackTokenAmount?: boolean;
|
|
2416
|
+
}
|
|
2417
|
+
namespace Swap {
|
|
2418
|
+
interface SwappedToToken {
|
|
2419
|
+
address: string;
|
|
2420
|
+
chainId: string;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
1226
2424
|
}
|
|
1227
2425
|
}
|
|
1228
2426
|
export interface RuleDeleteResponse {
|
|
@@ -1230,12 +2428,12 @@ export interface RuleDeleteResponse {
|
|
|
1230
2428
|
deletedAt: string;
|
|
1231
2429
|
}
|
|
1232
2430
|
export interface RuleCompleteResponse {
|
|
1233
|
-
message:
|
|
2431
|
+
message: 'Completion request added to queue' | 'Link click being verified, come back later to check the status';
|
|
1234
2432
|
}
|
|
1235
|
-
export interface
|
|
1236
|
-
data: Array<
|
|
2433
|
+
export interface RuleGetStatusResponse {
|
|
2434
|
+
data: Array<RuleGetStatusResponse.Data>;
|
|
1237
2435
|
}
|
|
1238
|
-
export declare namespace
|
|
2436
|
+
export declare namespace RuleGetStatusResponse {
|
|
1239
2437
|
interface Data {
|
|
1240
2438
|
loyaltyRuleId: string;
|
|
1241
2439
|
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
@@ -1287,7 +2485,7 @@ export interface RuleCreateParams {
|
|
|
1287
2485
|
/**
|
|
1288
2486
|
* Type of loyalty rule being created
|
|
1289
2487
|
*/
|
|
1290
|
-
type: 'Bonus' | 'BoughtOn' | 'BoughtWithRoyalties' | 'DiscordMessages' | 'Listing' | 'Lodging' | 'MintOn' | 'PoapClaim' | 'SnagSocialsConnected' | 'SnapshotFullset' | 'SnapshotHold' | 'SoldOn' | 'SoldWithRoyalties' | 'TokenHold' | 'TwitterBio' | 'TwitterHashTagPost' | 'Retweet' | 'check_in' | 'code_entry' | 'connect_wallet' | 'connected_discord' | 'connected_email' | 'connected_epic' | 'connected_steam' | 'connected_telegram' | 'connected_twitter' | 'create_partner_account' | 'discord_member' | 'drip_x_follow' | 'drip_x_new_tweet' | 'drip_x_text_in_bio' | 'drip_x_text_in_comment' | 'drip_x_text_in_name' | 'drip_x_tweet' | 'external_rule' | 'link_click' | 'manual_upload' | 'profile_completed' | 'referred_user' | 'smart_contract_event' | 'snapshot_governance' | 'telegram_join' | 'telegram_messages' | 'text_input' | 'token_hold_erc20' | 'tweet_liked_by_project' | 'twitter_comment' | 'twitter_follow' | 'twitter_followers' | 'twitter_like' | 'twitter_post_hashtag';
|
|
2488
|
+
type: 'Bonus' | 'BoughtOn' | 'BoughtWithRoyalties' | 'DiscordMessages' | 'Listing' | 'Lodging' | 'MintOn' | 'PoapClaim' | 'SnagSocialsConnected' | 'SnapshotFullset' | 'SnapshotHold' | 'SoldOn' | 'SoldWithRoyalties' | 'TokenHold' | 'TwitterBio' | 'TwitterHashTagPost' | 'Retweet' | 'check_in' | 'code_entry' | 'connect_wallet' | 'connected_discord' | 'connected_email' | 'connected_epic' | 'connected_steam' | 'connected_telegram' | 'connected_twitter' | 'create_partner_account' | 'discord_member' | 'drip_x_follow' | 'drip_x_new_tweet' | 'drip_x_text_in_bio' | 'drip_x_text_in_comment' | 'drip_x_text_in_name' | 'drip_x_tweet' | 'external_rule' | 'link_click' | 'manual_upload' | 'profile_completed' | 'referred_user' | 'smart_contract_event' | 'snapshot_governance' | 'telegram_join' | 'telegram_messages' | 'text_input' | 'token_hold_erc20' | 'tweet_liked_by_project' | 'twitter_comment' | 'twitter_follow' | 'twitter_followers' | 'twitter_like' | 'twitter_post_hashtag' | 'quiz' | 'poll' | 'steam_wishlist' | 'liquidity_uniswap_v2' | 'liquidity_uniswap_v3' | 'points_airdrop' | 'youtube_subscribers' | 'youtube_comment' | 'shopify_spend' | 'swap' | 'tiktok_post';
|
|
1291
2489
|
/**
|
|
1292
2490
|
* Unique identifier for the associated website
|
|
1293
2491
|
*/
|
|
@@ -1316,6 +2514,10 @@ export interface RuleCreateParams {
|
|
|
1316
2514
|
* Optional detailed description of the rule
|
|
1317
2515
|
*/
|
|
1318
2516
|
description?: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* ID of the external integration
|
|
2519
|
+
*/
|
|
2520
|
+
externalIntegrationId?: string | null;
|
|
1319
2521
|
/**
|
|
1320
2522
|
* Whether to hide this rule in the user interface
|
|
1321
2523
|
*/
|
|
@@ -1323,19 +2525,41 @@ export interface RuleCreateParams {
|
|
|
1323
2525
|
/**
|
|
1324
2526
|
* Interval between rule executions
|
|
1325
2527
|
*/
|
|
1326
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
2528
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
1327
2529
|
/**
|
|
1328
2530
|
* Whether this rule is mandatory
|
|
1329
2531
|
*/
|
|
1330
2532
|
isRequired?: boolean;
|
|
2533
|
+
/**
|
|
2534
|
+
* Unique identifier for the loyalty badge
|
|
2535
|
+
*/
|
|
2536
|
+
loyaltyBadgeId?: string | null;
|
|
1331
2537
|
/**
|
|
1332
2538
|
* Unique identifier for the loyalty rule group
|
|
1333
2539
|
*/
|
|
1334
2540
|
loyaltyRuleGroupId?: 'no-section' | (string & {}) | null;
|
|
2541
|
+
/**
|
|
2542
|
+
* URL for uploading loyalty user allotment via CSV
|
|
2543
|
+
*/
|
|
2544
|
+
loyaltyUserAllotmentCsvUrl?: string;
|
|
2545
|
+
/**
|
|
2546
|
+
* The interval for the max amount. Available for the smart contract and external
|
|
2547
|
+
* rules.
|
|
2548
|
+
*/
|
|
2549
|
+
maxAmountInterval?: 'daily' | 'weekly' | 'monthly' | 'lifetime' | null;
|
|
2550
|
+
/**
|
|
2551
|
+
* The maximum amount of points a user can earn per interval. Available for the
|
|
2552
|
+
* smart contract and external rules.
|
|
2553
|
+
*/
|
|
2554
|
+
maxAmountPerInterval?: number | null;
|
|
2555
|
+
/**
|
|
2556
|
+
* URL of the media to be displayed
|
|
2557
|
+
*/
|
|
2558
|
+
mediaUrl?: string | null;
|
|
1335
2559
|
/**
|
|
1336
2560
|
* Blockchain network where the rule will apply
|
|
1337
2561
|
*/
|
|
1338
|
-
network?: '
|
|
2562
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1339
2563
|
/**
|
|
1340
2564
|
* OAuth credentials associated with the rule
|
|
1341
2565
|
*/
|
|
@@ -1343,17 +2567,25 @@ export interface RuleCreateParams {
|
|
|
1343
2567
|
/**
|
|
1344
2568
|
* Type of reward issued by the rule
|
|
1345
2569
|
*/
|
|
1346
|
-
rewardType?: 'points' | 'multiplier';
|
|
2570
|
+
rewardType?: 'points' | 'multiplier' | 'badge';
|
|
1347
2571
|
/**
|
|
1348
|
-
*
|
|
2572
|
+
* URL of the Shopify store
|
|
1349
2573
|
*/
|
|
1350
|
-
|
|
2574
|
+
shopifyStoreUrl?: string | null;
|
|
2575
|
+
/**
|
|
2576
|
+
* Optional subscription id for the rule
|
|
2577
|
+
*/
|
|
2578
|
+
subscriptionId?: string | null;
|
|
1351
2579
|
}
|
|
1352
2580
|
export declare namespace RuleCreateParams {
|
|
1353
2581
|
/**
|
|
1354
2582
|
* Additional metadata for the loyalty rule
|
|
1355
2583
|
*/
|
|
1356
2584
|
interface Metadata {
|
|
2585
|
+
/**
|
|
2586
|
+
* Number of tokens per batch.
|
|
2587
|
+
*/
|
|
2588
|
+
batchSize?: number | null;
|
|
1357
2589
|
/**
|
|
1358
2590
|
* Text displayed on the action button.
|
|
1359
2591
|
*/
|
|
@@ -1378,6 +2610,12 @@ export declare namespace RuleCreateParams {
|
|
|
1378
2610
|
* Array of collections associated with the rule.
|
|
1379
2611
|
*/
|
|
1380
2612
|
collection?: Array<Metadata.Collection>;
|
|
2613
|
+
/**
|
|
2614
|
+
* Conditions for completing the profile.
|
|
2615
|
+
*/
|
|
2616
|
+
completeProfileConditions?: {
|
|
2617
|
+
[key: string]: boolean;
|
|
2618
|
+
} | null;
|
|
1381
2619
|
/**
|
|
1382
2620
|
* Object containing details for the call-to-action.
|
|
1383
2621
|
*/
|
|
@@ -1406,10 +2644,18 @@ export declare namespace RuleCreateParams {
|
|
|
1406
2644
|
* Flag indicating whether the verified multiplier is enabled.
|
|
1407
2645
|
*/
|
|
1408
2646
|
enableVerifiedMultiplier?: boolean;
|
|
2647
|
+
/**
|
|
2648
|
+
* Fill source of the order for the token sale
|
|
2649
|
+
*/
|
|
2650
|
+
fillSource?: string;
|
|
1409
2651
|
/**
|
|
1410
2652
|
* Percentage reward given to a user for their first referral.
|
|
1411
2653
|
*/
|
|
1412
2654
|
firstReferralReward?: number | null;
|
|
2655
|
+
/**
|
|
2656
|
+
* Flag indicating whether the fill source is included.
|
|
2657
|
+
*/
|
|
2658
|
+
hasFillSource?: boolean;
|
|
1413
2659
|
/**
|
|
1414
2660
|
* Indicates if the item has never been sold.
|
|
1415
2661
|
*/
|
|
@@ -1430,10 +2676,18 @@ export declare namespace RuleCreateParams {
|
|
|
1430
2676
|
* URL of the image associated with the rule.
|
|
1431
2677
|
*/
|
|
1432
2678
|
imageUrl?: string | null;
|
|
2679
|
+
/**
|
|
2680
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
2681
|
+
*/
|
|
2682
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1433
2683
|
/**
|
|
1434
2684
|
* Indicates if the multiplier has been applied to rewards.
|
|
1435
2685
|
*/
|
|
1436
2686
|
isMultiplierApplied?: boolean;
|
|
2687
|
+
/**
|
|
2688
|
+
* Flag indicating if the rule is restricted to new users.
|
|
2689
|
+
*/
|
|
2690
|
+
isRestrictedToNewUsers?: boolean;
|
|
1437
2691
|
/**
|
|
1438
2692
|
* Flag indicating if rewards are applied retroactively.
|
|
1439
2693
|
*/
|
|
@@ -1446,6 +2700,10 @@ export declare namespace RuleCreateParams {
|
|
|
1446
2700
|
* Optional link associated with the metadata.
|
|
1447
2701
|
*/
|
|
1448
2702
|
link?: string | null;
|
|
2703
|
+
/**
|
|
2704
|
+
* Liquidity pool details.
|
|
2705
|
+
*/
|
|
2706
|
+
liquidity?: Metadata.Liquidity;
|
|
1449
2707
|
/**
|
|
1450
2708
|
* Maximum quantity constraint for token holding.
|
|
1451
2709
|
*/
|
|
@@ -1470,10 +2728,30 @@ export declare namespace RuleCreateParams {
|
|
|
1470
2728
|
* Flag indicating whether to include only non-listed items.
|
|
1471
2729
|
*/
|
|
1472
2730
|
onlyNonListed?: boolean;
|
|
2731
|
+
/**
|
|
2732
|
+
* Indicates if only existing users are rewarded.
|
|
2733
|
+
*/
|
|
2734
|
+
onlyRewardExistingUser?: boolean;
|
|
2735
|
+
/**
|
|
2736
|
+
* give points for only one token ownership per contract
|
|
2737
|
+
*/
|
|
2738
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1473
2739
|
/**
|
|
1474
2740
|
* Promotional code associated with the rule.
|
|
1475
2741
|
*/
|
|
1476
2742
|
promoCode?: string;
|
|
2743
|
+
/**
|
|
2744
|
+
* URL of the CSV file containing promo codes.
|
|
2745
|
+
*/
|
|
2746
|
+
promoCodeCsvUrl?: string;
|
|
2747
|
+
/**
|
|
2748
|
+
* Numbers of the promotional code to be generated.
|
|
2749
|
+
*/
|
|
2750
|
+
promoCodeLength?: number | null;
|
|
2751
|
+
/**
|
|
2752
|
+
* Type of the promotional code.
|
|
2753
|
+
*/
|
|
2754
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
1477
2755
|
/**
|
|
1478
2756
|
* Array defining ranges and corresponding rewards.
|
|
1479
2757
|
*/
|
|
@@ -1486,10 +2764,27 @@ export declare namespace RuleCreateParams {
|
|
|
1486
2764
|
* Lump sum reward given to a referrer.
|
|
1487
2765
|
*/
|
|
1488
2766
|
referrerReward?: number | null;
|
|
2767
|
+
/**
|
|
2768
|
+
* Loyalty currency ID of the referrer reward.
|
|
2769
|
+
*/
|
|
2770
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
2771
|
+
/**
|
|
2772
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
2773
|
+
*/
|
|
2774
|
+
rewardBadgePerRange?: boolean;
|
|
2775
|
+
/**
|
|
2776
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
2777
|
+
*/
|
|
2778
|
+
rewardByBatch?: boolean | null;
|
|
1489
2779
|
/**
|
|
1490
2780
|
* Flag indicating if rewards are given per impression.
|
|
1491
2781
|
*/
|
|
1492
2782
|
rewardPerImpression?: boolean | null;
|
|
2783
|
+
/**
|
|
2784
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
2785
|
+
* instead of count.
|
|
2786
|
+
*/
|
|
2787
|
+
rewardPerValue?: boolean;
|
|
1493
2788
|
/**
|
|
1494
2789
|
* Currency associated with sales.
|
|
1495
2790
|
*/
|
|
@@ -1498,6 +2793,10 @@ export declare namespace RuleCreateParams {
|
|
|
1498
2793
|
* Percentage reward given for a second-level referral.
|
|
1499
2794
|
*/
|
|
1500
2795
|
secondReferralReward?: number | null;
|
|
2796
|
+
/**
|
|
2797
|
+
* Flag indicating if the multiplier is skipped.
|
|
2798
|
+
*/
|
|
2799
|
+
skipMultiplier?: boolean | null;
|
|
1501
2800
|
/**
|
|
1502
2801
|
* Object containing details of the associated smart contract.
|
|
1503
2802
|
*/
|
|
@@ -1509,7 +2808,7 @@ export declare namespace RuleCreateParams {
|
|
|
1509
2808
|
/**
|
|
1510
2809
|
* Social media platform associated with the rule.
|
|
1511
2810
|
*/
|
|
1512
|
-
socialPlatform?: '
|
|
2811
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
|
|
1513
2812
|
/**
|
|
1514
2813
|
* URL of the social platform's logo.
|
|
1515
2814
|
*/
|
|
@@ -1518,10 +2817,18 @@ export declare namespace RuleCreateParams {
|
|
|
1518
2817
|
* Name of the social platform.
|
|
1519
2818
|
*/
|
|
1520
2819
|
socialPlatformName?: string | null;
|
|
2820
|
+
/**
|
|
2821
|
+
* ID of the Steam app.
|
|
2822
|
+
*/
|
|
2823
|
+
steamAppId?: string | null;
|
|
1521
2824
|
/**
|
|
1522
2825
|
* Array of streak milestones and corresponding rewards.
|
|
1523
2826
|
*/
|
|
1524
2827
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
2828
|
+
/**
|
|
2829
|
+
* Metadata for swap loyalty rules
|
|
2830
|
+
*/
|
|
2831
|
+
swap?: Metadata.Swap;
|
|
1525
2832
|
/**
|
|
1526
2833
|
* ID of the Telegram channel.
|
|
1527
2834
|
*/
|
|
@@ -1534,6 +2841,11 @@ export declare namespace RuleCreateParams {
|
|
|
1534
2841
|
* Flag indicating if all contracts are tracked.
|
|
1535
2842
|
*/
|
|
1536
2843
|
trackAllContracts?: boolean | null;
|
|
2844
|
+
/**
|
|
2845
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
2846
|
+
* completed once the progress is 100%.
|
|
2847
|
+
*/
|
|
2848
|
+
trackProgress?: boolean | null;
|
|
1537
2849
|
/**
|
|
1538
2850
|
* URL of the associated Twitter account.
|
|
1539
2851
|
*/
|
|
@@ -1569,7 +2881,15 @@ export declare namespace RuleCreateParams {
|
|
|
1569
2881
|
/**
|
|
1570
2882
|
* Type of wallet associated with the rule.
|
|
1571
2883
|
*/
|
|
1572
|
-
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
2884
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* ID of the Youtube channel.
|
|
2887
|
+
*/
|
|
2888
|
+
youtubeChannelId?: string | null;
|
|
2889
|
+
/**
|
|
2890
|
+
* ID of the Youtube video.
|
|
2891
|
+
*/
|
|
2892
|
+
youtubeVideoId?: string | null;
|
|
1573
2893
|
}
|
|
1574
2894
|
namespace Metadata {
|
|
1575
2895
|
interface Collection {
|
|
@@ -1584,7 +2904,7 @@ export declare namespace RuleCreateParams {
|
|
|
1584
2904
|
/**
|
|
1585
2905
|
* Blockchain network of the collection.
|
|
1586
2906
|
*/
|
|
1587
|
-
network?: '
|
|
2907
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1588
2908
|
}
|
|
1589
2909
|
/**
|
|
1590
2910
|
* Object containing details for the call-to-action.
|
|
@@ -1623,6 +2943,10 @@ export declare namespace RuleCreateParams {
|
|
|
1623
2943
|
* Array of emojis used in the channel.
|
|
1624
2944
|
*/
|
|
1625
2945
|
emojis?: Array<Channel.Emoji>;
|
|
2946
|
+
/**
|
|
2947
|
+
* Phrase of text to be present in the discord message
|
|
2948
|
+
*/
|
|
2949
|
+
text?: string;
|
|
1626
2950
|
}
|
|
1627
2951
|
namespace Channel {
|
|
1628
2952
|
interface Emoji {
|
|
@@ -1645,6 +2969,49 @@ export declare namespace RuleCreateParams {
|
|
|
1645
2969
|
*/
|
|
1646
2970
|
id: string;
|
|
1647
2971
|
}
|
|
2972
|
+
/**
|
|
2973
|
+
* Liquidity pool details.
|
|
2974
|
+
*/
|
|
2975
|
+
interface Liquidity {
|
|
2976
|
+
/**
|
|
2977
|
+
* Calculation type of the liquidity pool.
|
|
2978
|
+
*/
|
|
2979
|
+
calculationType?: 'fixed' | 'custom';
|
|
2980
|
+
/**
|
|
2981
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
2982
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
2983
|
+
* USD.
|
|
2984
|
+
*/
|
|
2985
|
+
customFunction?: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* Liquidity provided per day in USD
|
|
2988
|
+
*/
|
|
2989
|
+
liquidityPerDay?: number;
|
|
2990
|
+
/**
|
|
2991
|
+
* Blockchain network of the liquidity pool.
|
|
2992
|
+
*/
|
|
2993
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
2994
|
+
/**
|
|
2995
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
2996
|
+
*/
|
|
2997
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
2998
|
+
/**
|
|
2999
|
+
* Array of liquidity pools associated with the rule.
|
|
3000
|
+
*/
|
|
3001
|
+
pools?: Array<Liquidity.Pool>;
|
|
3002
|
+
/**
|
|
3003
|
+
* Protocol of the liquidity pool.
|
|
3004
|
+
*/
|
|
3005
|
+
protocol?: string;
|
|
3006
|
+
}
|
|
3007
|
+
namespace Liquidity {
|
|
3008
|
+
interface Pool {
|
|
3009
|
+
/**
|
|
3010
|
+
* Unique identifier of the liquidity pool.
|
|
3011
|
+
*/
|
|
3012
|
+
id: string;
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
1648
3015
|
interface Range {
|
|
1649
3016
|
/**
|
|
1650
3017
|
* Reward amount for this range.
|
|
@@ -1658,6 +3025,14 @@ export declare namespace RuleCreateParams {
|
|
|
1658
3025
|
* Start value of the range.
|
|
1659
3026
|
*/
|
|
1660
3027
|
startRange: number;
|
|
3028
|
+
/**
|
|
3029
|
+
* ID of the loyalty badge for this range.
|
|
3030
|
+
*/
|
|
3031
|
+
loyaltyBadgeId?: string;
|
|
3032
|
+
/**
|
|
3033
|
+
* Amount of the loyalty multiplier for this range.
|
|
3034
|
+
*/
|
|
3035
|
+
loyaltyMultiplierAmount?: number;
|
|
1661
3036
|
}
|
|
1662
3037
|
/**
|
|
1663
3038
|
* Object defining referral requirements.
|
|
@@ -1701,14 +3076,14 @@ export declare namespace RuleCreateParams {
|
|
|
1701
3076
|
* Object containing details of the associated smart contract.
|
|
1702
3077
|
*/
|
|
1703
3078
|
interface SmartContract {
|
|
1704
|
-
/**
|
|
1705
|
-
* ABI of the smart contract.
|
|
1706
|
-
*/
|
|
1707
|
-
abi?: string | null;
|
|
1708
3079
|
/**
|
|
1709
3080
|
* Mapping of addresses for the smart contract.
|
|
1710
3081
|
*/
|
|
1711
3082
|
addressMapping?: string | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* Object containing details of the amount multiplier from the event.
|
|
3085
|
+
*/
|
|
3086
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
1712
3087
|
/**
|
|
1713
3088
|
* Array of bonus details applied to the rule.
|
|
1714
3089
|
*/
|
|
@@ -1737,6 +3112,10 @@ export declare namespace RuleCreateParams {
|
|
|
1737
3112
|
* Array of parameters for the smart contract.
|
|
1738
3113
|
*/
|
|
1739
3114
|
params?: Array<SmartContract.Param> | null;
|
|
3115
|
+
/**
|
|
3116
|
+
* Type of the smart contract interaction.
|
|
3117
|
+
*/
|
|
3118
|
+
type?: 'function' | 'event' | null;
|
|
1740
3119
|
/**
|
|
1741
3120
|
* Flag indicating if a bonus is applied.
|
|
1742
3121
|
*/
|
|
@@ -1745,12 +3124,17 @@ export declare namespace RuleCreateParams {
|
|
|
1745
3124
|
* Flag indicating if a custom range is applied.
|
|
1746
3125
|
*/
|
|
1747
3126
|
withCustomRange?: boolean | null;
|
|
1748
|
-
/**
|
|
1749
|
-
* Flag indicating if a maximum limit is applied.
|
|
1750
|
-
*/
|
|
1751
|
-
withMax?: boolean | null;
|
|
1752
3127
|
}
|
|
1753
3128
|
namespace SmartContract {
|
|
3129
|
+
/**
|
|
3130
|
+
* Object containing details of the amount multiplier from the event.
|
|
3131
|
+
*/
|
|
3132
|
+
interface AmountMultiplier {
|
|
3133
|
+
/**
|
|
3134
|
+
* Mapping of the value for the smart contract.
|
|
3135
|
+
*/
|
|
3136
|
+
valueMapping?: string | null;
|
|
3137
|
+
}
|
|
1754
3138
|
interface Bonus {
|
|
1755
3139
|
/**
|
|
1756
3140
|
* Amount of the bonus.
|
|
@@ -1809,6 +3193,24 @@ export declare namespace RuleCreateParams {
|
|
|
1809
3193
|
*/
|
|
1810
3194
|
streakMilestone: number;
|
|
1811
3195
|
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Metadata for swap loyalty rules
|
|
3198
|
+
*/
|
|
3199
|
+
interface Swap {
|
|
3200
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
3201
|
+
relayReferrerId?: string;
|
|
3202
|
+
requireCrossChainSwap?: boolean;
|
|
3203
|
+
swappedToChain?: 'any' | number | string;
|
|
3204
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
3205
|
+
tokenMode?: 'any' | 'specific';
|
|
3206
|
+
trackTokenAmount?: boolean;
|
|
3207
|
+
}
|
|
3208
|
+
namespace Swap {
|
|
3209
|
+
interface SwappedToToken {
|
|
3210
|
+
address: string;
|
|
3211
|
+
chainId: string;
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
1812
3214
|
}
|
|
1813
3215
|
interface Collection {
|
|
1814
3216
|
/**
|
|
@@ -1818,7 +3220,7 @@ export declare namespace RuleCreateParams {
|
|
|
1818
3220
|
/**
|
|
1819
3221
|
* Blockchain network for the collection
|
|
1820
3222
|
*/
|
|
1821
|
-
network: '
|
|
3223
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1822
3224
|
}
|
|
1823
3225
|
}
|
|
1824
3226
|
export interface RuleUpdateParams {
|
|
@@ -1826,34 +3228,14 @@ export interface RuleUpdateParams {
|
|
|
1826
3228
|
* Reward amount for the loyalty rule
|
|
1827
3229
|
*/
|
|
1828
3230
|
amount: unknown;
|
|
1829
|
-
/**
|
|
1830
|
-
* Effective end time of the rule
|
|
1831
|
-
*/
|
|
1832
|
-
effectiveEndTime: string | null;
|
|
1833
|
-
/**
|
|
1834
|
-
* Effective start time of the rule
|
|
1835
|
-
*/
|
|
1836
|
-
effectiveStartTime: string | null;
|
|
1837
3231
|
/**
|
|
1838
3232
|
* End time for the loyalty rule
|
|
1839
3233
|
*/
|
|
1840
3234
|
endTime: string | null;
|
|
1841
|
-
/**
|
|
1842
|
-
* Frequency of the rule execution
|
|
1843
|
-
*/
|
|
1844
|
-
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
1845
|
-
/**
|
|
1846
|
-
* Additional metadata for the loyalty rule
|
|
1847
|
-
*/
|
|
1848
|
-
metadata: RuleUpdateParams.Metadata;
|
|
1849
3235
|
/**
|
|
1850
3236
|
* Name of the loyalty rule
|
|
1851
3237
|
*/
|
|
1852
3238
|
name: string;
|
|
1853
|
-
/**
|
|
1854
|
-
* Start time for the loyalty rule
|
|
1855
|
-
*/
|
|
1856
|
-
startTime: string | null;
|
|
1857
3239
|
/**
|
|
1858
3240
|
* Blockchain address of the associated collection
|
|
1859
3241
|
*/
|
|
@@ -1874,6 +3256,22 @@ export interface RuleUpdateParams {
|
|
|
1874
3256
|
* Optional description of the loyalty rule
|
|
1875
3257
|
*/
|
|
1876
3258
|
description?: string;
|
|
3259
|
+
/**
|
|
3260
|
+
* Effective end time of the rule
|
|
3261
|
+
*/
|
|
3262
|
+
effectiveEndTime?: string | null;
|
|
3263
|
+
/**
|
|
3264
|
+
* Effective start time of the rule
|
|
3265
|
+
*/
|
|
3266
|
+
effectiveStartTime?: string | null;
|
|
3267
|
+
/**
|
|
3268
|
+
* ID of the external integration
|
|
3269
|
+
*/
|
|
3270
|
+
externalIntegrationId?: string | null;
|
|
3271
|
+
/**
|
|
3272
|
+
* Frequency of the rule execution
|
|
3273
|
+
*/
|
|
3274
|
+
frequency?: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately';
|
|
1877
3275
|
/**
|
|
1878
3276
|
* Whether to hide this rule in the user interface
|
|
1879
3277
|
*/
|
|
@@ -1881,7 +3279,7 @@ export interface RuleUpdateParams {
|
|
|
1881
3279
|
/**
|
|
1882
3280
|
* Time interval for recurring rule execution
|
|
1883
3281
|
*/
|
|
1884
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | null;
|
|
3282
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
1885
3283
|
/**
|
|
1886
3284
|
* Whether this rule is required for participation
|
|
1887
3285
|
*/
|
|
@@ -1890,10 +3288,28 @@ export interface RuleUpdateParams {
|
|
|
1890
3288
|
* ID of the rule group section to associate with the rule
|
|
1891
3289
|
*/
|
|
1892
3290
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
3291
|
+
/**
|
|
3292
|
+
* The interval for the max amount. Available for the smart contract and external
|
|
3293
|
+
* rules.
|
|
3294
|
+
*/
|
|
3295
|
+
maxAmountInterval?: 'daily' | 'weekly' | 'monthly' | 'lifetime' | null;
|
|
3296
|
+
/**
|
|
3297
|
+
* The maximum amount of points a user can earn per interval. Available for the
|
|
3298
|
+
* smart contract and external rules.
|
|
3299
|
+
*/
|
|
3300
|
+
maxAmountPerInterval?: number | null;
|
|
3301
|
+
/**
|
|
3302
|
+
* URL of the media to be displayed
|
|
3303
|
+
*/
|
|
3304
|
+
mediaUrl?: string | null;
|
|
3305
|
+
/**
|
|
3306
|
+
* Additional metadata for the loyalty rule
|
|
3307
|
+
*/
|
|
3308
|
+
metadata?: RuleUpdateParams.Metadata;
|
|
1893
3309
|
/**
|
|
1894
3310
|
* Blockchain network where the rule will apply
|
|
1895
3311
|
*/
|
|
1896
|
-
network?: '
|
|
3312
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
1897
3313
|
/**
|
|
1898
3314
|
* ID for associated OAuth credentials
|
|
1899
3315
|
*/
|
|
@@ -1901,17 +3317,39 @@ export interface RuleUpdateParams {
|
|
|
1901
3317
|
/**
|
|
1902
3318
|
* Type of reward issued by this rule
|
|
1903
3319
|
*/
|
|
1904
|
-
rewardType?: 'points' | 'multiplier';
|
|
3320
|
+
rewardType?: 'points' | 'multiplier' | 'badge';
|
|
3321
|
+
/**
|
|
3322
|
+
* URL of the Shopify store
|
|
3323
|
+
*/
|
|
3324
|
+
shopifyStoreUrl?: string | null;
|
|
3325
|
+
/**
|
|
3326
|
+
* Start time for the loyalty rule
|
|
3327
|
+
*/
|
|
3328
|
+
startTime?: string | null;
|
|
1905
3329
|
/**
|
|
1906
|
-
* Optional subscription
|
|
3330
|
+
* Optional subscription id for the rule
|
|
1907
3331
|
*/
|
|
1908
|
-
|
|
3332
|
+
subscriptionId?: string | null;
|
|
1909
3333
|
}
|
|
1910
3334
|
export declare namespace RuleUpdateParams {
|
|
3335
|
+
interface Collection {
|
|
3336
|
+
/**
|
|
3337
|
+
* Blockchain address of the collection
|
|
3338
|
+
*/
|
|
3339
|
+
address: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Blockchain network for the collection
|
|
3342
|
+
*/
|
|
3343
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
3344
|
+
}
|
|
1911
3345
|
/**
|
|
1912
3346
|
* Additional metadata for the loyalty rule
|
|
1913
3347
|
*/
|
|
1914
3348
|
interface Metadata {
|
|
3349
|
+
/**
|
|
3350
|
+
* Number of tokens per batch.
|
|
3351
|
+
*/
|
|
3352
|
+
batchSize?: number | null;
|
|
1915
3353
|
/**
|
|
1916
3354
|
* Text displayed on the action button.
|
|
1917
3355
|
*/
|
|
@@ -1936,6 +3374,12 @@ export declare namespace RuleUpdateParams {
|
|
|
1936
3374
|
* Array of collections associated with the rule.
|
|
1937
3375
|
*/
|
|
1938
3376
|
collection?: Array<Metadata.Collection>;
|
|
3377
|
+
/**
|
|
3378
|
+
* Conditions for completing the profile.
|
|
3379
|
+
*/
|
|
3380
|
+
completeProfileConditions?: {
|
|
3381
|
+
[key: string]: boolean;
|
|
3382
|
+
} | null;
|
|
1939
3383
|
/**
|
|
1940
3384
|
* Object containing details for the call-to-action.
|
|
1941
3385
|
*/
|
|
@@ -1964,10 +3408,18 @@ export declare namespace RuleUpdateParams {
|
|
|
1964
3408
|
* Flag indicating whether the verified multiplier is enabled.
|
|
1965
3409
|
*/
|
|
1966
3410
|
enableVerifiedMultiplier?: boolean;
|
|
3411
|
+
/**
|
|
3412
|
+
* Fill source of the order for the token sale
|
|
3413
|
+
*/
|
|
3414
|
+
fillSource?: string;
|
|
1967
3415
|
/**
|
|
1968
3416
|
* Percentage reward given to a user for their first referral.
|
|
1969
3417
|
*/
|
|
1970
3418
|
firstReferralReward?: number | null;
|
|
3419
|
+
/**
|
|
3420
|
+
* Flag indicating whether the fill source is included.
|
|
3421
|
+
*/
|
|
3422
|
+
hasFillSource?: boolean;
|
|
1971
3423
|
/**
|
|
1972
3424
|
* Indicates if the item has never been sold.
|
|
1973
3425
|
*/
|
|
@@ -1988,10 +3440,18 @@ export declare namespace RuleUpdateParams {
|
|
|
1988
3440
|
* URL of the image associated with the rule.
|
|
1989
3441
|
*/
|
|
1990
3442
|
imageUrl?: string | null;
|
|
3443
|
+
/**
|
|
3444
|
+
* If enabled, the first transaction done on the platform will complete this rule
|
|
3445
|
+
*/
|
|
3446
|
+
isCheckInOnEveryTxn?: boolean;
|
|
1991
3447
|
/**
|
|
1992
3448
|
* Indicates if the multiplier has been applied to rewards.
|
|
1993
3449
|
*/
|
|
1994
3450
|
isMultiplierApplied?: boolean;
|
|
3451
|
+
/**
|
|
3452
|
+
* Flag indicating if the rule is restricted to new users.
|
|
3453
|
+
*/
|
|
3454
|
+
isRestrictedToNewUsers?: boolean;
|
|
1995
3455
|
/**
|
|
1996
3456
|
* Flag indicating if rewards are applied retroactively.
|
|
1997
3457
|
*/
|
|
@@ -2004,6 +3464,10 @@ export declare namespace RuleUpdateParams {
|
|
|
2004
3464
|
* Optional link associated with the metadata.
|
|
2005
3465
|
*/
|
|
2006
3466
|
link?: string | null;
|
|
3467
|
+
/**
|
|
3468
|
+
* Liquidity pool details.
|
|
3469
|
+
*/
|
|
3470
|
+
liquidity?: Metadata.Liquidity;
|
|
2007
3471
|
/**
|
|
2008
3472
|
* Maximum quantity constraint for token holding.
|
|
2009
3473
|
*/
|
|
@@ -2028,10 +3492,30 @@ export declare namespace RuleUpdateParams {
|
|
|
2028
3492
|
* Flag indicating whether to include only non-listed items.
|
|
2029
3493
|
*/
|
|
2030
3494
|
onlyNonListed?: boolean;
|
|
3495
|
+
/**
|
|
3496
|
+
* Indicates if only existing users are rewarded.
|
|
3497
|
+
*/
|
|
3498
|
+
onlyRewardExistingUser?: boolean;
|
|
3499
|
+
/**
|
|
3500
|
+
* give points for only one token ownership per contract
|
|
3501
|
+
*/
|
|
3502
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
2031
3503
|
/**
|
|
2032
3504
|
* Promotional code associated with the rule.
|
|
2033
3505
|
*/
|
|
2034
3506
|
promoCode?: string;
|
|
3507
|
+
/**
|
|
3508
|
+
* URL of the CSV file containing promo codes.
|
|
3509
|
+
*/
|
|
3510
|
+
promoCodeCsvUrl?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Numbers of the promotional code to be generated.
|
|
3513
|
+
*/
|
|
3514
|
+
promoCodeLength?: number | null;
|
|
3515
|
+
/**
|
|
3516
|
+
* Type of the promotional code.
|
|
3517
|
+
*/
|
|
3518
|
+
promoCodeType?: 'code' | 'csv' | 'generate';
|
|
2035
3519
|
/**
|
|
2036
3520
|
* Array defining ranges and corresponding rewards.
|
|
2037
3521
|
*/
|
|
@@ -2044,10 +3528,27 @@ export declare namespace RuleUpdateParams {
|
|
|
2044
3528
|
* Lump sum reward given to a referrer.
|
|
2045
3529
|
*/
|
|
2046
3530
|
referrerReward?: number | null;
|
|
3531
|
+
/**
|
|
3532
|
+
* Loyalty currency ID of the referrer reward.
|
|
3533
|
+
*/
|
|
3534
|
+
referrerRewardLoyaltyCurrencyId?: string | null;
|
|
3535
|
+
/**
|
|
3536
|
+
* Flag indicating if the rule can also reward badges per range.
|
|
3537
|
+
*/
|
|
3538
|
+
rewardBadgePerRange?: boolean;
|
|
3539
|
+
/**
|
|
3540
|
+
* Flag indicating if the reward is rewarded by batch.
|
|
3541
|
+
*/
|
|
3542
|
+
rewardByBatch?: boolean | null;
|
|
2047
3543
|
/**
|
|
2048
3544
|
* Flag indicating if rewards are given per impression.
|
|
2049
3545
|
*/
|
|
2050
3546
|
rewardPerImpression?: boolean | null;
|
|
3547
|
+
/**
|
|
3548
|
+
* Flag indicating if the rule should reward based on value of traded tokens
|
|
3549
|
+
* instead of count.
|
|
3550
|
+
*/
|
|
3551
|
+
rewardPerValue?: boolean;
|
|
2051
3552
|
/**
|
|
2052
3553
|
* Currency associated with sales.
|
|
2053
3554
|
*/
|
|
@@ -2056,6 +3557,10 @@ export declare namespace RuleUpdateParams {
|
|
|
2056
3557
|
* Percentage reward given for a second-level referral.
|
|
2057
3558
|
*/
|
|
2058
3559
|
secondReferralReward?: number | null;
|
|
3560
|
+
/**
|
|
3561
|
+
* Flag indicating if the multiplier is skipped.
|
|
3562
|
+
*/
|
|
3563
|
+
skipMultiplier?: boolean | null;
|
|
2059
3564
|
/**
|
|
2060
3565
|
* Object containing details of the associated smart contract.
|
|
2061
3566
|
*/
|
|
@@ -2067,7 +3572,7 @@ export declare namespace RuleUpdateParams {
|
|
|
2067
3572
|
/**
|
|
2068
3573
|
* Social media platform associated with the rule.
|
|
2069
3574
|
*/
|
|
2070
|
-
socialPlatform?: '
|
|
3575
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | 'Google' | null;
|
|
2071
3576
|
/**
|
|
2072
3577
|
* URL of the social platform's logo.
|
|
2073
3578
|
*/
|
|
@@ -2076,10 +3581,18 @@ export declare namespace RuleUpdateParams {
|
|
|
2076
3581
|
* Name of the social platform.
|
|
2077
3582
|
*/
|
|
2078
3583
|
socialPlatformName?: string | null;
|
|
3584
|
+
/**
|
|
3585
|
+
* ID of the Steam app.
|
|
3586
|
+
*/
|
|
3587
|
+
steamAppId?: string | null;
|
|
2079
3588
|
/**
|
|
2080
3589
|
* Array of streak milestones and corresponding rewards.
|
|
2081
3590
|
*/
|
|
2082
3591
|
streakArray?: Array<Metadata.StreakArray> | null;
|
|
3592
|
+
/**
|
|
3593
|
+
* Metadata for swap loyalty rules
|
|
3594
|
+
*/
|
|
3595
|
+
swap?: Metadata.Swap;
|
|
2083
3596
|
/**
|
|
2084
3597
|
* ID of the Telegram channel.
|
|
2085
3598
|
*/
|
|
@@ -2092,6 +3605,11 @@ export declare namespace RuleUpdateParams {
|
|
|
2092
3605
|
* Flag indicating if all contracts are tracked.
|
|
2093
3606
|
*/
|
|
2094
3607
|
trackAllContracts?: boolean | null;
|
|
3608
|
+
/**
|
|
3609
|
+
* Flag indicating if the progress is tracked. If enabled, the rule can only be
|
|
3610
|
+
* completed once the progress is 100%.
|
|
3611
|
+
*/
|
|
3612
|
+
trackProgress?: boolean | null;
|
|
2095
3613
|
/**
|
|
2096
3614
|
* URL of the associated Twitter account.
|
|
2097
3615
|
*/
|
|
@@ -2127,7 +3645,15 @@ export declare namespace RuleUpdateParams {
|
|
|
2127
3645
|
/**
|
|
2128
3646
|
* Type of wallet associated with the rule.
|
|
2129
3647
|
*/
|
|
2130
|
-
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
3648
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | 'cosmos' | 'ultra' | null;
|
|
3649
|
+
/**
|
|
3650
|
+
* ID of the Youtube channel.
|
|
3651
|
+
*/
|
|
3652
|
+
youtubeChannelId?: string | null;
|
|
3653
|
+
/**
|
|
3654
|
+
* ID of the Youtube video.
|
|
3655
|
+
*/
|
|
3656
|
+
youtubeVideoId?: string | null;
|
|
2131
3657
|
}
|
|
2132
3658
|
namespace Metadata {
|
|
2133
3659
|
interface Collection {
|
|
@@ -2142,7 +3668,7 @@ export declare namespace RuleUpdateParams {
|
|
|
2142
3668
|
/**
|
|
2143
3669
|
* Blockchain network of the collection.
|
|
2144
3670
|
*/
|
|
2145
|
-
network?: '
|
|
3671
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
2146
3672
|
}
|
|
2147
3673
|
/**
|
|
2148
3674
|
* Object containing details for the call-to-action.
|
|
@@ -2181,6 +3707,10 @@ export declare namespace RuleUpdateParams {
|
|
|
2181
3707
|
* Array of emojis used in the channel.
|
|
2182
3708
|
*/
|
|
2183
3709
|
emojis?: Array<Channel.Emoji>;
|
|
3710
|
+
/**
|
|
3711
|
+
* Phrase of text to be present in the discord message
|
|
3712
|
+
*/
|
|
3713
|
+
text?: string;
|
|
2184
3714
|
}
|
|
2185
3715
|
namespace Channel {
|
|
2186
3716
|
interface Emoji {
|
|
@@ -2203,6 +3733,49 @@ export declare namespace RuleUpdateParams {
|
|
|
2203
3733
|
*/
|
|
2204
3734
|
id: string;
|
|
2205
3735
|
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Liquidity pool details.
|
|
3738
|
+
*/
|
|
3739
|
+
interface Liquidity {
|
|
3740
|
+
/**
|
|
3741
|
+
* Calculation type of the liquidity pool.
|
|
3742
|
+
*/
|
|
3743
|
+
calculationType?: 'fixed' | 'custom';
|
|
3744
|
+
/**
|
|
3745
|
+
* Custom function to calculate the the reward amount based on the liquidity
|
|
3746
|
+
* provided per day. X is the reward amount, Y is the liquidity provided per day in
|
|
3747
|
+
* USD.
|
|
3748
|
+
*/
|
|
3749
|
+
customFunction?: string;
|
|
3750
|
+
/**
|
|
3751
|
+
* Liquidity provided per day in USD
|
|
3752
|
+
*/
|
|
3753
|
+
liquidityPerDay?: number;
|
|
3754
|
+
/**
|
|
3755
|
+
* Blockchain network of the liquidity pool.
|
|
3756
|
+
*/
|
|
3757
|
+
network?: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp';
|
|
3758
|
+
/**
|
|
3759
|
+
* Indicates if only in-range liquidity is rewarded.
|
|
3760
|
+
*/
|
|
3761
|
+
onlyRewardInRangeLiquidity?: boolean;
|
|
3762
|
+
/**
|
|
3763
|
+
* Array of liquidity pools associated with the rule.
|
|
3764
|
+
*/
|
|
3765
|
+
pools?: Array<Liquidity.Pool>;
|
|
3766
|
+
/**
|
|
3767
|
+
* Protocol of the liquidity pool.
|
|
3768
|
+
*/
|
|
3769
|
+
protocol?: string;
|
|
3770
|
+
}
|
|
3771
|
+
namespace Liquidity {
|
|
3772
|
+
interface Pool {
|
|
3773
|
+
/**
|
|
3774
|
+
* Unique identifier of the liquidity pool.
|
|
3775
|
+
*/
|
|
3776
|
+
id: string;
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
2206
3779
|
interface Range {
|
|
2207
3780
|
/**
|
|
2208
3781
|
* Reward amount for this range.
|
|
@@ -2216,6 +3789,14 @@ export declare namespace RuleUpdateParams {
|
|
|
2216
3789
|
* Start value of the range.
|
|
2217
3790
|
*/
|
|
2218
3791
|
startRange: number;
|
|
3792
|
+
/**
|
|
3793
|
+
* ID of the loyalty badge for this range.
|
|
3794
|
+
*/
|
|
3795
|
+
loyaltyBadgeId?: string;
|
|
3796
|
+
/**
|
|
3797
|
+
* Amount of the loyalty multiplier for this range.
|
|
3798
|
+
*/
|
|
3799
|
+
loyaltyMultiplierAmount?: number;
|
|
2219
3800
|
}
|
|
2220
3801
|
/**
|
|
2221
3802
|
* Object defining referral requirements.
|
|
@@ -2259,14 +3840,14 @@ export declare namespace RuleUpdateParams {
|
|
|
2259
3840
|
* Object containing details of the associated smart contract.
|
|
2260
3841
|
*/
|
|
2261
3842
|
interface SmartContract {
|
|
2262
|
-
/**
|
|
2263
|
-
* ABI of the smart contract.
|
|
2264
|
-
*/
|
|
2265
|
-
abi?: string | null;
|
|
2266
3843
|
/**
|
|
2267
3844
|
* Mapping of addresses for the smart contract.
|
|
2268
3845
|
*/
|
|
2269
3846
|
addressMapping?: string | null;
|
|
3847
|
+
/**
|
|
3848
|
+
* Object containing details of the amount multiplier from the event.
|
|
3849
|
+
*/
|
|
3850
|
+
amountMultiplier?: SmartContract.AmountMultiplier | null;
|
|
2270
3851
|
/**
|
|
2271
3852
|
* Array of bonus details applied to the rule.
|
|
2272
3853
|
*/
|
|
@@ -2295,6 +3876,10 @@ export declare namespace RuleUpdateParams {
|
|
|
2295
3876
|
* Array of parameters for the smart contract.
|
|
2296
3877
|
*/
|
|
2297
3878
|
params?: Array<SmartContract.Param> | null;
|
|
3879
|
+
/**
|
|
3880
|
+
* Type of the smart contract interaction.
|
|
3881
|
+
*/
|
|
3882
|
+
type?: 'function' | 'event' | null;
|
|
2298
3883
|
/**
|
|
2299
3884
|
* Flag indicating if a bonus is applied.
|
|
2300
3885
|
*/
|
|
@@ -2303,12 +3888,17 @@ export declare namespace RuleUpdateParams {
|
|
|
2303
3888
|
* Flag indicating if a custom range is applied.
|
|
2304
3889
|
*/
|
|
2305
3890
|
withCustomRange?: boolean | null;
|
|
2306
|
-
/**
|
|
2307
|
-
* Flag indicating if a maximum limit is applied.
|
|
2308
|
-
*/
|
|
2309
|
-
withMax?: boolean | null;
|
|
2310
3891
|
}
|
|
2311
3892
|
namespace SmartContract {
|
|
3893
|
+
/**
|
|
3894
|
+
* Object containing details of the amount multiplier from the event.
|
|
3895
|
+
*/
|
|
3896
|
+
interface AmountMultiplier {
|
|
3897
|
+
/**
|
|
3898
|
+
* Mapping of the value for the smart contract.
|
|
3899
|
+
*/
|
|
3900
|
+
valueMapping?: string | null;
|
|
3901
|
+
}
|
|
2312
3902
|
interface Bonus {
|
|
2313
3903
|
/**
|
|
2314
3904
|
* Amount of the bonus.
|
|
@@ -2367,27 +3957,60 @@ export declare namespace RuleUpdateParams {
|
|
|
2367
3957
|
*/
|
|
2368
3958
|
streakMilestone: number;
|
|
2369
3959
|
}
|
|
2370
|
-
}
|
|
2371
|
-
interface Collection {
|
|
2372
|
-
/**
|
|
2373
|
-
* Blockchain address of the collection
|
|
2374
|
-
*/
|
|
2375
|
-
address: string;
|
|
2376
3960
|
/**
|
|
2377
|
-
*
|
|
3961
|
+
* Metadata for swap loyalty rules
|
|
2378
3962
|
*/
|
|
2379
|
-
|
|
3963
|
+
interface Swap {
|
|
3964
|
+
provider?: 'any' | 'relay' | 'lifi';
|
|
3965
|
+
relayReferrerId?: string;
|
|
3966
|
+
requireCrossChainSwap?: boolean;
|
|
3967
|
+
swappedToChain?: 'any' | number | string;
|
|
3968
|
+
swappedToTokens?: Array<Swap.SwappedToToken>;
|
|
3969
|
+
tokenMode?: 'any' | 'specific';
|
|
3970
|
+
trackTokenAmount?: boolean;
|
|
3971
|
+
}
|
|
3972
|
+
namespace Swap {
|
|
3973
|
+
interface SwappedToToken {
|
|
3974
|
+
address: string;
|
|
3975
|
+
chainId: string;
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
2380
3978
|
}
|
|
2381
3979
|
}
|
|
2382
3980
|
export interface RuleListParams {
|
|
3981
|
+
/**
|
|
3982
|
+
* IDs of the users to filter results by
|
|
3983
|
+
*/
|
|
3984
|
+
allotedToUserId?: string | Array<string>;
|
|
3985
|
+
/**
|
|
3986
|
+
* ID of the user group to filter results by
|
|
3987
|
+
*/
|
|
3988
|
+
allotedUserGroupId?: string;
|
|
2383
3989
|
/**
|
|
2384
3990
|
* Address of the collection to filter by
|
|
2385
3991
|
*/
|
|
2386
3992
|
collectionAddress?: string;
|
|
3993
|
+
/**
|
|
3994
|
+
* If true this will only return loyalty rule chains
|
|
3995
|
+
*/
|
|
3996
|
+
includeLoyaltyRuleChains?: 'true' | 'false';
|
|
3997
|
+
/**
|
|
3998
|
+
* If true this will only return active rules, the rules for which the startTime is
|
|
3999
|
+
* in the past and the endTime is in the future
|
|
4000
|
+
*/
|
|
4001
|
+
isActive?: 'true' | 'false';
|
|
2387
4002
|
/**
|
|
2388
4003
|
* Maximum number of records to return (max 1000)
|
|
2389
4004
|
*/
|
|
2390
4005
|
limit?: number;
|
|
4006
|
+
/**
|
|
4007
|
+
* ID of the loyalty rule group to filter results
|
|
4008
|
+
*/
|
|
4009
|
+
loyaltyRuleGroupId?: string;
|
|
4010
|
+
/**
|
|
4011
|
+
* The IDs of the loyalty rule
|
|
4012
|
+
*/
|
|
4013
|
+
loyaltyRuleId?: string | Array<string>;
|
|
2391
4014
|
/**
|
|
2392
4015
|
* Unique identifier for the organization to filter by
|
|
2393
4016
|
*/
|
|
@@ -2401,11 +4024,30 @@ export interface RuleListParams {
|
|
|
2401
4024
|
*/
|
|
2402
4025
|
websiteId?: string;
|
|
2403
4026
|
}
|
|
4027
|
+
export interface RuleDeleteParams {
|
|
4028
|
+
/**
|
|
4029
|
+
* Whether to debit loyalty points
|
|
4030
|
+
*/
|
|
4031
|
+
debitLoyaltyPoints?: string;
|
|
4032
|
+
}
|
|
2404
4033
|
export interface RuleCompleteParams {
|
|
4034
|
+
/**
|
|
4035
|
+
* Override amount for the reward (rounded to nearest whole number). This will
|
|
4036
|
+
* override the rule amount and reward the integer passed.
|
|
4037
|
+
*/
|
|
4038
|
+
amount?: number | null;
|
|
2405
4039
|
/**
|
|
2406
4040
|
* Link to the comment made by user
|
|
2407
4041
|
*/
|
|
2408
4042
|
commentLink?: string;
|
|
4043
|
+
/**
|
|
4044
|
+
* Unique key to ensure idempotent requests
|
|
4045
|
+
*/
|
|
4046
|
+
idempotencyKey?: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* ID of the choice selected by the user
|
|
4049
|
+
*/
|
|
4050
|
+
loyaltyQuestionChoiceId?: string;
|
|
2409
4051
|
/**
|
|
2410
4052
|
* Unique identifier for the user
|
|
2411
4053
|
*/
|
|
@@ -2414,17 +4056,23 @@ export interface RuleCompleteParams {
|
|
|
2414
4056
|
* Optional verification code for completing the loyalty rule
|
|
2415
4057
|
*/
|
|
2416
4058
|
verificationCode?: string;
|
|
4059
|
+
/**
|
|
4060
|
+
* Flag indicating if only verification is required, this will not create a
|
|
4061
|
+
* transaction and reward the user
|
|
4062
|
+
*/
|
|
4063
|
+
verifyOnly?: string;
|
|
2417
4064
|
/**
|
|
2418
4065
|
* Wallet address of the user can only be used if userId is not provided
|
|
2419
4066
|
*/
|
|
2420
4067
|
walletAddress?: string;
|
|
2421
4068
|
}
|
|
2422
|
-
export interface
|
|
2423
|
-
organizationId
|
|
2424
|
-
websiteId: string;
|
|
4069
|
+
export interface RuleGetStatusParams {
|
|
4070
|
+
organizationId?: string;
|
|
2425
4071
|
userId?: string;
|
|
4072
|
+
walletAddress?: string;
|
|
4073
|
+
websiteId?: string;
|
|
2426
4074
|
}
|
|
2427
4075
|
export declare namespace Rules {
|
|
2428
|
-
export { type RuleCreateResponse as RuleCreateResponse, type RuleUpdateResponse as RuleUpdateResponse, type RuleListResponse as RuleListResponse, type RuleDeleteResponse as RuleDeleteResponse, type RuleCompleteResponse as RuleCompleteResponse, type
|
|
4076
|
+
export { type RuleCreateResponse as RuleCreateResponse, type RuleUpdateResponse as RuleUpdateResponse, type RuleListResponse as RuleListResponse, type RuleDeleteResponse as RuleDeleteResponse, type RuleCompleteResponse as RuleCompleteResponse, type RuleGetStatusResponse as RuleGetStatusResponse, type RuleCreateParams as RuleCreateParams, type RuleUpdateParams as RuleUpdateParams, type RuleListParams as RuleListParams, type RuleDeleteParams as RuleDeleteParams, type RuleCompleteParams as RuleCompleteParams, type RuleGetStatusParams as RuleGetStatusParams, };
|
|
2429
4077
|
}
|
|
2430
4078
|
//# sourceMappingURL=rules.d.ts.map
|