@justins-home/api-services 1.2.13 → 1.2.15
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 +321 -3
- package/dist/index.d.ts +321 -3
- package/dist/index.js +37 -1
- package/dist/index.mjs +37 -1
- package/package.json +3 -3
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,130 @@ declare const admin: {
|
|
|
331
369
|
role?: string | null;
|
|
332
370
|
};
|
|
333
371
|
}>;
|
|
372
|
+
fetchUserPlanOverview: (params: ApiPathParams<"fetchUserPlanOverviewAdmin">) => Promise<{
|
|
373
|
+
message?: string;
|
|
374
|
+
event?: string | null;
|
|
375
|
+
data?: {
|
|
376
|
+
plan?: {
|
|
377
|
+
key?: string;
|
|
378
|
+
name?: string;
|
|
379
|
+
user_type?: string;
|
|
380
|
+
is_active?: boolean;
|
|
381
|
+
capabilities?: unknown[];
|
|
382
|
+
entitlements?: unknown[];
|
|
383
|
+
verification_requirements?: string[];
|
|
384
|
+
};
|
|
385
|
+
capabilities?: {
|
|
386
|
+
create_listing?: {
|
|
387
|
+
name?: string;
|
|
388
|
+
description?: string;
|
|
389
|
+
allowed?: boolean;
|
|
390
|
+
reason?: string;
|
|
391
|
+
missing?: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}>;
|
|
396
|
+
fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
|
|
397
|
+
message?: string;
|
|
398
|
+
event?: string | null;
|
|
399
|
+
data?: {
|
|
400
|
+
items?: {
|
|
401
|
+
maintenance_request_uid?: string;
|
|
402
|
+
listing?: {
|
|
403
|
+
details?: {
|
|
404
|
+
address?: string;
|
|
405
|
+
title?: string;
|
|
406
|
+
type?: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
request_details?: {
|
|
410
|
+
title?: string;
|
|
411
|
+
description?: string;
|
|
412
|
+
status?: string;
|
|
413
|
+
};
|
|
414
|
+
priority?: string;
|
|
415
|
+
sla_breached?: boolean;
|
|
416
|
+
}[];
|
|
417
|
+
pagination?: {
|
|
418
|
+
current_page?: number;
|
|
419
|
+
per_page?: number;
|
|
420
|
+
total?: number;
|
|
421
|
+
last_page?: number;
|
|
422
|
+
from?: number;
|
|
423
|
+
to?: number;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
}>;
|
|
427
|
+
fetchUserVerificationDocuments: (params: ApiPathParams<"fetchUserVerificationDocumentsAdmin">) => Promise<{
|
|
428
|
+
message?: string;
|
|
429
|
+
event?: string | null;
|
|
430
|
+
data?: {
|
|
431
|
+
items?: {
|
|
432
|
+
file_name?: string;
|
|
433
|
+
storage_path?: string;
|
|
434
|
+
view_url?: string;
|
|
435
|
+
download_url?: string;
|
|
436
|
+
disk?: string;
|
|
437
|
+
source_type?: string;
|
|
438
|
+
source_key?: string;
|
|
439
|
+
source_name?: string;
|
|
440
|
+
document_field?: string;
|
|
441
|
+
document_type?: string;
|
|
442
|
+
status?: string;
|
|
443
|
+
submitted_at?: string;
|
|
444
|
+
submitted_at_human?: string;
|
|
445
|
+
}[];
|
|
446
|
+
};
|
|
447
|
+
}>;
|
|
448
|
+
fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">) => Promise<{
|
|
449
|
+
message?: string;
|
|
450
|
+
event?: string | null;
|
|
451
|
+
data?: {
|
|
452
|
+
items?: {
|
|
453
|
+
uid?: string;
|
|
454
|
+
action?: string;
|
|
455
|
+
actor_id?: number;
|
|
456
|
+
auditable_id?: number;
|
|
457
|
+
metadata?: {
|
|
458
|
+
ip?: string;
|
|
459
|
+
};
|
|
460
|
+
created_at?: string;
|
|
461
|
+
created_at_human?: string;
|
|
462
|
+
}[];
|
|
463
|
+
pagination?: {
|
|
464
|
+
current_page?: number;
|
|
465
|
+
per_page?: number;
|
|
466
|
+
total?: number;
|
|
467
|
+
last_page?: number;
|
|
468
|
+
from?: number;
|
|
469
|
+
to?: number;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
fetchUserAuditLogsByAction: (params: ApiPathParams<"fetchUserAuditLogsByActionAdmin">) => Promise<{
|
|
474
|
+
message?: string;
|
|
475
|
+
event?: string | null;
|
|
476
|
+
data?: {
|
|
477
|
+
items?: {
|
|
478
|
+
uid?: string;
|
|
479
|
+
action?: string;
|
|
480
|
+
actor_id?: number;
|
|
481
|
+
auditable_id?: number;
|
|
482
|
+
metadata?: unknown[];
|
|
483
|
+
created_at?: string;
|
|
484
|
+
created_at_human?: string;
|
|
485
|
+
}[];
|
|
486
|
+
pagination?: {
|
|
487
|
+
current_page?: number;
|
|
488
|
+
per_page?: number;
|
|
489
|
+
total?: number;
|
|
490
|
+
last_page?: number;
|
|
491
|
+
from?: number;
|
|
492
|
+
to?: number;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
}>;
|
|
334
496
|
forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
|
|
335
497
|
message?: string;
|
|
336
498
|
data?: {
|
|
@@ -361,12 +523,56 @@ declare const admin: {
|
|
|
361
523
|
verification_status?: {
|
|
362
524
|
overall?: string;
|
|
363
525
|
breakdown?: {
|
|
526
|
+
verification_name?: string;
|
|
527
|
+
verification_description?: string;
|
|
364
528
|
verification_key?: string;
|
|
365
529
|
state?: string;
|
|
366
530
|
}[];
|
|
367
531
|
};
|
|
368
532
|
};
|
|
369
533
|
}>;
|
|
534
|
+
fetchListingList: (query?: Expand<ApiRequest<"fetchListingListAdmin">>) => Promise<{
|
|
535
|
+
message?: string;
|
|
536
|
+
event?: string | null;
|
|
537
|
+
data?: {
|
|
538
|
+
items?: {
|
|
539
|
+
listing_uid?: string;
|
|
540
|
+
details?: {
|
|
541
|
+
address?: string;
|
|
542
|
+
title?: string;
|
|
543
|
+
type?: string;
|
|
544
|
+
};
|
|
545
|
+
vertical?: {
|
|
546
|
+
value?: string;
|
|
547
|
+
label?: string;
|
|
548
|
+
};
|
|
549
|
+
owner?: {
|
|
550
|
+
uid?: string;
|
|
551
|
+
name?: string;
|
|
552
|
+
};
|
|
553
|
+
compliance_status?: {
|
|
554
|
+
overall?: string;
|
|
555
|
+
label?: string;
|
|
556
|
+
};
|
|
557
|
+
active_tenancy?: {
|
|
558
|
+
has_active_tenancy?: boolean;
|
|
559
|
+
tenancy_uid?: string;
|
|
560
|
+
};
|
|
561
|
+
state?: {
|
|
562
|
+
value?: string;
|
|
563
|
+
label?: string;
|
|
564
|
+
};
|
|
565
|
+
}[];
|
|
566
|
+
pagination?: {
|
|
567
|
+
current_page?: number;
|
|
568
|
+
per_page?: number;
|
|
569
|
+
total?: number;
|
|
570
|
+
last_page?: number;
|
|
571
|
+
from?: number;
|
|
572
|
+
to?: number;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
}>;
|
|
370
576
|
getSubmittedListing: () => Promise<{
|
|
371
577
|
data?: {
|
|
372
578
|
draft_name?: string;
|
|
@@ -404,6 +610,27 @@ declare const admin: {
|
|
|
404
610
|
total?: number;
|
|
405
611
|
};
|
|
406
612
|
}>;
|
|
613
|
+
fetchListingComplianceDocuments: (params: ApiPathParams<"fetchListingComplianceDocumentsAdmin">) => Promise<{
|
|
614
|
+
message?: string;
|
|
615
|
+
event?: string | null;
|
|
616
|
+
data?: {
|
|
617
|
+
items?: {
|
|
618
|
+
file_name?: string;
|
|
619
|
+
storage_path?: string;
|
|
620
|
+
view_url?: string;
|
|
621
|
+
download_url?: string;
|
|
622
|
+
disk?: string;
|
|
623
|
+
source_type?: string;
|
|
624
|
+
source_key?: string;
|
|
625
|
+
source_name?: string;
|
|
626
|
+
document_field?: string;
|
|
627
|
+
document_type?: string;
|
|
628
|
+
status?: string;
|
|
629
|
+
submitted_at?: string;
|
|
630
|
+
submitted_at_human?: string;
|
|
631
|
+
}[];
|
|
632
|
+
};
|
|
633
|
+
}>;
|
|
407
634
|
approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
|
|
408
635
|
data?: {
|
|
409
636
|
draft_name?: string;
|
|
@@ -776,6 +1003,8 @@ declare const admin: {
|
|
|
776
1003
|
};
|
|
777
1004
|
}>;
|
|
778
1005
|
syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
|
|
1006
|
+
viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
|
|
1007
|
+
downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
|
|
779
1008
|
getCapabilities: () => Promise<{
|
|
780
1009
|
data?: {
|
|
781
1010
|
key?: string;
|
|
@@ -940,7 +1169,7 @@ declare const admin: {
|
|
|
940
1169
|
status?: string;
|
|
941
1170
|
priority?: string;
|
|
942
1171
|
reported_at?: string;
|
|
943
|
-
assigned_at?: string
|
|
1172
|
+
assigned_at?: string;
|
|
944
1173
|
completed_at?: string | null;
|
|
945
1174
|
sla_deadline?: string;
|
|
946
1175
|
created_at?: string;
|
|
@@ -992,6 +1221,72 @@ declare const admin: {
|
|
|
992
1221
|
updated_at?: string;
|
|
993
1222
|
};
|
|
994
1223
|
}>;
|
|
1224
|
+
fetchTenancyList: (query?: Expand<ApiRequest<"fetchTenancyListAdmin">>) => Promise<{
|
|
1225
|
+
message?: string;
|
|
1226
|
+
event?: string | null;
|
|
1227
|
+
data?: {
|
|
1228
|
+
items?: {
|
|
1229
|
+
tenancy_uid?: string;
|
|
1230
|
+
listing?: {
|
|
1231
|
+
details?: {
|
|
1232
|
+
address?: string;
|
|
1233
|
+
title?: string;
|
|
1234
|
+
type?: string;
|
|
1235
|
+
};
|
|
1236
|
+
owner?: {
|
|
1237
|
+
uid?: string;
|
|
1238
|
+
name?: string;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
rent_amount?: string;
|
|
1242
|
+
deposit_amount?: string;
|
|
1243
|
+
tenant?: {
|
|
1244
|
+
uid?: string;
|
|
1245
|
+
name?: string;
|
|
1246
|
+
email?: string;
|
|
1247
|
+
};
|
|
1248
|
+
compliance_status?: {
|
|
1249
|
+
overall?: string;
|
|
1250
|
+
label?: string;
|
|
1251
|
+
};
|
|
1252
|
+
state?: {
|
|
1253
|
+
value?: string;
|
|
1254
|
+
label?: string;
|
|
1255
|
+
};
|
|
1256
|
+
start_date?: string;
|
|
1257
|
+
end_date?: string;
|
|
1258
|
+
}[];
|
|
1259
|
+
pagination?: {
|
|
1260
|
+
current_page?: number;
|
|
1261
|
+
per_page?: number;
|
|
1262
|
+
total?: number;
|
|
1263
|
+
last_page?: number;
|
|
1264
|
+
from?: number;
|
|
1265
|
+
to?: number;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
}>;
|
|
1269
|
+
fetchTenancyComplianceDocuments: (params: ApiPathParams<"fetchTenancyComplianceDocumentsAdmin">) => Promise<{
|
|
1270
|
+
message?: string;
|
|
1271
|
+
event?: string | null;
|
|
1272
|
+
data?: {
|
|
1273
|
+
items?: {
|
|
1274
|
+
file_name?: string;
|
|
1275
|
+
storage_path?: string;
|
|
1276
|
+
view_url?: string;
|
|
1277
|
+
download_url?: string;
|
|
1278
|
+
disk?: string;
|
|
1279
|
+
source_type?: string;
|
|
1280
|
+
source_key?: string;
|
|
1281
|
+
source_name?: string;
|
|
1282
|
+
document_field?: string;
|
|
1283
|
+
document_type?: string;
|
|
1284
|
+
status?: string;
|
|
1285
|
+
submitted_at?: string;
|
|
1286
|
+
submitted_at_human?: string;
|
|
1287
|
+
}[];
|
|
1288
|
+
};
|
|
1289
|
+
}>;
|
|
995
1290
|
};
|
|
996
1291
|
|
|
997
1292
|
declare const appointment: {
|
|
@@ -1265,6 +1560,8 @@ declare const tenant: {
|
|
|
1265
1560
|
verification_status?: {
|
|
1266
1561
|
overall?: string;
|
|
1267
1562
|
breakdown?: {
|
|
1563
|
+
verification_name?: string;
|
|
1564
|
+
verification_description?: string;
|
|
1268
1565
|
verification_key?: string;
|
|
1269
1566
|
state?: string;
|
|
1270
1567
|
}[];
|
|
@@ -1368,6 +1665,8 @@ declare const landlord: {
|
|
|
1368
1665
|
verification_status?: {
|
|
1369
1666
|
overall?: string;
|
|
1370
1667
|
breakdown?: {
|
|
1668
|
+
verification_name?: string;
|
|
1669
|
+
verification_description?: string;
|
|
1371
1670
|
verification_key?: string;
|
|
1372
1671
|
state?: string;
|
|
1373
1672
|
}[];
|
|
@@ -1518,6 +1817,8 @@ declare const landlord: {
|
|
|
1518
1817
|
verification_status?: {
|
|
1519
1818
|
overall?: string;
|
|
1520
1819
|
breakdown?: {
|
|
1820
|
+
verification_name?: string;
|
|
1821
|
+
verification_description?: string;
|
|
1521
1822
|
verification_key?: string;
|
|
1522
1823
|
state?: string;
|
|
1523
1824
|
}[];
|
|
@@ -2057,7 +2358,7 @@ declare const maintenance: {
|
|
|
2057
2358
|
status?: string;
|
|
2058
2359
|
priority?: string;
|
|
2059
2360
|
reported_at?: string;
|
|
2060
|
-
assigned_at?: string;
|
|
2361
|
+
assigned_at?: string | null;
|
|
2061
2362
|
completed_at?: string | null;
|
|
2062
2363
|
sla_deadline?: string;
|
|
2063
2364
|
created_at?: string;
|
|
@@ -2325,7 +2626,20 @@ declare const plan: {
|
|
|
2325
2626
|
message?: string;
|
|
2326
2627
|
event?: string | null;
|
|
2327
2628
|
data?: {
|
|
2328
|
-
|
|
2629
|
+
create_listing?: {
|
|
2630
|
+
name?: string;
|
|
2631
|
+
description?: string;
|
|
2632
|
+
allowed?: boolean;
|
|
2633
|
+
reason?: string;
|
|
2634
|
+
missing?: string[];
|
|
2635
|
+
};
|
|
2636
|
+
publish_listing?: {
|
|
2637
|
+
name?: string;
|
|
2638
|
+
description?: string | null;
|
|
2639
|
+
allowed?: boolean;
|
|
2640
|
+
reason?: string;
|
|
2641
|
+
missing?: string[];
|
|
2642
|
+
};
|
|
2329
2643
|
};
|
|
2330
2644
|
}>;
|
|
2331
2645
|
checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
|
|
@@ -2569,6 +2883,8 @@ declare const user: {
|
|
|
2569
2883
|
verification_status?: {
|
|
2570
2884
|
overall?: string;
|
|
2571
2885
|
breakdown?: {
|
|
2886
|
+
verification_name?: string;
|
|
2887
|
+
verification_description?: string;
|
|
2572
2888
|
verification_key?: string;
|
|
2573
2889
|
state?: string;
|
|
2574
2890
|
}[];
|
|
@@ -2597,6 +2913,8 @@ declare const user: {
|
|
|
2597
2913
|
verification_status?: {
|
|
2598
2914
|
overall?: string;
|
|
2599
2915
|
breakdown?: {
|
|
2916
|
+
verification_name?: string;
|
|
2917
|
+
verification_description?: string;
|
|
2600
2918
|
verification_key?: string;
|
|
2601
2919
|
state?: string;
|
|
2602
2920
|
}[];
|
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,130 @@ declare const admin: {
|
|
|
331
369
|
role?: string | null;
|
|
332
370
|
};
|
|
333
371
|
}>;
|
|
372
|
+
fetchUserPlanOverview: (params: ApiPathParams<"fetchUserPlanOverviewAdmin">) => Promise<{
|
|
373
|
+
message?: string;
|
|
374
|
+
event?: string | null;
|
|
375
|
+
data?: {
|
|
376
|
+
plan?: {
|
|
377
|
+
key?: string;
|
|
378
|
+
name?: string;
|
|
379
|
+
user_type?: string;
|
|
380
|
+
is_active?: boolean;
|
|
381
|
+
capabilities?: unknown[];
|
|
382
|
+
entitlements?: unknown[];
|
|
383
|
+
verification_requirements?: string[];
|
|
384
|
+
};
|
|
385
|
+
capabilities?: {
|
|
386
|
+
create_listing?: {
|
|
387
|
+
name?: string;
|
|
388
|
+
description?: string;
|
|
389
|
+
allowed?: boolean;
|
|
390
|
+
reason?: string;
|
|
391
|
+
missing?: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}>;
|
|
396
|
+
fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
|
|
397
|
+
message?: string;
|
|
398
|
+
event?: string | null;
|
|
399
|
+
data?: {
|
|
400
|
+
items?: {
|
|
401
|
+
maintenance_request_uid?: string;
|
|
402
|
+
listing?: {
|
|
403
|
+
details?: {
|
|
404
|
+
address?: string;
|
|
405
|
+
title?: string;
|
|
406
|
+
type?: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
request_details?: {
|
|
410
|
+
title?: string;
|
|
411
|
+
description?: string;
|
|
412
|
+
status?: string;
|
|
413
|
+
};
|
|
414
|
+
priority?: string;
|
|
415
|
+
sla_breached?: boolean;
|
|
416
|
+
}[];
|
|
417
|
+
pagination?: {
|
|
418
|
+
current_page?: number;
|
|
419
|
+
per_page?: number;
|
|
420
|
+
total?: number;
|
|
421
|
+
last_page?: number;
|
|
422
|
+
from?: number;
|
|
423
|
+
to?: number;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
}>;
|
|
427
|
+
fetchUserVerificationDocuments: (params: ApiPathParams<"fetchUserVerificationDocumentsAdmin">) => Promise<{
|
|
428
|
+
message?: string;
|
|
429
|
+
event?: string | null;
|
|
430
|
+
data?: {
|
|
431
|
+
items?: {
|
|
432
|
+
file_name?: string;
|
|
433
|
+
storage_path?: string;
|
|
434
|
+
view_url?: string;
|
|
435
|
+
download_url?: string;
|
|
436
|
+
disk?: string;
|
|
437
|
+
source_type?: string;
|
|
438
|
+
source_key?: string;
|
|
439
|
+
source_name?: string;
|
|
440
|
+
document_field?: string;
|
|
441
|
+
document_type?: string;
|
|
442
|
+
status?: string;
|
|
443
|
+
submitted_at?: string;
|
|
444
|
+
submitted_at_human?: string;
|
|
445
|
+
}[];
|
|
446
|
+
};
|
|
447
|
+
}>;
|
|
448
|
+
fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">) => Promise<{
|
|
449
|
+
message?: string;
|
|
450
|
+
event?: string | null;
|
|
451
|
+
data?: {
|
|
452
|
+
items?: {
|
|
453
|
+
uid?: string;
|
|
454
|
+
action?: string;
|
|
455
|
+
actor_id?: number;
|
|
456
|
+
auditable_id?: number;
|
|
457
|
+
metadata?: {
|
|
458
|
+
ip?: string;
|
|
459
|
+
};
|
|
460
|
+
created_at?: string;
|
|
461
|
+
created_at_human?: string;
|
|
462
|
+
}[];
|
|
463
|
+
pagination?: {
|
|
464
|
+
current_page?: number;
|
|
465
|
+
per_page?: number;
|
|
466
|
+
total?: number;
|
|
467
|
+
last_page?: number;
|
|
468
|
+
from?: number;
|
|
469
|
+
to?: number;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
fetchUserAuditLogsByAction: (params: ApiPathParams<"fetchUserAuditLogsByActionAdmin">) => Promise<{
|
|
474
|
+
message?: string;
|
|
475
|
+
event?: string | null;
|
|
476
|
+
data?: {
|
|
477
|
+
items?: {
|
|
478
|
+
uid?: string;
|
|
479
|
+
action?: string;
|
|
480
|
+
actor_id?: number;
|
|
481
|
+
auditable_id?: number;
|
|
482
|
+
metadata?: unknown[];
|
|
483
|
+
created_at?: string;
|
|
484
|
+
created_at_human?: string;
|
|
485
|
+
}[];
|
|
486
|
+
pagination?: {
|
|
487
|
+
current_page?: number;
|
|
488
|
+
per_page?: number;
|
|
489
|
+
total?: number;
|
|
490
|
+
last_page?: number;
|
|
491
|
+
from?: number;
|
|
492
|
+
to?: number;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
}>;
|
|
334
496
|
forceLogoutUser: (params: ApiPathParams<"forceLogoutUserAdmin">) => Promise<{
|
|
335
497
|
message?: string;
|
|
336
498
|
data?: {
|
|
@@ -361,12 +523,56 @@ declare const admin: {
|
|
|
361
523
|
verification_status?: {
|
|
362
524
|
overall?: string;
|
|
363
525
|
breakdown?: {
|
|
526
|
+
verification_name?: string;
|
|
527
|
+
verification_description?: string;
|
|
364
528
|
verification_key?: string;
|
|
365
529
|
state?: string;
|
|
366
530
|
}[];
|
|
367
531
|
};
|
|
368
532
|
};
|
|
369
533
|
}>;
|
|
534
|
+
fetchListingList: (query?: Expand<ApiRequest<"fetchListingListAdmin">>) => Promise<{
|
|
535
|
+
message?: string;
|
|
536
|
+
event?: string | null;
|
|
537
|
+
data?: {
|
|
538
|
+
items?: {
|
|
539
|
+
listing_uid?: string;
|
|
540
|
+
details?: {
|
|
541
|
+
address?: string;
|
|
542
|
+
title?: string;
|
|
543
|
+
type?: string;
|
|
544
|
+
};
|
|
545
|
+
vertical?: {
|
|
546
|
+
value?: string;
|
|
547
|
+
label?: string;
|
|
548
|
+
};
|
|
549
|
+
owner?: {
|
|
550
|
+
uid?: string;
|
|
551
|
+
name?: string;
|
|
552
|
+
};
|
|
553
|
+
compliance_status?: {
|
|
554
|
+
overall?: string;
|
|
555
|
+
label?: string;
|
|
556
|
+
};
|
|
557
|
+
active_tenancy?: {
|
|
558
|
+
has_active_tenancy?: boolean;
|
|
559
|
+
tenancy_uid?: string;
|
|
560
|
+
};
|
|
561
|
+
state?: {
|
|
562
|
+
value?: string;
|
|
563
|
+
label?: string;
|
|
564
|
+
};
|
|
565
|
+
}[];
|
|
566
|
+
pagination?: {
|
|
567
|
+
current_page?: number;
|
|
568
|
+
per_page?: number;
|
|
569
|
+
total?: number;
|
|
570
|
+
last_page?: number;
|
|
571
|
+
from?: number;
|
|
572
|
+
to?: number;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
}>;
|
|
370
576
|
getSubmittedListing: () => Promise<{
|
|
371
577
|
data?: {
|
|
372
578
|
draft_name?: string;
|
|
@@ -404,6 +610,27 @@ declare const admin: {
|
|
|
404
610
|
total?: number;
|
|
405
611
|
};
|
|
406
612
|
}>;
|
|
613
|
+
fetchListingComplianceDocuments: (params: ApiPathParams<"fetchListingComplianceDocumentsAdmin">) => Promise<{
|
|
614
|
+
message?: string;
|
|
615
|
+
event?: string | null;
|
|
616
|
+
data?: {
|
|
617
|
+
items?: {
|
|
618
|
+
file_name?: string;
|
|
619
|
+
storage_path?: string;
|
|
620
|
+
view_url?: string;
|
|
621
|
+
download_url?: string;
|
|
622
|
+
disk?: string;
|
|
623
|
+
source_type?: string;
|
|
624
|
+
source_key?: string;
|
|
625
|
+
source_name?: string;
|
|
626
|
+
document_field?: string;
|
|
627
|
+
document_type?: string;
|
|
628
|
+
status?: string;
|
|
629
|
+
submitted_at?: string;
|
|
630
|
+
submitted_at_human?: string;
|
|
631
|
+
}[];
|
|
632
|
+
};
|
|
633
|
+
}>;
|
|
407
634
|
approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
|
|
408
635
|
data?: {
|
|
409
636
|
draft_name?: string;
|
|
@@ -776,6 +1003,8 @@ declare const admin: {
|
|
|
776
1003
|
};
|
|
777
1004
|
}>;
|
|
778
1005
|
syncPlanEntitlements: (params: ApiPathParams<"syncPlanEntitlements">, payload: ApiRequest<"syncPlanEntitlements">) => Promise<unknown>;
|
|
1006
|
+
viewDocument: (params: ApiPathParams<"viewDocumentAdmin">) => Promise<unknown>;
|
|
1007
|
+
downloadDocument: (params: ApiPathParams<"downloadDocumentAdmin">) => Promise<unknown>;
|
|
779
1008
|
getCapabilities: () => Promise<{
|
|
780
1009
|
data?: {
|
|
781
1010
|
key?: string;
|
|
@@ -940,7 +1169,7 @@ declare const admin: {
|
|
|
940
1169
|
status?: string;
|
|
941
1170
|
priority?: string;
|
|
942
1171
|
reported_at?: string;
|
|
943
|
-
assigned_at?: string
|
|
1172
|
+
assigned_at?: string;
|
|
944
1173
|
completed_at?: string | null;
|
|
945
1174
|
sla_deadline?: string;
|
|
946
1175
|
created_at?: string;
|
|
@@ -992,6 +1221,72 @@ declare const admin: {
|
|
|
992
1221
|
updated_at?: string;
|
|
993
1222
|
};
|
|
994
1223
|
}>;
|
|
1224
|
+
fetchTenancyList: (query?: Expand<ApiRequest<"fetchTenancyListAdmin">>) => Promise<{
|
|
1225
|
+
message?: string;
|
|
1226
|
+
event?: string | null;
|
|
1227
|
+
data?: {
|
|
1228
|
+
items?: {
|
|
1229
|
+
tenancy_uid?: string;
|
|
1230
|
+
listing?: {
|
|
1231
|
+
details?: {
|
|
1232
|
+
address?: string;
|
|
1233
|
+
title?: string;
|
|
1234
|
+
type?: string;
|
|
1235
|
+
};
|
|
1236
|
+
owner?: {
|
|
1237
|
+
uid?: string;
|
|
1238
|
+
name?: string;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
rent_amount?: string;
|
|
1242
|
+
deposit_amount?: string;
|
|
1243
|
+
tenant?: {
|
|
1244
|
+
uid?: string;
|
|
1245
|
+
name?: string;
|
|
1246
|
+
email?: string;
|
|
1247
|
+
};
|
|
1248
|
+
compliance_status?: {
|
|
1249
|
+
overall?: string;
|
|
1250
|
+
label?: string;
|
|
1251
|
+
};
|
|
1252
|
+
state?: {
|
|
1253
|
+
value?: string;
|
|
1254
|
+
label?: string;
|
|
1255
|
+
};
|
|
1256
|
+
start_date?: string;
|
|
1257
|
+
end_date?: string;
|
|
1258
|
+
}[];
|
|
1259
|
+
pagination?: {
|
|
1260
|
+
current_page?: number;
|
|
1261
|
+
per_page?: number;
|
|
1262
|
+
total?: number;
|
|
1263
|
+
last_page?: number;
|
|
1264
|
+
from?: number;
|
|
1265
|
+
to?: number;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
}>;
|
|
1269
|
+
fetchTenancyComplianceDocuments: (params: ApiPathParams<"fetchTenancyComplianceDocumentsAdmin">) => Promise<{
|
|
1270
|
+
message?: string;
|
|
1271
|
+
event?: string | null;
|
|
1272
|
+
data?: {
|
|
1273
|
+
items?: {
|
|
1274
|
+
file_name?: string;
|
|
1275
|
+
storage_path?: string;
|
|
1276
|
+
view_url?: string;
|
|
1277
|
+
download_url?: string;
|
|
1278
|
+
disk?: string;
|
|
1279
|
+
source_type?: string;
|
|
1280
|
+
source_key?: string;
|
|
1281
|
+
source_name?: string;
|
|
1282
|
+
document_field?: string;
|
|
1283
|
+
document_type?: string;
|
|
1284
|
+
status?: string;
|
|
1285
|
+
submitted_at?: string;
|
|
1286
|
+
submitted_at_human?: string;
|
|
1287
|
+
}[];
|
|
1288
|
+
};
|
|
1289
|
+
}>;
|
|
995
1290
|
};
|
|
996
1291
|
|
|
997
1292
|
declare const appointment: {
|
|
@@ -1265,6 +1560,8 @@ declare const tenant: {
|
|
|
1265
1560
|
verification_status?: {
|
|
1266
1561
|
overall?: string;
|
|
1267
1562
|
breakdown?: {
|
|
1563
|
+
verification_name?: string;
|
|
1564
|
+
verification_description?: string;
|
|
1268
1565
|
verification_key?: string;
|
|
1269
1566
|
state?: string;
|
|
1270
1567
|
}[];
|
|
@@ -1368,6 +1665,8 @@ declare const landlord: {
|
|
|
1368
1665
|
verification_status?: {
|
|
1369
1666
|
overall?: string;
|
|
1370
1667
|
breakdown?: {
|
|
1668
|
+
verification_name?: string;
|
|
1669
|
+
verification_description?: string;
|
|
1371
1670
|
verification_key?: string;
|
|
1372
1671
|
state?: string;
|
|
1373
1672
|
}[];
|
|
@@ -1518,6 +1817,8 @@ declare const landlord: {
|
|
|
1518
1817
|
verification_status?: {
|
|
1519
1818
|
overall?: string;
|
|
1520
1819
|
breakdown?: {
|
|
1820
|
+
verification_name?: string;
|
|
1821
|
+
verification_description?: string;
|
|
1521
1822
|
verification_key?: string;
|
|
1522
1823
|
state?: string;
|
|
1523
1824
|
}[];
|
|
@@ -2057,7 +2358,7 @@ declare const maintenance: {
|
|
|
2057
2358
|
status?: string;
|
|
2058
2359
|
priority?: string;
|
|
2059
2360
|
reported_at?: string;
|
|
2060
|
-
assigned_at?: string;
|
|
2361
|
+
assigned_at?: string | null;
|
|
2061
2362
|
completed_at?: string | null;
|
|
2062
2363
|
sla_deadline?: string;
|
|
2063
2364
|
created_at?: string;
|
|
@@ -2325,7 +2626,20 @@ declare const plan: {
|
|
|
2325
2626
|
message?: string;
|
|
2326
2627
|
event?: string | null;
|
|
2327
2628
|
data?: {
|
|
2328
|
-
|
|
2629
|
+
create_listing?: {
|
|
2630
|
+
name?: string;
|
|
2631
|
+
description?: string;
|
|
2632
|
+
allowed?: boolean;
|
|
2633
|
+
reason?: string;
|
|
2634
|
+
missing?: string[];
|
|
2635
|
+
};
|
|
2636
|
+
publish_listing?: {
|
|
2637
|
+
name?: string;
|
|
2638
|
+
description?: string | null;
|
|
2639
|
+
allowed?: boolean;
|
|
2640
|
+
reason?: string;
|
|
2641
|
+
missing?: string[];
|
|
2642
|
+
};
|
|
2329
2643
|
};
|
|
2330
2644
|
}>;
|
|
2331
2645
|
checkCapability: (params: ApiPathParams<"checkCapabilityPlan">) => Promise<{
|
|
@@ -2569,6 +2883,8 @@ declare const user: {
|
|
|
2569
2883
|
verification_status?: {
|
|
2570
2884
|
overall?: string;
|
|
2571
2885
|
breakdown?: {
|
|
2886
|
+
verification_name?: string;
|
|
2887
|
+
verification_description?: string;
|
|
2572
2888
|
verification_key?: string;
|
|
2573
2889
|
state?: string;
|
|
2574
2890
|
}[];
|
|
@@ -2597,6 +2913,8 @@ declare const user: {
|
|
|
2597
2913
|
verification_status?: {
|
|
2598
2914
|
overall?: string;
|
|
2599
2915
|
breakdown?: {
|
|
2916
|
+
verification_name?: string;
|
|
2917
|
+
verification_description?: string;
|
|
2600
2918
|
verification_key?: string;
|
|
2601
2919
|
state?: string;
|
|
2602
2920
|
}[];
|
package/dist/index.js
CHANGED
|
@@ -129,21 +129,45 @@ 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
|
+
fetchUserPlanOverview: (params) => {
|
|
142
|
+
return api.get("fetchUserPlanOverviewAdmin", `/api/v1/portal/admin/users/${params.user_uid}/plan-overview`);
|
|
143
|
+
},
|
|
144
|
+
fetchUserMaintenanceRequests: (params, query) => {
|
|
145
|
+
return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
|
|
146
|
+
},
|
|
147
|
+
fetchUserVerificationDocuments: (params) => {
|
|
148
|
+
return api.get("fetchUserVerificationDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/verification-documents`);
|
|
149
|
+
},
|
|
150
|
+
fetchUserAuditLogs: (params) => {
|
|
151
|
+
return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`);
|
|
152
|
+
},
|
|
153
|
+
fetchUserAuditLogsByAction: (params) => {
|
|
154
|
+
return api.get("fetchUserAuditLogsByActionAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs/${params.action}`);
|
|
155
|
+
},
|
|
138
156
|
forceLogoutUser: (params) => {
|
|
139
157
|
return api.post("forceLogoutUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/force-logout`);
|
|
140
158
|
},
|
|
141
159
|
updateUserStatus: (params, payload) => {
|
|
142
160
|
return api.post("updateUserStatusAdmin", `/api/v1/portal/admin/users/${params.user_uid}/update-status`, payload);
|
|
143
161
|
},
|
|
162
|
+
fetchListingList: (query) => {
|
|
163
|
+
return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
|
|
164
|
+
},
|
|
144
165
|
getSubmittedListing: () => {
|
|
145
166
|
return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
|
|
146
167
|
},
|
|
168
|
+
fetchListingComplianceDocuments: (params) => {
|
|
169
|
+
return api.get("fetchListingComplianceDocumentsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/compliance-documents`);
|
|
170
|
+
},
|
|
147
171
|
approveListing: (params) => {
|
|
148
172
|
return api.post("approveListing", `/api/v1/portal/admin/listing/${params.listing_uid}/approve`);
|
|
149
173
|
},
|
|
@@ -202,7 +226,7 @@ var admin = {
|
|
|
202
226
|
return api.get("getUserVerifications", "/api/v1/portal/admin/verification/fetch-all", query);
|
|
203
227
|
},
|
|
204
228
|
getUserVerificationHistory: (params) => {
|
|
205
|
-
return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.
|
|
229
|
+
return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.user_uid}`);
|
|
206
230
|
},
|
|
207
231
|
reviewUserVerification: (params, payload) => {
|
|
208
232
|
return api.post("reviewUserVerification", `/api/v1/portal/admin/verification/reviews/${params.userVerificationId}`, payload);
|
|
@@ -255,6 +279,12 @@ var admin = {
|
|
|
255
279
|
syncPlanEntitlements: (params, payload) => {
|
|
256
280
|
return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
|
|
257
281
|
},
|
|
282
|
+
viewDocument: (params) => {
|
|
283
|
+
return api.get("viewDocumentAdmin", `/api/v1/portal/admin/documents/view`);
|
|
284
|
+
},
|
|
285
|
+
downloadDocument: (params) => {
|
|
286
|
+
return api.get("downloadDocumentAdmin", `/api/v1/portal/admin/documents/download`);
|
|
287
|
+
},
|
|
258
288
|
getCapabilities: () => {
|
|
259
289
|
return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
|
|
260
290
|
},
|
|
@@ -320,6 +350,12 @@ var admin = {
|
|
|
320
350
|
},
|
|
321
351
|
cancelMaintenanceRequest: (params, payload) => {
|
|
322
352
|
return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
|
|
353
|
+
},
|
|
354
|
+
fetchTenancyList: (query) => {
|
|
355
|
+
return api.get("fetchTenancyListAdmin", "/api/v1/portal/admin/tenancies/fetch-all", query);
|
|
356
|
+
},
|
|
357
|
+
fetchTenancyComplianceDocuments: (params) => {
|
|
358
|
+
return api.get("fetchTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/tenancies/${params.tenancy_uid}/compliance-documents`);
|
|
323
359
|
}
|
|
324
360
|
};
|
|
325
361
|
|
package/dist/index.mjs
CHANGED
|
@@ -82,21 +82,45 @@ 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
|
+
fetchUserPlanOverview: (params) => {
|
|
95
|
+
return api.get("fetchUserPlanOverviewAdmin", `/api/v1/portal/admin/users/${params.user_uid}/plan-overview`);
|
|
96
|
+
},
|
|
97
|
+
fetchUserMaintenanceRequests: (params, query) => {
|
|
98
|
+
return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
|
|
99
|
+
},
|
|
100
|
+
fetchUserVerificationDocuments: (params) => {
|
|
101
|
+
return api.get("fetchUserVerificationDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/verification-documents`);
|
|
102
|
+
},
|
|
103
|
+
fetchUserAuditLogs: (params) => {
|
|
104
|
+
return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`);
|
|
105
|
+
},
|
|
106
|
+
fetchUserAuditLogsByAction: (params) => {
|
|
107
|
+
return api.get("fetchUserAuditLogsByActionAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs/${params.action}`);
|
|
108
|
+
},
|
|
91
109
|
forceLogoutUser: (params) => {
|
|
92
110
|
return api.post("forceLogoutUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/force-logout`);
|
|
93
111
|
},
|
|
94
112
|
updateUserStatus: (params, payload) => {
|
|
95
113
|
return api.post("updateUserStatusAdmin", `/api/v1/portal/admin/users/${params.user_uid}/update-status`, payload);
|
|
96
114
|
},
|
|
115
|
+
fetchListingList: (query) => {
|
|
116
|
+
return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
|
|
117
|
+
},
|
|
97
118
|
getSubmittedListing: () => {
|
|
98
119
|
return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
|
|
99
120
|
},
|
|
121
|
+
fetchListingComplianceDocuments: (params) => {
|
|
122
|
+
return api.get("fetchListingComplianceDocumentsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/compliance-documents`);
|
|
123
|
+
},
|
|
100
124
|
approveListing: (params) => {
|
|
101
125
|
return api.post("approveListing", `/api/v1/portal/admin/listing/${params.listing_uid}/approve`);
|
|
102
126
|
},
|
|
@@ -155,7 +179,7 @@ var admin = {
|
|
|
155
179
|
return api.get("getUserVerifications", "/api/v1/portal/admin/verification/fetch-all", query);
|
|
156
180
|
},
|
|
157
181
|
getUserVerificationHistory: (params) => {
|
|
158
|
-
return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.
|
|
182
|
+
return api.get("getUserVerificationHistory", `/api/v1/portal/admin/verification/user/${params.user_uid}`);
|
|
159
183
|
},
|
|
160
184
|
reviewUserVerification: (params, payload) => {
|
|
161
185
|
return api.post("reviewUserVerification", `/api/v1/portal/admin/verification/reviews/${params.userVerificationId}`, payload);
|
|
@@ -208,6 +232,12 @@ var admin = {
|
|
|
208
232
|
syncPlanEntitlements: (params, payload) => {
|
|
209
233
|
return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
|
|
210
234
|
},
|
|
235
|
+
viewDocument: (params) => {
|
|
236
|
+
return api.get("viewDocumentAdmin", `/api/v1/portal/admin/documents/view`);
|
|
237
|
+
},
|
|
238
|
+
downloadDocument: (params) => {
|
|
239
|
+
return api.get("downloadDocumentAdmin", `/api/v1/portal/admin/documents/download`);
|
|
240
|
+
},
|
|
211
241
|
getCapabilities: () => {
|
|
212
242
|
return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
|
|
213
243
|
},
|
|
@@ -273,6 +303,12 @@ var admin = {
|
|
|
273
303
|
},
|
|
274
304
|
cancelMaintenanceRequest: (params, payload) => {
|
|
275
305
|
return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
|
|
306
|
+
},
|
|
307
|
+
fetchTenancyList: (query) => {
|
|
308
|
+
return api.get("fetchTenancyListAdmin", "/api/v1/portal/admin/tenancies/fetch-all", query);
|
|
309
|
+
},
|
|
310
|
+
fetchTenancyComplianceDocuments: (params) => {
|
|
311
|
+
return api.get("fetchTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/tenancies/${params.tenancy_uid}/compliance-documents`);
|
|
276
312
|
}
|
|
277
313
|
};
|
|
278
314
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justins-home/api-services",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
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.
|
|
20
|
-
"@justins-home/types": "1.1.
|
|
19
|
+
"@justins-home/http-client": "1.1.10",
|
|
20
|
+
"@justins-home/types": "1.1.10"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|