@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.16
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 +33 -0
- package/README.md +19 -13
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts.map +1 -1
- package/core.js +4 -1
- package/core.js.map +1 -1
- package/core.mjs +5 -2
- package/core.mjs.map +1 -1
- package/index.d.mts +17 -11
- package/index.d.ts +17 -11
- package/index.d.ts.map +1 -1
- package/index.js +14 -8
- package/index.js.map +1 -1
- package/index.mjs +15 -9
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/assets.d.ts +50 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +17 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +13 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/auctions.d.ts +134 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/{auction-bids.js → auctions.js} +12 -6
- package/resources/auctions.js.map +1 -0
- package/resources/{auction-bids.mjs → auctions.mjs} +10 -4
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +40 -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 +11 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -5
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +190 -0
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +15 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +15 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +4 -0
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +6 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +8 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +9 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +5 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +29 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +24 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +25 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +37 -6
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +7 -1
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +7 -1
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +2 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +2 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +2 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +2 -2
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.js → questions.js} +1 -1
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.mjs → questions.mjs} +1 -1
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +6 -6
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +559 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +16 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +12 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +144 -23
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +1 -1
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +1 -1
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions.d.ts +248 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +22 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +18 -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/{assets/minting.d.ts → minting.d.ts} +10 -10
- package/resources/minting.d.ts.map +1 -0
- package/resources/{assets/minting.js → minting.js} +2 -2
- package/resources/minting.js.map +1 -0
- package/resources/{assets/minting.mjs → minting.mjs} +2 -2
- 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.map +1 -0
- package/resources/{assets/referral → referral}/index.mjs +1 -1
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +31 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/referral.js +4 -4
- package/resources/referral/referral.js.map +1 -0
- package/resources/{assets/referral → referral}/referral.mjs +5 -5
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/{assets/referral → referral}/users.d.ts +11 -11
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/users.js +3 -3
- package/resources/referral/users.js.map +1 -0
- package/resources/{assets/referral → referral}/users.mjs +3 -3
- 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 +1 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +17 -7
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +296 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +25 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +25 -4
- 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/{assets → websites}/index.mjs +1 -4
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +73 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/{assets → websites}/website-collections.js +2 -2
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/{assets → websites}/website-collections.mjs +2 -2
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/{assets → websites}/website-user-roles.d.ts +28 -28
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → websites}/website-user-roles.js +7 -7
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/{assets → websites}/website-user-roles.mjs +7 -7
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +211 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/{assets/assets.js → websites/websites.js} +14 -27
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +29 -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 +8 -3
- package/src/index.ts +66 -22
- package/src/resources/assets.ts +77 -0
- package/src/resources/auctions.ts +209 -0
- package/src/resources/auth.ts +69 -0
- package/src/resources/index.ts +21 -10
- package/src/resources/loyalty/accounts.ts +250 -1
- package/src/resources/loyalty/badges.ts +5 -0
- package/src/resources/loyalty/currencies.ts +6 -0
- package/src/resources/loyalty/index.ts +40 -14
- package/src/resources/loyalty/loyalty.ts +129 -69
- package/src/resources/loyalty/multipliers.ts +44 -8
- package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +3 -3
- package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +2 -2
- package/src/resources/loyalty/rule-edits.ts +7 -10
- package/src/resources/loyalty/rule-groups.ts +818 -0
- package/src/resources/loyalty/rules.ts +406 -192
- package/src/resources/loyalty/transactions.ts +332 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/{assets/minting.ts → minting.ts} +32 -27
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +70 -0
- package/src/resources/{assets/referral → referral}/users.ts +14 -20
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +13 -4
- package/src/resources/users/metadatas.ts +26 -15
- package/src/resources/users/users.ts +423 -9
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{assets → websites}/website-collections.ts +32 -30
- package/src/resources/{assets → websites}/website-user-roles.ts +40 -40
- package/src/resources/websites/websites.ts +299 -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.js +1 -1
- package/version.mjs +1 -1
- package/resources/assets/assets.d.ts +0 -153
- package/resources/assets/assets.d.ts.map +0 -1
- package/resources/assets/assets.js.map +0 -1
- package/resources/assets/assets.mjs +0 -42
- package/resources/assets/assets.mjs.map +0 -1
- package/resources/assets/index.d.ts +0 -7
- package/resources/assets/index.d.ts.map +0 -1
- package/resources/assets/index.js +0 -17
- package/resources/assets/index.js.map +0 -1
- package/resources/assets/index.mjs.map +0 -1
- package/resources/assets/minting.d.ts.map +0 -1
- package/resources/assets/minting.js.map +0 -1
- package/resources/assets/minting.mjs.map +0 -1
- package/resources/assets/referral/index.d.ts +0 -3
- package/resources/assets/referral/index.d.ts.map +0 -1
- package/resources/assets/referral/index.js.map +0 -1
- package/resources/assets/referral/index.mjs.map +0 -1
- package/resources/assets/referral/referral.d.ts +0 -30
- package/resources/assets/referral/referral.d.ts.map +0 -1
- package/resources/assets/referral/referral.js.map +0 -1
- package/resources/assets/referral/referral.mjs.map +0 -1
- package/resources/assets/referral/users.d.ts.map +0 -1
- package/resources/assets/referral/users.js.map +0 -1
- package/resources/assets/referral/users.mjs.map +0 -1
- package/resources/assets/users.d.ts +0 -285
- package/resources/assets/users.d.ts.map +0 -1
- package/resources/assets/users.js +0 -34
- package/resources/assets/users.js.map +0 -1
- package/resources/assets/users.mjs +0 -30
- package/resources/assets/users.mjs.map +0 -1
- package/resources/assets/website-collections.d.ts +0 -73
- package/resources/assets/website-collections.d.ts.map +0 -1
- package/resources/assets/website-collections.js.map +0 -1
- package/resources/assets/website-collections.mjs.map +0 -1
- package/resources/assets/website-user-roles.d.ts.map +0 -1
- package/resources/assets/website-user-roles.js.map +0 -1
- package/resources/assets/website-user-roles.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -51
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js.map +0 -1
- 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 +0 -43
- 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 -4
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -9
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -5
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -4
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -9
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -5
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +0 -191
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js +0 -24
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.mjs +0 -20
- package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/index.d.ts +0 -5
- package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/index.js +0 -13
- package/resources/loyalty/transaction-entries/index.js.map +0 -1
- package/resources/loyalty/transaction-entries/index.mjs +0 -6
- package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.js +0 -66
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -4
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -9
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -5
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/assets/assets.ts +0 -294
- package/src/resources/assets/index.ts +0 -38
- package/src/resources/assets/referral/index.ts +0 -14
- package/src/resources/assets/referral/referral.ts +0 -74
- package/src/resources/assets/users.ts +0 -415
- package/src/resources/auction-bids.ts +0 -77
- package/src/resources/drip/drip.ts +0 -21
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -5
- package/src/resources/drip/status.ts +0 -5
- package/src/resources/loyalty/transaction-entries/accounts.ts +0 -251
- package/src/resources/loyalty/transaction-entries/index.ts +0 -34
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{assets/referral → referral}/index.js +0 -0
|
@@ -23,14 +23,14 @@ export declare class Rules extends APIResource {
|
|
|
23
23
|
* endpoint currently only supports following rule types code_entry, text_input,
|
|
24
24
|
* link_click, discord_member, connect_wallet, check_in, external_rule,
|
|
25
25
|
* 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
|
|
26
|
+
* drip_x_text_in_comment, drip_x_tweet, telegram_join, DiscordMessages
|
|
27
27
|
*/
|
|
28
28
|
complete(id: string, body?: RuleCompleteParams, options?: Core.RequestOptions): Core.APIPromise<RuleCompleteResponse>;
|
|
29
29
|
complete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleCompleteResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* This will return the processing status of quests for a specific user
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
getStatus(query: RuleGetStatusParams, options?: Core.RequestOptions): Core.APIPromise<RuleGetStatusResponse>;
|
|
34
34
|
}
|
|
35
35
|
export interface RuleCreateResponse {
|
|
36
36
|
id: string;
|
|
@@ -113,7 +113,7 @@ export interface RuleCreateResponse {
|
|
|
113
113
|
/**
|
|
114
114
|
* Interval between rule executions
|
|
115
115
|
*/
|
|
116
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
116
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
117
117
|
/**
|
|
118
118
|
* Whether this rule is mandatory
|
|
119
119
|
*/
|
|
@@ -122,10 +122,14 @@ export interface RuleCreateResponse {
|
|
|
122
122
|
* Unique identifier for the loyalty rule group
|
|
123
123
|
*/
|
|
124
124
|
loyaltyRuleGroupId?: 'no-section' | (string & {}) | null;
|
|
125
|
+
/**
|
|
126
|
+
* URL of the media to be displayed
|
|
127
|
+
*/
|
|
128
|
+
mediaUrl?: string | null;
|
|
125
129
|
/**
|
|
126
130
|
* Blockchain network where the rule will apply
|
|
127
131
|
*/
|
|
128
|
-
network?: '
|
|
132
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
129
133
|
/**
|
|
130
134
|
* OAuth credentials associated with the rule
|
|
131
135
|
*/
|
|
@@ -168,6 +172,10 @@ export declare namespace RuleCreateResponse {
|
|
|
168
172
|
* Array of collections associated with the rule.
|
|
169
173
|
*/
|
|
170
174
|
collection?: Array<Metadata.Collection>;
|
|
175
|
+
/**
|
|
176
|
+
* Conditions for completing the profile.
|
|
177
|
+
*/
|
|
178
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
171
179
|
/**
|
|
172
180
|
* Object containing details for the call-to-action.
|
|
173
181
|
*/
|
|
@@ -196,14 +204,26 @@ export declare namespace RuleCreateResponse {
|
|
|
196
204
|
* Flag indicating whether the verified multiplier is enabled.
|
|
197
205
|
*/
|
|
198
206
|
enableVerifiedMultiplier?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Fill source of the order for the token sale
|
|
209
|
+
*/
|
|
210
|
+
fillSource?: string;
|
|
199
211
|
/**
|
|
200
212
|
* Percentage reward given to a user for their first referral.
|
|
201
213
|
*/
|
|
202
214
|
firstReferralReward?: number | null;
|
|
215
|
+
/**
|
|
216
|
+
* Flag indicating whether the fill source is included.
|
|
217
|
+
*/
|
|
218
|
+
hasFillSource?: boolean;
|
|
203
219
|
/**
|
|
204
220
|
* Indicates if the item has never been sold.
|
|
205
221
|
*/
|
|
206
222
|
hasNeverSold?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Flag indicating whether the order source is included.
|
|
225
|
+
*/
|
|
226
|
+
hasOrderSource?: boolean;
|
|
207
227
|
/**
|
|
208
228
|
* Indicates if the full royalty has been paid for items.
|
|
209
229
|
*/
|
|
@@ -260,10 +280,18 @@ export declare namespace RuleCreateResponse {
|
|
|
260
280
|
* Flag indicating whether to include only non-listed items.
|
|
261
281
|
*/
|
|
262
282
|
onlyNonListed?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Indicates if only existing users are rewarded.
|
|
285
|
+
*/
|
|
286
|
+
onlyRewardExistingUser?: boolean;
|
|
263
287
|
/**
|
|
264
288
|
* give points for only one token ownership per contract
|
|
265
289
|
*/
|
|
266
290
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
291
|
+
/**
|
|
292
|
+
* Order source of the order for the token sale
|
|
293
|
+
*/
|
|
294
|
+
orderSource?: string;
|
|
267
295
|
/**
|
|
268
296
|
* Promotional code associated with the rule.
|
|
269
297
|
*/
|
|
@@ -382,7 +410,7 @@ export declare namespace RuleCreateResponse {
|
|
|
382
410
|
/**
|
|
383
411
|
* Blockchain network of the collection.
|
|
384
412
|
*/
|
|
385
|
-
network?: '
|
|
413
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
386
414
|
}
|
|
387
415
|
/**
|
|
388
416
|
* Object containing details for the call-to-action.
|
|
@@ -620,7 +648,7 @@ export declare namespace RuleCreateResponse {
|
|
|
620
648
|
/**
|
|
621
649
|
* Blockchain network for the collection
|
|
622
650
|
*/
|
|
623
|
-
network: '
|
|
651
|
+
network: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
624
652
|
}
|
|
625
653
|
}
|
|
626
654
|
export interface RuleUpdateResponse {
|
|
@@ -676,7 +704,7 @@ export interface RuleUpdateResponse {
|
|
|
676
704
|
/**
|
|
677
705
|
* Time interval for recurring rule execution
|
|
678
706
|
*/
|
|
679
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
707
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
680
708
|
/**
|
|
681
709
|
* Whether this rule is required for participation
|
|
682
710
|
*/
|
|
@@ -685,6 +713,10 @@ export interface RuleUpdateResponse {
|
|
|
685
713
|
* ID of the rule group section to associate with the rule
|
|
686
714
|
*/
|
|
687
715
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
716
|
+
/**
|
|
717
|
+
* URL of the media to be displayed
|
|
718
|
+
*/
|
|
719
|
+
mediaUrl?: string | null;
|
|
688
720
|
/**
|
|
689
721
|
* Additional metadata for the loyalty rule
|
|
690
722
|
*/
|
|
@@ -692,7 +724,7 @@ export interface RuleUpdateResponse {
|
|
|
692
724
|
/**
|
|
693
725
|
* Blockchain network where the rule will apply
|
|
694
726
|
*/
|
|
695
|
-
network?: '
|
|
727
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
696
728
|
/**
|
|
697
729
|
* ID for associated OAuth credentials
|
|
698
730
|
*/
|
|
@@ -719,7 +751,7 @@ export declare namespace RuleUpdateResponse {
|
|
|
719
751
|
/**
|
|
720
752
|
* Blockchain network for the collection
|
|
721
753
|
*/
|
|
722
|
-
network: '
|
|
754
|
+
network: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
723
755
|
}
|
|
724
756
|
/**
|
|
725
757
|
* Additional metadata for the loyalty rule
|
|
@@ -749,6 +781,10 @@ export declare namespace RuleUpdateResponse {
|
|
|
749
781
|
* Array of collections associated with the rule.
|
|
750
782
|
*/
|
|
751
783
|
collection?: Array<Metadata.Collection>;
|
|
784
|
+
/**
|
|
785
|
+
* Conditions for completing the profile.
|
|
786
|
+
*/
|
|
787
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
752
788
|
/**
|
|
753
789
|
* Object containing details for the call-to-action.
|
|
754
790
|
*/
|
|
@@ -777,14 +813,26 @@ export declare namespace RuleUpdateResponse {
|
|
|
777
813
|
* Flag indicating whether the verified multiplier is enabled.
|
|
778
814
|
*/
|
|
779
815
|
enableVerifiedMultiplier?: boolean;
|
|
816
|
+
/**
|
|
817
|
+
* Fill source of the order for the token sale
|
|
818
|
+
*/
|
|
819
|
+
fillSource?: string;
|
|
780
820
|
/**
|
|
781
821
|
* Percentage reward given to a user for their first referral.
|
|
782
822
|
*/
|
|
783
823
|
firstReferralReward?: number | null;
|
|
824
|
+
/**
|
|
825
|
+
* Flag indicating whether the fill source is included.
|
|
826
|
+
*/
|
|
827
|
+
hasFillSource?: boolean;
|
|
784
828
|
/**
|
|
785
829
|
* Indicates if the item has never been sold.
|
|
786
830
|
*/
|
|
787
831
|
hasNeverSold?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Flag indicating whether the order source is included.
|
|
834
|
+
*/
|
|
835
|
+
hasOrderSource?: boolean;
|
|
788
836
|
/**
|
|
789
837
|
* Indicates if the full royalty has been paid for items.
|
|
790
838
|
*/
|
|
@@ -841,10 +889,18 @@ export declare namespace RuleUpdateResponse {
|
|
|
841
889
|
* Flag indicating whether to include only non-listed items.
|
|
842
890
|
*/
|
|
843
891
|
onlyNonListed?: boolean;
|
|
892
|
+
/**
|
|
893
|
+
* Indicates if only existing users are rewarded.
|
|
894
|
+
*/
|
|
895
|
+
onlyRewardExistingUser?: boolean;
|
|
844
896
|
/**
|
|
845
897
|
* give points for only one token ownership per contract
|
|
846
898
|
*/
|
|
847
899
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
900
|
+
/**
|
|
901
|
+
* Order source of the order for the token sale
|
|
902
|
+
*/
|
|
903
|
+
orderSource?: string;
|
|
848
904
|
/**
|
|
849
905
|
* Promotional code associated with the rule.
|
|
850
906
|
*/
|
|
@@ -963,7 +1019,7 @@ export declare namespace RuleUpdateResponse {
|
|
|
963
1019
|
/**
|
|
964
1020
|
* Blockchain network of the collection.
|
|
965
1021
|
*/
|
|
966
|
-
network?: '
|
|
1022
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
967
1023
|
}
|
|
968
1024
|
/**
|
|
969
1025
|
* Object containing details for the call-to-action.
|
|
@@ -1256,10 +1312,10 @@ export interface RuleDeleteResponse {
|
|
|
1256
1312
|
export interface RuleCompleteResponse {
|
|
1257
1313
|
message: string;
|
|
1258
1314
|
}
|
|
1259
|
-
export interface
|
|
1260
|
-
data: Array<
|
|
1315
|
+
export interface RuleGetStatusResponse {
|
|
1316
|
+
data: Array<RuleGetStatusResponse.Data>;
|
|
1261
1317
|
}
|
|
1262
|
-
export declare namespace
|
|
1318
|
+
export declare namespace RuleGetStatusResponse {
|
|
1263
1319
|
interface Data {
|
|
1264
1320
|
loyaltyRuleId: string;
|
|
1265
1321
|
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
@@ -1347,7 +1403,7 @@ export interface RuleCreateParams {
|
|
|
1347
1403
|
/**
|
|
1348
1404
|
* Interval between rule executions
|
|
1349
1405
|
*/
|
|
1350
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
1406
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
1351
1407
|
/**
|
|
1352
1408
|
* Whether this rule is mandatory
|
|
1353
1409
|
*/
|
|
@@ -1356,10 +1412,14 @@ export interface RuleCreateParams {
|
|
|
1356
1412
|
* Unique identifier for the loyalty rule group
|
|
1357
1413
|
*/
|
|
1358
1414
|
loyaltyRuleGroupId?: 'no-section' | (string & {}) | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* URL of the media to be displayed
|
|
1417
|
+
*/
|
|
1418
|
+
mediaUrl?: string | null;
|
|
1359
1419
|
/**
|
|
1360
1420
|
* Blockchain network where the rule will apply
|
|
1361
1421
|
*/
|
|
1362
|
-
network?: '
|
|
1422
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
1363
1423
|
/**
|
|
1364
1424
|
* OAuth credentials associated with the rule
|
|
1365
1425
|
*/
|
|
@@ -1402,6 +1462,10 @@ export declare namespace RuleCreateParams {
|
|
|
1402
1462
|
* Array of collections associated with the rule.
|
|
1403
1463
|
*/
|
|
1404
1464
|
collection?: Array<Metadata.Collection>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Conditions for completing the profile.
|
|
1467
|
+
*/
|
|
1468
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
1405
1469
|
/**
|
|
1406
1470
|
* Object containing details for the call-to-action.
|
|
1407
1471
|
*/
|
|
@@ -1430,14 +1494,26 @@ export declare namespace RuleCreateParams {
|
|
|
1430
1494
|
* Flag indicating whether the verified multiplier is enabled.
|
|
1431
1495
|
*/
|
|
1432
1496
|
enableVerifiedMultiplier?: boolean;
|
|
1497
|
+
/**
|
|
1498
|
+
* Fill source of the order for the token sale
|
|
1499
|
+
*/
|
|
1500
|
+
fillSource?: string;
|
|
1433
1501
|
/**
|
|
1434
1502
|
* Percentage reward given to a user for their first referral.
|
|
1435
1503
|
*/
|
|
1436
1504
|
firstReferralReward?: number | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Flag indicating whether the fill source is included.
|
|
1507
|
+
*/
|
|
1508
|
+
hasFillSource?: boolean;
|
|
1437
1509
|
/**
|
|
1438
1510
|
* Indicates if the item has never been sold.
|
|
1439
1511
|
*/
|
|
1440
1512
|
hasNeverSold?: boolean;
|
|
1513
|
+
/**
|
|
1514
|
+
* Flag indicating whether the order source is included.
|
|
1515
|
+
*/
|
|
1516
|
+
hasOrderSource?: boolean;
|
|
1441
1517
|
/**
|
|
1442
1518
|
* Indicates if the full royalty has been paid for items.
|
|
1443
1519
|
*/
|
|
@@ -1494,10 +1570,18 @@ export declare namespace RuleCreateParams {
|
|
|
1494
1570
|
* Flag indicating whether to include only non-listed items.
|
|
1495
1571
|
*/
|
|
1496
1572
|
onlyNonListed?: boolean;
|
|
1573
|
+
/**
|
|
1574
|
+
* Indicates if only existing users are rewarded.
|
|
1575
|
+
*/
|
|
1576
|
+
onlyRewardExistingUser?: boolean;
|
|
1497
1577
|
/**
|
|
1498
1578
|
* give points for only one token ownership per contract
|
|
1499
1579
|
*/
|
|
1500
1580
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
1581
|
+
/**
|
|
1582
|
+
* Order source of the order for the token sale
|
|
1583
|
+
*/
|
|
1584
|
+
orderSource?: string;
|
|
1501
1585
|
/**
|
|
1502
1586
|
* Promotional code associated with the rule.
|
|
1503
1587
|
*/
|
|
@@ -1616,7 +1700,7 @@ export declare namespace RuleCreateParams {
|
|
|
1616
1700
|
/**
|
|
1617
1701
|
* Blockchain network of the collection.
|
|
1618
1702
|
*/
|
|
1619
|
-
network?: '
|
|
1703
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
1620
1704
|
}
|
|
1621
1705
|
/**
|
|
1622
1706
|
* Object containing details for the call-to-action.
|
|
@@ -1854,7 +1938,7 @@ export declare namespace RuleCreateParams {
|
|
|
1854
1938
|
/**
|
|
1855
1939
|
* Blockchain network for the collection
|
|
1856
1940
|
*/
|
|
1857
|
-
network: '
|
|
1941
|
+
network: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
1858
1942
|
}
|
|
1859
1943
|
}
|
|
1860
1944
|
export interface RuleUpdateParams {
|
|
@@ -1909,7 +1993,7 @@ export interface RuleUpdateParams {
|
|
|
1909
1993
|
/**
|
|
1910
1994
|
* Time interval for recurring rule execution
|
|
1911
1995
|
*/
|
|
1912
|
-
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | null;
|
|
1996
|
+
interval?: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom' | 'every_message' | null;
|
|
1913
1997
|
/**
|
|
1914
1998
|
* Whether this rule is required for participation
|
|
1915
1999
|
*/
|
|
@@ -1918,6 +2002,10 @@ export interface RuleUpdateParams {
|
|
|
1918
2002
|
* ID of the rule group section to associate with the rule
|
|
1919
2003
|
*/
|
|
1920
2004
|
loyaltyRuleGroupId?: (string & {}) | 'no-section' | null;
|
|
2005
|
+
/**
|
|
2006
|
+
* URL of the media to be displayed
|
|
2007
|
+
*/
|
|
2008
|
+
mediaUrl?: string | null;
|
|
1921
2009
|
/**
|
|
1922
2010
|
* Additional metadata for the loyalty rule
|
|
1923
2011
|
*/
|
|
@@ -1925,7 +2013,7 @@ export interface RuleUpdateParams {
|
|
|
1925
2013
|
/**
|
|
1926
2014
|
* Blockchain network where the rule will apply
|
|
1927
2015
|
*/
|
|
1928
|
-
network?: '
|
|
2016
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
1929
2017
|
/**
|
|
1930
2018
|
* ID for associated OAuth credentials
|
|
1931
2019
|
*/
|
|
@@ -1952,7 +2040,7 @@ export declare namespace RuleUpdateParams {
|
|
|
1952
2040
|
/**
|
|
1953
2041
|
* Blockchain network for the collection
|
|
1954
2042
|
*/
|
|
1955
|
-
network: '
|
|
2043
|
+
network: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
1956
2044
|
}
|
|
1957
2045
|
/**
|
|
1958
2046
|
* Additional metadata for the loyalty rule
|
|
@@ -1982,6 +2070,10 @@ export declare namespace RuleUpdateParams {
|
|
|
1982
2070
|
* Array of collections associated with the rule.
|
|
1983
2071
|
*/
|
|
1984
2072
|
collection?: Array<Metadata.Collection>;
|
|
2073
|
+
/**
|
|
2074
|
+
* Conditions for completing the profile.
|
|
2075
|
+
*/
|
|
2076
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
1985
2077
|
/**
|
|
1986
2078
|
* Object containing details for the call-to-action.
|
|
1987
2079
|
*/
|
|
@@ -2010,14 +2102,26 @@ export declare namespace RuleUpdateParams {
|
|
|
2010
2102
|
* Flag indicating whether the verified multiplier is enabled.
|
|
2011
2103
|
*/
|
|
2012
2104
|
enableVerifiedMultiplier?: boolean;
|
|
2105
|
+
/**
|
|
2106
|
+
* Fill source of the order for the token sale
|
|
2107
|
+
*/
|
|
2108
|
+
fillSource?: string;
|
|
2013
2109
|
/**
|
|
2014
2110
|
* Percentage reward given to a user for their first referral.
|
|
2015
2111
|
*/
|
|
2016
2112
|
firstReferralReward?: number | null;
|
|
2113
|
+
/**
|
|
2114
|
+
* Flag indicating whether the fill source is included.
|
|
2115
|
+
*/
|
|
2116
|
+
hasFillSource?: boolean;
|
|
2017
2117
|
/**
|
|
2018
2118
|
* Indicates if the item has never been sold.
|
|
2019
2119
|
*/
|
|
2020
2120
|
hasNeverSold?: boolean;
|
|
2121
|
+
/**
|
|
2122
|
+
* Flag indicating whether the order source is included.
|
|
2123
|
+
*/
|
|
2124
|
+
hasOrderSource?: boolean;
|
|
2021
2125
|
/**
|
|
2022
2126
|
* Indicates if the full royalty has been paid for items.
|
|
2023
2127
|
*/
|
|
@@ -2074,10 +2178,18 @@ export declare namespace RuleUpdateParams {
|
|
|
2074
2178
|
* Flag indicating whether to include only non-listed items.
|
|
2075
2179
|
*/
|
|
2076
2180
|
onlyNonListed?: boolean;
|
|
2181
|
+
/**
|
|
2182
|
+
* Indicates if only existing users are rewarded.
|
|
2183
|
+
*/
|
|
2184
|
+
onlyRewardExistingUser?: boolean;
|
|
2077
2185
|
/**
|
|
2078
2186
|
* give points for only one token ownership per contract
|
|
2079
2187
|
*/
|
|
2080
2188
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
2189
|
+
/**
|
|
2190
|
+
* Order source of the order for the token sale
|
|
2191
|
+
*/
|
|
2192
|
+
orderSource?: string;
|
|
2081
2193
|
/**
|
|
2082
2194
|
* Promotional code associated with the rule.
|
|
2083
2195
|
*/
|
|
@@ -2196,7 +2308,7 @@ export declare namespace RuleUpdateParams {
|
|
|
2196
2308
|
/**
|
|
2197
2309
|
* Blockchain network of the collection.
|
|
2198
2310
|
*/
|
|
2199
|
-
network?: '
|
|
2311
|
+
network?: 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachainArtio' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'solana' | 'sophon' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
2200
2312
|
}
|
|
2201
2313
|
/**
|
|
2202
2314
|
* Object containing details for the call-to-action.
|
|
@@ -2440,6 +2552,10 @@ export interface RuleListParams {
|
|
|
2440
2552
|
* ID of the loyalty rule group to filter results
|
|
2441
2553
|
*/
|
|
2442
2554
|
loyaltyRuleGroupId?: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* The IDs of the loyalty rule
|
|
2557
|
+
*/
|
|
2558
|
+
loyaltyRuleId?: string | Array<string>;
|
|
2443
2559
|
/**
|
|
2444
2560
|
* Unique identifier for the organization to filter by
|
|
2445
2561
|
*/
|
|
@@ -2454,6 +2570,11 @@ export interface RuleListParams {
|
|
|
2454
2570
|
websiteId?: string;
|
|
2455
2571
|
}
|
|
2456
2572
|
export interface RuleCompleteParams {
|
|
2573
|
+
/**
|
|
2574
|
+
* Override amount for the reward (rounded to nearest whole number). This will
|
|
2575
|
+
* override the rule amount and reward the integer passed.
|
|
2576
|
+
*/
|
|
2577
|
+
amount?: number | null;
|
|
2457
2578
|
/**
|
|
2458
2579
|
* Link to the comment made by user
|
|
2459
2580
|
*/
|
|
@@ -2480,12 +2601,12 @@ export interface RuleCompleteParams {
|
|
|
2480
2601
|
*/
|
|
2481
2602
|
walletAddress?: string;
|
|
2482
2603
|
}
|
|
2483
|
-
export interface
|
|
2604
|
+
export interface RuleGetStatusParams {
|
|
2484
2605
|
organizationId: string;
|
|
2485
2606
|
websiteId: string;
|
|
2486
2607
|
userId?: string;
|
|
2487
2608
|
}
|
|
2488
2609
|
export declare namespace Rules {
|
|
2489
|
-
export { type RuleCreateResponse as RuleCreateResponse, type RuleUpdateResponse as RuleUpdateResponse, type RuleListResponse as RuleListResponse, type RuleDeleteResponse as RuleDeleteResponse, type RuleCompleteResponse as RuleCompleteResponse, type
|
|
2610
|
+
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 RuleCompleteParams as RuleCompleteParams, type RuleGetStatusParams as RuleGetStatusParams, };
|
|
2490
2611
|
}
|
|
2491
2612
|
//# sourceMappingURL=rules.d.ts.map
|