@stapel/listings-react 0.1.0

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 (225) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/MODULE.md +191 -0
  3. package/README.md +169 -0
  4. package/dist/api/generated/schema.d.ts +1253 -0
  5. package/dist/api/generated/schema.d.ts.map +1 -0
  6. package/dist/api/generated/schema.js +2 -0
  7. package/dist/api/generated/schema.js.map +1 -0
  8. package/dist/api/listingsApi.d.ts +145 -0
  9. package/dist/api/listingsApi.d.ts.map +1 -0
  10. package/dist/api/listingsApi.js +38 -0
  11. package/dist/api/listingsApi.js.map +1 -0
  12. package/dist/api/types.d.ts +156 -0
  13. package/dist/api/types.d.ts.map +1 -0
  14. package/dist/api/types.js +37 -0
  15. package/dist/api/types.js.map +1 -0
  16. package/dist/default/ErrorAlert.d.ts +9 -0
  17. package/dist/default/ErrorAlert.d.ts.map +1 -0
  18. package/dist/default/ErrorAlert.js +27 -0
  19. package/dist/default/ErrorAlert.js.map +1 -0
  20. package/dist/default/FavoritesPane.d.ts +18 -0
  21. package/dist/default/FavoritesPane.d.ts.map +1 -0
  22. package/dist/default/FavoritesPane.js +28 -0
  23. package/dist/default/FavoritesPane.js.map +1 -0
  24. package/dist/default/ListingCard.d.ts +42 -0
  25. package/dist/default/ListingCard.d.ts.map +1 -0
  26. package/dist/default/ListingCard.js +37 -0
  27. package/dist/default/ListingCard.js.map +1 -0
  28. package/dist/default/ListingComposerPage.d.ts +46 -0
  29. package/dist/default/ListingComposerPage.d.ts.map +1 -0
  30. package/dist/default/ListingComposerPage.js +99 -0
  31. package/dist/default/ListingComposerPage.js.map +1 -0
  32. package/dist/default/ListingDetailPane.d.ts +33 -0
  33. package/dist/default/ListingDetailPane.d.ts.map +1 -0
  34. package/dist/default/ListingDetailPane.js +48 -0
  35. package/dist/default/ListingDetailPane.js.map +1 -0
  36. package/dist/default/ListingPhoto.d.ts +25 -0
  37. package/dist/default/ListingPhoto.d.ts.map +1 -0
  38. package/dist/default/ListingPhoto.js +20 -0
  39. package/dist/default/ListingPhoto.js.map +1 -0
  40. package/dist/default/MyListingsPane.d.ts +25 -0
  41. package/dist/default/MyListingsPane.d.ts.map +1 -0
  42. package/dist/default/MyListingsPane.js +84 -0
  43. package/dist/default/MyListingsPane.js.map +1 -0
  44. package/dist/default/StatusTags.d.ts +31 -0
  45. package/dist/default/StatusTags.d.ts.map +1 -0
  46. package/dist/default/StatusTags.js +40 -0
  47. package/dist/default/StatusTags.js.map +1 -0
  48. package/dist/default/icons.d.ts +16 -0
  49. package/dist/default/icons.d.ts.map +1 -0
  50. package/dist/default/icons.js +5 -0
  51. package/dist/default/icons.js.map +1 -0
  52. package/dist/default/index.d.ts +35 -0
  53. package/dist/default/index.d.ts.map +1 -0
  54. package/dist/default/index.js +26 -0
  55. package/dist/default/index.js.map +1 -0
  56. package/dist/default/theme.d.ts +25 -0
  57. package/dist/default/theme.d.ts.map +1 -0
  58. package/dist/default/theme.js +40 -0
  59. package/dist/default/theme.js.map +1 -0
  60. package/dist/default/types.d.ts +12 -0
  61. package/dist/default/types.d.ts.map +1 -0
  62. package/dist/default/types.js +2 -0
  63. package/dist/default/types.js.map +1 -0
  64. package/dist/flows/registry.d.ts +35 -0
  65. package/dist/flows/registry.d.ts.map +1 -0
  66. package/dist/flows/registry.js +33 -0
  67. package/dist/flows/registry.js.map +1 -0
  68. package/dist/headless/Favorites.d.ts +52 -0
  69. package/dist/headless/Favorites.d.ts.map +1 -0
  70. package/dist/headless/Favorites.js +78 -0
  71. package/dist/headless/Favorites.js.map +1 -0
  72. package/dist/headless/ListingActions.d.ts +30 -0
  73. package/dist/headless/ListingActions.d.ts.map +1 -0
  74. package/dist/headless/ListingActions.js +54 -0
  75. package/dist/headless/ListingActions.js.map +1 -0
  76. package/dist/headless/ListingComposer.d.ts +133 -0
  77. package/dist/headless/ListingComposer.d.ts.map +1 -0
  78. package/dist/headless/ListingComposer.js +246 -0
  79. package/dist/headless/ListingComposer.js.map +1 -0
  80. package/dist/headless/ListingDetail.d.ts +81 -0
  81. package/dist/headless/ListingDetail.d.ts.map +1 -0
  82. package/dist/headless/ListingDetail.js +101 -0
  83. package/dist/headless/ListingDetail.js.map +1 -0
  84. package/dist/headless/ListingsProvider.d.ts +17 -0
  85. package/dist/headless/ListingsProvider.d.ts.map +1 -0
  86. package/dist/headless/ListingsProvider.js +16 -0
  87. package/dist/headless/ListingsProvider.js.map +1 -0
  88. package/dist/headless/MyListings.d.ts +44 -0
  89. package/dist/headless/MyListings.d.ts.map +1 -0
  90. package/dist/headless/MyListings.js +82 -0
  91. package/dist/headless/MyListings.js.map +1 -0
  92. package/dist/headless/useMandateGate.d.ts +28 -0
  93. package/dist/headless/useMandateGate.d.ts.map +1 -0
  94. package/dist/headless/useMandateGate.js +39 -0
  95. package/dist/headless/useMandateGate.js.map +1 -0
  96. package/dist/i18n/errorsMap.d.ts +34 -0
  97. package/dist/i18n/errorsMap.d.ts.map +1 -0
  98. package/dist/i18n/errorsMap.js +45 -0
  99. package/dist/i18n/errorsMap.js.map +1 -0
  100. package/dist/i18n/es.d.ts +21 -0
  101. package/dist/i18n/es.d.ts.map +1 -0
  102. package/dist/i18n/es.js +146 -0
  103. package/dist/i18n/es.js.map +1 -0
  104. package/dist/i18n/generated/errors.es.gen.d.ts +16 -0
  105. package/dist/i18n/generated/errors.es.gen.d.ts.map +1 -0
  106. package/dist/i18n/generated/errors.es.gen.js +58 -0
  107. package/dist/i18n/generated/errors.es.gen.js.map +1 -0
  108. package/dist/i18n/generated/errors.gen.d.ts +413 -0
  109. package/dist/i18n/generated/errors.gen.d.ts.map +1 -0
  110. package/dist/i18n/generated/errors.gen.js +210 -0
  111. package/dist/i18n/generated/errors.gen.js.map +1 -0
  112. package/dist/i18n/generated/errors.ru.gen.d.ts +16 -0
  113. package/dist/i18n/generated/errors.ru.gen.d.ts.map +1 -0
  114. package/dist/i18n/generated/errors.ru.gen.js +58 -0
  115. package/dist/i18n/generated/errors.ru.gen.js.map +1 -0
  116. package/dist/i18n/keys.d.ts +170 -0
  117. package/dist/i18n/keys.d.ts.map +1 -0
  118. package/dist/i18n/keys.js +295 -0
  119. package/dist/i18n/keys.js.map +1 -0
  120. package/dist/i18n/ru.d.ts +37 -0
  121. package/dist/i18n/ru.d.ts.map +1 -0
  122. package/dist/i18n/ru.js +162 -0
  123. package/dist/i18n/ru.js.map +1 -0
  124. package/dist/index.d.ts +103 -0
  125. package/dist/index.d.ts.map +1 -0
  126. package/dist/index.js +98 -0
  127. package/dist/index.js.map +1 -0
  128. package/dist/model/context.d.ts +11 -0
  129. package/dist/model/context.d.ts.map +1 -0
  130. package/dist/model/context.js +16 -0
  131. package/dist/model/context.js.map +1 -0
  132. package/dist/model/draft.d.ts +138 -0
  133. package/dist/model/draft.d.ts.map +1 -0
  134. package/dist/model/draft.js +192 -0
  135. package/dist/model/draft.js.map +1 -0
  136. package/dist/model/features.d.ts +69 -0
  137. package/dist/model/features.d.ts.map +1 -0
  138. package/dist/model/features.js +73 -0
  139. package/dist/model/features.js.map +1 -0
  140. package/dist/model/mineSource.d.ts +47 -0
  141. package/dist/model/mineSource.d.ts.map +1 -0
  142. package/dist/model/mineSource.js +45 -0
  143. package/dist/model/mineSource.js.map +1 -0
  144. package/dist/model/mutations.d.ts +60 -0
  145. package/dist/model/mutations.d.ts.map +1 -0
  146. package/dist/model/mutations.js +165 -0
  147. package/dist/model/mutations.js.map +1 -0
  148. package/dist/model/queries.d.ts +75 -0
  149. package/dist/model/queries.d.ts.map +1 -0
  150. package/dist/model/queries.js +117 -0
  151. package/dist/model/queries.js.map +1 -0
  152. package/dist/model/queryKeys.d.ts +50 -0
  153. package/dist/model/queryKeys.d.ts.map +1 -0
  154. package/dist/model/queryKeys.js +24 -0
  155. package/dist/model/queryKeys.js.map +1 -0
  156. package/dist/model/runtime.d.ts +69 -0
  157. package/dist/model/runtime.d.ts.map +1 -0
  158. package/dist/model/runtime.js +14 -0
  159. package/dist/model/runtime.js.map +1 -0
  160. package/dist/model/status.d.ts +117 -0
  161. package/dist/model/status.d.ts.map +1 -0
  162. package/dist/model/status.js +164 -0
  163. package/dist/model/status.js.map +1 -0
  164. package/dist/model/transitions.d.ts +41 -0
  165. package/dist/model/transitions.d.ts.map +1 -0
  166. package/dist/model/transitions.js +25 -0
  167. package/dist/model/transitions.js.map +1 -0
  168. package/dist/model/validation.d.ts +135 -0
  169. package/dist/model/validation.d.ts.map +1 -0
  170. package/dist/model/validation.js +191 -0
  171. package/dist/model/validation.js.map +1 -0
  172. package/dist/nav/manifest.d.ts +46 -0
  173. package/dist/nav/manifest.d.ts.map +1 -0
  174. package/dist/nav/manifest.js +56 -0
  175. package/dist/nav/manifest.js.map +1 -0
  176. package/llms.txt +118 -0
  177. package/manifest.json +1044 -0
  178. package/nav-manifest.json +84 -0
  179. package/package.json +121 -0
  180. package/src/analytics/generated/events.json +7 -0
  181. package/src/api/generated/schema.ts +1255 -0
  182. package/src/api/listingsApi.ts +237 -0
  183. package/src/api/types.ts +193 -0
  184. package/src/default/ErrorAlert.tsx +46 -0
  185. package/src/default/FavoritesPane.tsx +123 -0
  186. package/src/default/ListingCard.tsx +178 -0
  187. package/src/default/ListingComposerPage.tsx +466 -0
  188. package/src/default/ListingDetailPane.tsx +271 -0
  189. package/src/default/ListingPhoto.tsx +62 -0
  190. package/src/default/MyListingsPane.tsx +333 -0
  191. package/src/default/StatusTags.tsx +86 -0
  192. package/src/default/icons.tsx +31 -0
  193. package/src/default/index.ts +35 -0
  194. package/src/default/theme.tsx +67 -0
  195. package/src/default/types.ts +12 -0
  196. package/src/flows/registry.ts +45 -0
  197. package/src/headless/Favorites.tsx +137 -0
  198. package/src/headless/ListingActions.tsx +101 -0
  199. package/src/headless/ListingComposer.tsx +476 -0
  200. package/src/headless/ListingDetail.tsx +231 -0
  201. package/src/headless/ListingsProvider.tsx +20 -0
  202. package/src/headless/MyListings.tsx +148 -0
  203. package/src/headless/useMandateGate.ts +40 -0
  204. package/src/i18n/errorsMap.ts +62 -0
  205. package/src/i18n/es.ts +198 -0
  206. package/src/i18n/generated/errors.es.gen.ts +64 -0
  207. package/src/i18n/generated/errors.gen.ts +241 -0
  208. package/src/i18n/generated/errors.json +499 -0
  209. package/src/i18n/generated/errors.ru.gen.ts +64 -0
  210. package/src/i18n/keys.ts +356 -0
  211. package/src/i18n/ru.ts +215 -0
  212. package/src/index.ts +260 -0
  213. package/src/model/context.tsx +28 -0
  214. package/src/model/draft.ts +307 -0
  215. package/src/model/features.ts +122 -0
  216. package/src/model/mineSource.ts +55 -0
  217. package/src/model/mutations.ts +224 -0
  218. package/src/model/queries.ts +150 -0
  219. package/src/model/queryKeys.ts +76 -0
  220. package/src/model/runtime.ts +87 -0
  221. package/src/model/status.ts +279 -0
  222. package/src/model/transitions.ts +62 -0
  223. package/src/model/validation.ts +271 -0
  224. package/src/nav/manifest.ts +97 -0
  225. package/tsconfig.json +26 -0
@@ -0,0 +1,1253 @@
1
+ export interface paths {
2
+ "/listings/api/v1/listings/": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /**
10
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
11
+ *
12
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
13
+ */
14
+ get: operations["listings_api_v1_listings_list"];
15
+ put?: never;
16
+ /**
17
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
18
+ *
19
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
20
+ */
21
+ post: operations["listings_api_v1_listings_create"];
22
+ delete?: never;
23
+ options?: never;
24
+ head?: never;
25
+ patch?: never;
26
+ trace?: never;
27
+ };
28
+ "/listings/api/v1/listings/{id}/": {
29
+ parameters: {
30
+ query?: never;
31
+ header?: never;
32
+ path?: never;
33
+ cookie?: never;
34
+ };
35
+ /**
36
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
37
+ *
38
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
39
+ */
40
+ get: operations["listings_api_v1_listings_retrieve"];
41
+ /**
42
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
43
+ *
44
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
45
+ */
46
+ put: operations["listings_api_v1_listings_update"];
47
+ post?: never;
48
+ /**
49
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
50
+ *
51
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
52
+ */
53
+ delete: operations["listings_api_v1_listings_destroy"];
54
+ options?: never;
55
+ head?: never;
56
+ /**
57
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
58
+ *
59
+ * **Permissions:** `IsAuthenticatedOrReadOnly`
60
+ */
61
+ patch: operations["listings_api_v1_listings_partial_update"];
62
+ trace?: never;
63
+ };
64
+ "/listings/api/v1/listings/{id}/archive/": {
65
+ parameters: {
66
+ query?: never;
67
+ header?: never;
68
+ path?: never;
69
+ cookie?: never;
70
+ };
71
+ get?: never;
72
+ put?: never;
73
+ /**
74
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
75
+ *
76
+ * **Permissions:** `IsAuthenticated`
77
+ */
78
+ post: operations["listings_api_v1_listings_archive_create"];
79
+ delete?: never;
80
+ options?: never;
81
+ head?: never;
82
+ patch?: never;
83
+ trace?: never;
84
+ };
85
+ "/listings/api/v1/listings/{id}/complete/": {
86
+ parameters: {
87
+ query?: never;
88
+ header?: never;
89
+ path?: never;
90
+ cookie?: never;
91
+ };
92
+ get?: never;
93
+ put?: never;
94
+ /**
95
+ * @description Mark a listing sold.
96
+ *
97
+ * **Permissions:** `IsAuthenticated`
98
+ */
99
+ post: operations["listings_api_v1_listings_complete_create"];
100
+ delete?: never;
101
+ options?: never;
102
+ head?: never;
103
+ patch?: never;
104
+ trace?: never;
105
+ };
106
+ "/listings/api/v1/listings/{id}/favorite/": {
107
+ parameters: {
108
+ query?: never;
109
+ header?: never;
110
+ path?: never;
111
+ cookie?: never;
112
+ };
113
+ get?: never;
114
+ put?: never;
115
+ /**
116
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
117
+ *
118
+ * **Permissions:** `IsAuthenticated`
119
+ */
120
+ post: operations["listings_api_v1_listings_favorite_create"];
121
+ delete?: never;
122
+ options?: never;
123
+ head?: never;
124
+ patch?: never;
125
+ trace?: never;
126
+ };
127
+ "/listings/api/v1/listings/{id}/publish/": {
128
+ parameters: {
129
+ query?: never;
130
+ header?: never;
131
+ path?: never;
132
+ cookie?: never;
133
+ };
134
+ get?: never;
135
+ put?: never;
136
+ /**
137
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
138
+ *
139
+ * **Permissions:** `IsAuthenticated`
140
+ */
141
+ post: operations["listings_api_v1_listings_publish_create"];
142
+ delete?: never;
143
+ options?: never;
144
+ head?: never;
145
+ patch?: never;
146
+ trace?: never;
147
+ };
148
+ "/listings/api/v1/listings/{id}/save-draft/": {
149
+ parameters: {
150
+ query?: never;
151
+ header?: never;
152
+ path?: never;
153
+ cookie?: never;
154
+ };
155
+ get?: never;
156
+ put?: never;
157
+ /**
158
+ * @description Persist draft fields (declarative validation via serializer).
159
+ *
160
+ * **Permissions:** `IsAuthenticated`
161
+ */
162
+ post: operations["listings_api_v1_listings_save_draft_create"];
163
+ delete?: never;
164
+ options?: never;
165
+ head?: never;
166
+ patch?: never;
167
+ trace?: never;
168
+ };
169
+ "/listings/api/v1/listings/{id}/status/": {
170
+ parameters: {
171
+ query?: never;
172
+ header?: never;
173
+ path?: never;
174
+ cookie?: never;
175
+ };
176
+ /**
177
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
178
+ *
179
+ * **Permissions:** `AllowAny`
180
+ */
181
+ get: operations["listings_api_v1_listings_status_retrieve"];
182
+ put?: never;
183
+ post?: never;
184
+ delete?: never;
185
+ options?: never;
186
+ head?: never;
187
+ patch?: never;
188
+ trace?: never;
189
+ };
190
+ "/listings/api/v1/listings/{id}/unfavorite/": {
191
+ parameters: {
192
+ query?: never;
193
+ header?: never;
194
+ path?: never;
195
+ cookie?: never;
196
+ };
197
+ get?: never;
198
+ put?: never;
199
+ /**
200
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
201
+ *
202
+ * **Permissions:** `IsAuthenticated`
203
+ */
204
+ post: operations["listings_api_v1_listings_unfavorite_create"];
205
+ delete?: never;
206
+ options?: never;
207
+ head?: never;
208
+ patch?: never;
209
+ trace?: never;
210
+ };
211
+ "/listings/api/v1/listings/{id}/validate-draft/": {
212
+ parameters: {
213
+ query?: never;
214
+ header?: never;
215
+ path?: never;
216
+ cookie?: never;
217
+ };
218
+ /**
219
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
220
+ *
221
+ * **Permissions:** `IsAuthenticated`
222
+ */
223
+ get: operations["listings_api_v1_listings_validate_draft_retrieve"];
224
+ put?: never;
225
+ post?: never;
226
+ delete?: never;
227
+ options?: never;
228
+ head?: never;
229
+ patch?: never;
230
+ trace?: never;
231
+ };
232
+ "/listings/api/v1/listings/my/counters/": {
233
+ parameters: {
234
+ query?: never;
235
+ header?: never;
236
+ path?: never;
237
+ cookie?: never;
238
+ };
239
+ /**
240
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
241
+ *
242
+ * **Permissions:** `IsAuthenticated`
243
+ */
244
+ get: operations["listings_api_v1_listings_my_counters_retrieve"];
245
+ put?: never;
246
+ post?: never;
247
+ delete?: never;
248
+ options?: never;
249
+ head?: never;
250
+ patch?: never;
251
+ trace?: never;
252
+ };
253
+ "/listings/api/v1/listings/my/favorites/": {
254
+ parameters: {
255
+ query?: never;
256
+ header?: never;
257
+ path?: never;
258
+ cookie?: never;
259
+ };
260
+ /**
261
+ * @description Listings CRUD plus owner lifecycle actions and favorites.
262
+ *
263
+ * **Permissions:** `IsAuthenticated`
264
+ */
265
+ get: operations["listings_api_v1_listings_my_favorites_list"];
266
+ put?: never;
267
+ post?: never;
268
+ delete?: never;
269
+ options?: never;
270
+ head?: never;
271
+ patch?: never;
272
+ trace?: never;
273
+ };
274
+ }
275
+ export type webhooks = Record<string, never>;
276
+ export interface components {
277
+ schemas: {
278
+ /** @description Serializer for boolean feature DAO. */
279
+ BoolDao: {
280
+ name?: string | null;
281
+ order?: number | null;
282
+ title?: boolean | null;
283
+ badge?: boolean | null;
284
+ translate?: string | null;
285
+ /**
286
+ * @description discriminator enum property added by openapi-typescript
287
+ * @enum {string}
288
+ */
289
+ type: "bool";
290
+ value?: boolean;
291
+ trueLabel?: string | null;
292
+ falseLabel?: string | null;
293
+ };
294
+ /** @description Serializer for boolean feature DTO. */
295
+ BoolDto: {
296
+ /**
297
+ * @description discriminator enum property added by openapi-typescript
298
+ * @enum {string}
299
+ */
300
+ type: "bool";
301
+ value?: boolean;
302
+ };
303
+ /** @description Serializer for convertible-unit feature DAO. */
304
+ ConvertibleUnitDao: {
305
+ name?: string | null;
306
+ order?: number | null;
307
+ title?: boolean | null;
308
+ badge?: boolean | null;
309
+ translate?: string | null;
310
+ /**
311
+ * @description discriminator enum property added by openapi-typescript
312
+ * @enum {string}
313
+ */
314
+ type: "convertible_unit";
315
+ /** Format: double */
316
+ value?: number;
317
+ unitType?: string | null;
318
+ unit_m?: string | null;
319
+ unit_i?: string | null;
320
+ precision?: number | null;
321
+ prefix?: string | null;
322
+ };
323
+ /** @description Serializer for convertible-unit feature DTO. */
324
+ ConvertibleUnitDto: {
325
+ /**
326
+ * @description discriminator enum property added by openapi-typescript
327
+ * @enum {string}
328
+ */
329
+ type: "convertible_unit";
330
+ /** Format: double */
331
+ value?: number | null;
332
+ unit?: string | null;
333
+ };
334
+ /** @description Serializer for date feature DAO. */
335
+ DateDao: {
336
+ name?: string | null;
337
+ order?: number | null;
338
+ title?: boolean | null;
339
+ badge?: boolean | null;
340
+ translate?: string | null;
341
+ /**
342
+ * @description discriminator enum property added by openapi-typescript
343
+ * @enum {string}
344
+ */
345
+ type: "date";
346
+ value?: number | null;
347
+ };
348
+ /** @description Serializer for date feature DTO. */
349
+ DateDto: {
350
+ /**
351
+ * @description discriminator enum property added by openapi-typescript
352
+ * @enum {string}
353
+ */
354
+ type: "date";
355
+ value?: number | null;
356
+ };
357
+ /** @description Result of a (soft) delete. */
358
+ DeleteResponse: {
359
+ success: boolean;
360
+ deleted: boolean;
361
+ };
362
+ /**
363
+ * @description * `below_minimum` - below_minimum
364
+ * * `above_maximum` - above_maximum
365
+ * * `not_in_options` - not_in_options
366
+ * * `invalid_type` - invalid_type
367
+ * * `invalid_format` - invalid_format
368
+ * * `mandatory_missing` - mandatory_missing
369
+ * * `duplicate_slug` - duplicate_slug
370
+ * * `unknown_feature_type` - unknown_feature_type
371
+ * * `not_allowed` - not_allowed
372
+ * * `unknown_feature` - unknown_feature
373
+ * * `description_too_short` - description_too_short
374
+ * * `description_too_long` - description_too_long
375
+ * * `invalid_config` - invalid_config
376
+ * * `min_greater_than_max` - min_greater_than_max
377
+ * * `empty_options` - empty_options
378
+ * @enum {string}
379
+ */
380
+ ErrorEnum: "below_minimum" | "above_maximum" | "not_in_options" | "invalid_type" | "invalid_format" | "mandatory_missing" | "duplicate_slug" | "unknown_feature_type" | "not_allowed" | "unknown_feature" | "description_too_short" | "description_too_long" | "invalid_config" | "min_greater_than_max" | "empty_options";
381
+ /** @description Result of favoriting / unfavoriting a listing. */
382
+ FavoriteToggleResponse: {
383
+ favorited: boolean;
384
+ listing_id: number;
385
+ };
386
+ FeatureDao: components["schemas"]["IntDao"] | components["schemas"]["FloatDao"] | components["schemas"]["StringDao"] | components["schemas"]["BoolDao"] | components["schemas"]["HexColorDao"] | components["schemas"]["SelectDao"] | components["schemas"]["DateDao"] | components["schemas"]["HeaderDao"] | components["schemas"]["HierarchicalSelectDao"] | components["schemas"]["ConvertibleUnitDao"];
387
+ FeatureDto: components["schemas"]["IntDto"] | components["schemas"]["FloatDto"] | components["schemas"]["StringDto"] | components["schemas"]["BoolDto"] | components["schemas"]["HexColorDto"] | components["schemas"]["SelectDto"] | components["schemas"]["DateDto"] | components["schemas"]["HeaderDto"] | components["schemas"]["HierarchicalSelectDto"] | components["schemas"]["ConvertibleUnitDto"];
388
+ /** @description Serializer for FeatureValidationResult. */
389
+ FeatureValidationResult: {
390
+ id?: unknown;
391
+ slug: string;
392
+ status: components["schemas"]["FeatureValidationResultStatusEnum"];
393
+ error?: (components["schemas"]["ErrorEnum"] | components["schemas"]["NullEnum"]) | null;
394
+ ref_value?: unknown;
395
+ message?: string | null;
396
+ localizable_error?: string | null;
397
+ params?: {
398
+ [key: string]: unknown;
399
+ } | null;
400
+ warnings?: string[] | null;
401
+ };
402
+ /**
403
+ * @description * `ok` - ok
404
+ * * `validation_failed` - validation_failed
405
+ * @enum {string}
406
+ */
407
+ FeatureValidationResultStatusEnum: "ok" | "validation_failed";
408
+ /** @description Serializer for float feature DAO. */
409
+ FloatDao: {
410
+ name?: string | null;
411
+ order?: number | null;
412
+ title?: boolean | null;
413
+ badge?: boolean | null;
414
+ translate?: string | null;
415
+ /**
416
+ * @description discriminator enum property added by openapi-typescript
417
+ * @enum {string}
418
+ */
419
+ type: "float";
420
+ /** Format: double */
421
+ value?: number;
422
+ prefix?: string | null;
423
+ postfix?: string | null;
424
+ postfix1000?: string | null;
425
+ precision?: number | null;
426
+ };
427
+ /** @description Serializer for float feature DTO. */
428
+ FloatDto: {
429
+ /**
430
+ * @description discriminator enum property added by openapi-typescript
431
+ * @enum {string}
432
+ */
433
+ type: "float";
434
+ /** Format: double */
435
+ value?: number;
436
+ };
437
+ /** @description Serializer for header feature DAO. */
438
+ HeaderDao: {
439
+ name?: string | null;
440
+ order?: number | null;
441
+ title?: boolean | null;
442
+ badge?: boolean | null;
443
+ translate?: string | null;
444
+ /**
445
+ * @description discriminator enum property added by openapi-typescript
446
+ * @enum {string}
447
+ */
448
+ type: "header";
449
+ style?: components["schemas"]["StyleEnum"];
450
+ };
451
+ /** @description Serializer for header feature DTO. */
452
+ HeaderDto: {
453
+ /**
454
+ * @description discriminator enum property added by openapi-typescript
455
+ * @enum {string}
456
+ */
457
+ type: "header";
458
+ value?: string | null;
459
+ };
460
+ /** @description Serializer for hex color feature DAO. */
461
+ HexColorDao: {
462
+ name?: string | null;
463
+ order?: number | null;
464
+ title?: boolean | null;
465
+ badge?: boolean | null;
466
+ translate?: string | null;
467
+ /**
468
+ * @description discriminator enum property added by openapi-typescript
469
+ * @enum {string}
470
+ */
471
+ type: "hex_color";
472
+ simple?: string;
473
+ hex?: string | null;
474
+ label?: string | null;
475
+ };
476
+ /** @description Serializer for hex color feature DTO. */
477
+ HexColorDto: {
478
+ value?: components["schemas"]["HexColorValue"] | null;
479
+ /**
480
+ * @description discriminator enum property added by openapi-typescript
481
+ * @enum {string}
482
+ */
483
+ type: "hex_color";
484
+ };
485
+ /** @description Serializer for hex color value. */
486
+ HexColorValue: {
487
+ simple: string;
488
+ hex?: string | null;
489
+ label?: string | null;
490
+ };
491
+ /** @description Serializer for hierarchical select feature DAO. */
492
+ HierarchicalSelectDao: {
493
+ name?: string | null;
494
+ order?: number | null;
495
+ title?: boolean | null;
496
+ badge?: boolean | null;
497
+ translate?: string | null;
498
+ /**
499
+ * @description discriminator enum property added by openapi-typescript
500
+ * @enum {string}
501
+ */
502
+ type: "hierarchical_select";
503
+ value?: string[];
504
+ };
505
+ /** @description Serializer for hierarchical select feature DTO. */
506
+ HierarchicalSelectDto: {
507
+ /**
508
+ * @description discriminator enum property added by openapi-typescript
509
+ * @enum {string}
510
+ */
511
+ type: "hierarchical_select";
512
+ value?: string[];
513
+ };
514
+ /** @description Serializer for integer feature DAO. */
515
+ IntDao: {
516
+ name?: string | null;
517
+ order?: number | null;
518
+ title?: boolean | null;
519
+ badge?: boolean | null;
520
+ translate?: string | null;
521
+ /**
522
+ * @description discriminator enum property added by openapi-typescript
523
+ * @enum {string}
524
+ */
525
+ type: "int";
526
+ value?: number;
527
+ prefix?: string | null;
528
+ postfix?: string | null;
529
+ postfix1000?: string | null;
530
+ precision?: number | null;
531
+ };
532
+ /** @description Serializer for integer feature DTO. */
533
+ IntDto: {
534
+ /**
535
+ * @description discriminator enum property added by openapi-typescript
536
+ * @enum {string}
537
+ */
538
+ type: "int";
539
+ value?: number;
540
+ };
541
+ /** @description Result of a lifecycle action (archive, complete/sold). */
542
+ ListingActionResponse: {
543
+ success: boolean;
544
+ status: string;
545
+ };
546
+ /** @description Compact card projection for lists. */
547
+ ListingCard: {
548
+ readonly id: number;
549
+ title?: string;
550
+ /** Format: decimal */
551
+ price?: string;
552
+ /** Format: decimal */
553
+ price_base?: string | null;
554
+ currency?: string;
555
+ readonly images: string[] | null;
556
+ readonly features_title: components["schemas"]["FeatureDao"][];
557
+ readonly features_badges: components["schemas"]["FeatureDao"][];
558
+ location_label?: string;
559
+ geohash?: string;
560
+ /** Format: decimal */
561
+ lat?: string | null;
562
+ /** Format: decimal */
563
+ lon?: string | null;
564
+ countable?: boolean;
565
+ /** Format: int64 */
566
+ stock_quantity?: number | null;
567
+ status?: components["schemas"]["StatusD41Enum"];
568
+ readonly is_favorited: boolean | null;
569
+ };
570
+ /** @description Full listing detail. */
571
+ ListingDetail: {
572
+ readonly id: number;
573
+ /** Format: uuid */
574
+ owner: string;
575
+ category_id: string;
576
+ title?: string;
577
+ description?: string;
578
+ language?: string;
579
+ /** Format: decimal */
580
+ price?: string;
581
+ /** Format: decimal */
582
+ price_base?: string | null;
583
+ currency?: string;
584
+ readonly images: string[] | null;
585
+ location_id?: string;
586
+ location_label?: string;
587
+ geohash?: string;
588
+ /** Format: decimal */
589
+ lat?: string | null;
590
+ /** Format: decimal */
591
+ lon?: string | null;
592
+ readonly features: components["schemas"]["FeatureDao"][];
593
+ readonly features_title: components["schemas"]["FeatureDao"][];
594
+ readonly features_badges: components["schemas"]["FeatureDao"][];
595
+ readonly features_search: unknown;
596
+ status?: components["schemas"]["StatusD41Enum"];
597
+ moderation_status?: components["schemas"]["ModerationStatusEnum"];
598
+ auto_republish?: boolean;
599
+ countable?: boolean;
600
+ /** Format: int64 */
601
+ stock_quantity?: number | null;
602
+ /** Format: date-time */
603
+ published_at?: string | null;
604
+ /** Format: date-time */
605
+ expires_at?: string | null;
606
+ /** Format: date-time */
607
+ readonly created_at: string;
608
+ /** Format: date-time */
609
+ readonly updated_at: string;
610
+ readonly is_favorited: boolean | null;
611
+ };
612
+ /**
613
+ * @description Create/update the draft twin fields.
614
+ *
615
+ * All user-editable content is a ``*_draft`` field promoted on publish.
616
+ * DRF's declarative field validation (max_length, decimal bounds, types)
617
+ * replaces the source view's hand-rolled per-field checks.
618
+ */
619
+ ListingDraft: {
620
+ readonly id: number;
621
+ category_id: string;
622
+ currency?: string;
623
+ language?: string;
624
+ title_draft?: string;
625
+ description_draft?: string;
626
+ /** Format: decimal */
627
+ price_draft?: string | null;
628
+ images_draft?: string[];
629
+ location_id_draft?: string;
630
+ location_label_draft?: string;
631
+ geohash_draft?: string;
632
+ /** Format: decimal */
633
+ lat_draft?: string | null;
634
+ /** Format: decimal */
635
+ lon_draft?: string | null;
636
+ features_draft?: {
637
+ [key: string]: components["schemas"]["FeatureDto"];
638
+ } | null;
639
+ auto_republish?: boolean;
640
+ countable?: boolean;
641
+ /** Format: int64 */
642
+ stock_quantity?: number | null;
643
+ readonly status: components["schemas"]["StatusD41Enum"];
644
+ readonly moderation_status: components["schemas"]["ModerationStatusEnum"];
645
+ /** Format: date-time */
646
+ readonly created_at: string;
647
+ /** Format: date-time */
648
+ readonly updated_at: string;
649
+ };
650
+ /** @description Lightweight status view (mirrors the listings.status comm Function). */
651
+ ListingStatus: {
652
+ status: components["schemas"]["StatusD41Enum"];
653
+ moderation_status: string;
654
+ is_deleted: boolean;
655
+ is_expired: boolean;
656
+ is_active: boolean;
657
+ owner_id: string;
658
+ };
659
+ /**
660
+ * @description * `pending` - Pending Review
661
+ * * `approved` - Approved
662
+ * * `rejected` - Rejected
663
+ * * `needs_review` - Needs Manual Review
664
+ * @enum {string}
665
+ */
666
+ ModerationStatusEnum: "pending" | "approved" | "rejected" | "needs_review";
667
+ /** @description Listing counts by tab for the current user. */
668
+ MyCountersResponse: {
669
+ active: number;
670
+ archived: number;
671
+ drafts: number;
672
+ };
673
+ /** @enum {unknown} */
674
+ NullEnum: null;
675
+ PaginatedListingCardList: {
676
+ items: components["schemas"]["ListingCard"][];
677
+ /** @description Anchor value for next page */
678
+ next_anchor?: string | null;
679
+ /** @description Anchor value for previous page */
680
+ prev_anchor?: string | null;
681
+ /** @description Whether there are more items after this page */
682
+ has_next: boolean;
683
+ /** @description Whether there are items before this page */
684
+ has_prev: boolean;
685
+ /** @description Number of items in current page */
686
+ count: number;
687
+ };
688
+ /**
689
+ * @description Create/update the draft twin fields.
690
+ *
691
+ * All user-editable content is a ``*_draft`` field promoted on publish.
692
+ * DRF's declarative field validation (max_length, decimal bounds, types)
693
+ * replaces the source view's hand-rolled per-field checks.
694
+ */
695
+ PatchedListingDraft: {
696
+ readonly id?: number;
697
+ category_id?: string;
698
+ currency?: string;
699
+ language?: string;
700
+ title_draft?: string;
701
+ description_draft?: string;
702
+ /** Format: decimal */
703
+ price_draft?: string | null;
704
+ images_draft?: string[];
705
+ location_id_draft?: string;
706
+ location_label_draft?: string;
707
+ geohash_draft?: string;
708
+ /** Format: decimal */
709
+ lat_draft?: string | null;
710
+ /** Format: decimal */
711
+ lon_draft?: string | null;
712
+ features_draft?: {
713
+ [key: string]: components["schemas"]["FeatureDto"];
714
+ } | null;
715
+ auto_republish?: boolean;
716
+ countable?: boolean;
717
+ /** Format: int64 */
718
+ stock_quantity?: number | null;
719
+ readonly status?: components["schemas"]["StatusD41Enum"];
720
+ readonly moderation_status?: components["schemas"]["ModerationStatusEnum"];
721
+ /** Format: date-time */
722
+ readonly created_at?: string;
723
+ /** Format: date-time */
724
+ readonly updated_at?: string;
725
+ };
726
+ /** @description Result of publishing a listing. */
727
+ PublishResponse: {
728
+ published: boolean;
729
+ listing_id: number;
730
+ status: string;
731
+ };
732
+ /** @description Serializer for select feature DAO. */
733
+ SelectDao: {
734
+ name?: string | null;
735
+ order?: number | null;
736
+ title?: boolean | null;
737
+ badge?: boolean | null;
738
+ translate?: string | null;
739
+ /**
740
+ * @description discriminator enum property added by openapi-typescript
741
+ * @enum {string}
742
+ */
743
+ type: "select";
744
+ value?: string[];
745
+ uiStyle?: (components["schemas"]["UiStyleEnum"] | components["schemas"]["NullEnum"]) | null;
746
+ maxSelected?: number | null;
747
+ };
748
+ /** @description Serializer for select feature DTO. */
749
+ SelectDto: {
750
+ /**
751
+ * @description discriminator enum property added by openapi-typescript
752
+ * @enum {string}
753
+ */
754
+ type: "select";
755
+ value?: string[];
756
+ };
757
+ /**
758
+ * @description * `draft` - Draft
759
+ * * `pending` - Pending Moderation
760
+ * * `published` - Published
761
+ * * `paused` - Paused
762
+ * * `expired` - Expired
763
+ * * `sold` - Sold
764
+ * * `rejected` - Rejected
765
+ * * `blocked` - Blocked (moderation takedown)
766
+ * * `archived` - Archived
767
+ * @enum {string}
768
+ */
769
+ StatusD41Enum: "draft" | "pending" | "published" | "paused" | "expired" | "sold" | "rejected" | "blocked" | "archived";
770
+ /** @description Serializer for string feature DAO. */
771
+ StringDao: {
772
+ name?: string | null;
773
+ order?: number | null;
774
+ title?: boolean | null;
775
+ badge?: boolean | null;
776
+ translate?: string | null;
777
+ /**
778
+ * @description discriminator enum property added by openapi-typescript
779
+ * @enum {string}
780
+ */
781
+ type: "string";
782
+ value?: string;
783
+ prefix?: string | null;
784
+ postfix?: string | null;
785
+ };
786
+ /** @description Serializer for string feature DTO. */
787
+ StringDto: {
788
+ /**
789
+ * @description discriminator enum property added by openapi-typescript
790
+ * @enum {string}
791
+ */
792
+ type: "string";
793
+ value?: string;
794
+ };
795
+ /**
796
+ * @description * `l` - l
797
+ * * `m` - m
798
+ * @enum {string}
799
+ */
800
+ StyleEnum: "l" | "m";
801
+ /**
802
+ * @description * `convertible_unit` - convertible_unit
803
+ * @enum {string}
804
+ */
805
+ Type104Enum: "convertible_unit";
806
+ /**
807
+ * @description * `date` - date
808
+ * @enum {string}
809
+ */
810
+ Type37eEnum: "date";
811
+ /**
812
+ * @description * `header` - header
813
+ * @enum {string}
814
+ */
815
+ Type3feEnum: "header";
816
+ /**
817
+ * @description * `hex_color` - hex_color
818
+ * @enum {string}
819
+ */
820
+ Type515Enum: "hex_color";
821
+ /**
822
+ * @description * `hierarchical_select` - hierarchical_select
823
+ * @enum {string}
824
+ */
825
+ Type5beEnum: "hierarchical_select";
826
+ /**
827
+ * @description * `select` - select
828
+ * @enum {string}
829
+ */
830
+ Type63eEnum: "select";
831
+ /**
832
+ * @description * `string` - string
833
+ * @enum {string}
834
+ */
835
+ Type839Enum: "string";
836
+ /**
837
+ * @description * `int` - int
838
+ * @enum {string}
839
+ */
840
+ TypeC1bEnum: "int";
841
+ /**
842
+ * @description * `float` - float
843
+ * @enum {string}
844
+ */
845
+ TypeD7cEnum: "float";
846
+ /**
847
+ * @description * `bool` - bool
848
+ * @enum {string}
849
+ */
850
+ TypeE3eEnum: "bool";
851
+ /**
852
+ * @description * `dropdown` - dropdown
853
+ * * `checkboxes` - checkboxes
854
+ * * `chips` - chips
855
+ * @enum {string}
856
+ */
857
+ UiStyleEnum: "dropdown" | "checkboxes" | "chips";
858
+ /** @description Serializer for ValidationBatchResult. */
859
+ ValidationBatchResult: {
860
+ valid: boolean;
861
+ results: components["schemas"]["FeatureValidationResult"][];
862
+ };
863
+ };
864
+ responses: never;
865
+ parameters: never;
866
+ requestBodies: never;
867
+ headers: never;
868
+ pathItems: never;
869
+ }
870
+ export type $defs = Record<string, never>;
871
+ export interface operations {
872
+ listings_api_v1_listings_list: {
873
+ parameters: {
874
+ query?: {
875
+ /** @description Anchor value to paginate from (exclusive) */
876
+ anchor?: string;
877
+ /** @description Pagination direction */
878
+ direction?: "next" | "prev" | "center";
879
+ /** @description Number of items (default 100, max 1000) */
880
+ limit?: number;
881
+ };
882
+ header?: never;
883
+ path?: never;
884
+ cookie?: never;
885
+ };
886
+ requestBody?: never;
887
+ responses: {
888
+ 200: {
889
+ headers: {
890
+ [name: string]: unknown;
891
+ };
892
+ content: {
893
+ "application/json": components["schemas"]["PaginatedListingCardList"];
894
+ };
895
+ };
896
+ };
897
+ };
898
+ listings_api_v1_listings_create: {
899
+ parameters: {
900
+ query?: never;
901
+ header?: never;
902
+ path?: never;
903
+ cookie?: never;
904
+ };
905
+ requestBody: {
906
+ content: {
907
+ "application/json": components["schemas"]["ListingDraft"];
908
+ "application/x-www-form-urlencoded": components["schemas"]["ListingDraft"];
909
+ "multipart/form-data": components["schemas"]["ListingDraft"];
910
+ };
911
+ };
912
+ responses: {
913
+ 201: {
914
+ headers: {
915
+ [name: string]: unknown;
916
+ };
917
+ content: {
918
+ "application/json": components["schemas"]["ListingDraft"];
919
+ };
920
+ };
921
+ };
922
+ };
923
+ listings_api_v1_listings_retrieve: {
924
+ parameters: {
925
+ query?: never;
926
+ header?: never;
927
+ path: {
928
+ /** @description A unique integer value identifying this listing. */
929
+ id: number;
930
+ };
931
+ cookie?: never;
932
+ };
933
+ requestBody?: never;
934
+ responses: {
935
+ 200: {
936
+ headers: {
937
+ [name: string]: unknown;
938
+ };
939
+ content: {
940
+ "application/json": components["schemas"]["ListingDetail"];
941
+ };
942
+ };
943
+ };
944
+ };
945
+ listings_api_v1_listings_update: {
946
+ parameters: {
947
+ query?: never;
948
+ header?: never;
949
+ path: {
950
+ /** @description A unique integer value identifying this listing. */
951
+ id: number;
952
+ };
953
+ cookie?: never;
954
+ };
955
+ requestBody: {
956
+ content: {
957
+ "application/json": components["schemas"]["ListingDraft"];
958
+ "application/x-www-form-urlencoded": components["schemas"]["ListingDraft"];
959
+ "multipart/form-data": components["schemas"]["ListingDraft"];
960
+ };
961
+ };
962
+ responses: {
963
+ 200: {
964
+ headers: {
965
+ [name: string]: unknown;
966
+ };
967
+ content: {
968
+ "application/json": components["schemas"]["ListingDraft"];
969
+ };
970
+ };
971
+ };
972
+ };
973
+ listings_api_v1_listings_destroy: {
974
+ parameters: {
975
+ query?: never;
976
+ header?: never;
977
+ path: {
978
+ /** @description A unique integer value identifying this listing. */
979
+ id: number;
980
+ };
981
+ cookie?: never;
982
+ };
983
+ requestBody?: never;
984
+ responses: {
985
+ 200: {
986
+ headers: {
987
+ [name: string]: unknown;
988
+ };
989
+ content: {
990
+ "application/json": components["schemas"]["DeleteResponse"];
991
+ };
992
+ };
993
+ };
994
+ };
995
+ listings_api_v1_listings_partial_update: {
996
+ parameters: {
997
+ query?: never;
998
+ header?: never;
999
+ path: {
1000
+ /** @description A unique integer value identifying this listing. */
1001
+ id: number;
1002
+ };
1003
+ cookie?: never;
1004
+ };
1005
+ requestBody?: {
1006
+ content: {
1007
+ "application/json": components["schemas"]["PatchedListingDraft"];
1008
+ "application/x-www-form-urlencoded": components["schemas"]["PatchedListingDraft"];
1009
+ "multipart/form-data": components["schemas"]["PatchedListingDraft"];
1010
+ };
1011
+ };
1012
+ responses: {
1013
+ 200: {
1014
+ headers: {
1015
+ [name: string]: unknown;
1016
+ };
1017
+ content: {
1018
+ "application/json": components["schemas"]["ListingDraft"];
1019
+ };
1020
+ };
1021
+ };
1022
+ };
1023
+ listings_api_v1_listings_archive_create: {
1024
+ parameters: {
1025
+ query?: never;
1026
+ header?: never;
1027
+ path: {
1028
+ /** @description A unique integer value identifying this listing. */
1029
+ id: number;
1030
+ };
1031
+ cookie?: never;
1032
+ };
1033
+ requestBody?: never;
1034
+ responses: {
1035
+ 200: {
1036
+ headers: {
1037
+ [name: string]: unknown;
1038
+ };
1039
+ content: {
1040
+ "application/json": components["schemas"]["ListingActionResponse"];
1041
+ };
1042
+ };
1043
+ };
1044
+ };
1045
+ listings_api_v1_listings_complete_create: {
1046
+ parameters: {
1047
+ query?: never;
1048
+ header?: never;
1049
+ path: {
1050
+ /** @description A unique integer value identifying this listing. */
1051
+ id: number;
1052
+ };
1053
+ cookie?: never;
1054
+ };
1055
+ requestBody?: never;
1056
+ responses: {
1057
+ 200: {
1058
+ headers: {
1059
+ [name: string]: unknown;
1060
+ };
1061
+ content: {
1062
+ "application/json": components["schemas"]["ListingActionResponse"];
1063
+ };
1064
+ };
1065
+ };
1066
+ };
1067
+ listings_api_v1_listings_favorite_create: {
1068
+ parameters: {
1069
+ query?: never;
1070
+ header?: never;
1071
+ path: {
1072
+ /** @description A unique integer value identifying this listing. */
1073
+ id: number;
1074
+ };
1075
+ cookie?: never;
1076
+ };
1077
+ requestBody?: never;
1078
+ responses: {
1079
+ 200: {
1080
+ headers: {
1081
+ [name: string]: unknown;
1082
+ };
1083
+ content: {
1084
+ "application/json": components["schemas"]["FavoriteToggleResponse"];
1085
+ };
1086
+ };
1087
+ };
1088
+ };
1089
+ listings_api_v1_listings_publish_create: {
1090
+ parameters: {
1091
+ query?: never;
1092
+ header?: never;
1093
+ path: {
1094
+ /** @description A unique integer value identifying this listing. */
1095
+ id: number;
1096
+ };
1097
+ cookie?: never;
1098
+ };
1099
+ requestBody?: never;
1100
+ responses: {
1101
+ 200: {
1102
+ headers: {
1103
+ [name: string]: unknown;
1104
+ };
1105
+ content: {
1106
+ "application/json": components["schemas"]["PublishResponse"];
1107
+ };
1108
+ };
1109
+ 400: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content: {
1114
+ "application/json": components["schemas"]["ValidationBatchResult"];
1115
+ };
1116
+ };
1117
+ };
1118
+ };
1119
+ listings_api_v1_listings_save_draft_create: {
1120
+ parameters: {
1121
+ query?: never;
1122
+ header?: never;
1123
+ path: {
1124
+ /** @description A unique integer value identifying this listing. */
1125
+ id: number;
1126
+ };
1127
+ cookie?: never;
1128
+ };
1129
+ requestBody?: never;
1130
+ responses: {
1131
+ 200: {
1132
+ headers: {
1133
+ [name: string]: unknown;
1134
+ };
1135
+ content: {
1136
+ "application/json": components["schemas"]["ListingDraft"];
1137
+ };
1138
+ };
1139
+ };
1140
+ };
1141
+ listings_api_v1_listings_status_retrieve: {
1142
+ parameters: {
1143
+ query?: never;
1144
+ header?: never;
1145
+ path: {
1146
+ /** @description A unique integer value identifying this listing. */
1147
+ id: number;
1148
+ };
1149
+ cookie?: never;
1150
+ };
1151
+ requestBody?: never;
1152
+ responses: {
1153
+ 200: {
1154
+ headers: {
1155
+ [name: string]: unknown;
1156
+ };
1157
+ content: {
1158
+ "application/json": components["schemas"]["ListingStatus"];
1159
+ };
1160
+ };
1161
+ };
1162
+ };
1163
+ listings_api_v1_listings_unfavorite_create: {
1164
+ parameters: {
1165
+ query?: never;
1166
+ header?: never;
1167
+ path: {
1168
+ /** @description A unique integer value identifying this listing. */
1169
+ id: number;
1170
+ };
1171
+ cookie?: never;
1172
+ };
1173
+ requestBody?: never;
1174
+ responses: {
1175
+ 200: {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ "application/json": components["schemas"]["FavoriteToggleResponse"];
1181
+ };
1182
+ };
1183
+ };
1184
+ };
1185
+ listings_api_v1_listings_validate_draft_retrieve: {
1186
+ parameters: {
1187
+ query?: never;
1188
+ header?: never;
1189
+ path: {
1190
+ /** @description A unique integer value identifying this listing. */
1191
+ id: number;
1192
+ };
1193
+ cookie?: never;
1194
+ };
1195
+ requestBody?: never;
1196
+ responses: {
1197
+ 200: {
1198
+ headers: {
1199
+ [name: string]: unknown;
1200
+ };
1201
+ content: {
1202
+ "application/json": components["schemas"]["ValidationBatchResult"];
1203
+ };
1204
+ };
1205
+ };
1206
+ };
1207
+ listings_api_v1_listings_my_counters_retrieve: {
1208
+ parameters: {
1209
+ query?: never;
1210
+ header?: never;
1211
+ path?: never;
1212
+ cookie?: never;
1213
+ };
1214
+ requestBody?: never;
1215
+ responses: {
1216
+ 200: {
1217
+ headers: {
1218
+ [name: string]: unknown;
1219
+ };
1220
+ content: {
1221
+ "application/json": components["schemas"]["MyCountersResponse"];
1222
+ };
1223
+ };
1224
+ };
1225
+ };
1226
+ listings_api_v1_listings_my_favorites_list: {
1227
+ parameters: {
1228
+ query?: {
1229
+ /** @description Anchor value to paginate from (exclusive) */
1230
+ anchor?: string;
1231
+ /** @description Pagination direction */
1232
+ direction?: "next" | "prev" | "center";
1233
+ /** @description Number of items (default 100, max 1000) */
1234
+ limit?: number;
1235
+ };
1236
+ header?: never;
1237
+ path?: never;
1238
+ cookie?: never;
1239
+ };
1240
+ requestBody?: never;
1241
+ responses: {
1242
+ 200: {
1243
+ headers: {
1244
+ [name: string]: unknown;
1245
+ };
1246
+ content: {
1247
+ "application/json": components["schemas"]["PaginatedListingCardList"];
1248
+ };
1249
+ };
1250
+ };
1251
+ };
1252
+ }
1253
+ //# sourceMappingURL=schema.d.ts.map