@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
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as AccountStreaksAPI from "./account-streaks.mjs";
|
|
4
|
+
import { AccountStreaks, } from "./account-streaks.mjs";
|
|
3
5
|
import * as AccountsAPI from "./accounts.mjs";
|
|
4
|
-
import { Accounts } from "./accounts.mjs";
|
|
6
|
+
import { Accounts, } from "./accounts.mjs";
|
|
5
7
|
import * as BadgesAPI from "./badges.mjs";
|
|
6
8
|
import { Badges, } from "./badges.mjs";
|
|
7
9
|
import * as CurrenciesAPI from "./currencies.mjs";
|
|
8
10
|
import { Currencies, } from "./currencies.mjs";
|
|
9
11
|
import * as MultipliersAPI from "./multipliers.mjs";
|
|
10
12
|
import { Multipliers, } from "./multipliers.mjs";
|
|
13
|
+
import * as QuestionsAPI from "./questions.mjs";
|
|
14
|
+
import { Questions, } from "./questions.mjs";
|
|
15
|
+
import * as QuestionsResponsesAPI from "./questions-responses.mjs";
|
|
16
|
+
import { QuestionsResponses, } from "./questions-responses.mjs";
|
|
11
17
|
import * as RuleEditsAPI from "./rule-edits.mjs";
|
|
12
18
|
import { RuleEdits, } from "./rule-edits.mjs";
|
|
19
|
+
import * as RuleGroupsAPI from "./rule-groups.mjs";
|
|
20
|
+
import { RuleGroups, } from "./rule-groups.mjs";
|
|
13
21
|
import * as RulesAPI from "./rules.mjs";
|
|
14
22
|
import { Rules, } from "./rules.mjs";
|
|
15
|
-
import * as
|
|
16
|
-
import {
|
|
23
|
+
import * as TransactionsAPI from "./transactions/transactions.mjs";
|
|
24
|
+
import { Transactions, } from "./transactions/transactions.mjs";
|
|
17
25
|
export class Loyalty extends APIResource {
|
|
18
26
|
constructor() {
|
|
19
27
|
super(...arguments);
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.transactionEntries = new TransactionEntriesAPI.TransactionEntries(this._client);
|
|
23
|
-
this.ruleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
28
|
+
this.ruleGroups = new RuleGroupsAPI.RuleGroups(this._client);
|
|
29
|
+
this.transactions = new TransactionsAPI.Transactions(this._client);
|
|
24
30
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
25
|
-
this.
|
|
31
|
+
this.accountStreaks = new AccountStreaksAPI.AccountStreaks(this._client);
|
|
26
32
|
this.badges = new BadgesAPI.Badges(this._client);
|
|
33
|
+
this.currencies = new CurrenciesAPI.Currencies(this._client);
|
|
34
|
+
this.multipliers = new MultipliersAPI.Multipliers(this._client);
|
|
35
|
+
this.ruleEdits = new RuleEditsAPI.RuleEdits(this._client);
|
|
36
|
+
this.rules = new RulesAPI.Rules(this._client);
|
|
37
|
+
this.questions = new QuestionsAPI.Questions(this._client);
|
|
38
|
+
this.questionsResponses = new QuestionsResponsesAPI.QuestionsResponses(this._client);
|
|
27
39
|
}
|
|
28
40
|
}
|
|
29
|
-
Loyalty.
|
|
30
|
-
Loyalty.
|
|
31
|
-
Loyalty.TransactionEntries = TransactionEntries;
|
|
32
|
-
Loyalty.RuleEdits = RuleEdits;
|
|
41
|
+
Loyalty.RuleGroups = RuleGroups;
|
|
42
|
+
Loyalty.Transactions = Transactions;
|
|
33
43
|
Loyalty.Accounts = Accounts;
|
|
34
|
-
Loyalty.
|
|
44
|
+
Loyalty.AccountStreaks = AccountStreaks;
|
|
35
45
|
Loyalty.Badges = Badges;
|
|
46
|
+
Loyalty.Currencies = Currencies;
|
|
47
|
+
Loyalty.Multipliers = Multipliers;
|
|
48
|
+
Loyalty.RuleEdits = RuleEdits;
|
|
49
|
+
Loyalty.Rules = Rules;
|
|
50
|
+
Loyalty.Questions = Questions;
|
|
51
|
+
Loyalty.QuestionsResponses = QuestionsResponses;
|
|
36
52
|
//# sourceMappingURL=loyalty.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/loyalty.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,
|
|
1
|
+
{"version":3,"file":"loyalty.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/loyalty.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAGL,cAAc,GACf;OACM,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,SAAS;OACd,EAYL,MAAM,GACP;OACM,KAAK,aAAa;OAClB,EACL,UAAU,GAKX;OACM,KAAK,cAAc;OACnB,EAUL,WAAW,GACZ;OACM,KAAK,YAAY;OACjB,EAOL,SAAS,GACV;OACM,KAAK,qBAAqB;OAC1B,EAKL,kBAAkB,GACnB;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAQL,UAAU,GACX;OACM,KAAK,QAAQ;OACb,EAaL,KAAK,GACN;OACM,KAAK,eAAe;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C;AAChC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -3,22 +3,61 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class Multipliers extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Create a new loyalty multiplier for a wallet.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
10
|
+
* multiplier: 0.01,
|
|
11
|
+
* walletAddress: 'walletAddress',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
6
14
|
*/
|
|
7
15
|
create(body: MultiplierCreateParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierCreateResponse>;
|
|
8
16
|
/**
|
|
9
17
|
* Update an existing loyalty multiplier.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const multiplier = await client.loyalty.multipliers.update(
|
|
22
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
10
25
|
*/
|
|
11
26
|
update(multiplierId: string, body?: MultiplierUpdateParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierUpdateResponse>;
|
|
12
27
|
update(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierUpdateResponse>;
|
|
13
28
|
/**
|
|
14
29
|
* Get Loyalty Multipliers
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const multipliers = await client.loyalty.multipliers.list();
|
|
34
|
+
* ```
|
|
15
35
|
*/
|
|
16
36
|
list(query?: MultiplierListParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
17
37
|
list(options?: Core.RequestOptions): Core.APIPromise<MultiplierListResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Delete a loyalty multiplier by its ID.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
44
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
delete(multiplierId: string, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteResponse>;
|
|
18
49
|
/**
|
|
19
50
|
* Delete a loyalty multiplier by its external identifier.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response =
|
|
55
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
56
|
+
* externalIdentifier: 'externalIdentifier',
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
20
59
|
*/
|
|
21
|
-
|
|
60
|
+
deleteByExternalId(body: MultiplierDeleteByExternalIDParams, options?: Core.RequestOptions): Core.APIPromise<MultiplierDeleteByExternalIDResponse>;
|
|
22
61
|
}
|
|
23
62
|
/**
|
|
24
63
|
* Schema for loyalty multiplier
|
|
@@ -33,11 +72,18 @@ export interface MultiplierCreateResponse {
|
|
|
33
72
|
organizationId: string;
|
|
34
73
|
title: string | null;
|
|
35
74
|
updatedAt: string;
|
|
75
|
+
/**
|
|
76
|
+
* Schema for a loyalty multiplier user
|
|
77
|
+
*/
|
|
36
78
|
user: MultiplierCreateResponse.User;
|
|
37
79
|
userId: string;
|
|
38
80
|
websiteId: string;
|
|
81
|
+
loyaltyRuleId?: string;
|
|
39
82
|
}
|
|
40
83
|
export declare namespace MultiplierCreateResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Schema for a loyalty multiplier user
|
|
86
|
+
*/
|
|
41
87
|
interface User {
|
|
42
88
|
id: string;
|
|
43
89
|
walletAddress: string;
|
|
@@ -56,11 +102,18 @@ export interface MultiplierUpdateResponse {
|
|
|
56
102
|
organizationId: string;
|
|
57
103
|
title: string | null;
|
|
58
104
|
updatedAt: string;
|
|
105
|
+
/**
|
|
106
|
+
* Schema for a loyalty multiplier user
|
|
107
|
+
*/
|
|
59
108
|
user: MultiplierUpdateResponse.User;
|
|
60
109
|
userId: string;
|
|
61
110
|
websiteId: string;
|
|
111
|
+
loyaltyRuleId?: string;
|
|
62
112
|
}
|
|
63
113
|
export declare namespace MultiplierUpdateResponse {
|
|
114
|
+
/**
|
|
115
|
+
* Schema for a loyalty multiplier user
|
|
116
|
+
*/
|
|
64
117
|
interface User {
|
|
65
118
|
id: string;
|
|
66
119
|
walletAddress: string;
|
|
@@ -84,21 +137,31 @@ export declare namespace MultiplierListResponse {
|
|
|
84
137
|
organizationId: string;
|
|
85
138
|
title: string | null;
|
|
86
139
|
updatedAt: string;
|
|
140
|
+
/**
|
|
141
|
+
* Schema for a loyalty multiplier user
|
|
142
|
+
*/
|
|
87
143
|
user: Data.User;
|
|
88
144
|
userId: string;
|
|
89
145
|
websiteId: string;
|
|
146
|
+
loyaltyRuleId?: string;
|
|
90
147
|
}
|
|
91
148
|
namespace Data {
|
|
149
|
+
/**
|
|
150
|
+
* Schema for a loyalty multiplier user
|
|
151
|
+
*/
|
|
92
152
|
interface User {
|
|
93
153
|
id: string;
|
|
94
154
|
walletAddress: string;
|
|
95
155
|
}
|
|
96
156
|
}
|
|
97
157
|
}
|
|
158
|
+
export interface MultiplierDeleteResponse {
|
|
159
|
+
id: string;
|
|
160
|
+
}
|
|
98
161
|
/**
|
|
99
162
|
* Schema for loyalty multiplier
|
|
100
163
|
*/
|
|
101
|
-
export interface
|
|
164
|
+
export interface MultiplierDeleteByExternalIDResponse {
|
|
102
165
|
id: string;
|
|
103
166
|
createdAt: string;
|
|
104
167
|
deletedAt: string | null;
|
|
@@ -108,11 +171,18 @@ export interface MultiplierDeleteResponse {
|
|
|
108
171
|
organizationId: string;
|
|
109
172
|
title: string | null;
|
|
110
173
|
updatedAt: string;
|
|
111
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Schema for a loyalty multiplier user
|
|
176
|
+
*/
|
|
177
|
+
user: MultiplierDeleteByExternalIDResponse.User;
|
|
112
178
|
userId: string;
|
|
113
179
|
websiteId: string;
|
|
180
|
+
loyaltyRuleId?: string;
|
|
114
181
|
}
|
|
115
|
-
export declare namespace
|
|
182
|
+
export declare namespace MultiplierDeleteByExternalIDResponse {
|
|
183
|
+
/**
|
|
184
|
+
* Schema for a loyalty multiplier user
|
|
185
|
+
*/
|
|
116
186
|
interface User {
|
|
117
187
|
id: string;
|
|
118
188
|
walletAddress: string;
|
|
@@ -131,13 +201,11 @@ export interface MultiplierUpdateParams {
|
|
|
131
201
|
title?: string | null;
|
|
132
202
|
}
|
|
133
203
|
export interface MultiplierListParams {
|
|
134
|
-
discordUser?: string;
|
|
135
204
|
externalIdentifier?: string;
|
|
136
205
|
includeDeleted?: string;
|
|
137
206
|
limit?: number;
|
|
138
207
|
organizationId?: string;
|
|
139
208
|
startingAfter?: string;
|
|
140
|
-
twitterUser?: string;
|
|
141
209
|
userGroupExternalIdentifier?: string;
|
|
142
210
|
userGroupId?: string;
|
|
143
211
|
userId?: string | Array<string>;
|
|
@@ -145,10 +213,10 @@ export interface MultiplierListParams {
|
|
|
145
213
|
walletGroupIdentifier?: string;
|
|
146
214
|
websiteId?: string;
|
|
147
215
|
}
|
|
148
|
-
export interface
|
|
216
|
+
export interface MultiplierDeleteByExternalIDParams {
|
|
149
217
|
externalIdentifier: string;
|
|
150
218
|
}
|
|
151
219
|
export declare namespace Multipliers {
|
|
152
|
-
export { type MultiplierCreateResponse as MultiplierCreateResponse, type MultiplierUpdateResponse as MultiplierUpdateResponse, type MultiplierListResponse as MultiplierListResponse, type MultiplierDeleteResponse as MultiplierDeleteResponse, type MultiplierCreateParams as MultiplierCreateParams, type MultiplierUpdateParams as MultiplierUpdateParams, type MultiplierListParams as MultiplierListParams, type
|
|
220
|
+
export { type MultiplierCreateResponse as MultiplierCreateResponse, type MultiplierUpdateResponse as MultiplierUpdateResponse, type MultiplierListResponse as MultiplierListResponse, type MultiplierDeleteResponse as MultiplierDeleteResponse, type MultiplierDeleteByExternalIDResponse as MultiplierDeleteByExternalIDResponse, type MultiplierCreateParams as MultiplierCreateParams, type MultiplierUpdateParams as MultiplierUpdateParams, type MultiplierListParams as MultiplierListParams, type MultiplierDeleteByExternalIDParams as MultiplierDeleteByExternalIDParams, };
|
|
153
221
|
}
|
|
154
222
|
//# sourceMappingURL=multipliers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"multipliers.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C;;;;;;;;;OASG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAC5C,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CA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,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kCAAkC;IACjD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
|
|
@@ -7,6 +7,14 @@ const core_1 = require("../../core.js");
|
|
|
7
7
|
class Multipliers extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Create a new loyalty multiplier for a wallet.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
14
|
+
* multiplier: 0.01,
|
|
15
|
+
* walletAddress: 'walletAddress',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
create(body, options) {
|
|
12
20
|
return this._client.post('/api/loyalty/multipliers', { body, ...options });
|
|
@@ -23,10 +31,31 @@ class Multipliers extends resource_1.APIResource {
|
|
|
23
31
|
}
|
|
24
32
|
return this._client.get('/api/loyalty/multipliers', { query, ...options });
|
|
25
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete a loyalty multiplier by its ID.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
40
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
delete(multiplierId, options) {
|
|
45
|
+
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
46
|
+
}
|
|
26
47
|
/**
|
|
27
48
|
* Delete a loyalty multiplier by its external identifier.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const response =
|
|
53
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
54
|
+
* externalIdentifier: 'externalIdentifier',
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
28
57
|
*/
|
|
29
|
-
|
|
58
|
+
deleteByExternalId(body, options) {
|
|
30
59
|
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
31
60
|
}
|
|
32
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.js","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,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,kBAAkB,CAChB,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAjGD,kCAiGC"}
|
|
@@ -4,6 +4,14 @@ import { isRequestOptions } from "../../core.mjs";
|
|
|
4
4
|
export class Multipliers extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create a new loyalty multiplier for a wallet.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const multiplier = await client.loyalty.multipliers.create({
|
|
11
|
+
* multiplier: 0.01,
|
|
12
|
+
* walletAddress: 'walletAddress',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
create(body, options) {
|
|
9
17
|
return this._client.post('/api/loyalty/multipliers', { body, ...options });
|
|
@@ -20,10 +28,31 @@ export class Multipliers extends APIResource {
|
|
|
20
28
|
}
|
|
21
29
|
return this._client.get('/api/loyalty/multipliers', { query, ...options });
|
|
22
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Delete a loyalty multiplier by its ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const multiplier = await client.loyalty.multipliers.delete(
|
|
37
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
delete(multiplierId, options) {
|
|
42
|
+
return this._client.delete(`/api/loyalty/multipliers/${multiplierId}`, options);
|
|
43
|
+
}
|
|
23
44
|
/**
|
|
24
45
|
* Delete a loyalty multiplier by its external identifier.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response =
|
|
50
|
+
* await client.loyalty.multipliers.deleteByExternalId({
|
|
51
|
+
* externalIdentifier: 'externalIdentifier',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
25
54
|
*/
|
|
26
|
-
|
|
55
|
+
deleteByExternalId(body, options) {
|
|
27
56
|
return this._client.delete('/api/loyalty/multipliers', { body, ...options });
|
|
28
57
|
}
|
|
29
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipliers.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"multipliers.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/multipliers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAkBD,MAAM,CACJ,YAAoB,EACpB,OAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAYD,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAoB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,IAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts}
RENAMED
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import * as Core from "
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
3
|
export declare class QuestionsResponses extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Retrieve responses submitted by the authenticated user, optionally filtered by
|
|
6
6
|
* question IDs
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const questionsResponses =
|
|
11
|
+
* await client.loyalty.questionsResponses.list();
|
|
12
|
+
* ```
|
|
7
13
|
*/
|
|
8
14
|
list(query?: QuestionsResponseListParams, options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseListResponse>;
|
|
9
15
|
list(options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseListResponse>;
|
|
10
16
|
/**
|
|
11
17
|
* This endpoint allows you to submit a response to a question.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response =
|
|
22
|
+
* await client.loyalty.questionsResponses.submit({
|
|
23
|
+
* loyaltyQuestionChoiceId:
|
|
24
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
12
27
|
*/
|
|
13
28
|
submit(body: QuestionsResponseSubmitParams, options?: Core.RequestOptions): Core.APIPromise<QuestionsResponseSubmitResponse>;
|
|
14
29
|
}
|
|
@@ -80,16 +95,40 @@ export declare namespace QuestionsResponseSubmitResponse {
|
|
|
80
95
|
}
|
|
81
96
|
}
|
|
82
97
|
export interface QuestionsResponseListParams {
|
|
98
|
+
/**
|
|
99
|
+
* UUID of the organization to filter responses
|
|
100
|
+
*/
|
|
101
|
+
organizationId?: string;
|
|
83
102
|
/**
|
|
84
103
|
* UUID(s) of the questions to filter responses
|
|
85
104
|
*/
|
|
86
105
|
questionsId?: string | Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* UUID of the user to filter responses
|
|
108
|
+
*/
|
|
109
|
+
userId?: string;
|
|
110
|
+
/**
|
|
111
|
+
* UUID of the website to filter responses
|
|
112
|
+
*/
|
|
113
|
+
websiteId?: string;
|
|
87
114
|
}
|
|
88
115
|
export interface QuestionsResponseSubmitParams {
|
|
89
116
|
/**
|
|
90
117
|
* UUID of the selected choice
|
|
91
118
|
*/
|
|
92
119
|
loyaltyQuestionChoiceId: string;
|
|
120
|
+
/**
|
|
121
|
+
* UUID of the organization to filter responses
|
|
122
|
+
*/
|
|
123
|
+
organizationId?: string;
|
|
124
|
+
/**
|
|
125
|
+
* UUID of the user who submitted the response
|
|
126
|
+
*/
|
|
127
|
+
userId?: string;
|
|
128
|
+
/**
|
|
129
|
+
* UUID of the website to filter responses
|
|
130
|
+
*/
|
|
131
|
+
websiteId?: string;
|
|
93
132
|
}
|
|
94
133
|
export declare namespace QuestionsResponses {
|
|
95
134
|
export { type QuestionsResponseListResponse as QuestionsResponseListResponse, type QuestionsResponseSubmitResponse as QuestionsResponseSubmitResponse, type QuestionsResponseListParams as QuestionsResponseListParams, type QuestionsResponseSubmitParams as QuestionsResponseSubmitParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IACjD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAWnF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAGpD;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,KAAK,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;CAC1D;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,QAAQ;QACvB,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,EAAE,OAAO,CAAC;QAEnB,uBAAuB,EAAE,MAAM,CAAC;QAEhC,iBAAiB,EAAE,MAAM,CAAC;QAE1B,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;QAE5B,MAAM,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;YAE9D,IAA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I,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js}
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.QuestionsResponses = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const core_1 = require("
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
7
|
class QuestionsResponses extends resource_1.APIResource {
|
|
8
8
|
list(query = {}, options) {
|
|
9
9
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
@@ -13,6 +13,15 @@ class QuestionsResponses extends resource_1.APIResource {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* This endpoint allows you to submit a response to a question.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response =
|
|
20
|
+
* await client.loyalty.questionsResponses.submit({
|
|
21
|
+
* loyaltyQuestionChoiceId:
|
|
22
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
16
25
|
*/
|
|
17
26
|
submit(body, options) {
|
|
18
27
|
return this._client.post('/api/loyalty/questions_responses', { body, ...options });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.js","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,kBAAmB,SAAQ,sBAAW;IAgBjD,IAAI,CACF,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AA5CD,gDA4CC"}
|
package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { isRequestOptions } from "
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
4
|
export class QuestionsResponses extends APIResource {
|
|
5
5
|
list(query = {}, options) {
|
|
6
6
|
if (isRequestOptions(query)) {
|
|
@@ -10,6 +10,15 @@ export class QuestionsResponses extends APIResource {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* This endpoint allows you to submit a response to a question.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response =
|
|
17
|
+
* await client.loyalty.questionsResponses.submit({
|
|
18
|
+
* loyaltyQuestionChoiceId:
|
|
19
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
submit(body, options) {
|
|
15
24
|
return this._client.post('/api/loyalty/questions_responses', { body, ...options });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions-responses.mjs","sourceRoot":"","sources":["../../src/resources/loyalty/questions-responses.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IAgBjD,IAAI,CACF,QAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import * as Core from "
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
3
|
export declare class Questions extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* This endpoint allows you to create a new question.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const question = await client.loyalty.questions.create({
|
|
10
|
+
* loyaltyQuestionAnswers: [
|
|
11
|
+
* { isCorrect: true, sortIdentifier: 1, text: 'Red' },
|
|
12
|
+
* ],
|
|
13
|
+
* loyaltyRuleId: '123e4567-e89b-12d3-a456-426614174000',
|
|
14
|
+
* questionText: 'What is your favorite color?',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
6
17
|
*/
|
|
7
18
|
create(body: QuestionCreateParams, options?: Core.RequestOptions): Core.APIPromise<QuestionCreateResponse>;
|
|
8
19
|
/**
|
|
9
20
|
* This endpoint allows you to update an existing question.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const question = await client.loyalty.questions.update(
|
|
25
|
+
* 'id',
|
|
26
|
+
* {
|
|
27
|
+
* loyaltyQuestionAnswers: [
|
|
28
|
+
* { isCorrect: true, sortIdentifier: 1, text: 'Red' },
|
|
29
|
+
* ],
|
|
30
|
+
* questionText: 'What is your favorite color?',
|
|
31
|
+
* },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
10
34
|
*/
|
|
11
35
|
update(id: string, body: QuestionUpdateParams, options?: Core.RequestOptions): Core.APIPromise<QuestionUpdateResponse>;
|
|
12
36
|
/**
|
|
13
37
|
* This endpoint allows you to fetch questions for a loyalty rule.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const questions = await client.loyalty.questions.list({
|
|
42
|
+
* loyaltyRuleIds: '123e4567-e89b-12d3-a456-426614174000',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
14
45
|
*/
|
|
15
46
|
list(query: QuestionListParams, options?: Core.RequestOptions): Core.APIPromise<QuestionListResponse>;
|
|
16
47
|
}
|
|
@@ -138,11 +169,15 @@ export interface QuestionListParams {
|
|
|
138
169
|
/**
|
|
139
170
|
* UUID of the organization to fetch questions for
|
|
140
171
|
*/
|
|
141
|
-
organizationId
|
|
172
|
+
organizationId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* UUID of the user to fetch questions for
|
|
175
|
+
*/
|
|
176
|
+
userId?: string;
|
|
142
177
|
/**
|
|
143
178
|
* UUID of the website to fetch questions for
|
|
144
179
|
*/
|
|
145
|
-
websiteId
|
|
180
|
+
websiteId?: string;
|
|
146
181
|
}
|
|
147
182
|
export declare namespace Questions {
|
|
148
183
|
export { type QuestionCreateResponse as QuestionCreateResponse, type QuestionUpdateResponse as QuestionUpdateResponse, type QuestionListResponse as QuestionListResponse, type QuestionCreateParams as QuestionCreateParams, type QuestionUpdateParams as QuestionUpdateParams, type QuestionListParams as QuestionListParams, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/resources/loyalty/questions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1G;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAGtG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IAEX,sBAAsB,EAAE,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;IAE5E,IAAI,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,qBAAqB;QACpC,EAAE,EAAE,MAAM,CAAC;QAEX,cAAc,EAAE,MAAM,CAAC;QAEvB,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IAEX,sBAAsB,EAAE,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;IAE5E,IAAI,EAAE,MAAM,CA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