@snagsolutions/sdk 0.1.0-alpha.152 → 0.1.0-alpha.154
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 +1 -47
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/values.js +0 -14
- package/resources/auctions/website-user-attributes/values.js.map +1 -1
- package/resources/auctions/website-user-attributes/values.mjs +0 -14
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +3 -43
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.js +0 -7
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +0 -7
- 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-edits.d.ts +8 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +2 -2
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rules.d.ts +36 -23
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +2 -2
- 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 +1 -1
- package/resources/loyalty/transactions/index.mjs.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.d.ts +1 -60
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.js +0 -7
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
- package/resources/loyalty/transactions/rule-statuses.mjs +0 -7
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
- package/resources/loyalty/transactions/transactions.d.ts +3 -121
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions/transactions.js +0 -15
- package/resources/loyalty/transactions/transactions.js.map +1 -1
- package/resources/loyalty/transactions/transactions.mjs +1 -16
- package/resources/loyalty/transactions/transactions.mjs.map +1 -1
- package/resources/minting.d.ts +1 -1
- package/resources/minting.d.ts.map +1 -1
- package/resources/users/users.d.ts +14 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.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 +0 -90
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +0 -37
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +0 -37
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/websites.d.ts +3 -105
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +0 -13
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +1 -14
- package/resources/websites/websites.mjs.map +1 -1
- package/src/index.ts +1 -9
- package/src/resources/auctions/auctions.ts +0 -4
- package/src/resources/auctions/index.ts +0 -2
- package/src/resources/auctions/website-user-attributes/index.ts +1 -9
- package/src/resources/auctions/website-user-attributes/values.ts +1 -69
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +1 -71
- package/src/resources/index.ts +1 -7
- package/src/resources/loyalty/index.ts +0 -2
- package/src/resources/loyalty/loyalty.ts +0 -4
- package/src/resources/loyalty/rule-edits.ts +16 -8
- package/src/resources/loyalty/rule-groups.ts +4 -2
- package/src/resources/loyalty/rules.ts +59 -25
- package/src/resources/loyalty/transactions/index.ts +1 -9
- package/src/resources/loyalty/transactions/rule-statuses.ts +0 -91
- package/src/resources/loyalty/transactions/transactions.ts +1 -160
- package/src/resources/minting.ts +2 -1
- package/src/resources/users/users.ts +22 -0
- package/src/resources/websites/index.ts +2 -13
- package/src/resources/websites/website-collections.ts +1 -179
- package/src/resources/websites/websites.ts +3 -141
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,94 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
2
|
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' | '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';
|
|
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, };
|
|
93
3
|
}
|
|
94
4
|
//# 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;AAE7C,qBAAa,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -4,43 +4,6 @@ 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
|
-
}
|
|
44
7
|
}
|
|
45
8
|
exports.WebsiteCollections = WebsiteCollections;
|
|
46
9
|
//# 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;AAE7C,MAAa,kBAAmB,SAAQ,sBAAW;CAAG;AAAtD,gDAAsD"}
|
|
@@ -1,42 +1,5 @@
|
|
|
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
|
-
}
|
|
41
4
|
}
|
|
42
5
|
//# 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;AAEtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -1,23 +1,12 @@
|
|
|
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 {
|
|
4
|
+
import { 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>;
|
|
21
10
|
/**
|
|
22
11
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
23
12
|
* pagination.
|
|
@@ -30,67 +19,6 @@ export declare class Websites extends APIResource {
|
|
|
30
19
|
list(query?: WebsiteListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
31
20
|
list(options?: Core.RequestOptions): Core.APIPromise<WebsiteListResponse>;
|
|
32
21
|
}
|
|
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
|
-
}
|
|
94
22
|
/**
|
|
95
23
|
* Response schema for fetching websites
|
|
96
24
|
*/
|
|
@@ -167,36 +95,6 @@ export declare namespace WebsiteListResponse {
|
|
|
167
95
|
}
|
|
168
96
|
}
|
|
169
97
|
}
|
|
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
|
-
}
|
|
200
98
|
export interface WebsiteListParams {
|
|
201
99
|
/**
|
|
202
100
|
* Number of items to return
|
|
@@ -216,8 +114,8 @@ export interface WebsiteListParams {
|
|
|
216
114
|
startingAfter?: string;
|
|
217
115
|
}
|
|
218
116
|
export declare namespace Websites {
|
|
219
|
-
export { type
|
|
220
|
-
export { WebsiteCollections as WebsiteCollections
|
|
117
|
+
export { type WebsiteListResponse as WebsiteListResponse, type WebsiteListParams as WebsiteListParams };
|
|
118
|
+
export { WebsiteCollections as WebsiteCollections };
|
|
221
119
|
export { WebsiteUserRoles as WebsiteUserRoles, type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
|
|
222
120
|
}
|
|
223
121
|
//# 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,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/websites/websites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,mBAAmB,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,QAAS,SAAQ,WAAW;IACvC,kBAAkB,EAAE,qBAAqB,CAAC,kBAAkB,CAE1D;IACF,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IACpG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAU1E;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEpC;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,qBAAqB,EAAE,MAAM,CAAC;SAC/B;QAED;;WAEG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,iBAAiB,EAAE,MAAM,CAAC;SAC3B;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;IAEpD,OAAO,EACL,gBAAgB,IAAI,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,19 +37,6 @@ 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
|
-
}
|
|
53
40
|
list(query = {}, options) {
|
|
54
41
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
55
42
|
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,kEAA2D;AAC3D,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;IAsBJ,CAAC;IATC,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;AA5BD,4BA4BC;AAiHD,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
|
|
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,19 +11,6 @@ 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
|
-
}
|
|
27
14
|
list(query = {}, options) {
|
|
28
15
|
if (isRequestOptions(query)) {
|
|
29
16
|
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,EAAE,kBAAkB,EAAE;OACtB,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;IAsBJ,CAAC;IATC,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;AAiHD,QAAQ,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AACjD,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -37,13 +37,7 @@ import {
|
|
|
37
37
|
UserVerifyResponse,
|
|
38
38
|
Users,
|
|
39
39
|
} from './resources/users/users';
|
|
40
|
-
import {
|
|
41
|
-
WebsiteCreateParams,
|
|
42
|
-
WebsiteCreateResponse,
|
|
43
|
-
WebsiteListParams,
|
|
44
|
-
WebsiteListResponse,
|
|
45
|
-
Websites,
|
|
46
|
-
} from './resources/websites/websites';
|
|
40
|
+
import { WebsiteListParams, WebsiteListResponse, Websites } from './resources/websites/websites';
|
|
47
41
|
|
|
48
42
|
export interface ClientOptions {
|
|
49
43
|
/**
|
|
@@ -281,9 +275,7 @@ export declare namespace SnagSolutions {
|
|
|
281
275
|
|
|
282
276
|
export {
|
|
283
277
|
Websites as Websites,
|
|
284
|
-
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
285
278
|
type WebsiteListResponse as WebsiteListResponse,
|
|
286
|
-
type WebsiteCreateParams as WebsiteCreateParams,
|
|
287
279
|
type WebsiteListParams as WebsiteListParams,
|
|
288
280
|
};
|
|
289
281
|
}
|
|
@@ -9,8 +9,6 @@ import {
|
|
|
9
9
|
WebsiteUserAttributeCreateResponse,
|
|
10
10
|
WebsiteUserAttributeDeleteParams,
|
|
11
11
|
WebsiteUserAttributeDeleteResponse,
|
|
12
|
-
WebsiteUserAttributeListParams,
|
|
13
|
-
WebsiteUserAttributeListResponse,
|
|
14
12
|
WebsiteUserAttributes,
|
|
15
13
|
} from './website-user-attributes/website-user-attributes';
|
|
16
14
|
|
|
@@ -427,10 +425,8 @@ export declare namespace Auctions {
|
|
|
427
425
|
export {
|
|
428
426
|
WebsiteUserAttributes as WebsiteUserAttributes,
|
|
429
427
|
type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
|
|
430
|
-
type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
|
|
431
428
|
type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
|
|
432
429
|
type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
|
|
433
|
-
type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
|
|
434
430
|
type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
|
|
435
431
|
};
|
|
436
432
|
}
|
|
@@ -10,9 +10,7 @@ export {
|
|
|
10
10
|
export {
|
|
11
11
|
WebsiteUserAttributes,
|
|
12
12
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
-
type WebsiteUserAttributeListResponse,
|
|
14
13
|
type WebsiteUserAttributeDeleteResponse,
|
|
15
14
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
-
type WebsiteUserAttributeListParams,
|
|
17
15
|
type WebsiteUserAttributeDeleteParams,
|
|
18
16
|
} from './website-user-attributes/index';
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Values,
|
|
5
|
-
type ValueCreateResponse,
|
|
6
|
-
type ValueListResponse,
|
|
7
|
-
type ValueCreateParams,
|
|
8
|
-
type ValueListParams,
|
|
9
|
-
} from './values';
|
|
3
|
+
export { Values, type ValueCreateResponse, type ValueCreateParams } from './values';
|
|
10
4
|
export {
|
|
11
5
|
WebsiteUserAttributes,
|
|
12
6
|
type WebsiteUserAttributeCreateResponse,
|
|
13
|
-
type WebsiteUserAttributeListResponse,
|
|
14
7
|
type WebsiteUserAttributeDeleteResponse,
|
|
15
8
|
type WebsiteUserAttributeCreateParams,
|
|
16
|
-
type WebsiteUserAttributeListParams,
|
|
17
9
|
type WebsiteUserAttributeDeleteParams,
|
|
18
10
|
} from './website-user-attributes';
|
|
@@ -30,21 +30,6 @@ 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
|
-
}
|
|
48
33
|
}
|
|
49
34
|
|
|
50
35
|
export type ValueCreateResponse = Array<ValueCreateResponse.ValueCreateResponseItem>;
|
|
@@ -69,32 +54,6 @@ export namespace ValueCreateResponse {
|
|
|
69
54
|
}
|
|
70
55
|
}
|
|
71
56
|
|
|
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
|
-
|
|
98
57
|
export interface ValueCreateParams {
|
|
99
58
|
data: Array<ValueCreateParams.Data>;
|
|
100
59
|
|
|
@@ -133,33 +92,6 @@ export namespace ValueCreateParams {
|
|
|
133
92
|
}
|
|
134
93
|
}
|
|
135
94
|
|
|
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
|
-
|
|
158
95
|
export declare namespace Values {
|
|
159
|
-
export {
|
|
160
|
-
type ValueCreateResponse as ValueCreateResponse,
|
|
161
|
-
type ValueListResponse as ValueListResponse,
|
|
162
|
-
type ValueCreateParams as ValueCreateParams,
|
|
163
|
-
type ValueListParams as ValueListParams,
|
|
164
|
-
};
|
|
96
|
+
export { type ValueCreateResponse as ValueCreateResponse, type ValueCreateParams as ValueCreateParams };
|
|
165
97
|
}
|