@snagsolutions/sdk 0.1.0-alpha.11 → 0.1.0-alpha.111
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 +978 -0
- package/README.md +24 -28
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +35 -19
- package/core.js.map +1 -1
- package/core.mjs +36 -20
- package/core.mjs.map +1 -1
- package/index.d.mts +25 -16
- package/index.d.ts +25 -16
- package/index.d.ts.map +1 -1
- package/index.js +20 -10
- package/index.js.map +1 -1
- package/index.mjs +21 -11
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +22 -8
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +12 -4
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +12 -4
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +122 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +2 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/auctions.js +19 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +3 -0
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +44 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +16 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +12 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/index.d.ts +7 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -4
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +62 -15
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +22 -1
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +22 -1
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +876 -77
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +20 -1
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +9 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +11 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +6 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +33 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +28 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +29 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +97 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +29 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +29 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +112 -0
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/questions-responses.js +31 -0
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/questions-responses.mjs +27 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/questions.d.ts +183 -0
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/questions.js +60 -0
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/questions.mjs +56 -0
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +2489 -11
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +16 -2
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +16 -2
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +738 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +52 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +48 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +1735 -282
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +2 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +19 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +3 -0
- package/resources/loyalty/transactions.mjs.map +1 -0
- package/resources/loyalty.d.ts +2 -0
- package/resources/loyalty.d.ts.map +1 -0
- package/resources/loyalty.js +19 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs +3 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/minting.d.ts +95 -0
- package/resources/minting.d.ts.map +1 -0
- package/resources/minting.js +15 -0
- package/resources/minting.js.map +1 -0
- package/resources/minting.mjs +11 -0
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts +3 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js +9 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/referral/index.mjs +4 -0
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +39 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{drip/drip.js → referral/referral.js} +21 -12
- package/resources/referral/referral.js.map +1 -0
- package/resources/referral/referral.mjs +25 -0
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/referral/users.d.ts +83 -0
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/referral/users.js +35 -0
- package/resources/referral/users.js.map +1 -0
- package/resources/referral/users.mjs +31 -0
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts +2 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js +19 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs +3 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +1 -3
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -3
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +109 -9
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +414 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +77 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +78 -5
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/websites/index.mjs +5 -0
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +94 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/websites/website-collections.js +46 -0
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs +42 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts +96 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/websites/website-user-roles.js +45 -0
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs +41 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +223 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/websites/websites.js +63 -0
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +36 -0
- package/resources/websites/websites.mjs.map +1 -0
- package/resources/websites.d.ts +1 -202
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -18
- package/resources/websites.js.map +1 -1
- package/resources/websites.mjs +1 -16
- package/resources/websites.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +56 -20
- package/src/index.ts +96 -24
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +29 -8
- package/src/resources/auctions/auctions.ts +436 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +165 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +3 -0
- package/src/resources/auth.ts +74 -0
- package/src/resources/index.ts +31 -5
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +79 -16
- package/src/resources/loyalty/badges.ts +1055 -83
- package/src/resources/loyalty/currencies.ts +20 -1
- package/src/resources/loyalty/index.ts +53 -9
- package/src/resources/loyalty/loyalty.ts +160 -60
- package/src/resources/loyalty/multipliers.ts +124 -4
- package/src/resources/loyalty/questions-responses.ts +161 -0
- package/src/resources/loyalty/questions.ts +241 -0
- package/src/resources/loyalty/rule-edits.ts +3502 -63
- package/src/resources/loyalty/rule-groups.ts +1149 -0
- package/src/resources/loyalty/rules.ts +2906 -575
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +671 -0
- package/src/resources/loyalty/transactions.ts +3 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/minting.ts +170 -0
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +72 -0
- package/src/resources/referral/users.ts +122 -0
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +21 -9
- package/src/resources/users/metadatas.ts +161 -8
- package/src/resources/users/users.ts +581 -17
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/websites/website-collections.ts +182 -0
- package/src/resources/websites/website-user-roles.ts +130 -0
- package/src/resources/websites/websites.ts +311 -0
- package/src/resources/websites.ts +1 -257
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/auction-bids.d.ts +0 -81
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -30
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -26
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -168
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -17
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -13
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -26
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -16
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -12
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -193
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -28
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -24
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/auction-bids.ts +0 -123
- package/src/resources/drip/drip.ts +0 -25
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -210
- package/src/resources/drip/status.ts +0 -33
- package/src/resources/loyalty/transaction-entries.ts +0 -229
- package/src/resources/users/wallets.ts +0 -271
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as AccountStreaksAPI from "./account-streaks.mjs";
|
|
4
|
+
import { AccountStreaks, } from "./account-streaks.mjs";
|
|
3
5
|
import * as AccountsAPI from "./accounts.mjs";
|
|
4
|
-
import { Accounts } from "./accounts.mjs";
|
|
6
|
+
import { Accounts, } from "./accounts.mjs";
|
|
5
7
|
import * as BadgesAPI from "./badges.mjs";
|
|
6
8
|
import { Badges, } from "./badges.mjs";
|
|
7
9
|
import * as CurrenciesAPI from "./currencies.mjs";
|
|
8
10
|
import { Currencies, } from "./currencies.mjs";
|
|
9
11
|
import * as MultipliersAPI from "./multipliers.mjs";
|
|
10
12
|
import { Multipliers, } from "./multipliers.mjs";
|
|
13
|
+
import * as QuestionsAPI from "./questions.mjs";
|
|
14
|
+
import { Questions, } from "./questions.mjs";
|
|
15
|
+
import * as QuestionsResponsesAPI from "./questions-responses.mjs";
|
|
16
|
+
import { QuestionsResponses, } from "./questions-responses.mjs";
|
|
11
17
|
import * as RuleEditsAPI from "./rule-edits.mjs";
|
|
12
18
|
import { RuleEdits, } from "./rule-edits.mjs";
|
|
19
|
+
import * as RuleGroupsAPI from "./rule-groups.mjs";
|
|
20
|
+
import { RuleGroups, } from "./rule-groups.mjs";
|
|
13
21
|
import * as RulesAPI from "./rules.mjs";
|
|
14
22
|
import { Rules, } from "./rules.mjs";
|
|
15
|
-
import * as
|
|
16
|
-
import {
|
|
23
|
+
import * as TransactionsAPI from "./transactions/transactions.mjs";
|
|
24
|
+
import { Transactions, } from "./transactions/transactions.mjs";
|
|
17
25
|
export class Loyalty extends APIResource {
|
|
18
26
|
constructor() {
|
|
19
27
|
super(...arguments);
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.transactionEntries = new TransactionEntriesAPI.TransactionEntries(this._client);
|
|
23
|
-
this.ruleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
28
|
+
this.ruleGroups = new RuleGroupsAPI.RuleGroups(this._client);
|
|
29
|
+
this.transactions = new TransactionsAPI.Transactions(this._client);
|
|
24
30
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
25
|
-
this.
|
|
31
|
+
this.accountStreaks = new AccountStreaksAPI.AccountStreaks(this._client);
|
|
26
32
|
this.badges = new BadgesAPI.Badges(this._client);
|
|
33
|
+
this.currencies = new CurrenciesAPI.Currencies(this._client);
|
|
34
|
+
this.multipliers = new MultipliersAPI.Multipliers(this._client);
|
|
35
|
+
this.ruleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
36
|
+
this.rules = new RulesAPI.Rules(this._client);
|
|
37
|
+
this.questions = new QuestionsAPI.Questions(this._client);
|
|
38
|
+
this.questionsResponses = new QuestionsResponsesAPI.QuestionsResponses(this._client);
|
|
27
39
|
}
|
|
28
40
|
}
|
|
29
|
-
Loyalty.
|
|
30
|
-
Loyalty.
|
|
31
|
-
Loyalty.TransactionEntries = TransactionEntries;
|
|
32
|
-
Loyalty.RuleEdits = RuleEdits;
|
|
41
|
+
Loyalty.RuleGroups = RuleGroups;
|
|
42
|
+
Loyalty.Transactions = Transactions;
|
|
33
43
|
Loyalty.Accounts = Accounts;
|
|
34
|
-
Loyalty.
|
|
44
|
+
Loyalty.AccountStreaks = AccountStreaks;
|
|
35
45
|
Loyalty.Badges = Badges;
|
|
46
|
+
Loyalty.Currencies = Currencies;
|
|
47
|
+
Loyalty.Multipliers = Multipliers;
|
|
48
|
+
Loyalty.RuleEdits = RuleEdits;
|
|
49
|
+
Loyalty.Rules = Rules;
|
|
50
|
+
Loyalty.Questions = Questions;
|
|
51
|
+
Loyalty.QuestionsResponses = QuestionsResponses;
|
|
36
52
|
//# sourceMappingURL=loyalty.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/loyalty.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,
|
|
1
|
+
{"version":3,"file":"loyalty.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/loyalty.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAGL,cAAc,GACf;OACM,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,SAAS;OACd,EAYL,MAAM,GACP;OACM,KAAK,aAAa;OAClB,EACL,UAAU,GAKX;OACM,KAAK,cAAc;OACnB,EAUL,WAAW,GACZ;OACM,KAAK,YAAY;OACjB,EAOL,SAAS,GACV;OACM,KAAK,qBAAqB;OAC1B,EAKL,kBAAkB,GACnB;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,QAAQ;OACb,EAaL,KAAK,GACN;OACM,KAAK,eAAe;OACpB,EAOL,YAAY,GACb;AAED,MAAM,OAAO,OAAQ,SAAQ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AO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -3,22 +3,61 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class Multipliers extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Create a new loyalty multiplier for a wallet.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
10
|
+
* multiplier: 0.01,
|
|
11
|
+
* walletAddress: 'walletAddress',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
6
14
|
*/
|
|
7
15
|
create(body: MultiplierCreateParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierCreateResponse>;
|
|
8
16
|
/**
|
|
9
17
|
* Update an existing loyalty multiplier.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const multiplier = await client.loyalty.multipliers.update(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
10
25
|
*/
|
|
11
26
|
update(multiplierId: string, body?: MultiplierUpdateParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierUpdateResponse>;
|
|
12
27
|
update(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierUpdateResponse>;
|
|
13
28
|
/**
|
|
14
29
|
* Get Loyalty Multipliers
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const multipliers = await client.loyalty.multipliers.list();
|
|
34
|
+
* ```
|
|
15
35
|
*/
|
|
16
36
|
list(query?: MultiplierListParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
17
37
|
list(options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
18
38
|
/**
|
|
19
39
|
* Delete a loyalty multiplier by its ID.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
44
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
20
47
|
*/
|
|
21
48
|
delete(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete a loyalty multiplier by its external identifier.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response =
|
|
55
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
56
|
+
* externalIdentifier: 'externalIdentifier',
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
deleteByExternalId(body: MultiplierDeleteByExternalIDParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteByExternalIDResponse>;
|
|
22
61
|
}
|
|
23
62
|
/**
|
|
24
63
|
* Schema for loyalty multiplier
|
|
@@ -33,11 +72,18 @@ export interface MultiplierCreateResponse {
|
|
|
33
72
|
organizationId: string;
|
|
34
73
|
title: string | null;
|
|
35
74
|
updatedAt: string;
|
|
75
|
+
/**
|
|
76
|
+
* Schema for a loyalty multiplier user
|
|
77
|
+
*/
|
|
36
78
|
user: MultiplierCreateResponse.User;
|
|
37
79
|
userId: string;
|
|
38
80
|
websiteId: string;
|
|
81
|
+
loyaltyRuleId?: string;
|
|
39
82
|
}
|
|
40
83
|
export declare namespace MultiplierCreateResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Schema for a loyalty multiplier user
|
|
86
|
+
*/
|
|
41
87
|
interface User {
|
|
42
88
|
id: string;
|
|
43
89
|
walletAddress: string;
|
|
@@ -56,11 +102,18 @@ export interface MultiplierUpdateResponse {
|
|
|
56
102
|
organizationId: string;
|
|
57
103
|
title: string | null;
|
|
58
104
|
updatedAt: string;
|
|
105
|
+
/**
|
|
106
|
+
* Schema for a loyalty multiplier user
|
|
107
|
+
*/
|
|
59
108
|
user: MultiplierUpdateResponse.User;
|
|
60
109
|
userId: string;
|
|
61
110
|
websiteId: string;
|
|
111
|
+
loyaltyRuleId?: string;
|
|
62
112
|
}
|
|
63
113
|
export declare namespace MultiplierUpdateResponse {
|
|
114
|
+
/**
|
|
115
|
+
* Schema for a loyalty multiplier user
|
|
116
|
+
*/
|
|
64
117
|
interface User {
|
|
65
118
|
id: string;
|
|
66
119
|
walletAddress: string;
|
|
@@ -84,11 +137,18 @@ export declare namespace MultiplierListResponse {
|
|
|
84
137
|
organizationId: string;
|
|
85
138
|
title: string | null;
|
|
86
139
|
updatedAt: string;
|
|
140
|
+
/**
|
|
141
|
+
* Schema for a loyalty multiplier user
|
|
142
|
+
*/
|
|
87
143
|
user: Data.User;
|
|
88
144
|
userId: string;
|
|
89
145
|
websiteId: string;
|
|
146
|
+
loyaltyRuleId?: string;
|
|
90
147
|
}
|
|
91
148
|
namespace Data {
|
|
149
|
+
/**
|
|
150
|
+
* Schema for a loyalty multiplier user
|
|
151
|
+
*/
|
|
92
152
|
interface User {
|
|
93
153
|
id: string;
|
|
94
154
|
walletAddress: string;
|
|
@@ -98,6 +158,36 @@ export declare namespace MultiplierListResponse {
|
|
|
98
158
|
export interface MultiplierDeleteResponse {
|
|
99
159
|
id: string;
|
|
100
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Schema for loyalty multiplier
|
|
163
|
+
*/
|
|
164
|
+
export interface MultiplierDeleteByExternalIDResponse {
|
|
165
|
+
id: string;
|
|
166
|
+
createdAt: string;
|
|
167
|
+
deletedAt: string | null;
|
|
168
|
+
description: string | null;
|
|
169
|
+
externalIdentifier: string | null;
|
|
170
|
+
multiplier: number;
|
|
171
|
+
organizationId: string;
|
|
172
|
+
title: string | null;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
/**
|
|
175
|
+
* Schema for a loyalty multiplier user
|
|
176
|
+
*/
|
|
177
|
+
user: MultiplierDeleteByExternalIDResponse.User;
|
|
178
|
+
userId: string;
|
|
179
|
+
websiteId: string;
|
|
180
|
+
loyaltyRuleId?: string;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace MultiplierDeleteByExternalIDResponse {
|
|
183
|
+
/**
|
|
184
|
+
* Schema for a loyalty multiplier user
|
|
185
|
+
*/
|
|
186
|
+
interface User {
|
|
187
|
+
id: string;
|
|
188
|
+
walletAddress: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
101
191
|
export interface MultiplierCreateParams {
|
|
102
192
|
multiplier: number;
|
|
103
193
|
walletAddress: string;
|
|
@@ -111,19 +201,22 @@ export interface MultiplierUpdateParams {
|
|
|
111
201
|
title?: string | null;
|
|
112
202
|
}
|
|
113
203
|
export interface MultiplierListParams {
|
|
114
|
-
discordUser?: string;
|
|
115
204
|
externalIdentifier?: string;
|
|
116
|
-
includeDeleted?:
|
|
205
|
+
includeDeleted?: string;
|
|
117
206
|
limit?: number;
|
|
118
207
|
organizationId?: string;
|
|
119
208
|
startingAfter?: string;
|
|
120
|
-
|
|
209
|
+
userGroupExternalIdentifier?: string;
|
|
210
|
+
userGroupId?: string;
|
|
121
211
|
userId?: string | Array<string>;
|
|
122
212
|
walletAddress?: string | Array<string>;
|
|
123
213
|
walletGroupIdentifier?: string;
|
|
124
214
|
websiteId?: string;
|
|
125
215
|
}
|
|
216
|
+
export interface MultiplierDeleteByExternalIDParams {
|
|
217
|
+
externalIdentifier: string;
|
|
218
|
+
}
|
|
126
219
|
export declare namespace Multipliers {
|
|
127
|
-
export { type MultiplierCreateResponse as MultiplierCreateResponse, type MultiplierUpdateResponse as MultiplierUpdateResponse, type MultiplierListResponse as MultiplierListResponse, type MultiplierDeleteResponse as MultiplierDeleteResponse, type MultiplierCreateParams as MultiplierCreateParams, type MultiplierUpdateParams as MultiplierUpdateParams, type MultiplierListParams as MultiplierListParams, };
|
|
220
|
+
export { 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, };
|
|
128
221
|
}
|
|
129
222
|
//# sourceMappingURL=multipliers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"multipliers.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C;;;;;;;;;OASG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAC5C,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAA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WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kCAAkC;IACjD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
|
@@ -7,6 +7,14 @@ const core_1 = require("../../core.js");
|
|
|
7
7
|
class Multipliers extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Create a new loyalty multiplier for a wallet.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
14
|
+
* multiplier: 0.01,
|
|
15
|
+
* walletAddress: 'walletAddress',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
create(body, options) {
|
|
12
20
|
return this._client.post('/api/loyalty/multipliers', { body, ...options });
|
|
@@ -25,10 +33,31 @@ class Multipliers extends resource_1.APIResource {
|
|
|
25
33
|
}
|
|
26
34
|
/**
|
|
27
35
|
* Delete a loyalty multiplier by its ID.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
40
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
28
43
|
*/
|
|
29
44
|
delete(multiplierId, options) {
|
|
30
45
|
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
31
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete a loyalty multiplier by its external identifier.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const response =
|
|
53
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
54
|
+
* externalIdentifier: 'externalIdentifier',
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
deleteByExternalId(body, options) {
|
|
59
|
+
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
60
|
+
}
|
|
32
61
|
}
|
|
33
62
|
exports.Multipliers = Multipliers;
|
|
34
63
|
//# sourceMappingURL=multipliers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.js","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6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kB,CAChB,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAjGD,kCAiGC"}
|
|
@@ -4,6 +4,14 @@ import { isRequestOptions } from "../../core.mjs";
|
|
|
4
4
|
export class Multipliers extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create a new loyalty multiplier for a wallet.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
11
|
+
* multiplier: 0.01,
|
|
12
|
+
* walletAddress: 'walletAddress',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
create(body, options) {
|
|
9
17
|
return this._client.post('/api/loyalty/multipliers', { body, ...options });
|
|
@@ -22,9 +30,30 @@ export class Multipliers extends APIResource {
|
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
32
|
* Delete a loyalty multiplier by its ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
37
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
25
40
|
*/
|
|
26
41
|
delete(multiplierId, options) {
|
|
27
42
|
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
28
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete a loyalty multiplier by its external identifier.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response =
|
|
50
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
51
|
+
* externalIdentifier: 'externalIdentifier',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
deleteByExternalId(body, options) {
|
|
56
|
+
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
57
|
+
}
|
|
29
58
|
}
|
|
30
59
|
//# sourceMappingURL=multipliers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"multipliers.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAkBD,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAYD,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAoB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class QuestionsResponses extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve responses submitted by the authenticated user, optionally filtered by
|
|
6
|
+
* question IDs
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const questionsResponses =
|
|
11
|
+
* await client.loyalty.questionsResponses.list();
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
list(query?: QuestionsResponseListParams, options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseListResponse>;
|
|
15
|
+
list(options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint allows you to submit a response to a question.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response =
|
|
22
|
+
* await client.loyalty.questionsResponses.submit({
|
|
23
|
+
* loyaltyQuestionChoiceId:
|
|
24
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
submit(body: QuestionsResponseSubmitParams, options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseSubmitResponse>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* List of question responses with details
|
|
32
|
+
*/
|
|
33
|
+
export interface QuestionsResponseListResponse {
|
|
34
|
+
responses: Array<QuestionsResponseListResponse.Response>;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace QuestionsResponseListResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Response details including the question and choice information
|
|
39
|
+
*/
|
|
40
|
+
interface Response {
|
|
41
|
+
id: string;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
isCorrect: boolean;
|
|
44
|
+
loyaltyQuestionChoiceId: string;
|
|
45
|
+
loyaltyQuestionId: string;
|
|
46
|
+
question: Response.Question;
|
|
47
|
+
userId: string;
|
|
48
|
+
}
|
|
49
|
+
namespace Response {
|
|
50
|
+
interface Question {
|
|
51
|
+
loyaltyQuestionChoices: Array<Question.LoyaltyQuestionChoice>;
|
|
52
|
+
text: string;
|
|
53
|
+
}
|
|
54
|
+
namespace Question {
|
|
55
|
+
interface LoyaltyQuestionChoice {
|
|
56
|
+
id: string;
|
|
57
|
+
isCorrect: boolean;
|
|
58
|
+
text: string;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Response returned when submitting an answer to a question
|
|
65
|
+
*/
|
|
66
|
+
export interface QuestionsResponseSubmitResponse {
|
|
67
|
+
/**
|
|
68
|
+
* Whether the user had already submitted an answer to this question
|
|
69
|
+
*/
|
|
70
|
+
alreadySubmitted: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the submitted answer was correct
|
|
73
|
+
*/
|
|
74
|
+
isCorrect: boolean;
|
|
75
|
+
response: QuestionsResponseSubmitResponse.Response;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace QuestionsResponseSubmitResponse {
|
|
78
|
+
interface Response {
|
|
79
|
+
/**
|
|
80
|
+
* UUID of the response
|
|
81
|
+
*/
|
|
82
|
+
id: string;
|
|
83
|
+
/**
|
|
84
|
+
* UUID of the selected choice
|
|
85
|
+
*/
|
|
86
|
+
loyaltyQuestionChoiceId: string;
|
|
87
|
+
/**
|
|
88
|
+
* UUID of the question being answered
|
|
89
|
+
*/
|
|
90
|
+
loyaltyQuestionId: string;
|
|
91
|
+
/**
|
|
92
|
+
* UUID of the user who submitted the response
|
|
93
|
+
*/
|
|
94
|
+
userId: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export interface QuestionsResponseListParams {
|
|
98
|
+
/**
|
|
99
|
+
* UUID(s) of the questions to filter responses
|
|
100
|
+
*/
|
|
101
|
+
questionsId?: string | Array<string>;
|
|
102
|
+
}
|
|
103
|
+
export interface QuestionsResponseSubmitParams {
|
|
104
|
+
/**
|
|
105
|
+
* UUID of the selected choice
|
|
106
|
+
*/
|
|
107
|
+
loyaltyQuestionChoiceId: string;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace QuestionsResponses {
|
|
110
|
+
export { type QuestionsResponseListResponse as QuestionsResponseListResponse, type QuestionsResponseSubmitResponse as QuestionsResponseSubmitResponse, type QuestionsResponseListParams as QuestionsResponseListParams, type QuestionsResponseSubmitParams as QuestionsResponseSubmitParams, };
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=questions-responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,C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QAAQ;QACvB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,uBAAuB,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.QuestionsResponses = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class QuestionsResponses extends resource_1.APIResource {
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.list({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/api/loyalty/questions_responses', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This endpoint allows you to submit a response to a question.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response =
|
|
20
|
+
* await client.loyalty.questionsResponses.submit({
|
|
21
|
+
* loyaltyQuestionChoiceId:
|
|
22
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
submit(body, options) {
|
|
27
|
+
return this._client.post('/api/loyalty/questions_responses', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.QuestionsResponses = QuestionsResponses;
|
|
31
|
+
//# sourceMappingURL=questions-responses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.js","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,kBAAmB,SAAQ,sBAAW;IAgBjD,IAAI,CACF,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AA5CD,gDA4CC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 QuestionsResponses extends APIResource {
|
|
5
|
+
list(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.list({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/api/loyalty/questions_responses', { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint allows you to submit a response to a question.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response =
|
|
17
|
+
* await client.loyalty.questionsResponses.submit({
|
|
18
|
+
* loyaltyQuestionChoiceId:
|
|
19
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
submit(body, options) {
|
|
24
|
+
return this._client.post('/api/loyalty/questions_responses', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=questions-responses.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAgBjD,IAAI,CACF,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|