@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
package/uploads.mjs
CHANGED
|
@@ -1,2 +1,158 @@
|
|
|
1
|
-
|
|
1
|
+
import { FormData, File, getMultipartRequestOptions, isFsReadStream, } from "./_shims/index.mjs";
|
|
2
|
+
export { fileFromPath } from "./_shims/index.mjs";
|
|
3
|
+
export const isResponseLike = (value) => value != null &&
|
|
4
|
+
typeof value === 'object' &&
|
|
5
|
+
typeof value.url === 'string' &&
|
|
6
|
+
typeof value.blob === 'function';
|
|
7
|
+
export const isFileLike = (value) => value != null &&
|
|
8
|
+
typeof value === 'object' &&
|
|
9
|
+
typeof value.name === 'string' &&
|
|
10
|
+
typeof value.lastModified === 'number' &&
|
|
11
|
+
isBlobLike(value);
|
|
12
|
+
/**
|
|
13
|
+
* The BlobLike type omits arrayBuffer() because @types/node-fetch@^2.6.4 lacks it; but this check
|
|
14
|
+
* adds the arrayBuffer() method type because it is available and used at runtime
|
|
15
|
+
*/
|
|
16
|
+
export const isBlobLike = (value) => value != null &&
|
|
17
|
+
typeof value === 'object' &&
|
|
18
|
+
typeof value.size === 'number' &&
|
|
19
|
+
typeof value.type === 'string' &&
|
|
20
|
+
typeof value.text === 'function' &&
|
|
21
|
+
typeof value.slice === 'function' &&
|
|
22
|
+
typeof value.arrayBuffer === 'function';
|
|
23
|
+
export const isUploadable = (value) => {
|
|
24
|
+
return isFileLike(value) || isResponseLike(value) || isFsReadStream(value);
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
28
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
|
|
29
|
+
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
30
|
+
* @param {Object=} options additional properties
|
|
31
|
+
* @param {string=} options.type the MIME type of the content
|
|
32
|
+
* @param {number=} options.lastModified the last modified timestamp
|
|
33
|
+
* @returns a {@link File} with the given properties
|
|
34
|
+
*/
|
|
35
|
+
export async function toFile(value, name, options) {
|
|
36
|
+
// If it's a promise, resolve it.
|
|
37
|
+
value = await value;
|
|
38
|
+
// If we've been given a `File` we don't need to do anything
|
|
39
|
+
if (isFileLike(value)) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
if (isResponseLike(value)) {
|
|
43
|
+
const blob = await value.blob();
|
|
44
|
+
name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file');
|
|
45
|
+
// we need to convert the `Blob` into an array buffer because the `Blob` class
|
|
46
|
+
// that `node-fetch` defines is incompatible with the web standard which results
|
|
47
|
+
// in `new File` interpreting it as a string instead of binary data.
|
|
48
|
+
const data = isBlobLike(blob) ? [(await blob.arrayBuffer())] : [blob];
|
|
49
|
+
return new File(data, name, options);
|
|
50
|
+
}
|
|
51
|
+
const bits = await getBytes(value);
|
|
52
|
+
name || (name = getName(value) ?? 'unknown_file');
|
|
53
|
+
if (!options?.type) {
|
|
54
|
+
const type = bits[0]?.type;
|
|
55
|
+
if (typeof type === 'string') {
|
|
56
|
+
options = { ...options, type };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return new File(bits, name, options);
|
|
60
|
+
}
|
|
61
|
+
async function getBytes(value) {
|
|
62
|
+
let parts = [];
|
|
63
|
+
if (typeof value === 'string' ||
|
|
64
|
+
ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc.
|
|
65
|
+
value instanceof ArrayBuffer) {
|
|
66
|
+
parts.push(value);
|
|
67
|
+
}
|
|
68
|
+
else if (isBlobLike(value)) {
|
|
69
|
+
parts.push(await value.arrayBuffer());
|
|
70
|
+
}
|
|
71
|
+
else if (isAsyncIterableIterator(value) // includes Readable, ReadableStream, etc.
|
|
72
|
+
) {
|
|
73
|
+
for await (const chunk of value) {
|
|
74
|
+
parts.push(chunk); // TODO, consider validating?
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
throw new Error(`Unexpected data type: ${typeof value}; constructor: ${value?.constructor
|
|
79
|
+
?.name}; props: ${propsForError(value)}`);
|
|
80
|
+
}
|
|
81
|
+
return parts;
|
|
82
|
+
}
|
|
83
|
+
function propsForError(value) {
|
|
84
|
+
const props = Object.getOwnPropertyNames(value);
|
|
85
|
+
return `[${props.map((p) => `"${p}"`).join(', ')}]`;
|
|
86
|
+
}
|
|
87
|
+
function getName(value) {
|
|
88
|
+
return (getStringFromMaybeBuffer(value.name) ||
|
|
89
|
+
getStringFromMaybeBuffer(value.filename) ||
|
|
90
|
+
// For fs.ReadStream
|
|
91
|
+
getStringFromMaybeBuffer(value.path)?.split(/[\\/]/).pop());
|
|
92
|
+
}
|
|
93
|
+
const getStringFromMaybeBuffer = (x) => {
|
|
94
|
+
if (typeof x === 'string')
|
|
95
|
+
return x;
|
|
96
|
+
if (typeof Buffer !== 'undefined' && x instanceof Buffer)
|
|
97
|
+
return String(x);
|
|
98
|
+
return undefined;
|
|
99
|
+
};
|
|
100
|
+
const isAsyncIterableIterator = (value) => value != null && typeof value === 'object' && typeof value[Symbol.asyncIterator] === 'function';
|
|
101
|
+
export const isMultipartBody = (body) => body && typeof body === 'object' && body.body && body[Symbol.toStringTag] === 'MultipartBody';
|
|
102
|
+
/**
|
|
103
|
+
* Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
|
|
104
|
+
* Otherwise returns the request as is.
|
|
105
|
+
*/
|
|
106
|
+
export const maybeMultipartFormRequestOptions = async (opts) => {
|
|
107
|
+
if (!hasUploadableValue(opts.body))
|
|
108
|
+
return opts;
|
|
109
|
+
const form = await createForm(opts.body);
|
|
110
|
+
return getMultipartRequestOptions(form, opts);
|
|
111
|
+
};
|
|
112
|
+
export const multipartFormRequestOptions = async (opts) => {
|
|
113
|
+
const form = await createForm(opts.body);
|
|
114
|
+
return getMultipartRequestOptions(form, opts);
|
|
115
|
+
};
|
|
116
|
+
export const createForm = async (body) => {
|
|
117
|
+
const form = new FormData();
|
|
118
|
+
await Promise.all(Object.entries(body || {}).map(([key, value]) => addFormValue(form, key, value)));
|
|
119
|
+
return form;
|
|
120
|
+
};
|
|
121
|
+
const hasUploadableValue = (value) => {
|
|
122
|
+
if (isUploadable(value))
|
|
123
|
+
return true;
|
|
124
|
+
if (Array.isArray(value))
|
|
125
|
+
return value.some(hasUploadableValue);
|
|
126
|
+
if (value && typeof value === 'object') {
|
|
127
|
+
for (const k in value) {
|
|
128
|
+
if (hasUploadableValue(value[k]))
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return false;
|
|
133
|
+
};
|
|
134
|
+
const addFormValue = async (form, key, value) => {
|
|
135
|
+
if (value === undefined)
|
|
136
|
+
return;
|
|
137
|
+
if (value == null) {
|
|
138
|
+
throw new TypeError(`Received null for "${key}"; to pass null in FormData, you must use the string 'null'`);
|
|
139
|
+
}
|
|
140
|
+
// TODO: make nested formats configurable
|
|
141
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
142
|
+
form.append(key, String(value));
|
|
143
|
+
}
|
|
144
|
+
else if (isUploadable(value)) {
|
|
145
|
+
const file = await toFile(value);
|
|
146
|
+
form.append(key, file);
|
|
147
|
+
}
|
|
148
|
+
else if (Array.isArray(value)) {
|
|
149
|
+
await Promise.all(value.map((entry) => addFormValue(form, key + '[]', entry)));
|
|
150
|
+
}
|
|
151
|
+
else if (typeof value === 'object') {
|
|
152
|
+
await Promise.all(Object.entries(value).map(([name, prop]) => addFormValue(form, `${key}[${name}]`, prop)));
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${value} instead`);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
2
158
|
//# sourceMappingURL=uploads.mjs.map
|
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"OACO,EACL,QAAQ,EACR,IAAI,EAGJ,0BAA0B,EAE1B,cAAc,GACf;OAE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C,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;KAChF;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACpC,MAAM,OAAO,CAAC,GAAG,CACf,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,IAAI,CAAC,CAAC,CACzF,CAAC;KACH;SAAM;QACL,MAAM,IAAI,SAAS,CACjB,wGAAwG,KAAK,UAAU,CACxH,CAAC;KACH;AACH,CAAC,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.232";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.232'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.232'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/api-promise.d.mts
DELETED
package/api-promise.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
DELETED
package/api-promise.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
-
/** @deprecated Import from ./core/api-promise instead */
|
|
5
|
-
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
-
//# sourceMappingURL=api-promise.js.map
|
package/api-promise.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
DELETED
package/api-promise.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/client.d.mts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
-
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
-
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
-
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
-
import * as Errors from "./core/error.mjs";
|
|
6
|
-
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
-
import * as API from "./resources/index.mjs";
|
|
8
|
-
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
-
import { AssetCreateAssetParams, AssetCreateAssetResponse, Assets } from "./resources/assets.mjs";
|
|
10
|
-
import { Auth, AuthConnectAuthParams, AuthConnectAuthResponse } from "./resources/auth.mjs";
|
|
11
|
-
import { TokenClaimCheckEligibilityParams, TokenClaimCheckEligibilityResponse, TokenClaimGetProofParams, TokenClaimGetProofResponse, TokenClaimListParams, TokenClaimListResponse, TokenClaimListUsersParams, TokenClaimListUsersResponse, TokenClaimRetrieveParams, TokenClaimRetrieveResponse, TokenClaimUpdateClaimParams, TokenClaimUpdateClaimResponse, TokenClaims } from "./resources/token-claims.mjs";
|
|
12
|
-
import { AuctionGetPageSectionsParams, AuctionGetPageSectionsResponse, AuctionListAuctionBidsParams, AuctionListAuctionBidsResponse, AuctionListAuctionsResponse, Auctions } from "./resources/auctions/auctions.mjs";
|
|
13
|
-
import { Loyalty } from "./resources/loyalty/loyalty.mjs";
|
|
14
|
-
import { Minting, MintingGetAssetsParams, MintingGetAssetsResponse, MintingGetTokenGateStatusParams, MintingGetTokenGateStatusResponse } from "./resources/minting/minting.mjs";
|
|
15
|
-
import { Referral, ReferralCreateCodeParams, ReferralCreateCodeResponse } from "./resources/referral/referral.mjs";
|
|
16
|
-
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserCreateDeviceParams, UserCreateDeviceResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, UserVerifyParams, UserVerifyResponse, Users } from "./resources/users/users.mjs";
|
|
17
|
-
import { WebsiteCreateParams, WebsiteCreateResponse, WebsiteListParams, WebsiteListResponse, Websites } from "./resources/websites/websites.mjs";
|
|
18
|
-
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
19
|
-
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
20
|
-
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
21
|
-
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
22
|
-
export interface ClientOptions {
|
|
23
|
-
/**
|
|
24
|
-
* API key required to authenticate with the Snag Solutions API.
|
|
25
|
-
*/
|
|
26
|
-
apiKey?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
29
|
-
*
|
|
30
|
-
* Defaults to process.env['SNAG_SOLUTIONS_BASE_URL'].
|
|
31
|
-
*/
|
|
32
|
-
baseURL?: string | null | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
35
|
-
* from the server before timing out a single request.
|
|
36
|
-
*
|
|
37
|
-
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
38
|
-
* much longer than this timeout before the promise succeeds or fails.
|
|
39
|
-
*
|
|
40
|
-
* @unit milliseconds
|
|
41
|
-
*/
|
|
42
|
-
timeout?: number | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
45
|
-
* Properties will be overridden by per-request `fetchOptions`.
|
|
46
|
-
*/
|
|
47
|
-
fetchOptions?: MergedRequestInit | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Specify a custom `fetch` function implementation.
|
|
50
|
-
*
|
|
51
|
-
* If not provided, we expect that `fetch` is defined globally.
|
|
52
|
-
*/
|
|
53
|
-
fetch?: Fetch | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* The maximum number of times that the client will retry a request in case of a
|
|
56
|
-
* temporary failure, like a network error or a 5XX error from the server.
|
|
57
|
-
*
|
|
58
|
-
* @default 2
|
|
59
|
-
*/
|
|
60
|
-
maxRetries?: number | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Default headers to include with every request to the API.
|
|
63
|
-
*
|
|
64
|
-
* These can be removed in individual requests by explicitly setting the
|
|
65
|
-
* header to `null` in request options.
|
|
66
|
-
*/
|
|
67
|
-
defaultHeaders?: HeadersLike | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Default query parameters to include with every request to the API.
|
|
70
|
-
*
|
|
71
|
-
* These can be removed in individual requests by explicitly setting the
|
|
72
|
-
* param to `undefined` in request options.
|
|
73
|
-
*/
|
|
74
|
-
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Set the log level.
|
|
77
|
-
*
|
|
78
|
-
* Defaults to process.env['SNAG_SOLUTIONS_LOG'] or 'warn' if it isn't set.
|
|
79
|
-
*/
|
|
80
|
-
logLevel?: LogLevel | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Set the logger.
|
|
83
|
-
*
|
|
84
|
-
* Defaults to globalThis.console.
|
|
85
|
-
*/
|
|
86
|
-
logger?: Logger | undefined;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* API Client for interfacing with the Snag Solutions API.
|
|
90
|
-
*/
|
|
91
|
-
export declare class SnagSolutions {
|
|
92
|
-
#private;
|
|
93
|
-
apiKey: string;
|
|
94
|
-
baseURL: string;
|
|
95
|
-
maxRetries: number;
|
|
96
|
-
timeout: number;
|
|
97
|
-
logger: Logger;
|
|
98
|
-
logLevel: LogLevel | undefined;
|
|
99
|
-
fetchOptions: MergedRequestInit | undefined;
|
|
100
|
-
private fetch;
|
|
101
|
-
protected idempotencyHeader?: string;
|
|
102
|
-
private _options;
|
|
103
|
-
/**
|
|
104
|
-
* API Client for interfacing with the Snag Solutions API.
|
|
105
|
-
*
|
|
106
|
-
* @param {string | undefined} [opts.apiKey=process.env['X_API_KEY'] ?? undefined]
|
|
107
|
-
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://admin.snagsolutions.io/] - Override the default base URL for the API.
|
|
108
|
-
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
109
|
-
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
110
|
-
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
111
|
-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
112
|
-
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
113
|
-
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
114
|
-
*/
|
|
115
|
-
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
116
|
-
/**
|
|
117
|
-
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
118
|
-
*/
|
|
119
|
-
withOptions(options: Partial<ClientOptions>): this;
|
|
120
|
-
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
121
|
-
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
122
|
-
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
123
|
-
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
124
|
-
private getUserAgent;
|
|
125
|
-
protected defaultIdempotencyKey(): string;
|
|
126
|
-
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
127
|
-
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
128
|
-
/**
|
|
129
|
-
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
130
|
-
*/
|
|
131
|
-
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
132
|
-
/**
|
|
133
|
-
* Used as a callback for mutating the given `RequestInit` object.
|
|
134
|
-
*
|
|
135
|
-
* This is useful for cases where you want to add certain headers based off of
|
|
136
|
-
* the request properties, e.g. `method` or `url`.
|
|
137
|
-
*/
|
|
138
|
-
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
139
|
-
url: string;
|
|
140
|
-
options: FinalRequestOptions;
|
|
141
|
-
}): Promise<void>;
|
|
142
|
-
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
143
|
-
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
144
|
-
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
145
|
-
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
146
|
-
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
147
|
-
private methodRequest;
|
|
148
|
-
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
149
|
-
private makeRequest;
|
|
150
|
-
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
151
|
-
private shouldRetry;
|
|
152
|
-
private retryRequest;
|
|
153
|
-
private calculateDefaultRetryTimeoutMillis;
|
|
154
|
-
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
155
|
-
retryCount?: number;
|
|
156
|
-
}): Promise<{
|
|
157
|
-
req: FinalizedRequestInit;
|
|
158
|
-
url: string;
|
|
159
|
-
timeout: number;
|
|
160
|
-
}>;
|
|
161
|
-
private buildHeaders;
|
|
162
|
-
private _makeAbort;
|
|
163
|
-
private buildBody;
|
|
164
|
-
static SnagSolutions: typeof SnagSolutions;
|
|
165
|
-
static DEFAULT_TIMEOUT: number;
|
|
166
|
-
static SnagSolutionsError: typeof Errors.SnagSolutionsError;
|
|
167
|
-
static APIError: typeof Errors.APIError;
|
|
168
|
-
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
169
|
-
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
170
|
-
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
171
|
-
static NotFoundError: typeof Errors.NotFoundError;
|
|
172
|
-
static ConflictError: typeof Errors.ConflictError;
|
|
173
|
-
static RateLimitError: typeof Errors.RateLimitError;
|
|
174
|
-
static BadRequestError: typeof Errors.BadRequestError;
|
|
175
|
-
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
176
|
-
static InternalServerError: typeof Errors.InternalServerError;
|
|
177
|
-
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
178
|
-
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
179
|
-
static toFile: typeof Uploads.toFile;
|
|
180
|
-
assets: API.Assets;
|
|
181
|
-
auth: API.Auth;
|
|
182
|
-
auctions: API.Auctions;
|
|
183
|
-
users: API.Users;
|
|
184
|
-
loyalty: API.Loyalty;
|
|
185
|
-
minting: API.Minting;
|
|
186
|
-
referral: API.Referral;
|
|
187
|
-
websites: API.Websites;
|
|
188
|
-
tokenClaims: API.TokenClaims;
|
|
189
|
-
}
|
|
190
|
-
export declare namespace SnagSolutions {
|
|
191
|
-
export type RequestOptions = Opts.RequestOptions;
|
|
192
|
-
export { Assets as Assets, type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
|
|
193
|
-
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthParams as AuthConnectAuthParams, };
|
|
194
|
-
export { Auctions as Auctions, type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
195
|
-
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserCreateDeviceResponse as UserCreateDeviceResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserVerifyResponse as UserVerifyResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserCreateDeviceParams as UserCreateDeviceParams, type UserDisconnectParams as UserDisconnectParams, type UserVerifyParams as UserVerifyParams, };
|
|
196
|
-
export { Loyalty as Loyalty };
|
|
197
|
-
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetTokenGateStatusResponse as MintingGetTokenGateStatusResponse, type MintingGetAssetsParams as MintingGetAssetsParams, type MintingGetTokenGateStatusParams as MintingGetTokenGateStatusParams, };
|
|
198
|
-
export { Referral as Referral, type ReferralCreateCodeResponse as ReferralCreateCodeResponse, type ReferralCreateCodeParams as ReferralCreateCodeParams, };
|
|
199
|
-
export { Websites as Websites, type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
200
|
-
export { TokenClaims as TokenClaims, type TokenClaimRetrieveResponse as TokenClaimRetrieveResponse, type TokenClaimListResponse as TokenClaimListResponse, type TokenClaimCheckEligibilityResponse as TokenClaimCheckEligibilityResponse, type TokenClaimGetProofResponse as TokenClaimGetProofResponse, type TokenClaimListUsersResponse as TokenClaimListUsersResponse, type TokenClaimUpdateClaimResponse as TokenClaimUpdateClaimResponse, type TokenClaimRetrieveParams as TokenClaimRetrieveParams, type TokenClaimListParams as TokenClaimListParams, type TokenClaimCheckEligibilityParams as TokenClaimCheckEligibilityParams, type TokenClaimGetProofParams as TokenClaimGetProofParams, type TokenClaimListUsersParams as TokenClaimListUsersParams, type TokenClaimUpdateClaimParams as TokenClaimUpdateClaimParams, };
|
|
201
|
-
}
|
|
202
|
-
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,EAAE;OAC5D,EAAE,IAAI,EAAE,qBAAqB,EAAE,uBAAuB,EAAE;OACxD,EACL,gCAAgC,EAChC,kCAAkC,EAClC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