@snagsolutions/sdk 0.1.0-alpha.173 → 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 +8 -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/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 +119 -1
- 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/transactions/index.ts +2 -0
- package/src/resources/loyalty/transactions/transactions.ts +151 -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
|
@@ -54,6 +54,25 @@ export class Transactions extends APIResource {
|
|
|
54
54
|
}
|
|
55
55
|
return this._client.get('/api/loyalty/transaction_entries', { query, ...options });
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Retrieve configured loyalty rule chains
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response =
|
|
64
|
+
* await client.loyalty.transactions.listRuleChains({
|
|
65
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174001',
|
|
66
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174002',
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
listRuleChains(
|
|
71
|
+
query: TransactionListRuleChainsParams,
|
|
72
|
+
options?: Core.RequestOptions,
|
|
73
|
+
): Core.APIPromise<TransactionListRuleChainsResponse> {
|
|
74
|
+
return this._client.get('/api/loyalty/rule_chains', { query, ...options });
|
|
75
|
+
}
|
|
57
76
|
}
|
|
58
77
|
|
|
59
78
|
export interface TransactionCreateTransactionResponse {
|
|
@@ -213,6 +232,114 @@ export namespace TransactionGetTransactionEntriesResponse {
|
|
|
213
232
|
}
|
|
214
233
|
}
|
|
215
234
|
|
|
235
|
+
export interface TransactionListRuleChainsResponse {
|
|
236
|
+
data: Array<TransactionListRuleChainsResponse.Data>;
|
|
237
|
+
|
|
238
|
+
hasNextPage: boolean;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace TransactionListRuleChainsResponse {
|
|
242
|
+
export interface Data {
|
|
243
|
+
/**
|
|
244
|
+
* Unique identifier for the rule chain
|
|
245
|
+
*/
|
|
246
|
+
id: string;
|
|
247
|
+
|
|
248
|
+
loyaltyConditions: Array<Data.LoyaltyCondition>;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Unique identifier for the loyalty rule
|
|
252
|
+
*/
|
|
253
|
+
loyaltyRuleId: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Name of the rule chain
|
|
257
|
+
*/
|
|
258
|
+
name: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export namespace Data {
|
|
262
|
+
export interface LoyaltyCondition {
|
|
263
|
+
/**
|
|
264
|
+
* Unique identifier for the condition
|
|
265
|
+
*/
|
|
266
|
+
id: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Amount of the condition
|
|
270
|
+
*/
|
|
271
|
+
amount: number | null;
|
|
272
|
+
|
|
273
|
+
association: Array<LoyaltyCondition.Association>;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* URL of the CSV file
|
|
277
|
+
*/
|
|
278
|
+
csvUrl: string | null;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Description of the condition
|
|
282
|
+
*/
|
|
283
|
+
description: string | null;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Number of times the condition must be met
|
|
287
|
+
*/
|
|
288
|
+
repeatCount: number | null;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Number of times the condition must be met
|
|
292
|
+
*/
|
|
293
|
+
requiredCount: number | null;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Type of the condition
|
|
297
|
+
*/
|
|
298
|
+
type: 'rule' | 'rules' | 'points' | 'section' | 'level' | 'api' | 'badge' | 'badges' | 'csv';
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export namespace LoyaltyCondition {
|
|
302
|
+
export interface Association {
|
|
303
|
+
/**
|
|
304
|
+
* Unique identifier for the association
|
|
305
|
+
*/
|
|
306
|
+
id: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Unique identifier for the loyalty badge
|
|
310
|
+
*/
|
|
311
|
+
loyaltyBadgeId: string | null;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Unique identifier for the loyalty currency
|
|
315
|
+
*/
|
|
316
|
+
loyaltyCurrencyId: string | null;
|
|
317
|
+
|
|
318
|
+
loyaltyRule: Association.LoyaltyRule | null;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Unique identifier for the loyalty rule group
|
|
322
|
+
*/
|
|
323
|
+
loyaltyRuleGroupId: string | null;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Unique identifier for the loyalty rule
|
|
327
|
+
*/
|
|
328
|
+
loyaltyRuleId: string | null;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export namespace Association {
|
|
332
|
+
export interface LoyaltyRule {
|
|
333
|
+
/**
|
|
334
|
+
* Name of the loyalty rule
|
|
335
|
+
*/
|
|
336
|
+
name: string;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
216
343
|
export interface TransactionCreateTransactionParams {
|
|
217
344
|
/**
|
|
218
345
|
* Description of the loyalty transaction
|
|
@@ -504,14 +631,38 @@ export interface TransactionGetTransactionEntriesParams {
|
|
|
504
631
|
websiteId?: string;
|
|
505
632
|
}
|
|
506
633
|
|
|
634
|
+
export interface TransactionListRuleChainsParams {
|
|
635
|
+
/**
|
|
636
|
+
* Unique identifier for the organization
|
|
637
|
+
*/
|
|
638
|
+
organizationId: string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Unique identifier for the website
|
|
642
|
+
*/
|
|
643
|
+
websiteId: string;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Number of rule chains to return
|
|
647
|
+
*/
|
|
648
|
+
limit?: number;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Starting after the given rule chain ID
|
|
652
|
+
*/
|
|
653
|
+
startingAfter?: string;
|
|
654
|
+
}
|
|
655
|
+
|
|
507
656
|
Transactions.RuleStatuses = RuleStatuses;
|
|
508
657
|
|
|
509
658
|
export declare namespace Transactions {
|
|
510
659
|
export {
|
|
511
660
|
type TransactionCreateTransactionResponse as TransactionCreateTransactionResponse,
|
|
512
661
|
type TransactionGetTransactionEntriesResponse as TransactionGetTransactionEntriesResponse,
|
|
662
|
+
type TransactionListRuleChainsResponse as TransactionListRuleChainsResponse,
|
|
513
663
|
type TransactionCreateTransactionParams as TransactionCreateTransactionParams,
|
|
514
664
|
type TransactionGetTransactionEntriesParams as TransactionGetTransactionEntriesParams,
|
|
665
|
+
type TransactionListRuleChainsParams as TransactionListRuleChainsParams,
|
|
515
666
|
};
|
|
516
667
|
|
|
517
668
|
export {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
WebsiteCollections,
|
|
5
|
+
type WebsiteCollectionListResponse,
|
|
6
|
+
type WebsiteCollectionCreateParams,
|
|
7
|
+
type WebsiteCollectionListParams,
|
|
8
|
+
} from './website-collections';
|
|
4
9
|
export {
|
|
5
10
|
WebsiteUserRoles,
|
|
6
11
|
type WebsiteUserRoleListResponse,
|
|
@@ -8,4 +13,10 @@ export {
|
|
|
8
13
|
type WebsiteUserRoleListParams,
|
|
9
14
|
type WebsiteUserRoleAssignParams,
|
|
10
15
|
} from './website-user-roles';
|
|
11
|
-
export {
|
|
16
|
+
export {
|
|
17
|
+
Websites,
|
|
18
|
+
type WebsiteCreateResponse,
|
|
19
|
+
type WebsiteListResponse,
|
|
20
|
+
type WebsiteCreateParams,
|
|
21
|
+
type WebsiteListParams,
|
|
22
|
+
} from './websites';
|
|
@@ -1,5 +1,187 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
4
5
|
|
|
5
|
-
export class WebsiteCollections extends APIResource {
|
|
6
|
+
export class WebsiteCollections extends 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: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
24
|
+
return this._client.post('/api/website_collections', {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves collections for a specific website.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const websiteCollections =
|
|
37
|
+
* await client.websites.websiteCollections.list({
|
|
38
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174000',
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
list(
|
|
43
|
+
query: WebsiteCollectionListParams,
|
|
44
|
+
options?: Core.RequestOptions,
|
|
45
|
+
): Core.APIPromise<WebsiteCollectionListResponse> {
|
|
46
|
+
return this._client.get('/api/website_collections', { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Response schema for fetching website collections
|
|
52
|
+
*/
|
|
53
|
+
export interface WebsiteCollectionListResponse {
|
|
54
|
+
/**
|
|
55
|
+
* Array of websites
|
|
56
|
+
*/
|
|
57
|
+
data: Array<WebsiteCollectionListResponse.Data>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Indicates if more pages are available
|
|
61
|
+
*/
|
|
62
|
+
hasNextPage: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace WebsiteCollectionListResponse {
|
|
66
|
+
export interface Data {
|
|
67
|
+
/**
|
|
68
|
+
* Website Collection ID
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface WebsiteCollectionCreateParams {
|
|
75
|
+
collectionAddress: string;
|
|
76
|
+
|
|
77
|
+
name: string;
|
|
78
|
+
|
|
79
|
+
network:
|
|
80
|
+
| 'abstract'
|
|
81
|
+
| 'abstractTestnet'
|
|
82
|
+
| 'apechain'
|
|
83
|
+
| 'arbitrum'
|
|
84
|
+
| 'avalanche'
|
|
85
|
+
| 'avalancheFuji'
|
|
86
|
+
| 'base'
|
|
87
|
+
| 'baseSepolia'
|
|
88
|
+
| 'berachain'
|
|
89
|
+
| 'berachainArtio'
|
|
90
|
+
| 'berachainBepolia'
|
|
91
|
+
| 'binance'
|
|
92
|
+
| 'bscTestnet'
|
|
93
|
+
| 'campTestnet'
|
|
94
|
+
| 'fantom'
|
|
95
|
+
| 'fantomTestnet'
|
|
96
|
+
| 'flowMainnet'
|
|
97
|
+
| 'mainnet'
|
|
98
|
+
| 'nexusTestnet'
|
|
99
|
+
| 'optimism'
|
|
100
|
+
| 'polygon'
|
|
101
|
+
| 'polygon_mumbai'
|
|
102
|
+
| 'skaleNebula'
|
|
103
|
+
| 'skaleEuropa'
|
|
104
|
+
| 'skaleCalypso'
|
|
105
|
+
| 'solana'
|
|
106
|
+
| 'sophon'
|
|
107
|
+
| 'sophonTestnet'
|
|
108
|
+
| 'sui'
|
|
109
|
+
| 'superseed'
|
|
110
|
+
| 'superseedSepolia'
|
|
111
|
+
| 'vanar'
|
|
112
|
+
| 'xai'
|
|
113
|
+
| 'zksync'
|
|
114
|
+
| 'coti'
|
|
115
|
+
| 'cotiTestnet'
|
|
116
|
+
| 'morph'
|
|
117
|
+
| 'morphTestnet'
|
|
118
|
+
| 'morphHolesky'
|
|
119
|
+
| 'ultra'
|
|
120
|
+
| 'ultraTestnet'
|
|
121
|
+
| 'nitrograph'
|
|
122
|
+
| 'sepolia'
|
|
123
|
+
| 'optimism_sepolia'
|
|
124
|
+
| 'arbitrumSepolia'
|
|
125
|
+
| 'goerli'
|
|
126
|
+
| 'optimism_goerli'
|
|
127
|
+
| 'arbitrumGoerli'
|
|
128
|
+
| 'basecamp'
|
|
129
|
+
| 'somnia'
|
|
130
|
+
| 'flow_cadence';
|
|
131
|
+
|
|
132
|
+
organizationId: string;
|
|
133
|
+
|
|
134
|
+
sortId: number;
|
|
135
|
+
|
|
136
|
+
websiteId: string;
|
|
137
|
+
|
|
138
|
+
discordUrl?: string;
|
|
139
|
+
|
|
140
|
+
homeUrl?: string;
|
|
141
|
+
|
|
142
|
+
imageUrl?: string | null;
|
|
143
|
+
|
|
144
|
+
instagramUsername?: string;
|
|
145
|
+
|
|
146
|
+
royaltyFee?: number | null;
|
|
147
|
+
|
|
148
|
+
royaltyFeeAddress?: string | null;
|
|
149
|
+
|
|
150
|
+
stakingAddress?: string;
|
|
151
|
+
|
|
152
|
+
telegramUrl?: string;
|
|
153
|
+
|
|
154
|
+
themeId?: string;
|
|
155
|
+
|
|
156
|
+
twitterUsername?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface WebsiteCollectionListParams {
|
|
160
|
+
/**
|
|
161
|
+
* Filter by website ID
|
|
162
|
+
*/
|
|
163
|
+
websiteId: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Number of items to return
|
|
167
|
+
*/
|
|
168
|
+
limit?: number;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Filter by organization ID
|
|
172
|
+
*/
|
|
173
|
+
organizationId?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Pagination cursor, start after this ID
|
|
177
|
+
*/
|
|
178
|
+
startingAfter?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export declare namespace WebsiteCollections {
|
|
182
|
+
export {
|
|
183
|
+
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
184
|
+
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
185
|
+
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
@@ -4,7 +4,12 @@ import { APIResource } from '../../resource';
|
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
6
|
import * as WebsiteCollectionsAPI from './website-collections';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
WebsiteCollectionCreateParams,
|
|
9
|
+
WebsiteCollectionListParams,
|
|
10
|
+
WebsiteCollectionListResponse,
|
|
11
|
+
WebsiteCollections,
|
|
12
|
+
} from './website-collections';
|
|
8
13
|
import * as WebsiteUserRolesAPI from './website-user-roles';
|
|
9
14
|
import {
|
|
10
15
|
WebsiteUserRoleAssignParams,
|
|
@@ -22,6 +27,20 @@ export class Websites extends APIResource {
|
|
|
22
27
|
this._client,
|
|
23
28
|
);
|
|
24
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new website
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const website = await client.websites.create({
|
|
36
|
+
* name: 'My New Website',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
create(body: WebsiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCreateResponse> {
|
|
41
|
+
return this._client.post('/api/websites', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
25
44
|
/**
|
|
26
45
|
* Returns a list of websites. Includes optional query parameters for filtering and
|
|
27
46
|
* pagination.
|
|
@@ -44,6 +63,78 @@ export class Websites extends APIResource {
|
|
|
44
63
|
}
|
|
45
64
|
}
|
|
46
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Schema representing a website
|
|
68
|
+
*/
|
|
69
|
+
export interface WebsiteCreateResponse {
|
|
70
|
+
/**
|
|
71
|
+
* Website ID
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Counts of related entities
|
|
77
|
+
*/
|
|
78
|
+
_count: WebsiteCreateResponse._Count;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Collections associated with the website
|
|
82
|
+
*/
|
|
83
|
+
collections: Array<WebsiteCreateResponse.Collection>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Website name
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Date when terms were signed
|
|
92
|
+
*/
|
|
93
|
+
termsSignedAt: string | null;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace WebsiteCreateResponse {
|
|
97
|
+
/**
|
|
98
|
+
* Counts of related entities
|
|
99
|
+
*/
|
|
100
|
+
export interface _Count {
|
|
101
|
+
/**
|
|
102
|
+
* Count of minting contract assets
|
|
103
|
+
*/
|
|
104
|
+
mintingContractAssets: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Schema representing a collection
|
|
109
|
+
*/
|
|
110
|
+
export interface Collection {
|
|
111
|
+
/**
|
|
112
|
+
* Collection ID
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* URL of the collection image
|
|
118
|
+
*/
|
|
119
|
+
imageUrl: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Collection name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Royalty fee percentage
|
|
128
|
+
*/
|
|
129
|
+
royaltyFee: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Address to receive royalty fees
|
|
133
|
+
*/
|
|
134
|
+
royaltyFeeAddress: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
47
138
|
/**
|
|
48
139
|
* Response schema for fetching websites
|
|
49
140
|
*/
|
|
@@ -133,6 +224,43 @@ export namespace WebsiteListResponse {
|
|
|
133
224
|
}
|
|
134
225
|
}
|
|
135
226
|
|
|
227
|
+
export interface WebsiteCreateParams {
|
|
228
|
+
/**
|
|
229
|
+
* Name of the website
|
|
230
|
+
*/
|
|
231
|
+
name: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Discord URL of the website account
|
|
235
|
+
*/
|
|
236
|
+
discordUrl?: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Home URL of the official website
|
|
240
|
+
*/
|
|
241
|
+
homeUrl?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Instagram username of the website account
|
|
245
|
+
*/
|
|
246
|
+
instagramUsername?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Organization ID for which this website is being created
|
|
250
|
+
*/
|
|
251
|
+
organizationId?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Telegram URL of the website account
|
|
255
|
+
*/
|
|
256
|
+
telegramUrl?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Twitter username of the website account
|
|
260
|
+
*/
|
|
261
|
+
twitterUsername?: string;
|
|
262
|
+
}
|
|
263
|
+
|
|
136
264
|
export interface WebsiteListParams {
|
|
137
265
|
/**
|
|
138
266
|
* Number of items to return
|
|
@@ -159,9 +287,19 @@ Websites.WebsiteCollections = WebsiteCollections;
|
|
|
159
287
|
Websites.WebsiteUserRoles = WebsiteUserRoles;
|
|
160
288
|
|
|
161
289
|
export declare namespace Websites {
|
|
162
|
-
export {
|
|
290
|
+
export {
|
|
291
|
+
type WebsiteCreateResponse as WebsiteCreateResponse,
|
|
292
|
+
type WebsiteListResponse as WebsiteListResponse,
|
|
293
|
+
type WebsiteCreateParams as WebsiteCreateParams,
|
|
294
|
+
type WebsiteListParams as WebsiteListParams,
|
|
295
|
+
};
|
|
163
296
|
|
|
164
|
-
export {
|
|
297
|
+
export {
|
|
298
|
+
WebsiteCollections as WebsiteCollections,
|
|
299
|
+
type WebsiteCollectionListResponse as WebsiteCollectionListResponse,
|
|
300
|
+
type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams,
|
|
301
|
+
type WebsiteCollectionListParams as WebsiteCollectionListParams,
|
|
302
|
+
};
|
|
165
303
|
|
|
166
304
|
export {
|
|
167
305
|
WebsiteUserRoles as WebsiteUserRoles,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.174";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.174'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|