@snagsolutions/sdk 0.1.0-alpha.13 → 0.1.0-alpha.14
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 +40 -0
- package/README.md +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +12 -6
- package/core.js.map +1 -1
- package/core.mjs +12 -6
- package/core.mjs.map +1 -1
- package/index.d.mts +9 -9
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +29 -8
- package/resources/assets/assets.d.ts +153 -0
- package/resources/assets/assets.d.ts.map +1 -0
- package/resources/assets/assets.js +69 -0
- package/resources/assets/assets.js.map +1 -0
- package/resources/assets/assets.mjs +42 -0
- package/resources/assets/assets.mjs.map +1 -0
- package/resources/assets/index.d.ts +7 -0
- package/resources/assets/index.d.ts.map +1 -0
- package/resources/assets/index.js +17 -0
- package/resources/assets/index.js.map +1 -0
- package/resources/assets/index.mjs +8 -0
- package/resources/assets/index.mjs.map +1 -0
- package/resources/assets/minting.d.ts +95 -0
- package/resources/assets/minting.d.ts.map +1 -0
- package/resources/assets/minting.js +15 -0
- package/resources/assets/minting.js.map +1 -0
- package/resources/assets/minting.mjs +11 -0
- package/resources/assets/minting.mjs.map +1 -0
- package/resources/assets/referral/index.d.ts +3 -0
- package/resources/assets/referral/index.d.ts.map +1 -0
- package/resources/assets/referral/index.js +9 -0
- package/resources/assets/referral/index.js.map +1 -0
- package/resources/assets/referral/index.mjs +4 -0
- package/resources/assets/referral/index.mjs.map +1 -0
- package/resources/assets/referral/referral.d.ts +30 -0
- package/resources/assets/referral/referral.d.ts.map +1 -0
- package/resources/assets/referral/referral.js +46 -0
- package/resources/assets/referral/referral.js.map +1 -0
- package/resources/assets/referral/referral.mjs +19 -0
- package/resources/assets/referral/referral.mjs.map +1 -0
- package/resources/assets/referral/users.d.ts +57 -0
- package/resources/assets/referral/users.d.ts.map +1 -0
- package/resources/assets/referral/users.js +21 -0
- package/resources/assets/referral/users.js.map +1 -0
- package/resources/assets/referral/users.mjs +17 -0
- package/resources/assets/referral/users.mjs.map +1 -0
- package/resources/assets/users.d.ts +285 -0
- package/resources/assets/users.d.ts.map +1 -0
- package/resources/assets/users.js +34 -0
- package/resources/assets/users.js.map +1 -0
- package/resources/assets/users.mjs +30 -0
- package/resources/assets/users.mjs.map +1 -0
- package/resources/assets/website-collections.d.ts +73 -0
- package/resources/assets/website-collections.d.ts.map +1 -0
- package/resources/assets/website-collections.js +25 -0
- package/resources/assets/website-collections.js.map +1 -0
- package/resources/assets/website-collections.mjs +21 -0
- package/resources/assets/website-collections.mjs.map +1 -0
- package/resources/assets/website-user-roles.d.ts +73 -0
- package/resources/assets/website-user-roles.d.ts.map +1 -0
- package/resources/assets/website-user-roles.js +22 -0
- package/resources/assets/website-user-roles.js.map +1 -0
- package/resources/assets/website-user-roles.mjs +18 -0
- package/resources/assets/website-user-roles.mjs.map +1 -0
- package/resources/auction-bids.d.ts +2 -32
- package/resources/auction-bids.d.ts.map +1 -1
- package/resources/auction-bids.js +0 -10
- package/resources/auction-bids.js.map +1 -1
- package/resources/auction-bids.mjs +0 -10
- package/resources/auction-bids.mjs.map +1 -1
- package/resources/drip/drip.d.ts +4 -4
- package/resources/drip/drip.d.ts.map +1 -1
- package/resources/drip/drip.js.map +1 -1
- package/resources/drip/drip.mjs.map +1 -1
- package/resources/drip/index.d.ts +2 -2
- package/resources/drip/index.d.ts.map +1 -1
- package/resources/drip/index.js.map +1 -1
- package/resources/drip/index.mjs.map +1 -1
- package/resources/drip/quests.d.ts +0 -164
- package/resources/drip/quests.d.ts.map +1 -1
- package/resources/drip/quests.js +0 -8
- package/resources/drip/quests.js.map +1 -1
- package/resources/drip/quests.mjs +0 -8
- package/resources/drip/quests.mjs.map +1 -1
- package/resources/drip/status.d.ts +0 -22
- package/resources/drip/status.d.ts.map +1 -1
- package/resources/drip/status.js +0 -7
- package/resources/drip/status.js.map +1 -1
- package/resources/drip/status.mjs +0 -7
- package/resources/drip/status.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/loyalty/accounts.d.ts +0 -153
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +0 -7
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +0 -7
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +639 -72
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/currencies.d.ts +1 -7
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/index.d.ts +3 -3
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +2 -2
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +7 -7
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +2 -2
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +2 -2
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +29 -4
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +3 -3
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +3 -3
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +1 -1
- 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/rules.d.ts +132 -71
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transaction-entries/accounts.d.ts +191 -0
- package/resources/loyalty/transaction-entries/accounts.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.js +24 -0
- package/resources/loyalty/transaction-entries/accounts.js.map +1 -0
- package/resources/loyalty/transaction-entries/accounts.mjs +20 -0
- package/resources/loyalty/transaction-entries/accounts.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/index.d.ts +5 -0
- package/resources/loyalty/transaction-entries/index.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/index.js +13 -0
- package/resources/loyalty/transaction-entries/index.js.map +1 -0
- package/resources/loyalty/transaction-entries/index.mjs +6 -0
- package/resources/loyalty/transaction-entries/index.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts +97 -0
- package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.js +22 -0
- package/resources/loyalty/transaction-entries/questions-responses.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs +18 -0
- package/resources/loyalty/transaction-entries/questions-responses.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/questions.d.ts +150 -0
- package/resources/loyalty/transaction-entries/questions.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/questions.js +27 -0
- package/resources/loyalty/transaction-entries/questions.js.map +1 -0
- package/resources/loyalty/transaction-entries/questions.mjs +23 -0
- package/resources/loyalty/transaction-entries/questions.mjs.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts +300 -0
- package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js +66 -0
- package/resources/loyalty/transaction-entries/transaction-entries.js.map +1 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs +39 -0
- package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +1 -0
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs +2 -2
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/metadatas.d.ts +79 -11
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js +6 -0
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs +6 -0
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +2 -2
- package/resources/users/users.mjs.map +1 -1
- package/resources/users/wallets.d.ts +0 -189
- package/resources/users/wallets.d.ts.map +1 -1
- package/resources/users/wallets.js +0 -19
- package/resources/users/wallets.js.map +1 -1
- package/resources/users/wallets.mjs +0 -19
- package/resources/users/wallets.mjs.map +1 -1
- package/src/core.ts +14 -6
- package/src/index.ts +14 -12
- package/src/resources/assets/assets.ts +294 -0
- package/src/resources/assets/index.ts +38 -0
- package/src/resources/assets/minting.ts +153 -0
- package/src/resources/assets/referral/index.ts +14 -0
- package/src/resources/assets/referral/referral.ts +74 -0
- package/src/resources/assets/referral/users.ts +99 -0
- package/src/resources/assets/users.ts +415 -0
- package/src/resources/assets/website-collections.ts +147 -0
- package/src/resources/assets/website-user-roles.ts +107 -0
- package/src/resources/auction-bids.ts +2 -48
- package/src/resources/drip/drip.ts +4 -8
- package/src/resources/drip/index.ts +2 -2
- package/src/resources/drip/quests.ts +1 -206
- package/src/resources/drip/status.ts +1 -29
- package/src/resources/index.ts +7 -2
- package/src/resources/loyalty/accounts.ts +1 -195
- package/src/resources/loyalty/badges.ts +779 -77
- package/src/resources/loyalty/currencies.ts +1 -7
- package/src/resources/loyalty/index.ts +7 -2
- package/src/resources/loyalty/loyalty.ts +14 -8
- package/src/resources/loyalty/multipliers.ts +49 -4
- package/src/resources/loyalty/rule-edits.ts +2 -2
- package/src/resources/loyalty/rules.ts +247 -159
- package/src/resources/loyalty/transaction-entries/accounts.ts +251 -0
- package/src/resources/loyalty/transaction-entries/index.ts +34 -0
- package/src/resources/loyalty/transaction-entries/questions-responses.ts +146 -0
- package/src/resources/loyalty/transaction-entries/questions.ts +208 -0
- package/src/resources/loyalty/transaction-entries/transaction-entries.ts +525 -0
- package/src/resources/users/index.ts +8 -9
- package/src/resources/users/metadatas.ts +109 -10
- package/src/resources/users/users.ts +11 -17
- package/src/resources/users/wallets.ts +1 -267
- 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.d.ts +0 -50
- package/resources/assets.d.ts.map +0 -1
- package/resources/assets.js +0 -17
- package/resources/assets.js.map +0 -1
- package/resources/assets.mjs +0 -13
- package/resources/assets.mjs.map +0 -1
- package/resources/loyalty/transaction-entries.d.ts +0 -175
- package/resources/loyalty/transaction-entries.d.ts.map +0 -1
- package/resources/loyalty/transaction-entries.js +0 -16
- package/resources/loyalty/transaction-entries.js.map +0 -1
- package/resources/loyalty/transaction-entries.mjs +0 -12
- package/resources/loyalty/transaction-entries.mjs.map +0 -1
- package/src/resources/assets.ts +0 -71
- package/src/resources/loyalty/transaction-entries.ts +0 -229
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*/
|
|
7
|
+
createWebsiteCollection(body: WebsiteCollectionCreateWebsiteCollectionParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves collections for a specific website.
|
|
10
|
+
*/
|
|
11
|
+
getWebsiteCollections(query: WebsiteCollectionGetWebsiteCollectionsParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionGetWebsiteCollectionsResponse>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Response schema for fetching website collections
|
|
15
|
+
*/
|
|
16
|
+
export interface WebsiteCollectionGetWebsiteCollectionsResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Array of websites
|
|
19
|
+
*/
|
|
20
|
+
data: Array<WebsiteCollectionGetWebsiteCollectionsResponse.Data>;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates if more pages are available
|
|
23
|
+
*/
|
|
24
|
+
hasNextPage: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace WebsiteCollectionGetWebsiteCollectionsResponse {
|
|
27
|
+
interface Data {
|
|
28
|
+
/**
|
|
29
|
+
* Website Collection ID
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface WebsiteCollectionCreateWebsiteCollectionParams {
|
|
35
|
+
collectionAddress: string;
|
|
36
|
+
name: string;
|
|
37
|
+
network: 'mainnet' | 'polygon' | 'polygon_mumbai' | 'optimism' | 'arbitrum' | 'binance' | 'bscTestnet' | 'avalanche' | 'avalancheFuji' | 'zksync' | 'fantom' | 'fantomTestnet' | 'base' | 'baseSepolia' | 'skaleNebula' | 'xai' | 'berachainArtio' | 'solana' | 'apechain' | 'flowMainnet' | 'campTestnet' | 'sui' | 'vanar' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli';
|
|
38
|
+
organizationId: string;
|
|
39
|
+
sortId: number;
|
|
40
|
+
websiteId: string;
|
|
41
|
+
discordUrl?: string;
|
|
42
|
+
homeUrl?: string;
|
|
43
|
+
imageUrl?: string | null;
|
|
44
|
+
instagramUsername?: string;
|
|
45
|
+
royaltyFee?: number | null;
|
|
46
|
+
royaltyFeeAddress?: string | null;
|
|
47
|
+
stakingAddress?: string;
|
|
48
|
+
telegramUrl?: string;
|
|
49
|
+
themeId?: string;
|
|
50
|
+
twitterUsername?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface WebsiteCollectionGetWebsiteCollectionsParams {
|
|
53
|
+
/**
|
|
54
|
+
* Filter by website ID
|
|
55
|
+
*/
|
|
56
|
+
websiteId: string;
|
|
57
|
+
/**
|
|
58
|
+
* Number of items to return
|
|
59
|
+
*/
|
|
60
|
+
limit?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Filter by organization ID
|
|
63
|
+
*/
|
|
64
|
+
organizationId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Pagination cursor, start after this ID
|
|
67
|
+
*/
|
|
68
|
+
startingAfter?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace WebsiteCollections {
|
|
71
|
+
export { type WebsiteCollectionGetWebsiteCollectionsResponse as WebsiteCollectionGetWebsiteCollectionsResponse, type WebsiteCollectionCreateWebsiteCollectionParams as WebsiteCollectionCreateWebsiteCollectionParams, type WebsiteCollectionGetWebsiteCollectionsParams as WebsiteCollectionGetWebsiteCollectionsParams, };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=website-collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/assets/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,uBAAuB,CACrB,IAAI,EAAE,8CAA8C,EACpD,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQxB;;OAEG;IACH,qBAAqB,CACnB,KAAK,EAAE,4CAA4C,EACnD,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,8CAA8C,CAAC;CAGnE;AAED;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC7D;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,8CAA8C,CAAC,IAAI,CAAC,CAAC;IAEjE;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,8CAA8C,CAAC;IAC9D,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,8CAA8C;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EACH,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,UAAU,GACV,SAAS,GACT,YAAY,GACZ,WAAW,GACX,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,MAAM,GACN,aAAa,GACb,aAAa,GACb,KAAK,GACL,gBAAgB,GAChB,QAAQ,GACR,UAAU,GACV,aAAa,GACb,aAAa,GACb,KAAK,GACL,OAAO,GACP,SAAS,GACT,kBAAkB,GAClB,iBAAiB,GACjB,QAAQ,GACR,iBAAiB,GACjB,gBAAgB,CAAC;IAErB,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,4CAA4C;IAC3D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,4CAA4C,IAAI,4CAA4C,GAClG,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.WebsiteCollections = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class WebsiteCollections extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new collection under a website
|
|
9
|
+
*/
|
|
10
|
+
createWebsiteCollection(body, options) {
|
|
11
|
+
return this._client.post('/api/website_collections', {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves collections for a specific website.
|
|
19
|
+
*/
|
|
20
|
+
getWebsiteCollections(query, options) {
|
|
21
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.WebsiteCollections = WebsiteCollections;
|
|
25
|
+
//# sourceMappingURL=website-collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/assets/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,uBAAuB,CACrB,IAAoD,EACpD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB,CACnB,KAAmD,EACnD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAxBD,gDAwBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*/
|
|
7
|
+
createWebsiteCollection(body, options) {
|
|
8
|
+
return this._client.post('/api/website_collections', {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves collections for a specific website.
|
|
16
|
+
*/
|
|
17
|
+
getWebsiteCollections(query, options) {
|
|
18
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=website-collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/assets/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,uBAAuB,CACrB,IAAoD,EACpD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB,CACnB,KAAmD,EACnD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class WebsiteUserRoles extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Assign roles to users for a specific website
|
|
6
|
+
*/
|
|
7
|
+
assignRolesToUsers(body: WebsiteUserRoleAssignRolesToUsersParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignRolesToUsersResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves roles of users for a specific website. If userId is provided,
|
|
10
|
+
* retrieves the role of that specific user for the website.
|
|
11
|
+
*/
|
|
12
|
+
getWebsiteUserRoles(query: WebsiteUserRoleGetWebsiteUserRolesParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleGetWebsiteUserRolesResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Schema for postWebsiteUserRoles response
|
|
16
|
+
*/
|
|
17
|
+
export interface WebsiteUserRoleAssignRolesToUsersResponse {
|
|
18
|
+
data?: unknown;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Schema for getWebsiteUserRoles response
|
|
22
|
+
*/
|
|
23
|
+
export interface WebsiteUserRoleGetWebsiteUserRolesResponse {
|
|
24
|
+
data: Array<WebsiteUserRoleGetWebsiteUserRolesResponse.Data>;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace WebsiteUserRoleGetWebsiteUserRolesResponse {
|
|
27
|
+
interface Data {
|
|
28
|
+
/**
|
|
29
|
+
* UUID of the website user role
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export interface WebsiteUserRoleAssignRolesToUsersParams {
|
|
35
|
+
/**
|
|
36
|
+
* UUID of the website
|
|
37
|
+
*/
|
|
38
|
+
websiteId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Array of website user roles
|
|
41
|
+
*/
|
|
42
|
+
websiteUserRoles: Array<WebsiteUserRoleAssignRolesToUsersParams.WebsiteUserRole>;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace WebsiteUserRoleAssignRolesToUsersParams {
|
|
45
|
+
interface WebsiteUserRole {
|
|
46
|
+
/**
|
|
47
|
+
* Role type of the user
|
|
48
|
+
*/
|
|
49
|
+
roleType: 'WEBSITE_SUPER_ADMIN' | 'WEBSITE_ADMIN' | 'WEBSITE_MODERATOR' | 'WEBSITE_API_KEY' | 'STRATUS_API_KEY';
|
|
50
|
+
/**
|
|
51
|
+
* Wallet address of the user
|
|
52
|
+
*/
|
|
53
|
+
walletAddress: string;
|
|
54
|
+
/**
|
|
55
|
+
* Deletion date of the user role
|
|
56
|
+
*/
|
|
57
|
+
deletedAt?: string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export interface WebsiteUserRoleGetWebsiteUserRolesParams {
|
|
61
|
+
/**
|
|
62
|
+
* UUID of the website
|
|
63
|
+
*/
|
|
64
|
+
websiteId: string;
|
|
65
|
+
/**
|
|
66
|
+
* UUID of the user
|
|
67
|
+
*/
|
|
68
|
+
userId?: string;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace WebsiteUserRoles {
|
|
71
|
+
export { type WebsiteUserRoleAssignRolesToUsersResponse as WebsiteUserRoleAssignRolesToUsersResponse, type WebsiteUserRoleGetWebsiteUserRolesResponse as WebsiteUserRoleGetWebsiteUserRolesResponse, type WebsiteUserRoleAssignRolesToUsersParams as WebsiteUserRoleAssignRolesToUsersParams, type WebsiteUserRoleGetWebsiteUserRolesParams as WebsiteUserRoleGetWebsiteUserRolesParams, };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=website-user-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.d.ts","sourceRoot":"","sources":["../../src/resources/assets/website-user-roles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,kBAAkB,CAChB,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAI7D;;;OAGG;IACH,mBAAmB,CACjB,KAAK,EAAE,wCAAwC,EAC/C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0CAA0C,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,IAAI,EAAE,KAAK,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC;CAC9D;AAED,yBAAiB,0CAA0C,CAAC;IAC1D,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,uCAAuC,CAAC,eAAe,CAAC,CAAC;CAClF;AAED,yBAAiB,uCAAuC,CAAC;IACvD,UAAiB,eAAe;QAC9B;;WAEG;QACH,QAAQ,EACJ,qBAAqB,GACrB,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,wCAAwC;IACvD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,wCAAwC,IAAI,wCAAwC,GAC1F,CAAC;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.WebsiteUserRoles = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class WebsiteUserRoles extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Assign roles to users for a specific website
|
|
9
|
+
*/
|
|
10
|
+
assignRolesToUsers(body, options) {
|
|
11
|
+
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves roles of users for a specific website. If userId is provided,
|
|
15
|
+
* retrieves the role of that specific user for the website.
|
|
16
|
+
*/
|
|
17
|
+
getWebsiteUserRoles(query, options) {
|
|
18
|
+
return this._client.get('/api/website_user_roles', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.WebsiteUserRoles = WebsiteUserRoles;
|
|
22
|
+
//# sourceMappingURL=website-user-roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.js","sourceRoot":"","sources":["../../src/resources/assets/website-user-roles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,kBAAkB,CAChB,IAA6C,EAC7C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,mBAAmB,CACjB,KAA+C,EAC/C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AArBD,4CAqBC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class WebsiteUserRoles extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Assign roles to users for a specific website
|
|
6
|
+
*/
|
|
7
|
+
assignRolesToUsers(body, options) {
|
|
8
|
+
return this._client.post('/api/website_user_roles', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves roles of users for a specific website. If userId is provided,
|
|
12
|
+
* retrieves the role of that specific user for the website.
|
|
13
|
+
*/
|
|
14
|
+
getWebsiteUserRoles(query, options) {
|
|
15
|
+
return this._client.get('/api/website_user_roles', { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=website-user-roles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website-user-roles.mjs","sourceRoot":"","sources":["../../src/resources/assets/website-user-roles.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,kBAAkB,CAChB,IAA6C,EAC7C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,mBAAmB,CACjB,KAA+C,EAC/C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class AuctionBids extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new bid for an auction.
|
|
6
|
-
*/
|
|
7
|
-
create(body: AuctionBidCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
4
|
/**
|
|
9
5
|
* Returns a list of auction bids with optional filtering and pagination.
|
|
10
6
|
*/
|
|
11
7
|
list(query?: AuctionBidListParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
12
8
|
list(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
13
9
|
}
|
|
14
|
-
export interface AuctionBidCreateParams {
|
|
15
|
-
/**
|
|
16
|
-
* Bid amount
|
|
17
|
-
*/
|
|
18
|
-
amount: unknown;
|
|
19
|
-
/**
|
|
20
|
-
* ID of the auction
|
|
21
|
-
*/
|
|
22
|
-
auctionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* Name of the blockchain chain
|
|
25
|
-
*/
|
|
26
|
-
chainName: string;
|
|
27
|
-
/**
|
|
28
|
-
* ID of the organization
|
|
29
|
-
*/
|
|
30
|
-
organizationId: string;
|
|
31
|
-
/**
|
|
32
|
-
* Signature of the bid
|
|
33
|
-
*/
|
|
34
|
-
signature: string;
|
|
35
|
-
/**
|
|
36
|
-
* ID of the website
|
|
37
|
-
*/
|
|
38
|
-
websiteId: string;
|
|
39
|
-
}
|
|
40
10
|
export interface AuctionBidListParams {
|
|
41
11
|
/**
|
|
42
12
|
* The bid ID
|
|
@@ -49,7 +19,7 @@ export interface AuctionBidListParams {
|
|
|
49
19
|
/**
|
|
50
20
|
* Maximum number of bids to return
|
|
51
21
|
*/
|
|
52
|
-
limit?: number
|
|
22
|
+
limit?: number;
|
|
53
23
|
/**
|
|
54
24
|
* ID of the organization
|
|
55
25
|
*/
|
|
@@ -76,6 +46,6 @@ export interface AuctionBidListParams {
|
|
|
76
46
|
websiteId?: string;
|
|
77
47
|
}
|
|
78
48
|
export declare namespace AuctionBids {
|
|
79
|
-
export { type
|
|
49
|
+
export { type AuctionBidListParams as AuctionBidListParams };
|
|
80
50
|
}
|
|
81
51
|
//# sourceMappingURL=auction-bids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids.d.ts","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"auction-bids.d.ts","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IACxF,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAc3D;AAED,MAAM,WAAW,oBAAoB;IACnC;;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,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D"}
|
|
@@ -5,16 +5,6 @@ exports.AuctionBids = void 0;
|
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
const core_1 = require("../core.js");
|
|
7
7
|
class AuctionBids extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new bid for an auction.
|
|
10
|
-
*/
|
|
11
|
-
create(body, options) {
|
|
12
|
-
return this._client.post('/api/auction_bids', {
|
|
13
|
-
body,
|
|
14
|
-
...options,
|
|
15
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
8
|
list(query = {}, options) {
|
|
19
9
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
20
10
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids.js","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,WAAY,SAAQ,sBAAW;
|
|
1
|
+
{"version":3,"file":"auction-bids.js","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,WAAY,SAAQ,sBAAW;IAM1C,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,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;CACF;AAnBD,kCAmBC"}
|
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../core.mjs";
|
|
4
4
|
export class AuctionBids extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a new bid for an auction.
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/api/auction_bids', {
|
|
10
|
-
body,
|
|
11
|
-
...options,
|
|
12
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
5
|
list(query = {}, options) {
|
|
16
6
|
if (isRequestOptions(query)) {
|
|
17
7
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction-bids.mjs","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"auction-bids.mjs","sourceRoot":"","sources":["../src/resources/auction-bids.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAM1C,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,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;CACF"}
|
package/resources/drip/drip.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as QuestsAPI from "./quests.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Quests } from "./quests.js";
|
|
4
4
|
import * as StatusAPI from "./status.js";
|
|
5
|
-
import { Status
|
|
5
|
+
import { Status } from "./status.js";
|
|
6
6
|
export declare class Drip extends APIResource {
|
|
7
7
|
quests: QuestsAPI.Quests;
|
|
8
8
|
status: StatusAPI.Status;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Drip {
|
|
11
|
-
export { Quests as Quests
|
|
12
|
-
export { Status as Status
|
|
11
|
+
export { Quests as Quests };
|
|
12
|
+
export { Status as Status };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=drip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drip.d.ts","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"drip.d.ts","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,IAAK,SAAQ,WAAW;IACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drip.js","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,uDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"drip.js","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,uDAAsC;AACtC,wCAAkC;AAClC,uDAAsC;AACtC,wCAAkC;AAElC,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,oBAGC;AAED,IAAI,CAAC,MAAM,GAAG,eAAM,CAAC;AACrB,IAAI,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drip.mjs","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,
|
|
1
|
+
{"version":3,"file":"drip.mjs","sourceRoot":"","sources":["../../src/resources/drip/drip.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;AAEjB,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Drip } from "./drip.js";
|
|
2
|
-
export { Quests
|
|
3
|
-
export { Status
|
|
2
|
+
export { Quests } from "./quests.js";
|
|
3
|
+
export { Status } from "./status.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/drip/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE;OACV,EAAE,MAAM,EAAE"}
|
|
@@ -1,168 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
2
|
export declare class Quests extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Completes a specified quest for a user and updates their loyalty account balance
|
|
6
|
-
* if applicable. Run asynchronously; use the verification endpoint to check
|
|
7
|
-
* status.
|
|
8
|
-
*/
|
|
9
|
-
complete(dripQuestId: string, body: QuestCompleteParams, options?: Core.RequestOptions): Core.APIPromise<QuestCompleteResponse>;
|
|
10
|
-
}
|
|
11
|
-
export type QuestCompleteResponse = QuestCompleteResponse.Quest | QuestCompleteResponse.UnionMember1;
|
|
12
|
-
export declare namespace QuestCompleteResponse {
|
|
13
|
-
interface Quest {
|
|
14
|
-
/**
|
|
15
|
-
* Schema for a drip quest
|
|
16
|
-
*/
|
|
17
|
-
quest: Quest.Quest;
|
|
18
|
-
}
|
|
19
|
-
namespace Quest {
|
|
20
|
-
/**
|
|
21
|
-
* Schema for a drip quest
|
|
22
|
-
*/
|
|
23
|
-
interface Quest {
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier for the drip quest
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* Amount of reward for completing the quest
|
|
30
|
-
*/
|
|
31
|
-
amount: number;
|
|
32
|
-
/**
|
|
33
|
-
* Text to display on the action button
|
|
34
|
-
*/
|
|
35
|
-
buttonText: string;
|
|
36
|
-
/**
|
|
37
|
-
* Timestamp when the quest was claimed, if applicable
|
|
38
|
-
*/
|
|
39
|
-
claimedAt: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* Indicates if the quest has been completed
|
|
42
|
-
*/
|
|
43
|
-
completed: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Description of the drip quest
|
|
46
|
-
*/
|
|
47
|
-
description: string;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates if the quest has expired
|
|
50
|
-
*/
|
|
51
|
-
expired: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Expiration timestamp of the quest
|
|
54
|
-
*/
|
|
55
|
-
expiresAt: string;
|
|
56
|
-
/**
|
|
57
|
-
* Message associated with the quest
|
|
58
|
-
*/
|
|
59
|
-
message: string;
|
|
60
|
-
/**
|
|
61
|
-
* Array of requirements for the drip quest
|
|
62
|
-
*/
|
|
63
|
-
requirements: Array<Quest.Requirement>;
|
|
64
|
-
/**
|
|
65
|
-
* Title of the drip quest
|
|
66
|
-
*/
|
|
67
|
-
title: string;
|
|
68
|
-
}
|
|
69
|
-
namespace Quest {
|
|
70
|
-
/**
|
|
71
|
-
* A requirement for completing the drip quest
|
|
72
|
-
*/
|
|
73
|
-
interface Requirement {
|
|
74
|
-
/**
|
|
75
|
-
* Array of conditions for the requirement
|
|
76
|
-
*/
|
|
77
|
-
conditions: Array<Requirement.Condition>;
|
|
78
|
-
/**
|
|
79
|
-
* Link associated with the requirement
|
|
80
|
-
*/
|
|
81
|
-
link: string;
|
|
82
|
-
/**
|
|
83
|
-
* Type of the requirement
|
|
84
|
-
*/
|
|
85
|
-
type: string;
|
|
86
|
-
}
|
|
87
|
-
namespace Requirement {
|
|
88
|
-
/**
|
|
89
|
-
* A condition for the requirement
|
|
90
|
-
*/
|
|
91
|
-
interface Condition {
|
|
92
|
-
/**
|
|
93
|
-
* Condition that checks if a user has commented in X
|
|
94
|
-
*/
|
|
95
|
-
hasCommentedInX?: Condition.HasCommentedInX;
|
|
96
|
-
/**
|
|
97
|
-
* Condition that checks if a user has followed X
|
|
98
|
-
*/
|
|
99
|
-
hasFollowedX?: Condition.HasFollowedX;
|
|
100
|
-
/**
|
|
101
|
-
* Condition that checks if a user has liked in X
|
|
102
|
-
*/
|
|
103
|
-
hasLikedInX?: Condition.HasLikedInX;
|
|
104
|
-
/**
|
|
105
|
-
* Condition that checks if a user has reposted in X
|
|
106
|
-
*/
|
|
107
|
-
hasRepostedInX?: Condition.HasRepostedInX;
|
|
108
|
-
}
|
|
109
|
-
namespace Condition {
|
|
110
|
-
/**
|
|
111
|
-
* Condition that checks if a user has commented in X
|
|
112
|
-
*/
|
|
113
|
-
interface HasCommentedInX {
|
|
114
|
-
/**
|
|
115
|
-
* Value for the condition
|
|
116
|
-
*/
|
|
117
|
-
value: string;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Condition that checks if a user has followed X
|
|
121
|
-
*/
|
|
122
|
-
interface HasFollowedX {
|
|
123
|
-
/**
|
|
124
|
-
* Value for the condition
|
|
125
|
-
*/
|
|
126
|
-
value: string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Condition that checks if a user has liked in X
|
|
130
|
-
*/
|
|
131
|
-
interface HasLikedInX {
|
|
132
|
-
/**
|
|
133
|
-
* Value for the condition
|
|
134
|
-
*/
|
|
135
|
-
value: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Condition that checks if a user has reposted in X
|
|
139
|
-
*/
|
|
140
|
-
interface HasRepostedInX {
|
|
141
|
-
/**
|
|
142
|
-
* Value for the condition
|
|
143
|
-
*/
|
|
144
|
-
value: string;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
interface UnionMember1 {
|
|
151
|
-
data: UnionMember1.Data;
|
|
152
|
-
message: string;
|
|
153
|
-
}
|
|
154
|
-
namespace UnionMember1 {
|
|
155
|
-
interface Data {
|
|
156
|
-
verificationId: string;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
export interface QuestCompleteParams {
|
|
161
|
-
organizationId: string;
|
|
162
|
-
websiteId: string;
|
|
163
|
-
userId?: string;
|
|
164
|
-
}
|
|
165
|
-
export declare namespace Quests {
|
|
166
|
-
export { type QuestCompleteResponse as QuestCompleteResponse, type QuestCompleteParams as QuestCompleteParams, };
|
|
167
3
|
}
|
|
168
4
|
//# sourceMappingURL=quests.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quests.d.ts","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"quests.d.ts","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,MAAO,SAAQ,WAAW;CAAG"}
|
package/resources/drip/quests.js
CHANGED
|
@@ -4,14 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Quests = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class Quests extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Completes a specified quest for a user and updates their loyalty account balance
|
|
9
|
-
* if applicable. Run asynchronously; use the verification endpoint to check
|
|
10
|
-
* status.
|
|
11
|
-
*/
|
|
12
|
-
complete(dripQuestId, body, options) {
|
|
13
|
-
return this._client.post(`/api/drip/quests/${dripQuestId}/complete`, { body, ...options });
|
|
14
|
-
}
|
|
15
7
|
}
|
|
16
8
|
exports.Quests = Quests;
|
|
17
9
|
//# sourceMappingURL=quests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quests.js","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"quests.js","sourceRoot":"","sources":["../../src/resources/drip/quests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,MAAa,MAAO,SAAQ,sBAAW;CAAG;AAA1C,wBAA0C"}
|