@snagsolutions/sdk 0.1.0-alpha.44 → 0.1.0-alpha.46
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 +20 -0
- package/README.md +18 -16
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- 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 +1 -1
- package/resources/assets.d.ts +7 -1
- package/resources/assets.d.ts.map +1 -1
- package/resources/auctions/auctions.d.ts +266 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +62 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +35 -0
- package/resources/auctions/auctions.mjs.map +1 -0
- package/resources/auctions/index.d.ts +3 -0
- package/resources/auctions/index.d.ts.map +1 -0
- package/resources/auctions/index.js +9 -0
- package/resources/auctions/index.js.map +1 -0
- package/resources/auctions/index.mjs +4 -0
- package/resources/auctions/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/index.d.ts +3 -0
- package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/index.js +9 -0
- package/resources/auctions/website-user-attributes/index.js.map +1 -0
- package/resources/auctions/website-user-attributes/index.mjs +4 -0
- package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/values.d.ts +94 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +21 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +17 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +108 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js +58 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +31 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
- package/resources/auctions/website-user-attributes.d.ts +2 -0
- package/resources/auctions/website-user-attributes.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes.js +19 -0
- package/resources/auctions/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes.mjs +3 -0
- package/resources/auctions/website-user-attributes.mjs.map +1 -0
- package/resources/auctions.d.ts +1 -133
- package/resources/auctions.d.ts.map +1 -1
- package/resources/auctions.js +15 -22
- package/resources/auctions.js.map +1 -1
- package/resources/auctions.mjs +1 -20
- package/resources/auctions.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/index.d.ts +1 -1
- 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 +3 -3
- 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/rules.d.ts +10 -3
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +4 -4
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +4 -4
- package/resources/loyalty/rules.mjs.map +1 -1
- package/resources/loyalty/transactions/index.d.ts +3 -0
- package/resources/loyalty/transactions/index.d.ts.map +1 -0
- package/resources/loyalty/transactions/index.js +9 -0
- package/resources/loyalty/transactions/index.js.map +1 -0
- package/resources/loyalty/transactions/index.mjs +4 -0
- package/resources/loyalty/transactions/index.mjs.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts +104 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +22 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +18 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +288 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +58 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +31 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -253
- package/resources/loyalty/transactions.d.ts.map +1 -1
- package/resources/loyalty/transactions.js +15 -18
- package/resources/loyalty/transactions.js.map +1 -1
- package/resources/loyalty/transactions.mjs +1 -16
- package/resources/loyalty/transactions.mjs.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.ts +60 -1
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +9 -0
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +9 -0
- package/resources/users/users.mjs.map +1 -1
- package/src/index.ts +17 -1
- package/src/resources/assets.ts +8 -1
- package/src/resources/auctions/auctions.ts +417 -0
- package/src/resources/auctions/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +137 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +183 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/index.ts +11 -1
- package/src/resources/loyalty/index.ts +3 -1
- package/src/resources/loyalty/loyalty.ts +6 -2
- package/src/resources/loyalty/rules.ts +20 -4
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +160 -0
- package/src/resources/loyalty/transactions/transactions.ts +515 -0
- package/src/resources/loyalty/transactions.ts +1 -448
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/users.ts +88 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as WebsiteUserAttributesAPI from './website-user-attributes/website-user-attributes';
|
|
7
|
+
import {
|
|
8
|
+
WebsiteUserAttributeCreateParams,
|
|
9
|
+
WebsiteUserAttributeCreateResponse,
|
|
10
|
+
WebsiteUserAttributeDeleteParams,
|
|
11
|
+
WebsiteUserAttributeDeleteResponse,
|
|
12
|
+
WebsiteUserAttributeListParams,
|
|
13
|
+
WebsiteUserAttributeListResponse,
|
|
14
|
+
WebsiteUserAttributes,
|
|
15
|
+
} from './website-user-attributes/website-user-attributes';
|
|
16
|
+
|
|
17
|
+
export class Auctions extends APIResource {
|
|
18
|
+
websiteUserAttributes: WebsiteUserAttributesAPI.WebsiteUserAttributes =
|
|
19
|
+
new WebsiteUserAttributesAPI.WebsiteUserAttributes(this._client);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* This endpoint allows you to fetch page sections
|
|
23
|
+
*/
|
|
24
|
+
getPageSections(
|
|
25
|
+
query: AuctionGetPageSectionsParams,
|
|
26
|
+
options?: Core.RequestOptions,
|
|
27
|
+
): Core.APIPromise<AuctionGetPageSectionsResponse> {
|
|
28
|
+
return this._client.get('/api/page_sections', { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of auction bids with optional filtering and pagination.
|
|
33
|
+
*/
|
|
34
|
+
listAuctionBids(query?: AuctionListAuctionBidsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
35
|
+
listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
36
|
+
listAuctionBids(
|
|
37
|
+
query: AuctionListAuctionBidsParams | Core.RequestOptions = {},
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Core.APIPromise<void> {
|
|
40
|
+
if (isRequestOptions(query)) {
|
|
41
|
+
return this.listAuctionBids({}, query);
|
|
42
|
+
}
|
|
43
|
+
return this._client.get('/api/auction_bids', {
|
|
44
|
+
query,
|
|
45
|
+
...options,
|
|
46
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
52
|
+
*/
|
|
53
|
+
listAuctions(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionsResponse> {
|
|
54
|
+
return this._client.get('/api/auctions', options);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface AuctionGetPageSectionsResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for the page section
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Start time of the page section visibility
|
|
66
|
+
*/
|
|
67
|
+
durationStart: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Unique identifier for the organization
|
|
71
|
+
*/
|
|
72
|
+
organizationId: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Placement of the page section
|
|
76
|
+
*/
|
|
77
|
+
placement: 'global' | 'page';
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Unique identifier for the website
|
|
81
|
+
*/
|
|
82
|
+
websiteId: string;
|
|
83
|
+
|
|
84
|
+
banner?: AuctionGetPageSectionsResponse.Banner | null;
|
|
85
|
+
|
|
86
|
+
discoveryItems?: Array<AuctionGetPageSectionsResponse.DiscoveryItem>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* End time of the page section visibility
|
|
90
|
+
*/
|
|
91
|
+
durationEnd?: string | null;
|
|
92
|
+
|
|
93
|
+
itemsGrids?: Array<AuctionGetPageSectionsResponse.ItemsGrid>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* ID of the page this section belongs to
|
|
97
|
+
*/
|
|
98
|
+
pageId?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Type of the page section
|
|
102
|
+
*/
|
|
103
|
+
pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Order of the page section
|
|
107
|
+
*/
|
|
108
|
+
sortId?: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Title of the page section
|
|
112
|
+
*/
|
|
113
|
+
title?: string | null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace AuctionGetPageSectionsResponse {
|
|
117
|
+
export interface Banner {
|
|
118
|
+
id: string;
|
|
119
|
+
|
|
120
|
+
websiteCollectionBanners: Array<Banner.WebsiteCollectionBanner>;
|
|
121
|
+
|
|
122
|
+
carousel?: Banner.Carousel | null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export namespace Banner {
|
|
126
|
+
export interface WebsiteCollectionBanner {
|
|
127
|
+
id: string;
|
|
128
|
+
|
|
129
|
+
websiteCollectionId: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface Carousel {
|
|
133
|
+
id: string;
|
|
134
|
+
|
|
135
|
+
carouselItems: Array<Carousel.CarouselItem>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export namespace Carousel {
|
|
139
|
+
export interface CarouselItem {
|
|
140
|
+
id: string;
|
|
141
|
+
|
|
142
|
+
sortId: number;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface DiscoveryItem {
|
|
148
|
+
id: string;
|
|
149
|
+
|
|
150
|
+
title: string;
|
|
151
|
+
|
|
152
|
+
buttonText?: string | null;
|
|
153
|
+
|
|
154
|
+
description?: string | null;
|
|
155
|
+
|
|
156
|
+
externalLink?: string | null;
|
|
157
|
+
|
|
158
|
+
hideQuestInfo?: boolean;
|
|
159
|
+
|
|
160
|
+
layout?: 'container_style' | 'full_width_hero' | null;
|
|
161
|
+
|
|
162
|
+
loyaltyRuleGroupId?: string | null;
|
|
163
|
+
|
|
164
|
+
loyaltySection?: string | null;
|
|
165
|
+
|
|
166
|
+
mediaLink?: string | null;
|
|
167
|
+
|
|
168
|
+
pageMediaLink?: string | null;
|
|
169
|
+
|
|
170
|
+
sortId?: number;
|
|
171
|
+
|
|
172
|
+
twitter?: string | null;
|
|
173
|
+
|
|
174
|
+
website?: string | null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface ItemsGrid {
|
|
178
|
+
id: string;
|
|
179
|
+
|
|
180
|
+
websiteCollection: ItemsGrid.WebsiteCollection;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export namespace ItemsGrid {
|
|
184
|
+
export interface WebsiteCollection {
|
|
185
|
+
id: string;
|
|
186
|
+
|
|
187
|
+
mintingContractId?: string | null;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Schema for the response when fetching auctions
|
|
194
|
+
*/
|
|
195
|
+
export interface AuctionListAuctionsResponse {
|
|
196
|
+
data: Array<AuctionListAuctionsResponse.Data>;
|
|
197
|
+
|
|
198
|
+
hasNextPage: boolean;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace AuctionListAuctionsResponse {
|
|
202
|
+
export interface Data {
|
|
203
|
+
id: string;
|
|
204
|
+
|
|
205
|
+
auctionBids: Array<Data.AuctionBid>;
|
|
206
|
+
|
|
207
|
+
auctionItems: Array<Data.AuctionItem>;
|
|
208
|
+
|
|
209
|
+
biddersOwnCollectionAddresses: Array<string>;
|
|
210
|
+
|
|
211
|
+
createdAt: string;
|
|
212
|
+
|
|
213
|
+
currencyAddress: string | null;
|
|
214
|
+
|
|
215
|
+
currencyDecimals: number;
|
|
216
|
+
|
|
217
|
+
deletedAt: string | null;
|
|
218
|
+
|
|
219
|
+
description: string;
|
|
220
|
+
|
|
221
|
+
endsAt: string;
|
|
222
|
+
|
|
223
|
+
extendedDurationInSeconds: number | null;
|
|
224
|
+
|
|
225
|
+
hideBids: boolean;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Schema representing a loyalty currency
|
|
229
|
+
*/
|
|
230
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
231
|
+
|
|
232
|
+
loyaltyCurrencyId: string | null;
|
|
233
|
+
|
|
234
|
+
minBidAmount: string;
|
|
235
|
+
|
|
236
|
+
minBidIncrement: string | null;
|
|
237
|
+
|
|
238
|
+
mintingContractId: string;
|
|
239
|
+
|
|
240
|
+
name: string;
|
|
241
|
+
|
|
242
|
+
network: 'ethereum' | 'zksync';
|
|
243
|
+
|
|
244
|
+
organizationId: string;
|
|
245
|
+
|
|
246
|
+
reservePrice: string | null;
|
|
247
|
+
|
|
248
|
+
signature: string;
|
|
249
|
+
|
|
250
|
+
startsAt: string;
|
|
251
|
+
|
|
252
|
+
status: 'in_progress' | 'completed' | 'cancelled';
|
|
253
|
+
|
|
254
|
+
type: 'first_price' | 'second_price' | 'english';
|
|
255
|
+
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
|
|
258
|
+
userId: string;
|
|
259
|
+
|
|
260
|
+
websiteId: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export namespace Data {
|
|
264
|
+
/**
|
|
265
|
+
* Schema representing an auction bid
|
|
266
|
+
*/
|
|
267
|
+
export interface AuctionBid {
|
|
268
|
+
id: string;
|
|
269
|
+
|
|
270
|
+
amount: string;
|
|
271
|
+
|
|
272
|
+
createdAt: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface AuctionItem {
|
|
276
|
+
id: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Schema representing a minting contract asset
|
|
280
|
+
*/
|
|
281
|
+
mintingContractAsset: AuctionItem.MintingContractAsset;
|
|
282
|
+
|
|
283
|
+
quantity: number;
|
|
284
|
+
|
|
285
|
+
sortId: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export namespace AuctionItem {
|
|
289
|
+
/**
|
|
290
|
+
* Schema representing a minting contract asset
|
|
291
|
+
*/
|
|
292
|
+
export interface MintingContractAsset {
|
|
293
|
+
id: string;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Schema representing a loyalty currency
|
|
299
|
+
*/
|
|
300
|
+
export interface LoyaltyCurrency {
|
|
301
|
+
id: string;
|
|
302
|
+
|
|
303
|
+
decimals: number;
|
|
304
|
+
|
|
305
|
+
imageUrl: string | null;
|
|
306
|
+
|
|
307
|
+
name: string;
|
|
308
|
+
|
|
309
|
+
symbol: string;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export interface AuctionGetPageSectionsParams {
|
|
315
|
+
/**
|
|
316
|
+
* Unique identifier for the organization to filter by
|
|
317
|
+
*/
|
|
318
|
+
organizationId: string;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Placement of the page section
|
|
322
|
+
*/
|
|
323
|
+
placement: 'global' | 'page';
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Unique identifier for the website to filter by
|
|
327
|
+
*/
|
|
328
|
+
websiteId: string;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Whether to get all sections regardless of duration
|
|
332
|
+
*/
|
|
333
|
+
all?: '1';
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Unique identifier for the page to filter by
|
|
337
|
+
*/
|
|
338
|
+
pageId?: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Type of the page section to filter by
|
|
342
|
+
*/
|
|
343
|
+
pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Unique identifier for the website collection to filter by
|
|
347
|
+
*/
|
|
348
|
+
websiteCollectionId?: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface AuctionListAuctionBidsParams {
|
|
352
|
+
/**
|
|
353
|
+
* The bid ID
|
|
354
|
+
*/
|
|
355
|
+
id?: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* ID of the auction
|
|
359
|
+
*/
|
|
360
|
+
auctionId?: string;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Maximum number of bids to return
|
|
364
|
+
*/
|
|
365
|
+
limit?: number;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* ID of the organization
|
|
369
|
+
*/
|
|
370
|
+
organizationId?: string;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Pagination cursor to start after a specific bid ID
|
|
374
|
+
*/
|
|
375
|
+
startingAfter?: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Status of the bid
|
|
379
|
+
*/
|
|
380
|
+
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* ID of the user who made the bid
|
|
384
|
+
*/
|
|
385
|
+
userId?: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Wallet address of the bidder
|
|
389
|
+
*/
|
|
390
|
+
walletAddress?: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* ID of the website
|
|
394
|
+
*/
|
|
395
|
+
websiteId?: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
Auctions.WebsiteUserAttributes = WebsiteUserAttributes;
|
|
399
|
+
|
|
400
|
+
export declare namespace Auctions {
|
|
401
|
+
export {
|
|
402
|
+
type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse,
|
|
403
|
+
type AuctionListAuctionsResponse as AuctionListAuctionsResponse,
|
|
404
|
+
type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams,
|
|
405
|
+
type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams,
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
export {
|
|
409
|
+
WebsiteUserAttributes as WebsiteUserAttributes,
|
|
410
|
+
type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse,
|
|
411
|
+
type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse,
|
|
412
|
+
type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse,
|
|
413
|
+
type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams,
|
|
414
|
+
type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams,
|
|
415
|
+
type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams,
|
|
416
|
+
};
|
|
417
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Auctions,
|
|
5
|
+
type AuctionGetPageSectionsResponse,
|
|
6
|
+
type AuctionListAuctionsResponse,
|
|
7
|
+
type AuctionGetPageSectionsParams,
|
|
8
|
+
type AuctionListAuctionBidsParams,
|
|
9
|
+
} from './auctions';
|
|
10
|
+
export {
|
|
11
|
+
WebsiteUserAttributes,
|
|
12
|
+
type WebsiteUserAttributeCreateResponse,
|
|
13
|
+
type WebsiteUserAttributeListResponse,
|
|
14
|
+
type WebsiteUserAttributeDeleteResponse,
|
|
15
|
+
type WebsiteUserAttributeCreateParams,
|
|
16
|
+
type WebsiteUserAttributeListParams,
|
|
17
|
+
type WebsiteUserAttributeDeleteParams,
|
|
18
|
+
} from './website-user-attributes/index';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Values,
|
|
5
|
+
type ValueCreateResponse,
|
|
6
|
+
type ValueListResponse,
|
|
7
|
+
type ValueCreateParams,
|
|
8
|
+
type ValueListParams,
|
|
9
|
+
} from './values';
|
|
10
|
+
export {
|
|
11
|
+
WebsiteUserAttributes,
|
|
12
|
+
type WebsiteUserAttributeCreateResponse,
|
|
13
|
+
type WebsiteUserAttributeListResponse,
|
|
14
|
+
type WebsiteUserAttributeDeleteResponse,
|
|
15
|
+
type WebsiteUserAttributeCreateParams,
|
|
16
|
+
type WebsiteUserAttributeListParams,
|
|
17
|
+
type WebsiteUserAttributeDeleteParams,
|
|
18
|
+
} from './website-user-attributes';
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../resource';
|
|
4
|
+
import * as Core from '../../../core';
|
|
5
|
+
|
|
6
|
+
export class Values extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new website user attribute value
|
|
9
|
+
*/
|
|
10
|
+
create(body: ValueCreateParams, options?: Core.RequestOptions): Core.APIPromise<ValueCreateResponse> {
|
|
11
|
+
return this._client.post('/api/website_user_attributes/values', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get all website user attribute values
|
|
16
|
+
*/
|
|
17
|
+
list(query: ValueListParams, options?: Core.RequestOptions): Core.APIPromise<ValueListResponse> {
|
|
18
|
+
return this._client.get('/api/website_user_attributes/values', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ValueCreateResponse = Array<ValueCreateResponse.ValueCreateResponseItem>;
|
|
23
|
+
|
|
24
|
+
export namespace ValueCreateResponse {
|
|
25
|
+
export interface ValueCreateResponseItem {
|
|
26
|
+
id: string;
|
|
27
|
+
|
|
28
|
+
createdAt: string;
|
|
29
|
+
|
|
30
|
+
organizationId: string;
|
|
31
|
+
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
|
|
34
|
+
userId: string;
|
|
35
|
+
|
|
36
|
+
value: string;
|
|
37
|
+
|
|
38
|
+
websiteId: string;
|
|
39
|
+
|
|
40
|
+
websiteUserAttributeId: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ValueListResponse {
|
|
45
|
+
data: Array<ValueListResponse.Data>;
|
|
46
|
+
|
|
47
|
+
hasNextPage: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace ValueListResponse {
|
|
51
|
+
export interface Data {
|
|
52
|
+
id: string;
|
|
53
|
+
|
|
54
|
+
createdAt: string;
|
|
55
|
+
|
|
56
|
+
customFieldId: string;
|
|
57
|
+
|
|
58
|
+
organizationId: string;
|
|
59
|
+
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
|
|
62
|
+
userId: string;
|
|
63
|
+
|
|
64
|
+
value: string;
|
|
65
|
+
|
|
66
|
+
websiteId: string;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ValueCreateParams {
|
|
71
|
+
data: Array<ValueCreateParams.Data>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier for the organization
|
|
75
|
+
*/
|
|
76
|
+
organizationId: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Unique identifier for the website
|
|
80
|
+
*/
|
|
81
|
+
websiteId: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace ValueCreateParams {
|
|
85
|
+
export interface Data {
|
|
86
|
+
/**
|
|
87
|
+
* Unique identifier for the user
|
|
88
|
+
*/
|
|
89
|
+
userId: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Value for the website user attribute
|
|
93
|
+
*/
|
|
94
|
+
value: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Unique identifier for the website user attribute
|
|
98
|
+
*/
|
|
99
|
+
websiteUserAttributeId: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Unique identifier for the website user attribute value
|
|
103
|
+
*/
|
|
104
|
+
id?: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ValueListParams {
|
|
109
|
+
/**
|
|
110
|
+
* Unique identifier for the user
|
|
111
|
+
*/
|
|
112
|
+
userIds: string | Array<string>;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Number of website user attributes to return
|
|
116
|
+
*/
|
|
117
|
+
limit?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Unique identifier for the organization
|
|
121
|
+
*/
|
|
122
|
+
organizationId?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier for the website
|
|
126
|
+
*/
|
|
127
|
+
websiteId?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export declare namespace Values {
|
|
131
|
+
export {
|
|
132
|
+
type ValueCreateResponse as ValueCreateResponse,
|
|
133
|
+
type ValueListResponse as ValueListResponse,
|
|
134
|
+
type ValueCreateParams as ValueCreateParams,
|
|
135
|
+
type ValueListParams as ValueListParams,
|
|
136
|
+
};
|
|
137
|
+
}
|