@snagsolutions/sdk 0.1.0-alpha.172 → 0.1.0-alpha.174
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 +16 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auctions/auctions.d.ts +2 -2
- package/resources/auctions/auctions.d.ts.map +1 -1
- package/resources/auctions/auctions.js.map +1 -1
- package/resources/auctions/auctions.mjs.map +1 -1
- package/resources/auctions/index.d.ts +1 -1
- package/resources/auctions/index.d.ts.map +1 -1
- package/resources/auctions/index.js.map +1 -1
- package/resources/auctions/index.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/index.d.ts +2 -2
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/index.js.map +1 -1
- package/resources/auctions/website-user-attributes/index.mjs +1 -1
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/values.d.ts +47 -1
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +14 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +14 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +43 -3
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +7 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +7 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +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/index.d.ts +1 -1
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +2 -2
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +1 -1
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +22 -6
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +1 -1
- package/resources/loyalty/transactions/index.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.js.map +1 -1
- package/resources/loyalty/transactions/index.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +120 -2
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +15 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +15 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/websites/index.d.ts +2 -2
- package/resources/websites/index.d.ts.map +1 -1
- package/resources/websites/index.js.map +1 -1
- package/resources/websites/index.mjs +2 -2
- package/resources/websites/index.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +90 -0
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +37 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +37 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/websites.d.ts +105 -3
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +13 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +14 -1
- package/resources/websites/websites.mjs.map +1 -1
- package/src/index.ts +9 -1
- package/src/resources/auctions/auctions.ts +4 -0
- package/src/resources/auctions/index.ts +2 -0
- package/src/resources/auctions/website-user-attributes/index.ts +9 -1
- package/src/resources/auctions/website-user-attributes/values.ts +69 -1
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +71 -1
- package/src/resources/index.ts +7 -1
- package/src/resources/loyalty/index.ts +2 -0
- package/src/resources/loyalty/loyalty.ts +4 -0
- package/src/resources/loyalty/rule-groups.ts +1 -0
- package/src/resources/loyalty/rules.ts +26 -4
- package/src/resources/loyalty/transactions/index.ts +2 -0
- package/src/resources/loyalty/transactions/transactions.ts +153 -0
- package/src/resources/websites/index.ts +13 -2
- package/src/resources/websites/website-collections.ts +183 -1
- package/src/resources/websites/websites.ts +141 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAK+B;AAJ7B,yHAAA,kBAAkB,OAAA;AAKpB,8DAM8B;AAL5B,sHAAA,gBAAgB,OAAA;AAMlB,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export { WebsiteCollections } from "./website-collections.mjs";
|
|
2
|
+
export { WebsiteCollections, } from "./website-collections.mjs";
|
|
3
3
|
export { WebsiteUserRoles, } from "./website-user-roles.mjs";
|
|
4
|
-
export { Websites } from "./websites.mjs";
|
|
4
|
+
export { Websites, } from "./websites.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/websites/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,kBAAkB,GAInB;OACM,EACL,gBAAgB,GAKjB;OACM,EACL,QAAQ,GAKT"}
|
|
@@ -1,4 +1,94 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
2
3
|
export declare class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* await client.websites.websiteCollections.create({
|
|
10
|
+
* collectionAddress:
|
|
11
|
+
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
12
|
+
* name: 'x',
|
|
13
|
+
* network: 'abstract',
|
|
14
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* sortId: 99999,
|
|
16
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves collections for a specific website.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const websiteCollections =
|
|
27
|
+
* await client.websites.websiteCollections.list({
|
|
28
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Response schema for fetching website collections
|
|
36
|
+
*/
|
|
37
|
+
export interface WebsiteCollectionListResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Array of websites
|
|
40
|
+
*/
|
|
41
|
+
data: Array<WebsiteCollectionListResponse.Data>;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates if more pages are available
|
|
44
|
+
*/
|
|
45
|
+
hasNextPage: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace WebsiteCollectionListResponse {
|
|
48
|
+
interface Data {
|
|
49
|
+
/**
|
|
50
|
+
* Website Collection ID
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export interface WebsiteCollectionCreateParams {
|
|
56
|
+
collectionAddress: string;
|
|
57
|
+
name: string;
|
|
58
|
+
network: 'abstract' | 'abstractTestnet' | 'apechain' | 'arbitrum' | 'avalanche' | 'avalancheFuji' | 'base' | 'baseSepolia' | 'berachain' | 'berachainArtio' | 'berachainBepolia' | 'binance' | 'bscTestnet' | 'campTestnet' | 'fantom' | 'fantomTestnet' | 'flowMainnet' | 'mainnet' | 'nexusTestnet' | 'optimism' | 'polygon' | 'polygon_mumbai' | 'skaleNebula' | 'skaleEuropa' | 'skaleCalypso' | 'solana' | 'sophon' | 'sophonTestnet' | 'sui' | 'superseed' | 'superseedSepolia' | 'vanar' | 'xai' | 'zksync' | 'coti' | 'cotiTestnet' | 'morph' | 'morphTestnet' | 'morphHolesky' | 'ultra' | 'ultraTestnet' | 'nitrograph' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'somnia' | 'flow_cadence';
|
|
59
|
+
organizationId: string;
|
|
60
|
+
sortId: number;
|
|
61
|
+
websiteId: string;
|
|
62
|
+
discordUrl?: string;
|
|
63
|
+
homeUrl?: string;
|
|
64
|
+
imageUrl?: string | null;
|
|
65
|
+
instagramUsername?: string;
|
|
66
|
+
royaltyFee?: number | null;
|
|
67
|
+
royaltyFeeAddress?: string | null;
|
|
68
|
+
stakingAddress?: string;
|
|
69
|
+
telegramUrl?: string;
|
|
70
|
+
themeId?: string;
|
|
71
|
+
twitterUsername?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface WebsiteCollectionListParams {
|
|
74
|
+
/**
|
|
75
|
+
* Filter by website ID
|
|
76
|
+
*/
|
|
77
|
+
websiteId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Number of items to return
|
|
80
|
+
*/
|
|
81
|
+
limit?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Filter by organization ID
|
|
84
|
+
*/
|
|
85
|
+
organizationId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Pagination cursor, start after this ID
|
|
88
|
+
*/
|
|
89
|
+
startingAfter?: string;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace WebsiteCollections {
|
|
92
|
+
export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
3
93
|
}
|
|
4
94
|
//# sourceMappingURL=website-collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/websites/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,MAAM,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAA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M,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,2BAA2B;IAC1C;;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,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -4,6 +4,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.WebsiteCollections = void 0;
|
|
5
5
|
const resource_1 = require("../../resource.js");
|
|
6
6
|
class WebsiteCollections extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new collection under a website
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.websites.websiteCollections.create({
|
|
13
|
+
* collectionAddress:
|
|
14
|
+
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
15
|
+
* name: 'x',
|
|
16
|
+
* network: 'abstract',
|
|
17
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
18
|
+
* sortId: 99999,
|
|
19
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/api/website_collections', {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves collections for a specific website.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const websiteCollections =
|
|
36
|
+
* await client.websites.websiteCollections.list({
|
|
37
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
list(query, options) {
|
|
42
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
43
|
+
}
|
|
7
44
|
}
|
|
8
45
|
exports.WebsiteCollections = WebsiteCollections;
|
|
9
46
|
//# sourceMappingURL=website-collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,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;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AA1CD,gDA0CC"}
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
export class WebsiteCollections extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new collection under a website
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* await client.websites.websiteCollections.create({
|
|
10
|
+
* collectionAddress:
|
|
11
|
+
* '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
|
|
12
|
+
* name: 'x',
|
|
13
|
+
* network: 'abstract',
|
|
14
|
+
* organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* sortId: 99999,
|
|
16
|
+
* websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/api/website_collections', {
|
|
22
|
+
body,
|
|
23
|
+
...options,
|
|
24
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves collections for a specific website.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const websiteCollections =
|
|
33
|
+
* await client.websites.websiteCollections.list({
|
|
34
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(query, options) {
|
|
39
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
40
|
+
}
|
|
4
41
|
}
|
|
5
42
|
//# sourceMappingURL=website-collections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/websites/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,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;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as WebsiteCollectionsAPI from "./website-collections.js";
|
|
4
|
-
import { WebsiteCollections } from "./website-collections.js";
|
|
4
|
+
import { WebsiteCollectionCreateParams, WebsiteCollectionListParams, WebsiteCollectionListResponse, WebsiteCollections } from "./website-collections.js";
|
|
5
5
|
import * as WebsiteUserRolesAPI from "./website-user-roles.js";
|
|
6
6
|
import { WebsiteUserRoleAssignParams, WebsiteUserRoleAssignResponse, WebsiteUserRoleListParams, WebsiteUserRoleListResponse, WebsiteUserRoles } from "./website-user-roles.js";
|
|
7
7
|
export declare class Websites extends APIResource {
|
|
8
8
|
websiteCollections: WebsiteCollectionsAPI.WebsiteCollections;
|
|
9
9
|
websiteUserRoles: WebsiteUserRolesAPI.WebsiteUserRoles;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new website
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const website = await client.websites.create({
|
|
16
|
+
* name: 'My New Website',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse>;
|
|
10
21
|
/**
|
|
11
22
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
12
23
|
* pagination.
|
|
@@ -19,6 +30,67 @@ export declare class Websites extends APIResource {
|
|
|
19
30
|
list(query?: WebsiteListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
20
31
|
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
21
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Schema representing a website
|
|
35
|
+
*/
|
|
36
|
+
export interface WebsiteCreateResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Website ID
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Counts of related entities
|
|
43
|
+
*/
|
|
44
|
+
_count: WebsiteCreateResponse._Count;
|
|
45
|
+
/**
|
|
46
|
+
* Collections associated with the website
|
|
47
|
+
*/
|
|
48
|
+
collections: Array<WebsiteCreateResponse.Collection>;
|
|
49
|
+
/**
|
|
50
|
+
* Website name
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Date when terms were signed
|
|
55
|
+
*/
|
|
56
|
+
termsSignedAt: string | null;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace WebsiteCreateResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Counts of related entities
|
|
61
|
+
*/
|
|
62
|
+
interface _Count {
|
|
63
|
+
/**
|
|
64
|
+
* Count of minting contract assets
|
|
65
|
+
*/
|
|
66
|
+
mintingContractAssets: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Schema representing a collection
|
|
70
|
+
*/
|
|
71
|
+
interface Collection {
|
|
72
|
+
/**
|
|
73
|
+
* Collection ID
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
/**
|
|
77
|
+
* URL of the collection image
|
|
78
|
+
*/
|
|
79
|
+
imageUrl: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Collection name
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* Royalty fee percentage
|
|
86
|
+
*/
|
|
87
|
+
royaltyFee: number;
|
|
88
|
+
/**
|
|
89
|
+
* Address to receive royalty fees
|
|
90
|
+
*/
|
|
91
|
+
royaltyFeeAddress: string;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
22
94
|
/**
|
|
23
95
|
* Response schema for fetching websites
|
|
24
96
|
*/
|
|
@@ -95,6 +167,36 @@ export declare namespace WebsiteListResponse {
|
|
|
95
167
|
}
|
|
96
168
|
}
|
|
97
169
|
}
|
|
170
|
+
export interface WebsiteCreateParams {
|
|
171
|
+
/**
|
|
172
|
+
* Name of the website
|
|
173
|
+
*/
|
|
174
|
+
name: string;
|
|
175
|
+
/**
|
|
176
|
+
* Discord URL of the website account
|
|
177
|
+
*/
|
|
178
|
+
discordUrl?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Home URL of the official website
|
|
181
|
+
*/
|
|
182
|
+
homeUrl?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Instagram username of the website account
|
|
185
|
+
*/
|
|
186
|
+
instagramUsername?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Organization ID for which this website is being created
|
|
189
|
+
*/
|
|
190
|
+
organizationId?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Telegram URL of the website account
|
|
193
|
+
*/
|
|
194
|
+
telegramUrl?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Twitter username of the website account
|
|
197
|
+
*/
|
|
198
|
+
twitterUsername?: string;
|
|
199
|
+
}
|
|
98
200
|
export interface WebsiteListParams {
|
|
99
201
|
/**
|
|
100
202
|
* Number of items to return
|
|
@@ -114,8 +216,8 @@ export interface WebsiteListParams {
|
|
|
114
216
|
startingAfter?: string;
|
|
115
217
|
}
|
|
116
218
|
export declare namespace Websites {
|
|
117
|
-
export { type WebsiteListResponse as WebsiteListResponse, type WebsiteListParams as WebsiteListParams };
|
|
118
|
-
export { WebsiteCollections as WebsiteCollections };
|
|
219
|
+
export { type WebsiteCreateResponse as WebsiteCreateResponse, type WebsiteListResponse as WebsiteListResponse, type WebsiteCreateParams as WebsiteCreateParams, type WebsiteListParams as WebsiteListParams, };
|
|
220
|
+
export { WebsiteCollections as WebsiteCollections, type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
|
|
119
221
|
export { WebsiteUserRoles as WebsiteUserRoles, type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
120
222
|
}
|
|
121
223
|
//# sourceMappingURL=websites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,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AAI,gBAAgB,EACpC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -37,6 +37,19 @@ class Websites extends resource_1.APIResource {
|
|
|
37
37
|
this.websiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(this._client);
|
|
38
38
|
this.websiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(this._client);
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new website
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const website = await client.websites.create({
|
|
46
|
+
* name: 'My New Website',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
create(body, options) {
|
|
51
|
+
return this._client.post('/api/websites', { body, ...options });
|
|
52
|
+
}
|
|
40
53
|
list(query = {}, options) {
|
|
41
54
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
42
55
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,gFAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,gFAA+D;AAC/D,kEAK+B;AAC/B,6EAA4D;AAC5D,gEAM8B;AAE9B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;QACF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAoCJ,CAAC;IAlCC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAaD,IAAI,CACF,QAAiD,EAAE,EACnD,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,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA1CD,4BA0CC;AA8ND,QAAQ,CAAC,kBAAkB,GAAG,wCAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,qCAAgB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../../core.mjs";
|
|
4
4
|
import * as WebsiteCollectionsAPI from "./website-collections.mjs";
|
|
5
|
-
import { WebsiteCollections } from "./website-collections.mjs";
|
|
5
|
+
import { WebsiteCollections, } from "./website-collections.mjs";
|
|
6
6
|
import * as WebsiteUserRolesAPI from "./website-user-roles.mjs";
|
|
7
7
|
import { WebsiteUserRoles, } from "./website-user-roles.mjs";
|
|
8
8
|
export class Websites extends APIResource {
|
|
@@ -11,6 +11,19 @@ export class Websites extends APIResource {
|
|
|
11
11
|
this.websiteCollections = new WebsiteCollectionsAPI.WebsiteCollections(this._client);
|
|
12
12
|
this.websiteUserRoles = new WebsiteUserRolesAPI.WebsiteUserRoles(this._client);
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new website
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const website = await client.websites.create({
|
|
20
|
+
* name: 'My New Website',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body, options) {
|
|
25
|
+
return this._client.post('/api/websites', { body, ...options });
|
|
26
|
+
}
|
|
14
27
|
list(query = {}, options) {
|
|
15
28
|
if (isRequestOptions(query)) {
|
|
16
29
|
return this.list({}, query);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,qBAAqB;OAC1B,
|
|
1
|
+
{"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,qBAAqB;OAC1B,EAIL,kBAAkB,GACnB;OACM,KAAK,mBAAmB;OACxB,EAKL,gBAAgB,GACjB;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,uBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;QACF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAoCJ,CAAC;IAlCC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAaD,IAAI,CACF,QAAiD,EAAE,EACnD,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,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA8ND,QAAQ,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -37,7 +37,13 @@ import {
|
|
|
37
37
|
UserVerifyResponse,
|
|
38
38
|
Users,
|
|
39
39
|
} from './resources/users/users';
|
|
40
|
-
import {
|
|
40
|
+
import {
|
|
41
|
+
WebsiteCreateParams,
|
|
42
|
+
WebsiteCreateResponse,
|
|
43
|
+
WebsiteListParams,
|
|
44
|
+
WebsiteListResponse,
|
|
45
|
+
Websites,
|
|
46
|
+
} from './resources/websites/websites';
|
|
41
47
|
|
|
42
48
|
export interface ClientOptions {
|
|
43
49
|
/**
|
|
@@ -275,7 +281,9 @@ export declare namespace SnagSolutions {
|
|
|
275
281
|
|
|
276
282
|
export {
|
|
277
283
|
Websites as Websites,
|
|
284
|
+
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
278
285
|
type WebsiteListResponse as WebsiteListResponse,
|
|
286
|
+
type WebsiteCreateParams as WebsiteCreateParams,
|
|
279
287
|
type WebsiteListParams as WebsiteListParams,
|
|
280
288
|
};
|
|
281
289
|
}
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
WebsiteUserAttributeCreateResponse,
|
|
10
10
|
WebsiteUserAttributeDeleteParams,
|
|
11
11
|
WebsiteUserAttributeDeleteResponse,
|
|
12
|
+
WebsiteUserAttributeListParams,
|
|
13
|
+
WebsiteUserAttributeListResponse,
|
|
12
14
|
WebsiteUserAttributes,
|
|
13
15
|
} from './website-user-attributes/website-user-attributes';
|
|
14
16
|
|
|
@@ -425,8 +427,10 @@ export declare namespace Auctions {
|
|
|
425
427
|
export {
|
|
426
428
|
WebsiteUserAttributes as WebsiteUserAttributes,
|
|
427
429
|
type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
|
|
430
|
+
type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
|
|
428
431
|
type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
|
|
429
432
|
type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
|
|
433
|
+
type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
|
|
430
434
|
type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
|
|
431
435
|
};
|
|
432
436
|
}
|
|
@@ -10,7 +10,9 @@ export {
|
|
|
10
10
|
export {
|
|
11
11
|
WebsiteUserAttributes,
|
|
12
12
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
+
type WebsiteUserAttributeListResponse,
|
|
13
14
|
type WebsiteUserAttributeDeleteResponse,
|
|
14
15
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
+
type WebsiteUserAttributeListParams,
|
|
15
17
|
type WebsiteUserAttributeDeleteParams,
|
|
16
18
|
} from './website-user-attributes/index';
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Values,
|
|
5
|
+
type ValueCreateResponse,
|
|
6
|
+
type ValueListResponse,
|
|
7
|
+
type ValueCreateParams,
|
|
8
|
+
type ValueListParams,
|
|
9
|
+
} from './values';
|
|
4
10
|
export {
|
|
5
11
|
WebsiteUserAttributes,
|
|
6
12
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
+
type WebsiteUserAttributeListResponse,
|
|
7
14
|
type WebsiteUserAttributeDeleteResponse,
|
|
8
15
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
+
type WebsiteUserAttributeListParams,
|
|
9
17
|
type WebsiteUserAttributeDeleteParams,
|
|
10
18
|
} from './website-user-attributes';
|
|
@@ -30,6 +30,21 @@ export class Values extends APIResource {
|
|
|
30
30
|
create(body: ValueCreateParams, options?: Core.RequestOptions): Core.APIPromise<ValueCreateResponse> {
|
|
31
31
|
return this._client.post('/api/website_user_attributes/values', { body, ...options });
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get all website user attribute values
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const values =
|
|
40
|
+
* await client.auctions.websiteUserAttributes.values.list({
|
|
41
|
+
* userIds: '123e4567-e89b-12d3-a456-426614174004',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(query: ValueListParams, options?: Core.RequestOptions): Core.APIPromise<ValueListResponse> {
|
|
46
|
+
return this._client.get('/api/website_user_attributes/values', { query, ...options });
|
|
47
|
+
}
|
|
33
48
|
}
|
|
34
49
|
|
|
35
50
|
export type ValueCreateResponse = Array<ValueCreateResponse.ValueCreateResponseItem>;
|
|
@@ -54,6 +69,32 @@ export namespace ValueCreateResponse {
|
|
|
54
69
|
}
|
|
55
70
|
}
|
|
56
71
|
|
|
72
|
+
export interface ValueListResponse {
|
|
73
|
+
data: Array<ValueListResponse.Data>;
|
|
74
|
+
|
|
75
|
+
hasNextPage: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace ValueListResponse {
|
|
79
|
+
export interface Data {
|
|
80
|
+
id: string;
|
|
81
|
+
|
|
82
|
+
createdAt: string;
|
|
83
|
+
|
|
84
|
+
customFieldId: string;
|
|
85
|
+
|
|
86
|
+
organizationId: string;
|
|
87
|
+
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
|
|
90
|
+
userId: string;
|
|
91
|
+
|
|
92
|
+
value: string;
|
|
93
|
+
|
|
94
|
+
websiteId: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
57
98
|
export interface ValueCreateParams {
|
|
58
99
|
data: Array<ValueCreateParams.Data>;
|
|
59
100
|
|
|
@@ -92,6 +133,33 @@ export namespace ValueCreateParams {
|
|
|
92
133
|
}
|
|
93
134
|
}
|
|
94
135
|
|
|
136
|
+
export interface ValueListParams {
|
|
137
|
+
/**
|
|
138
|
+
* Unique identifier for the user
|
|
139
|
+
*/
|
|
140
|
+
userIds: string | Array<string>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Number of website user attributes to return
|
|
144
|
+
*/
|
|
145
|
+
limit?: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Unique identifier for the organization
|
|
149
|
+
*/
|
|
150
|
+
organizationId?: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Unique identifier for the website
|
|
154
|
+
*/
|
|
155
|
+
websiteId?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
95
158
|
export declare namespace Values {
|
|
96
|
-
export {
|
|
159
|
+
export {
|
|
160
|
+
type ValueCreateResponse as ValueCreateResponse,
|
|
161
|
+
type ValueListResponse as ValueListResponse,
|
|
162
|
+
type ValueCreateParams as ValueCreateParams,
|
|
163
|
+
type ValueListParams as ValueListParams,
|
|
164
|
+
};
|
|
97
165
|
}
|