@justins-home/api-services 1.2.13 → 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;
@@ -306,6 +342,8 @@ declare const admin: {
306
342
  verification_status?: {
307
343
  overall?: string;
308
344
  breakdown?: {
345
+ verification_name?: string | null;
346
+ verification_description?: string | null;
309
347
  verification_key?: string;
310
348
  state?: string;
311
349
  }[];
@@ -331,6 +369,106 @@ declare const admin: {
331
369
  role?: string | null;
332
370
  };
333
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
+ };
470
+ };
471
+ }>;
334
472
  forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
335
473
  message?: string;
336
474
  data?: {
@@ -361,12 +499,56 @@ declare const admin: {
361
499
  verification_status?: {
362
500
  overall?: string;
363
501
  breakdown?: {
502
+ verification_name?: string;
503
+ verification_description?: string;
364
504
  verification_key?: string;
365
505
  state?: string;
366
506
  }[];
367
507
  };
368
508
  };
369
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
+ }>;
370
552
  getSubmittedListing: () => Promise<{
371
553
  data?: {
372
554
  draft_name?: string;
@@ -404,6 +586,27 @@ declare const admin: {
404
586
  total?: number;
405
587
  };
406
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
+ }>;
407
610
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
408
611
  data?: {
409
612
  draft_name?: string;
@@ -776,6 +979,8 @@ declare const admin: {
776
979
  };
777
980
  }>;
778
981
  syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
982
+ viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
983
+ downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
779
984
  getCapabilities: () => Promise<{
780
985
  data?: {
781
986
  key?: string;
@@ -940,7 +1145,7 @@ declare const admin: {
940
1145
  status?: string;
941
1146
  priority?: string;
942
1147
  reported_at?: string;
943
- assigned_at?: string | null;
1148
+ assigned_at?: string;
944
1149
  completed_at?: string | null;
945
1150
  sla_deadline?: string;
946
1151
  created_at?: string;
@@ -992,6 +1197,72 @@ declare const admin: {
992
1197
  updated_at?: string;
993
1198
  };
994
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
+ }>;
995
1266
  };
996
1267
 
997
1268
  declare const appointment: {
@@ -1265,6 +1536,8 @@ declare const tenant: {
1265
1536
  verification_status?: {
1266
1537
  overall?: string;
1267
1538
  breakdown?: {
1539
+ verification_name?: string;
1540
+ verification_description?: string;
1268
1541
  verification_key?: string;
1269
1542
  state?: string;
1270
1543
  }[];
@@ -1368,6 +1641,8 @@ declare const landlord: {
1368
1641
  verification_status?: {
1369
1642
  overall?: string;
1370
1643
  breakdown?: {
1644
+ verification_name?: string;
1645
+ verification_description?: string;
1371
1646
  verification_key?: string;
1372
1647
  state?: string;
1373
1648
  }[];
@@ -1518,6 +1793,8 @@ declare const landlord: {
1518
1793
  verification_status?: {
1519
1794
  overall?: string;
1520
1795
  breakdown?: {
1796
+ verification_name?: string;
1797
+ verification_description?: string;
1521
1798
  verification_key?: string;
1522
1799
  state?: string;
1523
1800
  }[];
@@ -2325,7 +2602,20 @@ declare const plan: {
2325
2602
  message?: string;
2326
2603
  event?: string | null;
2327
2604
  data?: {
2328
- 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
+ };
2329
2619
  };
2330
2620
  }>;
2331
2621
  checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
@@ -2569,6 +2859,8 @@ declare const user: {
2569
2859
  verification_status?: {
2570
2860
  overall?: string;
2571
2861
  breakdown?: {
2862
+ verification_name?: string;
2863
+ verification_description?: string;
2572
2864
  verification_key?: string;
2573
2865
  state?: string;
2574
2866
  }[];
@@ -2597,6 +2889,8 @@ declare const user: {
2597
2889
  verification_status?: {
2598
2890
  overall?: string;
2599
2891
  breakdown?: {
2892
+ verification_name?: string;
2893
+ verification_description?: string;
2600
2894
  verification_key?: string;
2601
2895
  state?: string;
2602
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;
@@ -306,6 +342,8 @@ declare const admin: {
306
342
  verification_status?: {
307
343
  overall?: string;
308
344
  breakdown?: {
345
+ verification_name?: string | null;
346
+ verification_description?: string | null;
309
347
  verification_key?: string;
310
348
  state?: string;
311
349
  }[];
@@ -331,6 +369,106 @@ declare const admin: {
331
369
  role?: string | null;
332
370
  };
333
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
+ };
470
+ };
471
+ }>;
334
472
  forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
335
473
  message?: string;
336
474
  data?: {
@@ -361,12 +499,56 @@ declare const admin: {
361
499
  verification_status?: {
362
500
  overall?: string;
363
501
  breakdown?: {
502
+ verification_name?: string;
503
+ verification_description?: string;
364
504
  verification_key?: string;
365
505
  state?: string;
366
506
  }[];
367
507
  };
368
508
  };
369
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
+ }>;
370
552
  getSubmittedListing: () => Promise<{
371
553
  data?: {
372
554
  draft_name?: string;
@@ -404,6 +586,27 @@ declare const admin: {
404
586
  total?: number;
405
587
  };
406
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
+ }>;
407
610
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
408
611
  data?: {
409
612
  draft_name?: string;
@@ -776,6 +979,8 @@ declare const admin: {
776
979
  };
777
980
  }>;
778
981
  syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
982
+ viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
983
+ downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
779
984
  getCapabilities: () => Promise<{
780
985
  data?: {
781
986
  key?: string;
@@ -940,7 +1145,7 @@ declare const admin: {
940
1145
  status?: string;
941
1146
  priority?: string;
942
1147
  reported_at?: string;
943
- assigned_at?: string | null;
1148
+ assigned_at?: string;
944
1149
  completed_at?: string | null;
945
1150
  sla_deadline?: string;
946
1151
  created_at?: string;
@@ -992,6 +1197,72 @@ declare const admin: {
992
1197
  updated_at?: string;
993
1198
  };
994
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
+ }>;
995
1266
  };
996
1267
 
997
1268
  declare const appointment: {
@@ -1265,6 +1536,8 @@ declare const tenant: {
1265
1536
  verification_status?: {
1266
1537
  overall?: string;
1267
1538
  breakdown?: {
1539
+ verification_name?: string;
1540
+ verification_description?: string;
1268
1541
  verification_key?: string;
1269
1542
  state?: string;
1270
1543
  }[];
@@ -1368,6 +1641,8 @@ declare const landlord: {
1368
1641
  verification_status?: {
1369
1642
  overall?: string;
1370
1643
  breakdown?: {
1644
+ verification_name?: string;
1645
+ verification_description?: string;
1371
1646
  verification_key?: string;
1372
1647
  state?: string;
1373
1648
  }[];
@@ -1518,6 +1793,8 @@ declare const landlord: {
1518
1793
  verification_status?: {
1519
1794
  overall?: string;
1520
1795
  breakdown?: {
1796
+ verification_name?: string;
1797
+ verification_description?: string;
1521
1798
  verification_key?: string;
1522
1799
  state?: string;
1523
1800
  }[];
@@ -2325,7 +2602,20 @@ declare const plan: {
2325
2602
  message?: string;
2326
2603
  event?: string | null;
2327
2604
  data?: {
2328
- 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
+ };
2329
2619
  };
2330
2620
  }>;
2331
2621
  checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
@@ -2569,6 +2859,8 @@ declare const user: {
2569
2859
  verification_status?: {
2570
2860
  overall?: string;
2571
2861
  breakdown?: {
2862
+ verification_name?: string;
2863
+ verification_description?: string;
2572
2864
  verification_key?: string;
2573
2865
  state?: string;
2574
2866
  }[];
@@ -2597,6 +2889,8 @@ declare const user: {
2597
2889
  verification_status?: {
2598
2890
  overall?: string;
2599
2891
  breakdown?: {
2892
+ verification_name?: string;
2893
+ verification_description?: string;
2600
2894
  verification_key?: string;
2601
2895
  state?: string;
2602
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.13",
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.8",
20
- "@justins-home/types": "1.1.8"
19
+ "@justins-home/http-client": "1.1.9",
20
+ "@justins-home/types": "1.1.9"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"