@justins-home/api-services 1.1.6 → 1.1.8

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.
@@ -0,0 +1,1931 @@
1
+ import { operations } from '@justins-home/types/generated/api-types';
2
+ export { initApiToken as setupAuth } from '@justins-home/http-client';
3
+
4
+ declare class ApiError<T = unknown> extends Error {
5
+ status?: number;
6
+ data?: T;
7
+ operation?: string;
8
+ constructor(message: string, status?: number, data?: T, operation?: string);
9
+ }
10
+ type OperationId$1 = keyof operations;
11
+ type ApiRequest$1<T extends OperationId$1> = operations[T] extends {
12
+ requestBody: {
13
+ content: {
14
+ 'application/json': infer R;
15
+ };
16
+ };
17
+ } ? R : operations[T] extends {
18
+ parameters: {
19
+ query?: infer Q;
20
+ };
21
+ } ? Q : never;
22
+ type ApiResponse$1<T extends OperationId$1> = operations[T] extends {
23
+ responses: {
24
+ 200: {
25
+ content: {
26
+ 'application/json': infer R;
27
+ };
28
+ };
29
+ };
30
+ } ? R : unknown;
31
+ declare const api: {
32
+ post<T extends OperationId$1>(operation: T, url: string, payload?: ApiRequest$1<T>): Promise<ApiResponse$1<T>>;
33
+ get<T extends OperationId$1>(operation: T, url: string, query?: ApiRequest$1<T>): Promise<ApiResponse$1<T>>;
34
+ };
35
+
36
+ type OperationId = keyof operations;
37
+ type ApiRequest<T extends OperationId> = operations[T] extends {
38
+ requestBody: {
39
+ content: {
40
+ 'application/json': infer R;
41
+ };
42
+ };
43
+ } ? R : operations[T] extends {
44
+ parameters: {
45
+ query?: infer Q;
46
+ };
47
+ } ? Q : never;
48
+ type ApiResponse<T extends OperationId> = operations[T] extends {
49
+ responses: {
50
+ 200: {
51
+ content: {
52
+ 'application/json': infer R;
53
+ };
54
+ };
55
+ };
56
+ } ? R : unknown;
57
+ type ApiPathParams<T extends OperationId> = operations[T] extends {
58
+ parameters: {
59
+ path: infer P;
60
+ };
61
+ } ? P : never;
62
+ type Expand<T> = {
63
+ [K in keyof T]: T[K];
64
+ };
65
+
66
+ declare const admin: {
67
+ new: (payload: ApiRequest<"newAdmin">) => Promise<{
68
+ data?: {
69
+ uid?: string | null;
70
+ name?: string | null;
71
+ email?: string | null;
72
+ phone?: string | null;
73
+ status?: string | null;
74
+ user_mode?: string | null;
75
+ created_at?: string;
76
+ role?: string | null;
77
+ };
78
+ }>;
79
+ getSubmittedListing: () => Promise<{
80
+ data?: {
81
+ uid?: string;
82
+ listing_type?: string;
83
+ vertical?: string;
84
+ price?: string | null;
85
+ state?: string;
86
+ is_visible?: boolean;
87
+ summary?: {
88
+ property_type?: string | null;
89
+ bedrooms?: string | null;
90
+ bathrooms?: string | null;
91
+ city?: string | null;
92
+ availability?: string | null;
93
+ };
94
+ workflow?: unknown[];
95
+ media?: unknown[];
96
+ }[];
97
+ links?: {
98
+ first?: string;
99
+ last?: string;
100
+ prev?: string | null;
101
+ next?: string | null;
102
+ };
103
+ meta?: {
104
+ current_page?: number;
105
+ from?: number;
106
+ last_page?: number;
107
+ links?: {
108
+ url?: string | null;
109
+ label?: string;
110
+ page?: string | null;
111
+ active?: boolean;
112
+ }[];
113
+ path?: string;
114
+ per_page?: number;
115
+ to?: number;
116
+ total?: number;
117
+ };
118
+ }>;
119
+ approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
120
+ data?: {
121
+ uid?: string;
122
+ listing_type?: string;
123
+ vertical?: string;
124
+ price?: string | null;
125
+ state?: string;
126
+ is_visible?: boolean;
127
+ summary?: {
128
+ property_type?: string | null;
129
+ bedrooms?: string | null;
130
+ bathrooms?: string | null;
131
+ city?: string | null;
132
+ availability?: string | null;
133
+ };
134
+ workflow?: unknown[];
135
+ media?: unknown[];
136
+ };
137
+ }>;
138
+ rejectListing: (params: ApiPathParams<"rejectListing">, payload: ApiRequest<"rejectListing">) => Promise<{
139
+ data?: {
140
+ uid?: string;
141
+ listing_type?: string;
142
+ vertical?: string;
143
+ price?: string | null;
144
+ state?: string;
145
+ is_visible?: boolean;
146
+ summary?: {
147
+ property_type?: string | null;
148
+ bedrooms?: string | null;
149
+ bathrooms?: string | null;
150
+ city?: string | null;
151
+ availability?: string | null;
152
+ };
153
+ workflow?: unknown[];
154
+ media?: unknown[];
155
+ };
156
+ }>;
157
+ unpublishListing: (params: ApiPathParams<"unpublishListing">) => Promise<{
158
+ data?: {
159
+ uid?: string;
160
+ listing_type?: string;
161
+ vertical?: string;
162
+ price?: string | null;
163
+ state?: string;
164
+ is_visible?: boolean;
165
+ summary?: {
166
+ property_type?: string | null;
167
+ bedrooms?: string | null;
168
+ bathrooms?: string | null;
169
+ city?: string | null;
170
+ availability?: string | null;
171
+ };
172
+ workflow?: unknown[];
173
+ media?: unknown[];
174
+ };
175
+ }>;
176
+ republishListing: (params: ApiPathParams<"republishListing">) => Promise<{
177
+ data?: {
178
+ uid?: string;
179
+ listing_type?: string;
180
+ vertical?: string;
181
+ price?: string | null;
182
+ state?: string;
183
+ is_visible?: boolean;
184
+ summary?: {
185
+ property_type?: string | null;
186
+ bedrooms?: string | null;
187
+ bathrooms?: string | null;
188
+ city?: string | null;
189
+ availability?: string | null;
190
+ };
191
+ workflow?: unknown[];
192
+ media?: unknown[];
193
+ };
194
+ }>;
195
+ getFeatures: () => Promise<unknown>;
196
+ createFeature: (payload: ApiRequest<"createFeature">) => Promise<{
197
+ data?: {
198
+ id?: number;
199
+ category_id?: number;
200
+ name?: string;
201
+ description?: string;
202
+ icon?: string;
203
+ is_active?: boolean;
204
+ is_filterable?: boolean;
205
+ };
206
+ }>;
207
+ updateFeature: (params: ApiPathParams<"updateFeature">, payload: ApiRequest<"updateFeature">) => Promise<{
208
+ data?: {
209
+ id?: number;
210
+ category_id?: number;
211
+ name?: string;
212
+ description?: string;
213
+ icon?: string;
214
+ is_active?: boolean;
215
+ is_filterable?: boolean;
216
+ };
217
+ }>;
218
+ toggleFeature: (params: ApiPathParams<"toggleFeature">) => Promise<{
219
+ data?: {
220
+ id?: number;
221
+ category_id?: number;
222
+ name?: string;
223
+ description?: string;
224
+ icon?: string;
225
+ is_active?: boolean;
226
+ is_filterable?: boolean;
227
+ };
228
+ }>;
229
+ getFeatureCategories: () => Promise<{
230
+ data?: {
231
+ id?: number;
232
+ name?: string;
233
+ description?: string;
234
+ display_order?: number;
235
+ is_active?: boolean;
236
+ }[];
237
+ }>;
238
+ createFeatureCategory: (payload: ApiRequest<"createFeatureCategory">) => Promise<{
239
+ data?: {
240
+ id?: number;
241
+ name?: string;
242
+ description?: string;
243
+ display_order?: number;
244
+ is_active?: boolean;
245
+ };
246
+ }>;
247
+ updateFeatureCategory: (params: ApiPathParams<"updateFeatureCategory">, payload: ApiRequest<"updateFeatureCategory">) => Promise<{
248
+ data?: {
249
+ id?: number;
250
+ name?: string;
251
+ description?: string;
252
+ display_order?: number;
253
+ is_active?: boolean;
254
+ };
255
+ }>;
256
+ toggleFeatureCategory: (params: ApiPathParams<"toggleFeatureCategory">) => Promise<{
257
+ data?: {
258
+ id?: number;
259
+ name?: string;
260
+ description?: string;
261
+ display_order?: number;
262
+ is_active?: boolean;
263
+ };
264
+ }>;
265
+ getVerificationLayers: () => Promise<{
266
+ data?: {
267
+ id?: number;
268
+ key?: string;
269
+ name?: string;
270
+ description?: string;
271
+ requires_review?: boolean;
272
+ metadata_schema?: unknown[];
273
+ is_active?: boolean;
274
+ created_at?: string;
275
+ updated_at?: string;
276
+ }[];
277
+ }>;
278
+ createVerificationLayer: (payload: ApiRequest<"createVerificationLayer">) => Promise<{
279
+ data?: {
280
+ id?: number;
281
+ key?: string;
282
+ name?: string;
283
+ description?: string;
284
+ requires_review?: boolean;
285
+ metadata_schema?: unknown[];
286
+ is_active?: boolean;
287
+ created_at?: string;
288
+ updated_at?: string;
289
+ };
290
+ }>;
291
+ updateVerificationLayer: (params: ApiPathParams<"updateVerificationLayer">, payload: ApiRequest<"updateVerificationLayer">) => Promise<{
292
+ data?: {
293
+ id?: number;
294
+ key?: string;
295
+ name?: string;
296
+ description?: string;
297
+ requires_review?: boolean;
298
+ metadata_schema?: unknown[];
299
+ is_active?: boolean;
300
+ created_at?: string;
301
+ updated_at?: string;
302
+ };
303
+ }>;
304
+ getVerificationFlows: () => Promise<unknown>;
305
+ createVerificationFlow: (payload: ApiRequest<"createVerificationFlow">) => Promise<{
306
+ data?: {
307
+ order?: number;
308
+ is_required?: boolean;
309
+ };
310
+ }>;
311
+ reorderVerificationFlow: (payload: ApiRequest<"reorderVerificationFlow">) => Promise<unknown>;
312
+ getUserVerifications: (query?: Expand<ApiRequest<"getUserVerifications">>) => Promise<{
313
+ data?: {
314
+ id?: number;
315
+ status?: string;
316
+ submitted_data?: unknown[];
317
+ rejection_reason?: string | null;
318
+ reviewed_by?: number;
319
+ reviewed_at?: string;
320
+ created_at?: string;
321
+ updated_at?: string;
322
+ }[];
323
+ links?: {
324
+ first?: string;
325
+ last?: string;
326
+ prev?: string | null;
327
+ next?: string | null;
328
+ };
329
+ meta?: {
330
+ current_page?: number;
331
+ from?: number;
332
+ last_page?: number;
333
+ links?: {
334
+ url?: string | null;
335
+ label?: string;
336
+ page?: string | null;
337
+ active?: boolean;
338
+ }[];
339
+ path?: string;
340
+ per_page?: number;
341
+ to?: number;
342
+ total?: number;
343
+ };
344
+ }>;
345
+ getUserVerificationHistory: (params: ApiPathParams<"getUserVerificationHistory">) => Promise<{
346
+ data?: {
347
+ id?: number;
348
+ status?: string;
349
+ submitted_data?: unknown[];
350
+ rejection_reason?: string | null;
351
+ reviewed_by?: number;
352
+ reviewed_at?: string;
353
+ created_at?: string;
354
+ updated_at?: string;
355
+ }[];
356
+ }>;
357
+ reviewUserVerification: (params: ApiPathParams<"reviewUserVerification">, payload: ApiRequest<"reviewUserVerification">) => Promise<unknown>;
358
+ resetUserVerification: (params: ApiPathParams<"resetUserVerification">, payload: ApiRequest<"resetUserVerification">) => Promise<unknown>;
359
+ getListingComplianceSubmissions: () => Promise<{
360
+ data?: {
361
+ id?: number;
362
+ listing_id?: number;
363
+ compliance?: {
364
+ id?: number;
365
+ key?: string;
366
+ name?: string;
367
+ };
368
+ verification_layer_key?: string;
369
+ status?: string;
370
+ submitted_data?: unknown[];
371
+ rejection_reason?: string | null;
372
+ reviewed_by?: number;
373
+ reviewed_at?: string | null;
374
+ created_at?: string;
375
+ }[];
376
+ links?: {
377
+ first?: string;
378
+ last?: string;
379
+ prev?: string | null;
380
+ next?: string | null;
381
+ };
382
+ meta?: {
383
+ current_page?: number;
384
+ from?: number;
385
+ last_page?: number;
386
+ links?: {
387
+ url?: string | null;
388
+ label?: string;
389
+ page?: string | null;
390
+ active?: boolean;
391
+ }[];
392
+ path?: string;
393
+ per_page?: number;
394
+ to?: number;
395
+ total?: number;
396
+ };
397
+ }>;
398
+ getTenancyComplianceSubmissions: () => Promise<{
399
+ data?: {
400
+ id?: number;
401
+ tenancy_id?: number;
402
+ compliance?: {
403
+ id?: number;
404
+ key?: string;
405
+ name?: string;
406
+ };
407
+ verification_layer_key?: string;
408
+ status?: string;
409
+ submitted_data?: string | null;
410
+ rejection_reason?: string | null;
411
+ reviewed_by?: number;
412
+ reviewed_at?: string;
413
+ created_at?: string;
414
+ }[];
415
+ links?: {
416
+ first?: string;
417
+ last?: string;
418
+ prev?: string | null;
419
+ next?: string | null;
420
+ };
421
+ meta?: {
422
+ current_page?: number;
423
+ from?: number;
424
+ last_page?: number;
425
+ links?: {
426
+ url?: string | null;
427
+ label?: string;
428
+ page?: string | null;
429
+ active?: boolean;
430
+ }[];
431
+ path?: string;
432
+ per_page?: number;
433
+ to?: number;
434
+ total?: number;
435
+ };
436
+ }>;
437
+ reviewListingComplianceSubmission: (params: ApiPathParams<"reviewListingComplianceSubmission">, payload: ApiRequest<"reviewListingComplianceSubmission">) => Promise<unknown>;
438
+ reviewTenancyComplianceSubmission: (params: ApiPathParams<"reviewTenancyComplianceSubmission">, payload: ApiRequest<"reviewTenancyComplianceSubmission">) => Promise<unknown>;
439
+ getPlans: () => Promise<{
440
+ data?: {
441
+ key?: string;
442
+ name?: string;
443
+ user_type?: string;
444
+ is_active?: boolean;
445
+ }[];
446
+ }>;
447
+ createPlan: (payload: ApiRequest<"createPlan">) => Promise<{
448
+ data?: {
449
+ key?: string;
450
+ name?: string;
451
+ user_type?: string;
452
+ is_active?: boolean;
453
+ };
454
+ }>;
455
+ updatePlan: (params: ApiPathParams<"updatePlan">, payload: ApiRequest<"updatePlan">) => Promise<{
456
+ data?: {
457
+ key?: string;
458
+ name?: string;
459
+ user_type?: string;
460
+ is_active?: boolean;
461
+ };
462
+ }>;
463
+ assignPlanToUser: (params: ApiPathParams<"assignPlanToUser">, payload: ApiRequest<"assignPlanToUser">) => Promise<unknown>;
464
+ deactivateUserPlan: (params: ApiPathParams<"deactivateUserPlan">, payload: ApiRequest<"deactivateUserPlan">) => Promise<unknown>;
465
+ attachPlanVerificationRequirements: (params: ApiPathParams<"attachPlanVerificationRequirements">, payload: ApiRequest<"attachPlanVerificationRequirements">) => Promise<unknown>;
466
+ attachPlanCapabilities: (params: ApiPathParams<"attachPlanCapabilities">, payload: ApiRequest<"attachPlanCapabilities">) => Promise<unknown>;
467
+ getPlanEntitlements: () => Promise<{
468
+ data?: {
469
+ key?: string;
470
+ name?: string;
471
+ description?: string;
472
+ value_type?: string;
473
+ }[];
474
+ }>;
475
+ createPlanEntitlement: (payload: ApiRequest<"createPlanEntitlement">) => Promise<{
476
+ data?: {
477
+ key?: string;
478
+ name?: string;
479
+ description?: string;
480
+ value_type?: string;
481
+ };
482
+ }>;
483
+ updatePlanEntitlement: (params: ApiPathParams<"updatePlanEntitlement">, payload: ApiRequest<"updatePlanEntitlement">) => Promise<{
484
+ data?: {
485
+ key?: string;
486
+ name?: string;
487
+ description?: string;
488
+ value_type?: string;
489
+ };
490
+ }>;
491
+ syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
492
+ getCapabilities: () => Promise<{
493
+ data?: {
494
+ key?: string;
495
+ name?: string;
496
+ description?: string;
497
+ }[];
498
+ }>;
499
+ createCapability: (payload: ApiRequest<"createCapability">) => Promise<{
500
+ data?: {
501
+ key?: string;
502
+ name?: string;
503
+ description?: string;
504
+ };
505
+ }>;
506
+ updateCapability: (params: ApiPathParams<"updateCapability">, payload: ApiRequest<"updateCapability">) => Promise<{
507
+ data?: {
508
+ key?: string;
509
+ name?: string;
510
+ description?: string;
511
+ };
512
+ }>;
513
+ getComplianceDefinitions: () => Promise<{
514
+ data?: {
515
+ id?: string | null;
516
+ compliance_key?: string;
517
+ name?: string;
518
+ description?: string;
519
+ enforcement_level?: string;
520
+ validity_type?: string;
521
+ grace_period_days?: number;
522
+ status?: string;
523
+ }[];
524
+ }>;
525
+ createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
526
+ data?: {
527
+ id?: number;
528
+ compliance_key?: string;
529
+ name?: string;
530
+ description?: string;
531
+ enforcement_level?: string;
532
+ validity_type?: string;
533
+ grace_period_days?: number;
534
+ status?: string;
535
+ };
536
+ }>;
537
+ updateComplianceDefinition: (params: ApiPathParams<"updateComplianceDefinition">, payload: ApiRequest<"updateComplianceDefinition">) => Promise<{
538
+ data?: {
539
+ id?: string | null;
540
+ compliance_key?: string;
541
+ name?: string;
542
+ description?: string;
543
+ enforcement_level?: string;
544
+ validity_type?: string;
545
+ grace_period_days?: number;
546
+ status?: string;
547
+ };
548
+ }>;
549
+ syncComplianceRequirements: (params: ApiPathParams<"syncComplianceRequirements">, payload: ApiRequest<"syncComplianceRequirements">) => Promise<unknown>;
550
+ assignGlobalCompliance: (params: ApiPathParams<"assignGlobalCompliance">) => Promise<unknown>;
551
+ assignComplianceToCategory: (params: ApiPathParams<"assignComplianceToCategory">) => Promise<unknown>;
552
+ assignComplianceToListing: (params: ApiPathParams<"assignComplianceToListing">) => Promise<unknown>;
553
+ assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
554
+ listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
555
+ data?: {
556
+ uid?: string;
557
+ inspection_type?: string;
558
+ status?: string;
559
+ scheduled_date?: string;
560
+ completed_date?: string | null;
561
+ condition_rating?: string;
562
+ summary?: string;
563
+ next_inspection_date?: string;
564
+ created_at?: string;
565
+ updated_at?: string;
566
+ }[];
567
+ links?: {
568
+ first?: string;
569
+ last?: string;
570
+ prev?: string | null;
571
+ next?: string | null;
572
+ };
573
+ meta?: {
574
+ current_page?: number;
575
+ from?: number;
576
+ last_page?: number;
577
+ links?: {
578
+ url?: string | null;
579
+ label?: string;
580
+ page?: string | null;
581
+ active?: boolean;
582
+ }[];
583
+ path?: string;
584
+ per_page?: number;
585
+ to?: number;
586
+ total?: number;
587
+ };
588
+ }>;
589
+ scheduleInspection: (payload: ApiRequest<"scheduleInspection">) => Promise<{
590
+ data?: {
591
+ uid?: string;
592
+ inspection_type?: string;
593
+ status?: string;
594
+ scheduled_date?: string;
595
+ completed_date?: string | null;
596
+ condition_rating?: string;
597
+ summary?: string;
598
+ next_inspection_date?: string;
599
+ created_at?: string;
600
+ updated_at?: string;
601
+ };
602
+ }>;
603
+ completeInspection: (params: ApiPathParams<"completeInspection">, payload: ApiRequest<"completeInspection">) => Promise<{
604
+ data?: {
605
+ uid?: string;
606
+ inspection_type?: string;
607
+ status?: string;
608
+ scheduled_date?: string;
609
+ completed_date?: string | null;
610
+ condition_rating?: string;
611
+ summary?: string;
612
+ next_inspection_date?: string;
613
+ created_at?: string;
614
+ updated_at?: string;
615
+ };
616
+ }>;
617
+ rescheduleInspection: (params: ApiPathParams<"rescheduleInspection">, payload: ApiRequest<"rescheduleInspection">) => Promise<{
618
+ data?: {
619
+ uid?: string;
620
+ inspection_type?: string;
621
+ status?: string;
622
+ scheduled_date?: string;
623
+ completed_date?: string | null;
624
+ condition_rating?: string;
625
+ summary?: string;
626
+ next_inspection_date?: string;
627
+ created_at?: string;
628
+ updated_at?: string;
629
+ };
630
+ }>;
631
+ cancelInspection: (params: ApiPathParams<"cancelInspection">, payload: ApiRequest<"cancelInspection">) => Promise<{
632
+ data?: {
633
+ uid?: string;
634
+ inspection_type?: string;
635
+ status?: string;
636
+ scheduled_date?: string;
637
+ completed_date?: string | null;
638
+ condition_rating?: string;
639
+ summary?: string;
640
+ next_inspection_date?: string;
641
+ created_at?: string;
642
+ updated_at?: string;
643
+ };
644
+ }>;
645
+ assignMaintenanceTechnician: (params: ApiPathParams<"assignMaintenanceTechnician">, payload: ApiRequest<"assignMaintenanceTechnician">) => Promise<{
646
+ data?: {
647
+ uid?: string;
648
+ title?: string;
649
+ description?: string;
650
+ status?: string;
651
+ priority?: string;
652
+ reported_at?: string;
653
+ assigned_at?: string | null;
654
+ completed_at?: string | null;
655
+ sla_deadline?: string;
656
+ created_at?: string;
657
+ updated_at?: string;
658
+ };
659
+ }>;
660
+ startMaintenanceRepair: (params: ApiPathParams<"startMaintenanceRepair">, payload: ApiRequest<"startMaintenanceRepair">) => Promise<{
661
+ data?: {
662
+ uid?: string;
663
+ title?: string;
664
+ description?: string;
665
+ status?: string;
666
+ priority?: string;
667
+ reported_at?: string;
668
+ assigned_at?: string;
669
+ completed_at?: string | null;
670
+ sla_deadline?: string;
671
+ created_at?: string;
672
+ updated_at?: string;
673
+ };
674
+ }>;
675
+ completeMaintenanceRepair: (params: ApiPathParams<"completeMaintenanceRepair">, payload: ApiRequest<"completeMaintenanceRepair">) => Promise<{
676
+ data?: {
677
+ uid?: string;
678
+ title?: string;
679
+ description?: string;
680
+ status?: string;
681
+ priority?: string;
682
+ reported_at?: string;
683
+ assigned_at?: string;
684
+ completed_at?: string | null;
685
+ sla_deadline?: string;
686
+ created_at?: string;
687
+ updated_at?: string;
688
+ };
689
+ }>;
690
+ cancelMaintenanceRequest: (params: ApiPathParams<"cancelMaintenanceRequest">, payload: ApiRequest<"cancelMaintenanceRequest">) => Promise<{
691
+ data?: {
692
+ uid?: string;
693
+ title?: string;
694
+ description?: string;
695
+ status?: string;
696
+ priority?: string;
697
+ reported_at?: string;
698
+ assigned_at?: string;
699
+ completed_at?: string | null;
700
+ sla_deadline?: string;
701
+ created_at?: string;
702
+ updated_at?: string;
703
+ };
704
+ }>;
705
+ assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
706
+ assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
707
+ };
708
+
709
+ declare const appointment: {
710
+ create: (payload: ApiRequest<"createAppointment">) => Promise<{
711
+ data?: {
712
+ id?: number;
713
+ listing_id?: number;
714
+ status?: string;
715
+ scheduled?: {
716
+ start?: string;
717
+ end?: string;
718
+ };
719
+ created_at?: string;
720
+ };
721
+ }>;
722
+ fetchOne: (params: ApiPathParams<"fetchOneAppointment">) => Promise<{
723
+ data?: {
724
+ id?: number;
725
+ listing_id?: number;
726
+ status?: string;
727
+ scheduled?: {
728
+ start?: string;
729
+ end?: string;
730
+ };
731
+ created_at?: string;
732
+ };
733
+ }>;
734
+ fetchAll: () => Promise<{
735
+ data?: {
736
+ id?: number;
737
+ listing_id?: number;
738
+ status?: string;
739
+ scheduled?: {
740
+ start?: string;
741
+ end?: string;
742
+ };
743
+ created_at?: string;
744
+ }[];
745
+ links?: {
746
+ first?: string;
747
+ last?: string;
748
+ prev?: string | null;
749
+ next?: string | null;
750
+ };
751
+ meta?: {
752
+ current_page?: number;
753
+ from?: number;
754
+ last_page?: number;
755
+ links?: {
756
+ url?: string | null;
757
+ label?: string;
758
+ page?: string | null;
759
+ active?: boolean;
760
+ }[];
761
+ path?: string;
762
+ per_page?: number;
763
+ to?: number;
764
+ total?: number;
765
+ };
766
+ }>;
767
+ reschedule: (params: ApiPathParams<"rescheduleAppointment">, payload: ApiRequest<"rescheduleAppointment">) => Promise<{
768
+ data?: {
769
+ id?: number;
770
+ listing_id?: number;
771
+ status?: string;
772
+ scheduled?: {
773
+ start?: string;
774
+ end?: string;
775
+ };
776
+ created_at?: string;
777
+ };
778
+ }>;
779
+ cancel: (params: ApiPathParams<"cancelAppointment">) => Promise<{
780
+ data?: {
781
+ id?: number;
782
+ listing_id?: number;
783
+ status?: string;
784
+ scheduled?: {
785
+ start?: string;
786
+ end?: string;
787
+ };
788
+ created_at?: string;
789
+ };
790
+ }>;
791
+ confirm: (params: ApiPathParams<"confirmAppointment">) => Promise<{
792
+ data?: {
793
+ id?: number;
794
+ listing_id?: number;
795
+ status?: string;
796
+ scheduled?: {
797
+ start?: string;
798
+ end?: string;
799
+ };
800
+ created_at?: string;
801
+ };
802
+ }>;
803
+ };
804
+
805
+ declare const auth: {
806
+ loginUser: (payload: ApiRequest<"loginUser">) => Promise<unknown>;
807
+ logoutUser: () => Promise<{
808
+ message?: string;
809
+ event?: string | null;
810
+ data?: string | null;
811
+ }>;
812
+ generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
813
+ message?: string;
814
+ event?: string | null;
815
+ data?: string | null;
816
+ }>;
817
+ verifyOTP: (payload: ApiRequest<"verifyOTP">) => Promise<{
818
+ message?: string;
819
+ event?: string | null;
820
+ data?: string | null;
821
+ }>;
822
+ };
823
+
824
+ declare const booking: {
825
+ create: (payload: ApiRequest<"createBooking">) => Promise<{
826
+ message?: string;
827
+ event?: string | null;
828
+ data?: {
829
+ id?: string | null;
830
+ listing_id?: string | null;
831
+ guest_id?: string | null;
832
+ host_id?: string | null;
833
+ start_date?: string | null;
834
+ end_date?: string | null;
835
+ nights?: string | null;
836
+ price_total?: string | null;
837
+ status?: string | null;
838
+ created_at?: string | null;
839
+ };
840
+ }>;
841
+ confirm: (params: ApiPathParams<"confirmBooking">) => Promise<{
842
+ message?: string;
843
+ event?: string | null;
844
+ data?: {
845
+ id?: string | null;
846
+ listing_id?: string | null;
847
+ guest_id?: string | null;
848
+ host_id?: string | null;
849
+ start_date?: string | null;
850
+ end_date?: string | null;
851
+ nights?: string | null;
852
+ price_total?: string | null;
853
+ status?: string | null;
854
+ created_at?: string | null;
855
+ };
856
+ }>;
857
+ cancel: (params: ApiPathParams<"cancelBooking">) => Promise<{
858
+ message?: string;
859
+ event?: string | null;
860
+ data?: {
861
+ id?: string | null;
862
+ listing_id?: string | null;
863
+ guest_id?: string | null;
864
+ host_id?: string | null;
865
+ start_date?: string | null;
866
+ end_date?: string | null;
867
+ nights?: string | null;
868
+ price_total?: string | null;
869
+ status?: string | null;
870
+ created_at?: string | null;
871
+ };
872
+ }>;
873
+ get: (params: ApiPathParams<"getBooking">) => Promise<{
874
+ message?: string;
875
+ event?: string | null;
876
+ data?: {
877
+ id?: string | null;
878
+ listing_id?: string | null;
879
+ guest_id?: string | null;
880
+ host_id?: string | null;
881
+ start_date?: string | null;
882
+ end_date?: string | null;
883
+ nights?: string | null;
884
+ price_total?: string | null;
885
+ status?: string | null;
886
+ created_at?: string | null;
887
+ };
888
+ }>;
889
+ };
890
+
891
+ declare const agent: {
892
+ getApiV1PortalAgentTest: () => Promise<unknown>;
893
+ };
894
+
895
+ declare const tenant: {
896
+ getApiV1PortalTenantTest: () => Promise<{
897
+ message?: string;
898
+ }>;
899
+ postApiV1PortalTenantCreate: (payload: ApiRequest<"postApiV1PortalTenantCreate">) => Promise<unknown>;
900
+ postApiV1PortalTenantCreateWithGithub: () => Promise<unknown>;
901
+ postApiV1PortalTenantSendOtp: () => Promise<unknown>;
902
+ postApiV1PortalTenantVerifyOtp: (payload: ApiRequest<"postApiV1PortalTenantVerifyOtp">) => Promise<unknown>;
903
+ };
904
+
905
+ declare const customer: {
906
+ getApiV1PortalCustomerTest: () => Promise<{
907
+ message?: string;
908
+ }>;
909
+ postApiV1PortalCustomerCreate: (payload: ApiRequest<"postApiV1PortalCustomerCreate">) => Promise<unknown>;
910
+ postApiV1PortalCustomerCreateWithGithub: () => Promise<unknown>;
911
+ postApiV1PortalCustomerSendOtp: () => Promise<unknown>;
912
+ postApiV1PortalCustomerVerifyOtp: (payload: ApiRequest<"postApiV1PortalCustomerVerifyOtp">) => Promise<unknown>;
913
+ };
914
+
915
+ declare const google: {
916
+ getApiV1SocialAuthGoogleRedirect: () => Promise<unknown>;
917
+ getApiV1SocialAuthGoogleCallback: () => Promise<unknown>;
918
+ };
919
+
920
+ declare const github: {
921
+ getApiV1SocialAuthGithubRedirect: () => Promise<unknown>;
922
+ getApiV1SocialAuthGithubCallback: () => Promise<unknown>;
923
+ };
924
+
925
+ declare const feature: {
926
+ getFeatures: (query?: Expand<ApiRequest<"getFeatures">>) => Promise<unknown>;
927
+ };
928
+
929
+ declare const inspection: {
930
+ listingHistory: (params: ApiPathParams<"listingHistoryInspection">) => Promise<{
931
+ data?: {
932
+ uid?: string;
933
+ inspection_type?: string;
934
+ status?: string;
935
+ scheduled_date?: string;
936
+ completed_date?: string | null;
937
+ condition_rating?: string;
938
+ summary?: string;
939
+ next_inspection_date?: string;
940
+ created_at?: string;
941
+ updated_at?: string;
942
+ }[];
943
+ links?: {
944
+ first?: string;
945
+ last?: string;
946
+ prev?: string | null;
947
+ next?: string | null;
948
+ };
949
+ meta?: {
950
+ current_page?: number;
951
+ from?: number;
952
+ last_page?: number;
953
+ links?: {
954
+ url?: string | null;
955
+ label?: string;
956
+ page?: string | null;
957
+ active?: boolean;
958
+ }[];
959
+ path?: string;
960
+ per_page?: number;
961
+ to?: number;
962
+ total?: number;
963
+ };
964
+ }>;
965
+ };
966
+
967
+ declare const landlord: {
968
+ new: (payload: ApiRequest<"newLandlord">) => Promise<{
969
+ data?: {
970
+ uid?: string | null;
971
+ name?: string | null;
972
+ email?: string | null;
973
+ phone?: string | null;
974
+ status?: string | null;
975
+ user_mode?: string | null;
976
+ created_at?: string;
977
+ address?: string;
978
+ };
979
+ }>;
980
+ basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<unknown>;
981
+ createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
982
+ data?: {
983
+ uid?: string;
984
+ listing_type?: string;
985
+ vertical?: string;
986
+ price?: string | null;
987
+ state?: string;
988
+ is_visible?: boolean;
989
+ summary?: {
990
+ property_type?: string | null;
991
+ bedrooms?: string | null;
992
+ bathrooms?: string | null;
993
+ city?: string | null;
994
+ availability?: string | null;
995
+ };
996
+ workflow?: unknown[];
997
+ media?: unknown[];
998
+ };
999
+ }>;
1000
+ getDraftListings: () => Promise<{
1001
+ data?: {
1002
+ uid?: string;
1003
+ listing_type?: string;
1004
+ vertical?: string;
1005
+ price?: string | null;
1006
+ state?: string;
1007
+ is_visible?: boolean;
1008
+ summary?: {
1009
+ property_type?: string | null;
1010
+ bedrooms?: string | null;
1011
+ bathrooms?: string | null;
1012
+ city?: string | null;
1013
+ availability?: string | null;
1014
+ };
1015
+ workflow?: unknown[];
1016
+ media?: unknown[];
1017
+ }[];
1018
+ links?: {
1019
+ first?: string;
1020
+ last?: string;
1021
+ prev?: string | null;
1022
+ next?: string | null;
1023
+ };
1024
+ meta?: {
1025
+ current_page?: number;
1026
+ from?: number;
1027
+ last_page?: number;
1028
+ links?: {
1029
+ url?: string | null;
1030
+ label?: string;
1031
+ page?: string | null;
1032
+ active?: boolean;
1033
+ }[];
1034
+ path?: string;
1035
+ per_page?: number;
1036
+ to?: number;
1037
+ total?: number;
1038
+ };
1039
+ }>;
1040
+ getSubmittedListings: () => Promise<{
1041
+ data?: {
1042
+ uid?: string;
1043
+ listing_type?: string;
1044
+ vertical?: string;
1045
+ price?: string | null;
1046
+ state?: string;
1047
+ is_visible?: boolean;
1048
+ summary?: {
1049
+ property_type?: string | null;
1050
+ bedrooms?: string | null;
1051
+ bathrooms?: string | null;
1052
+ city?: string | null;
1053
+ availability?: string | null;
1054
+ };
1055
+ workflow?: unknown[];
1056
+ media?: unknown[];
1057
+ }[];
1058
+ links?: {
1059
+ first?: string;
1060
+ last?: string;
1061
+ prev?: string | null;
1062
+ next?: string | null;
1063
+ };
1064
+ meta?: {
1065
+ current_page?: number;
1066
+ from?: number;
1067
+ last_page?: number;
1068
+ links?: {
1069
+ url?: string | null;
1070
+ label?: string;
1071
+ page?: string | null;
1072
+ active?: boolean;
1073
+ }[];
1074
+ path?: string;
1075
+ per_page?: number;
1076
+ to?: number;
1077
+ total?: number;
1078
+ };
1079
+ }>;
1080
+ getOwnerListings: () => Promise<{
1081
+ data?: {
1082
+ uid?: string;
1083
+ listing_type?: string;
1084
+ vertical?: string;
1085
+ price?: string | null;
1086
+ state?: string;
1087
+ is_visible?: boolean;
1088
+ summary?: {
1089
+ property_type?: string | null;
1090
+ bedrooms?: string | null;
1091
+ bathrooms?: string | null;
1092
+ city?: string | null;
1093
+ availability?: string | null;
1094
+ };
1095
+ workflow?: unknown[];
1096
+ media?: unknown[];
1097
+ }[];
1098
+ links?: {
1099
+ first?: string;
1100
+ last?: string;
1101
+ prev?: string | null;
1102
+ next?: string | null;
1103
+ };
1104
+ meta?: {
1105
+ current_page?: number;
1106
+ from?: number;
1107
+ last_page?: number;
1108
+ links?: {
1109
+ url?: string | null;
1110
+ label?: string;
1111
+ page?: string | null;
1112
+ active?: boolean;
1113
+ }[];
1114
+ path?: string;
1115
+ per_page?: number;
1116
+ to?: number;
1117
+ total?: number;
1118
+ };
1119
+ }>;
1120
+ getOwnerListing: (params: ApiPathParams<"getOwnerListing">) => Promise<{
1121
+ data?: {
1122
+ uid?: string;
1123
+ listing_type?: string;
1124
+ vertical?: string;
1125
+ price?: string | null;
1126
+ state?: string;
1127
+ is_visible?: boolean;
1128
+ summary?: {
1129
+ property_type?: string | null;
1130
+ bedrooms?: string | null;
1131
+ bathrooms?: string | null;
1132
+ city?: string | null;
1133
+ availability?: string | null;
1134
+ };
1135
+ workflow?: unknown[];
1136
+ media?: unknown[];
1137
+ compliances?: unknown[];
1138
+ compliance_status?: {
1139
+ overall?: string;
1140
+ breakdown?: unknown[];
1141
+ };
1142
+ };
1143
+ }>;
1144
+ savePropertyBasics: (params: ApiPathParams<"savePropertyBasics">, payload: ApiRequest<"savePropertyBasics">) => Promise<{
1145
+ message?: string;
1146
+ event?: string;
1147
+ data?: unknown[];
1148
+ }>;
1149
+ saveTenancyDetails: (params: ApiPathParams<"saveTenancyDetails">, payload: ApiRequest<"saveTenancyDetails">) => Promise<{
1150
+ message?: string;
1151
+ event?: string;
1152
+ data?: unknown[];
1153
+ }>;
1154
+ saveShortLetDetails: (params: ApiPathParams<"saveShortLetDetails">, payload: ApiRequest<"saveShortLetDetails">) => Promise<{
1155
+ message?: string;
1156
+ event?: string;
1157
+ data?: unknown[];
1158
+ }>;
1159
+ saveListingFeatures: (params: ApiPathParams<"saveListingFeatures">, payload: ApiRequest<"saveListingFeatures">) => Promise<{
1160
+ message?: string;
1161
+ event?: string;
1162
+ data?: unknown[];
1163
+ }>;
1164
+ saveTenantPreferences: (params: ApiPathParams<"saveTenantPreferences">, payload: ApiRequest<"saveTenantPreferences">) => Promise<{
1165
+ message?: string;
1166
+ event?: string;
1167
+ data?: unknown[];
1168
+ }>;
1169
+ saveViewingAvailability: (params: ApiPathParams<"saveViewingAvailability">, payload: ApiRequest<"saveViewingAvailability">) => Promise<{
1170
+ message?: string;
1171
+ event?: string;
1172
+ data?: unknown[];
1173
+ }>;
1174
+ saveUsedItemDetails: (params: ApiPathParams<"saveUsedItemDetails">, payload: ApiRequest<"saveUsedItemDetails">) => Promise<{
1175
+ message?: string;
1176
+ event?: string;
1177
+ data?: unknown[];
1178
+ }>;
1179
+ uploadListingMedia: (params: ApiPathParams<"uploadListingMedia">) => Promise<{
1180
+ data?: {
1181
+ id?: number;
1182
+ listing_id?: number;
1183
+ media_type?: string;
1184
+ storage_path?: string;
1185
+ order_index?: number;
1186
+ is_cover?: boolean;
1187
+ };
1188
+ } | {
1189
+ message?: string;
1190
+ event?: string;
1191
+ data?: {
1192
+ uid?: string;
1193
+ media_type?: string;
1194
+ url?: string;
1195
+ };
1196
+ }>;
1197
+ reorderListingMedia: (params: ApiPathParams<"reorderListingMedia">, payload: ApiRequest<"reorderListingMedia">) => Promise<{
1198
+ message?: string;
1199
+ event?: string;
1200
+ data?: unknown[];
1201
+ }>;
1202
+ setListingCoverMedia: (params: ApiPathParams<"setListingCoverMedia">) => Promise<{
1203
+ message?: string;
1204
+ event?: string;
1205
+ data?: unknown[];
1206
+ }>;
1207
+ submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
1208
+ data?: {
1209
+ uid?: string;
1210
+ listing_type?: string;
1211
+ vertical?: string;
1212
+ price?: string | null;
1213
+ state?: string;
1214
+ is_visible?: boolean;
1215
+ summary?: {
1216
+ property_type?: string | null;
1217
+ bedrooms?: string | null;
1218
+ bathrooms?: string | null;
1219
+ city?: string | null;
1220
+ availability?: string | null;
1221
+ };
1222
+ workflow?: unknown[];
1223
+ media?: unknown[];
1224
+ };
1225
+ }>;
1226
+ getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
1227
+ data?: {
1228
+ listing_uid?: string | null;
1229
+ compliances?: string | null;
1230
+ };
1231
+ }>;
1232
+ submitListingCompliance: (params: ApiPathParams<"submitListingCompliance">, payload: ApiRequest<"submitListingCompliance">) => Promise<{
1233
+ data?: {
1234
+ id?: number;
1235
+ listing_id?: number;
1236
+ compliance?: {
1237
+ id?: number;
1238
+ key?: string;
1239
+ name?: string;
1240
+ };
1241
+ verification_layer_key?: string;
1242
+ status?: string;
1243
+ submitted_data?: unknown[];
1244
+ rejection_reason?: string | null;
1245
+ reviewed_by?: number;
1246
+ reviewed_at?: string | null;
1247
+ created_at?: string;
1248
+ };
1249
+ }>;
1250
+ resolveListingCompliance: (params: ApiPathParams<"resolveListingCompliance">) => Promise<{
1251
+ data?: {
1252
+ listing_uid?: string | null;
1253
+ compliances?: string | null;
1254
+ };
1255
+ }>;
1256
+ getLandlordTenancies: () => Promise<{
1257
+ data?: {
1258
+ uid?: string;
1259
+ listing_id?: number;
1260
+ landlord_id?: number;
1261
+ tenant_id?: number;
1262
+ rent_amount?: string;
1263
+ deposit_amount?: string;
1264
+ state?: string;
1265
+ start_date?: string;
1266
+ end_date?: string;
1267
+ is_periodic?: boolean;
1268
+ created_at?: string;
1269
+ }[];
1270
+ links?: {
1271
+ first?: string;
1272
+ last?: string;
1273
+ prev?: string | null;
1274
+ next?: string | null;
1275
+ };
1276
+ meta?: {
1277
+ current_page?: number;
1278
+ from?: number;
1279
+ last_page?: number;
1280
+ links?: {
1281
+ url?: string | null;
1282
+ label?: string;
1283
+ page?: string | null;
1284
+ active?: boolean;
1285
+ }[];
1286
+ path?: string;
1287
+ per_page?: number;
1288
+ to?: number;
1289
+ total?: number;
1290
+ };
1291
+ }>;
1292
+ submitTenancyCompliance: (params: ApiPathParams<"submitTenancyCompliance">, payload: ApiRequest<"submitTenancyCompliance">) => Promise<{
1293
+ data?: {
1294
+ id?: number;
1295
+ tenancy_id?: number;
1296
+ compliance?: {
1297
+ id?: number;
1298
+ key?: string;
1299
+ name?: string;
1300
+ };
1301
+ verification_layer_key?: string;
1302
+ status?: string;
1303
+ submitted_data?: string | null;
1304
+ rejection_reason?: string | null;
1305
+ reviewed_by?: number;
1306
+ reviewed_at?: string;
1307
+ created_at?: string;
1308
+ };
1309
+ }>;
1310
+ resolveTenancyCompliance: (params: ApiPathParams<"resolveTenancyCompliance">) => Promise<{
1311
+ message?: string;
1312
+ event?: string;
1313
+ data?: unknown[];
1314
+ }>;
1315
+ };
1316
+
1317
+ declare const listings: {
1318
+ search: (query?: Expand<ApiRequest<"searchListings">>) => Promise<{
1319
+ data?: {
1320
+ uid?: string;
1321
+ listing_type?: string;
1322
+ vertical?: string;
1323
+ price?: string | null;
1324
+ state?: string;
1325
+ is_visible?: boolean;
1326
+ summary?: {
1327
+ property_type?: string | null;
1328
+ bedrooms?: string | null;
1329
+ bathrooms?: string | null;
1330
+ city?: string | null;
1331
+ availability?: string | null;
1332
+ };
1333
+ workflow?: unknown[];
1334
+ media?: unknown[];
1335
+ }[];
1336
+ links?: {
1337
+ first?: string;
1338
+ last?: string;
1339
+ prev?: string | null;
1340
+ next?: string | null;
1341
+ };
1342
+ meta?: {
1343
+ current_page?: number;
1344
+ from?: number;
1345
+ last_page?: number;
1346
+ links?: {
1347
+ url?: string | null;
1348
+ label?: string;
1349
+ page?: string | null;
1350
+ active?: boolean;
1351
+ }[];
1352
+ path?: string;
1353
+ per_page?: number;
1354
+ to?: number;
1355
+ total?: number;
1356
+ };
1357
+ }>;
1358
+ discover: (query?: Expand<ApiRequest<"discoverListings">>) => Promise<{
1359
+ data?: {
1360
+ uid?: string;
1361
+ listing_type?: string;
1362
+ vertical?: string;
1363
+ price?: string | null;
1364
+ state?: string;
1365
+ is_visible?: boolean;
1366
+ summary?: {
1367
+ property_type?: string | null;
1368
+ bedrooms?: string | null;
1369
+ bathrooms?: string | null;
1370
+ city?: string | null;
1371
+ availability?: string | null;
1372
+ };
1373
+ workflow?: unknown[];
1374
+ media?: unknown[];
1375
+ }[];
1376
+ links?: {
1377
+ first?: string;
1378
+ last?: string;
1379
+ prev?: string | null;
1380
+ next?: string | null;
1381
+ };
1382
+ meta?: {
1383
+ current_page?: number;
1384
+ from?: number;
1385
+ last_page?: number;
1386
+ links?: {
1387
+ url?: string | null;
1388
+ label?: string;
1389
+ page?: string | null;
1390
+ active?: boolean;
1391
+ }[];
1392
+ path?: string;
1393
+ per_page?: number;
1394
+ to?: number;
1395
+ total?: number;
1396
+ };
1397
+ }>;
1398
+ fetchOne: (params: ApiPathParams<"fetchOne">) => Promise<{
1399
+ message?: string;
1400
+ event?: string | null;
1401
+ data?: {
1402
+ uid?: string | null;
1403
+ listing_type?: string | null;
1404
+ vertical?: string | null;
1405
+ price?: string | null;
1406
+ state?: string | null;
1407
+ is_visible?: boolean;
1408
+ summary?: unknown[];
1409
+ workflow?: unknown[];
1410
+ media?: unknown[];
1411
+ compliances?: unknown[];
1412
+ compliance_status?: {
1413
+ overall?: string;
1414
+ breakdown?: unknown[];
1415
+ };
1416
+ };
1417
+ }>;
1418
+ };
1419
+
1420
+ declare const maintenance: {
1421
+ listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">) => Promise<{
1422
+ data?: {
1423
+ uid?: string;
1424
+ title?: string;
1425
+ description?: string;
1426
+ status?: string;
1427
+ priority?: string;
1428
+ reported_at?: string;
1429
+ assigned_at?: string | null;
1430
+ completed_at?: string | null;
1431
+ sla_deadline?: string;
1432
+ created_at?: string;
1433
+ updated_at?: string;
1434
+ }[];
1435
+ links?: {
1436
+ first?: string;
1437
+ last?: string;
1438
+ prev?: string | null;
1439
+ next?: string | null;
1440
+ };
1441
+ meta?: {
1442
+ current_page?: number;
1443
+ from?: number;
1444
+ last_page?: number;
1445
+ links?: {
1446
+ url?: string | null;
1447
+ label?: string;
1448
+ page?: string | null;
1449
+ active?: boolean;
1450
+ }[];
1451
+ path?: string;
1452
+ per_page?: number;
1453
+ to?: number;
1454
+ total?: number;
1455
+ };
1456
+ }>;
1457
+ report: (payload: ApiRequest<"reportMaintenance">) => Promise<{
1458
+ data?: {
1459
+ uid?: string;
1460
+ title?: string;
1461
+ description?: string;
1462
+ status?: string;
1463
+ priority?: string;
1464
+ reported_at?: string;
1465
+ assigned_at?: string;
1466
+ completed_at?: string | null;
1467
+ sla_deadline?: string;
1468
+ created_at?: string;
1469
+ updated_at?: string;
1470
+ }[];
1471
+ links?: {
1472
+ first?: string;
1473
+ last?: string;
1474
+ prev?: string | null;
1475
+ next?: string | null;
1476
+ };
1477
+ meta?: {
1478
+ current_page?: number;
1479
+ from?: number;
1480
+ last_page?: number;
1481
+ links?: {
1482
+ url?: string | null;
1483
+ label?: string;
1484
+ page?: string | null;
1485
+ active?: boolean;
1486
+ }[];
1487
+ path?: string;
1488
+ per_page?: number;
1489
+ to?: number;
1490
+ total?: number;
1491
+ };
1492
+ }>;
1493
+ uploadAttachment: (params: ApiPathParams<"uploadAttachmentMaintenance">) => Promise<{
1494
+ data?: {
1495
+ uid?: string;
1496
+ file_type?: string;
1497
+ url?: string;
1498
+ created_at?: string;
1499
+ };
1500
+ }>;
1501
+ };
1502
+
1503
+ declare const conversations: {
1504
+ createConversation: (payload: ApiRequest<"createConversation">) => Promise<{
1505
+ data?: {
1506
+ id?: number;
1507
+ type?: string;
1508
+ listing_id?: number;
1509
+ last_message_at?: string | null;
1510
+ created_at?: string;
1511
+ };
1512
+ }>;
1513
+ list: () => Promise<{
1514
+ data?: {
1515
+ id?: number;
1516
+ type?: string;
1517
+ listing_id?: number;
1518
+ last_message_at?: string | null;
1519
+ created_at?: string;
1520
+ }[];
1521
+ links?: {
1522
+ first?: string;
1523
+ last?: string;
1524
+ prev?: string | null;
1525
+ next?: string | null;
1526
+ };
1527
+ meta?: {
1528
+ current_page?: number;
1529
+ from?: number;
1530
+ last_page?: number;
1531
+ links?: {
1532
+ url?: string | null;
1533
+ label?: string;
1534
+ page?: string | null;
1535
+ active?: boolean;
1536
+ }[];
1537
+ path?: string;
1538
+ per_page?: number;
1539
+ to?: number;
1540
+ total?: number;
1541
+ };
1542
+ }>;
1543
+ listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
1544
+ data?: {
1545
+ id?: number;
1546
+ conversation_id?: number;
1547
+ body?: string;
1548
+ attachment_url?: string | null;
1549
+ is_system?: boolean;
1550
+ state?: string;
1551
+ read_at?: string | null;
1552
+ created_at?: string;
1553
+ }[];
1554
+ links?: {
1555
+ first?: string;
1556
+ last?: string;
1557
+ prev?: string | null;
1558
+ next?: string | null;
1559
+ };
1560
+ meta?: {
1561
+ current_page?: number;
1562
+ from?: number;
1563
+ last_page?: number;
1564
+ links?: {
1565
+ url?: string | null;
1566
+ label?: string;
1567
+ page?: string | null;
1568
+ active?: boolean;
1569
+ }[];
1570
+ path?: string;
1571
+ per_page?: number;
1572
+ to?: number;
1573
+ total?: number;
1574
+ };
1575
+ }>;
1576
+ sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<unknown>;
1577
+ markConversationAsRead: (params: ApiPathParams<"markConversationAsRead">) => Promise<{
1578
+ message?: string;
1579
+ event?: string | null;
1580
+ data?: {
1581
+ marked_read?: number;
1582
+ };
1583
+ }>;
1584
+ };
1585
+
1586
+ declare const notification: {
1587
+ fetch: () => Promise<{
1588
+ data?: {
1589
+ id?: string;
1590
+ type?: string;
1591
+ title?: string;
1592
+ body?: string;
1593
+ data?: unknown[];
1594
+ read_at?: string | null;
1595
+ created_at?: string;
1596
+ }[];
1597
+ links?: {
1598
+ first?: string;
1599
+ last?: string;
1600
+ prev?: string | null;
1601
+ next?: string | null;
1602
+ };
1603
+ meta?: {
1604
+ current_page?: number;
1605
+ from?: number;
1606
+ last_page?: number;
1607
+ links?: {
1608
+ url?: string | null;
1609
+ label?: string;
1610
+ page?: string | null;
1611
+ active?: boolean;
1612
+ }[];
1613
+ path?: string;
1614
+ per_page?: number;
1615
+ to?: number;
1616
+ total?: number;
1617
+ };
1618
+ }>;
1619
+ read: (params: ApiPathParams<"readNotification">) => Promise<{
1620
+ id?: string;
1621
+ type?: string;
1622
+ title?: string;
1623
+ body?: string;
1624
+ data?: unknown[];
1625
+ read_at?: string | null;
1626
+ created_at?: string;
1627
+ }>;
1628
+ readAll: () => Promise<{
1629
+ message?: string;
1630
+ event?: string | null;
1631
+ data?: string | null;
1632
+ }>;
1633
+ countUnRead: () => Promise<{
1634
+ message?: string;
1635
+ event?: string | null;
1636
+ data?: {
1637
+ count?: string;
1638
+ };
1639
+ }>;
1640
+ registerDeviceToken: () => Promise<{
1641
+ message?: string;
1642
+ event?: string | null;
1643
+ data?: string | null;
1644
+ }>;
1645
+ };
1646
+
1647
+ declare const plan: {
1648
+ myCapabilities: () => Promise<{
1649
+ message?: string;
1650
+ event?: string | null;
1651
+ data?: {
1652
+ capabilities?: string[];
1653
+ };
1654
+ }>;
1655
+ checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
1656
+ message?: string;
1657
+ event?: string | null;
1658
+ data?: {
1659
+ capability?: string;
1660
+ allowed?: string;
1661
+ };
1662
+ }>;
1663
+ };
1664
+
1665
+ declare const review: {
1666
+ fetchAll: () => Promise<{
1667
+ data?: {
1668
+ id?: number;
1669
+ rating?: number;
1670
+ comment?: string;
1671
+ reviewer?: {
1672
+ id?: number;
1673
+ name?: string;
1674
+ };
1675
+ created_at?: string;
1676
+ updated_at?: string;
1677
+ }[];
1678
+ links?: {
1679
+ first?: string;
1680
+ last?: string;
1681
+ prev?: string | null;
1682
+ next?: string | null;
1683
+ };
1684
+ meta?: {
1685
+ current_page?: number;
1686
+ from?: number;
1687
+ last_page?: number;
1688
+ links?: {
1689
+ url?: string | null;
1690
+ label?: string;
1691
+ page?: string | null;
1692
+ active?: boolean;
1693
+ }[];
1694
+ path?: string;
1695
+ per_page?: number;
1696
+ to?: number;
1697
+ total?: number;
1698
+ };
1699
+ }>;
1700
+ ratingSummary: () => Promise<unknown>;
1701
+ createListing: (payload: ApiRequest<"createListingReview">) => Promise<{
1702
+ data?: {
1703
+ id?: number;
1704
+ rating?: number;
1705
+ comment?: string;
1706
+ reviewer?: {
1707
+ id?: number;
1708
+ name?: string;
1709
+ };
1710
+ created_at?: string;
1711
+ updated_at?: string;
1712
+ };
1713
+ }>;
1714
+ createUser: (payload: ApiRequest<"createUserReview">) => Promise<{
1715
+ data?: {
1716
+ id?: number;
1717
+ rating?: number;
1718
+ comment?: string;
1719
+ reviewer?: {
1720
+ id?: number;
1721
+ name?: string;
1722
+ };
1723
+ created_at?: string;
1724
+ updated_at?: string;
1725
+ };
1726
+ }>;
1727
+ update: (params: ApiPathParams<"updateReview">, payload: ApiRequest<"updateReview">) => Promise<{
1728
+ data?: {
1729
+ id?: number;
1730
+ rating?: number;
1731
+ comment?: string;
1732
+ reviewer?: {
1733
+ id?: number;
1734
+ name?: string;
1735
+ };
1736
+ created_at?: string;
1737
+ updated_at?: string;
1738
+ };
1739
+ }>;
1740
+ delete: (params: ApiPathParams<"deleteReview">) => Promise<{
1741
+ data?: {
1742
+ id?: number;
1743
+ rating?: number;
1744
+ comment?: string;
1745
+ reviewer?: {
1746
+ id?: number;
1747
+ name?: string;
1748
+ };
1749
+ created_at?: string;
1750
+ updated_at?: string;
1751
+ };
1752
+ }>;
1753
+ };
1754
+
1755
+ declare const tenancy: {
1756
+ fetchOne: (params: ApiPathParams<"fetchOneTenancy">) => Promise<{
1757
+ data?: {
1758
+ uid?: string;
1759
+ listing_id?: number;
1760
+ landlord_id?: number;
1761
+ tenant_id?: number;
1762
+ rent_amount?: string;
1763
+ deposit_amount?: string;
1764
+ state?: string;
1765
+ start_date?: string;
1766
+ end_date?: string;
1767
+ is_periodic?: boolean;
1768
+ created_at?: string;
1769
+ compliances?: unknown[];
1770
+ compliance_status?: {
1771
+ overall?: string;
1772
+ breakdown?: unknown[];
1773
+ };
1774
+ };
1775
+ }>;
1776
+ create: (payload: ApiRequest<"createTenancy">) => Promise<{
1777
+ data?: {
1778
+ uid?: string;
1779
+ listing_id?: number;
1780
+ landlord_id?: number;
1781
+ tenant_id?: number;
1782
+ rent_amount?: string;
1783
+ deposit_amount?: string;
1784
+ state?: string;
1785
+ start_date?: string;
1786
+ end_date?: string;
1787
+ is_periodic?: boolean;
1788
+ created_at?: string;
1789
+ };
1790
+ }>;
1791
+ transition: (params: ApiPathParams<"transitionTenancy">, payload: ApiRequest<"transitionTenancy">) => Promise<{
1792
+ message?: string;
1793
+ event?: string | null;
1794
+ data?: {
1795
+ previous_state?: string;
1796
+ new_state?: string;
1797
+ };
1798
+ }>;
1799
+ complianceStatus: (params: ApiPathParams<"complianceStatusTenancy">) => Promise<{
1800
+ message?: string;
1801
+ event?: string | null;
1802
+ data?: {
1803
+ is_compliant?: boolean;
1804
+ missing_items?: {
1805
+ requirement?: string;
1806
+ description?: string;
1807
+ }[];
1808
+ };
1809
+ }>;
1810
+ renew: (params: ApiPathParams<"renewTenancy">) => Promise<{
1811
+ message?: string;
1812
+ event?: string | null;
1813
+ data?: {
1814
+ state?: string;
1815
+ };
1816
+ }>;
1817
+ convert: (params: ApiPathParams<"convertTenancy">) => Promise<{
1818
+ message?: string;
1819
+ event?: string | null;
1820
+ data?: {
1821
+ state?: string;
1822
+ };
1823
+ }>;
1824
+ serveNotice: (params: ApiPathParams<"serveNoticeTenancy">, payload: ApiRequest<"serveNoticeTenancy">) => Promise<{
1825
+ message?: string;
1826
+ event?: string | null;
1827
+ data?: {
1828
+ state?: string;
1829
+ };
1830
+ }>;
1831
+ terminate: (params: ApiPathParams<"terminateTenancy">, payload: ApiRequest<"terminateTenancy">) => Promise<{
1832
+ message?: string;
1833
+ event?: string | null;
1834
+ data?: {
1835
+ state?: string;
1836
+ };
1837
+ }>;
1838
+ fetchTransitions: (params: ApiPathParams<"fetchTransitionsTenancy">) => Promise<{
1839
+ data?: {
1840
+ from_state?: string;
1841
+ to_state?: string;
1842
+ changed_by_user_id?: number;
1843
+ changed_by_name?: string;
1844
+ comment?: string | null;
1845
+ created_at?: string;
1846
+ }[];
1847
+ }>;
1848
+ uploadDocument: (params: ApiPathParams<"uploadDocumentTenancy">) => Promise<{
1849
+ message?: string;
1850
+ event?: string | null;
1851
+ data?: {
1852
+ document_id?: number;
1853
+ version?: number;
1854
+ };
1855
+ }>;
1856
+ downloadDocument: (params: ApiPathParams<"downloadDocumentTenancy">) => Promise<{
1857
+ "Content-Type"?: string;
1858
+ }>;
1859
+ };
1860
+
1861
+ declare const userverification: {
1862
+ overview: () => Promise<{
1863
+ data?: {
1864
+ current_level?: number;
1865
+ completed_layers?: number;
1866
+ pending_layers?: number;
1867
+ last_calculated_at?: string;
1868
+ };
1869
+ }>;
1870
+ submit: (params: ApiPathParams<"submitUserVerification">, payload: ApiRequest<"submitUserVerification">) => Promise<{
1871
+ data?: {
1872
+ current_level?: number;
1873
+ completed_layers?: number;
1874
+ pending_layers?: number;
1875
+ last_calculated_at?: string;
1876
+ };
1877
+ }>;
1878
+ fetchFlow: () => Promise<{
1879
+ data?: {
1880
+ current_level?: number;
1881
+ completed_layers?: number;
1882
+ pending_layers?: number;
1883
+ last_calculated_at?: string;
1884
+ };
1885
+ }>;
1886
+ resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
1887
+ data?: {
1888
+ current_level?: number;
1889
+ completed_layers?: number;
1890
+ pending_layers?: number;
1891
+ last_calculated_at?: string;
1892
+ };
1893
+ }>;
1894
+ };
1895
+
1896
+ declare const wishlist: {
1897
+ create: (payload: ApiRequest<"createWishlist">) => Promise<unknown>;
1898
+ remove: (params: ApiPathParams<"removeWishlist">) => Promise<{
1899
+ message?: string;
1900
+ event?: string | null;
1901
+ data?: string | null;
1902
+ }>;
1903
+ get: (query?: Expand<ApiRequest<"getWishlist">>) => Promise<{
1904
+ data?: {
1905
+ wishlist_uid?: string;
1906
+ }[];
1907
+ links?: {
1908
+ first?: string;
1909
+ last?: string;
1910
+ prev?: string | null;
1911
+ next?: string | null;
1912
+ };
1913
+ meta?: {
1914
+ current_page?: number;
1915
+ from?: number;
1916
+ last_page?: number;
1917
+ links?: {
1918
+ url?: string | null;
1919
+ label?: string;
1920
+ page?: string | null;
1921
+ active?: boolean;
1922
+ }[];
1923
+ path?: string;
1924
+ per_page?: number;
1925
+ to?: number;
1926
+ total?: number;
1927
+ };
1928
+ }>;
1929
+ };
1930
+
1931
+ export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin, agent, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, userverification, wishlist };