@snagsolutions/sdk 0.1.0-alpha.21 → 0.1.0-alpha.211

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.
Files changed (273) hide show
  1. package/CHANGELOG.md +1711 -0
  2. package/LICENSE +1 -1
  3. package/README.md +15 -23
  4. package/core.d.ts +19 -5
  5. package/core.d.ts.map +1 -1
  6. package/core.js +24 -17
  7. package/core.js.map +1 -1
  8. package/core.mjs +24 -17
  9. package/core.mjs.map +1 -1
  10. package/index.d.mts +7 -4
  11. package/index.d.ts +7 -4
  12. package/index.d.ts.map +1 -1
  13. package/index.js +8 -4
  14. package/index.js.map +1 -1
  15. package/index.mjs +8 -4
  16. package/index.mjs.map +1 -1
  17. package/package.json +4 -5
  18. package/resource.d.ts +1 -1
  19. package/resource.d.ts.map +1 -1
  20. package/resource.js.map +1 -1
  21. package/resource.mjs.map +1 -1
  22. package/resources/assets.d.ts +16 -2
  23. package/resources/assets.d.ts.map +1 -1
  24. package/resources/assets.js +8 -0
  25. package/resources/assets.js.map +1 -1
  26. package/resources/assets.mjs +8 -0
  27. package/resources/assets.mjs.map +1 -1
  28. package/resources/auctions/auctions.d.ts +368 -0
  29. package/resources/auctions/auctions.d.ts.map +1 -0
  30. package/resources/auctions/auctions.js +72 -0
  31. package/resources/auctions/auctions.js.map +1 -0
  32. package/resources/auctions/auctions.mjs +45 -0
  33. package/resources/auctions/auctions.mjs.map +1 -0
  34. package/resources/auctions/index.d.ts +3 -0
  35. package/resources/auctions/index.d.ts.map +1 -0
  36. package/resources/auctions/index.js +9 -0
  37. package/resources/auctions/index.js.map +1 -0
  38. package/resources/auctions/index.mjs +4 -0
  39. package/resources/auctions/index.mjs.map +1 -0
  40. package/resources/auctions/website-user-attributes/index.d.ts +3 -0
  41. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -0
  42. package/resources/auctions/website-user-attributes/index.js +9 -0
  43. package/resources/auctions/website-user-attributes/index.js.map +1 -0
  44. package/resources/auctions/website-user-attributes/index.mjs +4 -0
  45. package/resources/auctions/website-user-attributes/index.mjs.map +1 -0
  46. package/resources/auctions/website-user-attributes/values.d.ts +126 -0
  47. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -0
  48. package/resources/auctions/website-user-attributes/values.js +49 -0
  49. package/resources/auctions/website-user-attributes/values.js.map +1 -0
  50. package/resources/auctions/website-user-attributes/values.mjs +45 -0
  51. package/resources/auctions/website-user-attributes/values.mjs.map +1 -0
  52. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +136 -0
  53. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -0
  54. package/resources/auctions/website-user-attributes/website-user-attributes.js +76 -0
  55. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -0
  56. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +49 -0
  57. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -0
  58. package/resources/auctions/website-user-attributes.d.ts +2 -0
  59. package/resources/auctions/website-user-attributes.d.ts.map +1 -0
  60. package/resources/auctions/website-user-attributes.js +19 -0
  61. package/resources/auctions/website-user-attributes.js.map +1 -0
  62. package/resources/auctions/website-user-attributes.mjs +3 -0
  63. package/resources/auctions/website-user-attributes.mjs.map +1 -0
  64. package/resources/auctions.d.ts +1 -133
  65. package/resources/auctions.d.ts.map +1 -1
  66. package/resources/auctions.js +15 -22
  67. package/resources/auctions.js.map +1 -1
  68. package/resources/auctions.mjs +1 -20
  69. package/resources/auctions.mjs.map +1 -1
  70. package/resources/auth.d.ts +17 -4
  71. package/resources/auth.d.ts.map +1 -1
  72. package/resources/auth.js.map +1 -1
  73. package/resources/auth.mjs.map +1 -1
  74. package/resources/index.d.ts +2 -2
  75. package/resources/index.d.ts.map +1 -1
  76. package/resources/index.js +1 -1
  77. package/resources/index.js.map +1 -1
  78. package/resources/index.mjs +1 -1
  79. package/resources/index.mjs.map +1 -1
  80. package/resources/loyalty/account-streaks.d.ts +96 -0
  81. package/resources/loyalty/account-streaks.d.ts.map +1 -0
  82. package/resources/loyalty/account-streaks.js +24 -0
  83. package/resources/loyalty/account-streaks.js.map +1 -0
  84. package/resources/loyalty/account-streaks.mjs +20 -0
  85. package/resources/loyalty/account-streaks.mjs.map +1 -0
  86. package/resources/loyalty/accounts.d.ts +60 -16
  87. package/resources/loyalty/accounts.d.ts.map +1 -1
  88. package/resources/loyalty/accounts.js +14 -0
  89. package/resources/loyalty/accounts.js.map +1 -1
  90. package/resources/loyalty/accounts.mjs +14 -0
  91. package/resources/loyalty/accounts.mjs.map +1 -1
  92. package/resources/loyalty/badges.d.ts +666 -135
  93. package/resources/loyalty/badges.d.ts.map +1 -1
  94. package/resources/loyalty/badges.js +19 -1
  95. package/resources/loyalty/badges.js.map +1 -1
  96. package/resources/loyalty/badges.mjs +19 -1
  97. package/resources/loyalty/badges.mjs.map +1 -1
  98. package/resources/loyalty/currencies.d.ts +19 -0
  99. package/resources/loyalty/currencies.d.ts.map +1 -1
  100. package/resources/loyalty/currencies.js +19 -0
  101. package/resources/loyalty/currencies.js.map +1 -1
  102. package/resources/loyalty/currencies.mjs +19 -0
  103. package/resources/loyalty/currencies.mjs.map +1 -1
  104. package/resources/loyalty/index.d.ts +4 -4
  105. package/resources/loyalty/index.d.ts.map +1 -1
  106. package/resources/loyalty/index.js +5 -5
  107. package/resources/loyalty/index.js.map +1 -1
  108. package/resources/loyalty/index.mjs +3 -3
  109. package/resources/loyalty/index.mjs.map +1 -1
  110. package/resources/loyalty/loyalty.d.ts +11 -11
  111. package/resources/loyalty/loyalty.d.ts.map +1 -1
  112. package/resources/loyalty/loyalty.js +6 -6
  113. package/resources/loyalty/loyalty.js.map +1 -1
  114. package/resources/loyalty/loyalty.mjs +7 -7
  115. package/resources/loyalty/loyalty.mjs.map +1 -1
  116. package/resources/loyalty/multipliers.d.ts +39 -2
  117. package/resources/loyalty/multipliers.d.ts.map +1 -1
  118. package/resources/loyalty/multipliers.js +23 -0
  119. package/resources/loyalty/multipliers.js.map +1 -1
  120. package/resources/loyalty/multipliers.mjs +23 -0
  121. package/resources/loyalty/multipliers.mjs.map +1 -1
  122. package/resources/loyalty/questions-responses.d.ts +55 -4
  123. package/resources/loyalty/questions-responses.d.ts.map +1 -1
  124. package/resources/loyalty/questions-responses.js +9 -0
  125. package/resources/loyalty/questions-responses.js.map +1 -1
  126. package/resources/loyalty/questions-responses.mjs +9 -0
  127. package/resources/loyalty/questions-responses.mjs.map +1 -1
  128. package/resources/loyalty/questions.d.ts +60 -6
  129. package/resources/loyalty/questions.d.ts.map +1 -1
  130. package/resources/loyalty/questions.js +39 -0
  131. package/resources/loyalty/questions.js.map +1 -1
  132. package/resources/loyalty/questions.mjs +39 -0
  133. package/resources/loyalty/questions.mjs.map +1 -1
  134. package/resources/loyalty/rule-edits.d.ts +2730 -8
  135. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  136. package/resources/loyalty/rule-edits.js +14 -0
  137. package/resources/loyalty/rule-edits.js.map +1 -1
  138. package/resources/loyalty/rule-edits.mjs +14 -0
  139. package/resources/loyalty/rule-edits.mjs.map +1 -1
  140. package/resources/loyalty/rule-groups.d.ts +302 -62
  141. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  142. package/resources/loyalty/rule-groups.js +38 -2
  143. package/resources/loyalty/rule-groups.js.map +1 -1
  144. package/resources/loyalty/rule-groups.mjs +38 -2
  145. package/resources/loyalty/rule-groups.mjs.map +1 -1
  146. package/resources/loyalty/rules.d.ts +2024 -258
  147. package/resources/loyalty/rules.d.ts.map +1 -1
  148. package/resources/loyalty/rules.js +40 -9
  149. package/resources/loyalty/rules.js.map +1 -1
  150. package/resources/loyalty/rules.mjs +40 -9
  151. package/resources/loyalty/rules.mjs.map +1 -1
  152. package/resources/loyalty/transactions/index.d.ts +3 -0
  153. package/resources/loyalty/transactions/index.d.ts.map +1 -0
  154. package/resources/loyalty/transactions/index.js +9 -0
  155. package/resources/loyalty/transactions/index.js.map +1 -0
  156. package/resources/loyalty/transactions/index.mjs +4 -0
  157. package/resources/loyalty/transactions/index.mjs.map +1 -0
  158. package/resources/loyalty/transactions/rule-statuses.d.ts +120 -0
  159. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -0
  160. package/resources/loyalty/transactions/rule-statuses.js +30 -0
  161. package/resources/loyalty/transactions/rule-statuses.js.map +1 -0
  162. package/resources/loyalty/transactions/rule-statuses.mjs +26 -0
  163. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -0
  164. package/resources/loyalty/transactions/transactions.d.ts +410 -0
  165. package/resources/loyalty/transactions/transactions.d.ts.map +1 -0
  166. package/resources/loyalty/transactions/transactions.js +76 -0
  167. package/resources/loyalty/transactions/transactions.js.map +1 -0
  168. package/resources/loyalty/transactions/transactions.mjs +49 -0
  169. package/resources/loyalty/transactions/transactions.mjs.map +1 -0
  170. package/resources/loyalty/transactions.d.ts +1 -248
  171. package/resources/loyalty/transactions.d.ts.map +1 -1
  172. package/resources/loyalty/transactions.js +15 -18
  173. package/resources/loyalty/transactions.js.map +1 -1
  174. package/resources/loyalty/transactions.mjs +1 -16
  175. package/resources/loyalty/transactions.mjs.map +1 -1
  176. package/resources/minting.d.ts +5 -5
  177. package/resources/minting.d.ts.map +1 -1
  178. package/resources/referral/referral.d.ts +12 -3
  179. package/resources/referral/referral.d.ts.map +1 -1
  180. package/resources/referral/referral.js +11 -5
  181. package/resources/referral/referral.js.map +1 -1
  182. package/resources/referral/referral.mjs +11 -5
  183. package/resources/referral/referral.mjs.map +1 -1
  184. package/resources/referral/users.d.ts +30 -3
  185. package/resources/referral/users.d.ts.map +1 -1
  186. package/resources/referral/users.js +12 -4
  187. package/resources/referral/users.js.map +1 -1
  188. package/resources/referral/users.mjs +12 -4
  189. package/resources/referral/users.mjs.map +1 -1
  190. package/resources/users/index.d.ts +1 -1
  191. package/resources/users/index.d.ts.map +1 -1
  192. package/resources/users/index.js.map +1 -1
  193. package/resources/users/index.mjs.map +1 -1
  194. package/resources/users/metadatas.d.ts +36 -3
  195. package/resources/users/metadatas.d.ts.map +1 -1
  196. package/resources/users/metadatas.js.map +1 -1
  197. package/resources/users/metadatas.mjs.map +1 -1
  198. package/resources/users/users.d.ts +192 -35
  199. package/resources/users/users.d.ts.map +1 -1
  200. package/resources/users/users.js +58 -1
  201. package/resources/users/users.js.map +1 -1
  202. package/resources/users/users.mjs +58 -1
  203. package/resources/users/users.mjs.map +1 -1
  204. package/resources/websites/website-collections.d.ts +22 -1
  205. package/resources/websites/website-collections.d.ts.map +1 -1
  206. package/resources/websites/website-collections.js +21 -0
  207. package/resources/websites/website-collections.js.map +1 -1
  208. package/resources/websites/website-collections.mjs +21 -0
  209. package/resources/websites/website-collections.mjs.map +1 -1
  210. package/resources/websites/website-user-roles.d.ts +24 -1
  211. package/resources/websites/website-user-roles.d.ts.map +1 -1
  212. package/resources/websites/website-user-roles.js +23 -0
  213. package/resources/websites/website-user-roles.js.map +1 -1
  214. package/resources/websites/website-user-roles.mjs +23 -0
  215. package/resources/websites/website-user-roles.mjs.map +1 -1
  216. package/resources/websites/websites.d.ts +12 -0
  217. package/resources/websites/websites.d.ts.map +1 -1
  218. package/resources/websites/websites.js +7 -0
  219. package/resources/websites/websites.js.map +1 -1
  220. package/resources/websites/websites.mjs +7 -0
  221. package/resources/websites/websites.mjs.map +1 -1
  222. package/src/core.ts +39 -16
  223. package/src/index.ts +31 -2
  224. package/src/resource.ts +1 -1
  225. package/src/resources/assets.ts +18 -3
  226. package/src/resources/auctions/auctions.ts +561 -0
  227. package/src/resources/auctions/index.ts +19 -0
  228. package/src/resources/auctions/website-user-attributes/index.ts +18 -0
  229. package/src/resources/auctions/website-user-attributes/values.ts +170 -0
  230. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +212 -0
  231. package/src/resources/auctions/website-user-attributes.ts +3 -0
  232. package/src/resources/auctions.ts +1 -207
  233. package/src/resources/auth.ts +21 -5
  234. package/src/resources/index.ts +12 -1
  235. package/src/resources/loyalty/account-streaks.ts +128 -0
  236. package/src/resources/loyalty/accounts.ts +65 -18
  237. package/src/resources/loyalty/badges.ts +790 -146
  238. package/src/resources/loyalty/currencies.ts +19 -0
  239. package/src/resources/loyalty/index.ts +19 -3
  240. package/src/resources/loyalty/loyalty.ts +39 -15
  241. package/src/resources/loyalty/multipliers.ts +43 -4
  242. package/src/resources/loyalty/questions-responses.ts +64 -4
  243. package/src/resources/loyalty/questions.ts +64 -6
  244. package/src/resources/loyalty/rule-edits.ts +3962 -100
  245. package/src/resources/loyalty/rule-groups.ts +530 -74
  246. package/src/resources/loyalty/rules.ts +3162 -295
  247. package/src/resources/loyalty/transactions/index.ts +18 -0
  248. package/src/resources/loyalty/transactions/rule-statuses.ts +178 -0
  249. package/src/resources/loyalty/transactions/transactions.ts +699 -0
  250. package/src/resources/loyalty/transactions.ts +1 -440
  251. package/src/resources/minting.ts +25 -5
  252. package/src/resources/referral/referral.ts +15 -11
  253. package/src/resources/referral/users.ts +45 -5
  254. package/src/resources/users/index.ts +4 -0
  255. package/src/resources/users/metadatas.ts +61 -3
  256. package/src/resources/users/users.ts +259 -38
  257. package/src/resources/websites/website-collections.ts +42 -1
  258. package/src/resources/websites/website-user-roles.ts +25 -1
  259. package/src/resources/websites/websites.ts +12 -0
  260. package/src/version.ts +1 -1
  261. package/version.d.ts +1 -1
  262. package/version.d.ts.map +1 -1
  263. package/version.js +1 -1
  264. package/version.js.map +1 -1
  265. package/version.mjs +1 -1
  266. package/version.mjs.map +1 -1
  267. package/resources/loyalty/rule-chains.d.ts +0 -34
  268. package/resources/loyalty/rule-chains.d.ts.map +0 -1
  269. package/resources/loyalty/rule-chains.js +0 -15
  270. package/resources/loyalty/rule-chains.js.map +0 -1
  271. package/resources/loyalty/rule-chains.mjs +0 -11
  272. package/resources/loyalty/rule-chains.mjs.map +0 -1
  273. package/src/resources/loyalty/rule-chains.ts +0 -45
@@ -0,0 +1,368 @@
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
+ * Total count of matching bids (only present when includeCount=true)
142
+ */
143
+ count?: number;
144
+ }
145
+ export declare namespace AuctionListAuctionBidsResponse {
146
+ /**
147
+ * Schema for a get auction bids response
148
+ */
149
+ interface Data {
150
+ id: string;
151
+ auction: Data.Auction | null;
152
+ auctionId: string;
153
+ auctionItem: Data.AuctionItem | null;
154
+ auctionItemId: string | null;
155
+ currencyAddress: string | null;
156
+ currencyDecimals: number;
157
+ loyaltyCurrency: Data.LoyaltyCurrency | null;
158
+ status: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
159
+ updatedAt: string;
160
+ user: Data.User;
161
+ amount?: unknown;
162
+ }
163
+ namespace Data {
164
+ interface Auction {
165
+ id: string;
166
+ name: string;
167
+ }
168
+ interface AuctionItem {
169
+ id: string;
170
+ mintingContractAsset: AuctionItem.MintingContractAsset | null;
171
+ quantity: number;
172
+ }
173
+ namespace AuctionItem {
174
+ interface MintingContractAsset {
175
+ id: string;
176
+ isPhygitalItem: boolean;
177
+ revealedAt: string | null;
178
+ tokenId: number | null;
179
+ shippingPrice?: unknown;
180
+ }
181
+ }
182
+ interface LoyaltyCurrency {
183
+ id: string;
184
+ apiAuthKey: string | null;
185
+ apiAuthType: 'none' | 'basic' | 'bearer' | 'apiKey' | null;
186
+ apiAuthValue: string | null;
187
+ apiGetTransactionEntryUrl: string | null;
188
+ apiGetUrl: string | null;
189
+ apiPostUrl: string | null;
190
+ decimals: number;
191
+ imageUrl: string | null;
192
+ name: string;
193
+ symbol: string;
194
+ }
195
+ interface User {
196
+ id: string;
197
+ walletAddress: string;
198
+ }
199
+ }
200
+ }
201
+ /**
202
+ * Schema for the response when fetching auctions
203
+ */
204
+ export interface AuctionListAuctionsResponse {
205
+ data: Array<AuctionListAuctionsResponse.Data>;
206
+ hasNextPage: boolean;
207
+ }
208
+ export declare namespace AuctionListAuctionsResponse {
209
+ interface Data {
210
+ id: string;
211
+ auctionBids: Array<Data.AuctionBid>;
212
+ auctionItems: Array<Data.AuctionItem>;
213
+ biddersOwnCollectionAddresses: Array<string>;
214
+ createdAt: string;
215
+ currencyAddress: string | null;
216
+ currencyDecimals: number;
217
+ deletedAt: string | null;
218
+ description: string;
219
+ endsAt: string;
220
+ extendedDurationInSeconds: number | null;
221
+ hideBids: boolean;
222
+ /**
223
+ * Schema representing a loyalty currency
224
+ */
225
+ loyaltyCurrency: Data.LoyaltyCurrency | null;
226
+ loyaltyCurrencyId: string | null;
227
+ minBidAmount: string;
228
+ minBidIncrement: string | null;
229
+ mintingContractId: string;
230
+ name: string;
231
+ network: 'ethereum' | 'zksync';
232
+ organizationId: string;
233
+ reservePrice: string | null;
234
+ signature: string;
235
+ startsAt: string;
236
+ status: 'in_progress' | 'completed' | 'cancelled';
237
+ type: 'first_price' | 'second_price' | 'english';
238
+ updatedAt: string;
239
+ userId: string;
240
+ websiteId: string;
241
+ }
242
+ namespace Data {
243
+ /**
244
+ * Schema representing an auction bid
245
+ */
246
+ interface AuctionBid {
247
+ id: string;
248
+ amount: string;
249
+ createdAt: string;
250
+ }
251
+ interface AuctionItem {
252
+ id: string;
253
+ /**
254
+ * Schema representing a minting contract asset
255
+ */
256
+ mintingContractAsset: AuctionItem.MintingContractAsset;
257
+ quantity: number;
258
+ sortId: number;
259
+ }
260
+ namespace AuctionItem {
261
+ /**
262
+ * Schema representing a minting contract asset
263
+ */
264
+ interface MintingContractAsset {
265
+ id: string;
266
+ }
267
+ }
268
+ /**
269
+ * Schema representing a loyalty currency
270
+ */
271
+ interface LoyaltyCurrency {
272
+ id: string;
273
+ decimals: number;
274
+ imageUrl: string | null;
275
+ name: string;
276
+ symbol: string;
277
+ }
278
+ }
279
+ }
280
+ export interface AuctionGetPageSectionsParams {
281
+ /**
282
+ * Unique identifier for the organization to filter by
283
+ */
284
+ organizationId: string;
285
+ /**
286
+ * Placement of the page section
287
+ */
288
+ placement: 'global' | 'page';
289
+ /**
290
+ * Unique identifier for the website to filter by
291
+ */
292
+ websiteId: string;
293
+ /**
294
+ * Whether to get all sections regardless of duration
295
+ */
296
+ all?: '1';
297
+ /**
298
+ * Unique identifier for the page to filter by
299
+ */
300
+ pageId?: string;
301
+ /**
302
+ * Type of the page section to filter by
303
+ */
304
+ pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
305
+ /**
306
+ * Unique identifier for the website collection to filter by
307
+ */
308
+ websiteCollectionId?: string;
309
+ }
310
+ export interface AuctionListAuctionBidsParams {
311
+ /**
312
+ * The bid ID(s) - accepts a single ID or an array of IDs
313
+ */
314
+ id?: string | Array<string> | unknown;
315
+ /**
316
+ * ID of the auction
317
+ */
318
+ auctionId?: string;
319
+ /**
320
+ * Include total count of matching bids in response
321
+ */
322
+ includeCount?: boolean | null;
323
+ /**
324
+ * Maximum number of bids to return
325
+ */
326
+ limit?: number;
327
+ /**
328
+ * Order bids by amount (ascending or descending). Defaults to desc.
329
+ */
330
+ orderBy?: 'asc' | 'desc';
331
+ /**
332
+ * ID of the organization
333
+ */
334
+ organizationId?: string;
335
+ /**
336
+ * Number of bids to skip (for offset-based pagination)
337
+ */
338
+ skip?: number | null;
339
+ /**
340
+ * Pagination cursor to start after a specific bid ID
341
+ */
342
+ startingAfter?: string;
343
+ /**
344
+ * Status of the bid
345
+ */
346
+ status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
347
+ /**
348
+ * Filter by multiple bid statuses (OR condition)
349
+ */
350
+ statuses?: Array<'submitted' | 'accepted' | 'rejected' | 'fulfilled'>;
351
+ /**
352
+ * ID of the user who made the bid
353
+ */
354
+ userId?: string;
355
+ /**
356
+ * Wallet address of the bidder
357
+ */
358
+ walletAddress?: string;
359
+ /**
360
+ * ID of the website
361
+ */
362
+ websiteId?: string;
363
+ }
364
+ export declare namespace Auctions {
365
+ export { type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
366
+ 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, };
367
+ }
368
+ //# 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,4BAA4B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAIlD;;;;;;;OAOG;IACH,eAAe,CACb,KAAK,CAAC,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE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,EAAE,KAAK,CAAC,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;IAEtE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,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;AAmdD,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;AAmdD,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,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Auctions, } from "./auctions.mjs";
3
+ export { WebsiteUserAttributes, } from "./website-user-attributes/index.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -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,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Values, } from "./values.mjs";
3
+ export { WebsiteUserAttributes, } from "./website-user-attributes.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -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"}