@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.16
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 +33 -0
- package/README.md +19 -13
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts.map +1 -1
- package/core.js +4 -1
- package/core.js.map +1 -1
- package/core.mjs +5 -2
- package/core.mjs.map +1 -1
- package/index.d.mts +17 -11
- package/index.d.ts +17 -11
- package/index.d.ts.map +1 -1
- package/index.js +14 -8
- package/index.js.map +1 -1
- package/index.mjs +15 -9
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/assets.d.ts +50 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +17 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +13 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/auctions.d.ts +134 -0
- package/resources/auctions.d.ts.map +1 -0
- package/resources/{auction-bids.js → auctions.js} +12 -6
- package/resources/auctions.js.map +1 -0
- package/resources/{auction-bids.mjs → auctions.mjs} +10 -4
- package/resources/auctions.mjs.map +1 -0
- package/resources/auth.d.ts +40 -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/accounts.d.ts +190 -0
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +15 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +15 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +4 -0
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +6 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +8 -5
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +9 -3
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +5 -2
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +29 -17
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +24 -12
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +25 -13
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +37 -6
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +7 -1
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +7 -1
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/{transaction-entries/questions-responses.d.ts → questions-responses.d.ts} +2 -2
- package/resources/loyalty/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.js → questions-responses.js} +2 -2
- package/resources/loyalty/questions-responses.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions-responses.mjs → questions-responses.mjs} +2 -2
- package/resources/loyalty/questions-responses.mjs.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.d.ts → questions.d.ts} +2 -2
- package/resources/loyalty/questions.d.ts.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.js → questions.js} +1 -1
- package/resources/loyalty/questions.js.map +1 -0
- package/resources/loyalty/{transaction-entries/questions.mjs → questions.mjs} +1 -1
- package/resources/loyalty/questions.mjs.map +1 -0
- package/resources/loyalty/rule-edits.d.ts +6 -6
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +1 -1
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +1 -1
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +559 -0
- package/resources/loyalty/rule-groups.d.ts.map +1 -0
- package/resources/loyalty/rule-groups.js +16 -0
- package/resources/loyalty/rule-groups.js.map +1 -0
- package/resources/loyalty/rule-groups.mjs +12 -0
- package/resources/loyalty/rule-groups.mjs.map +1 -0
- package/resources/loyalty/rules.d.ts +144 -23
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +1 -1
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +1 -1
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions.d.ts +248 -0
- package/resources/loyalty/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions.js +22 -0
- package/resources/loyalty/transactions.js.map +1 -0
- package/resources/loyalty/transactions.mjs +18 -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} +10 -10
- 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 +31 -0
- package/resources/referral/referral.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/referral.js +4 -4
- package/resources/referral/referral.js.map +1 -0
- package/resources/{assets/referral → referral}/referral.mjs +5 -5
- package/resources/referral/referral.mjs.map +1 -0
- package/resources/{assets/referral → referral}/users.d.ts +11 -11
- package/resources/referral/users.d.ts.map +1 -0
- package/resources/{assets/referral → referral}/users.js +3 -3
- package/resources/referral/users.js.map +1 -0
- package/resources/{assets/referral → referral}/users.mjs +3 -3
- 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 +17 -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 +296 -6
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +25 -4
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +25 -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 +73 -0
- package/resources/websites/website-collections.d.ts.map +1 -0
- package/resources/{assets → websites}/website-collections.js +2 -2
- package/resources/websites/website-collections.js.map +1 -0
- package/resources/{assets → websites}/website-collections.mjs +2 -2
- package/resources/websites/website-collections.mjs.map +1 -0
- package/resources/{assets → websites}/website-user-roles.d.ts +28 -28
- package/resources/websites/website-user-roles.d.ts.map +1 -0
- package/resources/{assets → websites}/website-user-roles.js +7 -7
- package/resources/websites/website-user-roles.js.map +1 -0
- package/resources/{assets → websites}/website-user-roles.mjs +7 -7
- package/resources/websites/website-user-roles.mjs.map +1 -0
- package/resources/websites/websites.d.ts +211 -0
- package/resources/websites/websites.d.ts.map +1 -0
- package/resources/{assets/assets.js → websites/websites.js} +14 -27
- package/resources/websites/websites.js.map +1 -0
- package/resources/websites/websites.mjs +29 -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 +8 -3
- package/src/index.ts +66 -22
- package/src/resources/assets.ts +77 -0
- package/src/resources/auctions.ts +209 -0
- package/src/resources/auth.ts +69 -0
- package/src/resources/index.ts +21 -10
- package/src/resources/loyalty/accounts.ts +250 -1
- package/src/resources/loyalty/badges.ts +5 -0
- package/src/resources/loyalty/currencies.ts +6 -0
- package/src/resources/loyalty/index.ts +40 -14
- package/src/resources/loyalty/loyalty.ts +129 -69
- package/src/resources/loyalty/multipliers.ts +44 -8
- package/src/resources/loyalty/{transaction-entries/questions-responses.ts → questions-responses.ts} +3 -3
- package/src/resources/loyalty/{transaction-entries/questions.ts → questions.ts} +2 -2
- package/src/resources/loyalty/rule-edits.ts +7 -10
- package/src/resources/loyalty/rule-groups.ts +818 -0
- package/src/resources/loyalty/rules.ts +406 -192
- package/src/resources/loyalty/transactions.ts +332 -0
- package/src/resources/loyalty.ts +3 -0
- package/src/resources/{assets/minting.ts → minting.ts} +32 -27
- package/src/resources/referral/index.ts +10 -0
- package/src/resources/referral/referral.ts +70 -0
- package/src/resources/{assets/referral → referral}/users.ts +14 -20
- package/src/resources/referral.ts +3 -0
- package/src/resources/users/index.ts +13 -4
- package/src/resources/users/metadatas.ts +26 -15
- package/src/resources/users/users.ts +423 -9
- package/src/resources/users.ts +3 -0
- package/src/resources/websites/index.ts +22 -0
- package/src/resources/{assets → websites}/website-collections.ts +32 -30
- package/src/resources/{assets → websites}/website-user-roles.ts +40 -40
- package/src/resources/websites/websites.ts +299 -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.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 +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.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 +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.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.map +0 -1
- 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.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/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/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
package/index.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import * as Core from "./core.js";
|
|
|
3
3
|
import * as Errors from "./error.js";
|
|
4
4
|
import * as Uploads from "./uploads.js";
|
|
5
5
|
import * as API from "./resources/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { AssetCreateAssetParams, AssetCreateAssetResponse, Assets } from "./resources/assets.js";
|
|
7
|
+
import { AuctionListAuctionBidsParams, AuctionListAuctionsResponse, Auctions } from "./resources/auctions.js";
|
|
8
|
+
import { Auth, AuthConnectAuthParams, AuthConnectAuthResponse } from "./resources/auth.js";
|
|
9
|
+
import { Minting, MintingGetAssetsParams, MintingGetAssetsResponse } from "./resources/minting.js";
|
|
10
10
|
import { Loyalty } from "./resources/loyalty/loyalty.js";
|
|
11
|
-
import {
|
|
11
|
+
import { Referral, ReferralCreateCodeParams, ReferralCreateCodeResponse } from "./resources/referral/referral.js";
|
|
12
|
+
import { UserConnectParams, UserConnectResponse, UserCountParams, UserCountResponse, UserDisconnectParams, UserDisconnectResponse, UserListParams, UserListResponse, Users } from "./resources/users/users.js";
|
|
13
|
+
import { WebsiteCreateParams, WebsiteCreateResponse, WebsiteListParams, WebsiteListResponse, Websites } from "./resources/websites/websites.js";
|
|
12
14
|
export interface ClientOptions {
|
|
13
15
|
/**
|
|
14
16
|
* API key required to authenticate with the Snag Solutions API.
|
|
@@ -84,11 +86,13 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
84
86
|
*/
|
|
85
87
|
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
|
86
88
|
assets: API.Assets;
|
|
89
|
+
auth: API.Auth;
|
|
90
|
+
auctions: API.Auctions;
|
|
87
91
|
users: API.Users;
|
|
88
92
|
loyalty: API.Loyalty;
|
|
89
|
-
|
|
93
|
+
minting: API.Minting;
|
|
94
|
+
referral: API.Referral;
|
|
90
95
|
websites: API.Websites;
|
|
91
|
-
drip: API.Drip;
|
|
92
96
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
93
97
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
94
98
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -113,12 +117,14 @@ export declare class SnagSolutions extends Core.APIClient {
|
|
|
113
117
|
}
|
|
114
118
|
export declare namespace SnagSolutions {
|
|
115
119
|
export type RequestOptions = Core.RequestOptions;
|
|
116
|
-
export { Assets as Assets, type
|
|
117
|
-
export {
|
|
120
|
+
export { Assets as Assets, type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
|
|
121
|
+
export { Auth as Auth, type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthParams as AuthConnectAuthParams, };
|
|
122
|
+
export { Auctions as Auctions, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
123
|
+
export { Users as Users, type UserListResponse as UserListResponse, type UserConnectResponse as UserConnectResponse, type UserCountResponse as UserCountResponse, type UserDisconnectResponse as UserDisconnectResponse, type UserListParams as UserListParams, type UserConnectParams as UserConnectParams, type UserCountParams as UserCountParams, type UserDisconnectParams as UserDisconnectParams, };
|
|
118
124
|
export { Loyalty as Loyalty };
|
|
119
|
-
export {
|
|
125
|
+
export { Minting as Minting, type MintingGetAssetsResponse as MintingGetAssetsResponse, type MintingGetAssetsParams as MintingGetAssetsParams, };
|
|
126
|
+
export { Referral as Referral, type ReferralCreateCodeResponse as ReferralCreateCodeResponse, type ReferralCreateCodeParams as ReferralCreateCodeParams, };
|
|
120
127
|
export { Websites as Websites, type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
121
|
-
export { Drip as Drip };
|
|
122
128
|
}
|
|
123
129
|
export { toFile, fileFromPath } from "./uploads.js";
|
|
124
130
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3G,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,C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AO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,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,MAAM,SAAS,CAAC;AAEjB,eAAe,aAAa,CAAC"}
|
package/index.js
CHANGED
|
@@ -31,12 +31,14 @@ 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
|
|
36
|
-
const
|
|
37
|
-
const
|
|
34
|
+
const assets_1 = require("./resources/assets.js");
|
|
35
|
+
const auctions_1 = require("./resources/auctions.js");
|
|
36
|
+
const auth_1 = require("./resources/auth.js");
|
|
37
|
+
const minting_1 = require("./resources/minting.js");
|
|
38
38
|
const loyalty_1 = require("./resources/loyalty/loyalty.js");
|
|
39
|
+
const referral_1 = require("./resources/referral/referral.js");
|
|
39
40
|
const users_1 = require("./resources/users/users.js");
|
|
41
|
+
const websites_1 = require("./resources/websites/websites.js");
|
|
40
42
|
/**
|
|
41
43
|
* API Client for interfacing with the Snag Solutions API.
|
|
42
44
|
*/
|
|
@@ -70,11 +72,13 @@ class SnagSolutions extends Core.APIClient {
|
|
|
70
72
|
fetch: options.fetch,
|
|
71
73
|
});
|
|
72
74
|
this.assets = new API.Assets(this);
|
|
75
|
+
this.auth = new API.Auth(this);
|
|
76
|
+
this.auctions = new API.Auctions(this);
|
|
73
77
|
this.users = new API.Users(this);
|
|
74
78
|
this.loyalty = new API.Loyalty(this);
|
|
75
|
-
this.
|
|
79
|
+
this.minting = new API.Minting(this);
|
|
80
|
+
this.referral = new API.Referral(this);
|
|
76
81
|
this.websites = new API.Websites(this);
|
|
77
|
-
this.drip = new API.Drip(this);
|
|
78
82
|
this._options = options;
|
|
79
83
|
this.apiKey = apiKey;
|
|
80
84
|
}
|
|
@@ -114,11 +118,13 @@ SnagSolutions.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
|
114
118
|
SnagSolutions.toFile = Uploads.toFile;
|
|
115
119
|
SnagSolutions.fileFromPath = Uploads.fileFromPath;
|
|
116
120
|
SnagSolutions.Assets = assets_1.Assets;
|
|
121
|
+
SnagSolutions.Auth = auth_1.Auth;
|
|
122
|
+
SnagSolutions.Auctions = auctions_1.Auctions;
|
|
117
123
|
SnagSolutions.Users = users_1.Users;
|
|
118
124
|
SnagSolutions.Loyalty = loyalty_1.Loyalty;
|
|
119
|
-
SnagSolutions.
|
|
125
|
+
SnagSolutions.Minting = minting_1.Minting;
|
|
126
|
+
SnagSolutions.Referral = referral_1.Referral;
|
|
120
127
|
SnagSolutions.Websites = websites_1.Websites;
|
|
121
|
-
SnagSolutions.Drip = drip_1.Drip;
|
|
122
128
|
var uploads_1 = require("./uploads.js");
|
|
123
129
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
124
130
|
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,kDAA8F;AA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,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,MAAM,GAAG,eAAM,CAAC;AAC9B,aAAa,CAAC,IAAI,GAAG,WAAI,CAAC;AAC1B,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAClC,aAAa,CAAC,KAAK,GAAG,aAAK,CAAC;AAC5B,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,iBAAO,CAAC;AAChC,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAClC,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAyDlC,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,14 @@ 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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { Assets } from "./resources/assets.mjs";
|
|
9
|
+
import { Auctions } from "./resources/auctions.mjs";
|
|
10
|
+
import { Auth } from "./resources/auth.mjs";
|
|
11
|
+
import { Minting } from "./resources/minting.mjs";
|
|
12
12
|
import { Loyalty } from "./resources/loyalty/loyalty.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { Referral, } from "./resources/referral/referral.mjs";
|
|
14
|
+
import { Users, } from "./resources/users/users.mjs";
|
|
15
|
+
import { Websites, } from "./resources/websites/websites.mjs";
|
|
14
16
|
/**
|
|
15
17
|
* API Client for interfacing with the Snag Solutions API.
|
|
16
18
|
*/
|
|
@@ -44,11 +46,13 @@ export class SnagSolutions extends Core.APIClient {
|
|
|
44
46
|
fetch: options.fetch,
|
|
45
47
|
});
|
|
46
48
|
this.assets = new API.Assets(this);
|
|
49
|
+
this.auth = new API.Auth(this);
|
|
50
|
+
this.auctions = new API.Auctions(this);
|
|
47
51
|
this.users = new API.Users(this);
|
|
48
52
|
this.loyalty = new API.Loyalty(this);
|
|
49
|
-
this.
|
|
53
|
+
this.minting = new API.Minting(this);
|
|
54
|
+
this.referral = new API.Referral(this);
|
|
50
55
|
this.websites = new API.Websites(this);
|
|
51
|
-
this.drip = new API.Drip(this);
|
|
52
56
|
this._options = options;
|
|
53
57
|
this.apiKey = apiKey;
|
|
54
58
|
}
|
|
@@ -87,11 +91,13 @@ SnagSolutions.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
|
87
91
|
SnagSolutions.toFile = Uploads.toFile;
|
|
88
92
|
SnagSolutions.fileFromPath = Uploads.fileFromPath;
|
|
89
93
|
SnagSolutions.Assets = Assets;
|
|
94
|
+
SnagSolutions.Auth = Auth;
|
|
95
|
+
SnagSolutions.Auctions = Auctions;
|
|
90
96
|
SnagSolutions.Users = Users;
|
|
91
97
|
SnagSolutions.Loyalty = Loyalty;
|
|
92
|
-
SnagSolutions.
|
|
98
|
+
SnagSolutions.Minting = Minting;
|
|
99
|
+
SnagSolutions.Referral = Referral;
|
|
93
100
|
SnagSolutions.Websites = Websites;
|
|
94
|
-
SnagSolutions.Drip = Drip;
|
|
95
101
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
96
102
|
export { SnagSolutionsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
|
97
103
|
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,EAAoD,MAAM,EAAE;OAC5D,EAA6D,QAAQ,EAAE;OACvE,EAAE,IAAI,EAAkD;OACxD,EAAE,OAAO,EAAoD;OAC7D,EAAE,OAAO,EAAE;OACX,EACL,QAAQ,GAGT;OACM,EASL,KAAK,GACN;OACM,EAKL,QAAQ,GACT;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,WAAW,CAAC,EAClC,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,kBAAkB,CACjC,6LAA6L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aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAClC,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;OAyD3B,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.16",
|
|
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,50 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Assets extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
6
|
+
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
7
|
+
* asset using the presigned URL.
|
|
8
|
+
*/
|
|
9
|
+
createAsset(body: AssetCreateAssetParams, options?: Core.RequestOptions): Core.APIPromise<AssetCreateAssetResponse>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Response returned upon successful generation of the signed URL for uploading the
|
|
13
|
+
* file.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssetCreateAssetResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The pre-signed URL to be used for uploading the file.
|
|
18
|
+
*/
|
|
19
|
+
signedUrl: string;
|
|
20
|
+
/**
|
|
21
|
+
* The URL of the uploaded file.
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AssetCreateAssetParams {
|
|
26
|
+
/**
|
|
27
|
+
* The name of the file, must match the regex pattern (converted to lowercase)
|
|
28
|
+
*/
|
|
29
|
+
fileName: string;
|
|
30
|
+
/**
|
|
31
|
+
* The file path, must be a valid enum value.
|
|
32
|
+
*/
|
|
33
|
+
filePath?: 'announcements' | 'images' | 'videos' | 'banners' | 'fonts' | 'posts' | 'profiles' | 'minting' | 'loyalty';
|
|
34
|
+
/**
|
|
35
|
+
* UUID of the organization (optional, converted to lowercase)
|
|
36
|
+
*/
|
|
37
|
+
organizationId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* UUID of the user (optional, converted to lowercase)
|
|
40
|
+
*/
|
|
41
|
+
userId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* UUID of the website (optional, converted to lowercase)
|
|
44
|
+
*/
|
|
45
|
+
websiteId?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace Assets {
|
|
48
|
+
export { type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAG7C;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EACL,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Assets = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Assets extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
9
|
+
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
10
|
+
* asset using the presigned URL.
|
|
11
|
+
*/
|
|
12
|
+
createAsset(body, options) {
|
|
13
|
+
return this._client.post('/api/assets', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Assets = Assets;
|
|
17
|
+
//# sourceMappingURL=assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;OAIG;IACH,WAAW,CACT,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAZD,wBAYC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Assets extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint enables you to upload a file to the resource. Returns a presigned
|
|
6
|
+
* URL and the asset's public URL. Call PUT with the file as the body to upload the
|
|
7
|
+
* asset using the presigned URL.
|
|
8
|
+
*/
|
|
9
|
+
createAsset(body, options) {
|
|
10
|
+
return this._client.post('/api/assets', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=assets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;OAIG;IACH,WAAW,CACT,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Auctions extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of auction bids with optional filtering and pagination.
|
|
6
|
+
*/
|
|
7
|
+
listAuctionBids(query?: AuctionListAuctionBidsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
+
listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
11
|
+
*/
|
|
12
|
+
listAuctions(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionsResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Schema for the response when fetching auctions
|
|
16
|
+
*/
|
|
17
|
+
export interface AuctionListAuctionsResponse {
|
|
18
|
+
data: Array<AuctionListAuctionsResponse.Data>;
|
|
19
|
+
hasNextPage: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace AuctionListAuctionsResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
id: string;
|
|
24
|
+
auctionBids: Array<Data.AuctionBid>;
|
|
25
|
+
auctionItems: Array<Data.AuctionItem>;
|
|
26
|
+
biddersOwnCollectionAddresses: Array<string>;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
currencyAddress: string | null;
|
|
29
|
+
currencyDecimals: number;
|
|
30
|
+
deletedAt: string | null;
|
|
31
|
+
description: string;
|
|
32
|
+
endsAt: string;
|
|
33
|
+
extendedDurationInSeconds: number | null;
|
|
34
|
+
hideBids: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Schema representing a loyalty currency
|
|
37
|
+
*/
|
|
38
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
39
|
+
loyaltyCurrencyId: string | null;
|
|
40
|
+
minBidAmount: string;
|
|
41
|
+
minBidIncrement: string | null;
|
|
42
|
+
mintingContractId: string;
|
|
43
|
+
name: string;
|
|
44
|
+
network: 'ethereum' | 'zksync';
|
|
45
|
+
organizationId: string;
|
|
46
|
+
reservePrice: string | null;
|
|
47
|
+
signature: string;
|
|
48
|
+
startsAt: string;
|
|
49
|
+
status: 'in_progress' | 'completed' | 'cancelled';
|
|
50
|
+
type: 'first_price' | 'second_price' | 'english';
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
userId: string;
|
|
53
|
+
websiteId: string;
|
|
54
|
+
}
|
|
55
|
+
namespace Data {
|
|
56
|
+
/**
|
|
57
|
+
* Schema representing an auction bid
|
|
58
|
+
*/
|
|
59
|
+
interface AuctionBid {
|
|
60
|
+
id: string;
|
|
61
|
+
amount: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
}
|
|
64
|
+
interface AuctionItem {
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* Schema representing a minting contract asset
|
|
68
|
+
*/
|
|
69
|
+
mintingContractAsset: AuctionItem.MintingContractAsset;
|
|
70
|
+
quantity: number;
|
|
71
|
+
sortId: number;
|
|
72
|
+
}
|
|
73
|
+
namespace AuctionItem {
|
|
74
|
+
/**
|
|
75
|
+
* Schema representing a minting contract asset
|
|
76
|
+
*/
|
|
77
|
+
interface MintingContractAsset {
|
|
78
|
+
id: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Schema representing a loyalty currency
|
|
83
|
+
*/
|
|
84
|
+
interface LoyaltyCurrency {
|
|
85
|
+
id: string;
|
|
86
|
+
decimals: number;
|
|
87
|
+
imageUrl: string | null;
|
|
88
|
+
name: string;
|
|
89
|
+
symbol: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export interface AuctionListAuctionBidsParams {
|
|
94
|
+
/**
|
|
95
|
+
* The bid ID
|
|
96
|
+
*/
|
|
97
|
+
id?: string;
|
|
98
|
+
/**
|
|
99
|
+
* ID of the auction
|
|
100
|
+
*/
|
|
101
|
+
auctionId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Maximum number of bids to return
|
|
104
|
+
*/
|
|
105
|
+
limit?: number;
|
|
106
|
+
/**
|
|
107
|
+
* ID of the organization
|
|
108
|
+
*/
|
|
109
|
+
organizationId?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Pagination cursor to start after a specific bid ID
|
|
112
|
+
*/
|
|
113
|
+
startingAfter?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Status of the bid
|
|
116
|
+
*/
|
|
117
|
+
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
118
|
+
/**
|
|
119
|
+
* ID of the user who made the bid
|
|
120
|
+
*/
|
|
121
|
+
userId?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Wallet address of the bidder
|
|
124
|
+
*/
|
|
125
|
+
walletAddress?: string;
|
|
126
|
+
/**
|
|
127
|
+
* ID of the website
|
|
128
|
+
*/
|
|
129
|
+
websiteId?: string;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace Auctions {
|
|
132
|
+
export { type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=auctions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.d.ts","sourceRoot":"","sources":["../src/resources/auctions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,eAAe,CAAC,KAAK,CAAC,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAC3G,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAerE;;OAEG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAG1F;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAE9C,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEpC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEtC,6BAA6B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE7C,SAAS,EAAE,MAAM,CAAC;QAElB,eAAe,EAAE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;YAC3B;;eAEG;YACH,UAAiB,oBAAoB;gBACnC,EAAE,EAAE,MAAM,CAAC;aACZ;SACF;QAED;;WAEG;QACH,UAAiB,eAAe;YAC9B,EAAE,EAAE,MAAM,CAAC;YAEX,QAAQ,EAAE,MAAM,CAAC;YAEjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB,IAAI,EAAE,MAAM,CAAC;YAEb,MAAM,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;IAE7D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Auctions = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
const core_1 = require("../core.js");
|
|
7
|
-
class
|
|
8
|
-
|
|
7
|
+
class Auctions extends resource_1.APIResource {
|
|
8
|
+
listAuctionBids(query = {}, options) {
|
|
9
9
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
-
return this.
|
|
10
|
+
return this.listAuctionBids({}, query);
|
|
11
11
|
}
|
|
12
12
|
return this._client.get('/api/auction_bids', {
|
|
13
13
|
query,
|
|
@@ -15,6 +15,12 @@ class AuctionBids extends resource_1.APIResource {
|
|
|
15
15
|
headers: { Accept: '*/*', ...options?.headers },
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
20
|
+
*/
|
|
21
|
+
listAuctions(options) {
|
|
22
|
+
return this._client.get('/api/auctions', options);
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
|
-
exports.
|
|
20
|
-
//# sourceMappingURL=
|
|
25
|
+
exports.Auctions = Auctions;
|
|
26
|
+
//# sourceMappingURL=auctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.js","sourceRoot":"","sources":["../src/resources/auctions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,QAAS,SAAQ,sBAAW;IAMvC,eAAe,CACb,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;YAC3C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AA1BD,4BA0BC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../core.mjs";
|
|
4
|
-
export class
|
|
5
|
-
|
|
4
|
+
export class Auctions extends APIResource {
|
|
5
|
+
listAuctionBids(query = {}, options) {
|
|
6
6
|
if (isRequestOptions(query)) {
|
|
7
|
-
return this.
|
|
7
|
+
return this.listAuctionBids({}, query);
|
|
8
8
|
}
|
|
9
9
|
return this._client.get('/api/auction_bids', {
|
|
10
10
|
query,
|
|
@@ -12,5 +12,11 @@ export class AuctionBids extends APIResource {
|
|
|
12
12
|
headers: { Accept: '*/*', ...options?.headers },
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
17
|
+
*/
|
|
18
|
+
listAuctions(options) {
|
|
19
|
+
return this._client.get('/api/auctions', options);
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=auctions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.mjs","sourceRoot":"","sources":["../src/resources/auctions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IAMvC,eAAe,CACb,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;YAC3C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class Auth extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This endpoint allows you to connect your Twitter account to a Snag account
|
|
6
|
+
*/
|
|
7
|
+
connectAuth(authType: 'twitter' | 'discord' | 'telegram' | 'epic' | 'steam', query?: AuthConnectAuthParams, options?: Core.RequestOptions): Core.APIPromise<AuthConnectAuthResponse>;
|
|
8
|
+
connectAuth(authType: 'twitter' | 'discord' | 'telegram' | 'epic' | 'steam', options?: Core.RequestOptions): Core.APIPromise<AuthConnectAuthResponse>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Schema for a connect social auth response schema
|
|
12
|
+
*/
|
|
13
|
+
export interface AuthConnectAuthResponse {
|
|
14
|
+
/**
|
|
15
|
+
* The URL to redirect to
|
|
16
|
+
*/
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AuthConnectAuthParams {
|
|
20
|
+
/**
|
|
21
|
+
* The redirect URL where the user will land after completing the auth
|
|
22
|
+
*/
|
|
23
|
+
redirect?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The type of response to return
|
|
26
|
+
*/
|
|
27
|
+
responseType?: 'redirect' | 'json';
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the user
|
|
30
|
+
*/
|
|
31
|
+
userId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the website
|
|
34
|
+
*/
|
|
35
|
+
websiteId?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace Auth {
|
|
38
|
+
export { type AuthConnectAuthResponse as AuthConnectAuthResponse, type AuthConnectAuthParams as AuthConnectAuthParams, };
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/resources/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,WAAW,CACT,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,EAC/D,KAAK,CAAC,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAC3C,WAAW,CACT,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,EAC/D,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAW5C;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAEnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Auth = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
const core_1 = require("../core.js");
|
|
7
|
+
class Auth extends resource_1.APIResource {
|
|
8
|
+
connectAuth(authType, query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.connectAuth(authType, {}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get(`/api/${authType}/auth`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Auth = Auth;
|
|
16
|
+
//# sourceMappingURL=auth.js.map
|