@justins-home/api-services 1.2.12 → 1.2.14

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.
package/dist/index.d.mts CHANGED
@@ -203,6 +203,8 @@ declare const admin: {
203
203
  verification_status?: {
204
204
  overall?: string;
205
205
  breakdown?: {
206
+ verification_name?: string;
207
+ verification_description?: string;
206
208
  verification_key?: string;
207
209
  state?: string;
208
210
  }[];
@@ -248,6 +250,40 @@ declare const admin: {
248
250
  };
249
251
  };
250
252
  }>;
253
+ fetchLandlordListingComplianceSubmissions: (params: ApiPathParams<"fetchLandlordListingComplianceSubmissionsAdmin">, query?: Expand<ApiRequest<"fetchLandlordListingComplianceSubmissionsAdmin">>) => Promise<{
254
+ message?: string;
255
+ event?: string | null;
256
+ data?: {
257
+ items?: {
258
+ listing?: {
259
+ details?: {
260
+ address?: string;
261
+ title?: string;
262
+ type?: string;
263
+ };
264
+ };
265
+ compliance?: {
266
+ key?: string;
267
+ name?: string;
268
+ validity_type?: string;
269
+ };
270
+ status?: string;
271
+ reviewed_by?: {
272
+ uid?: string;
273
+ name?: string;
274
+ };
275
+ date_submitted?: string;
276
+ }[];
277
+ pagination?: {
278
+ current_page?: number;
279
+ per_page?: number;
280
+ total?: number;
281
+ last_page?: number;
282
+ from?: number;
283
+ to?: number;
284
+ };
285
+ };
286
+ }>;
251
287
  fetchTenantList: (query?: Expand<ApiRequest<"fetchTenantListAdmin">>) => Promise<{
252
288
  message?: string;
253
289
  event?: string | null;
@@ -283,19 +319,21 @@ declare const admin: {
283
319
  };
284
320
  }>;
285
321
  fetchUser: (params: ApiPathParams<"fetchUserAdmin">) => Promise<{
322
+ message?: string;
323
+ event?: string | null;
286
324
  data?: {
287
325
  uid?: string;
288
326
  username?: string;
289
- first_name?: string | null;
290
- last_name?: string | null;
327
+ first_name?: string;
328
+ last_name?: string;
291
329
  email?: string;
292
- phone?: string | null;
293
- status?: string | null;
330
+ phone?: string;
331
+ status?: string;
294
332
  user_mode?: string;
295
- last_login_at?: string | null;
296
- last_login_ip?: string | null;
333
+ last_login_at?: string;
334
+ last_login_ip?: string;
297
335
  two_factor_enabled?: boolean;
298
- avatar_path?: string | null;
336
+ avatar_path?: string;
299
337
  language?: string;
300
338
  timezone?: string;
301
339
  user_type?: string;
@@ -304,10 +342,131 @@ declare const admin: {
304
342
  verification_status?: {
305
343
  overall?: string;
306
344
  breakdown?: {
345
+ verification_name?: string | null;
346
+ verification_description?: string | null;
307
347
  verification_key?: string;
308
348
  state?: string;
309
349
  }[];
310
350
  };
351
+ legal_full_name?: string;
352
+ date_of_birth?: string;
353
+ nationality?: string;
354
+ landlord_type?: string;
355
+ company_name?: string | null;
356
+ company_registration_number?: string | null;
357
+ address?: string;
358
+ address_line_2?: string | null;
359
+ city?: string;
360
+ postcode?: string;
361
+ country?: string;
362
+ accepts_supported_housing?: boolean;
363
+ accepts_company_lets?: boolean;
364
+ accepts_pets?: boolean;
365
+ accepts_dss?: boolean;
366
+ maintenance_contact_type?: string;
367
+ prefers_email_contact?: boolean;
368
+ prefers_sms_contact?: boolean;
369
+ role?: string | null;
370
+ };
371
+ }>;
372
+ fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
373
+ message?: string;
374
+ event?: string | null;
375
+ data?: {
376
+ items?: {
377
+ maintenance_request_uid?: string;
378
+ listing?: {
379
+ details?: {
380
+ address?: string;
381
+ title?: string;
382
+ type?: string;
383
+ };
384
+ };
385
+ request_details?: {
386
+ title?: string;
387
+ description?: string;
388
+ status?: string;
389
+ };
390
+ priority?: string;
391
+ sla_breached?: boolean;
392
+ }[];
393
+ pagination?: {
394
+ current_page?: number;
395
+ per_page?: number;
396
+ total?: number;
397
+ last_page?: number;
398
+ from?: number;
399
+ to?: number;
400
+ };
401
+ };
402
+ }>;
403
+ fetchUserVerificationDocuments: (params: ApiPathParams<"fetchUserVerificationDocumentsAdmin">) => Promise<{
404
+ message?: string;
405
+ event?: string | null;
406
+ data?: {
407
+ items?: {
408
+ file_name?: string;
409
+ storage_path?: string;
410
+ view_url?: string;
411
+ download_url?: string;
412
+ disk?: string;
413
+ source_type?: string;
414
+ source_key?: string;
415
+ source_name?: string;
416
+ document_field?: string;
417
+ document_type?: string;
418
+ status?: string;
419
+ submitted_at?: string;
420
+ submitted_at_human?: string;
421
+ }[];
422
+ };
423
+ }>;
424
+ fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">) => Promise<{
425
+ message?: string;
426
+ event?: string | null;
427
+ data?: {
428
+ items?: {
429
+ uid?: string;
430
+ action?: string;
431
+ actor_id?: number;
432
+ auditable_id?: number;
433
+ metadata?: {
434
+ ip?: string;
435
+ };
436
+ created_at?: string;
437
+ created_at_human?: string;
438
+ }[];
439
+ pagination?: {
440
+ current_page?: number;
441
+ per_page?: number;
442
+ total?: number;
443
+ last_page?: number;
444
+ from?: number;
445
+ to?: number;
446
+ };
447
+ };
448
+ }>;
449
+ fetchUserAuditLogsByAction: (params: ApiPathParams<"fetchUserAuditLogsByActionAdmin">) => Promise<{
450
+ message?: string;
451
+ event?: string | null;
452
+ data?: {
453
+ items?: {
454
+ uid?: string;
455
+ action?: string;
456
+ actor_id?: number;
457
+ auditable_id?: number;
458
+ metadata?: unknown[];
459
+ created_at?: string;
460
+ created_at_human?: string;
461
+ }[];
462
+ pagination?: {
463
+ current_page?: number;
464
+ per_page?: number;
465
+ total?: number;
466
+ last_page?: number;
467
+ from?: number;
468
+ to?: number;
469
+ };
311
470
  };
312
471
  }>;
313
472
  forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
@@ -340,12 +499,56 @@ declare const admin: {
340
499
  verification_status?: {
341
500
  overall?: string;
342
501
  breakdown?: {
502
+ verification_name?: string;
503
+ verification_description?: string;
343
504
  verification_key?: string;
344
505
  state?: string;
345
506
  }[];
346
507
  };
347
508
  };
348
509
  }>;
510
+ fetchListingList: (query?: Expand<ApiRequest<"fetchListingListAdmin">>) => Promise<{
511
+ message?: string;
512
+ event?: string | null;
513
+ data?: {
514
+ items?: {
515
+ listing_uid?: string;
516
+ details?: {
517
+ address?: string;
518
+ title?: string;
519
+ type?: string;
520
+ };
521
+ vertical?: {
522
+ value?: string;
523
+ label?: string;
524
+ };
525
+ owner?: {
526
+ uid?: string;
527
+ name?: string;
528
+ };
529
+ compliance_status?: {
530
+ overall?: string;
531
+ label?: string;
532
+ };
533
+ active_tenancy?: {
534
+ has_active_tenancy?: boolean;
535
+ tenancy_uid?: string;
536
+ };
537
+ state?: {
538
+ value?: string;
539
+ label?: string;
540
+ };
541
+ }[];
542
+ pagination?: {
543
+ current_page?: number;
544
+ per_page?: number;
545
+ total?: number;
546
+ last_page?: number;
547
+ from?: number;
548
+ to?: number;
549
+ };
550
+ };
551
+ }>;
349
552
  getSubmittedListing: () => Promise<{
350
553
  data?: {
351
554
  draft_name?: string;
@@ -355,7 +558,9 @@ declare const admin: {
355
558
  price?: string | null;
356
559
  state?: string;
357
560
  is_visible?: boolean;
358
- summary?: unknown[];
561
+ summary?: {
562
+ availability?: string | null;
563
+ };
359
564
  workflow?: unknown[];
360
565
  media?: unknown[];
361
566
  }[];
@@ -381,6 +586,27 @@ declare const admin: {
381
586
  total?: number;
382
587
  };
383
588
  }>;
589
+ fetchListingComplianceDocuments: (params: ApiPathParams<"fetchListingComplianceDocumentsAdmin">) => Promise<{
590
+ message?: string;
591
+ event?: string | null;
592
+ data?: {
593
+ items?: {
594
+ file_name?: string;
595
+ storage_path?: string;
596
+ view_url?: string;
597
+ download_url?: string;
598
+ disk?: string;
599
+ source_type?: string;
600
+ source_key?: string;
601
+ source_name?: string;
602
+ document_field?: string;
603
+ document_type?: string;
604
+ status?: string;
605
+ submitted_at?: string;
606
+ submitted_at_human?: string;
607
+ }[];
608
+ };
609
+ }>;
384
610
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
385
611
  data?: {
386
612
  draft_name?: string;
@@ -753,6 +979,8 @@ declare const admin: {
753
979
  };
754
980
  }>;
755
981
  syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
982
+ viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
983
+ downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
756
984
  getCapabilities: () => Promise<{
757
985
  data?: {
758
986
  key?: string;
@@ -917,7 +1145,7 @@ declare const admin: {
917
1145
  status?: string;
918
1146
  priority?: string;
919
1147
  reported_at?: string;
920
- assigned_at?: string | null;
1148
+ assigned_at?: string;
921
1149
  completed_at?: string | null;
922
1150
  sla_deadline?: string;
923
1151
  created_at?: string;
@@ -969,6 +1197,72 @@ declare const admin: {
969
1197
  updated_at?: string;
970
1198
  };
971
1199
  }>;
1200
+ fetchTenancyList: (query?: Expand<ApiRequest<"fetchTenancyListAdmin">>) => Promise<{
1201
+ message?: string;
1202
+ event?: string | null;
1203
+ data?: {
1204
+ items?: {
1205
+ tenancy_uid?: string;
1206
+ listing?: {
1207
+ details?: {
1208
+ address?: string;
1209
+ title?: string;
1210
+ type?: string;
1211
+ };
1212
+ owner?: {
1213
+ uid?: string;
1214
+ name?: string;
1215
+ };
1216
+ };
1217
+ rent_amount?: string;
1218
+ deposit_amount?: string;
1219
+ tenant?: {
1220
+ uid?: string;
1221
+ name?: string;
1222
+ email?: string;
1223
+ };
1224
+ compliance_status?: {
1225
+ overall?: string;
1226
+ label?: string;
1227
+ };
1228
+ state?: {
1229
+ value?: string;
1230
+ label?: string;
1231
+ };
1232
+ start_date?: string;
1233
+ end_date?: string;
1234
+ }[];
1235
+ pagination?: {
1236
+ current_page?: number;
1237
+ per_page?: number;
1238
+ total?: number;
1239
+ last_page?: number;
1240
+ from?: number;
1241
+ to?: number;
1242
+ };
1243
+ };
1244
+ }>;
1245
+ fetchTenancyComplianceDocuments: (params: ApiPathParams<"fetchTenancyComplianceDocumentsAdmin">) => Promise<{
1246
+ message?: string;
1247
+ event?: string | null;
1248
+ data?: {
1249
+ items?: {
1250
+ file_name?: string;
1251
+ storage_path?: string;
1252
+ view_url?: string;
1253
+ download_url?: string;
1254
+ disk?: string;
1255
+ source_type?: string;
1256
+ source_key?: string;
1257
+ source_name?: string;
1258
+ document_field?: string;
1259
+ document_type?: string;
1260
+ status?: string;
1261
+ submitted_at?: string;
1262
+ submitted_at_human?: string;
1263
+ }[];
1264
+ };
1265
+ }>;
972
1266
  };
973
1267
 
974
1268
  declare const appointment: {
@@ -1242,6 +1536,8 @@ declare const tenant: {
1242
1536
  verification_status?: {
1243
1537
  overall?: string;
1244
1538
  breakdown?: {
1539
+ verification_name?: string;
1540
+ verification_description?: string;
1245
1541
  verification_key?: string;
1246
1542
  state?: string;
1247
1543
  }[];
@@ -1345,6 +1641,8 @@ declare const landlord: {
1345
1641
  verification_status?: {
1346
1642
  overall?: string;
1347
1643
  breakdown?: {
1644
+ verification_name?: string;
1645
+ verification_description?: string;
1348
1646
  verification_key?: string;
1349
1647
  state?: string;
1350
1648
  }[];
@@ -1495,6 +1793,8 @@ declare const landlord: {
1495
1793
  verification_status?: {
1496
1794
  overall?: string;
1497
1795
  breakdown?: {
1796
+ verification_name?: string;
1797
+ verification_description?: string;
1498
1798
  verification_key?: string;
1499
1799
  state?: string;
1500
1800
  }[];
@@ -2302,7 +2602,20 @@ declare const plan: {
2302
2602
  message?: string;
2303
2603
  event?: string | null;
2304
2604
  data?: {
2305
- capabilities?: string[];
2605
+ create_listing?: {
2606
+ name?: string;
2607
+ description?: string;
2608
+ allowed?: boolean;
2609
+ reason?: string;
2610
+ missing?: string[];
2611
+ };
2612
+ publish_listing?: {
2613
+ name?: string;
2614
+ description?: string | null;
2615
+ allowed?: boolean;
2616
+ reason?: string;
2617
+ missing?: string[];
2618
+ };
2306
2619
  };
2307
2620
  }>;
2308
2621
  checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
@@ -2546,6 +2859,8 @@ declare const user: {
2546
2859
  verification_status?: {
2547
2860
  overall?: string;
2548
2861
  breakdown?: {
2862
+ verification_name?: string;
2863
+ verification_description?: string;
2549
2864
  verification_key?: string;
2550
2865
  state?: string;
2551
2866
  }[];
@@ -2574,6 +2889,8 @@ declare const user: {
2574
2889
  verification_status?: {
2575
2890
  overall?: string;
2576
2891
  breakdown?: {
2892
+ verification_name?: string;
2893
+ verification_description?: string;
2577
2894
  verification_key?: string;
2578
2895
  state?: string;
2579
2896
  }[];
package/dist/index.d.ts CHANGED
@@ -203,6 +203,8 @@ declare const admin: {
203
203
  verification_status?: {
204
204
  overall?: string;
205
205
  breakdown?: {
206
+ verification_name?: string;
207
+ verification_description?: string;
206
208
  verification_key?: string;
207
209
  state?: string;
208
210
  }[];
@@ -248,6 +250,40 @@ declare const admin: {
248
250
  };
249
251
  };
250
252
  }>;
253
+ fetchLandlordListingComplianceSubmissions: (params: ApiPathParams<"fetchLandlordListingComplianceSubmissionsAdmin">, query?: Expand<ApiRequest<"fetchLandlordListingComplianceSubmissionsAdmin">>) => Promise<{
254
+ message?: string;
255
+ event?: string | null;
256
+ data?: {
257
+ items?: {
258
+ listing?: {
259
+ details?: {
260
+ address?: string;
261
+ title?: string;
262
+ type?: string;
263
+ };
264
+ };
265
+ compliance?: {
266
+ key?: string;
267
+ name?: string;
268
+ validity_type?: string;
269
+ };
270
+ status?: string;
271
+ reviewed_by?: {
272
+ uid?: string;
273
+ name?: string;
274
+ };
275
+ date_submitted?: string;
276
+ }[];
277
+ pagination?: {
278
+ current_page?: number;
279
+ per_page?: number;
280
+ total?: number;
281
+ last_page?: number;
282
+ from?: number;
283
+ to?: number;
284
+ };
285
+ };
286
+ }>;
251
287
  fetchTenantList: (query?: Expand<ApiRequest<"fetchTenantListAdmin">>) => Promise<{
252
288
  message?: string;
253
289
  event?: string | null;
@@ -283,19 +319,21 @@ declare const admin: {
283
319
  };
284
320
  }>;
285
321
  fetchUser: (params: ApiPathParams<"fetchUserAdmin">) => Promise<{
322
+ message?: string;
323
+ event?: string | null;
286
324
  data?: {
287
325
  uid?: string;
288
326
  username?: string;
289
- first_name?: string | null;
290
- last_name?: string | null;
327
+ first_name?: string;
328
+ last_name?: string;
291
329
  email?: string;
292
- phone?: string | null;
293
- status?: string | null;
330
+ phone?: string;
331
+ status?: string;
294
332
  user_mode?: string;
295
- last_login_at?: string | null;
296
- last_login_ip?: string | null;
333
+ last_login_at?: string;
334
+ last_login_ip?: string;
297
335
  two_factor_enabled?: boolean;
298
- avatar_path?: string | null;
336
+ avatar_path?: string;
299
337
  language?: string;
300
338
  timezone?: string;
301
339
  user_type?: string;
@@ -304,10 +342,131 @@ declare const admin: {
304
342
  verification_status?: {
305
343
  overall?: string;
306
344
  breakdown?: {
345
+ verification_name?: string | null;
346
+ verification_description?: string | null;
307
347
  verification_key?: string;
308
348
  state?: string;
309
349
  }[];
310
350
  };
351
+ legal_full_name?: string;
352
+ date_of_birth?: string;
353
+ nationality?: string;
354
+ landlord_type?: string;
355
+ company_name?: string | null;
356
+ company_registration_number?: string | null;
357
+ address?: string;
358
+ address_line_2?: string | null;
359
+ city?: string;
360
+ postcode?: string;
361
+ country?: string;
362
+ accepts_supported_housing?: boolean;
363
+ accepts_company_lets?: boolean;
364
+ accepts_pets?: boolean;
365
+ accepts_dss?: boolean;
366
+ maintenance_contact_type?: string;
367
+ prefers_email_contact?: boolean;
368
+ prefers_sms_contact?: boolean;
369
+ role?: string | null;
370
+ };
371
+ }>;
372
+ fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
373
+ message?: string;
374
+ event?: string | null;
375
+ data?: {
376
+ items?: {
377
+ maintenance_request_uid?: string;
378
+ listing?: {
379
+ details?: {
380
+ address?: string;
381
+ title?: string;
382
+ type?: string;
383
+ };
384
+ };
385
+ request_details?: {
386
+ title?: string;
387
+ description?: string;
388
+ status?: string;
389
+ };
390
+ priority?: string;
391
+ sla_breached?: boolean;
392
+ }[];
393
+ pagination?: {
394
+ current_page?: number;
395
+ per_page?: number;
396
+ total?: number;
397
+ last_page?: number;
398
+ from?: number;
399
+ to?: number;
400
+ };
401
+ };
402
+ }>;
403
+ fetchUserVerificationDocuments: (params: ApiPathParams<"fetchUserVerificationDocumentsAdmin">) => Promise<{
404
+ message?: string;
405
+ event?: string | null;
406
+ data?: {
407
+ items?: {
408
+ file_name?: string;
409
+ storage_path?: string;
410
+ view_url?: string;
411
+ download_url?: string;
412
+ disk?: string;
413
+ source_type?: string;
414
+ source_key?: string;
415
+ source_name?: string;
416
+ document_field?: string;
417
+ document_type?: string;
418
+ status?: string;
419
+ submitted_at?: string;
420
+ submitted_at_human?: string;
421
+ }[];
422
+ };
423
+ }>;
424
+ fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">) => Promise<{
425
+ message?: string;
426
+ event?: string | null;
427
+ data?: {
428
+ items?: {
429
+ uid?: string;
430
+ action?: string;
431
+ actor_id?: number;
432
+ auditable_id?: number;
433
+ metadata?: {
434
+ ip?: string;
435
+ };
436
+ created_at?: string;
437
+ created_at_human?: string;
438
+ }[];
439
+ pagination?: {
440
+ current_page?: number;
441
+ per_page?: number;
442
+ total?: number;
443
+ last_page?: number;
444
+ from?: number;
445
+ to?: number;
446
+ };
447
+ };
448
+ }>;
449
+ fetchUserAuditLogsByAction: (params: ApiPathParams<"fetchUserAuditLogsByActionAdmin">) => Promise<{
450
+ message?: string;
451
+ event?: string | null;
452
+ data?: {
453
+ items?: {
454
+ uid?: string;
455
+ action?: string;
456
+ actor_id?: number;
457
+ auditable_id?: number;
458
+ metadata?: unknown[];
459
+ created_at?: string;
460
+ created_at_human?: string;
461
+ }[];
462
+ pagination?: {
463
+ current_page?: number;
464
+ per_page?: number;
465
+ total?: number;
466
+ last_page?: number;
467
+ from?: number;
468
+ to?: number;
469
+ };
311
470
  };
312
471
  }>;
313
472
  forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
@@ -340,12 +499,56 @@ declare const admin: {
340
499
  verification_status?: {
341
500
  overall?: string;
342
501
  breakdown?: {
502
+ verification_name?: string;
503
+ verification_description?: string;
343
504
  verification_key?: string;
344
505
  state?: string;
345
506
  }[];
346
507
  };
347
508
  };
348
509
  }>;
510
+ fetchListingList: (query?: Expand<ApiRequest<"fetchListingListAdmin">>) => Promise<{
511
+ message?: string;
512
+ event?: string | null;
513
+ data?: {
514
+ items?: {
515
+ listing_uid?: string;
516
+ details?: {
517
+ address?: string;
518
+ title?: string;
519
+ type?: string;
520
+ };
521
+ vertical?: {
522
+ value?: string;
523
+ label?: string;
524
+ };
525
+ owner?: {
526
+ uid?: string;
527
+ name?: string;
528
+ };
529
+ compliance_status?: {
530
+ overall?: string;
531
+ label?: string;
532
+ };
533
+ active_tenancy?: {
534
+ has_active_tenancy?: boolean;
535
+ tenancy_uid?: string;
536
+ };
537
+ state?: {
538
+ value?: string;
539
+ label?: string;
540
+ };
541
+ }[];
542
+ pagination?: {
543
+ current_page?: number;
544
+ per_page?: number;
545
+ total?: number;
546
+ last_page?: number;
547
+ from?: number;
548
+ to?: number;
549
+ };
550
+ };
551
+ }>;
349
552
  getSubmittedListing: () => Promise<{
350
553
  data?: {
351
554
  draft_name?: string;
@@ -355,7 +558,9 @@ declare const admin: {
355
558
  price?: string | null;
356
559
  state?: string;
357
560
  is_visible?: boolean;
358
- summary?: unknown[];
561
+ summary?: {
562
+ availability?: string | null;
563
+ };
359
564
  workflow?: unknown[];
360
565
  media?: unknown[];
361
566
  }[];
@@ -381,6 +586,27 @@ declare const admin: {
381
586
  total?: number;
382
587
  };
383
588
  }>;
589
+ fetchListingComplianceDocuments: (params: ApiPathParams<"fetchListingComplianceDocumentsAdmin">) => Promise<{
590
+ message?: string;
591
+ event?: string | null;
592
+ data?: {
593
+ items?: {
594
+ file_name?: string;
595
+ storage_path?: string;
596
+ view_url?: string;
597
+ download_url?: string;
598
+ disk?: string;
599
+ source_type?: string;
600
+ source_key?: string;
601
+ source_name?: string;
602
+ document_field?: string;
603
+ document_type?: string;
604
+ status?: string;
605
+ submitted_at?: string;
606
+ submitted_at_human?: string;
607
+ }[];
608
+ };
609
+ }>;
384
610
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
385
611
  data?: {
386
612
  draft_name?: string;
@@ -753,6 +979,8 @@ declare const admin: {
753
979
  };
754
980
  }>;
755
981
  syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
982
+ viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
983
+ downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
756
984
  getCapabilities: () => Promise<{
757
985
  data?: {
758
986
  key?: string;
@@ -917,7 +1145,7 @@ declare const admin: {
917
1145
  status?: string;
918
1146
  priority?: string;
919
1147
  reported_at?: string;
920
- assigned_at?: string | null;
1148
+ assigned_at?: string;
921
1149
  completed_at?: string | null;
922
1150
  sla_deadline?: string;
923
1151
  created_at?: string;
@@ -969,6 +1197,72 @@ declare const admin: {
969
1197
  updated_at?: string;
970
1198
  };
971
1199
  }>;
1200
+ fetchTenancyList: (query?: Expand<ApiRequest<"fetchTenancyListAdmin">>) => Promise<{
1201
+ message?: string;
1202
+ event?: string | null;
1203
+ data?: {
1204
+ items?: {
1205
+ tenancy_uid?: string;
1206
+ listing?: {
1207
+ details?: {
1208
+ address?: string;
1209
+ title?: string;
1210
+ type?: string;
1211
+ };
1212
+ owner?: {
1213
+ uid?: string;
1214
+ name?: string;
1215
+ };
1216
+ };
1217
+ rent_amount?: string;
1218
+ deposit_amount?: string;
1219
+ tenant?: {
1220
+ uid?: string;
1221
+ name?: string;
1222
+ email?: string;
1223
+ };
1224
+ compliance_status?: {
1225
+ overall?: string;
1226
+ label?: string;
1227
+ };
1228
+ state?: {
1229
+ value?: string;
1230
+ label?: string;
1231
+ };
1232
+ start_date?: string;
1233
+ end_date?: string;
1234
+ }[];
1235
+ pagination?: {
1236
+ current_page?: number;
1237
+ per_page?: number;
1238
+ total?: number;
1239
+ last_page?: number;
1240
+ from?: number;
1241
+ to?: number;
1242
+ };
1243
+ };
1244
+ }>;
1245
+ fetchTenancyComplianceDocuments: (params: ApiPathParams<"fetchTenancyComplianceDocumentsAdmin">) => Promise<{
1246
+ message?: string;
1247
+ event?: string | null;
1248
+ data?: {
1249
+ items?: {
1250
+ file_name?: string;
1251
+ storage_path?: string;
1252
+ view_url?: string;
1253
+ download_url?: string;
1254
+ disk?: string;
1255
+ source_type?: string;
1256
+ source_key?: string;
1257
+ source_name?: string;
1258
+ document_field?: string;
1259
+ document_type?: string;
1260
+ status?: string;
1261
+ submitted_at?: string;
1262
+ submitted_at_human?: string;
1263
+ }[];
1264
+ };
1265
+ }>;
972
1266
  };
973
1267
 
974
1268
  declare const appointment: {
@@ -1242,6 +1536,8 @@ declare const tenant: {
1242
1536
  verification_status?: {
1243
1537
  overall?: string;
1244
1538
  breakdown?: {
1539
+ verification_name?: string;
1540
+ verification_description?: string;
1245
1541
  verification_key?: string;
1246
1542
  state?: string;
1247
1543
  }[];
@@ -1345,6 +1641,8 @@ declare const landlord: {
1345
1641
  verification_status?: {
1346
1642
  overall?: string;
1347
1643
  breakdown?: {
1644
+ verification_name?: string;
1645
+ verification_description?: string;
1348
1646
  verification_key?: string;
1349
1647
  state?: string;
1350
1648
  }[];
@@ -1495,6 +1793,8 @@ declare const landlord: {
1495
1793
  verification_status?: {
1496
1794
  overall?: string;
1497
1795
  breakdown?: {
1796
+ verification_name?: string;
1797
+ verification_description?: string;
1498
1798
  verification_key?: string;
1499
1799
  state?: string;
1500
1800
  }[];
@@ -2302,7 +2602,20 @@ declare const plan: {
2302
2602
  message?: string;
2303
2603
  event?: string | null;
2304
2604
  data?: {
2305
- capabilities?: string[];
2605
+ create_listing?: {
2606
+ name?: string;
2607
+ description?: string;
2608
+ allowed?: boolean;
2609
+ reason?: string;
2610
+ missing?: string[];
2611
+ };
2612
+ publish_listing?: {
2613
+ name?: string;
2614
+ description?: string | null;
2615
+ allowed?: boolean;
2616
+ reason?: string;
2617
+ missing?: string[];
2618
+ };
2306
2619
  };
2307
2620
  }>;
2308
2621
  checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
@@ -2546,6 +2859,8 @@ declare const user: {
2546
2859
  verification_status?: {
2547
2860
  overall?: string;
2548
2861
  breakdown?: {
2862
+ verification_name?: string;
2863
+ verification_description?: string;
2549
2864
  verification_key?: string;
2550
2865
  state?: string;
2551
2866
  }[];
@@ -2574,6 +2889,8 @@ declare const user: {
2574
2889
  verification_status?: {
2575
2890
  overall?: string;
2576
2891
  breakdown?: {
2892
+ verification_name?: string;
2893
+ verification_description?: string;
2577
2894
  verification_key?: string;
2578
2895
  state?: string;
2579
2896
  }[];
package/dist/index.js CHANGED
@@ -129,21 +129,42 @@ var admin = {
129
129
  fetchLandlordList: (query) => {
130
130
  return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
131
131
  },
132
+ fetchLandlordListingComplianceSubmissions: (params, query) => {
133
+ return api.get("fetchLandlordListingComplianceSubmissionsAdmin", `/api/v1/portal/admin/users/landlords/${params.landlord_uid}/listing-compliance-submissions`, query);
134
+ },
132
135
  fetchTenantList: (query) => {
133
136
  return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
134
137
  },
135
138
  fetchUser: (params) => {
136
139
  return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
137
140
  },
141
+ fetchUserMaintenanceRequests: (params, query) => {
142
+ return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
143
+ },
144
+ fetchUserVerificationDocuments: (params) => {
145
+ return api.get("fetchUserVerificationDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/verification-documents`);
146
+ },
147
+ fetchUserAuditLogs: (params) => {
148
+ return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`);
149
+ },
150
+ fetchUserAuditLogsByAction: (params) => {
151
+ return api.get("fetchUserAuditLogsByActionAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs/${params.action}`);
152
+ },
138
153
  forceLogoutUser: (params) => {
139
154
  return api.post("forceLogoutUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/force-logout`);
140
155
  },
141
156
  updateUserStatus: (params, payload) => {
142
157
  return api.post("updateUserStatusAdmin", `/api/v1/portal/admin/users/${params.user_uid}/update-status`, payload);
143
158
  },
159
+ fetchListingList: (query) => {
160
+ return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
161
+ },
144
162
  getSubmittedListing: () => {
145
163
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
146
164
  },
165
+ fetchListingComplianceDocuments: (params) => {
166
+ return api.get("fetchListingComplianceDocumentsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/compliance-documents`);
167
+ },
147
168
  approveListing: (params) => {
148
169
  return api.post("approveListing", `/api/v1/portal/admin/listing/${params.listing_uid}/approve`);
149
170
  },
@@ -202,7 +223,7 @@ var admin = {
202
223
  return api.get("getUserVerifications", "/api/v1/portal/admin/verification/fetch-all", query);
203
224
  },
204
225
  getUserVerificationHistory: (params) => {
205
- return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.userId}`);
226
+ return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.user_uid}`);
206
227
  },
207
228
  reviewUserVerification: (params, payload) => {
208
229
  return api.post("reviewUserVerification", `/api/v1/portal/admin/verification/reviews/${params.userVerificationId}`, payload);
@@ -255,6 +276,12 @@ var admin = {
255
276
  syncPlanEntitlements: (params, payload) => {
256
277
  return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
257
278
  },
279
+ viewDocument: (params) => {
280
+ return api.get("viewDocumentAdmin", `/api/v1/portal/admin/documents/view`);
281
+ },
282
+ downloadDocument: (params) => {
283
+ return api.get("downloadDocumentAdmin", `/api/v1/portal/admin/documents/download`);
284
+ },
258
285
  getCapabilities: () => {
259
286
  return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
260
287
  },
@@ -320,6 +347,12 @@ var admin = {
320
347
  },
321
348
  cancelMaintenanceRequest: (params, payload) => {
322
349
  return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
350
+ },
351
+ fetchTenancyList: (query) => {
352
+ return api.get("fetchTenancyListAdmin", "/api/v1/portal/admin/tenancies/fetch-all", query);
353
+ },
354
+ fetchTenancyComplianceDocuments: (params) => {
355
+ return api.get("fetchTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/tenancies/${params.tenancy_uid}/compliance-documents`);
323
356
  }
324
357
  };
325
358
 
package/dist/index.mjs CHANGED
@@ -82,21 +82,42 @@ var admin = {
82
82
  fetchLandlordList: (query) => {
83
83
  return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
84
84
  },
85
+ fetchLandlordListingComplianceSubmissions: (params, query) => {
86
+ return api.get("fetchLandlordListingComplianceSubmissionsAdmin", `/api/v1/portal/admin/users/landlords/${params.landlord_uid}/listing-compliance-submissions`, query);
87
+ },
85
88
  fetchTenantList: (query) => {
86
89
  return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
87
90
  },
88
91
  fetchUser: (params) => {
89
92
  return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
90
93
  },
94
+ fetchUserMaintenanceRequests: (params, query) => {
95
+ return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
96
+ },
97
+ fetchUserVerificationDocuments: (params) => {
98
+ return api.get("fetchUserVerificationDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/verification-documents`);
99
+ },
100
+ fetchUserAuditLogs: (params) => {
101
+ return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`);
102
+ },
103
+ fetchUserAuditLogsByAction: (params) => {
104
+ return api.get("fetchUserAuditLogsByActionAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs/${params.action}`);
105
+ },
91
106
  forceLogoutUser: (params) => {
92
107
  return api.post("forceLogoutUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/force-logout`);
93
108
  },
94
109
  updateUserStatus: (params, payload) => {
95
110
  return api.post("updateUserStatusAdmin", `/api/v1/portal/admin/users/${params.user_uid}/update-status`, payload);
96
111
  },
112
+ fetchListingList: (query) => {
113
+ return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
114
+ },
97
115
  getSubmittedListing: () => {
98
116
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
99
117
  },
118
+ fetchListingComplianceDocuments: (params) => {
119
+ return api.get("fetchListingComplianceDocumentsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/compliance-documents`);
120
+ },
100
121
  approveListing: (params) => {
101
122
  return api.post("approveListing", `/api/v1/portal/admin/listing/${params.listing_uid}/approve`);
102
123
  },
@@ -155,7 +176,7 @@ var admin = {
155
176
  return api.get("getUserVerifications", "/api/v1/portal/admin/verification/fetch-all", query);
156
177
  },
157
178
  getUserVerificationHistory: (params) => {
158
- return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.userId}`);
179
+ return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.user_uid}`);
159
180
  },
160
181
  reviewUserVerification: (params, payload) => {
161
182
  return api.post("reviewUserVerification", `/api/v1/portal/admin/verification/reviews/${params.userVerificationId}`, payload);
@@ -208,6 +229,12 @@ var admin = {
208
229
  syncPlanEntitlements: (params, payload) => {
209
230
  return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
210
231
  },
232
+ viewDocument: (params) => {
233
+ return api.get("viewDocumentAdmin", `/api/v1/portal/admin/documents/view`);
234
+ },
235
+ downloadDocument: (params) => {
236
+ return api.get("downloadDocumentAdmin", `/api/v1/portal/admin/documents/download`);
237
+ },
211
238
  getCapabilities: () => {
212
239
  return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
213
240
  },
@@ -273,6 +300,12 @@ var admin = {
273
300
  },
274
301
  cancelMaintenanceRequest: (params, payload) => {
275
302
  return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
303
+ },
304
+ fetchTenancyList: (query) => {
305
+ return api.get("fetchTenancyListAdmin", "/api/v1/portal/admin/tenancies/fetch-all", query);
306
+ },
307
+ fetchTenancyComplianceDocuments: (params) => {
308
+ return api.get("fetchTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/tenancies/${params.tenancy_uid}/compliance-documents`);
276
309
  }
277
310
  };
278
311
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,8 +16,8 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@justins-home/http-client": "1.1.7",
20
- "@justins-home/types": "1.1.7"
19
+ "@justins-home/http-client": "1.1.9",
20
+ "@justins-home/types": "1.1.9"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"