@snagsolutions/sdk 0.1.0-alpha.15 → 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 +23 -48
- package/README.md +12 -14
- 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 +2 -0
- package/core.js.map +1 -1
- package/core.mjs +3 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +27 -6
- package/index.d.ts +27 -6
- package/index.d.ts.map +1 -1
- package/index.js +29 -8
- package/index.js.map +1 -1
- package/index.mjs +29 -8
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- 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/auctions.js +26 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +22 -0
- 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 +8 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +17 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -1
- package/resources/index.mjs.map +1 -1
- package/resources/{api/loyalty → loyalty}/accounts.d.ts +9 -10
- package/resources/loyalty/accounts.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/accounts.js +4 -4
- package/resources/loyalty/accounts.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/accounts.mjs +4 -4
- package/resources/loyalty/accounts.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.d.ts +2 -2
- package/resources/loyalty/badges.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.js +2 -2
- package/resources/loyalty/badges.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/badges.mjs +2 -2
- package/resources/loyalty/badges.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.d.ts +8 -2
- package/resources/loyalty/currencies.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.js +1 -1
- package/resources/loyalty/currencies.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/currencies.mjs +1 -1
- package/resources/loyalty/currencies.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.d.ts +4 -2
- package/resources/loyalty/index.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.js +5 -1
- package/resources/loyalty/index.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/index.mjs +3 -1
- package/resources/loyalty/index.mjs.map +1 -0
- package/resources/loyalty/loyalty.d.ts +46 -0
- package/resources/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/loyalty.js +9 -20
- package/resources/loyalty/loyalty.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/loyalty.mjs +9 -20
- package/resources/loyalty/loyalty.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.d.ts +26 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.js +2 -2
- package/resources/loyalty/multipliers.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/multipliers.mjs +2 -2
- package/resources/loyalty/multipliers.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.d.ts +2 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.js +2 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions-responses.mjs +2 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.d.ts +2 -2
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.js +1 -1
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/questions.mjs +1 -1
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.d.ts +2 -2
- package/resources/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{api/loyalty/loyalty.d.ts → loyalty/rule-groups.d.ts} +37 -285
- 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/{api/loyalty → loyalty}/rules.d.ts +119 -14
- package/resources/loyalty/rules.d.ts.map +1 -0
- package/resources/{api/loyalty → loyalty}/rules.js +2 -2
- package/resources/loyalty/rules.js.map +1 -0
- package/resources/{api/loyalty → loyalty}/rules.mjs +2 -2
- package/resources/loyalty/rules.mjs.map +1 -0
- 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.map +1 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/{api/minting.d.ts → minting.d.ts} +3 -3
- package/resources/minting.d.ts.map +1 -0
- package/resources/{api/minting.js → minting.js} +1 -1
- package/resources/minting.js.map +1 -0
- package/resources/{api/minting.mjs → minting.mjs} +1 -1
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/referral/index.mjs.map +1 -0
- package/resources/{api/referral → referral}/referral.d.ts +2 -2
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{api/referral → referral}/referral.js +2 -2
- package/resources/referral/referral.js.map +1 -0
- package/resources/{api/referral → referral}/referral.mjs +2 -2
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/{api/referral → referral}/users.d.ts +2 -2
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{api/referral → referral}/users.js +1 -1
- package/resources/referral/users.js.map +1 -0
- package/resources/{api/referral → referral}/users.mjs +1 -1
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +3 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/{api/users → users}/metadatas.d.ts +7 -2
- package/resources/users/metadatas.d.ts.map +1 -0
- package/resources/{api/users → users}/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -0
- package/resources/{api/users → users}/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -0
- package/resources/users/users.d.ts +304 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/{api/users → users}/users.js +8 -1
- package/resources/users/users.js.map +1 -0
- package/resources/{api/users → users}/users.mjs +8 -1
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js.map +1 -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/{api → websites}/index.mjs +0 -5
- package/resources/websites/index.mjs.map +1 -0
- package/resources/{api → websites}/website-collections.d.ts +1 -1
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/{api → websites}/websites.d.ts +8 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/websites/websites.js +56 -0
- 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 +2 -0
- package/resources/websites.d.ts.map +1 -0
- package/resources/{api.js → websites.js} +2 -2
- package/resources/websites.js.map +1 -0
- package/resources/{api.mjs → websites.mjs} +2 -2
- package/resources/websites.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 +6 -1
- package/src/index.ts +98 -23
- 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 +27 -8
- package/src/resources/{api/loyalty → loyalty}/accounts.ts +15 -17
- package/src/resources/{api/loyalty → loyalty}/badges.ts +3 -3
- package/src/resources/{api/loyalty → loyalty}/currencies.ts +8 -2
- package/src/resources/{api/loyalty → loyalty}/index.ts +15 -11
- package/src/resources/loyalty/loyalty.ts +225 -0
- package/src/resources/{api/loyalty → loyalty}/multipliers.ts +27 -3
- package/src/resources/{api/loyalty → loyalty}/questions-responses.ts +3 -3
- package/src/resources/{api/loyalty → loyalty}/questions.ts +2 -2
- package/src/resources/{api/loyalty → loyalty}/rule-edits.ts +2 -2
- package/src/resources/{api/loyalty/loyalty.ts → loyalty/rule-groups.ts} +62 -541
- package/src/resources/{api/loyalty → loyalty}/rules.ts +326 -183
- package/src/resources/loyalty/transactions.ts +332 -0
- package/src/resources/{api/minting.ts → minting.ts} +18 -17
- package/src/resources/{api/referral → referral}/referral.ts +3 -3
- package/src/resources/{api/referral → referral}/users.ts +2 -2
- package/src/resources/{api/users → users}/index.ts +2 -0
- package/src/resources/{api/users → users}/metadatas.ts +10 -3
- package/src/resources/users/users.ts +447 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{api → websites}/website-collections.ts +16 -15
- package/src/resources/{api → websites}/websites.ts +40 -0
- package/src/resources/{api.ts → websites.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api/api.d.ts +0 -365
- package/resources/api/api.d.ts.map +0 -1
- package/resources/api/api.js +0 -94
- package/resources/api/api.js.map +0 -1
- package/resources/api/api.mjs +0 -67
- package/resources/api/api.mjs.map +0 -1
- package/resources/api/index.d.ts +0 -9
- package/resources/api/index.d.ts.map +0 -1
- package/resources/api/index.js +0 -21
- package/resources/api/index.js.map +0 -1
- package/resources/api/index.mjs.map +0 -1
- package/resources/api/loyalty/accounts.d.ts.map +0 -1
- package/resources/api/loyalty/accounts.js.map +0 -1
- package/resources/api/loyalty/accounts.mjs.map +0 -1
- package/resources/api/loyalty/badges.d.ts.map +0 -1
- package/resources/api/loyalty/badges.js.map +0 -1
- package/resources/api/loyalty/badges.mjs.map +0 -1
- package/resources/api/loyalty/currencies.d.ts.map +0 -1
- package/resources/api/loyalty/currencies.js.map +0 -1
- package/resources/api/loyalty/currencies.mjs.map +0 -1
- package/resources/api/loyalty/index.d.ts.map +0 -1
- package/resources/api/loyalty/index.js.map +0 -1
- package/resources/api/loyalty/index.mjs.map +0 -1
- package/resources/api/loyalty/loyalty.d.ts.map +0 -1
- package/resources/api/loyalty/loyalty.js.map +0 -1
- package/resources/api/loyalty/loyalty.mjs.map +0 -1
- package/resources/api/loyalty/multipliers.d.ts.map +0 -1
- package/resources/api/loyalty/multipliers.js.map +0 -1
- package/resources/api/loyalty/multipliers.mjs.map +0 -1
- package/resources/api/loyalty/questions-responses.d.ts.map +0 -1
- package/resources/api/loyalty/questions-responses.js.map +0 -1
- package/resources/api/loyalty/questions-responses.mjs.map +0 -1
- package/resources/api/loyalty/questions.d.ts.map +0 -1
- package/resources/api/loyalty/questions.js.map +0 -1
- package/resources/api/loyalty/questions.mjs.map +0 -1
- package/resources/api/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/api/loyalty/rule-edits.js.map +0 -1
- package/resources/api/loyalty/rule-edits.mjs.map +0 -1
- package/resources/api/loyalty/rules.d.ts.map +0 -1
- package/resources/api/loyalty/rules.js.map +0 -1
- package/resources/api/loyalty/rules.mjs.map +0 -1
- package/resources/api/loyalty.d.ts.map +0 -1
- package/resources/api/loyalty.js.map +0 -1
- package/resources/api/loyalty.mjs.map +0 -1
- package/resources/api/minting.d.ts.map +0 -1
- package/resources/api/minting.js.map +0 -1
- package/resources/api/minting.mjs.map +0 -1
- package/resources/api/referral/index.d.ts.map +0 -1
- package/resources/api/referral/index.js.map +0 -1
- package/resources/api/referral/index.mjs.map +0 -1
- package/resources/api/referral/referral.d.ts.map +0 -1
- package/resources/api/referral/referral.js.map +0 -1
- package/resources/api/referral/referral.mjs.map +0 -1
- package/resources/api/referral/users.d.ts.map +0 -1
- package/resources/api/referral/users.js.map +0 -1
- package/resources/api/referral/users.mjs.map +0 -1
- package/resources/api/referral.d.ts.map +0 -1
- package/resources/api/referral.js.map +0 -1
- package/resources/api/referral.mjs.map +0 -1
- package/resources/api/users/index.d.ts +0 -3
- package/resources/api/users/index.d.ts.map +0 -1
- package/resources/api/users/index.js.map +0 -1
- package/resources/api/users/index.mjs.map +0 -1
- package/resources/api/users/metadatas.d.ts.map +0 -1
- package/resources/api/users/metadatas.js.map +0 -1
- package/resources/api/users/metadatas.mjs.map +0 -1
- package/resources/api/users/users.d.ts +0 -133
- package/resources/api/users/users.d.ts.map +0 -1
- package/resources/api/users/users.js.map +0 -1
- package/resources/api/users/users.mjs.map +0 -1
- package/resources/api/users.d.ts.map +0 -1
- package/resources/api/users.js.map +0 -1
- package/resources/api/users.mjs.map +0 -1
- package/resources/api/website-collections.d.ts.map +0 -1
- package/resources/api/website-collections.js.map +0 -1
- package/resources/api/website-collections.mjs.map +0 -1
- package/resources/api/website-user-roles.d.ts.map +0 -1
- package/resources/api/website-user-roles.js.map +0 -1
- package/resources/api/website-user-roles.mjs.map +0 -1
- package/resources/api/websites.d.ts.map +0 -1
- package/resources/api/websites.js +0 -22
- package/resources/api/websites.js.map +0 -1
- package/resources/api/websites.mjs +0 -18
- package/resources/api/websites.mjs.map +0 -1
- package/resources/api.d.ts +0 -2
- package/resources/api.d.ts.map +0 -1
- package/resources/api.js.map +0 -1
- package/resources/api.mjs.map +0 -1
- package/src/resources/api/api.ts +0 -629
- package/src/resources/api/index.ts +0 -51
- package/src/resources/api/users/users.ts +0 -203
- /package/resources/{api/loyalty.d.ts → loyalty.d.ts} +0 -0
- /package/resources/{api/loyalty.js → loyalty.js} +0 -0
- /package/resources/{api/loyalty.mjs → loyalty.mjs} +0 -0
- /package/resources/{api/referral → referral}/index.d.ts +0 -0
- /package/resources/{api/referral → referral}/index.js +0 -0
- /package/resources/{api/referral → referral}/index.mjs +0 -0
- /package/resources/{api/referral.d.ts → referral.d.ts} +0 -0
- /package/resources/{api/referral.js → referral.js} +0 -0
- /package/resources/{api/referral.mjs → referral.mjs} +0 -0
- /package/resources/{api/users → users}/index.js +0 -0
- /package/resources/{api/users → users}/index.mjs +0 -0
- /package/resources/{api/users.d.ts → users.d.ts} +0 -0
- /package/resources/{api/users.js → users.js} +0 -0
- /package/resources/{api/users.mjs → users.mjs} +0 -0
- /package/resources/{api → websites}/website-collections.js +0 -0
- /package/resources/{api → websites}/website-collections.mjs +0 -0
- /package/resources/{api → websites}/website-user-roles.d.ts +0 -0
- /package/resources/{api → websites}/website-user-roles.js +0 -0
- /package/resources/{api → websites}/website-user-roles.mjs +0 -0
- /package/src/resources/{api/loyalty.ts → loyalty.ts} +0 -0
- /package/src/resources/{api/referral → referral}/index.ts +0 -0
- /package/src/resources/{api/referral.ts → referral.ts} +0 -0
- /package/src/resources/{api/users.ts → users.ts} +0 -0
- /package/src/resources/{api → websites}/website-user-roles.ts +0 -0
|
@@ -1,69 +1,20 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import * as Core from "
|
|
3
|
-
|
|
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>;
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class RuleGroups extends APIResource {
|
|
32
4
|
/**
|
|
33
5
|
* Retrieve configured loyalty rule groups
|
|
34
6
|
*/
|
|
35
|
-
getRuleGroups(query?:
|
|
36
|
-
getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<
|
|
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;
|
|
7
|
+
getRuleGroups(query?: RuleGroupGetRuleGroupsParams, options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
8
|
+
getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
50
9
|
}
|
|
51
|
-
export
|
|
52
|
-
|
|
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>;
|
|
10
|
+
export interface RuleGroupGetRuleGroupsResponse {
|
|
11
|
+
data: Array<RuleGroupGetRuleGroupsResponse.Data>;
|
|
64
12
|
hasNextPage: boolean;
|
|
65
13
|
}
|
|
66
|
-
export declare namespace
|
|
14
|
+
export declare namespace RuleGroupGetRuleGroupsResponse {
|
|
15
|
+
/**
|
|
16
|
+
* Schema for a get loyalty rule groups response
|
|
17
|
+
*/
|
|
67
18
|
interface Data {
|
|
68
19
|
id: string;
|
|
69
20
|
isCollapsible: boolean;
|
|
@@ -90,6 +41,7 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
90
41
|
hideInUi: boolean;
|
|
91
42
|
isRequired: boolean;
|
|
92
43
|
loyaltyCurrencyId: string;
|
|
44
|
+
mediaUrl: string | null;
|
|
93
45
|
metadata: LoyaltyRule.Metadata;
|
|
94
46
|
name: string;
|
|
95
47
|
rewardType: 'points' | 'multiplier';
|
|
@@ -122,6 +74,10 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
122
74
|
* Array of collections associated with the rule.
|
|
123
75
|
*/
|
|
124
76
|
collection?: Array<Metadata.Collection>;
|
|
77
|
+
/**
|
|
78
|
+
* Conditions for completing the profile.
|
|
79
|
+
*/
|
|
80
|
+
completeProfileConditions?: Record<string, boolean> | null;
|
|
125
81
|
/**
|
|
126
82
|
* Object containing details for the call-to-action.
|
|
127
83
|
*/
|
|
@@ -150,14 +106,26 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
150
106
|
* Flag indicating whether the verified multiplier is enabled.
|
|
151
107
|
*/
|
|
152
108
|
enableVerifiedMultiplier?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Fill source of the order for the token sale
|
|
111
|
+
*/
|
|
112
|
+
fillSource?: string;
|
|
153
113
|
/**
|
|
154
114
|
* Percentage reward given to a user for their first referral.
|
|
155
115
|
*/
|
|
156
116
|
firstReferralReward?: number | null;
|
|
117
|
+
/**
|
|
118
|
+
* Flag indicating whether the fill source is included.
|
|
119
|
+
*/
|
|
120
|
+
hasFillSource?: boolean;
|
|
157
121
|
/**
|
|
158
122
|
* Indicates if the item has never been sold.
|
|
159
123
|
*/
|
|
160
124
|
hasNeverSold?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Flag indicating whether the order source is included.
|
|
127
|
+
*/
|
|
128
|
+
hasOrderSource?: boolean;
|
|
161
129
|
/**
|
|
162
130
|
* Indicates if the full royalty has been paid for items.
|
|
163
131
|
*/
|
|
@@ -222,6 +190,10 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
222
190
|
* give points for only one token ownership per contract
|
|
223
191
|
*/
|
|
224
192
|
onlyRewardSingleTokenOwnership?: boolean | null;
|
|
193
|
+
/**
|
|
194
|
+
* Order source of the order for the token sale
|
|
195
|
+
*/
|
|
196
|
+
orderSource?: string;
|
|
225
197
|
/**
|
|
226
198
|
* Promotional code associated with the rule.
|
|
227
199
|
*/
|
|
@@ -340,7 +312,7 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
340
312
|
/**
|
|
341
313
|
* Blockchain network of the collection.
|
|
342
314
|
*/
|
|
343
|
-
network?: '
|
|
315
|
+
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';
|
|
344
316
|
}
|
|
345
317
|
/**
|
|
346
318
|
* Object containing details for the call-to-action.
|
|
@@ -574,234 +546,14 @@ export declare namespace LoyaltyGetRuleGroupsResponse {
|
|
|
574
546
|
}
|
|
575
547
|
}
|
|
576
548
|
}
|
|
577
|
-
export interface
|
|
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 {
|
|
549
|
+
export interface RuleGroupGetRuleGroupsParams {
|
|
714
550
|
excludeHidden?: string;
|
|
715
551
|
limit?: number;
|
|
716
552
|
organizationId?: string;
|
|
717
553
|
startingAfter?: string;
|
|
718
554
|
websiteId?: string;
|
|
719
555
|
}
|
|
720
|
-
export
|
|
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, };
|
|
556
|
+
export declare namespace RuleGroups {
|
|
557
|
+
export { type RuleGroupGetRuleGroupsResponse as RuleGroupGetRuleGroupsResponse, type RuleGroupGetRuleGroupsParams as RuleGroupGetRuleGroupsParams, };
|
|
806
558
|
}
|
|
807
|
-
//# sourceMappingURL=
|
|
559
|
+
//# sourceMappingURL=rule-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,aAAa,CACX,KAAK,CAAC,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAClD,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC;CAU9F;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAEjD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;OAEG;IACH,UAAiB,IAAI;QACnB,EAAE,EA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C;yBACvB;qBACF;oBAED,UAAiB,gBAAgB;wBAC/B;;2BAEG;wBACH,EAAE,EAAE,MAAM,CAAC;wBAEX;;2BAEG;wBACH,KAAK,EAAE,MAAM,CAAC;qBACf;oBAED,UAAiB,WAAW;wBAC1B;;2BAEG;wBACH,YAAY,EAAE,MAAM,CAAC;wBAErB;;2BAEG;wBACH,eAAe,EAAE,MAAM,CAAC;qBACzB;iBACF;aACF;SACF;KACF;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RuleGroups = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class RuleGroups extends resource_1.APIResource {
|
|
8
|
+
getRuleGroups(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.getRuleGroups({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.RuleGroups = RuleGroups;
|
|
16
|
+
//# sourceMappingURL=rule-groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.js","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,UAAW,SAAQ,sBAAW;IASzC,aAAa,CACX,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAlBD,gCAkBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
export class RuleGroups extends APIResource {
|
|
5
|
+
getRuleGroups(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.getRuleGroups({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=rule-groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-groups.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/rule-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,UAAW,SAAQ,WAAW;IASzC,aAAa,CACX,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|