@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.140
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 +1170 -0
- package/README.md +23 -27
- 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 +28 -18
- package/core.js.map +1 -1
- package/core.mjs +29 -19
- package/core.mjs.map +1 -1
- package/index.d.mts +20 -11
- package/index.d.ts +20 -11
- package/index.d.ts.map +1 -1
- package/index.js +21 -11
- package/index.js.map +1 -1
- package/index.mjs +22 -12
- package/index.mjs.map +1 -1
- package/package.json +11 -33
- 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 +64 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +25 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +21 -0
- package/resources/assets.mjs.map +1 -0
- 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 +11 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -5
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/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 +200 -0
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +28 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +28 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +471 -33
- 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 +25 -0
- 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 +76 -8
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +30 -1
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +30 -1
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +41 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +11 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +11 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +39 -4
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/questions.js +58 -0
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/questions.mjs +54 -0
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +2584 -10
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +15 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +15 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +762 -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 +1760 -230
- 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/{transaction-entries/transaction-entries.js → transactions/transactions.js} +35 -25
- 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/{assets/minting.d.ts → minting.d.ts} +14 -14
- package/resources/minting.d.ts.map +1 -0
- package/resources/{assets/minting.js → minting.js} +2 -2
- package/resources/minting.js.map +1 -0
- package/resources/{assets/minting.mjs → minting.mjs} +2 -2
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts +3 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/{assets/referral → referral}/index.mjs +1 -1
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +39 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/referral.js +12 -6
- 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 +84 -0
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/users.js +17 -3
- 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 +1 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +43 -7
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +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 +77 -4
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/{assets → websites}/index.mjs +1 -4
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +94 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/{assets → websites}/website-collections.js +23 -2
- 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/{assets → websites}/website-user-roles.js +30 -7
- 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/{assets/assets.js → websites/websites.js} +21 -27
- 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 +47 -19
- package/src/index.ts +94 -23
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +93 -0
- 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 +30 -9
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +258 -1
- package/src/resources/loyalty/badges.ts +567 -39
- package/src/resources/loyalty/currencies.ts +25 -0
- package/src/resources/loyalty/index.ts +53 -14
- package/src/resources/loyalty/loyalty.ts +163 -69
- package/src/resources/loyalty/multipliers.ts +87 -12
- package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +48 -3
- package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +40 -4
- package/src/resources/loyalty/rule-edits.ts +3628 -61
- package/src/resources/loyalty/rule-groups.ts +1184 -0
- package/src/resources/loyalty/rules.ts +2963 -522
- 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 +677 -0
- package/src/resources/loyalty/transactions.ts +3 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/{assets/minting.ts → minting.ts} +49 -31
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +72 -0
- package/src/resources/referral/users.ts +124 -0
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +17 -4
- package/src/resources/users/metadatas.ts +77 -15
- package/src/resources/users/users.ts +579 -9
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{assets → websites}/website-collections.ts +66 -30
- package/src/resources/{assets → websites}/website-user-roles.ts +63 -40
- 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/assets/assets.d.ts +0 -153
- package/resources/assets/assets.d.ts.map +0 -1
- package/resources/assets/assets.js.map +0 -1
- package/resources/assets/assets.mjs +0 -42
- package/resources/assets/assets.mjs.map +0 -1
- package/resources/assets/index.d.ts +0 -7
- package/resources/assets/index.d.ts.map +0 -1
- package/resources/assets/index.js +0 -17
- package/resources/assets/index.js.map +0 -1
- package/resources/assets/index.mjs.map +0 -1
- package/resources/assets/minting.d.ts.map +0 -1
- package/resources/assets/minting.js.map +0 -1
- package/resources/assets/minting.mjs.map +0 -1
- package/resources/assets/referral/index.d.ts +0 -3
- package/resources/assets/referral/index.d.ts.map +0 -1
- package/resources/assets/referral/index.js.map +0 -1
- package/resources/assets/referral/index.mjs.map +0 -1
- package/resources/assets/referral/referral.d.ts +0 -30
- package/resources/assets/referral/referral.d.ts.map +0 -1
- package/resources/assets/referral/referral.js.map +0 -1
- package/resources/assets/referral/referral.mjs +0 -19
- package/resources/assets/referral/referral.mjs.map +0 -1
- package/resources/assets/referral/users.d.ts +0 -57
- package/resources/assets/referral/users.d.ts.map +0 -1
- package/resources/assets/referral/users.js.map +0 -1
- package/resources/assets/referral/users.mjs +0 -17
- package/resources/assets/referral/users.mjs.map +0 -1
- package/resources/assets/users.d.ts +0 -285
- package/resources/assets/users.d.ts.map +0 -1
- package/resources/assets/users.js +0 -34
- package/resources/assets/users.js.map +0 -1
- package/resources/assets/users.mjs +0 -30
- package/resources/assets/users.mjs.map +0 -1
- package/resources/assets/website-collections.d.ts +0 -73
- package/resources/assets/website-collections.d.ts.map +0 -1
- package/resources/assets/website-collections.js.map +0 -1
- package/resources/assets/website-collections.mjs +0 -21
- package/resources/assets/website-collections.mjs.map +0 -1
- package/resources/assets/website-user-roles.d.ts +0 -73
- package/resources/assets/website-user-roles.d.ts.map +0 -1
- package/resources/assets/website-user-roles.js.map +0 -1
- package/resources/assets/website-user-roles.mjs +0 -18
- package/resources/assets/website-user-roles.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -51
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -20
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -16
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js +0 -43
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -4
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -9
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -5
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -4
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -9
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -5
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +0 -191
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js +0 -24
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.mjs +0 -20
- package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/index.d.ts +0 -5
- package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/index.js +0 -13
- package/resources/loyalty/transaction-entries/index.js.map +0 -1
- package/resources/loyalty/transaction-entries/index.mjs +0 -6
- package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions.js +0 -27
- package/resources/loyalty/transaction-entries/questions.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions.mjs +0 -23
- package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -4
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -9
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -5
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/assets/assets.ts +0 -294
- package/src/resources/assets/index.ts +0 -38
- package/src/resources/assets/referral/index.ts +0 -14
- package/src/resources/assets/referral/referral.ts +0 -74
- package/src/resources/assets/referral/users.ts +0 -99
- package/src/resources/assets/users.ts +0 -415
- package/src/resources/auction-bids.ts +0 -77
- package/src/resources/drip/drip.ts +0 -21
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -5
- package/src/resources/drip/status.ts +0 -5
- package/src/resources/loyalty/transaction-entries/accounts.ts +0 -251
- package/src/resources/loyalty/transaction-entries/index.ts +0 -34
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{assets/referral → referral}/index.js +0 -0
|
@@ -6,6 +6,17 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class Currencies extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Create a loyalty currency
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const currency = await client.loyalty.currencies.create({
|
|
13
|
+
* decimals: 2,
|
|
14
|
+
* name: 'Loyalty Points',
|
|
15
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
16
|
+
* symbol: 'LP',
|
|
17
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174002',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
9
20
|
*/
|
|
10
21
|
create(body: CurrencyCreateParams, options?: Core.RequestOptions): Core.APIPromise<CurrencyCreateResponse> {
|
|
11
22
|
return this._client.post('/api/loyalty/currencies', { body, ...options });
|
|
@@ -13,12 +24,23 @@ export class Currencies extends APIResource {
|
|
|
13
24
|
|
|
14
25
|
/**
|
|
15
26
|
* Get loyalty currencies
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const currencies = await client.loyalty.currencies.list({
|
|
31
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
32
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174002',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
16
35
|
*/
|
|
17
36
|
list(query: CurrencyListParams, options?: Core.RequestOptions): Core.APIPromise<CurrencyListResponse> {
|
|
18
37
|
return this._client.get('/api/loyalty/currencies', { query, ...options });
|
|
19
38
|
}
|
|
20
39
|
}
|
|
21
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Schema for a loyalty currency
|
|
43
|
+
*/
|
|
22
44
|
export interface CurrencyCreateResponse {
|
|
23
45
|
/**
|
|
24
46
|
* Unique identifier for the loyalty currency
|
|
@@ -118,6 +140,9 @@ export interface CurrencyListResponse {
|
|
|
118
140
|
}
|
|
119
141
|
|
|
120
142
|
export namespace CurrencyListResponse {
|
|
143
|
+
/**
|
|
144
|
+
* Schema for a loyalty currency
|
|
145
|
+
*/
|
|
121
146
|
export interface Data {
|
|
122
147
|
/**
|
|
123
148
|
* Unique identifier for the loyalty currency
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
AccountStreaks,
|
|
5
|
+
type AccountStreakGetStreaksResponse,
|
|
6
|
+
type AccountStreakGetStreaksParams,
|
|
7
|
+
} from './account-streaks';
|
|
8
|
+
export {
|
|
9
|
+
Accounts,
|
|
10
|
+
type AccountListResponse,
|
|
11
|
+
type AccountRetrieveRankResponse,
|
|
12
|
+
type AccountListParams,
|
|
13
|
+
type AccountRetrieveRankParams,
|
|
14
|
+
} from './accounts';
|
|
4
15
|
export {
|
|
5
16
|
Badges,
|
|
6
17
|
type BadgeCreateResponse,
|
|
@@ -29,18 +40,45 @@ export {
|
|
|
29
40
|
type MultiplierUpdateResponse,
|
|
30
41
|
type MultiplierListResponse,
|
|
31
42
|
type MultiplierDeleteResponse,
|
|
43
|
+
type MultiplierDeleteByExternalIDResponse,
|
|
32
44
|
type MultiplierCreateParams,
|
|
33
45
|
type MultiplierUpdateParams,
|
|
34
46
|
type MultiplierListParams,
|
|
35
|
-
type
|
|
47
|
+
type MultiplierDeleteByExternalIDParams,
|
|
36
48
|
} from './multipliers';
|
|
49
|
+
export {
|
|
50
|
+
Questions,
|
|
51
|
+
type QuestionCreateResponse,
|
|
52
|
+
type QuestionUpdateResponse,
|
|
53
|
+
type QuestionListResponse,
|
|
54
|
+
type QuestionCreateParams,
|
|
55
|
+
type QuestionUpdateParams,
|
|
56
|
+
type QuestionListParams,
|
|
57
|
+
} from './questions';
|
|
58
|
+
export {
|
|
59
|
+
QuestionsResponses,
|
|
60
|
+
type QuestionsResponseListResponse,
|
|
61
|
+
type QuestionsResponseSubmitResponse,
|
|
62
|
+
type QuestionsResponseListParams,
|
|
63
|
+
type QuestionsResponseSubmitParams,
|
|
64
|
+
} from './questions-responses';
|
|
37
65
|
export {
|
|
38
66
|
RuleEdits,
|
|
39
|
-
type
|
|
67
|
+
type RuleEditListResponse,
|
|
40
68
|
type RuleEditRestoreResponse,
|
|
41
|
-
type
|
|
69
|
+
type RuleEditListParams,
|
|
42
70
|
type RuleEditRestoreParams,
|
|
43
71
|
} from './rule-edits';
|
|
72
|
+
export {
|
|
73
|
+
RuleGroups,
|
|
74
|
+
type RuleGroupCreateRuleGroupResponse,
|
|
75
|
+
type RuleGroupDeleteRuleGroupResponse,
|
|
76
|
+
type RuleGroupGetRuleGroupsResponse,
|
|
77
|
+
type RuleGroupUpdateRuleGroupResponse,
|
|
78
|
+
type RuleGroupCreateRuleGroupParams,
|
|
79
|
+
type RuleGroupGetRuleGroupsParams,
|
|
80
|
+
type RuleGroupUpdateRuleGroupParams,
|
|
81
|
+
} from './rule-groups';
|
|
44
82
|
export {
|
|
45
83
|
Rules,
|
|
46
84
|
type RuleCreateResponse,
|
|
@@ -48,19 +86,20 @@ export {
|
|
|
48
86
|
type RuleListResponse,
|
|
49
87
|
type RuleDeleteResponse,
|
|
50
88
|
type RuleCompleteResponse,
|
|
51
|
-
type
|
|
89
|
+
type RuleGetStatusResponse,
|
|
52
90
|
type RuleCreateParams,
|
|
53
91
|
type RuleUpdateParams,
|
|
54
92
|
type RuleListParams,
|
|
93
|
+
type RuleDeleteParams,
|
|
55
94
|
type RuleCompleteParams,
|
|
56
|
-
type
|
|
95
|
+
type RuleGetStatusParams,
|
|
57
96
|
} from './rules';
|
|
58
97
|
export {
|
|
59
|
-
|
|
60
|
-
type
|
|
61
|
-
type
|
|
62
|
-
type
|
|
63
|
-
type
|
|
64
|
-
type
|
|
65
|
-
type
|
|
66
|
-
} from './
|
|
98
|
+
Transactions,
|
|
99
|
+
type TransactionCreateTransactionResponse,
|
|
100
|
+
type TransactionGetTransactionEntriesResponse,
|
|
101
|
+
type TransactionListRuleChainsResponse,
|
|
102
|
+
type TransactionCreateTransactionParams,
|
|
103
|
+
type TransactionGetTransactionEntriesParams,
|
|
104
|
+
type TransactionListRuleChainsParams,
|
|
105
|
+
} from './transactions/index';
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as AccountStreaksAPI from './account-streaks';
|
|
5
|
+
import {
|
|
6
|
+
AccountStreakGetStreaksParams,
|
|
7
|
+
AccountStreakGetStreaksResponse,
|
|
8
|
+
AccountStreaks,
|
|
9
|
+
} from './account-streaks';
|
|
4
10
|
import * as AccountsAPI from './accounts';
|
|
5
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
AccountListParams,
|
|
13
|
+
AccountListResponse,
|
|
14
|
+
AccountRetrieveRankParams,
|
|
15
|
+
AccountRetrieveRankResponse,
|
|
16
|
+
Accounts,
|
|
17
|
+
} from './accounts';
|
|
6
18
|
import * as BadgesAPI from './badges';
|
|
7
19
|
import {
|
|
8
20
|
BadgeCreateParams,
|
|
@@ -30,7 +42,8 @@ import * as MultipliersAPI from './multipliers';
|
|
|
30
42
|
import {
|
|
31
43
|
MultiplierCreateParams,
|
|
32
44
|
MultiplierCreateResponse,
|
|
33
|
-
|
|
45
|
+
MultiplierDeleteByExternalIDParams,
|
|
46
|
+
MultiplierDeleteByExternalIDResponse,
|
|
34
47
|
MultiplierDeleteResponse,
|
|
35
48
|
MultiplierListParams,
|
|
36
49
|
MultiplierListResponse,
|
|
@@ -38,114 +51,132 @@ import {
|
|
|
38
51
|
MultiplierUpdateResponse,
|
|
39
52
|
Multipliers,
|
|
40
53
|
} from './multipliers';
|
|
54
|
+
import * as QuestionsAPI from './questions';
|
|
55
|
+
import {
|
|
56
|
+
QuestionCreateParams,
|
|
57
|
+
QuestionCreateResponse,
|
|
58
|
+
QuestionListParams,
|
|
59
|
+
QuestionListResponse,
|
|
60
|
+
QuestionUpdateParams,
|
|
61
|
+
QuestionUpdateResponse,
|
|
62
|
+
Questions,
|
|
63
|
+
} from './questions';
|
|
64
|
+
import * as QuestionsResponsesAPI from './questions-responses';
|
|
65
|
+
import {
|
|
66
|
+
QuestionsResponseListParams,
|
|
67
|
+
QuestionsResponseListResponse,
|
|
68
|
+
QuestionsResponseSubmitParams,
|
|
69
|
+
QuestionsResponseSubmitResponse,
|
|
70
|
+
QuestionsResponses,
|
|
71
|
+
} from './questions-responses';
|
|
41
72
|
import * as RuleEditsAPI from './rule-edits';
|
|
42
73
|
import {
|
|
74
|
+
RuleEditListParams,
|
|
75
|
+
RuleEditListResponse,
|
|
43
76
|
RuleEditRestoreParams,
|
|
44
77
|
RuleEditRestoreResponse,
|
|
45
|
-
RuleEditRetrieveParams,
|
|
46
|
-
RuleEditRetrieveResponse,
|
|
47
78
|
RuleEdits,
|
|
48
79
|
} from './rule-edits';
|
|
80
|
+
import * as RuleGroupsAPI from './rule-groups';
|
|
81
|
+
import {
|
|
82
|
+
RuleGroupCreateRuleGroupParams,
|
|
83
|
+
RuleGroupCreateRuleGroupResponse,
|
|
84
|
+
RuleGroupDeleteRuleGroupResponse,
|
|
85
|
+
RuleGroupGetRuleGroupsParams,
|
|
86
|
+
RuleGroupGetRuleGroupsResponse,
|
|
87
|
+
RuleGroupUpdateRuleGroupParams,
|
|
88
|
+
RuleGroupUpdateRuleGroupResponse,
|
|
89
|
+
RuleGroups,
|
|
90
|
+
} from './rule-groups';
|
|
49
91
|
import * as RulesAPI from './rules';
|
|
50
92
|
import {
|
|
51
93
|
RuleCompleteParams,
|
|
52
94
|
RuleCompleteResponse,
|
|
53
95
|
RuleCreateParams,
|
|
54
96
|
RuleCreateResponse,
|
|
97
|
+
RuleDeleteParams,
|
|
55
98
|
RuleDeleteResponse,
|
|
99
|
+
RuleGetStatusParams,
|
|
100
|
+
RuleGetStatusResponse,
|
|
56
101
|
RuleListParams,
|
|
57
102
|
RuleListResponse,
|
|
58
|
-
RuleStatusParams,
|
|
59
|
-
RuleStatusResponse,
|
|
60
103
|
RuleUpdateParams,
|
|
61
104
|
RuleUpdateResponse,
|
|
62
105
|
Rules,
|
|
63
106
|
} from './rules';
|
|
64
|
-
import * as
|
|
107
|
+
import * as TransactionsAPI from './transactions/transactions';
|
|
65
108
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} from './
|
|
109
|
+
TransactionCreateTransactionParams,
|
|
110
|
+
TransactionCreateTransactionResponse,
|
|
111
|
+
TransactionGetTransactionEntriesParams,
|
|
112
|
+
TransactionGetTransactionEntriesResponse,
|
|
113
|
+
TransactionListRuleChainsParams,
|
|
114
|
+
TransactionListRuleChainsResponse,
|
|
115
|
+
Transactions,
|
|
116
|
+
} from './transactions/transactions';
|
|
74
117
|
|
|
75
118
|
export class Loyalty extends APIResource {
|
|
76
|
-
|
|
119
|
+
ruleGroups: RuleGroupsAPI.RuleGroups = new RuleGroupsAPI.RuleGroups(this._client);
|
|
120
|
+
transactions: TransactionsAPI.Transactions = new TransactionsAPI.Transactions(this._client);
|
|
121
|
+
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
122
|
+
accountStreaks: AccountStreaksAPI.AccountStreaks = new AccountStreaksAPI.AccountStreaks(this._client);
|
|
123
|
+
badges: BadgesAPI.Badges = new BadgesAPI.Badges(this._client);
|
|
77
124
|
currencies: CurrenciesAPI.Currencies = new CurrenciesAPI.Currencies(this._client);
|
|
78
|
-
|
|
125
|
+
multipliers: MultipliersAPI.Multipliers = new MultipliersAPI.Multipliers(this._client);
|
|
126
|
+
ruleEdits: RuleEditsAPI.RuleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
127
|
+
rules: RulesAPI.Rules = new RulesAPI.Rules(this._client);
|
|
128
|
+
questions: QuestionsAPI.Questions = new QuestionsAPI.Questions(this._client);
|
|
129
|
+
questionsResponses: QuestionsResponsesAPI.QuestionsResponses = new QuestionsResponsesAPI.QuestionsResponses(
|
|
79
130
|
this._client,
|
|
80
131
|
);
|
|
81
|
-
ruleEdits: RuleEditsAPI.RuleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
82
|
-
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
83
|
-
multipliers: MultipliersAPI.Multipliers = new MultipliersAPI.Multipliers(this._client);
|
|
84
|
-
badges: BadgesAPI.Badges = new BadgesAPI.Badges(this._client);
|
|
85
132
|
}
|
|
86
133
|
|
|
87
|
-
Loyalty.
|
|
88
|
-
Loyalty.
|
|
89
|
-
Loyalty.TransactionEntries = TransactionEntries;
|
|
90
|
-
Loyalty.RuleEdits = RuleEdits;
|
|
134
|
+
Loyalty.RuleGroups = RuleGroups;
|
|
135
|
+
Loyalty.Transactions = Transactions;
|
|
91
136
|
Loyalty.Accounts = Accounts;
|
|
92
|
-
Loyalty.
|
|
137
|
+
Loyalty.AccountStreaks = AccountStreaks;
|
|
93
138
|
Loyalty.Badges = Badges;
|
|
139
|
+
Loyalty.Currencies = Currencies;
|
|
140
|
+
Loyalty.Multipliers = Multipliers;
|
|
141
|
+
Loyalty.RuleEdits = RuleEdits;
|
|
142
|
+
Loyalty.Rules = Rules;
|
|
143
|
+
Loyalty.Questions = Questions;
|
|
144
|
+
Loyalty.QuestionsResponses = QuestionsResponses;
|
|
94
145
|
|
|
95
146
|
export declare namespace Loyalty {
|
|
96
147
|
export {
|
|
97
|
-
|
|
98
|
-
type
|
|
99
|
-
type
|
|
100
|
-
type
|
|
101
|
-
type
|
|
102
|
-
type
|
|
103
|
-
type
|
|
104
|
-
type
|
|
105
|
-
type RuleUpdateParams as RuleUpdateParams,
|
|
106
|
-
type RuleListParams as RuleListParams,
|
|
107
|
-
type RuleCompleteParams as RuleCompleteParams,
|
|
108
|
-
type RuleStatusParams as RuleStatusParams,
|
|
148
|
+
RuleGroups as RuleGroups,
|
|
149
|
+
type RuleGroupCreateRuleGroupResponse as RuleGroupCreateRuleGroupResponse,
|
|
150
|
+
type RuleGroupDeleteRuleGroupResponse as RuleGroupDeleteRuleGroupResponse,
|
|
151
|
+
type RuleGroupGetRuleGroupsResponse as RuleGroupGetRuleGroupsResponse,
|
|
152
|
+
type RuleGroupUpdateRuleGroupResponse as RuleGroupUpdateRuleGroupResponse,
|
|
153
|
+
type RuleGroupCreateRuleGroupParams as RuleGroupCreateRuleGroupParams,
|
|
154
|
+
type RuleGroupGetRuleGroupsParams as RuleGroupGetRuleGroupsParams,
|
|
155
|
+
type RuleGroupUpdateRuleGroupParams as RuleGroupUpdateRuleGroupParams,
|
|
109
156
|
};
|
|
110
157
|
|
|
111
158
|
export {
|
|
112
|
-
|
|
113
|
-
type
|
|
114
|
-
type
|
|
115
|
-
type
|
|
116
|
-
type
|
|
159
|
+
Transactions as Transactions,
|
|
160
|
+
type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
|
|
161
|
+
type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
|
|
162
|
+
type TransactionListRuleChainsResponse as TransactionListRuleChainsResponse,
|
|
163
|
+
type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
|
|
164
|
+
type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
|
|
165
|
+
type TransactionListRuleChainsParams as TransactionListRuleChainsParams,
|
|
117
166
|
};
|
|
118
167
|
|
|
119
168
|
export {
|
|
120
|
-
|
|
121
|
-
type
|
|
122
|
-
type
|
|
123
|
-
type
|
|
124
|
-
type
|
|
125
|
-
type TransactionEntryCreateTransactionParams as TransactionEntryCreateTransactionParams,
|
|
126
|
-
type TransactionEntryListRuleGroupsParams as TransactionEntryListRuleGroupsParams,
|
|
169
|
+
Accounts as Accounts,
|
|
170
|
+
type AccountListResponse as AccountListResponse,
|
|
171
|
+
type AccountRetrieveRankResponse as AccountRetrieveRankResponse,
|
|
172
|
+
type AccountListParams as AccountListParams,
|
|
173
|
+
type AccountRetrieveRankParams as AccountRetrieveRankParams,
|
|
127
174
|
};
|
|
128
175
|
|
|
129
176
|
export {
|
|
130
|
-
|
|
131
|
-
type
|
|
132
|
-
type
|
|
133
|
-
type RuleEditRetrieveParams as RuleEditRetrieveParams,
|
|
134
|
-
type RuleEditRestoreParams as RuleEditRestoreParams,
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export { Accounts as Accounts };
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
Multipliers as Multipliers,
|
|
141
|
-
type MultiplierCreateResponse as MultiplierCreateResponse,
|
|
142
|
-
type MultiplierUpdateResponse as MultiplierUpdateResponse,
|
|
143
|
-
type MultiplierListResponse as MultiplierListResponse,
|
|
144
|
-
type MultiplierDeleteResponse as MultiplierDeleteResponse,
|
|
145
|
-
type MultiplierCreateParams as MultiplierCreateParams,
|
|
146
|
-
type MultiplierUpdateParams as MultiplierUpdateParams,
|
|
147
|
-
type MultiplierListParams as MultiplierListParams,
|
|
148
|
-
type MultiplierDeleteParams as MultiplierDeleteParams,
|
|
177
|
+
AccountStreaks as AccountStreaks,
|
|
178
|
+
type AccountStreakGetStreaksResponse as AccountStreakGetStreaksResponse,
|
|
179
|
+
type AccountStreakGetStreaksParams as AccountStreakGetStreaksParams,
|
|
149
180
|
};
|
|
150
181
|
|
|
151
182
|
export {
|
|
@@ -162,4 +193,67 @@ export declare namespace Loyalty {
|
|
|
162
193
|
type BadgeRevokeParams as BadgeRevokeParams,
|
|
163
194
|
type BadgeRewardParams as BadgeRewardParams,
|
|
164
195
|
};
|
|
196
|
+
|
|
197
|
+
export {
|
|
198
|
+
Currencies as Currencies,
|
|
199
|
+
type CurrencyCreateResponse as CurrencyCreateResponse,
|
|
200
|
+
type CurrencyListResponse as CurrencyListResponse,
|
|
201
|
+
type CurrencyCreateParams as CurrencyCreateParams,
|
|
202
|
+
type CurrencyListParams as CurrencyListParams,
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
Multipliers as Multipliers,
|
|
207
|
+
type MultiplierCreateResponse as MultiplierCreateResponse,
|
|
208
|
+
type MultiplierUpdateResponse as MultiplierUpdateResponse,
|
|
209
|
+
type MultiplierListResponse as MultiplierListResponse,
|
|
210
|
+
type MultiplierDeleteResponse as MultiplierDeleteResponse,
|
|
211
|
+
type MultiplierDeleteByExternalIDResponse as MultiplierDeleteByExternalIDResponse,
|
|
212
|
+
type MultiplierCreateParams as MultiplierCreateParams,
|
|
213
|
+
type MultiplierUpdateParams as MultiplierUpdateParams,
|
|
214
|
+
type MultiplierListParams as MultiplierListParams,
|
|
215
|
+
type MultiplierDeleteByExternalIDParams as MultiplierDeleteByExternalIDParams,
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export {
|
|
219
|
+
RuleEdits as RuleEdits,
|
|
220
|
+
type RuleEditListResponse as RuleEditListResponse,
|
|
221
|
+
type RuleEditRestoreResponse as RuleEditRestoreResponse,
|
|
222
|
+
type RuleEditListParams as RuleEditListParams,
|
|
223
|
+
type RuleEditRestoreParams as RuleEditRestoreParams,
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export {
|
|
227
|
+
Rules as Rules,
|
|
228
|
+
type RuleCreateResponse as RuleCreateResponse,
|
|
229
|
+
type RuleUpdateResponse as RuleUpdateResponse,
|
|
230
|
+
type RuleListResponse as RuleListResponse,
|
|
231
|
+
type RuleDeleteResponse as RuleDeleteResponse,
|
|
232
|
+
type RuleCompleteResponse as RuleCompleteResponse,
|
|
233
|
+
type RuleGetStatusResponse as RuleGetStatusResponse,
|
|
234
|
+
type RuleCreateParams as RuleCreateParams,
|
|
235
|
+
type RuleUpdateParams as RuleUpdateParams,
|
|
236
|
+
type RuleListParams as RuleListParams,
|
|
237
|
+
type RuleDeleteParams as RuleDeleteParams,
|
|
238
|
+
type RuleCompleteParams as RuleCompleteParams,
|
|
239
|
+
type RuleGetStatusParams as RuleGetStatusParams,
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export {
|
|
243
|
+
Questions as Questions,
|
|
244
|
+
type QuestionCreateResponse as QuestionCreateResponse,
|
|
245
|
+
type QuestionUpdateResponse as QuestionUpdateResponse,
|
|
246
|
+
type QuestionListResponse as QuestionListResponse,
|
|
247
|
+
type QuestionCreateParams as QuestionCreateParams,
|
|
248
|
+
type QuestionUpdateParams as QuestionUpdateParams,
|
|
249
|
+
type QuestionListParams as QuestionListParams,
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export {
|
|
253
|
+
QuestionsResponses as QuestionsResponses,
|
|
254
|
+
type QuestionsResponseListResponse as QuestionsResponseListResponse,
|
|
255
|
+
type QuestionsResponseSubmitResponse as QuestionsResponseSubmitResponse,
|
|
256
|
+
type QuestionsResponseListParams as QuestionsResponseListParams,
|
|
257
|
+
type QuestionsResponseSubmitParams as QuestionsResponseSubmitParams,
|
|
258
|
+
};
|
|
165
259
|
}
|
|
@@ -7,6 +7,14 @@ import * as Core from '../../core';
|
|
|
7
7
|
export class Multipliers extends 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(
|
|
12
20
|
body: MultiplierCreateParams,
|
|
@@ -17,6 +25,13 @@ export class Multipliers extends APIResource {
|
|
|
17
25
|
|
|
18
26
|
/**
|
|
19
27
|
* Update an existing loyalty multiplier.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const multiplier = await client.loyalty.multipliers.update(
|
|
32
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
20
35
|
*/
|
|
21
36
|
update(
|
|
22
37
|
multiplierId: string,
|
|
@@ -37,6 +52,11 @@ export class Multipliers extends APIResource {
|
|
|
37
52
|
|
|
38
53
|
/**
|
|
39
54
|
* Get Loyalty Multipliers
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const multipliers = await client.loyalty.multipliers.list();
|
|
59
|
+
* ```
|
|
40
60
|
*/
|
|
41
61
|
list(query?: MultiplierListParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
42
62
|
list(options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
@@ -50,13 +70,35 @@ export class Multipliers extends APIResource {
|
|
|
50
70
|
return this._client.get('/api/loyalty/multipliers', { query, ...options });
|
|
51
71
|
}
|
|
52
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Delete a loyalty multiplier by its ID.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
79
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
delete(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteResponse> {
|
|
84
|
+
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
85
|
+
}
|
|
86
|
+
|
|
53
87
|
/**
|
|
54
88
|
* Delete a loyalty multiplier by its external identifier.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response =
|
|
93
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
94
|
+
* externalIdentifier: 'externalIdentifier',
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
55
97
|
*/
|
|
56
|
-
|
|
57
|
-
body:
|
|
98
|
+
deleteByExternalId(
|
|
99
|
+
body: MultiplierDeleteByExternalIDParams,
|
|
58
100
|
options?: Core.RequestOptions,
|
|
59
|
-
): Core.APIPromise<
|
|
101
|
+
): Core.APIPromise<MultiplierDeleteByExternalIDResponse> {
|
|
60
102
|
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
61
103
|
}
|
|
62
104
|
}
|
|
@@ -83,14 +125,22 @@ export interface MultiplierCreateResponse {
|
|
|
83
125
|
|
|
84
126
|
updatedAt: string;
|
|
85
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Schema for a loyalty multiplier user
|
|
130
|
+
*/
|
|
86
131
|
user: MultiplierCreateResponse.User;
|
|
87
132
|
|
|
88
133
|
userId: string;
|
|
89
134
|
|
|
90
135
|
websiteId: string;
|
|
136
|
+
|
|
137
|
+
loyaltyRuleId?: string;
|
|
91
138
|
}
|
|
92
139
|
|
|
93
140
|
export namespace MultiplierCreateResponse {
|
|
141
|
+
/**
|
|
142
|
+
* Schema for a loyalty multiplier user
|
|
143
|
+
*/
|
|
94
144
|
export interface User {
|
|
95
145
|
id: string;
|
|
96
146
|
|
|
@@ -120,14 +170,22 @@ export interface MultiplierUpdateResponse {
|
|
|
120
170
|
|
|
121
171
|
updatedAt: string;
|
|
122
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Schema for a loyalty multiplier user
|
|
175
|
+
*/
|
|
123
176
|
user: MultiplierUpdateResponse.User;
|
|
124
177
|
|
|
125
178
|
userId: string;
|
|
126
179
|
|
|
127
180
|
websiteId: string;
|
|
181
|
+
|
|
182
|
+
loyaltyRuleId?: string;
|
|
128
183
|
}
|
|
129
184
|
|
|
130
185
|
export namespace MultiplierUpdateResponse {
|
|
186
|
+
/**
|
|
187
|
+
* Schema for a loyalty multiplier user
|
|
188
|
+
*/
|
|
131
189
|
export interface User {
|
|
132
190
|
id: string;
|
|
133
191
|
|
|
@@ -164,14 +222,22 @@ export namespace MultiplierListResponse {
|
|
|
164
222
|
|
|
165
223
|
updatedAt: string;
|
|
166
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Schema for a loyalty multiplier user
|
|
227
|
+
*/
|
|
167
228
|
user: Data.User;
|
|
168
229
|
|
|
169
230
|
userId: string;
|
|
170
231
|
|
|
171
232
|
websiteId: string;
|
|
233
|
+
|
|
234
|
+
loyaltyRuleId?: string;
|
|
172
235
|
}
|
|
173
236
|
|
|
174
237
|
export namespace Data {
|
|
238
|
+
/**
|
|
239
|
+
* Schema for a loyalty multiplier user
|
|
240
|
+
*/
|
|
175
241
|
export interface User {
|
|
176
242
|
id: string;
|
|
177
243
|
|
|
@@ -180,10 +246,14 @@ export namespace MultiplierListResponse {
|
|
|
180
246
|
}
|
|
181
247
|
}
|
|
182
248
|
|
|
249
|
+
export interface MultiplierDeleteResponse {
|
|
250
|
+
id: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
183
253
|
/**
|
|
184
254
|
* Schema for loyalty multiplier
|
|
185
255
|
*/
|
|
186
|
-
export interface
|
|
256
|
+
export interface MultiplierDeleteByExternalIDResponse {
|
|
187
257
|
id: string;
|
|
188
258
|
|
|
189
259
|
createdAt: string;
|
|
@@ -202,14 +272,22 @@ export interface MultiplierDeleteResponse {
|
|
|
202
272
|
|
|
203
273
|
updatedAt: string;
|
|
204
274
|
|
|
205
|
-
|
|
275
|
+
/**
|
|
276
|
+
* Schema for a loyalty multiplier user
|
|
277
|
+
*/
|
|
278
|
+
user: MultiplierDeleteByExternalIDResponse.User;
|
|
206
279
|
|
|
207
280
|
userId: string;
|
|
208
281
|
|
|
209
282
|
websiteId: string;
|
|
283
|
+
|
|
284
|
+
loyaltyRuleId?: string;
|
|
210
285
|
}
|
|
211
286
|
|
|
212
|
-
export namespace
|
|
287
|
+
export namespace MultiplierDeleteByExternalIDResponse {
|
|
288
|
+
/**
|
|
289
|
+
* Schema for a loyalty multiplier user
|
|
290
|
+
*/
|
|
213
291
|
export interface User {
|
|
214
292
|
id: string;
|
|
215
293
|
|
|
@@ -238,8 +316,6 @@ export interface MultiplierUpdateParams {
|
|
|
238
316
|
}
|
|
239
317
|
|
|
240
318
|
export interface MultiplierListParams {
|
|
241
|
-
discordUser?: string;
|
|
242
|
-
|
|
243
319
|
externalIdentifier?: string;
|
|
244
320
|
|
|
245
321
|
includeDeleted?: string;
|
|
@@ -250,8 +326,6 @@ export interface MultiplierListParams {
|
|
|
250
326
|
|
|
251
327
|
startingAfter?: string;
|
|
252
328
|
|
|
253
|
-
twitterUser?: string;
|
|
254
|
-
|
|
255
329
|
userGroupExternalIdentifier?: string;
|
|
256
330
|
|
|
257
331
|
userGroupId?: string;
|
|
@@ -265,7 +339,7 @@ export interface MultiplierListParams {
|
|
|
265
339
|
websiteId?: string;
|
|
266
340
|
}
|
|
267
341
|
|
|
268
|
-
export interface
|
|
342
|
+
export interface MultiplierDeleteByExternalIDParams {
|
|
269
343
|
externalIdentifier: string;
|
|
270
344
|
}
|
|
271
345
|
|
|
@@ -275,9 +349,10 @@ export declare namespace Multipliers {
|
|
|
275
349
|
type MultiplierUpdateResponse as MultiplierUpdateResponse,
|
|
276
350
|
type MultiplierListResponse as MultiplierListResponse,
|
|
277
351
|
type MultiplierDeleteResponse as MultiplierDeleteResponse,
|
|
352
|
+
type MultiplierDeleteByExternalIDResponse as MultiplierDeleteByExternalIDResponse,
|
|
278
353
|
type MultiplierCreateParams as MultiplierCreateParams,
|
|
279
354
|
type MultiplierUpdateParams as MultiplierUpdateParams,
|
|
280
355
|
type MultiplierListParams as MultiplierListParams,
|
|
281
|
-
type
|
|
356
|
+
type MultiplierDeleteByExternalIDParams as MultiplierDeleteByExternalIDParams,
|
|
282
357
|
};
|
|
283
358
|
}
|