@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,1398 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class Badges extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* This endpoint allows you to configure a new badge
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const badge = await client.loyalty.badges.create({
|
|
11
|
-
* conditions: [{}],
|
|
12
|
-
* imageUrl: 'https://example.com/image.png',
|
|
13
|
-
* name: 'Example Badge',
|
|
14
|
-
* organizationId: '123e4567-e89b-12d3-a456-426614174222',
|
|
15
|
-
* websiteId: '123e4567-e89b-12d3-a456-426614174111',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(body: BadgeCreateParams, options?: RequestOptions): APIPromise<BadgeCreateResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* This endpoint allows you to update an existing badge.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const badge = await client.loyalty.badges.update(
|
|
26
|
-
* '123e4567-e89b-12d3-a456-426614174333',
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
update(id: string, body?: BadgeUpdateParams | null | undefined, options?: RequestOptions): APIPromise<BadgeUpdateResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* This endpoint allows you to fetch badge(s) data.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const badges = await client.loyalty.badges.list();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
list(query?: BadgeListParams | null | undefined, options?: RequestOptions): APIPromise<BadgeListResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* This endpoint allows you to delete a badge.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const badge = await client.loyalty.badges.delete(
|
|
46
|
-
* '123e4567-e89b-12d3-a456-426614174333',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
delete(id: string, options?: RequestOptions): APIPromise<BadgeDeleteResponse>;
|
|
51
|
-
/**
|
|
52
|
-
* This endpoint allows you to revoke a badge from an account
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const response = await client.loyalty.badges.revoke(
|
|
57
|
-
* '123e4567-e89b-12d3-a456-426614174333',
|
|
58
|
-
* );
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
revoke(id: string, body?: BadgeRevokeParams | null | undefined, options?: RequestOptions): APIPromise<BadgeRevokeResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* This endpoint allows you to reward a badge for an account
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const response = await client.loyalty.badges.reward(
|
|
68
|
-
* '123e4567-e89b-12d3-a456-426614174333',
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
reward(id: string, body?: BadgeRewardParams | null | undefined, options?: RequestOptions): APIPromise<BadgeRewardResponse>;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Response returned upon successful creation of the badge.
|
|
76
|
-
*/
|
|
77
|
-
export interface BadgeCreateResponse {
|
|
78
|
-
/**
|
|
79
|
-
* UUID of the badge (converted to lowercase)
|
|
80
|
-
*/
|
|
81
|
-
id: string;
|
|
82
|
-
/**
|
|
83
|
-
* The date and time the badge was created
|
|
84
|
-
*/
|
|
85
|
-
createdAt: string;
|
|
86
|
-
/**
|
|
87
|
-
* The description of the badge
|
|
88
|
-
*/
|
|
89
|
-
description: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The URL of the badge image
|
|
92
|
-
*/
|
|
93
|
-
imageUrl: string | null;
|
|
94
|
-
/**
|
|
95
|
-
* Array of conditions of the badge
|
|
96
|
-
*/
|
|
97
|
-
loyaltyConditions: Array<BadgeCreateResponse.LoyaltyCondition>;
|
|
98
|
-
/**
|
|
99
|
-
* The name of the badge
|
|
100
|
-
*/
|
|
101
|
-
name: string;
|
|
102
|
-
/**
|
|
103
|
-
* The date and time the badge was updated
|
|
104
|
-
*/
|
|
105
|
-
updatedAt: string;
|
|
106
|
-
/**
|
|
107
|
-
* Array of data jobs associated with the badge
|
|
108
|
-
*/
|
|
109
|
-
dataJobs?: Array<BadgeCreateResponse.DataJob>;
|
|
110
|
-
/**
|
|
111
|
-
* Whether to hide this badge in the user interface
|
|
112
|
-
*/
|
|
113
|
-
hideInUi?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Array of user badges
|
|
116
|
-
*/
|
|
117
|
-
loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
118
|
-
/**
|
|
119
|
-
* Array of loyalty rules associated with the badge
|
|
120
|
-
*/
|
|
121
|
-
loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
|
|
122
|
-
}
|
|
123
|
-
export declare namespace BadgeCreateResponse {
|
|
124
|
-
/**
|
|
125
|
-
* Schema for a loyalty condition rule.
|
|
126
|
-
*/
|
|
127
|
-
interface LoyaltyCondition {
|
|
128
|
-
/**
|
|
129
|
-
* UUID of the condition (converted to lowercase)
|
|
130
|
-
*/
|
|
131
|
-
id: string;
|
|
132
|
-
/**
|
|
133
|
-
* The amount of the condition
|
|
134
|
-
*/
|
|
135
|
-
amount: number | null;
|
|
136
|
-
association: Array<LoyaltyCondition.Association>;
|
|
137
|
-
/**
|
|
138
|
-
* URL of the CSV file
|
|
139
|
-
*/
|
|
140
|
-
csvUrl: string | null;
|
|
141
|
-
/**
|
|
142
|
-
* The description of the condition
|
|
143
|
-
*/
|
|
144
|
-
description: string | null;
|
|
145
|
-
/**
|
|
146
|
-
* UUID of the currency (converted to lowercase)
|
|
147
|
-
*/
|
|
148
|
-
loyaltyCurrencyId: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* UUID of the rule group (converted to lowercase)
|
|
151
|
-
*/
|
|
152
|
-
loyaltyRuleGroupId: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* The repeat count of the condition
|
|
155
|
-
*/
|
|
156
|
-
repeatCount: number | null;
|
|
157
|
-
/**
|
|
158
|
-
* The required count of the condition
|
|
159
|
-
*/
|
|
160
|
-
requiredCount: number | null;
|
|
161
|
-
/**
|
|
162
|
-
* The type of the condition
|
|
163
|
-
*/
|
|
164
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
165
|
-
/**
|
|
166
|
-
* Array of CSV files associated with the condition
|
|
167
|
-
*/
|
|
168
|
-
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
169
|
-
}
|
|
170
|
-
namespace LoyaltyCondition {
|
|
171
|
-
interface Association {
|
|
172
|
-
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
173
|
-
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
174
|
-
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
175
|
-
loyaltyRule: Association.LoyaltyRule | null;
|
|
176
|
-
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
177
|
-
}
|
|
178
|
-
namespace Association {
|
|
179
|
-
interface LoyaltyBadge {
|
|
180
|
-
/**
|
|
181
|
-
* UUID of the association (converted to lowercase)
|
|
182
|
-
*/
|
|
183
|
-
id: string;
|
|
184
|
-
/**
|
|
185
|
-
* The name of the association
|
|
186
|
-
*/
|
|
187
|
-
name: string;
|
|
188
|
-
}
|
|
189
|
-
interface LoyaltyCurrency {
|
|
190
|
-
/**
|
|
191
|
-
* UUID of the association (converted to lowercase)
|
|
192
|
-
*/
|
|
193
|
-
id: string;
|
|
194
|
-
/**
|
|
195
|
-
* The name of the association
|
|
196
|
-
*/
|
|
197
|
-
name: string;
|
|
198
|
-
}
|
|
199
|
-
interface LoyaltyLeaderboardView {
|
|
200
|
-
/**
|
|
201
|
-
* UUID of the association (converted to lowercase)
|
|
202
|
-
*/
|
|
203
|
-
id: string;
|
|
204
|
-
/**
|
|
205
|
-
* The name of the association
|
|
206
|
-
*/
|
|
207
|
-
name: string;
|
|
208
|
-
}
|
|
209
|
-
interface LoyaltyRule {
|
|
210
|
-
/**
|
|
211
|
-
* UUID of the association (converted to lowercase)
|
|
212
|
-
*/
|
|
213
|
-
id: string;
|
|
214
|
-
/**
|
|
215
|
-
* The name of the association
|
|
216
|
-
*/
|
|
217
|
-
name: string;
|
|
218
|
-
}
|
|
219
|
-
interface LoyaltyRuleGroup {
|
|
220
|
-
/**
|
|
221
|
-
* UUID of the association (converted to lowercase)
|
|
222
|
-
*/
|
|
223
|
-
id: string;
|
|
224
|
-
/**
|
|
225
|
-
* The name of the association
|
|
226
|
-
*/
|
|
227
|
-
name: string;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
interface CsvFile {
|
|
231
|
-
/**
|
|
232
|
-
* UUID of the CSV file (converted to lowercase)
|
|
233
|
-
*/
|
|
234
|
-
id: string;
|
|
235
|
-
/**
|
|
236
|
-
* The description of the CSV file
|
|
237
|
-
*/
|
|
238
|
-
description: string | null;
|
|
239
|
-
/**
|
|
240
|
-
* The name of the CSV file
|
|
241
|
-
*/
|
|
242
|
-
name: string | null;
|
|
243
|
-
/**
|
|
244
|
-
* The URL of the CSV file
|
|
245
|
-
*/
|
|
246
|
-
url: string | null;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
interface DataJob {
|
|
250
|
-
/**
|
|
251
|
-
* UUID of the data job (converted to lowercase)
|
|
252
|
-
*/
|
|
253
|
-
id: string;
|
|
254
|
-
/**
|
|
255
|
-
* The date and time the data job was created
|
|
256
|
-
*/
|
|
257
|
-
createdAt: string;
|
|
258
|
-
/**
|
|
259
|
-
* The status of the data job
|
|
260
|
-
*/
|
|
261
|
-
status: 'pending' | 'processing' | 'complete' | 'failed' | 'cancelled';
|
|
262
|
-
/**
|
|
263
|
-
* The date and time the data job was updated
|
|
264
|
-
*/
|
|
265
|
-
updatedAt: string;
|
|
266
|
-
/**
|
|
267
|
-
* The message associated with the data job
|
|
268
|
-
*/
|
|
269
|
-
message?: string | null;
|
|
270
|
-
}
|
|
271
|
-
interface LoyaltyBadgeUser {
|
|
272
|
-
/**
|
|
273
|
-
* UUID of the user badge (converted to lowercase)
|
|
274
|
-
*/
|
|
275
|
-
id: string;
|
|
276
|
-
/**
|
|
277
|
-
* The date and time the user badge was created
|
|
278
|
-
*/
|
|
279
|
-
createdAt: string;
|
|
280
|
-
/**
|
|
281
|
-
* UUID of the badge (converted to lowercase)
|
|
282
|
-
*/
|
|
283
|
-
loyaltyBadgeId: string;
|
|
284
|
-
/**
|
|
285
|
-
* UUID of the organization (converted to lowercase)
|
|
286
|
-
*/
|
|
287
|
-
organizationId: string;
|
|
288
|
-
/**
|
|
289
|
-
* The status of the badge
|
|
290
|
-
*/
|
|
291
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
292
|
-
/**
|
|
293
|
-
* The date and time the user badge was updated
|
|
294
|
-
*/
|
|
295
|
-
updatedAt: string;
|
|
296
|
-
/**
|
|
297
|
-
* UUID of the user (converted to lowercase)
|
|
298
|
-
*/
|
|
299
|
-
userId: string;
|
|
300
|
-
/**
|
|
301
|
-
* UUID of the website (converted to lowercase)
|
|
302
|
-
*/
|
|
303
|
-
websiteId: string;
|
|
304
|
-
/**
|
|
305
|
-
* Whether the user has dismissed the badge in the UI
|
|
306
|
-
*/
|
|
307
|
-
dismissedInUi?: boolean;
|
|
308
|
-
/**
|
|
309
|
-
* Whether to hide this badge in the user interface
|
|
310
|
-
*/
|
|
311
|
-
hideInUi?: boolean;
|
|
312
|
-
/**
|
|
313
|
-
* Array of progress for the badge
|
|
314
|
-
*/
|
|
315
|
-
progress?: unknown;
|
|
316
|
-
/**
|
|
317
|
-
* User associated with the user badge
|
|
318
|
-
*/
|
|
319
|
-
user?: LoyaltyBadgeUser.User;
|
|
320
|
-
}
|
|
321
|
-
namespace LoyaltyBadgeUser {
|
|
322
|
-
/**
|
|
323
|
-
* User associated with the user badge
|
|
324
|
-
*/
|
|
325
|
-
interface User {
|
|
326
|
-
/**
|
|
327
|
-
* UUID of the user (converted to lowercase)
|
|
328
|
-
*/
|
|
329
|
-
id: string;
|
|
330
|
-
/**
|
|
331
|
-
* Wallet address of the user
|
|
332
|
-
*/
|
|
333
|
-
walletAddress: string;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
interface LoyaltyRule {
|
|
337
|
-
/**
|
|
338
|
-
* UUID of the loyalty rule (converted to lowercase)
|
|
339
|
-
*/
|
|
340
|
-
id: string;
|
|
341
|
-
/**
|
|
342
|
-
* The name of the loyalty rule
|
|
343
|
-
*/
|
|
344
|
-
name: string;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Response returned upon successful update of the badge.
|
|
349
|
-
*/
|
|
350
|
-
export interface BadgeUpdateResponse {
|
|
351
|
-
/**
|
|
352
|
-
* UUID of the badge (converted to lowercase)
|
|
353
|
-
*/
|
|
354
|
-
id: string;
|
|
355
|
-
/**
|
|
356
|
-
* The date and time the badge was created
|
|
357
|
-
*/
|
|
358
|
-
createdAt: string;
|
|
359
|
-
/**
|
|
360
|
-
* The description of the badge
|
|
361
|
-
*/
|
|
362
|
-
description: string | null;
|
|
363
|
-
/**
|
|
364
|
-
* The URL of the badge image
|
|
365
|
-
*/
|
|
366
|
-
imageUrl: string | null;
|
|
367
|
-
/**
|
|
368
|
-
* Array of conditions of the badge
|
|
369
|
-
*/
|
|
370
|
-
loyaltyConditions: Array<BadgeUpdateResponse.LoyaltyCondition>;
|
|
371
|
-
/**
|
|
372
|
-
* The name of the badge
|
|
373
|
-
*/
|
|
374
|
-
name: string;
|
|
375
|
-
/**
|
|
376
|
-
* The date and time the badge was updated
|
|
377
|
-
*/
|
|
378
|
-
updatedAt: string;
|
|
379
|
-
/**
|
|
380
|
-
* Array of data jobs associated with the badge
|
|
381
|
-
*/
|
|
382
|
-
dataJobs?: Array<BadgeUpdateResponse.DataJob>;
|
|
383
|
-
/**
|
|
384
|
-
* Whether to hide this badge in the user interface
|
|
385
|
-
*/
|
|
386
|
-
hideInUi?: boolean;
|
|
387
|
-
/**
|
|
388
|
-
* Array of user badges
|
|
389
|
-
*/
|
|
390
|
-
loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
391
|
-
/**
|
|
392
|
-
* Array of loyalty rules associated with the badge
|
|
393
|
-
*/
|
|
394
|
-
loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
|
|
395
|
-
}
|
|
396
|
-
export declare namespace BadgeUpdateResponse {
|
|
397
|
-
/**
|
|
398
|
-
* Schema for a loyalty condition rule.
|
|
399
|
-
*/
|
|
400
|
-
interface LoyaltyCondition {
|
|
401
|
-
/**
|
|
402
|
-
* UUID of the condition (converted to lowercase)
|
|
403
|
-
*/
|
|
404
|
-
id: string;
|
|
405
|
-
/**
|
|
406
|
-
* The amount of the condition
|
|
407
|
-
*/
|
|
408
|
-
amount: number | null;
|
|
409
|
-
association: Array<LoyaltyCondition.Association>;
|
|
410
|
-
/**
|
|
411
|
-
* URL of the CSV file
|
|
412
|
-
*/
|
|
413
|
-
csvUrl: string | null;
|
|
414
|
-
/**
|
|
415
|
-
* The description of the condition
|
|
416
|
-
*/
|
|
417
|
-
description: string | null;
|
|
418
|
-
/**
|
|
419
|
-
* UUID of the currency (converted to lowercase)
|
|
420
|
-
*/
|
|
421
|
-
loyaltyCurrencyId: string | null;
|
|
422
|
-
/**
|
|
423
|
-
* UUID of the rule group (converted to lowercase)
|
|
424
|
-
*/
|
|
425
|
-
loyaltyRuleGroupId: string | null;
|
|
426
|
-
/**
|
|
427
|
-
* The repeat count of the condition
|
|
428
|
-
*/
|
|
429
|
-
repeatCount: number | null;
|
|
430
|
-
/**
|
|
431
|
-
* The required count of the condition
|
|
432
|
-
*/
|
|
433
|
-
requiredCount: number | null;
|
|
434
|
-
/**
|
|
435
|
-
* The type of the condition
|
|
436
|
-
*/
|
|
437
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
438
|
-
/**
|
|
439
|
-
* Array of CSV files associated with the condition
|
|
440
|
-
*/
|
|
441
|
-
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
442
|
-
}
|
|
443
|
-
namespace LoyaltyCondition {
|
|
444
|
-
interface Association {
|
|
445
|
-
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
446
|
-
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
447
|
-
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
448
|
-
loyaltyRule: Association.LoyaltyRule | null;
|
|
449
|
-
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
450
|
-
}
|
|
451
|
-
namespace Association {
|
|
452
|
-
interface LoyaltyBadge {
|
|
453
|
-
/**
|
|
454
|
-
* UUID of the association (converted to lowercase)
|
|
455
|
-
*/
|
|
456
|
-
id: string;
|
|
457
|
-
/**
|
|
458
|
-
* The name of the association
|
|
459
|
-
*/
|
|
460
|
-
name: string;
|
|
461
|
-
}
|
|
462
|
-
interface LoyaltyCurrency {
|
|
463
|
-
/**
|
|
464
|
-
* UUID of the association (converted to lowercase)
|
|
465
|
-
*/
|
|
466
|
-
id: string;
|
|
467
|
-
/**
|
|
468
|
-
* The name of the association
|
|
469
|
-
*/
|
|
470
|
-
name: string;
|
|
471
|
-
}
|
|
472
|
-
interface LoyaltyLeaderboardView {
|
|
473
|
-
/**
|
|
474
|
-
* UUID of the association (converted to lowercase)
|
|
475
|
-
*/
|
|
476
|
-
id: string;
|
|
477
|
-
/**
|
|
478
|
-
* The name of the association
|
|
479
|
-
*/
|
|
480
|
-
name: string;
|
|
481
|
-
}
|
|
482
|
-
interface LoyaltyRule {
|
|
483
|
-
/**
|
|
484
|
-
* UUID of the association (converted to lowercase)
|
|
485
|
-
*/
|
|
486
|
-
id: string;
|
|
487
|
-
/**
|
|
488
|
-
* The name of the association
|
|
489
|
-
*/
|
|
490
|
-
name: string;
|
|
491
|
-
}
|
|
492
|
-
interface LoyaltyRuleGroup {
|
|
493
|
-
/**
|
|
494
|
-
* UUID of the association (converted to lowercase)
|
|
495
|
-
*/
|
|
496
|
-
id: string;
|
|
497
|
-
/**
|
|
498
|
-
* The name of the association
|
|
499
|
-
*/
|
|
500
|
-
name: string;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
interface CsvFile {
|
|
504
|
-
/**
|
|
505
|
-
* UUID of the CSV file (converted to lowercase)
|
|
506
|
-
*/
|
|
507
|
-
id: string;
|
|
508
|
-
/**
|
|
509
|
-
* The description of the CSV file
|
|
510
|
-
*/
|
|
511
|
-
description: string | null;
|
|
512
|
-
/**
|
|
513
|
-
* The name of the CSV file
|
|
514
|
-
*/
|
|
515
|
-
name: string | null;
|
|
516
|
-
/**
|
|
517
|
-
* The URL of the CSV file
|
|
518
|
-
*/
|
|
519
|
-
url: string | null;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
interface DataJob {
|
|
523
|
-
/**
|
|
524
|
-
* UUID of the data job (converted to lowercase)
|
|
525
|
-
*/
|
|
526
|
-
id: string;
|
|
527
|
-
/**
|
|
528
|
-
* The date and time the data job was created
|
|
529
|
-
*/
|
|
530
|
-
createdAt: string;
|
|
531
|
-
/**
|
|
532
|
-
* The status of the data job
|
|
533
|
-
*/
|
|
534
|
-
status: 'pending' | 'processing' | 'complete' | 'failed' | 'cancelled';
|
|
535
|
-
/**
|
|
536
|
-
* The date and time the data job was updated
|
|
537
|
-
*/
|
|
538
|
-
updatedAt: string;
|
|
539
|
-
/**
|
|
540
|
-
* The message associated with the data job
|
|
541
|
-
*/
|
|
542
|
-
message?: string | null;
|
|
543
|
-
}
|
|
544
|
-
interface LoyaltyBadgeUser {
|
|
545
|
-
/**
|
|
546
|
-
* UUID of the user badge (converted to lowercase)
|
|
547
|
-
*/
|
|
548
|
-
id: string;
|
|
549
|
-
/**
|
|
550
|
-
* The date and time the user badge was created
|
|
551
|
-
*/
|
|
552
|
-
createdAt: string;
|
|
553
|
-
/**
|
|
554
|
-
* UUID of the badge (converted to lowercase)
|
|
555
|
-
*/
|
|
556
|
-
loyaltyBadgeId: string;
|
|
557
|
-
/**
|
|
558
|
-
* UUID of the organization (converted to lowercase)
|
|
559
|
-
*/
|
|
560
|
-
organizationId: string;
|
|
561
|
-
/**
|
|
562
|
-
* The status of the badge
|
|
563
|
-
*/
|
|
564
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
565
|
-
/**
|
|
566
|
-
* The date and time the user badge was updated
|
|
567
|
-
*/
|
|
568
|
-
updatedAt: string;
|
|
569
|
-
/**
|
|
570
|
-
* UUID of the user (converted to lowercase)
|
|
571
|
-
*/
|
|
572
|
-
userId: string;
|
|
573
|
-
/**
|
|
574
|
-
* UUID of the website (converted to lowercase)
|
|
575
|
-
*/
|
|
576
|
-
websiteId: string;
|
|
577
|
-
/**
|
|
578
|
-
* Whether the user has dismissed the badge in the UI
|
|
579
|
-
*/
|
|
580
|
-
dismissedInUi?: boolean;
|
|
581
|
-
/**
|
|
582
|
-
* Whether to hide this badge in the user interface
|
|
583
|
-
*/
|
|
584
|
-
hideInUi?: boolean;
|
|
585
|
-
/**
|
|
586
|
-
* Array of progress for the badge
|
|
587
|
-
*/
|
|
588
|
-
progress?: unknown;
|
|
589
|
-
/**
|
|
590
|
-
* User associated with the user badge
|
|
591
|
-
*/
|
|
592
|
-
user?: LoyaltyBadgeUser.User;
|
|
593
|
-
}
|
|
594
|
-
namespace LoyaltyBadgeUser {
|
|
595
|
-
/**
|
|
596
|
-
* User associated with the user badge
|
|
597
|
-
*/
|
|
598
|
-
interface User {
|
|
599
|
-
/**
|
|
600
|
-
* UUID of the user (converted to lowercase)
|
|
601
|
-
*/
|
|
602
|
-
id: string;
|
|
603
|
-
/**
|
|
604
|
-
* Wallet address of the user
|
|
605
|
-
*/
|
|
606
|
-
walletAddress: string;
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
interface LoyaltyRule {
|
|
610
|
-
/**
|
|
611
|
-
* UUID of the loyalty rule (converted to lowercase)
|
|
612
|
-
*/
|
|
613
|
-
id: string;
|
|
614
|
-
/**
|
|
615
|
-
* The name of the loyalty rule
|
|
616
|
-
*/
|
|
617
|
-
name: string;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
export interface BadgeListResponse {
|
|
621
|
-
data: Array<BadgeListResponse.Data>;
|
|
622
|
-
/**
|
|
623
|
-
* Indicates if there is a next page of results
|
|
624
|
-
*/
|
|
625
|
-
hasNextPage: boolean;
|
|
626
|
-
}
|
|
627
|
-
export declare namespace BadgeListResponse {
|
|
628
|
-
/**
|
|
629
|
-
* Response returned upon successful fetching of the badges.
|
|
630
|
-
*/
|
|
631
|
-
interface Data {
|
|
632
|
-
/**
|
|
633
|
-
* UUID of the badge (converted to lowercase)
|
|
634
|
-
*/
|
|
635
|
-
id: string;
|
|
636
|
-
/**
|
|
637
|
-
* The date and time the badge was created
|
|
638
|
-
*/
|
|
639
|
-
createdAt: string;
|
|
640
|
-
/**
|
|
641
|
-
* The description of the badge
|
|
642
|
-
*/
|
|
643
|
-
description: string | null;
|
|
644
|
-
/**
|
|
645
|
-
* The URL of the badge image
|
|
646
|
-
*/
|
|
647
|
-
imageUrl: string | null;
|
|
648
|
-
/**
|
|
649
|
-
* Array of conditions of the badge
|
|
650
|
-
*/
|
|
651
|
-
loyaltyConditions: Array<Data.LoyaltyCondition>;
|
|
652
|
-
/**
|
|
653
|
-
* The name of the badge
|
|
654
|
-
*/
|
|
655
|
-
name: string;
|
|
656
|
-
/**
|
|
657
|
-
* The date and time the badge was updated
|
|
658
|
-
*/
|
|
659
|
-
updatedAt: string;
|
|
660
|
-
/**
|
|
661
|
-
* Array of data jobs associated with the badge
|
|
662
|
-
*/
|
|
663
|
-
dataJobs?: Array<Data.DataJob>;
|
|
664
|
-
/**
|
|
665
|
-
* Whether to hide this badge in the user interface
|
|
666
|
-
*/
|
|
667
|
-
hideInUi?: boolean;
|
|
668
|
-
/**
|
|
669
|
-
* Array of user badges
|
|
670
|
-
*/
|
|
671
|
-
loyaltyBadgeUsers?: Array<Data.LoyaltyBadgeUser>;
|
|
672
|
-
/**
|
|
673
|
-
* Array of loyalty rules associated with the badge
|
|
674
|
-
*/
|
|
675
|
-
loyaltyRules?: Array<Data.LoyaltyRule>;
|
|
676
|
-
}
|
|
677
|
-
namespace Data {
|
|
678
|
-
/**
|
|
679
|
-
* Schema for a loyalty condition rule.
|
|
680
|
-
*/
|
|
681
|
-
interface LoyaltyCondition {
|
|
682
|
-
/**
|
|
683
|
-
* UUID of the condition (converted to lowercase)
|
|
684
|
-
*/
|
|
685
|
-
id: string;
|
|
686
|
-
/**
|
|
687
|
-
* The amount of the condition
|
|
688
|
-
*/
|
|
689
|
-
amount: number | null;
|
|
690
|
-
association: Array<LoyaltyCondition.Association>;
|
|
691
|
-
/**
|
|
692
|
-
* URL of the CSV file
|
|
693
|
-
*/
|
|
694
|
-
csvUrl: string | null;
|
|
695
|
-
/**
|
|
696
|
-
* The description of the condition
|
|
697
|
-
*/
|
|
698
|
-
description: string | null;
|
|
699
|
-
/**
|
|
700
|
-
* UUID of the currency (converted to lowercase)
|
|
701
|
-
*/
|
|
702
|
-
loyaltyCurrencyId: string | null;
|
|
703
|
-
/**
|
|
704
|
-
* UUID of the rule group (converted to lowercase)
|
|
705
|
-
*/
|
|
706
|
-
loyaltyRuleGroupId: string | null;
|
|
707
|
-
/**
|
|
708
|
-
* The repeat count of the condition
|
|
709
|
-
*/
|
|
710
|
-
repeatCount: number | null;
|
|
711
|
-
/**
|
|
712
|
-
* The required count of the condition
|
|
713
|
-
*/
|
|
714
|
-
requiredCount: number | null;
|
|
715
|
-
/**
|
|
716
|
-
* The type of the condition
|
|
717
|
-
*/
|
|
718
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
719
|
-
/**
|
|
720
|
-
* Array of CSV files associated with the condition
|
|
721
|
-
*/
|
|
722
|
-
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
723
|
-
}
|
|
724
|
-
namespace LoyaltyCondition {
|
|
725
|
-
interface Association {
|
|
726
|
-
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
727
|
-
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
728
|
-
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
729
|
-
loyaltyRule: Association.LoyaltyRule | null;
|
|
730
|
-
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
731
|
-
}
|
|
732
|
-
namespace Association {
|
|
733
|
-
interface LoyaltyBadge {
|
|
734
|
-
/**
|
|
735
|
-
* UUID of the association (converted to lowercase)
|
|
736
|
-
*/
|
|
737
|
-
id: string;
|
|
738
|
-
/**
|
|
739
|
-
* The name of the association
|
|
740
|
-
*/
|
|
741
|
-
name: string;
|
|
742
|
-
}
|
|
743
|
-
interface LoyaltyCurrency {
|
|
744
|
-
/**
|
|
745
|
-
* UUID of the association (converted to lowercase)
|
|
746
|
-
*/
|
|
747
|
-
id: string;
|
|
748
|
-
/**
|
|
749
|
-
* The name of the association
|
|
750
|
-
*/
|
|
751
|
-
name: string;
|
|
752
|
-
}
|
|
753
|
-
interface LoyaltyLeaderboardView {
|
|
754
|
-
/**
|
|
755
|
-
* UUID of the association (converted to lowercase)
|
|
756
|
-
*/
|
|
757
|
-
id: string;
|
|
758
|
-
/**
|
|
759
|
-
* The name of the association
|
|
760
|
-
*/
|
|
761
|
-
name: string;
|
|
762
|
-
}
|
|
763
|
-
interface LoyaltyRule {
|
|
764
|
-
/**
|
|
765
|
-
* UUID of the association (converted to lowercase)
|
|
766
|
-
*/
|
|
767
|
-
id: string;
|
|
768
|
-
/**
|
|
769
|
-
* The name of the association
|
|
770
|
-
*/
|
|
771
|
-
name: string;
|
|
772
|
-
}
|
|
773
|
-
interface LoyaltyRuleGroup {
|
|
774
|
-
/**
|
|
775
|
-
* UUID of the association (converted to lowercase)
|
|
776
|
-
*/
|
|
777
|
-
id: string;
|
|
778
|
-
/**
|
|
779
|
-
* The name of the association
|
|
780
|
-
*/
|
|
781
|
-
name: string;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
interface CsvFile {
|
|
785
|
-
/**
|
|
786
|
-
* UUID of the CSV file (converted to lowercase)
|
|
787
|
-
*/
|
|
788
|
-
id: string;
|
|
789
|
-
/**
|
|
790
|
-
* The description of the CSV file
|
|
791
|
-
*/
|
|
792
|
-
description: string | null;
|
|
793
|
-
/**
|
|
794
|
-
* The name of the CSV file
|
|
795
|
-
*/
|
|
796
|
-
name: string | null;
|
|
797
|
-
/**
|
|
798
|
-
* The URL of the CSV file
|
|
799
|
-
*/
|
|
800
|
-
url: string | null;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
interface DataJob {
|
|
804
|
-
/**
|
|
805
|
-
* UUID of the data job (converted to lowercase)
|
|
806
|
-
*/
|
|
807
|
-
id: string;
|
|
808
|
-
/**
|
|
809
|
-
* The date and time the data job was created
|
|
810
|
-
*/
|
|
811
|
-
createdAt: string;
|
|
812
|
-
/**
|
|
813
|
-
* The status of the data job
|
|
814
|
-
*/
|
|
815
|
-
status: 'pending' | 'processing' | 'complete' | 'failed' | 'cancelled';
|
|
816
|
-
/**
|
|
817
|
-
* The date and time the data job was updated
|
|
818
|
-
*/
|
|
819
|
-
updatedAt: string;
|
|
820
|
-
/**
|
|
821
|
-
* The message associated with the data job
|
|
822
|
-
*/
|
|
823
|
-
message?: string | null;
|
|
824
|
-
}
|
|
825
|
-
interface LoyaltyBadgeUser {
|
|
826
|
-
/**
|
|
827
|
-
* UUID of the user badge (converted to lowercase)
|
|
828
|
-
*/
|
|
829
|
-
id: string;
|
|
830
|
-
/**
|
|
831
|
-
* The date and time the user badge was created
|
|
832
|
-
*/
|
|
833
|
-
createdAt: string;
|
|
834
|
-
/**
|
|
835
|
-
* UUID of the badge (converted to lowercase)
|
|
836
|
-
*/
|
|
837
|
-
loyaltyBadgeId: string;
|
|
838
|
-
/**
|
|
839
|
-
* UUID of the organization (converted to lowercase)
|
|
840
|
-
*/
|
|
841
|
-
organizationId: string;
|
|
842
|
-
/**
|
|
843
|
-
* The status of the badge
|
|
844
|
-
*/
|
|
845
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
846
|
-
/**
|
|
847
|
-
* The date and time the user badge was updated
|
|
848
|
-
*/
|
|
849
|
-
updatedAt: string;
|
|
850
|
-
/**
|
|
851
|
-
* UUID of the user (converted to lowercase)
|
|
852
|
-
*/
|
|
853
|
-
userId: string;
|
|
854
|
-
/**
|
|
855
|
-
* UUID of the website (converted to lowercase)
|
|
856
|
-
*/
|
|
857
|
-
websiteId: string;
|
|
858
|
-
/**
|
|
859
|
-
* Whether the user has dismissed the badge in the UI
|
|
860
|
-
*/
|
|
861
|
-
dismissedInUi?: boolean;
|
|
862
|
-
/**
|
|
863
|
-
* Whether to hide this badge in the user interface
|
|
864
|
-
*/
|
|
865
|
-
hideInUi?: boolean;
|
|
866
|
-
/**
|
|
867
|
-
* Array of progress for the badge
|
|
868
|
-
*/
|
|
869
|
-
progress?: unknown;
|
|
870
|
-
/**
|
|
871
|
-
* User associated with the user badge
|
|
872
|
-
*/
|
|
873
|
-
user?: LoyaltyBadgeUser.User;
|
|
874
|
-
}
|
|
875
|
-
namespace LoyaltyBadgeUser {
|
|
876
|
-
/**
|
|
877
|
-
* User associated with the user badge
|
|
878
|
-
*/
|
|
879
|
-
interface User {
|
|
880
|
-
/**
|
|
881
|
-
* UUID of the user (converted to lowercase)
|
|
882
|
-
*/
|
|
883
|
-
id: string;
|
|
884
|
-
/**
|
|
885
|
-
* Wallet address of the user
|
|
886
|
-
*/
|
|
887
|
-
walletAddress: string;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
interface LoyaltyRule {
|
|
891
|
-
/**
|
|
892
|
-
* UUID of the loyalty rule (converted to lowercase)
|
|
893
|
-
*/
|
|
894
|
-
id: string;
|
|
895
|
-
/**
|
|
896
|
-
* The name of the loyalty rule
|
|
897
|
-
*/
|
|
898
|
-
name: string;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
/**
|
|
903
|
-
* Response returned upon successful deletion of the badge.
|
|
904
|
-
*/
|
|
905
|
-
export interface BadgeDeleteResponse {
|
|
906
|
-
/**
|
|
907
|
-
* UUID of the badge (converted to lowercase)
|
|
908
|
-
*/
|
|
909
|
-
id: string;
|
|
910
|
-
/**
|
|
911
|
-
* The date and time the badge was created
|
|
912
|
-
*/
|
|
913
|
-
createdAt: string;
|
|
914
|
-
/**
|
|
915
|
-
* The description of the badge
|
|
916
|
-
*/
|
|
917
|
-
description: string | null;
|
|
918
|
-
/**
|
|
919
|
-
* The URL of the badge image
|
|
920
|
-
*/
|
|
921
|
-
imageUrl: string | null;
|
|
922
|
-
/**
|
|
923
|
-
* Array of conditions of the badge
|
|
924
|
-
*/
|
|
925
|
-
loyaltyConditions: Array<BadgeDeleteResponse.LoyaltyCondition>;
|
|
926
|
-
/**
|
|
927
|
-
* The name of the badge
|
|
928
|
-
*/
|
|
929
|
-
name: string;
|
|
930
|
-
/**
|
|
931
|
-
* The date and time the badge was updated
|
|
932
|
-
*/
|
|
933
|
-
updatedAt: string;
|
|
934
|
-
/**
|
|
935
|
-
* Array of data jobs associated with the badge
|
|
936
|
-
*/
|
|
937
|
-
dataJobs?: Array<BadgeDeleteResponse.DataJob>;
|
|
938
|
-
/**
|
|
939
|
-
* Whether to hide this badge in the user interface
|
|
940
|
-
*/
|
|
941
|
-
hideInUi?: boolean;
|
|
942
|
-
/**
|
|
943
|
-
* Array of user badges
|
|
944
|
-
*/
|
|
945
|
-
loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
946
|
-
/**
|
|
947
|
-
* Array of loyalty rules associated with the badge
|
|
948
|
-
*/
|
|
949
|
-
loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
|
|
950
|
-
}
|
|
951
|
-
export declare namespace BadgeDeleteResponse {
|
|
952
|
-
/**
|
|
953
|
-
* Schema for a loyalty condition rule.
|
|
954
|
-
*/
|
|
955
|
-
interface LoyaltyCondition {
|
|
956
|
-
/**
|
|
957
|
-
* UUID of the condition (converted to lowercase)
|
|
958
|
-
*/
|
|
959
|
-
id: string;
|
|
960
|
-
/**
|
|
961
|
-
* The amount of the condition
|
|
962
|
-
*/
|
|
963
|
-
amount: number | null;
|
|
964
|
-
association: Array<LoyaltyCondition.Association>;
|
|
965
|
-
/**
|
|
966
|
-
* URL of the CSV file
|
|
967
|
-
*/
|
|
968
|
-
csvUrl: string | null;
|
|
969
|
-
/**
|
|
970
|
-
* The description of the condition
|
|
971
|
-
*/
|
|
972
|
-
description: string | null;
|
|
973
|
-
/**
|
|
974
|
-
* UUID of the currency (converted to lowercase)
|
|
975
|
-
*/
|
|
976
|
-
loyaltyCurrencyId: string | null;
|
|
977
|
-
/**
|
|
978
|
-
* UUID of the rule group (converted to lowercase)
|
|
979
|
-
*/
|
|
980
|
-
loyaltyRuleGroupId: string | null;
|
|
981
|
-
/**
|
|
982
|
-
* The repeat count of the condition
|
|
983
|
-
*/
|
|
984
|
-
repeatCount: number | null;
|
|
985
|
-
/**
|
|
986
|
-
* The required count of the condition
|
|
987
|
-
*/
|
|
988
|
-
requiredCount: number | null;
|
|
989
|
-
/**
|
|
990
|
-
* The type of the condition
|
|
991
|
-
*/
|
|
992
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
993
|
-
/**
|
|
994
|
-
* Array of CSV files associated with the condition
|
|
995
|
-
*/
|
|
996
|
-
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
997
|
-
}
|
|
998
|
-
namespace LoyaltyCondition {
|
|
999
|
-
interface Association {
|
|
1000
|
-
loyaltyBadge: Association.LoyaltyBadge | null;
|
|
1001
|
-
loyaltyCurrency: Association.LoyaltyCurrency | null;
|
|
1002
|
-
loyaltyLeaderboardView: Association.LoyaltyLeaderboardView | null;
|
|
1003
|
-
loyaltyRule: Association.LoyaltyRule | null;
|
|
1004
|
-
loyaltyRuleGroup: Association.LoyaltyRuleGroup | null;
|
|
1005
|
-
}
|
|
1006
|
-
namespace Association {
|
|
1007
|
-
interface LoyaltyBadge {
|
|
1008
|
-
/**
|
|
1009
|
-
* UUID of the association (converted to lowercase)
|
|
1010
|
-
*/
|
|
1011
|
-
id: string;
|
|
1012
|
-
/**
|
|
1013
|
-
* The name of the association
|
|
1014
|
-
*/
|
|
1015
|
-
name: string;
|
|
1016
|
-
}
|
|
1017
|
-
interface LoyaltyCurrency {
|
|
1018
|
-
/**
|
|
1019
|
-
* UUID of the association (converted to lowercase)
|
|
1020
|
-
*/
|
|
1021
|
-
id: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* The name of the association
|
|
1024
|
-
*/
|
|
1025
|
-
name: string;
|
|
1026
|
-
}
|
|
1027
|
-
interface LoyaltyLeaderboardView {
|
|
1028
|
-
/**
|
|
1029
|
-
* UUID of the association (converted to lowercase)
|
|
1030
|
-
*/
|
|
1031
|
-
id: string;
|
|
1032
|
-
/**
|
|
1033
|
-
* The name of the association
|
|
1034
|
-
*/
|
|
1035
|
-
name: string;
|
|
1036
|
-
}
|
|
1037
|
-
interface LoyaltyRule {
|
|
1038
|
-
/**
|
|
1039
|
-
* UUID of the association (converted to lowercase)
|
|
1040
|
-
*/
|
|
1041
|
-
id: string;
|
|
1042
|
-
/**
|
|
1043
|
-
* The name of the association
|
|
1044
|
-
*/
|
|
1045
|
-
name: string;
|
|
1046
|
-
}
|
|
1047
|
-
interface LoyaltyRuleGroup {
|
|
1048
|
-
/**
|
|
1049
|
-
* UUID of the association (converted to lowercase)
|
|
1050
|
-
*/
|
|
1051
|
-
id: string;
|
|
1052
|
-
/**
|
|
1053
|
-
* The name of the association
|
|
1054
|
-
*/
|
|
1055
|
-
name: string;
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
interface CsvFile {
|
|
1059
|
-
/**
|
|
1060
|
-
* UUID of the CSV file (converted to lowercase)
|
|
1061
|
-
*/
|
|
1062
|
-
id: string;
|
|
1063
|
-
/**
|
|
1064
|
-
* The description of the CSV file
|
|
1065
|
-
*/
|
|
1066
|
-
description: string | null;
|
|
1067
|
-
/**
|
|
1068
|
-
* The name of the CSV file
|
|
1069
|
-
*/
|
|
1070
|
-
name: string | null;
|
|
1071
|
-
/**
|
|
1072
|
-
* The URL of the CSV file
|
|
1073
|
-
*/
|
|
1074
|
-
url: string | null;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
interface DataJob {
|
|
1078
|
-
/**
|
|
1079
|
-
* UUID of the data job (converted to lowercase)
|
|
1080
|
-
*/
|
|
1081
|
-
id: string;
|
|
1082
|
-
/**
|
|
1083
|
-
* The date and time the data job was created
|
|
1084
|
-
*/
|
|
1085
|
-
createdAt: string;
|
|
1086
|
-
/**
|
|
1087
|
-
* The status of the data job
|
|
1088
|
-
*/
|
|
1089
|
-
status: 'pending' | 'processing' | 'complete' | 'failed' | 'cancelled';
|
|
1090
|
-
/**
|
|
1091
|
-
* The date and time the data job was updated
|
|
1092
|
-
*/
|
|
1093
|
-
updatedAt: string;
|
|
1094
|
-
/**
|
|
1095
|
-
* The message associated with the data job
|
|
1096
|
-
*/
|
|
1097
|
-
message?: string | null;
|
|
1098
|
-
}
|
|
1099
|
-
interface LoyaltyBadgeUser {
|
|
1100
|
-
/**
|
|
1101
|
-
* UUID of the user badge (converted to lowercase)
|
|
1102
|
-
*/
|
|
1103
|
-
id: string;
|
|
1104
|
-
/**
|
|
1105
|
-
* The date and time the user badge was created
|
|
1106
|
-
*/
|
|
1107
|
-
createdAt: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* UUID of the badge (converted to lowercase)
|
|
1110
|
-
*/
|
|
1111
|
-
loyaltyBadgeId: string;
|
|
1112
|
-
/**
|
|
1113
|
-
* UUID of the organization (converted to lowercase)
|
|
1114
|
-
*/
|
|
1115
|
-
organizationId: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* The status of the badge
|
|
1118
|
-
*/
|
|
1119
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
1120
|
-
/**
|
|
1121
|
-
* The date and time the user badge was updated
|
|
1122
|
-
*/
|
|
1123
|
-
updatedAt: string;
|
|
1124
|
-
/**
|
|
1125
|
-
* UUID of the user (converted to lowercase)
|
|
1126
|
-
*/
|
|
1127
|
-
userId: string;
|
|
1128
|
-
/**
|
|
1129
|
-
* UUID of the website (converted to lowercase)
|
|
1130
|
-
*/
|
|
1131
|
-
websiteId: string;
|
|
1132
|
-
/**
|
|
1133
|
-
* Whether the user has dismissed the badge in the UI
|
|
1134
|
-
*/
|
|
1135
|
-
dismissedInUi?: boolean;
|
|
1136
|
-
/**
|
|
1137
|
-
* Whether to hide this badge in the user interface
|
|
1138
|
-
*/
|
|
1139
|
-
hideInUi?: boolean;
|
|
1140
|
-
/**
|
|
1141
|
-
* Array of progress for the badge
|
|
1142
|
-
*/
|
|
1143
|
-
progress?: unknown;
|
|
1144
|
-
/**
|
|
1145
|
-
* User associated with the user badge
|
|
1146
|
-
*/
|
|
1147
|
-
user?: LoyaltyBadgeUser.User;
|
|
1148
|
-
}
|
|
1149
|
-
namespace LoyaltyBadgeUser {
|
|
1150
|
-
/**
|
|
1151
|
-
* User associated with the user badge
|
|
1152
|
-
*/
|
|
1153
|
-
interface User {
|
|
1154
|
-
/**
|
|
1155
|
-
* UUID of the user (converted to lowercase)
|
|
1156
|
-
*/
|
|
1157
|
-
id: string;
|
|
1158
|
-
/**
|
|
1159
|
-
* Wallet address of the user
|
|
1160
|
-
*/
|
|
1161
|
-
walletAddress: string;
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
interface LoyaltyRule {
|
|
1165
|
-
/**
|
|
1166
|
-
* UUID of the loyalty rule (converted to lowercase)
|
|
1167
|
-
*/
|
|
1168
|
-
id: string;
|
|
1169
|
-
/**
|
|
1170
|
-
* The name of the loyalty rule
|
|
1171
|
-
*/
|
|
1172
|
-
name: string;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
/**
|
|
1176
|
-
* Response returned upon successful update of the user badge
|
|
1177
|
-
*/
|
|
1178
|
-
export interface BadgeRevokeResponse {
|
|
1179
|
-
data: BadgeRevokeResponse.Data;
|
|
1180
|
-
/**
|
|
1181
|
-
* The message returned upon update of the badge
|
|
1182
|
-
*/
|
|
1183
|
-
message: string;
|
|
1184
|
-
}
|
|
1185
|
-
export declare namespace BadgeRevokeResponse {
|
|
1186
|
-
interface Data {
|
|
1187
|
-
id: string;
|
|
1188
|
-
loyaltyBadgeId: string;
|
|
1189
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
1190
|
-
userId: string;
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Response returned upon successful update of the user badge
|
|
1195
|
-
*/
|
|
1196
|
-
export interface BadgeRewardResponse {
|
|
1197
|
-
data: BadgeRewardResponse.Data;
|
|
1198
|
-
/**
|
|
1199
|
-
* The message returned upon update of the badge
|
|
1200
|
-
*/
|
|
1201
|
-
message: string;
|
|
1202
|
-
}
|
|
1203
|
-
export declare namespace BadgeRewardResponse {
|
|
1204
|
-
interface Data {
|
|
1205
|
-
id: string;
|
|
1206
|
-
loyaltyBadgeId: string;
|
|
1207
|
-
status: 'active' | 'inactive' | 'revoked';
|
|
1208
|
-
userId: string;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
export interface BadgeCreateParams {
|
|
1212
|
-
/**
|
|
1213
|
-
* Array of conditions for the badge
|
|
1214
|
-
*/
|
|
1215
|
-
conditions: Array<BadgeCreateParams.Condition>;
|
|
1216
|
-
/**
|
|
1217
|
-
* The URL of the badge image
|
|
1218
|
-
*/
|
|
1219
|
-
imageUrl: string;
|
|
1220
|
-
/**
|
|
1221
|
-
* The name of the badge
|
|
1222
|
-
*/
|
|
1223
|
-
name: string;
|
|
1224
|
-
/**
|
|
1225
|
-
* UUID of the organization (optional, converted to lowercase)
|
|
1226
|
-
*/
|
|
1227
|
-
organizationId: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* UUID of the website (optional, converted to lowercase)
|
|
1230
|
-
*/
|
|
1231
|
-
websiteId: string;
|
|
1232
|
-
csvFiles?: Array<BadgeCreateParams.CsvFile>;
|
|
1233
|
-
/**
|
|
1234
|
-
* The description of the badge
|
|
1235
|
-
*/
|
|
1236
|
-
description?: string;
|
|
1237
|
-
/**
|
|
1238
|
-
* Whether to hide this badge in the user interface
|
|
1239
|
-
*/
|
|
1240
|
-
hideInUi?: boolean;
|
|
1241
|
-
}
|
|
1242
|
-
export declare namespace BadgeCreateParams {
|
|
1243
|
-
interface Condition {
|
|
1244
|
-
/**
|
|
1245
|
-
* The amount of the rule
|
|
1246
|
-
*/
|
|
1247
|
-
amount?: number | null;
|
|
1248
|
-
/**
|
|
1249
|
-
* URL of the CSV file (optional)
|
|
1250
|
-
*/
|
|
1251
|
-
csvUrl?: string | null;
|
|
1252
|
-
/**
|
|
1253
|
-
* The description of the rule
|
|
1254
|
-
*/
|
|
1255
|
-
description?: string | null;
|
|
1256
|
-
/**
|
|
1257
|
-
* Array of UUIDs of the badge (optional, converted to lowercase)
|
|
1258
|
-
*/
|
|
1259
|
-
loyaltyBadgeIds?: Array<string>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Array of UUIDs of the currency (optional, converted to lowercase)
|
|
1262
|
-
*/
|
|
1263
|
-
loyaltyCurrencyIds?: Array<string>;
|
|
1264
|
-
/**
|
|
1265
|
-
* Array of UUIDs of the Loyalty Leaderboard (optional, converted to lowercase)
|
|
1266
|
-
*/
|
|
1267
|
-
loyaltyLeaderboardViewIds?: Array<string>;
|
|
1268
|
-
/**
|
|
1269
|
-
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
1270
|
-
*/
|
|
1271
|
-
loyaltyRuleChainId?: string | null;
|
|
1272
|
-
/**
|
|
1273
|
-
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
1274
|
-
*/
|
|
1275
|
-
loyaltyRuleGroupIds?: Array<string>;
|
|
1276
|
-
/**
|
|
1277
|
-
* Array of UUIDs of the rules (optional, converted to lowercase)
|
|
1278
|
-
*/
|
|
1279
|
-
loyaltyRuleIds?: Array<string>;
|
|
1280
|
-
/**
|
|
1281
|
-
* The number of times the rule should be repeated to fulfill the condition
|
|
1282
|
-
*/
|
|
1283
|
-
repeatCount?: number | null;
|
|
1284
|
-
/**
|
|
1285
|
-
* The number of rules that need to be fulfilled to satisfy the condition
|
|
1286
|
-
*/
|
|
1287
|
-
requiredCount?: number | null;
|
|
1288
|
-
/**
|
|
1289
|
-
* The type of rule
|
|
1290
|
-
*/
|
|
1291
|
-
type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1292
|
-
}
|
|
1293
|
-
interface CsvFile {
|
|
1294
|
-
src: string;
|
|
1295
|
-
description?: string;
|
|
1296
|
-
name?: string;
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
export interface BadgeUpdateParams {
|
|
1300
|
-
csvFiles?: Array<BadgeUpdateParams.CsvFile>;
|
|
1301
|
-
/**
|
|
1302
|
-
* The description of the badge
|
|
1303
|
-
*/
|
|
1304
|
-
description?: string;
|
|
1305
|
-
/**
|
|
1306
|
-
* Whether to hide this badge in the user interface
|
|
1307
|
-
*/
|
|
1308
|
-
hideInUi?: boolean;
|
|
1309
|
-
/**
|
|
1310
|
-
* The URL of the badge image
|
|
1311
|
-
*/
|
|
1312
|
-
imageUrl?: string;
|
|
1313
|
-
/**
|
|
1314
|
-
* The name of the badge
|
|
1315
|
-
*/
|
|
1316
|
-
name?: string;
|
|
1317
|
-
}
|
|
1318
|
-
export declare namespace BadgeUpdateParams {
|
|
1319
|
-
interface CsvFile {
|
|
1320
|
-
src: string;
|
|
1321
|
-
description?: string;
|
|
1322
|
-
name?: string;
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
export interface BadgeListParams {
|
|
1326
|
-
/**
|
|
1327
|
-
* Array of badge IDs (converted to lowercase) to fetch
|
|
1328
|
-
*/
|
|
1329
|
-
badgeIds?: string | Array<string>;
|
|
1330
|
-
/**
|
|
1331
|
-
* Include deleted badges in the response
|
|
1332
|
-
*/
|
|
1333
|
-
includeDeleted?: boolean | null;
|
|
1334
|
-
/**
|
|
1335
|
-
* Number of badges to fetch
|
|
1336
|
-
*/
|
|
1337
|
-
limit?: number;
|
|
1338
|
-
/**
|
|
1339
|
-
* UUID of the organization (optional, converted to lowercase)
|
|
1340
|
-
*/
|
|
1341
|
-
organizationId?: string;
|
|
1342
|
-
/**
|
|
1343
|
-
* UUID of the badge to start after (converted to lowercase)
|
|
1344
|
-
*/
|
|
1345
|
-
startingAfter?: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* External identifier of the user group
|
|
1348
|
-
*/
|
|
1349
|
-
userGroupExternalIdentifier?: string;
|
|
1350
|
-
/**
|
|
1351
|
-
* UUID of the user group
|
|
1352
|
-
*/
|
|
1353
|
-
userGroupId?: string;
|
|
1354
|
-
/**
|
|
1355
|
-
* UUID of the user, or array of UUID.
|
|
1356
|
-
*/
|
|
1357
|
-
userId?: string | Array<string>;
|
|
1358
|
-
/**
|
|
1359
|
-
* Wallet Address of the user, or array of wallet addresses.
|
|
1360
|
-
*/
|
|
1361
|
-
walletAddress?: string | Array<string>;
|
|
1362
|
-
/**
|
|
1363
|
-
* UUID of the website (optional, converted to lowercase)
|
|
1364
|
-
*/
|
|
1365
|
-
websiteId?: string;
|
|
1366
|
-
}
|
|
1367
|
-
export interface BadgeRevokeParams {
|
|
1368
|
-
/**
|
|
1369
|
-
* Status of the badge
|
|
1370
|
-
*/
|
|
1371
|
-
status?: 'active' | 'inactive' | 'revoked';
|
|
1372
|
-
/**
|
|
1373
|
-
* UUID of the user (converted to lowercase)
|
|
1374
|
-
*/
|
|
1375
|
-
userId?: string;
|
|
1376
|
-
/**
|
|
1377
|
-
* Validated and formatted wallet address
|
|
1378
|
-
*/
|
|
1379
|
-
walletAddress?: string;
|
|
1380
|
-
}
|
|
1381
|
-
export interface BadgeRewardParams {
|
|
1382
|
-
/**
|
|
1383
|
-
* Status of the badge
|
|
1384
|
-
*/
|
|
1385
|
-
status?: 'active' | 'inactive' | 'revoked';
|
|
1386
|
-
/**
|
|
1387
|
-
* UUID of the user (converted to lowercase)
|
|
1388
|
-
*/
|
|
1389
|
-
userId?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* Validated and formatted wallet address
|
|
1392
|
-
*/
|
|
1393
|
-
walletAddress?: string;
|
|
1394
|
-
}
|
|
1395
|
-
export declare namespace Badges {
|
|
1396
|
-
export { type BadgeCreateResponse as BadgeCreateResponse, type BadgeUpdateResponse as BadgeUpdateResponse, type BadgeListResponse as BadgeListResponse, type BadgeDeleteResponse as BadgeDeleteResponse, type BadgeRevokeResponse as BadgeRevokeResponse, type BadgeRewardResponse as BadgeRewardResponse, type BadgeCreateParams as BadgeCreateParams, type BadgeUpdateParams as BadgeUpdateParams, type BadgeListParams as BadgeListParams, type BadgeRevokeParams as BadgeRevokeParams, type BadgeRewardParams as BadgeRewardParams, };
|
|
1397
|
-
}
|
|
1398
|
-
//# sourceMappingURL=badges.d.mts.map
|