@snagsolutions/sdk 0.1.0-alpha.19 → 0.1.0-alpha.190
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 +1544 -0
- package/README.md +13 -23
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +24 -17
- package/core.js.map +1 -1
- package/core.mjs +24 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/index.mjs +8 -4
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/assets.d.ts +16 -2
- package/resources/assets.d.ts.map +1 -1
- package/resources/assets.js +8 -0
- package/resources/assets.js.map +1 -1
- package/resources/assets.mjs +8 -0
- package/resources/assets.mjs.map +1 -1
- package/resources/auctions/auctions.d.ts +343 -0
- package/resources/auctions/auctions.d.ts.map +1 -0
- package/resources/auctions/auctions.js +72 -0
- package/resources/auctions/auctions.js.map +1 -0
- package/resources/auctions/auctions.mjs +45 -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 +126 -0
- package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
- package/resources/auctions/website-user-attributes/values.js +49 -0
- package/resources/auctions/website-user-attributes/values.js.map +1 -0
- package/resources/auctions/website-user-attributes/values.mjs +45 -0
- package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -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 +76 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
- package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -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/auth.d.ts +17 -4
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.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/account-streaks.d.ts +81 -0
- package/resources/loyalty/account-streaks.d.ts.map +1 -0
- package/resources/loyalty/account-streaks.js +24 -0
- package/resources/loyalty/account-streaks.js.map +1 -0
- package/resources/loyalty/account-streaks.mjs +20 -0
- package/resources/loyalty/account-streaks.mjs.map +1 -0
- package/resources/loyalty/accounts.d.ts +60 -16
- package/resources/loyalty/accounts.d.ts.map +1 -1
- package/resources/loyalty/accounts.js +14 -0
- package/resources/loyalty/accounts.js.map +1 -1
- package/resources/loyalty/accounts.mjs +14 -0
- package/resources/loyalty/accounts.mjs.map +1 -1
- package/resources/loyalty/badges.d.ts +666 -135
- package/resources/loyalty/badges.d.ts.map +1 -1
- package/resources/loyalty/badges.js +19 -1
- package/resources/loyalty/badges.js.map +1 -1
- package/resources/loyalty/badges.mjs +19 -1
- package/resources/loyalty/badges.mjs.map +1 -1
- package/resources/loyalty/currencies.d.ts +19 -0
- package/resources/loyalty/currencies.d.ts.map +1 -1
- package/resources/loyalty/currencies.js +19 -0
- package/resources/loyalty/currencies.js.map +1 -1
- package/resources/loyalty/currencies.mjs +19 -0
- package/resources/loyalty/currencies.mjs.map +1 -1
- package/resources/loyalty/index.d.ts +4 -4
- package/resources/loyalty/index.d.ts.map +1 -1
- package/resources/loyalty/index.js +5 -5
- package/resources/loyalty/index.js.map +1 -1
- package/resources/loyalty/index.mjs +3 -3
- package/resources/loyalty/index.mjs.map +1 -1
- package/resources/loyalty/loyalty.d.ts +11 -11
- package/resources/loyalty/loyalty.d.ts.map +1 -1
- package/resources/loyalty/loyalty.js +6 -6
- package/resources/loyalty/loyalty.js.map +1 -1
- package/resources/loyalty/loyalty.mjs +7 -7
- package/resources/loyalty/loyalty.mjs.map +1 -1
- package/resources/loyalty/multipliers.d.ts +39 -2
- package/resources/loyalty/multipliers.d.ts.map +1 -1
- package/resources/loyalty/multipliers.js +23 -0
- package/resources/loyalty/multipliers.js.map +1 -1
- package/resources/loyalty/multipliers.mjs +23 -0
- package/resources/loyalty/multipliers.mjs.map +1 -1
- package/resources/loyalty/questions-responses.d.ts +55 -4
- package/resources/loyalty/questions-responses.d.ts.map +1 -1
- package/resources/loyalty/questions-responses.js +9 -0
- package/resources/loyalty/questions-responses.js.map +1 -1
- package/resources/loyalty/questions-responses.mjs +9 -0
- package/resources/loyalty/questions-responses.mjs.map +1 -1
- package/resources/loyalty/questions.d.ts +52 -6
- package/resources/loyalty/questions.d.ts.map +1 -1
- package/resources/loyalty/questions.js +31 -0
- package/resources/loyalty/questions.js.map +1 -1
- package/resources/loyalty/questions.mjs +31 -0
- package/resources/loyalty/questions.mjs.map +1 -1
- package/resources/loyalty/rule-edits.d.ts +2630 -8
- package/resources/loyalty/rule-edits.d.ts.map +1 -1
- package/resources/loyalty/rule-edits.js +14 -0
- package/resources/loyalty/rule-edits.js.map +1 -1
- package/resources/loyalty/rule-edits.mjs +14 -0
- package/resources/loyalty/rule-edits.mjs.map +1 -1
- package/resources/loyalty/rule-groups.d.ts +279 -64
- package/resources/loyalty/rule-groups.d.ts.map +1 -1
- package/resources/loyalty/rule-groups.js +38 -2
- package/resources/loyalty/rule-groups.js.map +1 -1
- package/resources/loyalty/rule-groups.mjs +38 -2
- package/resources/loyalty/rule-groups.mjs.map +1 -1
- package/resources/loyalty/rules.d.ts +1902 -269
- package/resources/loyalty/rules.d.ts.map +1 -1
- package/resources/loyalty/rules.js +40 -9
- package/resources/loyalty/rules.js.map +1 -1
- package/resources/loyalty/rules.mjs +40 -9
- 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 +120 -0
- package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.js +30 -0
- package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
- package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
- package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
- package/resources/loyalty/transactions/transactions.d.ts +410 -0
- package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
- package/resources/loyalty/transactions/transactions.js +76 -0
- package/resources/loyalty/transactions/transactions.js.map +1 -0
- package/resources/loyalty/transactions/transactions.mjs +49 -0
- package/resources/loyalty/transactions/transactions.mjs.map +1 -0
- package/resources/loyalty/transactions.d.ts +1 -248
- 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/minting.d.ts +5 -5
- package/resources/minting.d.ts.map +1 -1
- package/resources/referral/referral.d.ts +11 -3
- package/resources/referral/referral.d.ts.map +1 -1
- package/resources/referral/referral.js +11 -5
- package/resources/referral/referral.js.map +1 -1
- package/resources/referral/referral.mjs +11 -5
- package/resources/referral/referral.mjs.map +1 -1
- package/resources/referral/users.d.ts +29 -3
- package/resources/referral/users.d.ts.map +1 -1
- package/resources/referral/users.js +12 -4
- package/resources/referral/users.js.map +1 -1
- package/resources/referral/users.mjs +12 -4
- package/resources/referral/users.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/metadatas.d.ts +34 -3
- package/resources/users/metadatas.d.ts.map +1 -1
- package/resources/users/metadatas.js.map +1 -1
- package/resources/users/metadatas.mjs.map +1 -1
- package/resources/users/users.d.ts +184 -35
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +58 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +58 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/websites/website-collections.d.ts +22 -1
- package/resources/websites/website-collections.d.ts.map +1 -1
- package/resources/websites/website-collections.js +21 -0
- package/resources/websites/website-collections.js.map +1 -1
- package/resources/websites/website-collections.mjs +21 -0
- package/resources/websites/website-collections.mjs.map +1 -1
- package/resources/websites/website-user-roles.d.ts +24 -1
- package/resources/websites/website-user-roles.d.ts.map +1 -1
- package/resources/websites/website-user-roles.js +23 -0
- package/resources/websites/website-user-roles.js.map +1 -1
- package/resources/websites/website-user-roles.mjs +23 -0
- package/resources/websites/website-user-roles.mjs.map +1 -1
- package/resources/websites/websites.d.ts +12 -0
- package/resources/websites/websites.d.ts.map +1 -1
- package/resources/websites/websites.js +7 -0
- package/resources/websites/websites.js.map +1 -1
- package/resources/websites/websites.mjs +7 -0
- package/resources/websites/websites.mjs.map +1 -1
- package/src/core.ts +39 -16
- package/src/index.ts +31 -2
- package/src/resource.ts +1 -1
- package/src/resources/assets.ts +18 -3
- package/src/resources/auctions/auctions.ts +528 -0
- package/src/resources/auctions/index.ts +19 -0
- package/src/resources/auctions/website-user-attributes/index.ts +18 -0
- package/src/resources/auctions/website-user-attributes/values.ts +170 -0
- package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
- package/src/resources/auctions/website-user-attributes.ts +3 -0
- package/src/resources/auctions.ts +1 -207
- package/src/resources/auth.ts +21 -5
- package/src/resources/index.ts +12 -1
- package/src/resources/loyalty/account-streaks.ts +110 -0
- package/src/resources/loyalty/accounts.ts +65 -18
- package/src/resources/loyalty/badges.ts +790 -146
- package/src/resources/loyalty/currencies.ts +19 -0
- package/src/resources/loyalty/index.ts +19 -3
- package/src/resources/loyalty/loyalty.ts +39 -15
- package/src/resources/loyalty/multipliers.ts +43 -4
- package/src/resources/loyalty/questions-responses.ts +64 -4
- package/src/resources/loyalty/questions.ts +56 -6
- package/src/resources/loyalty/rule-edits.ts +3822 -100
- package/src/resources/loyalty/rule-groups.ts +489 -76
- package/src/resources/loyalty/rules.ts +2968 -310
- package/src/resources/loyalty/transactions/index.ts +18 -0
- package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
- package/src/resources/loyalty/transactions/transactions.ts +683 -0
- package/src/resources/loyalty/transactions.ts +1 -440
- package/src/resources/minting.ts +24 -5
- package/src/resources/referral/referral.ts +13 -11
- package/src/resources/referral/users.ts +43 -5
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/metadatas.ts +57 -3
- package/src/resources/users/users.ts +249 -38
- package/src/resources/websites/website-collections.ts +41 -1
- package/src/resources/websites/website-user-roles.ts +25 -1
- package/src/resources/websites/websites.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/loyalty/rule-chains.d.ts +0 -34
- package/resources/loyalty/rule-chains.d.ts.map +0 -1
- package/resources/loyalty/rule-chains.js +0 -15
- package/resources/loyalty/rule-chains.js.map +0 -1
- package/resources/loyalty/rule-chains.mjs +0 -11
- package/resources/loyalty/rule-chains.mjs.map +0 -1
- package/src/resources/loyalty/rule-chains.ts +0 -45
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as WebsiteUserAttributesAPI from "./website-user-attributes/website-user-attributes.js";
|
|
4
|
+
import { WebsiteUserAttributeCreateParams, WebsiteUserAttributeCreateResponse, WebsiteUserAttributeDeleteParams, WebsiteUserAttributeDeleteResponse, WebsiteUserAttributeListParams, WebsiteUserAttributeListResponse, WebsiteUserAttributes } from "./website-user-attributes/website-user-attributes.js";
|
|
5
|
+
export declare class Auctions extends APIResource {
|
|
6
|
+
websiteUserAttributes: WebsiteUserAttributesAPI.WebsiteUserAttributes;
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint allows you to fetch page sections
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const response = await client.auctions.getPageSections({
|
|
13
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174334',
|
|
14
|
+
* placement: 'page',
|
|
15
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174333',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
getPageSections(query: AuctionGetPageSectionsParams, options?: Core.RequestOptions): Core.APIPromise<AuctionGetPageSectionsResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns a list of auction bids with optional filtering and pagination.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response = await client.auctions.listAuctionBids();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
listAuctionBids(query?: AuctionListAuctionBidsParams, options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionBidsResponse>;
|
|
29
|
+
listAuctionBids(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionBidsResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.auctions.listAuctions();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
listAuctions(options?: Core.RequestOptions): Core.APIPromise<AuctionListAuctionsResponse>;
|
|
39
|
+
}
|
|
40
|
+
export interface AuctionGetPageSectionsResponse {
|
|
41
|
+
/**
|
|
42
|
+
* Unique identifier for the page section
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
/**
|
|
46
|
+
* Start time of the page section visibility
|
|
47
|
+
*/
|
|
48
|
+
durationStart: string;
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier for the organization
|
|
51
|
+
*/
|
|
52
|
+
organizationId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Placement of the page section
|
|
55
|
+
*/
|
|
56
|
+
placement: 'global' | 'page';
|
|
57
|
+
/**
|
|
58
|
+
* Unique identifier for the website
|
|
59
|
+
*/
|
|
60
|
+
websiteId: string;
|
|
61
|
+
banner?: AuctionGetPageSectionsResponse.Banner | null;
|
|
62
|
+
discoveryItems?: Array<AuctionGetPageSectionsResponse.DiscoveryItem>;
|
|
63
|
+
/**
|
|
64
|
+
* End time of the page section visibility
|
|
65
|
+
*/
|
|
66
|
+
durationEnd?: string | null;
|
|
67
|
+
itemsGrids?: Array<AuctionGetPageSectionsResponse.ItemsGrid>;
|
|
68
|
+
/**
|
|
69
|
+
* ID of the page this section belongs to
|
|
70
|
+
*/
|
|
71
|
+
pageId?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Type of the page section
|
|
74
|
+
*/
|
|
75
|
+
pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
|
|
76
|
+
/**
|
|
77
|
+
* Order of the page section
|
|
78
|
+
*/
|
|
79
|
+
sortId?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Title of the page section
|
|
82
|
+
*/
|
|
83
|
+
title?: string | null;
|
|
84
|
+
}
|
|
85
|
+
export declare namespace AuctionGetPageSectionsResponse {
|
|
86
|
+
interface Banner {
|
|
87
|
+
id: string;
|
|
88
|
+
websiteCollectionBanners: Array<Banner.WebsiteCollectionBanner>;
|
|
89
|
+
carousel?: Banner.Carousel | null;
|
|
90
|
+
}
|
|
91
|
+
namespace Banner {
|
|
92
|
+
interface WebsiteCollectionBanner {
|
|
93
|
+
id: string;
|
|
94
|
+
websiteCollectionId: string;
|
|
95
|
+
}
|
|
96
|
+
interface Carousel {
|
|
97
|
+
id: string;
|
|
98
|
+
carouselItems: Array<Carousel.CarouselItem>;
|
|
99
|
+
}
|
|
100
|
+
namespace Carousel {
|
|
101
|
+
interface CarouselItem {
|
|
102
|
+
id: string;
|
|
103
|
+
sortId: number;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
interface DiscoveryItem {
|
|
108
|
+
id: string;
|
|
109
|
+
title: string;
|
|
110
|
+
buttonText?: string | null;
|
|
111
|
+
description?: string | null;
|
|
112
|
+
externalLink?: string | null;
|
|
113
|
+
hideQuestInfo?: boolean;
|
|
114
|
+
layout?: 'container_style' | 'full_width_hero' | null;
|
|
115
|
+
loyaltyRuleGroupId?: string | null;
|
|
116
|
+
loyaltySection?: string | null;
|
|
117
|
+
mediaLink?: string | null;
|
|
118
|
+
pageMediaLink?: string | null;
|
|
119
|
+
sortId?: number;
|
|
120
|
+
twitter?: string | null;
|
|
121
|
+
website?: string | null;
|
|
122
|
+
}
|
|
123
|
+
interface ItemsGrid {
|
|
124
|
+
id: string;
|
|
125
|
+
websiteCollection: ItemsGrid.WebsiteCollection;
|
|
126
|
+
}
|
|
127
|
+
namespace ItemsGrid {
|
|
128
|
+
interface WebsiteCollection {
|
|
129
|
+
id: string;
|
|
130
|
+
mintingContractId?: string | null;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export interface AuctionListAuctionBidsResponse {
|
|
135
|
+
data: Array<AuctionListAuctionBidsResponse.Data>;
|
|
136
|
+
/**
|
|
137
|
+
* Indicates if there is a next page of results
|
|
138
|
+
*/
|
|
139
|
+
hasNextPage: boolean;
|
|
140
|
+
}
|
|
141
|
+
export declare namespace AuctionListAuctionBidsResponse {
|
|
142
|
+
/**
|
|
143
|
+
* Schema for a get auction bids response
|
|
144
|
+
*/
|
|
145
|
+
interface Data {
|
|
146
|
+
id: string;
|
|
147
|
+
auctionId: string;
|
|
148
|
+
auctionItem: Data.AuctionItem | null;
|
|
149
|
+
auctionItemId: string | null;
|
|
150
|
+
currencyAddress: string | null;
|
|
151
|
+
currencyDecimals: number;
|
|
152
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
153
|
+
status: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
user: Data.User;
|
|
156
|
+
amount?: unknown;
|
|
157
|
+
}
|
|
158
|
+
namespace Data {
|
|
159
|
+
interface AuctionItem {
|
|
160
|
+
id: string;
|
|
161
|
+
mintingContractAsset: AuctionItem.MintingContractAsset | null;
|
|
162
|
+
quantity: number;
|
|
163
|
+
}
|
|
164
|
+
namespace AuctionItem {
|
|
165
|
+
interface MintingContractAsset {
|
|
166
|
+
id: string;
|
|
167
|
+
isPhygitalItem: boolean;
|
|
168
|
+
revealedAt: string | null;
|
|
169
|
+
tokenId: number | null;
|
|
170
|
+
shippingPrice?: unknown;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
interface LoyaltyCurrency {
|
|
174
|
+
id: string;
|
|
175
|
+
apiAuthKey: string | null;
|
|
176
|
+
apiAuthType: 'none' | 'basic' | 'bearer' | 'apiKey' | null;
|
|
177
|
+
apiAuthValue: string | null;
|
|
178
|
+
apiGetTransactionEntryUrl: string | null;
|
|
179
|
+
apiGetUrl: string | null;
|
|
180
|
+
apiPostUrl: string | null;
|
|
181
|
+
decimals: number;
|
|
182
|
+
imageUrl: string | null;
|
|
183
|
+
name: string;
|
|
184
|
+
symbol: string;
|
|
185
|
+
}
|
|
186
|
+
interface User {
|
|
187
|
+
id: string;
|
|
188
|
+
walletAddress: string;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Schema for the response when fetching auctions
|
|
194
|
+
*/
|
|
195
|
+
export interface AuctionListAuctionsResponse {
|
|
196
|
+
data: Array<AuctionListAuctionsResponse.Data>;
|
|
197
|
+
hasNextPage: boolean;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace AuctionListAuctionsResponse {
|
|
200
|
+
interface Data {
|
|
201
|
+
id: string;
|
|
202
|
+
auctionBids: Array<Data.AuctionBid>;
|
|
203
|
+
auctionItems: Array<Data.AuctionItem>;
|
|
204
|
+
biddersOwnCollectionAddresses: Array<string>;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
currencyAddress: string | null;
|
|
207
|
+
currencyDecimals: number;
|
|
208
|
+
deletedAt: string | null;
|
|
209
|
+
description: string;
|
|
210
|
+
endsAt: string;
|
|
211
|
+
extendedDurationInSeconds: number | null;
|
|
212
|
+
hideBids: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Schema representing a loyalty currency
|
|
215
|
+
*/
|
|
216
|
+
loyaltyCurrency: Data.LoyaltyCurrency | null;
|
|
217
|
+
loyaltyCurrencyId: string | null;
|
|
218
|
+
minBidAmount: string;
|
|
219
|
+
minBidIncrement: string | null;
|
|
220
|
+
mintingContractId: string;
|
|
221
|
+
name: string;
|
|
222
|
+
network: 'ethereum' | 'zksync';
|
|
223
|
+
organizationId: string;
|
|
224
|
+
reservePrice: string | null;
|
|
225
|
+
signature: string;
|
|
226
|
+
startsAt: string;
|
|
227
|
+
status: 'in_progress' | 'completed' | 'cancelled';
|
|
228
|
+
type: 'first_price' | 'second_price' | 'english';
|
|
229
|
+
updatedAt: string;
|
|
230
|
+
userId: string;
|
|
231
|
+
websiteId: string;
|
|
232
|
+
}
|
|
233
|
+
namespace Data {
|
|
234
|
+
/**
|
|
235
|
+
* Schema representing an auction bid
|
|
236
|
+
*/
|
|
237
|
+
interface AuctionBid {
|
|
238
|
+
id: string;
|
|
239
|
+
amount: string;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
}
|
|
242
|
+
interface AuctionItem {
|
|
243
|
+
id: string;
|
|
244
|
+
/**
|
|
245
|
+
* Schema representing a minting contract asset
|
|
246
|
+
*/
|
|
247
|
+
mintingContractAsset: AuctionItem.MintingContractAsset;
|
|
248
|
+
quantity: number;
|
|
249
|
+
sortId: number;
|
|
250
|
+
}
|
|
251
|
+
namespace AuctionItem {
|
|
252
|
+
/**
|
|
253
|
+
* Schema representing a minting contract asset
|
|
254
|
+
*/
|
|
255
|
+
interface MintingContractAsset {
|
|
256
|
+
id: string;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Schema representing a loyalty currency
|
|
261
|
+
*/
|
|
262
|
+
interface LoyaltyCurrency {
|
|
263
|
+
id: string;
|
|
264
|
+
decimals: number;
|
|
265
|
+
imageUrl: string | null;
|
|
266
|
+
name: string;
|
|
267
|
+
symbol: string;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
export interface AuctionGetPageSectionsParams {
|
|
272
|
+
/**
|
|
273
|
+
* Unique identifier for the organization to filter by
|
|
274
|
+
*/
|
|
275
|
+
organizationId: string;
|
|
276
|
+
/**
|
|
277
|
+
* Placement of the page section
|
|
278
|
+
*/
|
|
279
|
+
placement: 'global' | 'page';
|
|
280
|
+
/**
|
|
281
|
+
* Unique identifier for the website to filter by
|
|
282
|
+
*/
|
|
283
|
+
websiteId: string;
|
|
284
|
+
/**
|
|
285
|
+
* Whether to get all sections regardless of duration
|
|
286
|
+
*/
|
|
287
|
+
all?: '1';
|
|
288
|
+
/**
|
|
289
|
+
* Unique identifier for the page to filter by
|
|
290
|
+
*/
|
|
291
|
+
pageId?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Type of the page section to filter by
|
|
294
|
+
*/
|
|
295
|
+
pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
|
|
296
|
+
/**
|
|
297
|
+
* Unique identifier for the website collection to filter by
|
|
298
|
+
*/
|
|
299
|
+
websiteCollectionId?: string;
|
|
300
|
+
}
|
|
301
|
+
export interface AuctionListAuctionBidsParams {
|
|
302
|
+
/**
|
|
303
|
+
* The bid ID
|
|
304
|
+
*/
|
|
305
|
+
id?: string;
|
|
306
|
+
/**
|
|
307
|
+
* ID of the auction
|
|
308
|
+
*/
|
|
309
|
+
auctionId?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Maximum number of bids to return
|
|
312
|
+
*/
|
|
313
|
+
limit?: number;
|
|
314
|
+
/**
|
|
315
|
+
* ID of the organization
|
|
316
|
+
*/
|
|
317
|
+
organizationId?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Pagination cursor to start after a specific bid ID
|
|
320
|
+
*/
|
|
321
|
+
startingAfter?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Status of the bid
|
|
324
|
+
*/
|
|
325
|
+
status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
|
|
326
|
+
/**
|
|
327
|
+
* ID of the user who made the bid
|
|
328
|
+
*/
|
|
329
|
+
userId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Wallet address of the bidder
|
|
332
|
+
*/
|
|
333
|
+
walletAddress?: string;
|
|
334
|
+
/**
|
|
335
|
+
* ID of the website
|
|
336
|
+
*/
|
|
337
|
+
websiteId?: string;
|
|
338
|
+
}
|
|
339
|
+
export declare namespace Auctions {
|
|
340
|
+
export { type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
|
|
341
|
+
export { WebsiteUserAttributes as WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams, };
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=auctions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.d.ts","sourceRoot":"","sources":["../../src/resources/auctions/auctions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,wBAAwB,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,gCAAgC,EAChC,kCAAkC,EAClC,8BAA8B,EAC9B,gCAAgC,EAChC,qBAAqB,EACtB,MAAM,mDAAmD,CAAC;AAE3D,qBAAa,QAAS,SAAQ,WAAW;IACvC,qBAAqB,EAAE,wBAAwB,CAAC,qBAAqB,CACF;IAEnE;;;;;;;;;;;OAWG;IACH,eAAe,CACb,KAAK,EAAE,4BAA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I,8BAA8B,EACrE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Auctions = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const core_1 = require("../../core.js");
|
|
30
|
+
const WebsiteUserAttributesAPI = __importStar(require("./website-user-attributes/website-user-attributes.js"));
|
|
31
|
+
const website_user_attributes_1 = require("./website-user-attributes/website-user-attributes.js");
|
|
32
|
+
class Auctions extends resource_1.APIResource {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
this.websiteUserAttributes = new WebsiteUserAttributesAPI.WebsiteUserAttributes(this._client);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* This endpoint allows you to fetch page sections
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.auctions.getPageSections({
|
|
43
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174334',
|
|
44
|
+
* placement: 'page',
|
|
45
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174333',
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
getPageSections(query, options) {
|
|
50
|
+
return this._client.get('/api/page_sections', { query, ...options });
|
|
51
|
+
}
|
|
52
|
+
listAuctionBids(query = {}, options) {
|
|
53
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
54
|
+
return this.listAuctionBids({}, query);
|
|
55
|
+
}
|
|
56
|
+
return this._client.get('/api/auction_bids', { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response = await client.auctions.listAuctions();
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
listAuctions(options) {
|
|
67
|
+
return this._client.get('/api/auctions', options);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Auctions = Auctions;
|
|
71
|
+
Auctions.WebsiteUserAttributes = website_user_attributes_1.WebsiteUserAttributes;
|
|
72
|
+
//# sourceMappingURL=auctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.js","sourceRoot":"","sources":["../../src/resources/auctions/auctions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,+GAA8F;AAC9F,kGAQ2D;AAE3D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuDrE,CAAC;IArDC;;;;;;;;;;;OAWG;IACH,eAAe,CACb,KAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAeD,eAAe,CACb,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAzDD,4BAyDC;AAkbD,QAAQ,CAAC,qBAAqB,GAAG,+CAAqB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
import * as WebsiteUserAttributesAPI from "./website-user-attributes/website-user-attributes.mjs";
|
|
5
|
+
import { WebsiteUserAttributes, } from "./website-user-attributes/website-user-attributes.mjs";
|
|
6
|
+
export class Auctions extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.websiteUserAttributes = new WebsiteUserAttributesAPI.WebsiteUserAttributes(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint allows you to fetch page sections
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.auctions.getPageSections({
|
|
17
|
+
* organizationId: '123e4567-e89b-12d3-a456-426614174334',
|
|
18
|
+
* placement: 'page',
|
|
19
|
+
* websiteId: '123e4567-e89b-12d3-a456-426614174333',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
getPageSections(query, options) {
|
|
24
|
+
return this._client.get('/api/page_sections', { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
listAuctionBids(query = {}, options) {
|
|
27
|
+
if (isRequestOptions(query)) {
|
|
28
|
+
return this.listAuctionBids({}, query);
|
|
29
|
+
}
|
|
30
|
+
return this._client.get('/api/auction_bids', { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns a list of auctions with optional filtering and pagination.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.auctions.listAuctions();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
listAuctions(options) {
|
|
41
|
+
return this._client.get('/api/auctions', options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
Auctions.WebsiteUserAttributes = WebsiteUserAttributes;
|
|
45
|
+
//# sourceMappingURL=auctions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auctions.mjs","sourceRoot":"","sources":["../../src/resources/auctions/auctions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,wBAAwB;OAC7B,EAOL,qBAAqB,GACtB;AAED,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuDrE,CAAC;IArDC;;;;;;;;;;;OAWG;IACH,eAAe,CACb,KAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAeD,eAAe,CACb,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,OAA6B;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAkbD,QAAQ,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Auctions, type AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse, type AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams, } from "./auctions.js";
|
|
2
|
+
export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes/index.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,GAClC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WebsiteUserAttributes = exports.Auctions = void 0;
|
|
5
|
+
var auctions_1 = require("./auctions.js");
|
|
6
|
+
Object.defineProperty(exports, "Auctions", { enumerable: true, get: function () { return auctions_1.Auctions; } });
|
|
7
|
+
var index_1 = require("./website-user-attributes/index.js");
|
|
8
|
+
Object.defineProperty(exports, "WebsiteUserAttributes", { enumerable: true, get: function () { return index_1.WebsiteUserAttributes; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,4DAQyC;AAPvC,8GAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAMT;OACM,EACL,qBAAqB,GAOtB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Values, type ValueCreateResponse, type ValueListResponse, type ValueCreateParams, type ValueListParams, } from "./values.js";
|
|
2
|
+
export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WebsiteUserAttributes = exports.Values = void 0;
|
|
5
|
+
var values_1 = require("./values.js");
|
|
6
|
+
Object.defineProperty(exports, "Values", { enumerable: true, get: function () { return values_1.Values; } });
|
|
7
|
+
var website_user_attributes_1 = require("./website-user-attributes.js");
|
|
8
|
+
Object.defineProperty(exports, "WebsiteUserAttributes", { enumerable: true, get: function () { return website_user_attributes_1.WebsiteUserAttributes; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,wEAQmC;AAPjC,gIAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EACL,qBAAqB,GAOtB"}
|