@devdash/bofrid-api-types 0.1.5

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 (163) hide show
  1. package/README.md +24 -0
  2. package/dist/app.d.ts +23 -0
  3. package/dist/dev.d.ts +6 -0
  4. package/dist/export-openapi.d.ts +9 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/lib/auth.d.ts +20 -0
  7. package/dist/lib/criipto-bankid.d.ts +45 -0
  8. package/dist/lib/datalake.d.ts +7 -0
  9. package/dist/lib/docs-filter.d.ts +15 -0
  10. package/dist/lib/email-action-token.d.ts +26 -0
  11. package/dist/lib/email-utm.d.ts +42 -0
  12. package/dist/lib/email.d.ts +94 -0
  13. package/dist/lib/env.d.ts +18 -0
  14. package/dist/lib/errors.d.ts +6 -0
  15. package/dist/lib/helpers.d.ts +6 -0
  16. package/dist/lib/logger.d.ts +25 -0
  17. package/dist/lib/markets.d.ts +1 -0
  18. package/dist/lib/org-number.d.ts +5 -0
  19. package/dist/lib/ownership.d.ts +47 -0
  20. package/dist/lib/pdf-watermark.d.ts +25 -0
  21. package/dist/lib/personnummer.d.ts +14 -0
  22. package/dist/lib/posthog.d.ts +51 -0
  23. package/dist/lib/premium.d.ts +13 -0
  24. package/dist/lib/profile-resolver.d.ts +14 -0
  25. package/dist/lib/redirect-state.d.ts +40 -0
  26. package/dist/lib/revalidate.d.ts +23 -0
  27. package/dist/lib/schemas.d.ts +21 -0
  28. package/dist/lib/sentry.d.ts +31 -0
  29. package/dist/lib/slug.d.ts +5 -0
  30. package/dist/lib/sms.d.ts +22 -0
  31. package/dist/lib/system-log.d.ts +31 -0
  32. package/dist/lib/webhook-events.d.ts +26 -0
  33. package/dist/lib/webhooks.d.ts +28 -0
  34. package/dist/middleware/auth-debug.d.ts +17 -0
  35. package/dist/middleware/auth.d.ts +19 -0
  36. package/dist/middleware/bibi-logger.d.ts +6 -0
  37. package/dist/middleware/cors.d.ts +1 -0
  38. package/dist/middleware/request-id.d.ts +10 -0
  39. package/dist/middleware/sentry-context.d.ts +8 -0
  40. package/dist/routes/activity-feed.d.ts +64 -0
  41. package/dist/routes/admin-bevakningar.d.ts +200 -0
  42. package/dist/routes/admin-companies.d.ts +381 -0
  43. package/dist/routes/admin-email-jobs.d.ts +257 -0
  44. package/dist/routes/admin-email-logs.d.ts +9 -0
  45. package/dist/routes/admin-fb-leads.d.ts +32 -0
  46. package/dist/routes/admin-import.d.ts +188 -0
  47. package/dist/routes/admin-login-history.d.ts +9 -0
  48. package/dist/routes/admin-marketing.d.ts +15 -0
  49. package/dist/routes/admin-metabase.d.ts +9 -0
  50. package/dist/routes/admin-notifications.d.ts +7 -0
  51. package/dist/routes/admin-paying-customers.d.ts +74 -0
  52. package/dist/routes/admin-sessions.d.ts +10 -0
  53. package/dist/routes/admin-stats.d.ts +380 -0
  54. package/dist/routes/admin-system-logs.d.ts +10 -0
  55. package/dist/routes/admin-users.d.ts +299 -0
  56. package/dist/routes/admin-webhooks.d.ts +276 -0
  57. package/dist/routes/api-keys.d.ts +123 -0
  58. package/dist/routes/applications.d.ts +385 -0
  59. package/dist/routes/auth.d.ts +15 -0
  60. package/dist/routes/billing.d.ts +369 -0
  61. package/dist/routes/bostadsmerit.d.ts +51 -0
  62. package/dist/routes/companies.d.ts +842 -0
  63. package/dist/routes/contact-reveals.d.ts +102 -0
  64. package/dist/routes/conversations/handlers/conversation.d.ts +5 -0
  65. package/dist/routes/conversations/handlers/initiate.d.ts +4 -0
  66. package/dist/routes/conversations/handlers/messages.d.ts +5 -0
  67. package/dist/routes/conversations/handlers/state.d.ts +5 -0
  68. package/dist/routes/conversations/helpers/access.d.ts +11 -0
  69. package/dist/routes/conversations/helpers/enrich-conversation.d.ts +58 -0
  70. package/dist/routes/conversations/helpers/identity.d.ts +43 -0
  71. package/dist/routes/conversations/helpers/notify-recipient.d.ts +10 -0
  72. package/dist/routes/conversations/helpers/reconcile-reveal.d.ts +10 -0
  73. package/dist/routes/conversations/helpers/scrub-contact.d.ts +1 -0
  74. package/dist/routes/conversations/index.d.ts +422 -0
  75. package/dist/routes/conversations/routes.d.ts +924 -0
  76. package/dist/routes/conversations/schemas.d.ts +216 -0
  77. package/dist/routes/cron.d.ts +27 -0
  78. package/dist/routes/documents.d.ts +493 -0
  79. package/dist/routes/email-actions.d.ts +8 -0
  80. package/dist/routes/fastighetslista.d.ts +94 -0
  81. package/dist/routes/geo.d.ts +518 -0
  82. package/dist/routes/geocoding.d.ts +192 -0
  83. package/dist/routes/health.d.ts +43 -0
  84. package/dist/routes/housing-history.d.ts +381 -0
  85. package/dist/routes/index.d.ts +15321 -0
  86. package/dist/routes/leads.d.ts +281 -0
  87. package/dist/routes/listing-helpers.d.ts +33 -0
  88. package/dist/routes/listing-publications.d.ts +636 -0
  89. package/dist/routes/listings.d.ts +1846 -0
  90. package/dist/routes/location-interests.d.ts +754 -0
  91. package/dist/routes/lookup.d.ts +109 -0
  92. package/dist/routes/mejl.d.ts +377 -0
  93. package/dist/routes/profiles.d.ts +281 -0
  94. package/dist/routes/properties.d.ts +1266 -0
  95. package/dist/routes/public-listings.d.ts +1137 -0
  96. package/dist/routes/public-profiles.d.ts +293 -0
  97. package/dist/routes/references.d.ts +695 -0
  98. package/dist/routes/search-partners.d.ts +4 -0
  99. package/dist/routes/site-config.d.ts +103 -0
  100. package/dist/routes/storage.d.ts +367 -0
  101. package/dist/routes/tenant-boost.d.ts +229 -0
  102. package/dist/routes/tenants.d.ts +336 -0
  103. package/dist/routes/track.d.ts +19 -0
  104. package/dist/routes/translate.d.ts +51 -0
  105. package/dist/routes/users.d.ts +517 -0
  106. package/dist/routes/verification.d.ts +175 -0
  107. package/dist/routes/webhooks.d.ts +9 -0
  108. package/dist/rpc.d.ts +11 -0
  109. package/dist/serve.d.ts +5 -0
  110. package/dist/services/activity-feed/activity-feed.service.d.ts +26 -0
  111. package/dist/services/applications/approval.service.d.ts +17 -0
  112. package/dist/services/auth/bankid-login.service.d.ts +40 -0
  113. package/dist/services/billing/constants.d.ts +2 -0
  114. package/dist/services/billing/contact-billing.service.d.ts +59 -0
  115. package/dist/services/billing/customer.service.d.ts +14 -0
  116. package/dist/services/billing/invoice-item.service.d.ts +49 -0
  117. package/dist/services/billing/invoice.service.d.ts +21 -0
  118. package/dist/services/billing/listing-upgrade-checkout.service.d.ts +45 -0
  119. package/dist/services/billing/purchase-receipt-email.d.ts +23 -0
  120. package/dist/services/billing/reveal-allowance.service.d.ts +33 -0
  121. package/dist/services/billing/stripe.d.ts +6 -0
  122. package/dist/services/billing/subscription.service.d.ts +21 -0
  123. package/dist/services/billing/types.d.ts +64 -0
  124. package/dist/services/billing/verify-session.service.d.ts +17 -0
  125. package/dist/services/billing/webhook.service.d.ts +8 -0
  126. package/dist/services/bostadsmerit/calculator.d.ts +51 -0
  127. package/dist/services/bostadsmerit/couple-calculator.d.ts +46 -0
  128. package/dist/services/bostadsmerit/tracker.service.d.ts +45 -0
  129. package/dist/services/chat-access/unlock-chat.service.d.ts +62 -0
  130. package/dist/services/conversations/upsert-conversation.d.ts +11 -0
  131. package/dist/services/email-jobs/email-job-sender.d.ts +7 -0
  132. package/dist/services/email-jobs/email-job.service.d.ts +67 -0
  133. package/dist/services/geo/bevakning-matching.service.d.ts +67 -0
  134. package/dist/services/geo/geo-listings.service.d.ts +38 -0
  135. package/dist/services/geo/geo.service.d.ts +233 -0
  136. package/dist/services/geo/geocode.service.d.ts +16 -0
  137. package/dist/services/geo/market-insights-by-coords.service.d.ts +67 -0
  138. package/dist/services/geo/market-insights.service.d.ts +44 -0
  139. package/dist/services/geo/market-overview.service.d.ts +42 -0
  140. package/dist/services/homii/image.d.ts +24 -0
  141. package/dist/services/homii/index.d.ts +12 -0
  142. package/dist/services/homii/location.d.ts +32 -0
  143. package/dist/services/homii/mapper.d.ts +41 -0
  144. package/dist/services/homii/types.d.ts +91 -0
  145. package/dist/services/leads/constants.d.ts +32 -0
  146. package/dist/services/leads/generate-leads.service.d.ts +38 -0
  147. package/dist/services/leads/matching.service.d.ts +55 -0
  148. package/dist/services/leads/tier.service.d.ts +6 -0
  149. package/dist/services/leads/types.d.ts +27 -0
  150. package/dist/services/listings/seo.service.d.ts +57 -0
  151. package/dist/services/listings/status.d.ts +37 -0
  152. package/dist/services/mejl/client.d.ts +38 -0
  153. package/dist/services/mrkoll/client.d.ts +95 -0
  154. package/dist/services/mrkoll/import.d.ts +38 -0
  155. package/dist/services/mrkoll/match.d.ts +35 -0
  156. package/dist/services/notifications/bibi-projects.d.ts +43 -0
  157. package/dist/services/notifications/bibi.d.ts +229 -0
  158. package/dist/services/profiles/bankid-verify.d.ts +23 -0
  159. package/dist/services/realtime.d.ts +14 -0
  160. package/dist/services/references/history-linker.d.ts +19 -0
  161. package/dist/services/tenant-boost/constants.d.ts +120 -0
  162. package/dist/services/tenant-boost/tenant-boost.service.d.ts +59 -0
  163. package/package.json +29 -0
@@ -0,0 +1,1846 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const listingsApp: OpenAPIHono<AppBindings, {
4
+ "/listings": {
5
+ $get: {
6
+ input: {};
7
+ output: {
8
+ error: string;
9
+ };
10
+ outputFormat: "json";
11
+ status: 401;
12
+ } | {
13
+ input: {};
14
+ output: {
15
+ status: string;
16
+ id: string;
17
+ shortId: string | null;
18
+ isFeatured: boolean;
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ slug: string | null;
22
+ countryCode: string;
23
+ lat: number | null;
24
+ lon: number | null;
25
+ geoLan: string | null;
26
+ geoKommun: string | null;
27
+ geoOmrade: string | null;
28
+ geoRoutePrefix: string | null;
29
+ propertyId: string | null;
30
+ currencyCode: string;
31
+ geo: string | number | boolean | any[] | {
32
+ [x: string]: any;
33
+ } | null;
34
+ publicUrl: string | null;
35
+ publicUrlEn: string | null;
36
+ position: number | null;
37
+ viewCount: number;
38
+ currentStep: number | null;
39
+ isLocked: boolean;
40
+ pendingReview: boolean;
41
+ rejectionComment: string | null;
42
+ submissionCount: number;
43
+ premiumListingPriceOre: number;
44
+ upgradedAt: string | null;
45
+ upgradeTier: number | null;
46
+ reviewedBy: string | null;
47
+ reviewedAt: string | null;
48
+ publishedAt: string | null;
49
+ applicationCount?: number | undefined;
50
+ }[];
51
+ outputFormat: "json";
52
+ status: 200;
53
+ };
54
+ };
55
+ } & {
56
+ "/listings": {
57
+ $post: {
58
+ input: {
59
+ json: {
60
+ propertyId?: string | null | undefined;
61
+ currentStep?: number | null | undefined;
62
+ };
63
+ };
64
+ output: {
65
+ error: string;
66
+ };
67
+ outputFormat: "json";
68
+ status: 401;
69
+ } | {
70
+ input: {
71
+ json: {
72
+ propertyId?: string | null | undefined;
73
+ currentStep?: number | null | undefined;
74
+ };
75
+ };
76
+ output: {
77
+ error: string;
78
+ };
79
+ outputFormat: "json";
80
+ status: 404;
81
+ } | {
82
+ input: {
83
+ json: {
84
+ propertyId?: string | null | undefined;
85
+ currentStep?: number | null | undefined;
86
+ };
87
+ };
88
+ output: {
89
+ error: string;
90
+ };
91
+ outputFormat: "json";
92
+ status: 400;
93
+ } | {
94
+ input: {
95
+ json: {
96
+ propertyId?: string | null | undefined;
97
+ currentStep?: number | null | undefined;
98
+ };
99
+ };
100
+ output: {
101
+ error: string;
102
+ };
103
+ outputFormat: "json";
104
+ status: 403;
105
+ } | {
106
+ input: {
107
+ json: {
108
+ propertyId?: string | null | undefined;
109
+ currentStep?: number | null | undefined;
110
+ };
111
+ };
112
+ output: {
113
+ status: string;
114
+ id: string;
115
+ shortId: string | null;
116
+ isFeatured: boolean;
117
+ createdAt: string;
118
+ updatedAt: string;
119
+ slug: string | null;
120
+ countryCode: string;
121
+ lat: number | null;
122
+ lon: number | null;
123
+ geoLan: string | null;
124
+ geoKommun: string | null;
125
+ geoOmrade: string | null;
126
+ geoRoutePrefix: string | null;
127
+ propertyId: string | null;
128
+ currencyCode: string;
129
+ geo: string | number | boolean | any[] | {
130
+ [x: string]: any;
131
+ } | null;
132
+ publicUrl: string | null;
133
+ publicUrlEn: string | null;
134
+ position: number | null;
135
+ viewCount: number;
136
+ currentStep: number | null;
137
+ isLocked: boolean;
138
+ pendingReview: boolean;
139
+ rejectionComment: string | null;
140
+ submissionCount: number;
141
+ premiumListingPriceOre: number;
142
+ upgradedAt: string | null;
143
+ upgradeTier: number | null;
144
+ reviewedBy: string | null;
145
+ reviewedAt: string | null;
146
+ publishedAt: string | null;
147
+ };
148
+ outputFormat: "json";
149
+ status: 201;
150
+ };
151
+ };
152
+ } & {
153
+ "/listings/ensure": {
154
+ $post: {
155
+ input: {
156
+ json: {
157
+ propertyId: string;
158
+ currentStep?: number | null | undefined;
159
+ };
160
+ };
161
+ output: {
162
+ error: string;
163
+ };
164
+ outputFormat: "json";
165
+ status: 401;
166
+ } | {
167
+ input: {
168
+ json: {
169
+ propertyId: string;
170
+ currentStep?: number | null | undefined;
171
+ };
172
+ };
173
+ output: {
174
+ error: string;
175
+ };
176
+ outputFormat: "json";
177
+ status: 404;
178
+ } | {
179
+ input: {
180
+ json: {
181
+ propertyId: string;
182
+ currentStep?: number | null | undefined;
183
+ };
184
+ };
185
+ output: {
186
+ error: string;
187
+ };
188
+ outputFormat: "json";
189
+ status: 400;
190
+ } | {
191
+ input: {
192
+ json: {
193
+ propertyId: string;
194
+ currentStep?: number | null | undefined;
195
+ };
196
+ };
197
+ output: {
198
+ error: string;
199
+ };
200
+ outputFormat: "json";
201
+ status: 403;
202
+ } | {
203
+ input: {
204
+ json: {
205
+ propertyId: string;
206
+ currentStep?: number | null | undefined;
207
+ };
208
+ };
209
+ output: {
210
+ status: string;
211
+ id: string;
212
+ shortId: string | null;
213
+ isFeatured: boolean;
214
+ createdAt: string;
215
+ updatedAt: string;
216
+ slug: string | null;
217
+ countryCode: string;
218
+ lat: number | null;
219
+ lon: number | null;
220
+ geoLan: string | null;
221
+ geoKommun: string | null;
222
+ geoOmrade: string | null;
223
+ geoRoutePrefix: string | null;
224
+ propertyId: string | null;
225
+ currencyCode: string;
226
+ geo: string | number | boolean | any[] | {
227
+ [x: string]: any;
228
+ } | null;
229
+ publicUrl: string | null;
230
+ publicUrlEn: string | null;
231
+ position: number | null;
232
+ viewCount: number;
233
+ currentStep: number | null;
234
+ isLocked: boolean;
235
+ pendingReview: boolean;
236
+ rejectionComment: string | null;
237
+ submissionCount: number;
238
+ premiumListingPriceOre: number;
239
+ upgradedAt: string | null;
240
+ upgradeTier: number | null;
241
+ reviewedBy: string | null;
242
+ reviewedAt: string | null;
243
+ publishedAt: string | null;
244
+ };
245
+ outputFormat: "json";
246
+ status: 201;
247
+ } | {
248
+ input: {
249
+ json: {
250
+ propertyId: string;
251
+ currentStep?: number | null | undefined;
252
+ };
253
+ };
254
+ output: {
255
+ status: string;
256
+ id: string;
257
+ shortId: string | null;
258
+ isFeatured: boolean;
259
+ createdAt: string;
260
+ updatedAt: string;
261
+ slug: string | null;
262
+ countryCode: string;
263
+ lat: number | null;
264
+ lon: number | null;
265
+ geoLan: string | null;
266
+ geoKommun: string | null;
267
+ geoOmrade: string | null;
268
+ geoRoutePrefix: string | null;
269
+ propertyId: string | null;
270
+ currencyCode: string;
271
+ geo: string | number | boolean | any[] | {
272
+ [x: string]: any;
273
+ } | null;
274
+ publicUrl: string | null;
275
+ publicUrlEn: string | null;
276
+ position: number | null;
277
+ viewCount: number;
278
+ currentStep: number | null;
279
+ isLocked: boolean;
280
+ pendingReview: boolean;
281
+ rejectionComment: string | null;
282
+ submissionCount: number;
283
+ premiumListingPriceOre: number;
284
+ upgradedAt: string | null;
285
+ upgradeTier: number | null;
286
+ reviewedBy: string | null;
287
+ reviewedAt: string | null;
288
+ publishedAt: string | null;
289
+ };
290
+ outputFormat: "json";
291
+ status: 200;
292
+ };
293
+ };
294
+ } & {
295
+ "/listings/:id": {
296
+ $get: {
297
+ input: {
298
+ param: {
299
+ id: string;
300
+ };
301
+ };
302
+ output: {
303
+ error: string;
304
+ };
305
+ outputFormat: "json";
306
+ status: 401;
307
+ } | {
308
+ input: {
309
+ param: {
310
+ id: string;
311
+ };
312
+ };
313
+ output: {
314
+ error: string;
315
+ };
316
+ outputFormat: "json";
317
+ status: 404;
318
+ } | {
319
+ input: {
320
+ param: {
321
+ id: string;
322
+ };
323
+ };
324
+ output: {
325
+ error: string;
326
+ };
327
+ outputFormat: "json";
328
+ status: 403;
329
+ } | {
330
+ input: {
331
+ param: {
332
+ id: string;
333
+ };
334
+ };
335
+ output: {
336
+ status: string;
337
+ id: string;
338
+ shortId: string | null;
339
+ isFeatured: boolean;
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ slug: string | null;
343
+ countryCode: string;
344
+ lat: number | null;
345
+ lon: number | null;
346
+ geoLan: string | null;
347
+ geoKommun: string | null;
348
+ geoOmrade: string | null;
349
+ geoRoutePrefix: string | null;
350
+ amenities: string[] | null;
351
+ includedUtilities: string[] | null;
352
+ propertyId: string | null;
353
+ currencyCode: string;
354
+ geo: string | number | boolean | any[] | {
355
+ [x: string]: any;
356
+ } | null;
357
+ publicUrl: string | null;
358
+ publicUrlEn: string | null;
359
+ position: number | null;
360
+ viewCount: number;
361
+ currentStep: number | null;
362
+ isLocked: boolean;
363
+ pendingReview: boolean;
364
+ rejectionComment: string | null;
365
+ submissionCount: number;
366
+ premiumListingPriceOre: number;
367
+ upgradedAt: string | null;
368
+ upgradeTier: number | null;
369
+ reviewedBy: string | null;
370
+ reviewedAt: string | null;
371
+ publishedAt: string | null;
372
+ images: {
373
+ url: string;
374
+ id: string;
375
+ createdAt: string;
376
+ propertyId: string;
377
+ urls: string | number | boolean | any[] | {
378
+ [x: string]: any;
379
+ } | null;
380
+ width: number | null;
381
+ height: number | null;
382
+ order: number;
383
+ isPrimary: boolean;
384
+ caption: string | null;
385
+ }[];
386
+ };
387
+ outputFormat: "json";
388
+ status: 200;
389
+ };
390
+ };
391
+ } & {
392
+ "/listings/:id": {
393
+ $patch: {
394
+ input: {
395
+ param: {
396
+ id: string;
397
+ };
398
+ } & {
399
+ json: {
400
+ currentStep?: number | null | undefined;
401
+ lastKnownUpdate?: string | undefined;
402
+ };
403
+ };
404
+ output: {
405
+ error: string;
406
+ };
407
+ outputFormat: "json";
408
+ status: 401;
409
+ } | {
410
+ input: {
411
+ param: {
412
+ id: string;
413
+ };
414
+ } & {
415
+ json: {
416
+ currentStep?: number | null | undefined;
417
+ lastKnownUpdate?: string | undefined;
418
+ };
419
+ };
420
+ output: {
421
+ error: string;
422
+ };
423
+ outputFormat: "json";
424
+ status: 404;
425
+ } | {
426
+ input: {
427
+ param: {
428
+ id: string;
429
+ };
430
+ } & {
431
+ json: {
432
+ currentStep?: number | null | undefined;
433
+ lastKnownUpdate?: string | undefined;
434
+ };
435
+ };
436
+ output: {
437
+ error: string;
438
+ };
439
+ outputFormat: "json";
440
+ status: 400;
441
+ } | {
442
+ input: {
443
+ param: {
444
+ id: string;
445
+ };
446
+ } & {
447
+ json: {
448
+ currentStep?: number | null | undefined;
449
+ lastKnownUpdate?: string | undefined;
450
+ };
451
+ };
452
+ output: {
453
+ error: string;
454
+ };
455
+ outputFormat: "json";
456
+ status: 403;
457
+ } | {
458
+ input: {
459
+ param: {
460
+ id: string;
461
+ };
462
+ } & {
463
+ json: {
464
+ currentStep?: number | null | undefined;
465
+ lastKnownUpdate?: string | undefined;
466
+ };
467
+ };
468
+ output: {
469
+ status: string;
470
+ id: string;
471
+ shortId: string | null;
472
+ isFeatured: boolean;
473
+ createdAt: string;
474
+ updatedAt: string;
475
+ slug: string | null;
476
+ countryCode: string;
477
+ lat: number | null;
478
+ lon: number | null;
479
+ geoLan: string | null;
480
+ geoKommun: string | null;
481
+ geoOmrade: string | null;
482
+ geoRoutePrefix: string | null;
483
+ propertyId: string | null;
484
+ currencyCode: string;
485
+ geo: string | number | boolean | any[] | {
486
+ [x: string]: any;
487
+ } | null;
488
+ publicUrl: string | null;
489
+ publicUrlEn: string | null;
490
+ position: number | null;
491
+ viewCount: number;
492
+ currentStep: number | null;
493
+ isLocked: boolean;
494
+ pendingReview: boolean;
495
+ rejectionComment: string | null;
496
+ submissionCount: number;
497
+ premiumListingPriceOre: number;
498
+ upgradedAt: string | null;
499
+ upgradeTier: number | null;
500
+ reviewedBy: string | null;
501
+ reviewedAt: string | null;
502
+ publishedAt: string | null;
503
+ };
504
+ outputFormat: "json";
505
+ status: 200;
506
+ } | {
507
+ input: {
508
+ param: {
509
+ id: string;
510
+ };
511
+ } & {
512
+ json: {
513
+ currentStep?: number | null | undefined;
514
+ lastKnownUpdate?: string | undefined;
515
+ };
516
+ };
517
+ output: {
518
+ error: string;
519
+ };
520
+ outputFormat: "json";
521
+ status: 409;
522
+ };
523
+ };
524
+ } & {
525
+ "/listings/:id": {
526
+ $delete: {
527
+ input: {
528
+ param: {
529
+ id: string;
530
+ };
531
+ };
532
+ output: {
533
+ error: string;
534
+ };
535
+ outputFormat: "json";
536
+ status: 401;
537
+ } | {
538
+ input: {
539
+ param: {
540
+ id: string;
541
+ };
542
+ };
543
+ output: {
544
+ error: string;
545
+ };
546
+ outputFormat: "json";
547
+ status: 404;
548
+ } | {
549
+ input: {
550
+ param: {
551
+ id: string;
552
+ };
553
+ };
554
+ output: {
555
+ error: string;
556
+ };
557
+ outputFormat: "json";
558
+ status: 403;
559
+ } | {
560
+ input: {
561
+ param: {
562
+ id: string;
563
+ };
564
+ };
565
+ output: {
566
+ success: boolean;
567
+ };
568
+ outputFormat: "json";
569
+ status: 200;
570
+ };
571
+ };
572
+ } & {
573
+ "/listings/:id/publish": {
574
+ $post: {
575
+ input: {
576
+ param: {
577
+ id: string;
578
+ };
579
+ } & {
580
+ json: {
581
+ action: "submit" | "resubmit" | "archive" | "unpublish" | "withdraw" | "unarchive";
582
+ };
583
+ };
584
+ output: {
585
+ error: string;
586
+ };
587
+ outputFormat: "json";
588
+ status: 401;
589
+ } | {
590
+ input: {
591
+ param: {
592
+ id: string;
593
+ };
594
+ } & {
595
+ json: {
596
+ action: "submit" | "resubmit" | "archive" | "unpublish" | "withdraw" | "unarchive";
597
+ };
598
+ };
599
+ output: {
600
+ error: string;
601
+ };
602
+ outputFormat: "json";
603
+ status: 404;
604
+ } | {
605
+ input: {
606
+ param: {
607
+ id: string;
608
+ };
609
+ } & {
610
+ json: {
611
+ action: "submit" | "resubmit" | "archive" | "unpublish" | "withdraw" | "unarchive";
612
+ };
613
+ };
614
+ output: {
615
+ error: string;
616
+ };
617
+ outputFormat: "json";
618
+ status: 400;
619
+ } | {
620
+ input: {
621
+ param: {
622
+ id: string;
623
+ };
624
+ } & {
625
+ json: {
626
+ action: "submit" | "resubmit" | "archive" | "unpublish" | "withdraw" | "unarchive";
627
+ };
628
+ };
629
+ output: {
630
+ error: string;
631
+ };
632
+ outputFormat: "json";
633
+ status: 403;
634
+ } | {
635
+ input: {
636
+ param: {
637
+ id: string;
638
+ };
639
+ } & {
640
+ json: {
641
+ action: "submit" | "resubmit" | "archive" | "unpublish" | "withdraw" | "unarchive";
642
+ };
643
+ };
644
+ output: {
645
+ status: string;
646
+ id: string;
647
+ shortId: string | null;
648
+ isFeatured: boolean;
649
+ createdAt: string;
650
+ updatedAt: string;
651
+ slug: string | null;
652
+ countryCode: string;
653
+ lat: number | null;
654
+ lon: number | null;
655
+ geoLan: string | null;
656
+ geoKommun: string | null;
657
+ geoOmrade: string | null;
658
+ geoRoutePrefix: string | null;
659
+ propertyId: string | null;
660
+ currencyCode: string;
661
+ geo: string | number | boolean | any[] | {
662
+ [x: string]: any;
663
+ } | null;
664
+ publicUrl: string | null;
665
+ publicUrlEn: string | null;
666
+ position: number | null;
667
+ viewCount: number;
668
+ currentStep: number | null;
669
+ isLocked: boolean;
670
+ pendingReview: boolean;
671
+ rejectionComment: string | null;
672
+ submissionCount: number;
673
+ premiumListingPriceOre: number;
674
+ upgradedAt: string | null;
675
+ upgradeTier: number | null;
676
+ reviewedBy: string | null;
677
+ reviewedAt: string | null;
678
+ publishedAt: string | null;
679
+ };
680
+ outputFormat: "json";
681
+ status: 200;
682
+ };
683
+ };
684
+ } & {
685
+ "/listings/:id/images": {
686
+ $get: {
687
+ input: {
688
+ param: {
689
+ id: string;
690
+ };
691
+ };
692
+ output: {
693
+ error: string;
694
+ };
695
+ outputFormat: "json";
696
+ status: 401;
697
+ } | {
698
+ input: {
699
+ param: {
700
+ id: string;
701
+ };
702
+ };
703
+ output: {
704
+ error: string;
705
+ };
706
+ outputFormat: "json";
707
+ status: 404;
708
+ } | {
709
+ input: {
710
+ param: {
711
+ id: string;
712
+ };
713
+ };
714
+ output: {
715
+ error: string;
716
+ };
717
+ outputFormat: "json";
718
+ status: 403;
719
+ } | {
720
+ input: {
721
+ param: {
722
+ id: string;
723
+ };
724
+ };
725
+ output: {
726
+ url: string;
727
+ id: string;
728
+ createdAt: string;
729
+ propertyId: string;
730
+ urls: string | number | boolean | any[] | {
731
+ [x: string]: any;
732
+ } | null;
733
+ width: number | null;
734
+ height: number | null;
735
+ order: number;
736
+ isPrimary: boolean;
737
+ caption: string | null;
738
+ }[];
739
+ outputFormat: "json";
740
+ status: 200;
741
+ };
742
+ };
743
+ } & {
744
+ "/listings/:id/images": {
745
+ $post: {
746
+ input: {
747
+ param: {
748
+ id: string;
749
+ };
750
+ } & {
751
+ json: {
752
+ url: string;
753
+ urls?: Record<string, string> | undefined;
754
+ width?: number | undefined;
755
+ height?: number | undefined;
756
+ isPrimary?: boolean | undefined;
757
+ caption?: string | undefined;
758
+ };
759
+ };
760
+ output: {
761
+ error: string;
762
+ };
763
+ outputFormat: "json";
764
+ status: 401;
765
+ } | {
766
+ input: {
767
+ param: {
768
+ id: string;
769
+ };
770
+ } & {
771
+ json: {
772
+ url: string;
773
+ urls?: Record<string, string> | undefined;
774
+ width?: number | undefined;
775
+ height?: number | undefined;
776
+ isPrimary?: boolean | undefined;
777
+ caption?: string | undefined;
778
+ };
779
+ };
780
+ output: {
781
+ error: string;
782
+ };
783
+ outputFormat: "json";
784
+ status: 404;
785
+ } | {
786
+ input: {
787
+ param: {
788
+ id: string;
789
+ };
790
+ } & {
791
+ json: {
792
+ url: string;
793
+ urls?: Record<string, string> | undefined;
794
+ width?: number | undefined;
795
+ height?: number | undefined;
796
+ isPrimary?: boolean | undefined;
797
+ caption?: string | undefined;
798
+ };
799
+ };
800
+ output: {
801
+ error: string;
802
+ };
803
+ outputFormat: "json";
804
+ status: 400;
805
+ } | {
806
+ input: {
807
+ param: {
808
+ id: string;
809
+ };
810
+ } & {
811
+ json: {
812
+ url: string;
813
+ urls?: Record<string, string> | undefined;
814
+ width?: number | undefined;
815
+ height?: number | undefined;
816
+ isPrimary?: boolean | undefined;
817
+ caption?: string | undefined;
818
+ };
819
+ };
820
+ output: {
821
+ error: string;
822
+ };
823
+ outputFormat: "json";
824
+ status: 403;
825
+ } | {
826
+ input: {
827
+ param: {
828
+ id: string;
829
+ };
830
+ } & {
831
+ json: {
832
+ url: string;
833
+ urls?: Record<string, string> | undefined;
834
+ width?: number | undefined;
835
+ height?: number | undefined;
836
+ isPrimary?: boolean | undefined;
837
+ caption?: string | undefined;
838
+ };
839
+ };
840
+ output: {
841
+ url: string;
842
+ id: string;
843
+ createdAt: string;
844
+ propertyId: string;
845
+ urls: string | number | boolean | any[] | {
846
+ [x: string]: any;
847
+ } | null;
848
+ width: number | null;
849
+ height: number | null;
850
+ order: number;
851
+ isPrimary: boolean;
852
+ caption: string | null;
853
+ };
854
+ outputFormat: "json";
855
+ status: 201;
856
+ };
857
+ };
858
+ } & {
859
+ "/listings/:id/images/:imageId": {
860
+ $delete: {
861
+ input: {
862
+ param: {
863
+ id: string;
864
+ imageId: string;
865
+ };
866
+ };
867
+ output: {
868
+ error: string;
869
+ };
870
+ outputFormat: "json";
871
+ status: 401;
872
+ } | {
873
+ input: {
874
+ param: {
875
+ id: string;
876
+ imageId: string;
877
+ };
878
+ };
879
+ output: {
880
+ error: string;
881
+ };
882
+ outputFormat: "json";
883
+ status: 404;
884
+ } | {
885
+ input: {
886
+ param: {
887
+ id: string;
888
+ imageId: string;
889
+ };
890
+ };
891
+ output: {
892
+ error: string;
893
+ };
894
+ outputFormat: "json";
895
+ status: 403;
896
+ } | {
897
+ input: {
898
+ param: {
899
+ id: string;
900
+ imageId: string;
901
+ };
902
+ };
903
+ output: {
904
+ success: boolean;
905
+ };
906
+ outputFormat: "json";
907
+ status: 200;
908
+ };
909
+ };
910
+ } & {
911
+ "/listings/:id/seo": {
912
+ $post: {
913
+ input: {
914
+ param: {
915
+ id: string;
916
+ };
917
+ } & {
918
+ json: {
919
+ slug: string;
920
+ regionSlug: string;
921
+ municipalitySlug: string;
922
+ områdeSlug: string;
923
+ routePrefix: "hyra-lagenhet" | "hyra-hus";
924
+ fullPath: string;
925
+ fullPathEn: string;
926
+ isCardinalFallback: boolean;
927
+ generatedAt?: string | undefined;
928
+ };
929
+ };
930
+ output: {
931
+ error: string;
932
+ };
933
+ outputFormat: "json";
934
+ status: 404;
935
+ } | {
936
+ input: {
937
+ param: {
938
+ id: string;
939
+ };
940
+ } & {
941
+ json: {
942
+ slug: string;
943
+ regionSlug: string;
944
+ municipalitySlug: string;
945
+ områdeSlug: string;
946
+ routePrefix: "hyra-lagenhet" | "hyra-hus";
947
+ fullPath: string;
948
+ fullPathEn: string;
949
+ isCardinalFallback: boolean;
950
+ generatedAt?: string | undefined;
951
+ };
952
+ };
953
+ output: {
954
+ error: string;
955
+ };
956
+ outputFormat: "json";
957
+ status: 403;
958
+ } | {
959
+ input: {
960
+ param: {
961
+ id: string;
962
+ };
963
+ } & {
964
+ json: {
965
+ slug: string;
966
+ regionSlug: string;
967
+ municipalitySlug: string;
968
+ områdeSlug: string;
969
+ routePrefix: "hyra-lagenhet" | "hyra-hus";
970
+ fullPath: string;
971
+ fullPathEn: string;
972
+ isCardinalFallback: boolean;
973
+ generatedAt?: string | undefined;
974
+ };
975
+ };
976
+ output: {
977
+ success: boolean;
978
+ fullPath: string;
979
+ };
980
+ outputFormat: "json";
981
+ status: 200;
982
+ };
983
+ };
984
+ } & {
985
+ "/listings/:id/daily-views": {
986
+ $get: {
987
+ input: {
988
+ param: {
989
+ id: string;
990
+ };
991
+ } & {
992
+ query: {
993
+ days?: number | undefined;
994
+ };
995
+ };
996
+ output: {
997
+ error: string;
998
+ };
999
+ outputFormat: "json";
1000
+ status: 401;
1001
+ } | {
1002
+ input: {
1003
+ param: {
1004
+ id: string;
1005
+ };
1006
+ } & {
1007
+ query: {
1008
+ days?: number | undefined;
1009
+ };
1010
+ };
1011
+ output: {
1012
+ error: string;
1013
+ };
1014
+ outputFormat: "json";
1015
+ status: 404;
1016
+ } | {
1017
+ input: {
1018
+ param: {
1019
+ id: string;
1020
+ };
1021
+ } & {
1022
+ query: {
1023
+ days?: number | undefined;
1024
+ };
1025
+ };
1026
+ output: {
1027
+ error: string;
1028
+ };
1029
+ outputFormat: "json";
1030
+ status: 403;
1031
+ } | {
1032
+ input: {
1033
+ param: {
1034
+ id: string;
1035
+ };
1036
+ } & {
1037
+ query: {
1038
+ days?: number | undefined;
1039
+ };
1040
+ };
1041
+ output: {
1042
+ listingId: string;
1043
+ dailyViews: {
1044
+ date: string;
1045
+ views: number;
1046
+ }[];
1047
+ totalViews: number;
1048
+ };
1049
+ outputFormat: "json";
1050
+ status: 200;
1051
+ };
1052
+ };
1053
+ } & {
1054
+ "/listings/admin/pending": {
1055
+ $get: {
1056
+ input: {};
1057
+ output: {
1058
+ error: string;
1059
+ };
1060
+ outputFormat: "json";
1061
+ status: 401;
1062
+ } | {
1063
+ input: {};
1064
+ output: {
1065
+ error: string;
1066
+ };
1067
+ outputFormat: "json";
1068
+ status: 403;
1069
+ } | {
1070
+ input: {};
1071
+ output: {
1072
+ description: string | null;
1073
+ status: string;
1074
+ id: string;
1075
+ createdAt: string;
1076
+ updatedAt: string;
1077
+ companyName: string | null;
1078
+ street: string | null;
1079
+ streetNumber: string | null;
1080
+ city: string | null;
1081
+ propertyType: string | null;
1082
+ baseMonthlyRent: number | null;
1083
+ pendingReview: boolean;
1084
+ submissionCount: number;
1085
+ landlordName: string;
1086
+ landlordEmail: string | null;
1087
+ imageCount: number;
1088
+ landlordFullName: string | null;
1089
+ landlordPersonnummer: string | null;
1090
+ landlordPhoneNumber: string | null;
1091
+ }[];
1092
+ outputFormat: "json";
1093
+ status: 200;
1094
+ };
1095
+ };
1096
+ } & {
1097
+ "/listings/admin/all": {
1098
+ $get: {
1099
+ input: {
1100
+ query: {
1101
+ status?: string | undefined;
1102
+ search?: string | undefined;
1103
+ limit?: number | undefined;
1104
+ city?: string | undefined;
1105
+ propertyType?: string | undefined;
1106
+ pendingReview?: "true" | "false" | undefined;
1107
+ offset?: number | undefined;
1108
+ premium?: "true" | "false" | undefined;
1109
+ landlordType?: "private" | "company" | "fastighetsbolag" | undefined;
1110
+ sortField?: "createdAt" | "updatedAt" | "baseMonthlyRent" | "viewCount" | undefined;
1111
+ sortDir?: "asc" | "desc" | undefined;
1112
+ };
1113
+ };
1114
+ output: {
1115
+ error: string;
1116
+ };
1117
+ outputFormat: "json";
1118
+ status: 401;
1119
+ } | {
1120
+ input: {
1121
+ query: {
1122
+ status?: string | undefined;
1123
+ search?: string | undefined;
1124
+ limit?: number | undefined;
1125
+ city?: string | undefined;
1126
+ propertyType?: string | undefined;
1127
+ pendingReview?: "true" | "false" | undefined;
1128
+ offset?: number | undefined;
1129
+ premium?: "true" | "false" | undefined;
1130
+ landlordType?: "private" | "company" | "fastighetsbolag" | undefined;
1131
+ sortField?: "createdAt" | "updatedAt" | "baseMonthlyRent" | "viewCount" | undefined;
1132
+ sortDir?: "asc" | "desc" | undefined;
1133
+ };
1134
+ };
1135
+ output: {
1136
+ error: string;
1137
+ };
1138
+ outputFormat: "json";
1139
+ status: 403;
1140
+ } | {
1141
+ input: {
1142
+ query: {
1143
+ status?: string | undefined;
1144
+ search?: string | undefined;
1145
+ limit?: number | undefined;
1146
+ city?: string | undefined;
1147
+ propertyType?: string | undefined;
1148
+ pendingReview?: "true" | "false" | undefined;
1149
+ offset?: number | undefined;
1150
+ premium?: "true" | "false" | undefined;
1151
+ landlordType?: "private" | "company" | "fastighetsbolag" | undefined;
1152
+ sortField?: "createdAt" | "updatedAt" | "baseMonthlyRent" | "viewCount" | undefined;
1153
+ sortDir?: "asc" | "desc" | undefined;
1154
+ };
1155
+ };
1156
+ output: {
1157
+ items: {
1158
+ publications: {
1159
+ status: string;
1160
+ id: string;
1161
+ publishedAt: string;
1162
+ channel: string;
1163
+ broadcastStatus: string | null;
1164
+ }[];
1165
+ description: string | null;
1166
+ status: string;
1167
+ id: string;
1168
+ shortId: string | null;
1169
+ companyId: string | null;
1170
+ isFeatured: boolean;
1171
+ createdAt: string;
1172
+ updatedAt: string;
1173
+ landlordId: string;
1174
+ companyName: string | null;
1175
+ slug: string | null;
1176
+ isFastighetsbolag: boolean | null;
1177
+ street: string | null;
1178
+ streetNumber: string | null;
1179
+ postalCode: string | null;
1180
+ city: string | null;
1181
+ propertyType: string | null;
1182
+ propertySize: number | null;
1183
+ totalRooms: number | null;
1184
+ baseMonthlyRent: number | null;
1185
+ propertyId: string;
1186
+ publicUrl: string | null;
1187
+ viewCount: number;
1188
+ pendingReview: boolean;
1189
+ submissionCount: number;
1190
+ upgradedAt: string | null;
1191
+ upgradeTier: number | null;
1192
+ publishedAt: string | null;
1193
+ landlordName: string;
1194
+ landlordEmail: string | null;
1195
+ imageCount: number;
1196
+ images: {
1197
+ url: string;
1198
+ order: number;
1199
+ isPrimary: boolean;
1200
+ urls?: import("hono/utils/types").JSONValue | undefined;
1201
+ }[];
1202
+ companyLogoUrl: string | null;
1203
+ landlordFullName: string | null;
1204
+ landlordPersonnummer: string | null;
1205
+ landlordPhoneNumber: string | null;
1206
+ landlordAuthUserId: string | null;
1207
+ landlordProfilePictureUrl: string | null;
1208
+ landlordBusinessType: string | null;
1209
+ propertyCreatedAt: string;
1210
+ emailHistory: {
1211
+ status: string;
1212
+ subject: string;
1213
+ id: string;
1214
+ createdAt: string;
1215
+ recipientEmail: string;
1216
+ templateName: string;
1217
+ transport: string | null;
1218
+ }[];
1219
+ }[];
1220
+ limit: number;
1221
+ offset: number;
1222
+ total: number;
1223
+ };
1224
+ outputFormat: "json";
1225
+ status: 200;
1226
+ };
1227
+ };
1228
+ } & {
1229
+ "/listings/:id/review": {
1230
+ $post: {
1231
+ input: {
1232
+ param: {
1233
+ id: string;
1234
+ };
1235
+ } & {
1236
+ json: {
1237
+ decision: "approve" | "reject";
1238
+ rejectionComment?: string | undefined;
1239
+ skipEmailJob?: boolean | undefined;
1240
+ skipHomii?: boolean | undefined;
1241
+ };
1242
+ };
1243
+ output: {
1244
+ error: string;
1245
+ };
1246
+ outputFormat: "json";
1247
+ status: 401;
1248
+ } | {
1249
+ input: {
1250
+ param: {
1251
+ id: string;
1252
+ };
1253
+ } & {
1254
+ json: {
1255
+ decision: "approve" | "reject";
1256
+ rejectionComment?: string | undefined;
1257
+ skipEmailJob?: boolean | undefined;
1258
+ skipHomii?: boolean | undefined;
1259
+ };
1260
+ };
1261
+ output: {
1262
+ error: string;
1263
+ };
1264
+ outputFormat: "json";
1265
+ status: 404;
1266
+ } | {
1267
+ input: {
1268
+ param: {
1269
+ id: string;
1270
+ };
1271
+ } & {
1272
+ json: {
1273
+ decision: "approve" | "reject";
1274
+ rejectionComment?: string | undefined;
1275
+ skipEmailJob?: boolean | undefined;
1276
+ skipHomii?: boolean | undefined;
1277
+ };
1278
+ };
1279
+ output: {
1280
+ error: string;
1281
+ };
1282
+ outputFormat: "json";
1283
+ status: 400;
1284
+ } | {
1285
+ input: {
1286
+ param: {
1287
+ id: string;
1288
+ };
1289
+ } & {
1290
+ json: {
1291
+ decision: "approve" | "reject";
1292
+ rejectionComment?: string | undefined;
1293
+ skipEmailJob?: boolean | undefined;
1294
+ skipHomii?: boolean | undefined;
1295
+ };
1296
+ };
1297
+ output: {
1298
+ error: string;
1299
+ };
1300
+ outputFormat: "json";
1301
+ status: 403;
1302
+ } | {
1303
+ input: {
1304
+ param: {
1305
+ id: string;
1306
+ };
1307
+ } & {
1308
+ json: {
1309
+ decision: "approve" | "reject";
1310
+ rejectionComment?: string | undefined;
1311
+ skipEmailJob?: boolean | undefined;
1312
+ skipHomii?: boolean | undefined;
1313
+ };
1314
+ };
1315
+ output: {
1316
+ status: string;
1317
+ id: string;
1318
+ shortId: string | null;
1319
+ isFeatured: boolean;
1320
+ createdAt: string;
1321
+ updatedAt: string;
1322
+ slug: string | null;
1323
+ countryCode: string;
1324
+ lat: number | null;
1325
+ lon: number | null;
1326
+ geoLan: string | null;
1327
+ geoKommun: string | null;
1328
+ geoOmrade: string | null;
1329
+ geoRoutePrefix: string | null;
1330
+ propertyId: string | null;
1331
+ currencyCode: string;
1332
+ geo: string | number | boolean | any[] | {
1333
+ [x: string]: any;
1334
+ } | null;
1335
+ publicUrl: string | null;
1336
+ publicUrlEn: string | null;
1337
+ position: number | null;
1338
+ viewCount: number;
1339
+ currentStep: number | null;
1340
+ isLocked: boolean;
1341
+ pendingReview: boolean;
1342
+ rejectionComment: string | null;
1343
+ submissionCount: number;
1344
+ premiumListingPriceOre: number;
1345
+ upgradedAt: string | null;
1346
+ upgradeTier: number | null;
1347
+ reviewedBy: string | null;
1348
+ reviewedAt: string | null;
1349
+ publishedAt: string | null;
1350
+ };
1351
+ outputFormat: "json";
1352
+ status: 200;
1353
+ };
1354
+ };
1355
+ } & {
1356
+ "/listings/:id/reviews": {
1357
+ $get: {
1358
+ input: {
1359
+ param: {
1360
+ id: string;
1361
+ };
1362
+ };
1363
+ output: {
1364
+ error: string;
1365
+ };
1366
+ outputFormat: "json";
1367
+ status: 401;
1368
+ } | {
1369
+ input: {
1370
+ param: {
1371
+ id: string;
1372
+ };
1373
+ };
1374
+ output: {
1375
+ error: string;
1376
+ };
1377
+ outputFormat: "json";
1378
+ status: 403;
1379
+ } | {
1380
+ input: {
1381
+ param: {
1382
+ id: string;
1383
+ };
1384
+ };
1385
+ output: {
1386
+ id: string;
1387
+ createdAt: string;
1388
+ listingId: string;
1389
+ adminId: string | null;
1390
+ aiDecision: string | null;
1391
+ aiScore: number | null;
1392
+ aiRejectionReason: string | null;
1393
+ fraudIndicators: string[] | null;
1394
+ improvementSuggestions: string[] | null;
1395
+ validationMethod: string | null;
1396
+ adminName: string | null;
1397
+ }[];
1398
+ outputFormat: "json";
1399
+ status: 200;
1400
+ };
1401
+ };
1402
+ } & {
1403
+ "/listings/:id/bevakning-reach": {
1404
+ $get: {
1405
+ input: {
1406
+ param: {
1407
+ id: string;
1408
+ };
1409
+ };
1410
+ output: {
1411
+ error: string;
1412
+ };
1413
+ outputFormat: "json";
1414
+ status: 404;
1415
+ } | {
1416
+ input: {
1417
+ param: {
1418
+ id: string;
1419
+ };
1420
+ };
1421
+ output: {
1422
+ matchingBevakningar: number;
1423
+ };
1424
+ outputFormat: "json";
1425
+ status: 200;
1426
+ };
1427
+ };
1428
+ } & {
1429
+ "/listings/:id/send-to-watchers": {
1430
+ $post: {
1431
+ input: {
1432
+ param: {
1433
+ id: string;
1434
+ };
1435
+ };
1436
+ output: {
1437
+ error: string;
1438
+ };
1439
+ outputFormat: "json";
1440
+ status: 404;
1441
+ } | {
1442
+ input: {
1443
+ param: {
1444
+ id: string;
1445
+ };
1446
+ };
1447
+ output: {
1448
+ error: string;
1449
+ };
1450
+ outputFormat: "json";
1451
+ status: 403;
1452
+ } | {
1453
+ input: {
1454
+ param: {
1455
+ id: string;
1456
+ };
1457
+ };
1458
+ output: {
1459
+ error: string;
1460
+ };
1461
+ outputFormat: "json";
1462
+ status: 409;
1463
+ } | {
1464
+ input: {
1465
+ param: {
1466
+ id: string;
1467
+ };
1468
+ };
1469
+ output: {
1470
+ status: "queued" | "no_recipients";
1471
+ jobId: string;
1472
+ total: number;
1473
+ };
1474
+ outputFormat: "json";
1475
+ status: 200;
1476
+ };
1477
+ };
1478
+ } & {
1479
+ "/listings/:id/email-job-status": {
1480
+ $get: {
1481
+ input: {
1482
+ param: {
1483
+ id: string;
1484
+ };
1485
+ } & {
1486
+ query: {
1487
+ jobId: string;
1488
+ };
1489
+ };
1490
+ output: {
1491
+ error: string;
1492
+ };
1493
+ outputFormat: "json";
1494
+ status: 404;
1495
+ } | {
1496
+ input: {
1497
+ param: {
1498
+ id: string;
1499
+ };
1500
+ } & {
1501
+ query: {
1502
+ jobId: string;
1503
+ };
1504
+ };
1505
+ output: {
1506
+ status: string;
1507
+ id: string;
1508
+ totalItems: number;
1509
+ sentCount: number;
1510
+ failedCount: number;
1511
+ pendingCount: number;
1512
+ };
1513
+ outputFormat: "json";
1514
+ status: 200;
1515
+ };
1516
+ };
1517
+ } & {
1518
+ "/listings/admin/:id/billing": {
1519
+ $get: {
1520
+ input: {
1521
+ param: {
1522
+ id: string;
1523
+ };
1524
+ };
1525
+ output: {
1526
+ error: string;
1527
+ };
1528
+ outputFormat: "json";
1529
+ status: 404;
1530
+ } | {
1531
+ input: {
1532
+ param: {
1533
+ id: string;
1534
+ };
1535
+ };
1536
+ output: {
1537
+ premiumListingPriceOre: number;
1538
+ upgradeTier: number | null;
1539
+ listingId: string;
1540
+ invoiceItems: {
1541
+ description: string;
1542
+ type: string;
1543
+ status: string;
1544
+ id: string;
1545
+ createdAt: string;
1546
+ totalOre: number;
1547
+ billingPeriod: string;
1548
+ sourceType: string | null;
1549
+ }[];
1550
+ totalReveals: number;
1551
+ totalConversations: number;
1552
+ totalApplications: number;
1553
+ revealedApplications: number;
1554
+ revealedLeads: number;
1555
+ totalRevenueOre: number;
1556
+ };
1557
+ outputFormat: "json";
1558
+ status: 200;
1559
+ };
1560
+ };
1561
+ } & {
1562
+ "/listings/:id/nudge": {
1563
+ $post: {
1564
+ input: {
1565
+ param: {
1566
+ id: string;
1567
+ };
1568
+ };
1569
+ output: {
1570
+ error: string;
1571
+ };
1572
+ outputFormat: "json";
1573
+ status: 401;
1574
+ } | {
1575
+ input: {
1576
+ param: {
1577
+ id: string;
1578
+ };
1579
+ };
1580
+ output: {
1581
+ error: string;
1582
+ };
1583
+ outputFormat: "json";
1584
+ status: 404;
1585
+ } | {
1586
+ input: {
1587
+ param: {
1588
+ id: string;
1589
+ };
1590
+ };
1591
+ output: {
1592
+ error: string;
1593
+ };
1594
+ outputFormat: "json";
1595
+ status: 400;
1596
+ } | {
1597
+ input: {
1598
+ param: {
1599
+ id: string;
1600
+ };
1601
+ };
1602
+ output: {
1603
+ error: string;
1604
+ };
1605
+ outputFormat: "json";
1606
+ status: 403;
1607
+ } | {
1608
+ input: {
1609
+ param: {
1610
+ id: string;
1611
+ };
1612
+ };
1613
+ output: {
1614
+ success: boolean;
1615
+ isReady: boolean;
1616
+ missingFields: string[];
1617
+ };
1618
+ outputFormat: "json";
1619
+ status: 200;
1620
+ };
1621
+ };
1622
+ } & {
1623
+ "/listings/admin/:id/hard-delete": {
1624
+ $delete: {
1625
+ input: {
1626
+ param: {
1627
+ id: string;
1628
+ };
1629
+ };
1630
+ output: {
1631
+ error: string;
1632
+ };
1633
+ outputFormat: "json";
1634
+ status: 401;
1635
+ } | {
1636
+ input: {
1637
+ param: {
1638
+ id: string;
1639
+ };
1640
+ };
1641
+ output: {
1642
+ error: string;
1643
+ };
1644
+ outputFormat: "json";
1645
+ status: 404;
1646
+ } | {
1647
+ input: {
1648
+ param: {
1649
+ id: string;
1650
+ };
1651
+ };
1652
+ output: {
1653
+ error: string;
1654
+ };
1655
+ outputFormat: "json";
1656
+ status: 403;
1657
+ } | {
1658
+ input: {
1659
+ param: {
1660
+ id: string;
1661
+ };
1662
+ };
1663
+ output: {
1664
+ success: boolean;
1665
+ };
1666
+ outputFormat: "json";
1667
+ status: 200;
1668
+ };
1669
+ };
1670
+ } & {
1671
+ "/listings/admin/:id/upgrade": {
1672
+ $post: {
1673
+ input: {
1674
+ param: {
1675
+ id: string;
1676
+ };
1677
+ };
1678
+ output: {
1679
+ error: string;
1680
+ };
1681
+ outputFormat: "json";
1682
+ status: 401;
1683
+ } | {
1684
+ input: {
1685
+ param: {
1686
+ id: string;
1687
+ };
1688
+ };
1689
+ output: {
1690
+ error: string;
1691
+ };
1692
+ outputFormat: "json";
1693
+ status: 404;
1694
+ } | {
1695
+ input: {
1696
+ param: {
1697
+ id: string;
1698
+ };
1699
+ };
1700
+ output: {
1701
+ error: string;
1702
+ };
1703
+ outputFormat: "json";
1704
+ status: 403;
1705
+ } | {
1706
+ input: {
1707
+ param: {
1708
+ id: string;
1709
+ };
1710
+ };
1711
+ output: {
1712
+ success: boolean;
1713
+ alreadyUpgraded: boolean;
1714
+ applicationsRevealed: number;
1715
+ };
1716
+ outputFormat: "json";
1717
+ status: 200;
1718
+ };
1719
+ };
1720
+ } & {
1721
+ "/listings/admin/property/:propertyId": {
1722
+ $get: {
1723
+ input: {
1724
+ param: {
1725
+ propertyId: string;
1726
+ };
1727
+ };
1728
+ output: {
1729
+ error: string;
1730
+ };
1731
+ outputFormat: "json";
1732
+ status: 401;
1733
+ } | {
1734
+ input: {
1735
+ param: {
1736
+ propertyId: string;
1737
+ };
1738
+ };
1739
+ output: {
1740
+ error: string;
1741
+ };
1742
+ outputFormat: "json";
1743
+ status: 404;
1744
+ } | {
1745
+ input: {
1746
+ param: {
1747
+ propertyId: string;
1748
+ };
1749
+ };
1750
+ output: {
1751
+ error: string;
1752
+ };
1753
+ outputFormat: "json";
1754
+ status: 403;
1755
+ } | {
1756
+ input: {
1757
+ param: {
1758
+ propertyId: string;
1759
+ };
1760
+ };
1761
+ output: {
1762
+ imageCount: number;
1763
+ company: {
1764
+ name: string | null;
1765
+ id: string;
1766
+ logoUrl: string | null;
1767
+ orgNumber: string | null;
1768
+ } | null;
1769
+ landlord: {
1770
+ email: string | null;
1771
+ id: string;
1772
+ personnummer: string | null;
1773
+ displayName: string;
1774
+ fullName: string | null;
1775
+ phoneNumber: string | null;
1776
+ profilePictureUrl: string | null;
1777
+ businessType: string | null;
1778
+ stripeCustomerId: string | null;
1779
+ lastLoginAt: string | null;
1780
+ createdAt: string;
1781
+ authUserId: string | null;
1782
+ idVerificationStatus: string | null;
1783
+ };
1784
+ property: {
1785
+ description: string | null;
1786
+ status: string | null;
1787
+ id: string;
1788
+ shortId: string | null;
1789
+ createdAt: string;
1790
+ updatedAt: string;
1791
+ street: string | null;
1792
+ streetNumber: string | null;
1793
+ postalCode: string | null;
1794
+ city: string | null;
1795
+ municipality: string | null;
1796
+ neighborhood: string | null;
1797
+ propertyType: string | null;
1798
+ legalTenure: string | null;
1799
+ furnishingStatus: string | null;
1800
+ propertySize: number | null;
1801
+ totalRooms: number | null;
1802
+ floor: number | null;
1803
+ maxOccupancy: number | null;
1804
+ petsAllowed: string | null;
1805
+ amenities: string[] | null;
1806
+ includedUtilities: string[] | null;
1807
+ costPerMonth: number | null;
1808
+ baseMonthlyRent: number | null;
1809
+ additionalCosts: number | null;
1810
+ deposit: number | null;
1811
+ rentalStart: string | null;
1812
+ rentalEnd: string | null;
1813
+ extensionPossible: boolean | null;
1814
+ descriptionEn: string | null;
1815
+ };
1816
+ listings: {
1817
+ publications: {
1818
+ status: string;
1819
+ id: string;
1820
+ publishedAt: string;
1821
+ channel: string;
1822
+ broadcastStatus: string | null;
1823
+ }[];
1824
+ status: string;
1825
+ id: string;
1826
+ shortId: string | null;
1827
+ isFeatured: boolean;
1828
+ createdAt: string;
1829
+ updatedAt: string;
1830
+ slug: string | null;
1831
+ publicUrl: string | null;
1832
+ viewCount: number;
1833
+ pendingReview: boolean;
1834
+ submissionCount: number;
1835
+ upgradedAt: string | null;
1836
+ upgradeTier: number | null;
1837
+ publishedAt: string | null;
1838
+ applicationCount: number;
1839
+ leadCount: number;
1840
+ }[];
1841
+ };
1842
+ outputFormat: "json";
1843
+ status: 200;
1844
+ };
1845
+ };
1846
+ }, "/">;