@snagsolutions/sdk 0.1.0-alpha.230 → 0.1.0-alpha.232
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 +16 -0
- package/README.md +42 -112
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +83 -0
- package/_shims/index.js +17 -0
- package/_shims/index.mjs +11 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +255 -0
- package/core.d.ts.map +1 -0
- package/core.js +929 -0
- package/core.js.map +1 -0
- package/core.mjs +897 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +46 -1
- package/error.d.ts.map +1 -1
- package/error.js +110 -3
- package/error.js.map +1 -1
- package/error.mjs +96 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +138 -6
- package/index.d.ts +137 -5
- package/index.d.ts.map +1 -1
- package/index.js +136 -12
- package/index.js.map +1 -1
- package/index.mjs +109 -5
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts +0 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +2 -4
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +1 -2
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +19 -16
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +19 -17
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.ts +0 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +21 -22
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/package.json +65 -101
- package/resource.d.ts +5 -1
- package/resource.d.ts.map +1 -1
- package/resource.js +8 -3
- package/resource.js.map +1 -1
- package/resource.mjs +6 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +3 -4
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +1 -1
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +1 -1
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +6 -6
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js +29 -11
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs +5 -9
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +4 -5
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +1 -1
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +1 -1
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +6 -6
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +31 -15
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +7 -13
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/auctions/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes.js +15 -2
- package/resources/auctions/website-user-attributes.js.map +1 -1
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -2
- package/resources/auctions.js.map +1 -1
- package/resources/auth.d.ts +52 -5
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +11 -5
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +11 -5
- package/resources/auth.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +3 -4
- package/resources/loyalty/account-streaks.d.ts.map +1 -1
- package/resources/loyalty/account-streaks.js +1 -1
- package/resources/loyalty/account-streaks.js.map +1 -1
- package/resources/loyalty/account-streaks.mjs +1 -1
- package/resources/loyalty/account-streaks.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +5 -5
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +6 -11
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +6 -11
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +12 -9
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +18 -44
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +18 -44
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +4 -5
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +1 -1
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +1 -1
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/loyalty.d.ts +1 -1
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +35 -13
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +1 -1
- package/resources/loyalty/multipliers.d.ts +10 -9
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +14 -26
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +14 -26
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +5 -5
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +5 -11
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +5 -11
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +5 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +2 -3
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +2 -3
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +4 -5
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +2 -3
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +2 -3
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +8 -7
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +10 -24
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +10 -24
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +12 -9
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +18 -48
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +18 -48
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/posts.d.ts +5 -5
- package/resources/loyalty/transactions/posts.d.ts.map +1 -1
- package/resources/loyalty/transactions/posts.js +6 -14
- package/resources/loyalty/transactions/posts.js.map +1 -1
- package/resources/loyalty/transactions/posts.mjs +6 -14
- package/resources/loyalty/transactions/posts.mjs.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.d.ts +5 -5
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.js +5 -10
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.mjs +5 -10
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +8 -8
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +30 -14
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +5 -11
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -2
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty.d.ts.map +1 -1
- package/resources/loyalty.js +15 -2
- package/resources/loyalty.js.map +1 -1
- package/resources/minting/allowlist.d.ts +4 -5
- package/resources/minting/allowlist.d.ts.map +1 -1
- package/resources/minting/allowlist.js +1 -1
- package/resources/minting/allowlist.js.map +1 -1
- package/resources/minting/allowlist.mjs +1 -1
- package/resources/minting/allowlist.mjs.map +1 -1
- package/resources/minting/contracts.d.ts +5 -5
- package/resources/minting/contracts.d.ts.map +1 -1
- package/resources/minting/contracts.js +5 -9
- package/resources/minting/contracts.js.map +1 -1
- package/resources/minting/contracts.mjs +5 -9
- package/resources/minting/contracts.mjs.map +1 -1
- package/resources/minting/index.d.ts.map +1 -1
- package/resources/minting/minting.d.ts +4 -5
- package/resources/minting/minting.d.ts.map +1 -1
- package/resources/minting/minting.js +27 -5
- package/resources/minting/minting.js.map +1 -1
- package/resources/minting/minting.mjs +1 -1
- package/resources/minting/minting.mjs.map +1 -1
- package/resources/minting/status.d.ts +4 -5
- package/resources/minting/status.d.ts.map +1 -1
- package/resources/minting/status.js +3 -4
- package/resources/minting/status.js.map +1 -1
- package/resources/minting/status.mjs +3 -4
- package/resources/minting/status.mjs.map +1 -1
- package/resources/minting.d.ts.map +1 -1
- package/resources/minting.js +15 -2
- package/resources/minting.js.map +1 -1
- package/resources/referral/index.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +3 -4
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +25 -3
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +1 -1
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +5 -5
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +5 -9
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +5 -9
- package/resources/referral/users.mjs.map +1 -1
- package/resources/referral.d.ts.map +1 -1
- package/resources/referral.js +15 -2
- package/resources/referral.js.map +1 -1
- package/resources/token-claims.d.ts +10 -9
- package/resources/token-claims.d.ts.map +1 -1
- package/resources/token-claims.js +16 -16
- package/resources/token-claims.js.map +1 -1
- package/resources/token-claims.mjs +16 -16
- package/resources/token-claims.mjs.map +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/metadatas.d.ts +6 -5
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +8 -17
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +8 -17
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +13 -9
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +29 -11
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +5 -9
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +15 -2
- package/resources/users.js.map +1 -1
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/website-collections.d.ts +4 -5
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +2 -3
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +2 -3
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +4 -5
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +1 -1
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +1 -1
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +5 -5
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +30 -13
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +5 -10
- package/resources/websites/websites.mjs.map +1 -1
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -2
- package/resources/websites.js.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.js +15 -2
- package/resources.js.map +1 -1
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +83 -0
- package/src/_shims/index.js +17 -0
- package/src/_shims/index.mjs +11 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1243 -0
- package/src/error.ts +130 -2
- package/src/index.ts +342 -5
- package/src/internal/qs/formats.ts +1 -2
- package/src/internal/qs/stringify.ts +20 -17
- package/src/internal/qs/utils.ts +14 -14
- package/src/resource.ts +11 -2
- package/src/resources/assets.ts +6 -4
- package/src/resources/auctions/auctions.ts +17 -9
- package/src/resources/auctions/website-user-attributes/values.ts +4 -5
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +20 -13
- package/src/resources/auth.ts +107 -8
- package/src/resources/index.ts +7 -1
- package/src/resources/loyalty/account-streaks.ts +4 -5
- package/src/resources/loyalty/accounts.ts +14 -10
- package/src/resources/loyalty/badges.ts +53 -22
- package/src/resources/loyalty/currencies.ts +4 -5
- package/src/resources/loyalty/loyalty.ts +1 -1
- package/src/resources/loyalty/multipliers.ts +35 -19
- package/src/resources/loyalty/questions-responses.ts +16 -8
- package/src/resources/loyalty/questions.ts +7 -9
- package/src/resources/loyalty/rule-edits.ts +6 -8
- package/src/resources/loyalty/rule-groups.ts +34 -15
- package/src/resources/loyalty/rules.ts +56 -22
- package/src/resources/loyalty/transactions/posts.ts +17 -9
- package/src/resources/loyalty/transactions/rule-statuses.ts +15 -7
- package/src/resources/loyalty/transactions/transactions.ts +24 -14
- package/src/resources/minting/allowlist.ts +7 -5
- package/src/resources/minting/contracts.ts +12 -7
- package/src/resources/minting/minting.ts +8 -6
- package/src/resources/minting/status.ts +10 -8
- package/src/resources/referral/referral.ts +4 -5
- package/src/resources/referral/users.ts +12 -7
- package/src/resources/token-claims.ts +39 -26
- package/src/resources/users/metadatas.ts +19 -9
- package/src/resources/users/users.ts +30 -11
- package/src/resources/websites/website-collections.ts +6 -8
- package/src/resources/websites/website-user-roles.ts +8 -6
- package/src/resources/websites/websites.ts +12 -7
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +255 -2
- package/src/version.ts +1 -1
- package/uploads.d.ts +74 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +168 -3
- package/uploads.js.map +1 -1
- package/uploads.mjs +157 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/api-promise.d.mts +0 -2
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -2
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -2
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -202
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -202
- package/client.d.ts.map +0 -1
- package/client.js +0 -478
- package/client.js.map +0 -1
- package/client.mjs +0 -474
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -74
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -70
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -113
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -97
- package/core/error.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -11
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -7
- package/core/resource.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -2
- package/error.d.mts.map +0 -1
- package/index.d.mts.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -4
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -3
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -162
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -157
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -41
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -36
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -79
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -74
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -40
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -37
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/request-options.d.mts +0 -75
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -75
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -14
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -10
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -4
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -3
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -20
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -20
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -92
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -85
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -4
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -3
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -38
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -33
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -22
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -18
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -7
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -3
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -19
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -15
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -112
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -94
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -7
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -7
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -11
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/resource.d.mts +0 -2
- package/resource.d.mts.map +0 -1
- package/resources/assets.d.mts +0 -65
- package/resources/assets.d.mts.map +0 -1
- package/resources/auctions/auctions.d.mts +0 -368
- package/resources/auctions/auctions.d.mts.map +0 -1
- package/resources/auctions/index.d.mts +0 -3
- package/resources/auctions/index.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/index.d.mts +0 -3
- package/resources/auctions/website-user-attributes/index.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/values.d.mts +0 -127
- package/resources/auctions/website-user-attributes/values.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.mts +0 -136
- package/resources/auctions/website-user-attributes/website-user-attributes.d.mts.map +0 -1
- package/resources/auctions/website-user-attributes.d.mts +0 -2
- package/resources/auctions/website-user-attributes.d.mts.map +0 -1
- package/resources/auctions.d.mts +0 -2
- package/resources/auctions.d.mts.map +0 -1
- package/resources/auth.d.mts +0 -53
- package/resources/auth.d.mts.map +0 -1
- package/resources/index.d.mts +0 -10
- package/resources/index.d.mts.map +0 -1
- package/resources/loyalty/account-streaks.d.mts +0 -97
- package/resources/loyalty/account-streaks.d.mts.map +0 -1
- package/resources/loyalty/accounts.d.mts +0 -238
- package/resources/loyalty/accounts.d.mts.map +0 -1
- package/resources/loyalty/badges.d.mts +0 -1398
- package/resources/loyalty/badges.d.mts.map +0 -1
- package/resources/loyalty/currencies.d.mts +0 -272
- package/resources/loyalty/currencies.d.mts.map +0 -1
- package/resources/loyalty/index.d.mts +0 -13
- package/resources/loyalty/index.d.mts.map +0 -1
- package/resources/loyalty/loyalty.d.mts +0 -50
- package/resources/loyalty/loyalty.d.mts.map +0 -1
- package/resources/loyalty/multipliers.d.mts +0 -221
- package/resources/loyalty/multipliers.d.mts.map +0 -1
- package/resources/loyalty/questions-responses.d.mts +0 -148
- package/resources/loyalty/questions-responses.d.mts.map +0 -1
- package/resources/loyalty/questions.d.mts +0 -205
- package/resources/loyalty/questions.d.mts.map +0 -1
- package/resources/loyalty/rule-edits.d.mts +0 -3165
- package/resources/loyalty/rule-edits.d.mts.map +0 -1
- package/resources/loyalty/rule-groups.d.mts +0 -826
- package/resources/loyalty/rule-groups.d.mts.map +0 -1
- package/resources/loyalty/rules.d.mts +0 -4543
- package/resources/loyalty/rules.d.mts.map +0 -1
- package/resources/loyalty/transactions/index.d.mts +0 -4
- package/resources/loyalty/transactions/index.d.mts.map +0 -1
- package/resources/loyalty/transactions/posts.d.mts +0 -145
- package/resources/loyalty/transactions/posts.d.mts.map +0 -1
- package/resources/loyalty/transactions/rule-statuses.d.mts +0 -121
- package/resources/loyalty/transactions/rule-statuses.d.mts.map +0 -1
- package/resources/loyalty/transactions/transactions.d.mts +0 -564
- package/resources/loyalty/transactions/transactions.d.mts.map +0 -1
- package/resources/loyalty/transactions.d.mts +0 -2
- package/resources/loyalty/transactions.d.mts.map +0 -1
- package/resources/loyalty.d.mts +0 -2
- package/resources/loyalty.d.mts.map +0 -1
- package/resources/minting/allowlist.d.mts +0 -85
- package/resources/minting/allowlist.d.mts.map +0 -1
- package/resources/minting/contracts.d.mts +0 -165
- package/resources/minting/contracts.d.mts.map +0 -1
- package/resources/minting/index.d.mts +0 -5
- package/resources/minting/index.d.mts.map +0 -1
- package/resources/minting/minting.d.mts +0 -143
- package/resources/minting/minting.d.mts.map +0 -1
- package/resources/minting/status.d.mts +0 -45
- package/resources/minting/status.d.mts.map +0 -1
- package/resources/minting.d.mts +0 -2
- package/resources/minting.d.mts.map +0 -1
- package/resources/referral/index.d.mts +0 -3
- package/resources/referral/index.d.mts.map +0 -1
- package/resources/referral/referral.d.mts +0 -41
- package/resources/referral/referral.d.mts.map +0 -1
- package/resources/referral/users.d.mts +0 -84
- package/resources/referral/users.d.mts.map +0 -1
- package/resources/referral.d.mts +0 -2
- package/resources/referral.d.mts.map +0 -1
- package/resources/token-claims.d.mts +0 -159
- package/resources/token-claims.d.mts.map +0 -1
- package/resources/users/index.d.mts +0 -3
- package/resources/users/index.d.mts.map +0 -1
- package/resources/users/metadatas.d.mts +0 -174
- package/resources/users/metadatas.d.mts.map +0 -1
- package/resources/users/users.d.mts +0 -465
- package/resources/users/users.d.mts.map +0 -1
- package/resources/users.d.mts +0 -2
- package/resources/users.d.mts.map +0 -1
- package/resources/websites/index.d.mts +0 -4
- package/resources/websites/index.d.mts.map +0 -1
- package/resources/websites/website-collections.d.mts +0 -95
- package/resources/websites/website-collections.d.mts.map +0 -1
- package/resources/websites/website-user-roles.d.mts +0 -97
- package/resources/websites/website-user-roles.d.mts.map +0 -1
- package/resources/websites/websites.d.mts +0 -329
- package/resources/websites/websites.d.mts.map +0 -1
- package/resources/websites.d.mts +0 -2
- package/resources/websites.d.mts.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/client.ts +0 -868
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -92
- package/src/core/error.ts +0 -130
- package/src/core/resource.ts +0 -11
- package/src/core/uploads.ts +0 -2
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -93
- package/src/internal/detect-platform.ts +0 -196
- package/src/internal/errors.ts +0 -33
- package/src/internal/headers.ts +0 -97
- package/src/internal/parse.ts +0 -56
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -26
- package/src/internal/shims.ts +0 -107
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -95
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -40
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -18
- package/src/internal/utils/log.ts +0 -127
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/sleep.ts +0 -3
- package/src/internal/utils/uuid.ts +0 -17
- package/src/internal/utils/values.ts +0 -105
- package/src/internal/utils.ts +0 -8
- package/uploads.d.mts +0 -2
- package/uploads.d.mts.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
7
6
|
|
|
8
7
|
export class Multipliers extends APIResource {
|
|
9
8
|
/**
|
|
@@ -17,7 +16,10 @@ export class Multipliers extends APIResource {
|
|
|
17
16
|
* });
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
create(
|
|
19
|
+
create(
|
|
20
|
+
body: MultiplierCreateParams,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<MultiplierCreateResponse> {
|
|
21
23
|
return this._client.post('/api/loyalty/multipliers', { body, ...options });
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -32,11 +34,20 @@ export class Multipliers extends APIResource {
|
|
|
32
34
|
* ```
|
|
33
35
|
*/
|
|
34
36
|
update(
|
|
35
|
-
|
|
36
|
-
body
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<MultiplierUpdateResponse
|
|
39
|
-
|
|
37
|
+
multiplierId: string,
|
|
38
|
+
body?: MultiplierUpdateParams,
|
|
39
|
+
options?: Core.RequestOptions,
|
|
40
|
+
): Core.APIPromise<MultiplierUpdateResponse>;
|
|
41
|
+
update(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierUpdateResponse>;
|
|
42
|
+
update(
|
|
43
|
+
multiplierId: string,
|
|
44
|
+
body: MultiplierUpdateParams | Core.RequestOptions = {},
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.APIPromise<MultiplierUpdateResponse> {
|
|
47
|
+
if (isRequestOptions(body)) {
|
|
48
|
+
return this.update(multiplierId, {}, body);
|
|
49
|
+
}
|
|
50
|
+
return this._client.post(`/api/loyalty/multipliers/${multiplierId}`, { body, ...options });
|
|
40
51
|
}
|
|
41
52
|
|
|
42
53
|
/**
|
|
@@ -47,10 +58,15 @@ export class Multipliers extends APIResource {
|
|
|
47
58
|
* const multipliers = await client.loyalty.multipliers.list();
|
|
48
59
|
* ```
|
|
49
60
|
*/
|
|
61
|
+
list(query?: MultiplierListParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
62
|
+
list(options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
50
63
|
list(
|
|
51
|
-
query: MultiplierListParams |
|
|
52
|
-
options?: RequestOptions,
|
|
53
|
-
): APIPromise<MultiplierListResponse> {
|
|
64
|
+
query: MultiplierListParams | Core.RequestOptions = {},
|
|
65
|
+
options?: Core.RequestOptions,
|
|
66
|
+
): Core.APIPromise<MultiplierListResponse> {
|
|
67
|
+
if (isRequestOptions(query)) {
|
|
68
|
+
return this.list({}, query);
|
|
69
|
+
}
|
|
54
70
|
return this._client.get('/api/loyalty/multipliers', { query, ...options });
|
|
55
71
|
}
|
|
56
72
|
|
|
@@ -64,8 +80,8 @@ export class Multipliers extends APIResource {
|
|
|
64
80
|
* );
|
|
65
81
|
* ```
|
|
66
82
|
*/
|
|
67
|
-
delete(
|
|
68
|
-
return this._client.delete(
|
|
83
|
+
delete(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteResponse> {
|
|
84
|
+
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
69
85
|
}
|
|
70
86
|
|
|
71
87
|
/**
|
|
@@ -74,15 +90,15 @@ export class Multipliers extends APIResource {
|
|
|
74
90
|
* @example
|
|
75
91
|
* ```ts
|
|
76
92
|
* const response =
|
|
77
|
-
* await client.loyalty.multipliers.
|
|
93
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
78
94
|
* externalIdentifier: 'externalIdentifier',
|
|
79
95
|
* });
|
|
80
96
|
* ```
|
|
81
97
|
*/
|
|
82
|
-
|
|
98
|
+
deleteByExternalId(
|
|
83
99
|
body: MultiplierDeleteByExternalIDParams,
|
|
84
|
-
options?: RequestOptions,
|
|
85
|
-
): APIPromise<MultiplierDeleteByExternalIDResponse> {
|
|
100
|
+
options?: Core.RequestOptions,
|
|
101
|
+
): Core.APIPromise<MultiplierDeleteByExternalIDResponse> {
|
|
86
102
|
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
87
103
|
}
|
|
88
104
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
|
|
7
7
|
export class QuestionsResponses extends APIResource {
|
|
8
8
|
/**
|
|
@@ -16,9 +16,17 @@ export class QuestionsResponses extends APIResource {
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
list(
|
|
19
|
-
query
|
|
20
|
-
options?: RequestOptions,
|
|
21
|
-
): APIPromise<QuestionsResponseListResponse
|
|
19
|
+
query?: QuestionsResponseListParams,
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<QuestionsResponseListResponse>;
|
|
22
|
+
list(options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseListResponse>;
|
|
23
|
+
list(
|
|
24
|
+
query: QuestionsResponseListParams | Core.RequestOptions = {},
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.APIPromise<QuestionsResponseListResponse> {
|
|
27
|
+
if (isRequestOptions(query)) {
|
|
28
|
+
return this.list({}, query);
|
|
29
|
+
}
|
|
22
30
|
return this._client.get('/api/loyalty/questions_responses', { query, ...options });
|
|
23
31
|
}
|
|
24
32
|
|
|
@@ -36,8 +44,8 @@ export class QuestionsResponses extends APIResource {
|
|
|
36
44
|
*/
|
|
37
45
|
submit(
|
|
38
46
|
body: QuestionsResponseSubmitParams,
|
|
39
|
-
options?: RequestOptions,
|
|
40
|
-
): APIPromise<QuestionsResponseSubmitResponse> {
|
|
47
|
+
options?: Core.RequestOptions,
|
|
48
|
+
): Core.APIPromise<QuestionsResponseSubmitResponse> {
|
|
41
49
|
return this._client.post('/api/loyalty/questions_responses', { body, ...options });
|
|
42
50
|
}
|
|
43
51
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
7
5
|
|
|
8
6
|
export class Questions extends APIResource {
|
|
9
7
|
/**
|
|
@@ -24,7 +22,7 @@ export class Questions extends APIResource {
|
|
|
24
22
|
* });
|
|
25
23
|
* ```
|
|
26
24
|
*/
|
|
27
|
-
create(body: QuestionCreateParams, options?: RequestOptions): APIPromise<QuestionCreateResponse> {
|
|
25
|
+
create(body: QuestionCreateParams, options?: Core.RequestOptions): Core.APIPromise<QuestionCreateResponse> {
|
|
28
26
|
return this._client.post('/api/loyalty/questions', { body, ...options });
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -51,9 +49,9 @@ export class Questions extends APIResource {
|
|
|
51
49
|
update(
|
|
52
50
|
id: string,
|
|
53
51
|
body: QuestionUpdateParams,
|
|
54
|
-
options?: RequestOptions,
|
|
55
|
-
): APIPromise<QuestionUpdateResponse> {
|
|
56
|
-
return this._client.post(
|
|
52
|
+
options?: Core.RequestOptions,
|
|
53
|
+
): Core.APIPromise<QuestionUpdateResponse> {
|
|
54
|
+
return this._client.post(`/api/loyalty/questions/${id}`, { body, ...options });
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
/**
|
|
@@ -66,7 +64,7 @@ export class Questions extends APIResource {
|
|
|
66
64
|
* });
|
|
67
65
|
* ```
|
|
68
66
|
*/
|
|
69
|
-
list(query: QuestionListParams, options?: RequestOptions): APIPromise<QuestionListResponse> {
|
|
67
|
+
list(query: QuestionListParams, options?: Core.RequestOptions): Core.APIPromise<QuestionListResponse> {
|
|
70
68
|
return this._client.get('/api/loyalty/questions', { query, ...options });
|
|
71
69
|
}
|
|
72
70
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
7
5
|
|
|
8
6
|
export class RuleEdits extends APIResource {
|
|
9
7
|
/**
|
|
@@ -16,7 +14,7 @@ export class RuleEdits extends APIResource {
|
|
|
16
14
|
* });
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
|
-
list(query: RuleEditListParams, options?: RequestOptions): APIPromise<RuleEditListResponse> {
|
|
17
|
+
list(query: RuleEditListParams, options?: Core.RequestOptions): Core.APIPromise<RuleEditListResponse> {
|
|
20
18
|
return this._client.get('/api/loyalty/rule_edits', { query, ...options });
|
|
21
19
|
}
|
|
22
20
|
|
|
@@ -33,9 +31,9 @@ export class RuleEdits extends APIResource {
|
|
|
33
31
|
restore(
|
|
34
32
|
id: string,
|
|
35
33
|
body?: RuleEditRestoreParams | null | undefined,
|
|
36
|
-
options?: RequestOptions,
|
|
37
|
-
): APIPromise<RuleEditRestoreResponse> {
|
|
38
|
-
return this._client.post(
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.APIPromise<RuleEditRestoreResponse> {
|
|
36
|
+
return this._client.post(`/api/loyalty/rule_edits/${id}/restore`, { body, ...options });
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
39
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
7
6
|
|
|
8
7
|
export class RuleGroups extends APIResource {
|
|
9
8
|
/**
|
|
@@ -21,8 +20,8 @@ export class RuleGroups extends APIResource {
|
|
|
21
20
|
*/
|
|
22
21
|
createRuleGroup(
|
|
23
22
|
body: RuleGroupCreateRuleGroupParams,
|
|
24
|
-
options?: RequestOptions,
|
|
25
|
-
): APIPromise<RuleGroupCreateRuleGroupResponse> {
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<RuleGroupCreateRuleGroupResponse> {
|
|
26
25
|
return this._client.post('/api/loyalty/rule_groups/create', { body, ...options });
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -37,8 +36,8 @@ export class RuleGroups extends APIResource {
|
|
|
37
36
|
* );
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
|
-
deleteRuleGroup(id: string, options?: RequestOptions): APIPromise<unknown> {
|
|
41
|
-
return this._client.delete(
|
|
39
|
+
deleteRuleGroup(id: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
40
|
+
return this._client.delete(`/api/loyalty/rule_groups/${id}`, options);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -51,9 +50,17 @@ export class RuleGroups extends APIResource {
|
|
|
51
50
|
* ```
|
|
52
51
|
*/
|
|
53
52
|
getRuleGroups(
|
|
54
|
-
query
|
|
55
|
-
options?: RequestOptions,
|
|
56
|
-
): APIPromise<RuleGroupGetRuleGroupsResponse
|
|
53
|
+
query?: RuleGroupGetRuleGroupsParams,
|
|
54
|
+
options?: Core.RequestOptions,
|
|
55
|
+
): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
56
|
+
getRuleGroups(options?: Core.RequestOptions): Core.APIPromise<RuleGroupGetRuleGroupsResponse>;
|
|
57
|
+
getRuleGroups(
|
|
58
|
+
query: RuleGroupGetRuleGroupsParams | Core.RequestOptions = {},
|
|
59
|
+
options?: Core.RequestOptions,
|
|
60
|
+
): Core.APIPromise<RuleGroupGetRuleGroupsResponse> {
|
|
61
|
+
if (isRequestOptions(query)) {
|
|
62
|
+
return this.getRuleGroups({}, query);
|
|
63
|
+
}
|
|
57
64
|
return this._client.get('/api/loyalty/rule_groups', { query, ...options });
|
|
58
65
|
}
|
|
59
66
|
|
|
@@ -70,10 +77,22 @@ export class RuleGroups extends APIResource {
|
|
|
70
77
|
*/
|
|
71
78
|
updateRuleGroup(
|
|
72
79
|
id: string,
|
|
73
|
-
body
|
|
74
|
-
options?: RequestOptions,
|
|
75
|
-
): APIPromise<RuleGroupUpdateRuleGroupResponse
|
|
76
|
-
|
|
80
|
+
body?: RuleGroupUpdateRuleGroupParams,
|
|
81
|
+
options?: Core.RequestOptions,
|
|
82
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
|
|
83
|
+
updateRuleGroup(
|
|
84
|
+
id: string,
|
|
85
|
+
options?: Core.RequestOptions,
|
|
86
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse>;
|
|
87
|
+
updateRuleGroup(
|
|
88
|
+
id: string,
|
|
89
|
+
body: RuleGroupUpdateRuleGroupParams | Core.RequestOptions = {},
|
|
90
|
+
options?: Core.RequestOptions,
|
|
91
|
+
): Core.APIPromise<RuleGroupUpdateRuleGroupResponse> {
|
|
92
|
+
if (isRequestOptions(body)) {
|
|
93
|
+
return this.updateRuleGroup(id, {}, body);
|
|
94
|
+
}
|
|
95
|
+
return this._client.post(`/api/loyalty/rule_groups/${id}`, { body, ...options });
|
|
77
96
|
}
|
|
78
97
|
}
|
|
79
98
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { path } from '../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
7
6
|
|
|
8
7
|
export class Rules extends APIResource {
|
|
9
8
|
/**
|
|
@@ -27,7 +26,7 @@ export class Rules extends APIResource {
|
|
|
27
26
|
* });
|
|
28
27
|
* ```
|
|
29
28
|
*/
|
|
30
|
-
create(body: RuleCreateParams, options?: RequestOptions): APIPromise<RuleCreateResponse> {
|
|
29
|
+
create(body: RuleCreateParams, options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse> {
|
|
31
30
|
return this._client.post('/api/loyalty/rules', { body, ...options });
|
|
32
31
|
}
|
|
33
32
|
|
|
@@ -46,8 +45,12 @@ export class Rules extends APIResource {
|
|
|
46
45
|
* );
|
|
47
46
|
* ```
|
|
48
47
|
*/
|
|
49
|
-
update(
|
|
50
|
-
|
|
48
|
+
update(
|
|
49
|
+
id: string,
|
|
50
|
+
body: RuleUpdateParams,
|
|
51
|
+
options?: Core.RequestOptions,
|
|
52
|
+
): Core.APIPromise<RuleUpdateResponse> {
|
|
53
|
+
return this._client.post(`/api/loyalty/rules/${id}`, { body, ...options });
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
@@ -58,10 +61,15 @@ export class Rules extends APIResource {
|
|
|
58
61
|
* const rules = await client.loyalty.rules.list();
|
|
59
62
|
* ```
|
|
60
63
|
*/
|
|
64
|
+
list(query?: RuleListParams, options?: Core.RequestOptions): Core.APIPromise<RuleListResponse>;
|
|
65
|
+
list(options?: Core.RequestOptions): Core.APIPromise<RuleListResponse>;
|
|
61
66
|
list(
|
|
62
|
-
query: RuleListParams |
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): APIPromise<RuleListResponse> {
|
|
67
|
+
query: RuleListParams | Core.RequestOptions = {},
|
|
68
|
+
options?: Core.RequestOptions,
|
|
69
|
+
): Core.APIPromise<RuleListResponse> {
|
|
70
|
+
if (isRequestOptions(query)) {
|
|
71
|
+
return this.list({}, query);
|
|
72
|
+
}
|
|
65
73
|
return this._client.get('/api/loyalty/rules', { query, ...options });
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -77,11 +85,20 @@ export class Rules extends APIResource {
|
|
|
77
85
|
*/
|
|
78
86
|
delete(
|
|
79
87
|
id: string,
|
|
80
|
-
params
|
|
81
|
-
options?: RequestOptions,
|
|
82
|
-
): APIPromise<RuleDeleteResponse
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
params?: RuleDeleteParams,
|
|
89
|
+
options?: Core.RequestOptions,
|
|
90
|
+
): Core.APIPromise<RuleDeleteResponse>;
|
|
91
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
|
|
92
|
+
delete(
|
|
93
|
+
id: string,
|
|
94
|
+
params: RuleDeleteParams | Core.RequestOptions = {},
|
|
95
|
+
options?: Core.RequestOptions,
|
|
96
|
+
): Core.APIPromise<RuleDeleteResponse> {
|
|
97
|
+
if (isRequestOptions(params)) {
|
|
98
|
+
return this.delete(id, {}, params);
|
|
99
|
+
}
|
|
100
|
+
const { debitLoyaltyPoints } = params;
|
|
101
|
+
return this._client.delete(`/api/loyalty/rules/${id}`, { query: { debitLoyaltyPoints }, ...options });
|
|
85
102
|
}
|
|
86
103
|
|
|
87
104
|
/**
|
|
@@ -101,10 +118,19 @@ export class Rules extends APIResource {
|
|
|
101
118
|
*/
|
|
102
119
|
complete(
|
|
103
120
|
id: string,
|
|
104
|
-
body
|
|
105
|
-
options?: RequestOptions,
|
|
106
|
-
): APIPromise<RuleCompleteResponse
|
|
107
|
-
|
|
121
|
+
body?: RuleCompleteParams,
|
|
122
|
+
options?: Core.RequestOptions,
|
|
123
|
+
): Core.APIPromise<RuleCompleteResponse>;
|
|
124
|
+
complete(id: string, options?: Core.RequestOptions): Core.APIPromise<RuleCompleteResponse>;
|
|
125
|
+
complete(
|
|
126
|
+
id: string,
|
|
127
|
+
body: RuleCompleteParams | Core.RequestOptions = {},
|
|
128
|
+
options?: Core.RequestOptions,
|
|
129
|
+
): Core.APIPromise<RuleCompleteResponse> {
|
|
130
|
+
if (isRequestOptions(body)) {
|
|
131
|
+
return this.complete(id, {}, body);
|
|
132
|
+
}
|
|
133
|
+
return this._client.post(`/api/loyalty/rules/${id}/complete`, { body, ...options });
|
|
108
134
|
}
|
|
109
135
|
|
|
110
136
|
/**
|
|
@@ -117,9 +143,17 @@ export class Rules extends APIResource {
|
|
|
117
143
|
* ```
|
|
118
144
|
*/
|
|
119
145
|
getStatus(
|
|
120
|
-
query
|
|
121
|
-
options?: RequestOptions,
|
|
122
|
-
): APIPromise<RuleGetStatusResponse
|
|
146
|
+
query?: RuleGetStatusParams,
|
|
147
|
+
options?: Core.RequestOptions,
|
|
148
|
+
): Core.APIPromise<RuleGetStatusResponse>;
|
|
149
|
+
getStatus(options?: Core.RequestOptions): Core.APIPromise<RuleGetStatusResponse>;
|
|
150
|
+
getStatus(
|
|
151
|
+
query: RuleGetStatusParams | Core.RequestOptions = {},
|
|
152
|
+
options?: Core.RequestOptions,
|
|
153
|
+
): Core.APIPromise<RuleGetStatusResponse> {
|
|
154
|
+
if (isRequestOptions(query)) {
|
|
155
|
+
return this.getStatus({}, query);
|
|
156
|
+
}
|
|
123
157
|
return this._client.get('/api/loyalty/rules/status', { query, ...options });
|
|
124
158
|
}
|
|
125
159
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { path } from '../../../internal/utils/path';
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../../core';
|
|
5
|
+
import * as Core from '../../../core';
|
|
7
6
|
|
|
8
7
|
export class Posts extends APIResource {
|
|
9
8
|
/**
|
|
@@ -17,10 +16,15 @@ export class Posts extends APIResource {
|
|
|
17
16
|
* await client.loyalty.transactions.posts.list();
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
19
|
+
list(query?: PostListParams, options?: Core.RequestOptions): Core.APIPromise<PostListResponse>;
|
|
20
|
+
list(options?: Core.RequestOptions): Core.APIPromise<PostListResponse>;
|
|
20
21
|
list(
|
|
21
|
-
query: PostListParams |
|
|
22
|
-
options?: RequestOptions,
|
|
23
|
-
): APIPromise<PostListResponse> {
|
|
22
|
+
query: PostListParams | Core.RequestOptions = {},
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<PostListResponse> {
|
|
25
|
+
if (isRequestOptions(query)) {
|
|
26
|
+
return this.list({}, query);
|
|
27
|
+
}
|
|
24
28
|
return this._client.get('/api/loyalty/posts', { query, ...options });
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -37,8 +41,12 @@ export class Posts extends APIResource {
|
|
|
37
41
|
* });
|
|
38
42
|
* ```
|
|
39
43
|
*/
|
|
40
|
-
reward(
|
|
41
|
-
|
|
44
|
+
reward(
|
|
45
|
+
id: string,
|
|
46
|
+
body: PostRewardParams,
|
|
47
|
+
options?: Core.RequestOptions,
|
|
48
|
+
): Core.APIPromise<PostRewardResponse> {
|
|
49
|
+
return this._client.post(`/api/loyalty/posts/${id}/reward`, { body, ...options });
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../../
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../../core';
|
|
5
|
+
import * as Core from '../../../core';
|
|
6
6
|
|
|
7
7
|
export class RuleStatuses extends APIResource {
|
|
8
8
|
/**
|
|
@@ -16,7 +16,10 @@ export class RuleStatuses extends APIResource {
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
update(
|
|
19
|
+
update(
|
|
20
|
+
body: RuleStatusUpdateParams,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<RuleStatusUpdateResponse> {
|
|
20
23
|
return this._client.post('/api/loyalty/rule_statuses', { body, ...options });
|
|
21
24
|
}
|
|
22
25
|
|
|
@@ -29,10 +32,15 @@ export class RuleStatuses extends APIResource {
|
|
|
29
32
|
* await client.loyalty.transactions.ruleStatuses.list();
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
35
|
+
list(query?: RuleStatusListParams, options?: Core.RequestOptions): Core.APIPromise<RuleStatusListResponse>;
|
|
36
|
+
list(options?: Core.RequestOptions): Core.APIPromise<RuleStatusListResponse>;
|
|
32
37
|
list(
|
|
33
|
-
query: RuleStatusListParams |
|
|
34
|
-
options?: RequestOptions,
|
|
35
|
-
): APIPromise<RuleStatusListResponse> {
|
|
38
|
+
query: RuleStatusListParams | Core.RequestOptions = {},
|
|
39
|
+
options?: Core.RequestOptions,
|
|
40
|
+
): Core.APIPromise<RuleStatusListResponse> {
|
|
41
|
+
if (isRequestOptions(query)) {
|
|
42
|
+
return this.list({}, query);
|
|
43
|
+
}
|
|
36
44
|
return this._client.get('/api/loyalty/rule_statuses', { query, ...options });
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../../
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../../core';
|
|
5
|
+
import * as Core from '../../../core';
|
|
4
6
|
import * as PostsAPI from './posts';
|
|
5
7
|
import { PostListParams, PostListResponse, PostRewardParams, PostRewardResponse, Posts } from './posts';
|
|
6
8
|
import * as RuleStatusesAPI from './rule-statuses';
|
|
@@ -11,8 +13,6 @@ import {
|
|
|
11
13
|
RuleStatusUpdateResponse,
|
|
12
14
|
RuleStatuses,
|
|
13
15
|
} from './rule-statuses';
|
|
14
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
15
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
16
16
|
|
|
17
17
|
export class Transactions extends APIResource {
|
|
18
18
|
ruleStatuses: RuleStatusesAPI.RuleStatuses = new RuleStatusesAPI.RuleStatuses(this._client);
|
|
@@ -32,8 +32,8 @@ export class Transactions extends APIResource {
|
|
|
32
32
|
*/
|
|
33
33
|
createTransaction(
|
|
34
34
|
body: TransactionCreateTransactionParams,
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): APIPromise<TransactionCreateTransactionResponse> {
|
|
35
|
+
options?: Core.RequestOptions,
|
|
36
|
+
): Core.APIPromise<TransactionCreateTransactionResponse> {
|
|
37
37
|
return this._client.post('/api/loyalty/transactions', { body, ...options });
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -48,9 +48,19 @@ export class Transactions extends APIResource {
|
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
50
|
getTransactionEntries(
|
|
51
|
-
query
|
|
52
|
-
options?: RequestOptions,
|
|
53
|
-
): APIPromise<TransactionGetTransactionEntriesResponse
|
|
51
|
+
query?: TransactionGetTransactionEntriesParams,
|
|
52
|
+
options?: Core.RequestOptions,
|
|
53
|
+
): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
|
|
54
|
+
getTransactionEntries(
|
|
55
|
+
options?: Core.RequestOptions,
|
|
56
|
+
): Core.APIPromise<TransactionGetTransactionEntriesResponse>;
|
|
57
|
+
getTransactionEntries(
|
|
58
|
+
query: TransactionGetTransactionEntriesParams | Core.RequestOptions = {},
|
|
59
|
+
options?: Core.RequestOptions,
|
|
60
|
+
): Core.APIPromise<TransactionGetTransactionEntriesResponse> {
|
|
61
|
+
if (isRequestOptions(query)) {
|
|
62
|
+
return this.getTransactionEntries({}, query);
|
|
63
|
+
}
|
|
54
64
|
return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
|
|
55
65
|
}
|
|
56
66
|
|
|
@@ -67,8 +77,8 @@ export class Transactions extends APIResource {
|
|
|
67
77
|
*/
|
|
68
78
|
listBadgeUsers(
|
|
69
79
|
query: TransactionListBadgeUsersParams,
|
|
70
|
-
options?: RequestOptions,
|
|
71
|
-
): APIPromise<TransactionListBadgeUsersResponse> {
|
|
80
|
+
options?: Core.RequestOptions,
|
|
81
|
+
): Core.APIPromise<TransactionListBadgeUsersResponse> {
|
|
72
82
|
return this._client.get('/api/loyalty/badge_users', { query, ...options });
|
|
73
83
|
}
|
|
74
84
|
|
|
@@ -86,8 +96,8 @@ export class Transactions extends APIResource {
|
|
|
86
96
|
*/
|
|
87
97
|
listRuleChains(
|
|
88
98
|
query: TransactionListRuleChainsParams,
|
|
89
|
-
options?: RequestOptions,
|
|
90
|
-
): APIPromise<TransactionListRuleChainsResponse> {
|
|
99
|
+
options?: Core.RequestOptions,
|
|
100
|
+
): Core.APIPromise<TransactionListRuleChainsResponse> {
|
|
91
101
|
return this._client.get('/api/loyalty/rule_chains', { query, ...options });
|
|
92
102
|
}
|
|
93
103
|
|
|
@@ -106,8 +116,8 @@ export class Transactions extends APIResource {
|
|
|
106
116
|
*/
|
|
107
117
|
resetLoyaltyCurrency(
|
|
108
118
|
body: TransactionResetLoyaltyCurrencyParams,
|
|
109
|
-
options?: RequestOptions,
|
|
110
|
-
): APIPromise<TransactionResetLoyaltyCurrencyResponse> {
|
|
119
|
+
options?: Core.RequestOptions,
|
|
120
|
+
): Core.APIPromise<TransactionResetLoyaltyCurrencyResponse> {
|
|
111
121
|
return this._client.post('/api/loyalty/reset', { body, ...options });
|
|
112
122
|
}
|
|
113
123
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '../../
|
|
4
|
-
import
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
6
5
|
|
|
7
6
|
export class Allowlist extends APIResource {
|
|
8
7
|
/**
|
|
@@ -16,7 +15,7 @@ export class Allowlist extends APIResource {
|
|
|
16
15
|
* });
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
|
-
list(query: AllowlistListParams, options?: RequestOptions): APIPromise<AllowlistListResponse> {
|
|
18
|
+
list(query: AllowlistListParams, options?: Core.RequestOptions): Core.APIPromise<AllowlistListResponse> {
|
|
20
19
|
return this._client.get('/api/minting/assets/allowlist', { query, ...options });
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -36,7 +35,10 @@ export class Allowlist extends APIResource {
|
|
|
36
35
|
* });
|
|
37
36
|
* ```
|
|
38
37
|
*/
|
|
39
|
-
upsert(
|
|
38
|
+
upsert(
|
|
39
|
+
body: AllowlistUpsertParams,
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<AllowlistUpsertResponse> {
|
|
40
42
|
return this._client.post('/api/minting/assets/allowlist', { body, ...options });
|
|
41
43
|
}
|
|
42
44
|
}
|