@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.15
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 +98 -0
- package/README.md +22 -14
- package/core.d.ts.map +1 -1
- package/core.js +14 -7
- package/core.js.map +1 -1
- package/core.mjs +14 -7
- package/core.mjs.map +1 -1
- package/index.d.mts +11 -26
- package/index.d.ts +11 -26
- package/index.d.ts.map +1 -1
- package/index.js +8 -23
- package/index.js.map +1 -1
- package/index.mjs +8 -23
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/api/api.js +94 -0
- package/resources/api/api.js.map +1 -0
- package/resources/api/api.mjs +67 -0
- package/resources/api/api.mjs.map +1 -0
- package/resources/api/index.d.ts +9 -0
- package/resources/api/index.d.ts.map +1 -0
- package/resources/api/index.js +21 -0
- package/resources/api/index.js.map +1 -0
- package/resources/api/index.mjs +10 -0
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/accounts.d.ts +44 -6
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/api/loyalty/accounts.js +24 -0
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/api/loyalty/accounts.mjs +20 -0
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/api/loyalty/badges.d.ts +870 -0
- package/resources/api/loyalty/badges.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.js +2 -2
- package/resources/api/loyalty/badges.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
- package/resources/api/loyalty/badges.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.d.ts +3 -9
- package/resources/api/loyalty/currencies.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
- package/resources/api/loyalty/currencies.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
- package/resources/api/loyalty/currencies.mjs.map +1 -0
- package/resources/api/loyalty/index.d.ts +10 -0
- package/resources/api/loyalty/index.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.js +5 -3
- package/resources/api/loyalty/index.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
- package/resources/api/loyalty/index.mjs.map +1 -0
- package/resources/api/loyalty/loyalty.d.ts +807 -0
- package/resources/api/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
- package/resources/api/loyalty/loyalty.js.map +1 -0
- package/resources/api/loyalty/loyalty.mjs +59 -0
- package/resources/api/loyalty/loyalty.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.d.ts +36 -4
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +8 -2
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +8 -2
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts +97 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js +22 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs +18 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts +150 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js +27 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs +23 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +9 -9
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +3 -3
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +3 -3
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +167 -90
- package/resources/api/loyalty/rules.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.js +3 -3
- package/resources/api/loyalty/rules.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
- package/resources/api/loyalty/rules.mjs.map +1 -0
- package/resources/api/loyalty.d.ts +2 -0
- package/resources/api/loyalty.d.ts.map +1 -0
- package/resources/api/loyalty.js +19 -0
- package/resources/api/loyalty.js.map +1 -0
- package/resources/api/loyalty.mjs +3 -0
- package/resources/api/loyalty.mjs.map +1 -0
- package/resources/api/minting.d.ts +95 -0
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/api/minting.js +15 -0
- package/resources/api/minting.js.map +1 -0
- package/resources/api/minting.mjs +11 -0
- package/resources/api/minting.mjs.map +1 -0
- package/resources/api/referral/index.d.ts +3 -0
- package/resources/api/referral/index.d.ts.map +1 -0
- package/resources/api/referral/index.js +9 -0
- package/resources/api/referral/index.js.map +1 -0
- package/resources/api/referral/index.mjs +4 -0
- package/resources/api/referral/index.mjs.map +1 -0
- package/resources/api/referral/referral.d.ts +31 -0
- package/resources/api/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → api/referral/referral.js} +16 -13
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/api/referral/referral.mjs +19 -0
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/api/referral/users.d.ts +57 -0
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/api/referral/users.js +21 -0
- package/resources/api/referral/users.js.map +1 -0
- package/resources/api/referral/users.mjs +17 -0
- package/resources/api/referral/users.mjs.map +1 -0
- package/resources/api/referral.d.ts +2 -0
- package/resources/api/referral.d.ts.map +1 -0
- package/resources/api/referral.js +19 -0
- package/resources/api/referral.js.map +1 -0
- package/resources/api/referral.mjs +3 -0
- package/resources/api/referral.mjs.map +1 -0
- package/resources/api/users/index.d.ts +3 -0
- package/resources/api/users/index.d.ts.map +1 -0
- package/resources/{users → api/users}/index.js +1 -3
- package/resources/api/users/index.js.map +1 -0
- package/resources/api/users/index.mjs +4 -0
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/api/users/metadatas.d.ts +137 -0
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +8 -2
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/api/users/metadatas.mjs +18 -0
- package/resources/api/users/metadatas.mjs.map +1 -0
- package/resources/api/users/users.d.ts +133 -0
- package/resources/api/users/users.d.ts.map +1 -0
- package/resources/{users → api/users}/users.js +19 -5
- package/resources/api/users/users.js.map +1 -0
- package/resources/api/users/users.mjs +30 -0
- package/resources/api/users/users.mjs.map +1 -0
- package/resources/api/users.d.ts +2 -0
- package/resources/api/users.d.ts.map +1 -0
- package/resources/api/users.js +19 -0
- package/resources/api/users.js.map +1 -0
- package/resources/api/users.mjs +3 -0
- package/resources/api/users.mjs.map +1 -0
- package/resources/api/website-collections.d.ts +73 -0
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/api/website-collections.js +25 -0
- package/resources/api/website-collections.js.map +1 -0
- package/resources/api/website-collections.mjs +21 -0
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/api/website-user-roles.d.ts +73 -0
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/api/website-user-roles.js +22 -0
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/api/website-user-roles.mjs +18 -0
- package/resources/api/website-user-roles.mjs.map +1 -0
- package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
- package/resources/api/websites.d.ts.map +1 -0
- package/resources/{websites.js → api/websites.js} +2 -2
- package/resources/api/websites.js.map +1 -0
- package/resources/{websites.mjs → api/websites.mjs} +2 -2
- package/resources/api/websites.mjs.map +1 -0
- package/resources/api.d.ts +2 -0
- package/resources/api.d.ts.map +1 -0
- package/resources/api.js +19 -0
- package/resources/api.js.map +1 -0
- package/resources/api.mjs +3 -0
- package/resources/api.mjs.map +1 -0
- package/resources/index.d.ts +1 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.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/core.ts +16 -8
- package/src/index.ts +28 -57
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty → api/loyalty}/accounts.ts +65 -8
- package/src/resources/api/loyalty/badges.ts +1142 -0
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +3 -9
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -11
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +61 -4
- package/src/resources/api/loyalty/questions-responses.ts +146 -0
- package/src/resources/api/loyalty/questions.ts +208 -0
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +11 -14
- package/src/resources/{loyalty → api/loyalty}/rules.ts +339 -180
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/api/minting.ts +157 -0
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/api/referral/users.ts +93 -0
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/api/users/metadatas.ts +206 -0
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/api/website-collections.ts +148 -0
- package/src/resources/api/website-user-roles.ts +107 -0
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -11
- 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.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -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/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -16
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -12
- package/resources/loyalty/accounts.mjs.map +0 -1
- package/resources/loyalty/badges.d.ts +0 -299
- package/resources/loyalty/badges.d.ts.map +0 -1
- package/resources/loyalty/badges.js.map +0 -1
- package/resources/loyalty/badges.mjs.map +0 -1
- package/resources/loyalty/currencies.d.ts.map +0 -1
- package/resources/loyalty/currencies.js.map +0 -1
- package/resources/loyalty/currencies.mjs.map +0 -1
- package/resources/loyalty/index.d.ts +0 -9
- package/resources/loyalty/index.d.ts.map +0 -1
- package/resources/loyalty/index.js.map +0 -1
- package/resources/loyalty/index.mjs.map +0 -1
- package/resources/loyalty/loyalty.d.ts +0 -34
- package/resources/loyalty/loyalty.d.ts.map +0 -1
- package/resources/loyalty/loyalty.js.map +0 -1
- package/resources/loyalty/loyalty.mjs +0 -36
- package/resources/loyalty/loyalty.mjs.map +0 -1
- package/resources/loyalty/multipliers.d.ts.map +0 -1
- package/resources/loyalty/multipliers.js.map +0 -1
- package/resources/loyalty/multipliers.mjs.map +0 -1
- package/resources/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/loyalty/rule-edits.js.map +0 -1
- package/resources/loyalty/rule-edits.mjs.map +0 -1
- package/resources/loyalty/rules.d.ts.map +0 -1
- package/resources/loyalty/rules.js.map +0 -1
- package/resources/loyalty/rules.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/index.d.ts +0 -4
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs +0 -5
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/metadatas.d.ts +0 -64
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- package/resources/users/metadatas.mjs +0 -12
- package/resources/users/metadatas.mjs.map +0 -1
- package/resources/users/users.d.ts +0 -14
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -16
- package/resources/users/users.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/resources/websites.d.ts.map +0 -1
- package/resources/websites.js.map +0 -1
- package/resources/websites.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- 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/badges.ts +0 -435
- package/src/resources/loyalty/loyalty.ts +0 -159
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/index.ts +0 -12
- package/src/resources/users/metadatas.ts +0 -103
- package/src/resources/users/users.ts +0 -39
- package/src/resources/users/wallets.ts +0 -271
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
import { APIResource } from "../../../resource.js";
|
|
2
|
+
import * as Core from "../../../core.js";
|
|
3
|
+
import * as AccountsAPI from "./accounts.js";
|
|
4
|
+
import { AccountGetRankParams, AccountGetRankResponse, AccountListParams, AccountListResponse, Accounts } from "./accounts.js";
|
|
5
|
+
import * as BadgesAPI from "./badges.js";
|
|
6
|
+
import { BadgeCreateParams, BadgeCreateResponse, BadgeDeleteResponse, BadgeListParams, BadgeListResponse, BadgeRevokeParams, BadgeRevokeResponse, BadgeRewardParams, BadgeRewardResponse, BadgeUpdateParams, BadgeUpdateResponse, Badges } from "./badges.js";
|
|
7
|
+
import * as CurrenciesAPI from "./currencies.js";
|
|
8
|
+
import { Currencies, CurrencyCreateParams, CurrencyCreateResponse, CurrencyListParams, CurrencyListResponse } from "./currencies.js";
|
|
9
|
+
import * as MultipliersAPI from "./multipliers.js";
|
|
10
|
+
import { MultiplierCreateParams, MultiplierCreateResponse, MultiplierDeleteByExternalIDParams, MultiplierDeleteByExternalIDResponse, MultiplierDeleteResponse, MultiplierListParams, MultiplierListResponse, MultiplierUpdateParams, MultiplierUpdateResponse, Multipliers } from "./multipliers.js";
|
|
11
|
+
import * as QuestionsAPI from "./questions.js";
|
|
12
|
+
import { QuestionCreateParams, QuestionCreateResponse, QuestionListParams, QuestionListResponse, QuestionUpdateParams, QuestionUpdateResponse, Questions } from "./questions.js";
|
|
13
|
+
import * as QuestionsResponsesAPI from "./questions-responses.js";
|
|
14
|
+
import { QuestionsResponseListParams, QuestionsResponseListResponse, QuestionsResponseSubmitParams, QuestionsResponseSubmitResponse, QuestionsResponses } from "./questions-responses.js";
|
|
15
|
+
import * as RuleEditsAPI from "./rule-edits.js";
|
|
16
|
+
import { RuleEditListParams, RuleEditListResponse, RuleEditRestoreParams, RuleEditRestoreResponse, RuleEdits } from "./rule-edits.js";
|
|
17
|
+
import * as RulesAPI from "./rules.js";
|
|
18
|
+
import { RuleCompleteParams, RuleCompleteResponse, RuleCreateParams, RuleCreateResponse, RuleDeleteResponse, RuleGetStatusParams, RuleGetStatusResponse, RuleListParams, RuleListResponse, RuleUpdateParams, RuleUpdateResponse, Rules } from "./rules.js";
|
|
19
|
+
export declare class Loyalty extends APIResource {
|
|
20
|
+
accounts: AccountsAPI.Accounts;
|
|
21
|
+
badges: BadgesAPI.Badges;
|
|
22
|
+
currencies: CurrenciesAPI.Currencies;
|
|
23
|
+
multipliers: MultipliersAPI.Multipliers;
|
|
24
|
+
ruleEdits: RuleEditsAPI.RuleEdits;
|
|
25
|
+
rules: RulesAPI.Rules;
|
|
26
|
+
questions: QuestionsAPI.Questions;
|
|
27
|
+
questionsResponses: QuestionsResponsesAPI.QuestionsResponses;
|
|
28
|
+
/**
|
|
29
|
+
* Create a loyalty transaction to update account balances.
|
|
30
|
+
*/
|
|
31
|
+
createTransaction(body: LoyaltyCreateTransactionParams, options?: Core.RequestOptions): Core.APIPromise<LoyaltyCreateTransactionResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve configured loyalty rule groups
|
|
34
|
+
*/
|
|
35
|
+
getRuleGroups(query?: LoyaltyGetRuleGroupsParams, options?: Core.RequestOptions): Core.APIPromise<LoyaltyGetRuleGroupsResponse>;
|
|
36
|
+
getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<LoyaltyGetRuleGroupsResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch loyalty transaction entries for wallets or users, representing account
|
|
39
|
+
* balance changes.
|
|
40
|
+
*/
|
|
41
|
+
listTransactionEntries(query?: LoyaltyListTransactionEntriesParams, options?: Core.RequestOptions): Core.APIPromise<LoyaltyListTransactionEntriesResponse>;
|
|
42
|
+
listTransactionEntries(options?: Core.RequestOptions): Core.APIPromise<LoyaltyListTransactionEntriesResponse>;
|
|
43
|
+
}
|
|
44
|
+
export interface LoyaltyCreateTransactionResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
description: string;
|
|
48
|
+
entries: Array<LoyaltyCreateTransactionResponse.Entry>;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace LoyaltyCreateTransactionResponse {
|
|
52
|
+
interface Entry {
|
|
53
|
+
amount: number;
|
|
54
|
+
/**
|
|
55
|
+
* Direction of the transaction entry
|
|
56
|
+
*/
|
|
57
|
+
direction: 'credit' | 'debit';
|
|
58
|
+
walletAddress: string;
|
|
59
|
+
idempotencyKey?: string;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface LoyaltyGetRuleGroupsResponse {
|
|
63
|
+
data: Array<LoyaltyGetRuleGroupsResponse.Data>;
|
|
64
|
+
hasNextPage: boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
67
|
+
interface Data {
|
|
68
|
+
id: string;
|
|
69
|
+
isCollapsible: boolean;
|
|
70
|
+
isRequired: boolean;
|
|
71
|
+
loyaltyGroupItems: Array<Data.LoyaltyGroupItem>;
|
|
72
|
+
name: string;
|
|
73
|
+
sortId: number;
|
|
74
|
+
subTitle: string | null;
|
|
75
|
+
}
|
|
76
|
+
namespace Data {
|
|
77
|
+
interface LoyaltyGroupItem {
|
|
78
|
+
id: string;
|
|
79
|
+
loyaltyRule: LoyaltyGroupItem.LoyaltyRule;
|
|
80
|
+
sortId: number;
|
|
81
|
+
}
|
|
82
|
+
namespace LoyaltyGroupItem {
|
|
83
|
+
interface LoyaltyRule {
|
|
84
|
+
id: string;
|
|
85
|
+
amount: number | null;
|
|
86
|
+
deletedAt: string | null;
|
|
87
|
+
description: string | null;
|
|
88
|
+
endTime: string | null;
|
|
89
|
+
frequency: 'none' | 'once' | 'daily' | 'weekly' | 'monthly' | 'immediately' | null;
|
|
90
|
+
hideInUi: boolean;
|
|
91
|
+
isRequired: boolean;
|
|
92
|
+
loyaltyCurrencyId: string;
|
|
93
|
+
metadata: LoyaltyRule.Metadata;
|
|
94
|
+
name: string;
|
|
95
|
+
rewardType: 'points' | 'multiplier';
|
|
96
|
+
startTime: string | null;
|
|
97
|
+
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';
|
|
98
|
+
}
|
|
99
|
+
namespace LoyaltyRule {
|
|
100
|
+
interface Metadata {
|
|
101
|
+
/**
|
|
102
|
+
* Text displayed on the action button.
|
|
103
|
+
*/
|
|
104
|
+
buttonText?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Flag indicating if commenting is required.
|
|
107
|
+
*/
|
|
108
|
+
checkComment?: boolean | null;
|
|
109
|
+
/**
|
|
110
|
+
* Flag indicating if liking the post is required.
|
|
111
|
+
*/
|
|
112
|
+
checkLike?: boolean | null;
|
|
113
|
+
/**
|
|
114
|
+
* Flag indicating if reposting is required.
|
|
115
|
+
*/
|
|
116
|
+
checkRepost?: boolean | null;
|
|
117
|
+
/**
|
|
118
|
+
* Text to check in the Twitter post, username, or bio.
|
|
119
|
+
*/
|
|
120
|
+
checkText?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Array of collections associated with the rule.
|
|
123
|
+
*/
|
|
124
|
+
collection?: Array<Metadata.Collection>;
|
|
125
|
+
/**
|
|
126
|
+
* Object containing details for the call-to-action.
|
|
127
|
+
*/
|
|
128
|
+
cta?: Metadata.Cta | null;
|
|
129
|
+
/**
|
|
130
|
+
* API key for custom rewards integration.
|
|
131
|
+
*/
|
|
132
|
+
customRewardsApiKey?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Array of Discord servers, channels, and roles to join.
|
|
135
|
+
*/
|
|
136
|
+
discordServersToJoin?: Array<Metadata.DiscordServersToJoin> | null;
|
|
137
|
+
/**
|
|
138
|
+
* Array of drip quests required to complete the rule.
|
|
139
|
+
*/
|
|
140
|
+
dripQuestsToComplete?: Array<Metadata.DripQuestsToComplete> | null;
|
|
141
|
+
/**
|
|
142
|
+
* Flag indicating whether joining Discord servers is required.
|
|
143
|
+
*/
|
|
144
|
+
enableJoinDiscordServers?: boolean | null;
|
|
145
|
+
/**
|
|
146
|
+
* Flag indicating whether streaks are enabled.
|
|
147
|
+
*/
|
|
148
|
+
enableStreaks?: boolean | null;
|
|
149
|
+
/**
|
|
150
|
+
* Flag indicating whether the verified multiplier is enabled.
|
|
151
|
+
*/
|
|
152
|
+
enableVerifiedMultiplier?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Percentage reward given to a user for their first referral.
|
|
155
|
+
*/
|
|
156
|
+
firstReferralReward?: number | null;
|
|
157
|
+
/**
|
|
158
|
+
* Indicates if the item has never been sold.
|
|
159
|
+
*/
|
|
160
|
+
hasNeverSold?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Indicates if the full royalty has been paid for items.
|
|
163
|
+
*/
|
|
164
|
+
hasPaidFullRoyalty?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Flag indicating if the sale currency is included.
|
|
167
|
+
*/
|
|
168
|
+
hasSaleCurrency?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Indicates if the user has a verified Twitter account.
|
|
171
|
+
*/
|
|
172
|
+
hasVerifiedTwitter?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* URL of the image associated with the rule.
|
|
175
|
+
*/
|
|
176
|
+
imageUrl?: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* Indicates if the multiplier has been applied to rewards.
|
|
179
|
+
*/
|
|
180
|
+
isMultiplierApplied?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Flag indicating if rewards are applied retroactively.
|
|
183
|
+
*/
|
|
184
|
+
isRetroactive?: boolean | null;
|
|
185
|
+
/**
|
|
186
|
+
* Flag indicating if the token hold multiplier is applied.
|
|
187
|
+
*/
|
|
188
|
+
isTokenHoldMultiplier?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Optional link associated with the metadata.
|
|
191
|
+
*/
|
|
192
|
+
link?: string | null;
|
|
193
|
+
/**
|
|
194
|
+
* Maximum quantity constraint for token holding.
|
|
195
|
+
*/
|
|
196
|
+
maxQty?: number | null;
|
|
197
|
+
/**
|
|
198
|
+
* Minimum quantity constraint for token holding.
|
|
199
|
+
*/
|
|
200
|
+
minQty?: number | null;
|
|
201
|
+
/**
|
|
202
|
+
* Array of loyalty currency IDs used for multipliers.
|
|
203
|
+
*/
|
|
204
|
+
multiplierLoyaltyCurrencyIds?: Array<string> | null;
|
|
205
|
+
/**
|
|
206
|
+
* Flag indicating whether to include only known users.
|
|
207
|
+
*/
|
|
208
|
+
onlyKnownUsers?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Flag indicating whether to include only native tokens.
|
|
211
|
+
*/
|
|
212
|
+
onlyNative?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Flag indicating whether to include only non-listed items.
|
|
215
|
+
*/
|
|
216
|
+
onlyNonListed?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Indicates if only existing users are rewarded.
|
|
219
|
+
*/
|
|
220
|
+
onlyRewardExistingUser?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* give points for only one token ownership per contract
|
|
223
|
+
*/
|
|
224
|
+
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
225
|
+
/**
|
|
226
|
+
* Promotional code associated with the rule.
|
|
227
|
+
*/
|
|
228
|
+
promoCode?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Array defining ranges and corresponding rewards.
|
|
231
|
+
*/
|
|
232
|
+
range?: Array<Metadata.Range>;
|
|
233
|
+
/**
|
|
234
|
+
* Object defining referral requirements.
|
|
235
|
+
*/
|
|
236
|
+
referralRequirements?: Metadata.ReferralRequirements | null;
|
|
237
|
+
/**
|
|
238
|
+
* Lump sum reward given to a referrer.
|
|
239
|
+
*/
|
|
240
|
+
referrerReward?: number | null;
|
|
241
|
+
/**
|
|
242
|
+
* Flag indicating if rewards are given per impression.
|
|
243
|
+
*/
|
|
244
|
+
rewardPerImpression?: boolean | null;
|
|
245
|
+
/**
|
|
246
|
+
* Currency associated with sales.
|
|
247
|
+
*/
|
|
248
|
+
saleCurrency?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Percentage reward given for a second-level referral.
|
|
251
|
+
*/
|
|
252
|
+
secondReferralReward?: number | null;
|
|
253
|
+
/**
|
|
254
|
+
* Flag indicating if the multiplier is skipped.
|
|
255
|
+
*/
|
|
256
|
+
skipMultiplier?: boolean | null;
|
|
257
|
+
/**
|
|
258
|
+
* Object containing details of the associated smart contract.
|
|
259
|
+
*/
|
|
260
|
+
smartContract?: Metadata.SmartContract;
|
|
261
|
+
/**
|
|
262
|
+
* Array of snapshot proposals for the rule.
|
|
263
|
+
*/
|
|
264
|
+
snapshotProposals?: Array<Metadata.SnapshotProposal> | null;
|
|
265
|
+
/**
|
|
266
|
+
* Social media platform associated with the rule.
|
|
267
|
+
*/
|
|
268
|
+
socialPlatform?: 'Custom' | 'Discord' | 'EpicGames' | 'Instagram' | 'Steam' | 'Telegram' | 'TikTok' | 'Twitch' | 'X(Twitter)' | 'YouTube' | null;
|
|
269
|
+
/**
|
|
270
|
+
* URL of the social platform's logo.
|
|
271
|
+
*/
|
|
272
|
+
socialPlatformLogo?: string | null;
|
|
273
|
+
/**
|
|
274
|
+
* Name of the social platform.
|
|
275
|
+
*/
|
|
276
|
+
socialPlatformName?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* Array of streak milestones and corresponding rewards.
|
|
279
|
+
*/
|
|
280
|
+
streakArray?: Array<Metadata.StreakArray> | null;
|
|
281
|
+
/**
|
|
282
|
+
* ID of the Telegram channel.
|
|
283
|
+
*/
|
|
284
|
+
telegramChannelId?: string | null;
|
|
285
|
+
/**
|
|
286
|
+
* Time delay in seconds to verify actions.
|
|
287
|
+
*/
|
|
288
|
+
timeDelayToVerifySeconds?: string | number | null;
|
|
289
|
+
/**
|
|
290
|
+
* Flag indicating if all contracts are tracked.
|
|
291
|
+
*/
|
|
292
|
+
trackAllContracts?: boolean | null;
|
|
293
|
+
/**
|
|
294
|
+
* URL of the associated Twitter account.
|
|
295
|
+
*/
|
|
296
|
+
twitterAccountUrl?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Hashtag associated with the Twitter post.
|
|
299
|
+
*/
|
|
300
|
+
twitterHashtag?: string;
|
|
301
|
+
/**
|
|
302
|
+
* URL of the associated Twitter post.
|
|
303
|
+
*/
|
|
304
|
+
twitterPostUrl?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Unique identifier of the Twitter user.
|
|
307
|
+
*/
|
|
308
|
+
twitterUserId?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Twitter username of the user.
|
|
311
|
+
*/
|
|
312
|
+
twitterUsername?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Minimum length of the verification text.
|
|
315
|
+
*/
|
|
316
|
+
verificationTextMinimumLength?: number | null;
|
|
317
|
+
/**
|
|
318
|
+
* Multiplier applied to rewards for verified users.
|
|
319
|
+
*/
|
|
320
|
+
verifiedMultiplier?: number | null;
|
|
321
|
+
/**
|
|
322
|
+
* Placeholder text for verification input fields.
|
|
323
|
+
*/
|
|
324
|
+
verifyPlaceHolderText?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Type of wallet associated with the rule.
|
|
327
|
+
*/
|
|
328
|
+
walletType?: 'evm' | 'solana' | 'imx' | 'sui' | 'ton' | null;
|
|
329
|
+
}
|
|
330
|
+
namespace Metadata {
|
|
331
|
+
interface Collection {
|
|
332
|
+
/**
|
|
333
|
+
* Blockchain address of the collection.
|
|
334
|
+
*/
|
|
335
|
+
address?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Multiplier applied to the rewards for this collection.
|
|
338
|
+
*/
|
|
339
|
+
multiplier?: number;
|
|
340
|
+
/**
|
|
341
|
+
* Blockchain network of the collection.
|
|
342
|
+
*/
|
|
343
|
+
network?: 'mainnet' | 'polygon' | 'polygon_mumbai' | 'optimism' | 'arbitrum' | 'binance' | 'bscTestnet' | 'avalanche' | 'avalancheFuji' | 'zksync' | 'fantom' | 'fantomTestnet' | 'base' | 'baseSepolia' | 'skaleNebula' | 'xai' | 'berachainArtio' | 'solana' | 'apechain' | 'flowMainnet' | 'campTestnet' | 'sui' | 'vanar' | 'superseed' | 'superseedSepolia' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Object containing details for the call-to-action.
|
|
347
|
+
*/
|
|
348
|
+
interface Cta {
|
|
349
|
+
/**
|
|
350
|
+
* Link for the call-to-action.
|
|
351
|
+
*/
|
|
352
|
+
href?: string | null;
|
|
353
|
+
/**
|
|
354
|
+
* Label for the call-to-action.
|
|
355
|
+
*/
|
|
356
|
+
label?: string | null;
|
|
357
|
+
}
|
|
358
|
+
interface DiscordServersToJoin {
|
|
359
|
+
/**
|
|
360
|
+
* ID of the Discord server to join.
|
|
361
|
+
*/
|
|
362
|
+
id?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Array of Discord channels to join.
|
|
365
|
+
*/
|
|
366
|
+
channels?: Array<DiscordServersToJoin.Channel>;
|
|
367
|
+
/**
|
|
368
|
+
* Array of roles to assign in the Discord server.
|
|
369
|
+
*/
|
|
370
|
+
roles?: Array<DiscordServersToJoin.Role>;
|
|
371
|
+
}
|
|
372
|
+
namespace DiscordServersToJoin {
|
|
373
|
+
interface Channel {
|
|
374
|
+
/**
|
|
375
|
+
* ID of the Discord channel.
|
|
376
|
+
*/
|
|
377
|
+
id?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Array of emojis used in the channel.
|
|
380
|
+
*/
|
|
381
|
+
emojis?: Array<Channel.Emoji>;
|
|
382
|
+
/**
|
|
383
|
+
* Phrase of text to be present in the discord message
|
|
384
|
+
*/
|
|
385
|
+
text?: string;
|
|
386
|
+
}
|
|
387
|
+
namespace Channel {
|
|
388
|
+
interface Emoji {
|
|
389
|
+
/**
|
|
390
|
+
* ID of the emoji used in the channel.
|
|
391
|
+
*/
|
|
392
|
+
id?: string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
interface Role {
|
|
396
|
+
/**
|
|
397
|
+
* ID of the role in the Discord server.
|
|
398
|
+
*/
|
|
399
|
+
id: string;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
interface DripQuestsToComplete {
|
|
403
|
+
/**
|
|
404
|
+
* ID of the drip quest to complete.
|
|
405
|
+
*/
|
|
406
|
+
id: string;
|
|
407
|
+
}
|
|
408
|
+
interface Range {
|
|
409
|
+
/**
|
|
410
|
+
* Reward amount for this range.
|
|
411
|
+
*/
|
|
412
|
+
amount: number;
|
|
413
|
+
/**
|
|
414
|
+
* End value of the range.
|
|
415
|
+
*/
|
|
416
|
+
endRange: number;
|
|
417
|
+
/**
|
|
418
|
+
* Start value of the range.
|
|
419
|
+
*/
|
|
420
|
+
startRange: number;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Object defining referral requirements.
|
|
424
|
+
*/
|
|
425
|
+
interface ReferralRequirements {
|
|
426
|
+
/**
|
|
427
|
+
* Flag indicating if achieving points is required.
|
|
428
|
+
*/
|
|
429
|
+
achievePoints?: boolean | null;
|
|
430
|
+
/**
|
|
431
|
+
* Flag indicating if completing the profile is required.
|
|
432
|
+
*/
|
|
433
|
+
completeProfile?: boolean | null;
|
|
434
|
+
/**
|
|
435
|
+
* Flag indicating if connecting Discord is required.
|
|
436
|
+
*/
|
|
437
|
+
connectDiscord?: boolean | null;
|
|
438
|
+
/**
|
|
439
|
+
* Flag indicating if connecting email is required.
|
|
440
|
+
*/
|
|
441
|
+
connectEmail?: boolean | null;
|
|
442
|
+
/**
|
|
443
|
+
* Flag indicating if connecting Twitter is required.
|
|
444
|
+
*/
|
|
445
|
+
connectTwitter?: boolean | null;
|
|
446
|
+
points?: ReferralRequirements.Points | null;
|
|
447
|
+
}
|
|
448
|
+
namespace ReferralRequirements {
|
|
449
|
+
interface Points {
|
|
450
|
+
/**
|
|
451
|
+
* Points required for referral.
|
|
452
|
+
*/
|
|
453
|
+
amount?: number | null;
|
|
454
|
+
/**
|
|
455
|
+
* ID of the loyalty currency for referral.
|
|
456
|
+
*/
|
|
457
|
+
loyaltyCurrecyId?: string | null;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Object containing details of the associated smart contract.
|
|
462
|
+
*/
|
|
463
|
+
interface SmartContract {
|
|
464
|
+
/**
|
|
465
|
+
* ABI of the smart contract.
|
|
466
|
+
*/
|
|
467
|
+
abi?: string | null;
|
|
468
|
+
/**
|
|
469
|
+
* Mapping of addresses for the smart contract.
|
|
470
|
+
*/
|
|
471
|
+
addressMapping?: string | null;
|
|
472
|
+
/**
|
|
473
|
+
* Array of bonus details applied to the rule.
|
|
474
|
+
*/
|
|
475
|
+
bonus?: Array<SmartContract.Bonus> | null;
|
|
476
|
+
/**
|
|
477
|
+
* ID of the smart contract.
|
|
478
|
+
*/
|
|
479
|
+
contractId?: string | null;
|
|
480
|
+
/**
|
|
481
|
+
* Criteria to evaluate the smart contract event.
|
|
482
|
+
*/
|
|
483
|
+
criteria?: 'everyEvent' | 'byParameter' | null;
|
|
484
|
+
/**
|
|
485
|
+
* Time range applied to the rule.
|
|
486
|
+
*/
|
|
487
|
+
customRange?: SmartContract.CustomRange | null;
|
|
488
|
+
/**
|
|
489
|
+
* Event emitted by the smart contract.
|
|
490
|
+
*/
|
|
491
|
+
event?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Maximum value allowed for the parameter.
|
|
494
|
+
*/
|
|
495
|
+
max?: number | null;
|
|
496
|
+
/**
|
|
497
|
+
* Array of parameters for the smart contract.
|
|
498
|
+
*/
|
|
499
|
+
params?: Array<SmartContract.Param> | null;
|
|
500
|
+
/**
|
|
501
|
+
* Flag indicating if a bonus is applied.
|
|
502
|
+
*/
|
|
503
|
+
withBonus?: boolean | null;
|
|
504
|
+
/**
|
|
505
|
+
* Flag indicating if a custom range is applied.
|
|
506
|
+
*/
|
|
507
|
+
withCustomRange?: boolean | null;
|
|
508
|
+
/**
|
|
509
|
+
* Flag indicating if a maximum limit is applied.
|
|
510
|
+
*/
|
|
511
|
+
withMax?: boolean | null;
|
|
512
|
+
}
|
|
513
|
+
namespace SmartContract {
|
|
514
|
+
interface Bonus {
|
|
515
|
+
/**
|
|
516
|
+
* Amount of the bonus.
|
|
517
|
+
*/
|
|
518
|
+
amount?: number | null;
|
|
519
|
+
/**
|
|
520
|
+
* Number of times the bonus is applied.
|
|
521
|
+
*/
|
|
522
|
+
count?: number | null;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Time range applied to the rule.
|
|
526
|
+
*/
|
|
527
|
+
interface CustomRange {
|
|
528
|
+
/**
|
|
529
|
+
* End time of the custom range.
|
|
530
|
+
*/
|
|
531
|
+
endsAt?: string | null;
|
|
532
|
+
/**
|
|
533
|
+
* Start time of the custom range.
|
|
534
|
+
*/
|
|
535
|
+
startsAt?: string | null;
|
|
536
|
+
}
|
|
537
|
+
interface Param {
|
|
538
|
+
/**
|
|
539
|
+
* Condition to check for the parameter.
|
|
540
|
+
*/
|
|
541
|
+
condition?: string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Name of the smart contract parameter.
|
|
544
|
+
*/
|
|
545
|
+
name?: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* Value of the parameter.
|
|
548
|
+
*/
|
|
549
|
+
value?: string | null;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
interface SnapshotProposal {
|
|
553
|
+
/**
|
|
554
|
+
* ID of the snapshot proposal.
|
|
555
|
+
*/
|
|
556
|
+
id: string;
|
|
557
|
+
/**
|
|
558
|
+
* Space associated with the snapshot proposal.
|
|
559
|
+
*/
|
|
560
|
+
space: string;
|
|
561
|
+
}
|
|
562
|
+
interface StreakArray {
|
|
563
|
+
/**
|
|
564
|
+
* Reward amount for achieving the streak milestone.
|
|
565
|
+
*/
|
|
566
|
+
streakAmount: number;
|
|
567
|
+
/**
|
|
568
|
+
* Milestone required to achieve the streak.
|
|
569
|
+
*/
|
|
570
|
+
streakMilestone: number;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
export interface LoyaltyListTransactionEntriesResponse {
|
|
578
|
+
data: Array<LoyaltyListTransactionEntriesResponse.Data>;
|
|
579
|
+
hasNextPage: boolean;
|
|
580
|
+
}
|
|
581
|
+
export declare namespace LoyaltyListTransactionEntriesResponse {
|
|
582
|
+
/**
|
|
583
|
+
* Schema for a loyalty transaction entry
|
|
584
|
+
*/
|
|
585
|
+
interface Data {
|
|
586
|
+
/**
|
|
587
|
+
* Unique identifier for the transaction entry
|
|
588
|
+
*/
|
|
589
|
+
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* Amount involved in the transaction
|
|
592
|
+
*/
|
|
593
|
+
amount: number;
|
|
594
|
+
/**
|
|
595
|
+
* Timestamp when the transaction entry was created
|
|
596
|
+
*/
|
|
597
|
+
createdAt: string;
|
|
598
|
+
/**
|
|
599
|
+
* Direction of the transaction entry
|
|
600
|
+
*/
|
|
601
|
+
direction: 'credit' | 'debit';
|
|
602
|
+
/**
|
|
603
|
+
* Unique identifier for the loyalty account
|
|
604
|
+
*/
|
|
605
|
+
loyaltyAccountId: string;
|
|
606
|
+
/**
|
|
607
|
+
* Details of the loyalty transaction
|
|
608
|
+
*/
|
|
609
|
+
loyaltyTransaction: Data.LoyaltyTransaction;
|
|
610
|
+
/**
|
|
611
|
+
* Unique identifier for the organization
|
|
612
|
+
*/
|
|
613
|
+
organizationId: string;
|
|
614
|
+
/**
|
|
615
|
+
* Type of the loyalty transaction
|
|
616
|
+
*/
|
|
617
|
+
type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
618
|
+
/**
|
|
619
|
+
* Timestamp when the transaction entry was last updated
|
|
620
|
+
*/
|
|
621
|
+
updatedAt: string;
|
|
622
|
+
/**
|
|
623
|
+
* Unique identifier for the website
|
|
624
|
+
*/
|
|
625
|
+
websiteId: string;
|
|
626
|
+
/**
|
|
627
|
+
* Optional metadata for the transaction entry
|
|
628
|
+
*/
|
|
629
|
+
metadata?: Record<string, unknown>;
|
|
630
|
+
}
|
|
631
|
+
namespace Data {
|
|
632
|
+
/**
|
|
633
|
+
* Details of the loyalty transaction
|
|
634
|
+
*/
|
|
635
|
+
interface LoyaltyTransaction {
|
|
636
|
+
/**
|
|
637
|
+
* Unique identifier for the loyalty transaction
|
|
638
|
+
*/
|
|
639
|
+
id: string;
|
|
640
|
+
/**
|
|
641
|
+
* Type of the loyalty transaction
|
|
642
|
+
*/
|
|
643
|
+
type: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
644
|
+
/**
|
|
645
|
+
* Details of the loyalty rule associated with the transaction
|
|
646
|
+
*/
|
|
647
|
+
loyaltyRule?: LoyaltyTransaction.LoyaltyRule;
|
|
648
|
+
}
|
|
649
|
+
namespace LoyaltyTransaction {
|
|
650
|
+
/**
|
|
651
|
+
* Details of the loyalty rule associated with the transaction
|
|
652
|
+
*/
|
|
653
|
+
interface LoyaltyRule {
|
|
654
|
+
/**
|
|
655
|
+
* Unique identifier for the loyalty rule
|
|
656
|
+
*/
|
|
657
|
+
id: string;
|
|
658
|
+
/**
|
|
659
|
+
* Type of the loyalty rule
|
|
660
|
+
*/
|
|
661
|
+
type: string;
|
|
662
|
+
/**
|
|
663
|
+
* Description of the loyalty rule
|
|
664
|
+
*/
|
|
665
|
+
description?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Optional metadata for the loyalty rule
|
|
668
|
+
*/
|
|
669
|
+
metadata?: Record<string, unknown>;
|
|
670
|
+
/**
|
|
671
|
+
* Name of the loyalty rule
|
|
672
|
+
*/
|
|
673
|
+
name?: string;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
export interface LoyaltyCreateTransactionParams {
|
|
679
|
+
/**
|
|
680
|
+
* Description of the loyalty transaction
|
|
681
|
+
*/
|
|
682
|
+
description: string;
|
|
683
|
+
/**
|
|
684
|
+
* Array of transaction entries
|
|
685
|
+
*/
|
|
686
|
+
entries: Array<LoyaltyCreateTransactionParams.Entry>;
|
|
687
|
+
/**
|
|
688
|
+
* Unique identifier for the loyalty currency
|
|
689
|
+
*/
|
|
690
|
+
loyaltyCurrencyId?: string;
|
|
691
|
+
}
|
|
692
|
+
export declare namespace LoyaltyCreateTransactionParams {
|
|
693
|
+
interface Entry {
|
|
694
|
+
/**
|
|
695
|
+
* Transaction entry amount.
|
|
696
|
+
*/
|
|
697
|
+
amount: number;
|
|
698
|
+
/**
|
|
699
|
+
* Direction of the transaction entry for this wallet address
|
|
700
|
+
*/
|
|
701
|
+
direction?: 'credit' | 'debit';
|
|
702
|
+
/**
|
|
703
|
+
* Idempotency key for the transaction entry. Creation will fail if already exists
|
|
704
|
+
* for this wallet address.
|
|
705
|
+
*/
|
|
706
|
+
idempotencyKey?: string;
|
|
707
|
+
/**
|
|
708
|
+
* The wallet address of the user
|
|
709
|
+
*/
|
|
710
|
+
walletAddress?: string;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
export interface LoyaltyGetRuleGroupsParams {
|
|
714
|
+
excludeHidden?: string;
|
|
715
|
+
limit?: number;
|
|
716
|
+
organizationId?: string;
|
|
717
|
+
startingAfter?: string;
|
|
718
|
+
websiteId?: string;
|
|
719
|
+
}
|
|
720
|
+
export interface LoyaltyListTransactionEntriesParams {
|
|
721
|
+
/**
|
|
722
|
+
* End date to filter by (exclusive, less than)
|
|
723
|
+
*/
|
|
724
|
+
createdAtEnd?: string;
|
|
725
|
+
/**
|
|
726
|
+
* Start date to filter by (inclusive, greater than or equal to)
|
|
727
|
+
*/
|
|
728
|
+
createdAtStart?: string;
|
|
729
|
+
/**
|
|
730
|
+
* Direction of the transaction entry to filter by
|
|
731
|
+
*/
|
|
732
|
+
direction?: 'credit' | 'debit';
|
|
733
|
+
/**
|
|
734
|
+
* Key to ensure idempotency of the request
|
|
735
|
+
*/
|
|
736
|
+
idempotencyKey?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Maximum number of records to return (max 1000)
|
|
739
|
+
*/
|
|
740
|
+
limit?: number;
|
|
741
|
+
/**
|
|
742
|
+
* Unique identifier for the loyalty rule to filter by
|
|
743
|
+
*/
|
|
744
|
+
loyaltyRuleId?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Unique identifier for the loyalty transaction to filter by
|
|
747
|
+
*/
|
|
748
|
+
loyaltyTransactionId?: string;
|
|
749
|
+
/**
|
|
750
|
+
* Field to order the results by
|
|
751
|
+
*/
|
|
752
|
+
orderBy?: 'createdAt' | 'updatedAt' | 'loyaltyAccountLockVersion';
|
|
753
|
+
/**
|
|
754
|
+
* Unique identifier for the organization to filter by
|
|
755
|
+
*/
|
|
756
|
+
organizationId?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Pagination cursor to start after a specific resource ID
|
|
759
|
+
*/
|
|
760
|
+
startingAfter?: string;
|
|
761
|
+
/**
|
|
762
|
+
* Type of the loyalty transaction to filter by
|
|
763
|
+
*/
|
|
764
|
+
type?: 'auction_bid' | 'direct_mint' | 'loyalty_rule' | 'api_key' | 'order';
|
|
765
|
+
/**
|
|
766
|
+
* When passed in return the list of fulfilled entries for loyalty rules. If a
|
|
767
|
+
* loyalty rule has a fulfilled entry this means the user cannot currently complete
|
|
768
|
+
* the rule. Must be passed in with userId or walletAddress.
|
|
769
|
+
*/
|
|
770
|
+
userCompletedLoyaltyRuleId?: string | Array<string>;
|
|
771
|
+
/**
|
|
772
|
+
* External identifier for the user group controlled by you
|
|
773
|
+
*/
|
|
774
|
+
userGroupExternalIdentifier?: string;
|
|
775
|
+
/**
|
|
776
|
+
* Unique identifier for the user group
|
|
777
|
+
*/
|
|
778
|
+
userGroupId?: string;
|
|
779
|
+
/**
|
|
780
|
+
* User ID or array of User IDs to filter by
|
|
781
|
+
*/
|
|
782
|
+
userId?: string | Array<string>;
|
|
783
|
+
/**
|
|
784
|
+
* Wallet address or array of wallet addresses to filter by
|
|
785
|
+
*/
|
|
786
|
+
walletAddress?: string | Array<string>;
|
|
787
|
+
/**
|
|
788
|
+
* Identifier for the wallet group to filter by
|
|
789
|
+
*/
|
|
790
|
+
walletGroupIdentifier?: string;
|
|
791
|
+
/**
|
|
792
|
+
* Unique identifier for the website to filter by
|
|
793
|
+
*/
|
|
794
|
+
websiteId?: string;
|
|
795
|
+
}
|
|
796
|
+
export declare namespace Loyalty {
|
|
797
|
+
export { type LoyaltyCreateTransactionResponse as LoyaltyCreateTransactionResponse, type LoyaltyGetRuleGroupsResponse as LoyaltyGetRuleGroupsResponse, type LoyaltyListTransactionEntriesResponse as LoyaltyListTransactionEntriesResponse, type LoyaltyCreateTransactionParams as LoyaltyCreateTransactionParams, type LoyaltyGetRuleGroupsParams as LoyaltyGetRuleGroupsParams, type LoyaltyListTransactionEntriesParams as LoyaltyListTransactionEntriesParams, };
|
|
798
|
+
export { Accounts as Accounts, type AccountListResponse as AccountListResponse, type AccountGetRankResponse as AccountGetRankResponse, type AccountListParams as AccountListParams, type AccountGetRankParams as AccountGetRankParams, };
|
|
799
|
+
export { Badges as Badges, type BadgeCreateResponse as BadgeCreateResponse, type BadgeUpdateResponse as BadgeUpdateResponse, type BadgeListResponse as BadgeListResponse, type BadgeDeleteResponse as BadgeDeleteResponse, type BadgeRevokeResponse as BadgeRevokeResponse, type BadgeRewardResponse as BadgeRewardResponse, type BadgeCreateParams as BadgeCreateParams, type BadgeUpdateParams as BadgeUpdateParams, type BadgeListParams as BadgeListParams, type BadgeRevokeParams as BadgeRevokeParams, type BadgeRewardParams as BadgeRewardParams, };
|
|
800
|
+
export { Currencies as Currencies, type CurrencyCreateResponse as CurrencyCreateResponse, type CurrencyListResponse as CurrencyListResponse, type CurrencyCreateParams as CurrencyCreateParams, type CurrencyListParams as CurrencyListParams, };
|
|
801
|
+
export { Multipliers as Multipliers, type MultiplierCreateResponse as MultiplierCreateResponse, type MultiplierUpdateResponse as MultiplierUpdateResponse, type MultiplierListResponse as MultiplierListResponse, type MultiplierDeleteResponse as MultiplierDeleteResponse, type MultiplierDeleteByExternalIDResponse as MultiplierDeleteByExternalIDResponse, type MultiplierCreateParams as MultiplierCreateParams, type MultiplierUpdateParams as MultiplierUpdateParams, type MultiplierListParams as MultiplierListParams, type MultiplierDeleteByExternalIDParams as MultiplierDeleteByExternalIDParams, };
|
|
802
|
+
export { RuleEdits as RuleEdits, type RuleEditListResponse as RuleEditListResponse, type RuleEditRestoreResponse as RuleEditRestoreResponse, type RuleEditListParams as RuleEditListParams, type RuleEditRestoreParams as RuleEditRestoreParams, };
|
|
803
|
+
export { Rules as Rules, 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, };
|
|
804
|
+
export { Questions as Questions, type QuestionCreateResponse as QuestionCreateResponse, type QuestionUpdateResponse as QuestionUpdateResponse, type QuestionListResponse as QuestionListResponse, type QuestionCreateParams as QuestionCreateParams, type QuestionUpdateParams as QuestionUpdateParams, type QuestionListParams as QuestionListParams, };
|
|
805
|
+
export { QuestionsResponses as QuestionsResponses, type QuestionsResponseListResponse as QuestionsResponseListResponse, type QuestionsResponseSubmitResponse as QuestionsResponseSubmitResponse, type QuestionsResponseListParams as QuestionsResponseListParams, type QuestionsResponseSubmitParams as QuestionsResponseSubmitParams, };
|
|
806
|
+
}
|
|
807
|
+
//# sourceMappingURL=loyalty.d.ts.map
|