@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,43 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const healthApp: OpenAPIHono<AppBindings, {
4
+ "/health": {
5
+ $get: {
6
+ input: {};
7
+ output: {
8
+ service: string;
9
+ version: string;
10
+ environment: string;
11
+ healthy: boolean;
12
+ timestamp: string;
13
+ uptime: number;
14
+ checks: {
15
+ environment: boolean;
16
+ database: boolean;
17
+ datalake: boolean;
18
+ };
19
+ missing?: string[] | undefined;
20
+ };
21
+ outputFormat: "json";
22
+ status: 200;
23
+ } | {
24
+ input: {};
25
+ output: {
26
+ service: string;
27
+ version: string;
28
+ environment: string;
29
+ healthy: boolean;
30
+ timestamp: string;
31
+ uptime: number;
32
+ checks: {
33
+ environment: boolean;
34
+ database: boolean;
35
+ datalake: boolean;
36
+ };
37
+ missing?: string[] | undefined;
38
+ };
39
+ outputFormat: "json";
40
+ status: 503;
41
+ };
42
+ };
43
+ }, "/">;
@@ -0,0 +1,381 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const housingHistoryApp: OpenAPIHono<AppBindings, {
4
+ "/housing-history": {
5
+ $get: {
6
+ input: {};
7
+ output: {
8
+ error: string;
9
+ };
10
+ outputFormat: "json";
11
+ status: 401;
12
+ } | {
13
+ input: {};
14
+ output: {
15
+ entries: {
16
+ id: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ street: string | null;
20
+ postalCode: string | null;
21
+ city: string | null;
22
+ userId: string;
23
+ moveInDate: string | null;
24
+ moveOutDate: string | null;
25
+ monthlyRent: number | null;
26
+ isCurrent: boolean;
27
+ housingType: string | null;
28
+ dataSource: string;
29
+ landlordName: string | null;
30
+ landlordEmail: string | null;
31
+ landlordPhone: string | null;
32
+ reasonForLeaving: string | null;
33
+ verified: boolean;
34
+ verifiedAt: string | null;
35
+ referenceRequestId: string | null;
36
+ verifiedBy: string | null;
37
+ }[];
38
+ };
39
+ outputFormat: "json";
40
+ status: 200;
41
+ };
42
+ };
43
+ } & {
44
+ "/housing-history": {
45
+ $post: {
46
+ input: {
47
+ json: {
48
+ street?: string | undefined;
49
+ postalCode?: string | undefined;
50
+ city?: string | undefined;
51
+ moveInDate?: string | undefined;
52
+ moveOutDate?: string | undefined;
53
+ monthlyRent?: number | undefined;
54
+ isCurrent?: boolean | undefined;
55
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
56
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
57
+ landlordName?: string | undefined;
58
+ landlordEmail?: string | undefined;
59
+ landlordPhone?: string | undefined;
60
+ reasonForLeaving?: string | undefined;
61
+ };
62
+ };
63
+ output: {
64
+ error: string;
65
+ };
66
+ outputFormat: "json";
67
+ status: 401;
68
+ } | {
69
+ input: {
70
+ json: {
71
+ street?: string | undefined;
72
+ postalCode?: string | undefined;
73
+ city?: string | undefined;
74
+ moveInDate?: string | undefined;
75
+ moveOutDate?: string | undefined;
76
+ monthlyRent?: number | undefined;
77
+ isCurrent?: boolean | undefined;
78
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
79
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
80
+ landlordName?: string | undefined;
81
+ landlordEmail?: string | undefined;
82
+ landlordPhone?: string | undefined;
83
+ reasonForLeaving?: string | undefined;
84
+ };
85
+ };
86
+ output: {
87
+ error: string;
88
+ };
89
+ outputFormat: "json";
90
+ status: 400;
91
+ } | {
92
+ input: {
93
+ json: {
94
+ street?: string | undefined;
95
+ postalCode?: string | undefined;
96
+ city?: string | undefined;
97
+ moveInDate?: string | undefined;
98
+ moveOutDate?: string | undefined;
99
+ monthlyRent?: number | undefined;
100
+ isCurrent?: boolean | undefined;
101
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
102
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
103
+ landlordName?: string | undefined;
104
+ landlordEmail?: string | undefined;
105
+ landlordPhone?: string | undefined;
106
+ reasonForLeaving?: string | undefined;
107
+ };
108
+ };
109
+ output: {
110
+ id: string;
111
+ createdAt: string;
112
+ updatedAt: string;
113
+ street: string | null;
114
+ postalCode: string | null;
115
+ city: string | null;
116
+ userId: string;
117
+ moveInDate: string | null;
118
+ moveOutDate: string | null;
119
+ monthlyRent: number | null;
120
+ isCurrent: boolean;
121
+ housingType: string | null;
122
+ dataSource: string;
123
+ landlordName: string | null;
124
+ landlordEmail: string | null;
125
+ landlordPhone: string | null;
126
+ reasonForLeaving: string | null;
127
+ verified: boolean;
128
+ verifiedAt: string | null;
129
+ referenceRequestId: string | null;
130
+ verifiedBy: string | null;
131
+ };
132
+ outputFormat: "json";
133
+ status: 201;
134
+ };
135
+ };
136
+ } & {
137
+ "/housing-history/:id": {
138
+ $patch: {
139
+ input: {
140
+ param: {
141
+ id: string;
142
+ };
143
+ } & {
144
+ json: {
145
+ street?: string | undefined;
146
+ postalCode?: string | undefined;
147
+ city?: string | undefined;
148
+ moveInDate?: string | undefined;
149
+ moveOutDate?: string | undefined;
150
+ monthlyRent?: number | undefined;
151
+ isCurrent?: boolean | undefined;
152
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
153
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
154
+ landlordName?: string | undefined;
155
+ landlordEmail?: string | undefined;
156
+ landlordPhone?: string | undefined;
157
+ reasonForLeaving?: string | undefined;
158
+ };
159
+ };
160
+ output: {
161
+ error: string;
162
+ };
163
+ outputFormat: "json";
164
+ status: 401;
165
+ } | {
166
+ input: {
167
+ param: {
168
+ id: string;
169
+ };
170
+ } & {
171
+ json: {
172
+ street?: string | undefined;
173
+ postalCode?: string | undefined;
174
+ city?: string | undefined;
175
+ moveInDate?: string | undefined;
176
+ moveOutDate?: string | undefined;
177
+ monthlyRent?: number | undefined;
178
+ isCurrent?: boolean | undefined;
179
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
180
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
181
+ landlordName?: string | undefined;
182
+ landlordEmail?: string | undefined;
183
+ landlordPhone?: string | undefined;
184
+ reasonForLeaving?: string | undefined;
185
+ };
186
+ };
187
+ output: {
188
+ error: string;
189
+ };
190
+ outputFormat: "json";
191
+ status: 404;
192
+ } | {
193
+ input: {
194
+ param: {
195
+ id: string;
196
+ };
197
+ } & {
198
+ json: {
199
+ street?: string | undefined;
200
+ postalCode?: string | undefined;
201
+ city?: string | undefined;
202
+ moveInDate?: string | undefined;
203
+ moveOutDate?: string | undefined;
204
+ monthlyRent?: number | undefined;
205
+ isCurrent?: boolean | undefined;
206
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
207
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
208
+ landlordName?: string | undefined;
209
+ landlordEmail?: string | undefined;
210
+ landlordPhone?: string | undefined;
211
+ reasonForLeaving?: string | undefined;
212
+ };
213
+ };
214
+ output: {
215
+ error: string;
216
+ };
217
+ outputFormat: "json";
218
+ status: 400;
219
+ } | {
220
+ input: {
221
+ param: {
222
+ id: string;
223
+ };
224
+ } & {
225
+ json: {
226
+ street?: string | undefined;
227
+ postalCode?: string | undefined;
228
+ city?: string | undefined;
229
+ moveInDate?: string | undefined;
230
+ moveOutDate?: string | undefined;
231
+ monthlyRent?: number | undefined;
232
+ isCurrent?: boolean | undefined;
233
+ housingType?: "other" | "rental" | "owned" | "sublet" | "student" | undefined;
234
+ dataSource?: "user" | "nusvar" | "mrkoll" | undefined;
235
+ landlordName?: string | undefined;
236
+ landlordEmail?: string | undefined;
237
+ landlordPhone?: string | undefined;
238
+ reasonForLeaving?: string | undefined;
239
+ };
240
+ };
241
+ output: {
242
+ id: string;
243
+ createdAt: string;
244
+ updatedAt: string;
245
+ street: string | null;
246
+ postalCode: string | null;
247
+ city: string | null;
248
+ userId: string;
249
+ moveInDate: string | null;
250
+ moveOutDate: string | null;
251
+ monthlyRent: number | null;
252
+ isCurrent: boolean;
253
+ housingType: string | null;
254
+ dataSource: string;
255
+ landlordName: string | null;
256
+ landlordEmail: string | null;
257
+ landlordPhone: string | null;
258
+ reasonForLeaving: string | null;
259
+ verified: boolean;
260
+ verifiedAt: string | null;
261
+ referenceRequestId: string | null;
262
+ verifiedBy: string | null;
263
+ };
264
+ outputFormat: "json";
265
+ status: 200;
266
+ };
267
+ };
268
+ } & {
269
+ "/housing-history/:id": {
270
+ $delete: {
271
+ input: {
272
+ param: {
273
+ id: string;
274
+ };
275
+ };
276
+ output: {
277
+ error: string;
278
+ };
279
+ outputFormat: "json";
280
+ status: 401;
281
+ } | {
282
+ input: {
283
+ param: {
284
+ id: string;
285
+ };
286
+ };
287
+ output: {
288
+ error: string;
289
+ };
290
+ outputFormat: "json";
291
+ status: 404;
292
+ } | {
293
+ input: {
294
+ param: {
295
+ id: string;
296
+ };
297
+ };
298
+ output: {
299
+ success: boolean;
300
+ };
301
+ outputFormat: "json";
302
+ status: 200;
303
+ };
304
+ };
305
+ } & {
306
+ "/housing-history/import-folkbokforing": {
307
+ $post: {
308
+ input: {
309
+ json: {
310
+ force?: boolean | undefined;
311
+ allowNusvar?: boolean | undefined;
312
+ };
313
+ };
314
+ output: {
315
+ error: string;
316
+ };
317
+ outputFormat: "json";
318
+ status: 401;
319
+ } | {
320
+ input: {
321
+ json: {
322
+ force?: boolean | undefined;
323
+ allowNusvar?: boolean | undefined;
324
+ };
325
+ };
326
+ output: {
327
+ error: string;
328
+ };
329
+ outputFormat: "json";
330
+ status: 400;
331
+ } | {
332
+ input: {
333
+ json: {
334
+ force?: boolean | undefined;
335
+ allowNusvar?: boolean | undefined;
336
+ };
337
+ };
338
+ output: {
339
+ error: string;
340
+ };
341
+ outputFormat: "json";
342
+ status: 502;
343
+ } | {
344
+ input: {
345
+ json: {
346
+ force?: boolean | undefined;
347
+ allowNusvar?: boolean | undefined;
348
+ };
349
+ };
350
+ output: {
351
+ entries: {
352
+ id: string;
353
+ createdAt: string;
354
+ updatedAt: string;
355
+ street: string | null;
356
+ postalCode: string | null;
357
+ city: string | null;
358
+ userId: string;
359
+ moveInDate: string | null;
360
+ moveOutDate: string | null;
361
+ monthlyRent: number | null;
362
+ isCurrent: boolean;
363
+ housingType: string | null;
364
+ dataSource: string;
365
+ landlordName: string | null;
366
+ landlordEmail: string | null;
367
+ landlordPhone: string | null;
368
+ reasonForLeaving: string | null;
369
+ verified: boolean;
370
+ verifiedAt: string | null;
371
+ referenceRequestId: string | null;
372
+ verifiedBy: string | null;
373
+ }[];
374
+ imported: number;
375
+ source?: "nusvar" | "mrkoll" | "hitta" | "nusvar_consent_required" | undefined;
376
+ };
377
+ outputFormat: "json";
378
+ status: 200;
379
+ };
380
+ };
381
+ }, "/">;