@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1170 -0
- package/README.md +23 -27
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +28 -18
- package/core.js.map +1 -1
- package/core.mjs +29 -19
- package/core.mjs.map +1 -1
- package/index.d.mts +20 -11
- package/index.d.ts +20 -11
- package/index.d.ts.map +1 -1
- package/index.js +21 -11
- package/index.js.map +1 -1
- package/index.mjs +22 -12
- package/index.mjs.map +1 -1
- package/package.json +11 -33
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +64 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +25 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +21 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/auctions/auctions.d.ts +285 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +76 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +49 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +122 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +132 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +2 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/auctions.js +19 -0
- package/resources/auctions.js.map +1 -0
- package/resources/auctions.mjs +3 -0
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +44 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +16 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +12 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/index.d.ts +7 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -5
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +200 -0
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +28 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +28 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +471 -33
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +25 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +9 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +11 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +6 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +33 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +28 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +29 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +76 -8
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +30 -1
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +30 -1
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +41 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +11 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +11 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +39 -4
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/questions.js +58 -0
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/questions.mjs +54 -0
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +2584 -10
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +15 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +15 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +762 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +52 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +48 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +1760 -230
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/transaction-entries.js → transactions/transactions.js} +35 -25
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +2 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +19 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +3 -0
- package/resources/loyalty/transactions.mjs.map +1 -0
- package/resources/loyalty.d.ts +2 -0
- package/resources/loyalty.d.ts.map +1 -0
- package/resources/loyalty.js +19 -0
- package/resources/loyalty.js.map +1 -0
- package/resources/loyalty.mjs +3 -0
- package/resources/loyalty.mjs.map +1 -0
- package/resources/{assets/minting.d.ts → minting.d.ts} +14 -14
- package/resources/minting.d.ts.map +1 -0
- package/resources/{assets/minting.js → minting.js} +2 -2
- package/resources/minting.js.map +1 -0
- package/resources/{assets/minting.mjs → minting.mjs} +2 -2
- package/resources/minting.mjs.map +1 -0
- package/resources/referral/index.d.ts +3 -0
- package/resources/referral/index.d.ts.map +1 -0
- package/resources/referral/index.js.map +1 -0
- package/resources/{assets/referral → referral}/index.mjs +1 -1
- package/resources/referral/index.mjs.map +1 -0
- package/resources/referral/referral.d.ts +39 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/referral.js +12 -6
- package/resources/referral/referral.js.map +1 -0
- package/resources/referral/referral.mjs +25 -0
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/referral/users.d.ts +84 -0
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/users.js +17 -3
- package/resources/referral/users.js.map +1 -0
- package/resources/referral/users.mjs +31 -0
- package/resources/referral/users.mjs.map +1 -0
- package/resources/referral.d.ts +2 -0
- package/resources/referral.d.ts.map +1 -0
- package/resources/referral.js +19 -0
- package/resources/referral.js.map +1 -0
- package/resources/referral.mjs +3 -0
- package/resources/referral.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -3
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js +1 -3
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +1 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +43 -7
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +2 -2
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +2 -2
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +414 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +77 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +77 -4
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +19 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/websites/index.d.ts +4 -0
- package/resources/websites/index.d.ts.map +1 -0
- package/resources/websites/index.js +11 -0
- package/resources/websites/index.js.map +1 -0
- package/resources/{assets → websites}/index.mjs +1 -4
- package/resources/websites/index.mjs.map +1 -0
- package/resources/websites/website-collections.d.ts +94 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/{assets → websites}/website-collections.js +23 -2
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/websites/website-collections.mjs +42 -0
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/websites/website-user-roles.d.ts +96 -0
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → websites}/website-user-roles.js +30 -7
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/websites/website-user-roles.mjs +41 -0
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +223 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/{assets/assets.js → websites/websites.js} +21 -27
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +36 -0
- package/resources/websites/websites.mjs.map +1 -0
- package/resources/websites.d.ts +1 -202
- package/resources/websites.d.ts.map +1 -1
- package/resources/websites.js +15 -18
- package/resources/websites.js.map +1 -1
- package/resources/websites.mjs +1 -16
- package/resources/websites.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +47 -19
- package/src/index.ts +94 -23
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +93 -0
- package/src/resources/auctions/auctions.ts +436 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +165 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +207 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +3 -0
- package/src/resources/auth.ts +74 -0
- package/src/resources/index.ts +30 -9
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +258 -1
- package/src/resources/loyalty/badges.ts +567 -39
- package/src/resources/loyalty/currencies.ts +25 -0
- package/src/resources/loyalty/index.ts +53 -14
- package/src/resources/loyalty/loyalty.ts +163 -69
- package/src/resources/loyalty/multipliers.ts +87 -12
- package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +48 -3
- package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +40 -4
- package/src/resources/loyalty/rule-edits.ts +3628 -61
- package/src/resources/loyalty/rule-groups.ts +1184 -0
- package/src/resources/loyalty/rules.ts +2963 -522
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +677 -0
- package/src/resources/loyalty/transactions.ts +3 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/{assets/minting.ts → minting.ts} +49 -31
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +72 -0
- package/src/resources/referral/users.ts +124 -0
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +17 -4
- package/src/resources/users/metadatas.ts +77 -15
- package/src/resources/users/users.ts +579 -9
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{assets → websites}/website-collections.ts +66 -30
- package/src/resources/{assets → websites}/website-user-roles.ts +63 -40
- package/src/resources/websites/websites.ts +311 -0
- package/src/resources/websites.ts +1 -257
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/assets/assets.d.ts +0 -153
- package/resources/assets/assets.d.ts.map +0 -1
- package/resources/assets/assets.js.map +0 -1
- package/resources/assets/assets.mjs +0 -42
- package/resources/assets/assets.mjs.map +0 -1
- package/resources/assets/index.d.ts +0 -7
- package/resources/assets/index.d.ts.map +0 -1
- package/resources/assets/index.js +0 -17
- package/resources/assets/index.js.map +0 -1
- package/resources/assets/index.mjs.map +0 -1
- package/resources/assets/minting.d.ts.map +0 -1
- package/resources/assets/minting.js.map +0 -1
- package/resources/assets/minting.mjs.map +0 -1
- package/resources/assets/referral/index.d.ts +0 -3
- package/resources/assets/referral/index.d.ts.map +0 -1
- package/resources/assets/referral/index.js.map +0 -1
- package/resources/assets/referral/index.mjs.map +0 -1
- package/resources/assets/referral/referral.d.ts +0 -30
- package/resources/assets/referral/referral.d.ts.map +0 -1
- package/resources/assets/referral/referral.js.map +0 -1
- package/resources/assets/referral/referral.mjs +0 -19
- package/resources/assets/referral/referral.mjs.map +0 -1
- package/resources/assets/referral/users.d.ts +0 -57
- package/resources/assets/referral/users.d.ts.map +0 -1
- package/resources/assets/referral/users.js.map +0 -1
- package/resources/assets/referral/users.mjs +0 -17
- package/resources/assets/referral/users.mjs.map +0 -1
- package/resources/assets/users.d.ts +0 -285
- package/resources/assets/users.d.ts.map +0 -1
- package/resources/assets/users.js +0 -34
- package/resources/assets/users.js.map +0 -1
- package/resources/assets/users.mjs +0 -30
- package/resources/assets/users.mjs.map +0 -1
- package/resources/assets/website-collections.d.ts +0 -73
- package/resources/assets/website-collections.d.ts.map +0 -1
- package/resources/assets/website-collections.js.map +0 -1
- package/resources/assets/website-collections.mjs +0 -21
- package/resources/assets/website-collections.mjs.map +0 -1
- package/resources/assets/website-user-roles.d.ts +0 -73
- package/resources/assets/website-user-roles.d.ts.map +0 -1
- package/resources/assets/website-user-roles.js.map +0 -1
- package/resources/assets/website-user-roles.mjs +0 -18
- package/resources/assets/website-user-roles.mjs.map +0 -1
- package/resources/auction-bids.d.ts +0 -51
- package/resources/auction-bids.d.ts.map +0 -1
- package/resources/auction-bids.js +0 -20
- package/resources/auction-bids.js.map +0 -1
- package/resources/auction-bids.mjs +0 -16
- package/resources/auction-bids.mjs.map +0 -1
- package/resources/drip/drip.d.ts +0 -14
- package/resources/drip/drip.d.ts.map +0 -1
- package/resources/drip/drip.js +0 -43
- package/resources/drip/drip.js.map +0 -1
- package/resources/drip/drip.mjs +0 -16
- package/resources/drip/drip.mjs.map +0 -1
- package/resources/drip/index.d.ts +0 -4
- package/resources/drip/index.d.ts.map +0 -1
- package/resources/drip/index.js +0 -11
- package/resources/drip/index.js.map +0 -1
- package/resources/drip/index.mjs +0 -5
- package/resources/drip/index.mjs.map +0 -1
- package/resources/drip/quests.d.ts +0 -4
- package/resources/drip/quests.d.ts.map +0 -1
- package/resources/drip/quests.js +0 -9
- package/resources/drip/quests.js.map +0 -1
- package/resources/drip/quests.mjs +0 -5
- package/resources/drip/quests.mjs.map +0 -1
- package/resources/drip/status.d.ts +0 -4
- package/resources/drip/status.d.ts.map +0 -1
- package/resources/drip/status.js +0 -9
- package/resources/drip/status.js.map +0 -1
- package/resources/drip/status.mjs +0 -5
- package/resources/drip/status.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +0 -191
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js +0 -24
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.mjs +0 -20
- package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/index.d.ts +0 -5
- package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/index.js +0 -13
- package/resources/loyalty/transaction-entries/index.js.map +0 -1
- package/resources/loyalty/transaction-entries/index.mjs +0 -6
- package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/questions.js +0 -27
- package/resources/loyalty/transaction-entries/questions.js.map +0 -1
- package/resources/loyalty/transaction-entries/questions.mjs +0 -23
- package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
- package/resources/users/wallets.d.ts +0 -4
- package/resources/users/wallets.d.ts.map +0 -1
- package/resources/users/wallets.js +0 -9
- package/resources/users/wallets.js.map +0 -1
- package/resources/users/wallets.mjs +0 -5
- package/resources/users/wallets.mjs.map +0 -1
- package/src/resources/assets/assets.ts +0 -294
- package/src/resources/assets/index.ts +0 -38
- package/src/resources/assets/referral/index.ts +0 -14
- package/src/resources/assets/referral/referral.ts +0 -74
- package/src/resources/assets/referral/users.ts +0 -99
- package/src/resources/assets/users.ts +0 -415
- package/src/resources/auction-bids.ts +0 -77
- package/src/resources/drip/drip.ts +0 -21
- package/src/resources/drip/index.ts +0 -5
- package/src/resources/drip/quests.ts +0 -5
- package/src/resources/drip/status.ts +0 -5
- package/src/resources/loyalty/transaction-entries/accounts.ts +0 -251
- package/src/resources/loyalty/transaction-entries/index.ts +0 -34
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{assets/referral → referral}/index.js +0 -0
|
@@ -6,7 +6,18 @@ import * as Core from '../../core';
|
|
|
6
6
|
|
|
7
7
|
export class Badges extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* This endpoint allows you to configure a new badge
|
|
9
|
+
* This endpoint allows you to configure a new badge
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const badge = await client.loyalty.badges.create({
|
|
14
|
+
* conditions: [{}],
|
|
15
|
+
* imageUrl: 'https://example.com/image.png',
|
|
16
|
+
* name: 'Example Badge',
|
|
17
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174222',
|
|
18
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174111',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
create(body: BadgeCreateParams, options?: Core.RequestOptions): Core.APIPromise<BadgeCreateResponse> {
|
|
12
23
|
return this._client.post('/api/loyalty/badges', { body, ...options });
|
|
@@ -14,6 +25,13 @@ export class Badges extends APIResource {
|
|
|
14
25
|
|
|
15
26
|
/**
|
|
16
27
|
* This endpoint allows you to update an existing badge.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const badge = await client.loyalty.badges.update(
|
|
32
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
17
35
|
*/
|
|
18
36
|
update(
|
|
19
37
|
id: string,
|
|
@@ -34,6 +52,11 @@ export class Badges extends APIResource {
|
|
|
34
52
|
|
|
35
53
|
/**
|
|
36
54
|
* This endpoint allows you to fetch badge(s) data.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const badges = await client.loyalty.badges.list();
|
|
59
|
+
* ```
|
|
37
60
|
*/
|
|
38
61
|
list(query?: BadgeListParams, options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
39
62
|
list(options?: Core.RequestOptions): Core.APIPromise<BadgeListResponse>;
|
|
@@ -49,6 +72,13 @@ export class Badges extends APIResource {
|
|
|
49
72
|
|
|
50
73
|
/**
|
|
51
74
|
* This endpoint allows you to delete a badge.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const badge = await client.loyalty.badges.delete(
|
|
79
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
52
82
|
*/
|
|
53
83
|
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<BadgeDeleteResponse> {
|
|
54
84
|
return this._client.delete(`/api/loyalty/badges/${id}`, options);
|
|
@@ -56,6 +86,13 @@ export class Badges extends APIResource {
|
|
|
56
86
|
|
|
57
87
|
/**
|
|
58
88
|
* This endpoint allows you to revoke a badge from an account
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response = await client.loyalty.badges.revoke(
|
|
93
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
59
96
|
*/
|
|
60
97
|
revoke(
|
|
61
98
|
id: string,
|
|
@@ -76,6 +113,13 @@ export class Badges extends APIResource {
|
|
|
76
113
|
|
|
77
114
|
/**
|
|
78
115
|
* This endpoint allows you to reward a badge for an account
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const response = await client.loyalty.badges.reward(
|
|
120
|
+
* '123e4567-e89b-12d3-a456-426614174333',
|
|
121
|
+
* );
|
|
122
|
+
* ```
|
|
79
123
|
*/
|
|
80
124
|
reward(
|
|
81
125
|
id: string,
|
|
@@ -124,10 +168,20 @@ export interface BadgeCreateResponse {
|
|
|
124
168
|
*/
|
|
125
169
|
name: string;
|
|
126
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Array of data jobs associated with the badge
|
|
173
|
+
*/
|
|
174
|
+
dataJobs?: Array<BadgeCreateResponse.DataJob>;
|
|
175
|
+
|
|
127
176
|
/**
|
|
128
177
|
* Array of user badges
|
|
129
178
|
*/
|
|
130
|
-
|
|
179
|
+
loyaltyBadgeUsers?: Array<BadgeCreateResponse.LoyaltyBadgeUser>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Array of loyalty rules associated with the badge
|
|
183
|
+
*/
|
|
184
|
+
loyaltyRules?: Array<BadgeCreateResponse.LoyaltyRule>;
|
|
131
185
|
}
|
|
132
186
|
|
|
133
187
|
export namespace BadgeCreateResponse {
|
|
@@ -147,11 +201,6 @@ export namespace BadgeCreateResponse {
|
|
|
147
201
|
|
|
148
202
|
association: Array<LoyaltyCondition.Association>;
|
|
149
203
|
|
|
150
|
-
/**
|
|
151
|
-
* The URL of the CSV file
|
|
152
|
-
*/
|
|
153
|
-
csvUrl: string | null;
|
|
154
|
-
|
|
155
204
|
/**
|
|
156
205
|
* The description of the condition
|
|
157
206
|
*/
|
|
@@ -181,6 +230,11 @@ export namespace BadgeCreateResponse {
|
|
|
181
230
|
* The type of the condition
|
|
182
231
|
*/
|
|
183
232
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Array of CSV files associated with the condition
|
|
236
|
+
*/
|
|
237
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
184
238
|
}
|
|
185
239
|
|
|
186
240
|
export namespace LoyaltyCondition {
|
|
@@ -257,6 +311,55 @@ export namespace BadgeCreateResponse {
|
|
|
257
311
|
name: string;
|
|
258
312
|
}
|
|
259
313
|
}
|
|
314
|
+
|
|
315
|
+
export interface CsvFile {
|
|
316
|
+
/**
|
|
317
|
+
* UUID of the CSV file (converted to lowercase)
|
|
318
|
+
*/
|
|
319
|
+
id: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The description of the CSV file
|
|
323
|
+
*/
|
|
324
|
+
description: string | null;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* The name of the CSV file
|
|
328
|
+
*/
|
|
329
|
+
name: string | null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* The URL of the CSV file
|
|
333
|
+
*/
|
|
334
|
+
url: string | null;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export interface DataJob {
|
|
339
|
+
/**
|
|
340
|
+
* UUID of the data job (converted to lowercase)
|
|
341
|
+
*/
|
|
342
|
+
id: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The date and time the data job was created
|
|
346
|
+
*/
|
|
347
|
+
createdAt: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The status of the data job
|
|
351
|
+
*/
|
|
352
|
+
status: 'pending' | 'complete' | 'failed';
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* The date and time the data job was updated
|
|
356
|
+
*/
|
|
357
|
+
updatedAt: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The message associated with the data job
|
|
361
|
+
*/
|
|
362
|
+
message?: string | null;
|
|
260
363
|
}
|
|
261
364
|
|
|
262
365
|
export interface LoyaltyBadgeUser {
|
|
@@ -265,6 +368,11 @@ export namespace BadgeCreateResponse {
|
|
|
265
368
|
*/
|
|
266
369
|
id: string;
|
|
267
370
|
|
|
371
|
+
/**
|
|
372
|
+
* The date and time the user badge was created
|
|
373
|
+
*/
|
|
374
|
+
createdAt: string;
|
|
375
|
+
|
|
268
376
|
/**
|
|
269
377
|
* UUID of the badge (converted to lowercase)
|
|
270
378
|
*/
|
|
@@ -280,6 +388,11 @@ export namespace BadgeCreateResponse {
|
|
|
280
388
|
*/
|
|
281
389
|
status: 'active' | 'inactive' | 'revoked';
|
|
282
390
|
|
|
391
|
+
/**
|
|
392
|
+
* The date and time the user badge was updated
|
|
393
|
+
*/
|
|
394
|
+
updatedAt: string;
|
|
395
|
+
|
|
283
396
|
/**
|
|
284
397
|
* UUID of the user (converted to lowercase)
|
|
285
398
|
*/
|
|
@@ -290,10 +403,49 @@ export namespace BadgeCreateResponse {
|
|
|
290
403
|
*/
|
|
291
404
|
websiteId: string;
|
|
292
405
|
|
|
406
|
+
/**
|
|
407
|
+
* Whether the user has dismissed the badge in the UI
|
|
408
|
+
*/
|
|
409
|
+
dismissedInUi?: boolean;
|
|
410
|
+
|
|
293
411
|
/**
|
|
294
412
|
* Array of progress for the badge
|
|
295
413
|
*/
|
|
296
414
|
progress?: unknown;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* User associated with the user badge
|
|
418
|
+
*/
|
|
419
|
+
user?: LoyaltyBadgeUser.User;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export namespace LoyaltyBadgeUser {
|
|
423
|
+
/**
|
|
424
|
+
* User associated with the user badge
|
|
425
|
+
*/
|
|
426
|
+
export interface User {
|
|
427
|
+
/**
|
|
428
|
+
* UUID of the user (converted to lowercase)
|
|
429
|
+
*/
|
|
430
|
+
id: string;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Wallet address of the user
|
|
434
|
+
*/
|
|
435
|
+
walletAddress: string;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export interface LoyaltyRule {
|
|
440
|
+
/**
|
|
441
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
442
|
+
*/
|
|
443
|
+
id: string;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The name of the loyalty rule
|
|
447
|
+
*/
|
|
448
|
+
name: string;
|
|
297
449
|
}
|
|
298
450
|
}
|
|
299
451
|
|
|
@@ -326,10 +478,20 @@ export interface BadgeUpdateResponse {
|
|
|
326
478
|
*/
|
|
327
479
|
name: string;
|
|
328
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Array of data jobs associated with the badge
|
|
483
|
+
*/
|
|
484
|
+
dataJobs?: Array<BadgeUpdateResponse.DataJob>;
|
|
485
|
+
|
|
329
486
|
/**
|
|
330
487
|
* Array of user badges
|
|
331
488
|
*/
|
|
332
|
-
|
|
489
|
+
loyaltyBadgeUsers?: Array<BadgeUpdateResponse.LoyaltyBadgeUser>;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Array of loyalty rules associated with the badge
|
|
493
|
+
*/
|
|
494
|
+
loyaltyRules?: Array<BadgeUpdateResponse.LoyaltyRule>;
|
|
333
495
|
}
|
|
334
496
|
|
|
335
497
|
export namespace BadgeUpdateResponse {
|
|
@@ -349,11 +511,6 @@ export namespace BadgeUpdateResponse {
|
|
|
349
511
|
|
|
350
512
|
association: Array<LoyaltyCondition.Association>;
|
|
351
513
|
|
|
352
|
-
/**
|
|
353
|
-
* The URL of the CSV file
|
|
354
|
-
*/
|
|
355
|
-
csvUrl: string | null;
|
|
356
|
-
|
|
357
514
|
/**
|
|
358
515
|
* The description of the condition
|
|
359
516
|
*/
|
|
@@ -383,6 +540,11 @@ export namespace BadgeUpdateResponse {
|
|
|
383
540
|
* The type of the condition
|
|
384
541
|
*/
|
|
385
542
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Array of CSV files associated with the condition
|
|
546
|
+
*/
|
|
547
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
386
548
|
}
|
|
387
549
|
|
|
388
550
|
export namespace LoyaltyCondition {
|
|
@@ -459,6 +621,55 @@ export namespace BadgeUpdateResponse {
|
|
|
459
621
|
name: string;
|
|
460
622
|
}
|
|
461
623
|
}
|
|
624
|
+
|
|
625
|
+
export interface CsvFile {
|
|
626
|
+
/**
|
|
627
|
+
* UUID of the CSV file (converted to lowercase)
|
|
628
|
+
*/
|
|
629
|
+
id: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* The description of the CSV file
|
|
633
|
+
*/
|
|
634
|
+
description: string | null;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The name of the CSV file
|
|
638
|
+
*/
|
|
639
|
+
name: string | null;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* The URL of the CSV file
|
|
643
|
+
*/
|
|
644
|
+
url: string | null;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface DataJob {
|
|
649
|
+
/**
|
|
650
|
+
* UUID of the data job (converted to lowercase)
|
|
651
|
+
*/
|
|
652
|
+
id: string;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The date and time the data job was created
|
|
656
|
+
*/
|
|
657
|
+
createdAt: string;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* The status of the data job
|
|
661
|
+
*/
|
|
662
|
+
status: 'pending' | 'complete' | 'failed';
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* The date and time the data job was updated
|
|
666
|
+
*/
|
|
667
|
+
updatedAt: string;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* The message associated with the data job
|
|
671
|
+
*/
|
|
672
|
+
message?: string | null;
|
|
462
673
|
}
|
|
463
674
|
|
|
464
675
|
export interface LoyaltyBadgeUser {
|
|
@@ -467,6 +678,11 @@ export namespace BadgeUpdateResponse {
|
|
|
467
678
|
*/
|
|
468
679
|
id: string;
|
|
469
680
|
|
|
681
|
+
/**
|
|
682
|
+
* The date and time the user badge was created
|
|
683
|
+
*/
|
|
684
|
+
createdAt: string;
|
|
685
|
+
|
|
470
686
|
/**
|
|
471
687
|
* UUID of the badge (converted to lowercase)
|
|
472
688
|
*/
|
|
@@ -482,6 +698,11 @@ export namespace BadgeUpdateResponse {
|
|
|
482
698
|
*/
|
|
483
699
|
status: 'active' | 'inactive' | 'revoked';
|
|
484
700
|
|
|
701
|
+
/**
|
|
702
|
+
* The date and time the user badge was updated
|
|
703
|
+
*/
|
|
704
|
+
updatedAt: string;
|
|
705
|
+
|
|
485
706
|
/**
|
|
486
707
|
* UUID of the user (converted to lowercase)
|
|
487
708
|
*/
|
|
@@ -492,10 +713,49 @@ export namespace BadgeUpdateResponse {
|
|
|
492
713
|
*/
|
|
493
714
|
websiteId: string;
|
|
494
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Whether the user has dismissed the badge in the UI
|
|
718
|
+
*/
|
|
719
|
+
dismissedInUi?: boolean;
|
|
720
|
+
|
|
495
721
|
/**
|
|
496
722
|
* Array of progress for the badge
|
|
497
723
|
*/
|
|
498
724
|
progress?: unknown;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* User associated with the user badge
|
|
728
|
+
*/
|
|
729
|
+
user?: LoyaltyBadgeUser.User;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export namespace LoyaltyBadgeUser {
|
|
733
|
+
/**
|
|
734
|
+
* User associated with the user badge
|
|
735
|
+
*/
|
|
736
|
+
export interface User {
|
|
737
|
+
/**
|
|
738
|
+
* UUID of the user (converted to lowercase)
|
|
739
|
+
*/
|
|
740
|
+
id: string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Wallet address of the user
|
|
744
|
+
*/
|
|
745
|
+
walletAddress: string;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export interface LoyaltyRule {
|
|
750
|
+
/**
|
|
751
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
752
|
+
*/
|
|
753
|
+
id: string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The name of the loyalty rule
|
|
757
|
+
*/
|
|
758
|
+
name: string;
|
|
499
759
|
}
|
|
500
760
|
}
|
|
501
761
|
|
|
@@ -528,10 +788,20 @@ export interface BadgeListResponse {
|
|
|
528
788
|
*/
|
|
529
789
|
name: string;
|
|
530
790
|
|
|
791
|
+
/**
|
|
792
|
+
* Array of data jobs associated with the badge
|
|
793
|
+
*/
|
|
794
|
+
dataJobs?: Array<BadgeListResponse.DataJob>;
|
|
795
|
+
|
|
531
796
|
/**
|
|
532
797
|
* Array of user badges
|
|
533
798
|
*/
|
|
534
|
-
|
|
799
|
+
loyaltyBadgeUsers?: Array<BadgeListResponse.LoyaltyBadgeUser>;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Array of loyalty rules associated with the badge
|
|
803
|
+
*/
|
|
804
|
+
loyaltyRules?: Array<BadgeListResponse.LoyaltyRule>;
|
|
535
805
|
}
|
|
536
806
|
|
|
537
807
|
export namespace BadgeListResponse {
|
|
@@ -551,11 +821,6 @@ export namespace BadgeListResponse {
|
|
|
551
821
|
|
|
552
822
|
association: Array<LoyaltyCondition.Association>;
|
|
553
823
|
|
|
554
|
-
/**
|
|
555
|
-
* The URL of the CSV file
|
|
556
|
-
*/
|
|
557
|
-
csvUrl: string | null;
|
|
558
|
-
|
|
559
824
|
/**
|
|
560
825
|
* The description of the condition
|
|
561
826
|
*/
|
|
@@ -585,6 +850,11 @@ export namespace BadgeListResponse {
|
|
|
585
850
|
* The type of the condition
|
|
586
851
|
*/
|
|
587
852
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Array of CSV files associated with the condition
|
|
856
|
+
*/
|
|
857
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
588
858
|
}
|
|
589
859
|
|
|
590
860
|
export namespace LoyaltyCondition {
|
|
@@ -661,6 +931,55 @@ export namespace BadgeListResponse {
|
|
|
661
931
|
name: string;
|
|
662
932
|
}
|
|
663
933
|
}
|
|
934
|
+
|
|
935
|
+
export interface CsvFile {
|
|
936
|
+
/**
|
|
937
|
+
* UUID of the CSV file (converted to lowercase)
|
|
938
|
+
*/
|
|
939
|
+
id: string;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* The description of the CSV file
|
|
943
|
+
*/
|
|
944
|
+
description: string | null;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* The name of the CSV file
|
|
948
|
+
*/
|
|
949
|
+
name: string | null;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* The URL of the CSV file
|
|
953
|
+
*/
|
|
954
|
+
url: string | null;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export interface DataJob {
|
|
959
|
+
/**
|
|
960
|
+
* UUID of the data job (converted to lowercase)
|
|
961
|
+
*/
|
|
962
|
+
id: string;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* The date and time the data job was created
|
|
966
|
+
*/
|
|
967
|
+
createdAt: string;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* The status of the data job
|
|
971
|
+
*/
|
|
972
|
+
status: 'pending' | 'complete' | 'failed';
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* The date and time the data job was updated
|
|
976
|
+
*/
|
|
977
|
+
updatedAt: string;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* The message associated with the data job
|
|
981
|
+
*/
|
|
982
|
+
message?: string | null;
|
|
664
983
|
}
|
|
665
984
|
|
|
666
985
|
export interface LoyaltyBadgeUser {
|
|
@@ -669,6 +988,11 @@ export namespace BadgeListResponse {
|
|
|
669
988
|
*/
|
|
670
989
|
id: string;
|
|
671
990
|
|
|
991
|
+
/**
|
|
992
|
+
* The date and time the user badge was created
|
|
993
|
+
*/
|
|
994
|
+
createdAt: string;
|
|
995
|
+
|
|
672
996
|
/**
|
|
673
997
|
* UUID of the badge (converted to lowercase)
|
|
674
998
|
*/
|
|
@@ -684,6 +1008,11 @@ export namespace BadgeListResponse {
|
|
|
684
1008
|
*/
|
|
685
1009
|
status: 'active' | 'inactive' | 'revoked';
|
|
686
1010
|
|
|
1011
|
+
/**
|
|
1012
|
+
* The date and time the user badge was updated
|
|
1013
|
+
*/
|
|
1014
|
+
updatedAt: string;
|
|
1015
|
+
|
|
687
1016
|
/**
|
|
688
1017
|
* UUID of the user (converted to lowercase)
|
|
689
1018
|
*/
|
|
@@ -694,10 +1023,49 @@ export namespace BadgeListResponse {
|
|
|
694
1023
|
*/
|
|
695
1024
|
websiteId: string;
|
|
696
1025
|
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether the user has dismissed the badge in the UI
|
|
1028
|
+
*/
|
|
1029
|
+
dismissedInUi?: boolean;
|
|
1030
|
+
|
|
697
1031
|
/**
|
|
698
1032
|
* Array of progress for the badge
|
|
699
1033
|
*/
|
|
700
1034
|
progress?: unknown;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* User associated with the user badge
|
|
1038
|
+
*/
|
|
1039
|
+
user?: LoyaltyBadgeUser.User;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export namespace LoyaltyBadgeUser {
|
|
1043
|
+
/**
|
|
1044
|
+
* User associated with the user badge
|
|
1045
|
+
*/
|
|
1046
|
+
export interface User {
|
|
1047
|
+
/**
|
|
1048
|
+
* UUID of the user (converted to lowercase)
|
|
1049
|
+
*/
|
|
1050
|
+
id: string;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Wallet address of the user
|
|
1054
|
+
*/
|
|
1055
|
+
walletAddress: string;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export interface LoyaltyRule {
|
|
1060
|
+
/**
|
|
1061
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
1062
|
+
*/
|
|
1063
|
+
id: string;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* The name of the loyalty rule
|
|
1067
|
+
*/
|
|
1068
|
+
name: string;
|
|
701
1069
|
}
|
|
702
1070
|
}
|
|
703
1071
|
|
|
@@ -730,10 +1098,20 @@ export interface BadgeDeleteResponse {
|
|
|
730
1098
|
*/
|
|
731
1099
|
name: string;
|
|
732
1100
|
|
|
1101
|
+
/**
|
|
1102
|
+
* Array of data jobs associated with the badge
|
|
1103
|
+
*/
|
|
1104
|
+
dataJobs?: Array<BadgeDeleteResponse.DataJob>;
|
|
1105
|
+
|
|
733
1106
|
/**
|
|
734
1107
|
* Array of user badges
|
|
735
1108
|
*/
|
|
736
|
-
|
|
1109
|
+
loyaltyBadgeUsers?: Array<BadgeDeleteResponse.LoyaltyBadgeUser>;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Array of loyalty rules associated with the badge
|
|
1113
|
+
*/
|
|
1114
|
+
loyaltyRules?: Array<BadgeDeleteResponse.LoyaltyRule>;
|
|
737
1115
|
}
|
|
738
1116
|
|
|
739
1117
|
export namespace BadgeDeleteResponse {
|
|
@@ -753,11 +1131,6 @@ export namespace BadgeDeleteResponse {
|
|
|
753
1131
|
|
|
754
1132
|
association: Array<LoyaltyCondition.Association>;
|
|
755
1133
|
|
|
756
|
-
/**
|
|
757
|
-
* The URL of the CSV file
|
|
758
|
-
*/
|
|
759
|
-
csvUrl: string | null;
|
|
760
|
-
|
|
761
1134
|
/**
|
|
762
1135
|
* The description of the condition
|
|
763
1136
|
*/
|
|
@@ -787,6 +1160,11 @@ export namespace BadgeDeleteResponse {
|
|
|
787
1160
|
* The type of the condition
|
|
788
1161
|
*/
|
|
789
1162
|
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Array of CSV files associated with the condition
|
|
1166
|
+
*/
|
|
1167
|
+
csvFiles?: Array<LoyaltyCondition.CsvFile>;
|
|
790
1168
|
}
|
|
791
1169
|
|
|
792
1170
|
export namespace LoyaltyCondition {
|
|
@@ -863,6 +1241,55 @@ export namespace BadgeDeleteResponse {
|
|
|
863
1241
|
name: string;
|
|
864
1242
|
}
|
|
865
1243
|
}
|
|
1244
|
+
|
|
1245
|
+
export interface CsvFile {
|
|
1246
|
+
/**
|
|
1247
|
+
* UUID of the CSV file (converted to lowercase)
|
|
1248
|
+
*/
|
|
1249
|
+
id: string;
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* The description of the CSV file
|
|
1253
|
+
*/
|
|
1254
|
+
description: string | null;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* The name of the CSV file
|
|
1258
|
+
*/
|
|
1259
|
+
name: string | null;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* The URL of the CSV file
|
|
1263
|
+
*/
|
|
1264
|
+
url: string | null;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
export interface DataJob {
|
|
1269
|
+
/**
|
|
1270
|
+
* UUID of the data job (converted to lowercase)
|
|
1271
|
+
*/
|
|
1272
|
+
id: string;
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* The date and time the data job was created
|
|
1276
|
+
*/
|
|
1277
|
+
createdAt: string;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* The status of the data job
|
|
1281
|
+
*/
|
|
1282
|
+
status: 'pending' | 'complete' | 'failed';
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* The date and time the data job was updated
|
|
1286
|
+
*/
|
|
1287
|
+
updatedAt: string;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* The message associated with the data job
|
|
1291
|
+
*/
|
|
1292
|
+
message?: string | null;
|
|
866
1293
|
}
|
|
867
1294
|
|
|
868
1295
|
export interface LoyaltyBadgeUser {
|
|
@@ -871,6 +1298,11 @@ export namespace BadgeDeleteResponse {
|
|
|
871
1298
|
*/
|
|
872
1299
|
id: string;
|
|
873
1300
|
|
|
1301
|
+
/**
|
|
1302
|
+
* The date and time the user badge was created
|
|
1303
|
+
*/
|
|
1304
|
+
createdAt: string;
|
|
1305
|
+
|
|
874
1306
|
/**
|
|
875
1307
|
* UUID of the badge (converted to lowercase)
|
|
876
1308
|
*/
|
|
@@ -886,6 +1318,11 @@ export namespace BadgeDeleteResponse {
|
|
|
886
1318
|
*/
|
|
887
1319
|
status: 'active' | 'inactive' | 'revoked';
|
|
888
1320
|
|
|
1321
|
+
/**
|
|
1322
|
+
* The date and time the user badge was updated
|
|
1323
|
+
*/
|
|
1324
|
+
updatedAt: string;
|
|
1325
|
+
|
|
889
1326
|
/**
|
|
890
1327
|
* UUID of the user (converted to lowercase)
|
|
891
1328
|
*/
|
|
@@ -896,10 +1333,49 @@ export namespace BadgeDeleteResponse {
|
|
|
896
1333
|
*/
|
|
897
1334
|
websiteId: string;
|
|
898
1335
|
|
|
1336
|
+
/**
|
|
1337
|
+
* Whether the user has dismissed the badge in the UI
|
|
1338
|
+
*/
|
|
1339
|
+
dismissedInUi?: boolean;
|
|
1340
|
+
|
|
899
1341
|
/**
|
|
900
1342
|
* Array of progress for the badge
|
|
901
1343
|
*/
|
|
902
1344
|
progress?: unknown;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* User associated with the user badge
|
|
1348
|
+
*/
|
|
1349
|
+
user?: LoyaltyBadgeUser.User;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
export namespace LoyaltyBadgeUser {
|
|
1353
|
+
/**
|
|
1354
|
+
* User associated with the user badge
|
|
1355
|
+
*/
|
|
1356
|
+
export interface User {
|
|
1357
|
+
/**
|
|
1358
|
+
* UUID of the user (converted to lowercase)
|
|
1359
|
+
*/
|
|
1360
|
+
id: string;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Wallet address of the user
|
|
1364
|
+
*/
|
|
1365
|
+
walletAddress: string;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
export interface LoyaltyRule {
|
|
1370
|
+
/**
|
|
1371
|
+
* UUID of the loyalty rule (converted to lowercase)
|
|
1372
|
+
*/
|
|
1373
|
+
id: string;
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* The name of the loyalty rule
|
|
1377
|
+
*/
|
|
1378
|
+
name: string;
|
|
903
1379
|
}
|
|
904
1380
|
}
|
|
905
1381
|
|
|
@@ -952,6 +1428,11 @@ export namespace BadgeRewardResponse {
|
|
|
952
1428
|
}
|
|
953
1429
|
|
|
954
1430
|
export interface BadgeCreateParams {
|
|
1431
|
+
/**
|
|
1432
|
+
* Array of conditions for the badge
|
|
1433
|
+
*/
|
|
1434
|
+
conditions: Array<BadgeCreateParams.Condition>;
|
|
1435
|
+
|
|
955
1436
|
/**
|
|
956
1437
|
* The URL of the badge image
|
|
957
1438
|
*/
|
|
@@ -967,16 +1448,13 @@ export interface BadgeCreateParams {
|
|
|
967
1448
|
*/
|
|
968
1449
|
organizationId: string;
|
|
969
1450
|
|
|
970
|
-
/**
|
|
971
|
-
* Array of rules for the badge
|
|
972
|
-
*/
|
|
973
|
-
rules: Array<BadgeCreateParams.Rule>;
|
|
974
|
-
|
|
975
1451
|
/**
|
|
976
1452
|
* UUID of the website (optional, converted to lowercase)
|
|
977
1453
|
*/
|
|
978
1454
|
websiteId: string;
|
|
979
1455
|
|
|
1456
|
+
csvFiles?: Array<BadgeCreateParams.CsvFile>;
|
|
1457
|
+
|
|
980
1458
|
/**
|
|
981
1459
|
* The description of the badge
|
|
982
1460
|
*/
|
|
@@ -984,12 +1462,7 @@ export interface BadgeCreateParams {
|
|
|
984
1462
|
}
|
|
985
1463
|
|
|
986
1464
|
export namespace BadgeCreateParams {
|
|
987
|
-
export interface
|
|
988
|
-
/**
|
|
989
|
-
* The type of rule
|
|
990
|
-
*/
|
|
991
|
-
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
992
|
-
|
|
1465
|
+
export interface Condition {
|
|
993
1466
|
/**
|
|
994
1467
|
* The amount of the rule
|
|
995
1468
|
*/
|
|
@@ -1020,6 +1493,11 @@ export namespace BadgeCreateParams {
|
|
|
1020
1493
|
*/
|
|
1021
1494
|
loyaltyLeaderboardViewIds?: Array<string>;
|
|
1022
1495
|
|
|
1496
|
+
/**
|
|
1497
|
+
* UUID of the loyalty rule chain (optional, converted to lowercase)
|
|
1498
|
+
*/
|
|
1499
|
+
loyaltyRuleChainId?: string;
|
|
1500
|
+
|
|
1023
1501
|
/**
|
|
1024
1502
|
* Array of UUIDs of the rule group (optional, converted to lowercase)
|
|
1025
1503
|
*/
|
|
@@ -1039,10 +1517,25 @@ export namespace BadgeCreateParams {
|
|
|
1039
1517
|
* The number of rules that need to be fulfilled to satisfy the condition
|
|
1040
1518
|
*/
|
|
1041
1519
|
requiredCount?: number | null;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* The type of rule
|
|
1523
|
+
*/
|
|
1524
|
+
type?: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
export interface CsvFile {
|
|
1528
|
+
src: string;
|
|
1529
|
+
|
|
1530
|
+
description?: string;
|
|
1531
|
+
|
|
1532
|
+
name?: string;
|
|
1042
1533
|
}
|
|
1043
1534
|
}
|
|
1044
1535
|
|
|
1045
1536
|
export interface BadgeUpdateParams {
|
|
1537
|
+
csvFiles?: Array<BadgeUpdateParams.CsvFile>;
|
|
1538
|
+
|
|
1046
1539
|
/**
|
|
1047
1540
|
* The description of the badge
|
|
1048
1541
|
*/
|
|
@@ -1059,11 +1552,21 @@ export interface BadgeUpdateParams {
|
|
|
1059
1552
|
name?: string;
|
|
1060
1553
|
}
|
|
1061
1554
|
|
|
1555
|
+
export namespace BadgeUpdateParams {
|
|
1556
|
+
export interface CsvFile {
|
|
1557
|
+
src: string;
|
|
1558
|
+
|
|
1559
|
+
description?: string;
|
|
1560
|
+
|
|
1561
|
+
name?: string;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1062
1565
|
export interface BadgeListParams {
|
|
1063
1566
|
/**
|
|
1064
1567
|
* Array of badge IDs (converted to lowercase) to fetch
|
|
1065
1568
|
*/
|
|
1066
|
-
badgeIds?: Array<string>;
|
|
1569
|
+
badgeIds?: string | Array<string>;
|
|
1067
1570
|
|
|
1068
1571
|
/**
|
|
1069
1572
|
* Include deleted badges in the response
|
|
@@ -1086,9 +1589,24 @@ export interface BadgeListParams {
|
|
|
1086
1589
|
startingAfter?: string;
|
|
1087
1590
|
|
|
1088
1591
|
/**
|
|
1089
|
-
*
|
|
1592
|
+
* External identifier of the user group
|
|
1090
1593
|
*/
|
|
1091
|
-
|
|
1594
|
+
userGroupExternalIdentifier?: string;
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* UUID of the user group
|
|
1598
|
+
*/
|
|
1599
|
+
userGroupId?: string;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* UUID of the user, or array of UUID.
|
|
1603
|
+
*/
|
|
1604
|
+
userId?: string | Array<string>;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Wallet Address of the user, or array of wallet addresses.
|
|
1608
|
+
*/
|
|
1609
|
+
walletAddress?: string | Array<string>;
|
|
1092
1610
|
|
|
1093
1611
|
/**
|
|
1094
1612
|
* UUID of the website (optional, converted to lowercase)
|
|
@@ -1097,6 +1615,11 @@ export interface BadgeListParams {
|
|
|
1097
1615
|
}
|
|
1098
1616
|
|
|
1099
1617
|
export interface BadgeRevokeParams {
|
|
1618
|
+
/**
|
|
1619
|
+
* Status of the badge
|
|
1620
|
+
*/
|
|
1621
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
1622
|
+
|
|
1100
1623
|
/**
|
|
1101
1624
|
* UUID of the user (converted to lowercase)
|
|
1102
1625
|
*/
|
|
@@ -1109,6 +1632,11 @@ export interface BadgeRevokeParams {
|
|
|
1109
1632
|
}
|
|
1110
1633
|
|
|
1111
1634
|
export interface BadgeRewardParams {
|
|
1635
|
+
/**
|
|
1636
|
+
* Status of the badge
|
|
1637
|
+
*/
|
|
1638
|
+
status?: 'active' | 'inactive' | 'revoked';
|
|
1639
|
+
|
|
1112
1640
|
/**
|
|
1113
1641
|
* UUID of the user (converted to lowercase)
|
|
1114
1642
|
*/
|