@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.15
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 +58 -0
- package/README.md +21 -13
- package/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +6 -21
- package/index.d.ts +6 -21
- package/index.d.ts.map +1 -1
- package/index.js +8 -23
- package/index.js.map +1 -1
- package/index.mjs +8 -23
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/api/api.d.ts +365 -0
- package/resources/api/api.d.ts.map +1 -0
- package/resources/{assets/assets.js → api/api.js} +38 -13
- package/resources/api/api.js.map +1 -0
- package/resources/{assets/assets.mjs → api/api.mjs} +37 -12
- package/resources/api/api.mjs.map +1 -0
- package/resources/api/index.d.ts +9 -0
- package/resources/api/index.d.ts.map +1 -0
- package/resources/{assets → api}/index.js +11 -7
- package/resources/api/index.js.map +1 -0
- package/resources/{assets → api}/index.mjs +5 -3
- package/resources/api/index.mjs.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.d.ts +8 -4
- package/resources/api/loyalty/accounts.d.ts.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.js +1 -1
- package/resources/api/loyalty/accounts.js.map +1 -0
- package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.mjs +1 -1
- package/resources/api/loyalty/accounts.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.d.ts +6 -2
- package/resources/api/loyalty/badges.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.js +2 -2
- package/resources/api/loyalty/badges.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
- package/resources/api/loyalty/badges.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.d.ts +2 -2
- package/resources/api/loyalty/currencies.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
- package/resources/api/loyalty/currencies.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
- package/resources/api/loyalty/currencies.mjs.map +1 -0
- package/resources/api/loyalty/index.d.ts +10 -0
- package/resources/api/loyalty/index.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.js +5 -3
- package/resources/api/loyalty/index.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
- package/resources/api/loyalty/index.mjs.map +1 -0
- package/resources/api/loyalty/loyalty.d.ts +807 -0
- package/resources/api/loyalty/loyalty.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
- package/resources/api/loyalty/loyalty.js.map +1 -0
- package/resources/api/loyalty/loyalty.mjs +59 -0
- package/resources/api/loyalty/loyalty.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.d.ts +15 -8
- package/resources/api/loyalty/multipliers.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.js +9 -3
- package/resources/api/loyalty/multipliers.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/multipliers.mjs +9 -3
- package/resources/api/loyalty/multipliers.mjs.map +1 -0
- package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/api/loyalty/questions-responses.js.map +1 -0
- package/resources/api/loyalty/questions-responses.mjs.map +1 -0
- package/resources/api/loyalty/questions.d.ts.map +1 -0
- package/resources/api/loyalty/questions.js.map +1 -0
- package/resources/api/loyalty/questions.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +8 -8
- package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.js +2 -2
- package/resources/api/loyalty/rule-edits.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rule-edits.mjs +2 -2
- package/resources/api/loyalty/rule-edits.mjs.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.d.ts +41 -25
- package/resources/api/loyalty/rules.d.ts.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.js +3 -3
- package/resources/api/loyalty/rules.js.map +1 -0
- package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
- package/resources/api/loyalty/rules.mjs.map +1 -0
- package/resources/api/loyalty.d.ts +2 -0
- package/resources/api/loyalty.d.ts.map +1 -0
- package/resources/api/loyalty.js +19 -0
- package/resources/api/loyalty.js.map +1 -0
- package/resources/api/loyalty.mjs +3 -0
- package/resources/api/loyalty.mjs.map +1 -0
- package/resources/{assets → api}/minting.d.ts +8 -8
- package/resources/api/minting.d.ts.map +1 -0
- package/resources/{assets → api}/minting.js +1 -1
- package/resources/api/minting.js.map +1 -0
- package/resources/{assets → api}/minting.mjs +1 -1
- package/resources/api/minting.mjs.map +1 -0
- package/resources/api/referral/index.d.ts +3 -0
- package/resources/api/referral/index.d.ts.map +1 -0
- package/resources/api/referral/index.js.map +1 -0
- package/resources/{assets → api}/referral/index.mjs +1 -1
- package/resources/api/referral/index.mjs.map +1 -0
- package/resources/api/referral/referral.d.ts +31 -0
- package/resources/api/referral/referral.d.ts.map +1 -0
- package/resources/{assets → api}/referral/referral.js +2 -2
- package/resources/api/referral/referral.js.map +1 -0
- package/resources/{assets → api}/referral/referral.mjs +3 -3
- package/resources/api/referral/referral.mjs.map +1 -0
- package/resources/{assets → api}/referral/users.d.ts +9 -9
- package/resources/api/referral/users.d.ts.map +1 -0
- package/resources/{assets → api}/referral/users.js +2 -2
- package/resources/api/referral/users.js.map +1 -0
- package/resources/{assets → api}/referral/users.mjs +2 -2
- package/resources/api/referral/users.mjs.map +1 -0
- package/resources/api/referral.d.ts +2 -0
- package/resources/api/referral.d.ts.map +1 -0
- package/resources/api/referral.js +19 -0
- package/resources/api/referral.js.map +1 -0
- package/resources/api/referral.mjs +3 -0
- package/resources/api/referral.mjs.map +1 -0
- package/resources/api/users/index.d.ts +3 -0
- package/resources/api/users/index.d.ts.map +1 -0
- package/resources/{users → api/users}/index.js +1 -3
- package/resources/api/users/index.js.map +1 -0
- package/resources/{users → api/users}/index.mjs +1 -2
- package/resources/api/users/index.mjs.map +1 -0
- package/resources/{users → api/users}/metadatas.d.ts +14 -9
- package/resources/api/users/metadatas.d.ts.map +1 -0
- package/resources/{users → api/users}/metadatas.js +4 -4
- package/resources/api/users/metadatas.js.map +1 -0
- package/resources/{users → api/users}/metadatas.mjs +4 -4
- package/resources/api/users/metadatas.mjs.map +1 -0
- package/resources/api/users/users.d.ts +133 -0
- package/resources/api/users/users.d.ts.map +1 -0
- package/resources/{users → api/users}/users.js +19 -5
- package/resources/api/users/users.js.map +1 -0
- package/resources/{assets → api/users}/users.mjs +15 -15
- package/resources/api/users/users.mjs.map +1 -0
- package/resources/api/users.d.ts +2 -0
- package/resources/api/users.d.ts.map +1 -0
- package/resources/api/users.js +19 -0
- package/resources/api/users.js.map +1 -0
- package/resources/api/users.mjs +3 -0
- package/resources/api/users.mjs.map +1 -0
- package/resources/{assets → api}/website-collections.d.ts +9 -9
- package/resources/api/website-collections.d.ts.map +1 -0
- package/resources/{assets → api}/website-collections.js +2 -2
- package/resources/api/website-collections.js.map +1 -0
- package/resources/{assets → api}/website-collections.mjs +2 -2
- package/resources/api/website-collections.mjs.map +1 -0
- package/resources/{assets → api}/website-user-roles.d.ts +28 -28
- package/resources/api/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → api}/website-user-roles.js +7 -7
- package/resources/api/website-user-roles.js.map +1 -0
- package/resources/{assets → api}/website-user-roles.mjs +7 -7
- package/resources/api/website-user-roles.mjs.map +1 -0
- package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
- package/resources/api/websites.d.ts.map +1 -0
- package/resources/{websites.js → api/websites.js} +2 -2
- package/resources/api/websites.js.map +1 -0
- package/resources/{websites.mjs → api/websites.mjs} +2 -2
- package/resources/api/websites.mjs.map +1 -0
- package/resources/api.d.ts +2 -0
- package/resources/api.d.ts.map +1 -0
- package/resources/api.js +19 -0
- package/resources/api.js.map +1 -0
- package/resources/api.mjs +3 -0
- package/resources/api.mjs.map +1 -0
- package/resources/index.d.ts +1 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -13
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -6
- package/resources/index.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/core.ts +2 -2
- package/src/index.ts +23 -54
- package/src/resources/api/api.ts +629 -0
- package/src/resources/api/index.ts +51 -0
- package/src/resources/{loyalty/transaction-entries → api/loyalty}/accounts.ts +12 -7
- package/src/resources/{loyalty → api/loyalty}/badges.ts +8 -3
- package/src/resources/{loyalty → api/loyalty}/currencies.ts +2 -2
- package/src/resources/{loyalty → api/loyalty}/index.ts +38 -16
- package/src/resources/api/loyalty/loyalty.ts +1297 -0
- package/src/resources/{loyalty → api/loyalty}/multipliers.ts +23 -11
- package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +9 -12
- package/src/resources/{loyalty → api/loyalty}/rules.ts +98 -27
- package/src/resources/api/loyalty.ts +3 -0
- package/src/resources/{assets → api}/minting.ts +15 -11
- package/src/resources/api/referral/index.ts +10 -0
- package/src/resources/api/referral/referral.ts +70 -0
- package/src/resources/{assets → api}/referral/users.ts +12 -18
- package/src/resources/api/referral.ts +3 -0
- package/src/resources/api/users/index.ts +18 -0
- package/src/resources/{users → api/users}/metadatas.ts +22 -18
- package/src/resources/api/users/users.ts +203 -0
- package/src/resources/api/users.ts +3 -0
- package/src/resources/{assets → api}/website-collections.ts +17 -16
- package/src/resources/{assets → api}/website-user-roles.ts +40 -40
- package/src/resources/{websites.ts → api/websites.ts} +3 -3
- package/src/resources/api.ts +3 -0
- package/src/resources/index.ts +8 -16
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +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.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.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.map +0 -1
- 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.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.map +0 -1
- 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.map +0 -1
- 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.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/accounts.d.ts +0 -4
- package/resources/loyalty/accounts.d.ts.map +0 -1
- package/resources/loyalty/accounts.js +0 -9
- package/resources/loyalty/accounts.js.map +0 -1
- package/resources/loyalty/accounts.mjs +0 -5
- package/resources/loyalty/accounts.mjs.map +0 -1
- package/resources/loyalty/badges.d.ts.map +0 -1
- package/resources/loyalty/badges.js.map +0 -1
- package/resources/loyalty/badges.mjs.map +0 -1
- package/resources/loyalty/currencies.d.ts.map +0 -1
- package/resources/loyalty/currencies.js.map +0 -1
- package/resources/loyalty/currencies.mjs.map +0 -1
- package/resources/loyalty/index.d.ts +0 -9
- package/resources/loyalty/index.d.ts.map +0 -1
- package/resources/loyalty/index.js.map +0 -1
- package/resources/loyalty/index.mjs.map +0 -1
- package/resources/loyalty/loyalty.d.ts +0 -34
- package/resources/loyalty/loyalty.d.ts.map +0 -1
- package/resources/loyalty/loyalty.js.map +0 -1
- package/resources/loyalty/loyalty.mjs +0 -36
- package/resources/loyalty/loyalty.mjs.map +0 -1
- package/resources/loyalty/multipliers.d.ts.map +0 -1
- package/resources/loyalty/multipliers.js.map +0 -1
- package/resources/loyalty/multipliers.mjs.map +0 -1
- package/resources/loyalty/rule-edits.d.ts.map +0 -1
- package/resources/loyalty/rule-edits.js.map +0 -1
- package/resources/loyalty/rule-edits.mjs.map +0 -1
- package/resources/loyalty/rules.d.ts.map +0 -1
- package/resources/loyalty/rules.js.map +0 -1
- package/resources/loyalty/rules.mjs.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
- 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.map +0 -1
- 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 +0 -66
- 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/index.d.ts +0 -4
- package/resources/users/index.d.ts.map +0 -1
- package/resources/users/index.js.map +0 -1
- package/resources/users/index.mjs.map +0 -1
- package/resources/users/metadatas.d.ts.map +0 -1
- package/resources/users/metadatas.js.map +0 -1
- package/resources/users/metadatas.mjs.map +0 -1
- package/resources/users/users.d.ts +0 -14
- package/resources/users/users.d.ts.map +0 -1
- package/resources/users/users.js.map +0 -1
- package/resources/users/users.mjs +0 -16
- package/resources/users/users.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/resources/websites.d.ts.map +0 -1
- package/resources/websites.js.map +0 -1
- package/resources/websites.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/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/accounts.ts +0 -5
- package/src/resources/loyalty/loyalty.ts +0 -165
- 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/index.ts +0 -11
- package/src/resources/users/users.ts +0 -33
- package/src/resources/users/wallets.ts +0 -5
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.d.ts +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.js +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.mjs +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.d.ts +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.js +0 -0
- /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.mjs +0 -0
- /package/resources/{assets → api}/referral/index.js +0 -0
- /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.ts +0 -0
- /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions.ts +0 -0
package/index.js
CHANGED
|
@@ -31,12 +31,7 @@ const Core = __importStar(require("./core.js"));
|
|
|
31
31
|
const Errors = __importStar(require("./error.js"));
|
|
32
32
|
const Uploads = __importStar(require("./uploads.js"));
|
|
33
33
|
const API = __importStar(require("./resources/index.js"));
|
|
34
|
-
const
|
|
35
|
-
const websites_1 = require("./resources/websites.js");
|
|
36
|
-
const assets_1 = require("./resources/assets/assets.js");
|
|
37
|
-
const drip_1 = require("./resources/drip/drip.js");
|
|
38
|
-
const loyalty_1 = require("./resources/loyalty/loyalty.js");
|
|
39
|
-
const users_1 = require("./resources/users/users.js");
|
|
34
|
+
const api_1 = require("./resources/api/api.js");
|
|
40
35
|
/**
|
|
41
36
|
* API Client for interfacing with the Snag Solutions API.
|
|
42
37
|
*/
|
|
@@ -44,8 +39,8 @@ class SnagSolutions extends Core.APIClient {
|
|
|
44
39
|
/**
|
|
45
40
|
* API Client for interfacing with the Snag Solutions API.
|
|
46
41
|
*
|
|
47
|
-
* @param {string | undefined} [opts.apiKey=process.env['
|
|
48
|
-
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://
|
|
42
|
+
* @param {string | undefined} [opts.apiKey=process.env['SNAG_SOLUTIONS_API_KEY'] ?? undefined]
|
|
43
|
+
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
|
|
49
44
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
50
45
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
51
46
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -53,14 +48,14 @@ class SnagSolutions extends Core.APIClient {
|
|
|
53
48
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
54
49
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
55
50
|
*/
|
|
56
|
-
constructor({ baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'), apiKey = Core.readEnv('
|
|
51
|
+
constructor({ baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'), apiKey = Core.readEnv('SNAG_SOLUTIONS_API_KEY'), ...opts } = {}) {
|
|
57
52
|
if (apiKey === undefined) {
|
|
58
|
-
throw new Errors.SnagSolutionsError("The
|
|
53
|
+
throw new Errors.SnagSolutionsError("The SNAG_SOLUTIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the SnagSolutions client with an apiKey option, like new SnagSolutions({ apiKey: 'My API Key' }).");
|
|
59
54
|
}
|
|
60
55
|
const options = {
|
|
61
56
|
apiKey,
|
|
62
57
|
...opts,
|
|
63
|
-
baseURL: baseURL || `https://
|
|
58
|
+
baseURL: baseURL || `https://api.example.com`,
|
|
64
59
|
};
|
|
65
60
|
super({
|
|
66
61
|
baseURL: options.baseURL,
|
|
@@ -69,12 +64,7 @@ class SnagSolutions extends Core.APIClient {
|
|
|
69
64
|
maxRetries: options.maxRetries,
|
|
70
65
|
fetch: options.fetch,
|
|
71
66
|
});
|
|
72
|
-
this.
|
|
73
|
-
this.users = new API.Users(this);
|
|
74
|
-
this.loyalty = new API.Loyalty(this);
|
|
75
|
-
this.auctionBids = new API.AuctionBids(this);
|
|
76
|
-
this.websites = new API.Websites(this);
|
|
77
|
-
this.drip = new API.Drip(this);
|
|
67
|
+
this.api = new API.API(this);
|
|
78
68
|
this._options = options;
|
|
79
69
|
this.apiKey = apiKey;
|
|
80
70
|
}
|
|
@@ -113,12 +103,7 @@ SnagSolutions.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
|
113
103
|
SnagSolutions.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
114
104
|
SnagSolutions.toFile = Uploads.toFile;
|
|
115
105
|
SnagSolutions.fileFromPath = Uploads.fileFromPath;
|
|
116
|
-
SnagSolutions.
|
|
117
|
-
SnagSolutions.Users = users_1.Users;
|
|
118
|
-
SnagSolutions.Loyalty = loyalty_1.Loyalty;
|
|
119
|
-
SnagSolutions.AuctionBids = auction_bids_1.AuctionBids;
|
|
120
|
-
SnagSolutions.Websites = websites_1.Websites;
|
|
121
|
-
SnagSolutions.Drip = drip_1.Drip;
|
|
106
|
+
SnagSolutions.API = api_1.API;
|
|
122
107
|
var uploads_1 = require("./uploads.js");
|
|
123
108
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
124
109
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,sDAAqC;AACrC,0DAAyC;AACzC,gDAQ6B;AAiE7B;;GAEG;AACH,MAAa,aAAc,SAAQ,IAAI,CAAC,SAAS;IAK/C;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,EACjD,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAC/C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,kBAAkB,CACjC,0MAA0M,CAC3M,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,yBAAyB;SAC9C,CAAC;QAEF,KAAK,CAA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;AACrC,2BAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,4BAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,6BAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,iCAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,iCAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,mCAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,sCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,oBAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,0BAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,aAAa,CAAC,GAAG,GAAG,SAAS,CAAC;AAe9B,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,2GAAA,kBAAkB,OAAA;AAClB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,aAAa,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -5,12 +5,7 @@ import * as Core from "./core.mjs";
|
|
|
5
5
|
import * as Errors from "./error.mjs";
|
|
6
6
|
import * as Uploads from "./uploads.mjs";
|
|
7
7
|
import * as API from "./resources/index.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { Websites, } from "./resources/websites.mjs";
|
|
10
|
-
import { Assets, } from "./resources/assets/assets.mjs";
|
|
11
|
-
import { Drip } from "./resources/drip/drip.mjs";
|
|
12
|
-
import { Loyalty } from "./resources/loyalty/loyalty.mjs";
|
|
13
|
-
import { Users } from "./resources/users/users.mjs";
|
|
8
|
+
import { API as ApiapiAPI, } from "./resources/api/api.mjs";
|
|
14
9
|
/**
|
|
15
10
|
* API Client for interfacing with the Snag Solutions API.
|
|
16
11
|
*/
|
|
@@ -18,8 +13,8 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
18
13
|
/**
|
|
19
14
|
* API Client for interfacing with the Snag Solutions API.
|
|
20
15
|
*
|
|
21
|
-
* @param {string | undefined} [opts.apiKey=process.env['
|
|
22
|
-
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://
|
|
16
|
+
* @param {string | undefined} [opts.apiKey=process.env['SNAG_SOLUTIONS_API_KEY'] ?? undefined]
|
|
17
|
+
* @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
|
|
23
18
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
24
19
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
25
20
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -27,14 +22,14 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
27
22
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
28
23
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
29
24
|
*/
|
|
30
|
-
constructor({ baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'), apiKey = Core.readEnv('
|
|
25
|
+
constructor({ baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'), apiKey = Core.readEnv('SNAG_SOLUTIONS_API_KEY'), ...opts } = {}) {
|
|
31
26
|
if (apiKey === undefined) {
|
|
32
|
-
throw new Errors.SnagSolutionsError("The
|
|
27
|
+
throw new Errors.SnagSolutionsError("The SNAG_SOLUTIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the SnagSolutions client with an apiKey option, like new SnagSolutions({ apiKey: 'My API Key' }).");
|
|
33
28
|
}
|
|
34
29
|
const options = {
|
|
35
30
|
apiKey,
|
|
36
31
|
...opts,
|
|
37
|
-
baseURL: baseURL || `https://
|
|
32
|
+
baseURL: baseURL || `https://api.example.com`,
|
|
38
33
|
};
|
|
39
34
|
super({
|
|
40
35
|
baseURL: options.baseURL,
|
|
@@ -43,12 +38,7 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
43
38
|
maxRetries: options.maxRetries,
|
|
44
39
|
fetch: options.fetch,
|
|
45
40
|
});
|
|
46
|
-
this.
|
|
47
|
-
this.users = new API.Users(this);
|
|
48
|
-
this.loyalty = new API.Loyalty(this);
|
|
49
|
-
this.auctionBids = new API.AuctionBids(this);
|
|
50
|
-
this.websites = new API.Websites(this);
|
|
51
|
-
this.drip = new API.Drip(this);
|
|
41
|
+
this.api = new API.API(this);
|
|
52
42
|
this._options = options;
|
|
53
43
|
this.apiKey = apiKey;
|
|
54
44
|
}
|
|
@@ -86,12 +76,7 @@ SnagSolutions.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
|
86
76
|
SnagSolutions.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
87
77
|
SnagSolutions.toFile = Uploads.toFile;
|
|
88
78
|
SnagSolutions.fileFromPath = Uploads.fileFromPath;
|
|
89
|
-
SnagSolutions.
|
|
90
|
-
SnagSolutions.Users = Users;
|
|
91
|
-
SnagSolutions.Loyalty = Loyalty;
|
|
92
|
-
SnagSolutions.AuctionBids = AuctionBids;
|
|
93
|
-
SnagSolutions.Websites = Websites;
|
|
94
|
-
SnagSolutions.Drip = Drip;
|
|
79
|
+
SnagSolutions.API = ApiapiAPI;
|
|
95
80
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
96
81
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
|
97
82
|
export default SnagSolutions;
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EACL,GAAG,IAAI,SAAS,GAOjB;AAiED;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,SAAS;IAK/C;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,EACjD,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAC/C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,kBAAkB,CACjC,0MAA0M,CAC3M,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,yBAAyB;SAC9C,CAAC;QAEF,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAQ;YACzB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC,cAAc;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QAOL,QAAG,GAAY,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,CAAC;AACrD,sCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,oBAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,0BAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,aAAa,CAAC,GAAG,GAAG,SAAS,CAAC;OAevB,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snagsolutions/sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.15",
|
|
4
4
|
"description": "The official TypeScript library for the Snag Solutions API",
|
|
5
5
|
"author": "Snag Solutions <dev-feedback@snag-solutions.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -87,38 +87,17 @@
|
|
|
87
87
|
"default": "./index.mjs"
|
|
88
88
|
},
|
|
89
89
|
"./*.mjs": {
|
|
90
|
-
"types":
|
|
91
|
-
|
|
92
|
-
"./*/index.d.ts"
|
|
93
|
-
],
|
|
94
|
-
"default": [
|
|
95
|
-
"./*.mjs",
|
|
96
|
-
"./*/index.mjs"
|
|
97
|
-
]
|
|
90
|
+
"types": "./*.d.ts",
|
|
91
|
+
"default": "./*.mjs"
|
|
98
92
|
},
|
|
99
93
|
"./*.js": {
|
|
100
|
-
"types":
|
|
101
|
-
|
|
102
|
-
"./*/index.d.ts"
|
|
103
|
-
],
|
|
104
|
-
"default": [
|
|
105
|
-
"./*.js",
|
|
106
|
-
"./*/index.js"
|
|
107
|
-
]
|
|
94
|
+
"types": "./*.d.ts",
|
|
95
|
+
"default": "./*.js"
|
|
108
96
|
},
|
|
109
97
|
"./*": {
|
|
110
|
-
"types":
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
],
|
|
114
|
-
"require": [
|
|
115
|
-
"./*.js",
|
|
116
|
-
"./*/index.js"
|
|
117
|
-
],
|
|
118
|
-
"default": [
|
|
119
|
-
"./*.mjs",
|
|
120
|
-
"./*/index.mjs"
|
|
121
|
-
]
|
|
98
|
+
"types": "./*.d.ts",
|
|
99
|
+
"require": "./*.js",
|
|
100
|
+
"default": "./*.mjs"
|
|
122
101
|
}
|
|
123
102
|
}
|
|
124
103
|
}
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as MintingAPI from "./minting.js";
|
|
4
|
+
import { Minting, MintingGetAssetsParams, MintingGetAssetsResponse } from "./minting.js";
|
|
5
|
+
import * as WebsiteCollectionsAPI from "./website-collections.js";
|
|
6
|
+
import { WebsiteCollectionCreateParams, WebsiteCollectionListParams, WebsiteCollectionListResponse, WebsiteCollections } from "./website-collections.js";
|
|
7
|
+
import * as WebsiteUserRolesAPI from "./website-user-roles.js";
|
|
8
|
+
import { WebsiteUserRoleAssignParams, WebsiteUserRoleAssignResponse, WebsiteUserRoleListParams, WebsiteUserRoleListResponse, WebsiteUserRoles } from "./website-user-roles.js";
|
|
9
|
+
import * as WebsitesAPI from "./websites.js";
|
|
10
|
+
import { WebsiteCreateParams, WebsiteCreateResponse, WebsiteListParams, WebsiteListResponse, Websites } from "./websites.js";
|
|
11
|
+
import * as LoyaltyAPI from "./loyalty/loyalty.js";
|
|
12
|
+
import { Loyalty, LoyaltyCreateTransactionParams, LoyaltyCreateTransactionResponse, LoyaltyGetRuleGroupsParams, LoyaltyGetRuleGroupsResponse, LoyaltyListTransactionEntriesParams, LoyaltyListTransactionEntriesResponse } from "./loyalty/loyalty.js";
|
|
13
|
+
import * as ReferralAPI from "./referral/referral.js";
|
|
14
|
+
import { Referral, ReferralCreateCodeParams, ReferralCreateCodeResponse } from "./referral/referral.js";
|
|
15
|
+
import * as UsersAPI from "./users/users.js";
|
|
16
|
+
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserDisconnectParams, UserDisconnectResponse, Users } from "./users/users.js";
|
|
17
|
+
export declare class API extends APIResource {
|
|
18
|
+
users: UsersAPI.Users;
|
|
19
|
+
loyalty: LoyaltyAPI.Loyalty;
|
|
20
|
+
minting: MintingAPI.Minting;
|
|
21
|
+
referral: ReferralAPI.Referral;
|
|
22
|
+
websites: WebsitesAPI.Websites;
|
|
23
|
+
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections;
|
|
24
|
+
websiteUserRoles: WebsiteUserRolesAPI.WebsiteUserRoles;
|
|
25
|
+
/**
|
|
26
|
+
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
27
|
+
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
28
|
+
* asset using the presigned URL.
|
|
29
|
+
*/
|
|
30
|
+
createAssetUploadURL(body: APICreateAssetUploadURLParams, options?: Core.RequestOptions): Core.APIPromise<APICreateAssetUploadURLResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of auction bids with optional filtering and pagination.
|
|
33
|
+
*/
|
|
34
|
+
listAuctionBids(query?: APIListAuctionBidsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
35
|
+
listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
38
|
+
*/
|
|
39
|
+
listAuctions(options?: Core.RequestOptions): Core.APIPromise<APIListAuctionsResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint allows you to get users
|
|
42
|
+
*/
|
|
43
|
+
listUsers(query?: APIListUsersParams, options?: Core.RequestOptions): Core.APIPromise<APIListUsersResponse>;
|
|
44
|
+
listUsers(options?: Core.RequestOptions): Core.APIPromise<APIListUsersResponse>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Response returned upon successful generation of the signed URL for uploading the
|
|
48
|
+
* file.
|
|
49
|
+
*/
|
|
50
|
+
export interface APICreateAssetUploadURLResponse {
|
|
51
|
+
/**
|
|
52
|
+
* The pre-signed URL to be used for uploading the file.
|
|
53
|
+
*/
|
|
54
|
+
signedUrl: string;
|
|
55
|
+
/**
|
|
56
|
+
* The URL of the uploaded file.
|
|
57
|
+
*/
|
|
58
|
+
url: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Schema for the response when fetching auctions
|
|
62
|
+
*/
|
|
63
|
+
export interface APIListAuctionsResponse {
|
|
64
|
+
data: Array<APIListAuctionsResponse.Data>;
|
|
65
|
+
hasNextPage: boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace APIListAuctionsResponse {
|
|
68
|
+
interface Data {
|
|
69
|
+
id: string;
|
|
70
|
+
auctionBids: Array<Data.AuctionBid>;
|
|
71
|
+
auctionItems: Array<Data.AuctionItem>;
|
|
72
|
+
biddersOwnCollectionAddresses: Array<string>;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
currencyAddress: string | null;
|
|
75
|
+
currencyDecimals: number;
|
|
76
|
+
deletedAt: string | null;
|
|
77
|
+
description: string;
|
|
78
|
+
endsAt: string;
|
|
79
|
+
extendedDurationInSeconds: number | null;
|
|
80
|
+
hideBids: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Schema representing a loyalty currency
|
|
83
|
+
*/
|
|
84
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
85
|
+
loyaltyCurrencyId: string | null;
|
|
86
|
+
minBidAmount: string;
|
|
87
|
+
minBidIncrement: string | null;
|
|
88
|
+
mintingContractId: string;
|
|
89
|
+
name: string;
|
|
90
|
+
network: 'ethereum' | 'zksync';
|
|
91
|
+
organizationId: string;
|
|
92
|
+
reservePrice: string | null;
|
|
93
|
+
signature: string;
|
|
94
|
+
startsAt: string;
|
|
95
|
+
status: 'in_progress' | 'completed' | 'cancelled';
|
|
96
|
+
type: 'first_price' | 'second_price' | 'english';
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
userId: string;
|
|
99
|
+
websiteId: string;
|
|
100
|
+
}
|
|
101
|
+
namespace Data {
|
|
102
|
+
/**
|
|
103
|
+
* Schema representing an auction bid
|
|
104
|
+
*/
|
|
105
|
+
interface AuctionBid {
|
|
106
|
+
id: string;
|
|
107
|
+
amount: string;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
}
|
|
110
|
+
interface AuctionItem {
|
|
111
|
+
id: string;
|
|
112
|
+
/**
|
|
113
|
+
* Schema representing a minting contract asset
|
|
114
|
+
*/
|
|
115
|
+
mintingContractAsset: AuctionItem.MintingContractAsset;
|
|
116
|
+
quantity: number;
|
|
117
|
+
sortId: number;
|
|
118
|
+
}
|
|
119
|
+
namespace AuctionItem {
|
|
120
|
+
/**
|
|
121
|
+
* Schema representing a minting contract asset
|
|
122
|
+
*/
|
|
123
|
+
interface MintingContractAsset {
|
|
124
|
+
id: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Schema representing a loyalty currency
|
|
129
|
+
*/
|
|
130
|
+
interface LoyaltyCurrency {
|
|
131
|
+
id: string;
|
|
132
|
+
decimals: number;
|
|
133
|
+
imageUrl: string | null;
|
|
134
|
+
name: string;
|
|
135
|
+
symbol: string;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export interface APIListUsersResponse {
|
|
140
|
+
/**
|
|
141
|
+
* Schema for users response
|
|
142
|
+
*/
|
|
143
|
+
data: Array<APIListUsersResponse.Data>;
|
|
144
|
+
}
|
|
145
|
+
export declare namespace APIListUsersResponse {
|
|
146
|
+
interface Data {
|
|
147
|
+
id: string;
|
|
148
|
+
isSnagSuperAdmin: boolean;
|
|
149
|
+
walletAddress: string;
|
|
150
|
+
/**
|
|
151
|
+
* The followers of the user, only returned if includeFollow is true
|
|
152
|
+
*/
|
|
153
|
+
_count?: Data._Count | null;
|
|
154
|
+
/**
|
|
155
|
+
* The delegations from the user, only returned if includeDelegation is true
|
|
156
|
+
*/
|
|
157
|
+
delegationsFrom?: Array<Data.DelegationsFrom> | null;
|
|
158
|
+
/**
|
|
159
|
+
* The followers of the user, only returned if includeFollow is true and the user
|
|
160
|
+
* is querying their own user
|
|
161
|
+
*/
|
|
162
|
+
followers?: Array<Data.Follower> | null;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the user has notifications enabled, only returned if
|
|
165
|
+
* includeNotifications is true
|
|
166
|
+
*/
|
|
167
|
+
notifications?: boolean;
|
|
168
|
+
privyUserId?: string | null;
|
|
169
|
+
stardustProfileId?: string | null;
|
|
170
|
+
temporaryLoyaltyUser?: boolean | null;
|
|
171
|
+
userMetadata?: Array<Data.UserMetadata> | null;
|
|
172
|
+
}
|
|
173
|
+
namespace Data {
|
|
174
|
+
/**
|
|
175
|
+
* The followers of the user, only returned if includeFollow is true
|
|
176
|
+
*/
|
|
177
|
+
interface _Count {
|
|
178
|
+
select: _Count.Select;
|
|
179
|
+
}
|
|
180
|
+
namespace _Count {
|
|
181
|
+
interface Select {
|
|
182
|
+
followers: number;
|
|
183
|
+
follows: number;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
interface DelegationsFrom {
|
|
187
|
+
walletAddress: string;
|
|
188
|
+
}
|
|
189
|
+
interface Follower {
|
|
190
|
+
userId: string;
|
|
191
|
+
}
|
|
192
|
+
interface UserMetadata {
|
|
193
|
+
bio?: string | null;
|
|
194
|
+
discordUser?: string | null;
|
|
195
|
+
discordVerifiedAt?: string | null;
|
|
196
|
+
displayName?: string | null;
|
|
197
|
+
/**
|
|
198
|
+
* The email address of the user, only returned if the user is querying their own
|
|
199
|
+
* user
|
|
200
|
+
*/
|
|
201
|
+
emailAddress?: string | null;
|
|
202
|
+
emailVerifiedAt?: string | null;
|
|
203
|
+
epicAccountIdentifier?: string | null;
|
|
204
|
+
epicUsername?: string | null;
|
|
205
|
+
instagramUser?: string | null;
|
|
206
|
+
instagramVerifiedAt?: string | null;
|
|
207
|
+
isBlocked?: boolean | null;
|
|
208
|
+
location?: string | null;
|
|
209
|
+
logoUrl?: string | null;
|
|
210
|
+
meta?: string | null;
|
|
211
|
+
portfolioUrl?: string | null;
|
|
212
|
+
steamUserId?: string | null;
|
|
213
|
+
steamUsername?: string | null;
|
|
214
|
+
telegramUserId?: string | null;
|
|
215
|
+
telegramUsername?: string | null;
|
|
216
|
+
telegramVerifiedAt?: string | null;
|
|
217
|
+
twitterUser?: string | null;
|
|
218
|
+
twitterUserFollowersCount?: number | null;
|
|
219
|
+
twitterVerifiedAt?: string | null;
|
|
220
|
+
userGroupId?: string | null;
|
|
221
|
+
walletGroupIdentifier?: string | null;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export interface APICreateAssetUploadURLParams {
|
|
226
|
+
/**
|
|
227
|
+
* The name of the file, must match the regex pattern (converted to lowercase)
|
|
228
|
+
*/
|
|
229
|
+
fileName: string;
|
|
230
|
+
/**
|
|
231
|
+
* The file path, must be a valid enum value.
|
|
232
|
+
*/
|
|
233
|
+
filePath?: 'announcements' | 'images' | 'videos' | 'banners' | 'fonts' | 'posts' | 'profiles' | 'minting' | 'loyalty';
|
|
234
|
+
/**
|
|
235
|
+
* UUID of the organization (optional, converted to lowercase)
|
|
236
|
+
*/
|
|
237
|
+
organizationId?: string;
|
|
238
|
+
/**
|
|
239
|
+
* UUID of the user (optional, converted to lowercase)
|
|
240
|
+
*/
|
|
241
|
+
userId?: string;
|
|
242
|
+
/**
|
|
243
|
+
* UUID of the website (optional, converted to lowercase)
|
|
244
|
+
*/
|
|
245
|
+
websiteId?: string;
|
|
246
|
+
}
|
|
247
|
+
export interface APIListAuctionBidsParams {
|
|
248
|
+
/**
|
|
249
|
+
* The bid ID
|
|
250
|
+
*/
|
|
251
|
+
id?: string;
|
|
252
|
+
/**
|
|
253
|
+
* ID of the auction
|
|
254
|
+
*/
|
|
255
|
+
auctionId?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Maximum number of bids to return
|
|
258
|
+
*/
|
|
259
|
+
limit?: number;
|
|
260
|
+
/**
|
|
261
|
+
* ID of the organization
|
|
262
|
+
*/
|
|
263
|
+
organizationId?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Pagination cursor to start after a specific bid ID
|
|
266
|
+
*/
|
|
267
|
+
startingAfter?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Status of the bid
|
|
270
|
+
*/
|
|
271
|
+
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
272
|
+
/**
|
|
273
|
+
* ID of the user who made the bid
|
|
274
|
+
*/
|
|
275
|
+
userId?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Wallet address of the bidder
|
|
278
|
+
*/
|
|
279
|
+
walletAddress?: string;
|
|
280
|
+
/**
|
|
281
|
+
* ID of the website
|
|
282
|
+
*/
|
|
283
|
+
websiteId?: string;
|
|
284
|
+
}
|
|
285
|
+
export interface APIListUsersParams {
|
|
286
|
+
/**
|
|
287
|
+
* The address of the user
|
|
288
|
+
*/
|
|
289
|
+
address?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Discord username of the user
|
|
292
|
+
*/
|
|
293
|
+
discordUser?: string;
|
|
294
|
+
/**
|
|
295
|
+
* External identifier for the user
|
|
296
|
+
*/
|
|
297
|
+
externalIdentifier?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Whether to include delegations in the response
|
|
300
|
+
*/
|
|
301
|
+
includeDelegation?: boolean | null;
|
|
302
|
+
/**
|
|
303
|
+
* Whether to include followers in the response
|
|
304
|
+
*/
|
|
305
|
+
includeFollow?: boolean | null;
|
|
306
|
+
/**
|
|
307
|
+
* Number of users to return
|
|
308
|
+
*/
|
|
309
|
+
limit?: number;
|
|
310
|
+
/**
|
|
311
|
+
* The ID of the organization
|
|
312
|
+
*/
|
|
313
|
+
organizationId?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Pagination cursor to start after a specific user ID
|
|
316
|
+
*/
|
|
317
|
+
startingAfter?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Steam username of the user
|
|
320
|
+
*/
|
|
321
|
+
steamUsername?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Telegram ID of the user
|
|
324
|
+
*/
|
|
325
|
+
telegramUserId?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Telegram username of the user
|
|
328
|
+
*/
|
|
329
|
+
telegramUsername?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Twitter username of the user
|
|
332
|
+
*/
|
|
333
|
+
twitterUser?: string;
|
|
334
|
+
/**
|
|
335
|
+
* External identifier for the user group controlled by you
|
|
336
|
+
*/
|
|
337
|
+
userGroupExternalIdentifier?: string;
|
|
338
|
+
/**
|
|
339
|
+
* The ID of the user group
|
|
340
|
+
*/
|
|
341
|
+
userGroupId?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The ID of the user
|
|
344
|
+
*/
|
|
345
|
+
userId?: string | Array<string>;
|
|
346
|
+
/**
|
|
347
|
+
* The wallet address of the user
|
|
348
|
+
*/
|
|
349
|
+
walletAddress?: string;
|
|
350
|
+
/**
|
|
351
|
+
* The ID of the website
|
|
352
|
+
*/
|
|
353
|
+
websiteId?: string;
|
|
354
|
+
}
|
|
355
|
+
export declare namespace API {
|
|
356
|
+
export { type APICreateAssetUploadURLResponse as APICreateAssetUploadURLResponse, type APIListAuctionsResponse as APIListAuctionsResponse, type APIListUsersResponse as APIListUsersResponse, type APICreateAssetUploadURLParams as APICreateAssetUploadURLParams, type APIListAuctionBidsParams as APIListAuctionBidsParams, type APIListUsersParams as APIListUsersParams, };
|
|
357
|
+
export { Users as Users, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
358
|
+
export { Loyalty as Loyalty, type LoyaltyCreateTransactionResponse as LoyaltyCreateTransactionResponse, type LoyaltyGetRuleGroupsResponse as LoyaltyGetRuleGroupsResponse, type LoyaltyListTransactionEntriesResponse as LoyaltyListTransactionEntriesResponse, type LoyaltyCreateTransactionParams as LoyaltyCreateTransactionParams, type LoyaltyGetRuleGroupsParams as LoyaltyGetRuleGroupsParams, type LoyaltyListTransactionEntriesParams as LoyaltyListTransactionEntriesParams, };
|
|
359
|
+
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetAssetsParams as MintingGetAssetsParams, };
|
|
360
|
+
export { Referral as Referral, type ReferralCreateCodeResponse as ReferralCreateCodeResponse, type ReferralCreateCodeParams as ReferralCreateCodeParams, };
|
|
361
|
+
export { Websites as Websites, type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
362
|
+
export { WebsiteCollections as WebsiteCollections, type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
363
|
+
export { WebsiteUserRoles as WebsiteUserRoles, type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
364
|
+
}
|
|
365
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/resources/api/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OA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