@justins-home/api-services 1.2.1 → 1.2.3
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 +393 -27
- package/dist/index.d.ts +393 -27
- package/dist/index.js +60 -6
- package/dist/index.mjs +59 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -67,12 +67,22 @@ declare const admin: {
|
|
|
67
67
|
new: (payload: ApiRequest<"newAdmin">) => Promise<{
|
|
68
68
|
data?: {
|
|
69
69
|
uid?: string | null;
|
|
70
|
-
|
|
70
|
+
username?: string | null;
|
|
71
|
+
first_name?: string | null;
|
|
72
|
+
last_name?: string | null;
|
|
71
73
|
email?: string | null;
|
|
72
74
|
phone?: string | null;
|
|
73
75
|
status?: string | null;
|
|
74
76
|
user_mode?: string | null;
|
|
75
|
-
|
|
77
|
+
last_login_at?: string | null;
|
|
78
|
+
last_login_ip?: string | null;
|
|
79
|
+
two_factor_enabled?: string | null;
|
|
80
|
+
avatar_path?: string | null;
|
|
81
|
+
language?: string | null;
|
|
82
|
+
timezone?: string | null;
|
|
83
|
+
user_type?: string;
|
|
84
|
+
created?: string;
|
|
85
|
+
email_verified_at?: string | null;
|
|
76
86
|
role?: string | null;
|
|
77
87
|
};
|
|
78
88
|
}>;
|
|
@@ -372,7 +382,6 @@ declare const admin: {
|
|
|
372
382
|
getListingComplianceSubmissions: () => Promise<{
|
|
373
383
|
data?: {
|
|
374
384
|
id?: number;
|
|
375
|
-
listing_id?: number;
|
|
376
385
|
compliance?: {
|
|
377
386
|
id?: number;
|
|
378
387
|
key?: string;
|
|
@@ -411,7 +420,6 @@ declare const admin: {
|
|
|
411
420
|
getTenancyComplianceSubmissions: () => Promise<{
|
|
412
421
|
data?: {
|
|
413
422
|
id?: number;
|
|
414
|
-
tenancy_id?: number;
|
|
415
423
|
compliance?: {
|
|
416
424
|
id?: number;
|
|
417
425
|
key?: string;
|
|
@@ -419,7 +427,7 @@ declare const admin: {
|
|
|
419
427
|
};
|
|
420
428
|
verification_layer_key?: string;
|
|
421
429
|
status?: string;
|
|
422
|
-
submitted_data?:
|
|
430
|
+
submitted_data?: unknown[];
|
|
423
431
|
rejection_reason?: string | null;
|
|
424
432
|
reviewed_by?: number;
|
|
425
433
|
reviewed_at?: string;
|
|
@@ -524,8 +532,9 @@ declare const admin: {
|
|
|
524
532
|
};
|
|
525
533
|
}>;
|
|
526
534
|
getComplianceDefinitions: () => Promise<{
|
|
535
|
+
message?: string;
|
|
536
|
+
event?: string | null;
|
|
527
537
|
data?: {
|
|
528
|
-
id?: string | null;
|
|
529
538
|
compliance_key?: string;
|
|
530
539
|
name?: string;
|
|
531
540
|
description?: string;
|
|
@@ -537,7 +546,7 @@ declare const admin: {
|
|
|
537
546
|
}>;
|
|
538
547
|
createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
|
|
539
548
|
data?: {
|
|
540
|
-
id?:
|
|
549
|
+
id?: string | null;
|
|
541
550
|
compliance_key?: string;
|
|
542
551
|
name?: string;
|
|
543
552
|
description?: string;
|
|
@@ -564,6 +573,8 @@ declare const admin: {
|
|
|
564
573
|
assignComplianceToCategory: (params: ApiPathParams<"assignComplianceToCategory">) => Promise<unknown>;
|
|
565
574
|
assignComplianceToListing: (params: ApiPathParams<"assignComplianceToListing">) => Promise<unknown>;
|
|
566
575
|
assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
|
|
576
|
+
assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
|
|
577
|
+
assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
|
|
567
578
|
listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
|
|
568
579
|
data?: {
|
|
569
580
|
uid?: string;
|
|
@@ -715,8 +726,6 @@ declare const admin: {
|
|
|
715
726
|
updated_at?: string;
|
|
716
727
|
};
|
|
717
728
|
}>;
|
|
718
|
-
assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
|
|
719
|
-
assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
|
|
720
729
|
};
|
|
721
730
|
|
|
722
731
|
declare const appointment: {
|
|
@@ -830,6 +839,23 @@ declare const auth: {
|
|
|
830
839
|
event?: string | null;
|
|
831
840
|
data?: string | null;
|
|
832
841
|
}>;
|
|
842
|
+
sendResetPasswordOTP: (payload: ApiRequest<"sendResetPasswordOTP">) => Promise<{
|
|
843
|
+
message?: string;
|
|
844
|
+
event?: string | null;
|
|
845
|
+
data?: string | null;
|
|
846
|
+
}>;
|
|
847
|
+
verifyPasswordResetOTP: (payload: ApiRequest<"verifyPasswordResetOTP">) => Promise<{
|
|
848
|
+
message?: string;
|
|
849
|
+
event?: string | null;
|
|
850
|
+
data?: {
|
|
851
|
+
reset_token?: string;
|
|
852
|
+
};
|
|
853
|
+
}>;
|
|
854
|
+
resetPassword: (payload: ApiRequest<"resetPassword">) => Promise<{
|
|
855
|
+
message?: string;
|
|
856
|
+
event?: string | null;
|
|
857
|
+
data?: string | null;
|
|
858
|
+
}>;
|
|
833
859
|
generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
|
|
834
860
|
message?: string;
|
|
835
861
|
event?: string | null;
|
|
@@ -840,6 +866,13 @@ declare const auth: {
|
|
|
840
866
|
event?: string | null;
|
|
841
867
|
data?: string | null;
|
|
842
868
|
}>;
|
|
869
|
+
checkEmailStatus: () => Promise<{
|
|
870
|
+
message?: string;
|
|
871
|
+
event?: string | null;
|
|
872
|
+
data?: {
|
|
873
|
+
is_verified?: number;
|
|
874
|
+
};
|
|
875
|
+
}>;
|
|
843
876
|
};
|
|
844
877
|
|
|
845
878
|
declare const booking: {
|
|
@@ -995,13 +1028,40 @@ declare const landlord: {
|
|
|
995
1028
|
new: (payload: ApiRequest<"newLandlord">) => Promise<{
|
|
996
1029
|
data?: {
|
|
997
1030
|
uid?: string | null;
|
|
998
|
-
|
|
1031
|
+
username?: string | null;
|
|
1032
|
+
first_name?: string | null;
|
|
1033
|
+
last_name?: string | null;
|
|
999
1034
|
email?: string | null;
|
|
1000
1035
|
phone?: string | null;
|
|
1001
1036
|
status?: string | null;
|
|
1002
1037
|
user_mode?: string | null;
|
|
1003
|
-
|
|
1004
|
-
|
|
1038
|
+
last_login_at?: string | null;
|
|
1039
|
+
last_login_ip?: string | null;
|
|
1040
|
+
two_factor_enabled?: string | null;
|
|
1041
|
+
avatar_path?: string | null;
|
|
1042
|
+
language?: string | null;
|
|
1043
|
+
timezone?: string | null;
|
|
1044
|
+
user_type?: string;
|
|
1045
|
+
created?: string;
|
|
1046
|
+
email_verified_at?: string | null;
|
|
1047
|
+
address?: string | null;
|
|
1048
|
+
address_line_2?: string | null;
|
|
1049
|
+
legal_full_name?: string | null;
|
|
1050
|
+
date_of_birth?: string | null;
|
|
1051
|
+
nationality?: string | null;
|
|
1052
|
+
landlord_type?: string | null;
|
|
1053
|
+
company_name?: string | null;
|
|
1054
|
+
company_registration_number?: string | null;
|
|
1055
|
+
city?: string | null;
|
|
1056
|
+
postcode?: string | null;
|
|
1057
|
+
country?: string | null;
|
|
1058
|
+
accepts_supported_housing?: string | null;
|
|
1059
|
+
accepts_company_lets?: string | null;
|
|
1060
|
+
accepts_pets?: string | null;
|
|
1061
|
+
accepts_dss?: string | null;
|
|
1062
|
+
maintenance_contact_type?: string | null;
|
|
1063
|
+
prefers_email_contact?: string | null;
|
|
1064
|
+
prefers_sms_contact?: string | null;
|
|
1005
1065
|
};
|
|
1006
1066
|
}>;
|
|
1007
1067
|
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
|
|
@@ -1013,6 +1073,136 @@ declare const landlord: {
|
|
|
1013
1073
|
expires_at?: string | null;
|
|
1014
1074
|
};
|
|
1015
1075
|
}>;
|
|
1076
|
+
dashboardStats: () => Promise<{
|
|
1077
|
+
message?: string;
|
|
1078
|
+
event?: string | null;
|
|
1079
|
+
data?: {
|
|
1080
|
+
portfolio?: {
|
|
1081
|
+
label?: string;
|
|
1082
|
+
value?: number;
|
|
1083
|
+
formatted_value?: string;
|
|
1084
|
+
status?: string;
|
|
1085
|
+
meta?: {
|
|
1086
|
+
label?: string;
|
|
1087
|
+
value?: string | null;
|
|
1088
|
+
formatted_value?: string | null;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
maintenance?: {
|
|
1092
|
+
label?: string;
|
|
1093
|
+
value?: number;
|
|
1094
|
+
formatted_value?: string;
|
|
1095
|
+
status?: string;
|
|
1096
|
+
meta?: {
|
|
1097
|
+
label?: string;
|
|
1098
|
+
value?: number;
|
|
1099
|
+
formatted_value?: string;
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
sla_performance?: {
|
|
1103
|
+
label?: string;
|
|
1104
|
+
value?: number;
|
|
1105
|
+
formatted_value?: string;
|
|
1106
|
+
status?: string;
|
|
1107
|
+
meta?: {
|
|
1108
|
+
label?: string;
|
|
1109
|
+
value?: number;
|
|
1110
|
+
formatted_value?: string;
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
inspection?: {
|
|
1114
|
+
label?: string;
|
|
1115
|
+
value?: string;
|
|
1116
|
+
formatted_value?: string;
|
|
1117
|
+
status?: string;
|
|
1118
|
+
meta?: {
|
|
1119
|
+
label?: string;
|
|
1120
|
+
value?: string;
|
|
1121
|
+
formatted_value?: string;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
}>;
|
|
1126
|
+
profile: () => Promise<{
|
|
1127
|
+
message?: string;
|
|
1128
|
+
event?: string | null;
|
|
1129
|
+
data?: {
|
|
1130
|
+
uid?: string | null;
|
|
1131
|
+
username?: string | null;
|
|
1132
|
+
first_name?: string | null;
|
|
1133
|
+
last_name?: string | null;
|
|
1134
|
+
email?: string | null;
|
|
1135
|
+
phone?: string | null;
|
|
1136
|
+
status?: string | null;
|
|
1137
|
+
user_mode?: string | null;
|
|
1138
|
+
last_login_at?: string | null;
|
|
1139
|
+
last_login_ip?: string | null;
|
|
1140
|
+
two_factor_enabled?: string | null;
|
|
1141
|
+
avatar_path?: string | null;
|
|
1142
|
+
language?: string | null;
|
|
1143
|
+
timezone?: string | null;
|
|
1144
|
+
user_type?: string;
|
|
1145
|
+
created?: string | null;
|
|
1146
|
+
email_verified_at?: string | null;
|
|
1147
|
+
address?: string | null;
|
|
1148
|
+
address_line_2?: string | null;
|
|
1149
|
+
legal_full_name?: string | null;
|
|
1150
|
+
date_of_birth?: string | null;
|
|
1151
|
+
nationality?: string | null;
|
|
1152
|
+
landlord_type?: string | null;
|
|
1153
|
+
company_name?: string | null;
|
|
1154
|
+
company_registration_number?: string | null;
|
|
1155
|
+
city?: string | null;
|
|
1156
|
+
postcode?: string | null;
|
|
1157
|
+
country?: string | null;
|
|
1158
|
+
accepts_supported_housing?: string | null;
|
|
1159
|
+
accepts_company_lets?: string | null;
|
|
1160
|
+
accepts_pets?: string | null;
|
|
1161
|
+
accepts_dss?: string | null;
|
|
1162
|
+
maintenance_contact_type?: string | null;
|
|
1163
|
+
prefers_email_contact?: string | null;
|
|
1164
|
+
prefers_sms_contact?: string | null;
|
|
1165
|
+
};
|
|
1166
|
+
}>;
|
|
1167
|
+
updateProfile: (payload: ApiRequest<"updateProfile">) => Promise<{
|
|
1168
|
+
data?: {
|
|
1169
|
+
uid?: string | null;
|
|
1170
|
+
username?: string | null;
|
|
1171
|
+
first_name?: string | null;
|
|
1172
|
+
last_name?: string | null;
|
|
1173
|
+
email?: string | null;
|
|
1174
|
+
phone?: string | null;
|
|
1175
|
+
status?: string | null;
|
|
1176
|
+
user_mode?: string | null;
|
|
1177
|
+
last_login_at?: string | null;
|
|
1178
|
+
last_login_ip?: string | null;
|
|
1179
|
+
two_factor_enabled?: string | null;
|
|
1180
|
+
avatar_path?: string | null;
|
|
1181
|
+
language?: string | null;
|
|
1182
|
+
timezone?: string | null;
|
|
1183
|
+
user_type?: string;
|
|
1184
|
+
created?: string;
|
|
1185
|
+
email_verified_at?: string | null;
|
|
1186
|
+
address?: string | null;
|
|
1187
|
+
address_line_2?: string | null;
|
|
1188
|
+
legal_full_name?: string | null;
|
|
1189
|
+
date_of_birth?: string | null;
|
|
1190
|
+
nationality?: string | null;
|
|
1191
|
+
landlord_type?: string | null;
|
|
1192
|
+
company_name?: string | null;
|
|
1193
|
+
company_registration_number?: string | null;
|
|
1194
|
+
city?: string | null;
|
|
1195
|
+
postcode?: string | null;
|
|
1196
|
+
country?: string | null;
|
|
1197
|
+
accepts_supported_housing?: string | null;
|
|
1198
|
+
accepts_company_lets?: string | null;
|
|
1199
|
+
accepts_pets?: string | null;
|
|
1200
|
+
accepts_dss?: string | null;
|
|
1201
|
+
maintenance_contact_type?: string | null;
|
|
1202
|
+
prefers_email_contact?: string | null;
|
|
1203
|
+
prefers_sms_contact?: string | null;
|
|
1204
|
+
};
|
|
1205
|
+
}>;
|
|
1016
1206
|
createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
|
|
1017
1207
|
data?: {
|
|
1018
1208
|
uid?: string;
|
|
@@ -1258,16 +1448,49 @@ declare const landlord: {
|
|
|
1258
1448
|
media?: unknown[];
|
|
1259
1449
|
};
|
|
1260
1450
|
}>;
|
|
1451
|
+
propertyStandardsOverview: () => Promise<{
|
|
1452
|
+
message?: string;
|
|
1453
|
+
event?: string | null;
|
|
1454
|
+
data?: {
|
|
1455
|
+
listing_uid?: string;
|
|
1456
|
+
property?: {
|
|
1457
|
+
address_line?: string;
|
|
1458
|
+
city?: string;
|
|
1459
|
+
postcode?: string;
|
|
1460
|
+
display_address?: string;
|
|
1461
|
+
};
|
|
1462
|
+
compliance?: {
|
|
1463
|
+
name?: string;
|
|
1464
|
+
status?: string;
|
|
1465
|
+
valid_until?: string;
|
|
1466
|
+
display_status?: string;
|
|
1467
|
+
};
|
|
1468
|
+
inspection?: {
|
|
1469
|
+
last_completed_at?: string;
|
|
1470
|
+
next_scheduled_at?: string;
|
|
1471
|
+
display_last?: string;
|
|
1472
|
+
display_next?: string;
|
|
1473
|
+
};
|
|
1474
|
+
maintenance?: {
|
|
1475
|
+
last_activity_at?: string;
|
|
1476
|
+
next_due_at?: string;
|
|
1477
|
+
display_last?: string;
|
|
1478
|
+
display_next?: string;
|
|
1479
|
+
};
|
|
1480
|
+
action?: {
|
|
1481
|
+
listing_uid?: string;
|
|
1482
|
+
};
|
|
1483
|
+
}[];
|
|
1484
|
+
}>;
|
|
1261
1485
|
getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
|
|
1262
1486
|
data?: {
|
|
1263
|
-
|
|
1487
|
+
uid?: string;
|
|
1264
1488
|
compliances?: string | null;
|
|
1265
1489
|
};
|
|
1266
1490
|
}>;
|
|
1267
1491
|
submitListingCompliance: (params: ApiPathParams<"submitListingCompliance">, payload: ApiRequest<"submitListingCompliance">) => Promise<{
|
|
1268
1492
|
data?: {
|
|
1269
1493
|
id?: number;
|
|
1270
|
-
listing_id?: number;
|
|
1271
1494
|
compliance?: {
|
|
1272
1495
|
id?: number;
|
|
1273
1496
|
key?: string;
|
|
@@ -1284,7 +1507,7 @@ declare const landlord: {
|
|
|
1284
1507
|
}>;
|
|
1285
1508
|
resolveListingCompliance: (params: ApiPathParams<"resolveListingCompliance">) => Promise<{
|
|
1286
1509
|
data?: {
|
|
1287
|
-
|
|
1510
|
+
uid?: string | null;
|
|
1288
1511
|
compliances?: string | null;
|
|
1289
1512
|
};
|
|
1290
1513
|
}>;
|
|
@@ -1324,10 +1547,45 @@ declare const landlord: {
|
|
|
1324
1547
|
total?: number;
|
|
1325
1548
|
};
|
|
1326
1549
|
}>;
|
|
1550
|
+
getLandlordListingTenancies: (params: ApiPathParams<"getLandlordListingTenancies">) => Promise<{
|
|
1551
|
+
data?: {
|
|
1552
|
+
uid?: string;
|
|
1553
|
+
listing_id?: number;
|
|
1554
|
+
landlord_id?: number;
|
|
1555
|
+
tenant_id?: number;
|
|
1556
|
+
rent_amount?: string;
|
|
1557
|
+
deposit_amount?: string;
|
|
1558
|
+
state?: string;
|
|
1559
|
+
start_date?: string;
|
|
1560
|
+
end_date?: string;
|
|
1561
|
+
is_periodic?: boolean;
|
|
1562
|
+
created_at?: string;
|
|
1563
|
+
}[];
|
|
1564
|
+
links?: {
|
|
1565
|
+
first?: string;
|
|
1566
|
+
last?: string;
|
|
1567
|
+
prev?: string | null;
|
|
1568
|
+
next?: string | null;
|
|
1569
|
+
};
|
|
1570
|
+
meta?: {
|
|
1571
|
+
current_page?: number;
|
|
1572
|
+
from?: number;
|
|
1573
|
+
last_page?: number;
|
|
1574
|
+
links?: {
|
|
1575
|
+
url?: string | null;
|
|
1576
|
+
label?: string;
|
|
1577
|
+
page?: string | null;
|
|
1578
|
+
active?: boolean;
|
|
1579
|
+
}[];
|
|
1580
|
+
path?: string;
|
|
1581
|
+
per_page?: number;
|
|
1582
|
+
to?: number;
|
|
1583
|
+
total?: number;
|
|
1584
|
+
};
|
|
1585
|
+
}>;
|
|
1327
1586
|
submitTenancyCompliance: (params: ApiPathParams<"submitTenancyCompliance">, payload: ApiRequest<"submitTenancyCompliance">) => Promise<{
|
|
1328
1587
|
data?: {
|
|
1329
1588
|
id?: number;
|
|
1330
|
-
tenancy_id?: number;
|
|
1331
1589
|
compliance?: {
|
|
1332
1590
|
id?: number;
|
|
1333
1591
|
key?: string;
|
|
@@ -1335,7 +1593,7 @@ declare const landlord: {
|
|
|
1335
1593
|
};
|
|
1336
1594
|
verification_layer_key?: string;
|
|
1337
1595
|
status?: string;
|
|
1338
|
-
submitted_data?:
|
|
1596
|
+
submitted_data?: unknown[];
|
|
1339
1597
|
rejection_reason?: string | null;
|
|
1340
1598
|
reviewed_by?: number;
|
|
1341
1599
|
reviewed_at?: string;
|
|
@@ -1343,9 +1601,21 @@ declare const landlord: {
|
|
|
1343
1601
|
};
|
|
1344
1602
|
}>;
|
|
1345
1603
|
resolveTenancyCompliance: (params: ApiPathParams<"resolveTenancyCompliance">) => Promise<{
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1604
|
+
data?: {
|
|
1605
|
+
id?: number;
|
|
1606
|
+
compliance?: {
|
|
1607
|
+
id?: number;
|
|
1608
|
+
key?: string;
|
|
1609
|
+
name?: string;
|
|
1610
|
+
};
|
|
1611
|
+
verification_layer_key?: string;
|
|
1612
|
+
status?: string;
|
|
1613
|
+
submitted_data?: string | null;
|
|
1614
|
+
rejection_reason?: string | null;
|
|
1615
|
+
reviewed_by?: number;
|
|
1616
|
+
reviewed_at?: string;
|
|
1617
|
+
created_at?: string;
|
|
1618
|
+
};
|
|
1349
1619
|
}>;
|
|
1350
1620
|
};
|
|
1351
1621
|
|
|
@@ -1577,14 +1847,14 @@ declare const conversations: {
|
|
|
1577
1847
|
}>;
|
|
1578
1848
|
listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
|
|
1579
1849
|
data?: {
|
|
1580
|
-
id?:
|
|
1581
|
-
conversation_id?:
|
|
1582
|
-
body?: string;
|
|
1850
|
+
id?: string | null;
|
|
1851
|
+
conversation_id?: string | null;
|
|
1852
|
+
body?: string | null;
|
|
1583
1853
|
attachment_url?: string | null;
|
|
1584
|
-
is_system?:
|
|
1854
|
+
is_system?: string | null;
|
|
1585
1855
|
state?: string;
|
|
1586
1856
|
read_at?: string | null;
|
|
1587
|
-
created_at?: string;
|
|
1857
|
+
created_at?: string | null;
|
|
1588
1858
|
}[];
|
|
1589
1859
|
links?: {
|
|
1590
1860
|
first?: string;
|
|
@@ -1690,6 +1960,30 @@ declare const notification: {
|
|
|
1690
1960
|
event?: string | null;
|
|
1691
1961
|
data?: string | null;
|
|
1692
1962
|
}>;
|
|
1963
|
+
getNotificationPreference: () => Promise<{
|
|
1964
|
+
message?: string;
|
|
1965
|
+
event?: string | null;
|
|
1966
|
+
data?: {
|
|
1967
|
+
key?: string;
|
|
1968
|
+
label?: string;
|
|
1969
|
+
description?: string;
|
|
1970
|
+
enabled_channels?: {
|
|
1971
|
+
in_app?: number;
|
|
1972
|
+
push?: number;
|
|
1973
|
+
email?: number;
|
|
1974
|
+
};
|
|
1975
|
+
}[];
|
|
1976
|
+
}>;
|
|
1977
|
+
updateNotificationPreference: (params: ApiPathParams<"updateNotificationPreference">, payload: ApiRequest<"updateNotificationPreference">) => Promise<{
|
|
1978
|
+
message?: string;
|
|
1979
|
+
event?: string | null;
|
|
1980
|
+
data?: unknown[];
|
|
1981
|
+
}>;
|
|
1982
|
+
updateBulkPreferences: (payload: ApiRequest<"updateBulkPreferences">) => Promise<{
|
|
1983
|
+
message?: string;
|
|
1984
|
+
event?: string | null;
|
|
1985
|
+
data?: unknown[];
|
|
1986
|
+
}>;
|
|
1693
1987
|
};
|
|
1694
1988
|
|
|
1695
1989
|
declare const plan: {
|
|
@@ -1896,7 +2190,7 @@ declare const tenancy: {
|
|
|
1896
2190
|
to_state?: string;
|
|
1897
2191
|
changed_by_user_id?: number;
|
|
1898
2192
|
changed_by_name?: string;
|
|
1899
|
-
comment?: string
|
|
2193
|
+
comment?: string;
|
|
1900
2194
|
created_at?: string;
|
|
1901
2195
|
}[];
|
|
1902
2196
|
}>;
|
|
@@ -1913,6 +2207,35 @@ declare const tenancy: {
|
|
|
1913
2207
|
}>;
|
|
1914
2208
|
};
|
|
1915
2209
|
|
|
2210
|
+
declare const user: {
|
|
2211
|
+
sendTwoFactorToggleOtp: () => Promise<{
|
|
2212
|
+
message?: string;
|
|
2213
|
+
event?: string | null;
|
|
2214
|
+
data?: string | null;
|
|
2215
|
+
}>;
|
|
2216
|
+
toggleTwoFactor: (payload: ApiRequest<"toggleTwoFactor">) => Promise<{
|
|
2217
|
+
data?: {
|
|
2218
|
+
uid?: string;
|
|
2219
|
+
username?: string;
|
|
2220
|
+
first_name?: string | null;
|
|
2221
|
+
last_name?: string | null;
|
|
2222
|
+
email?: string;
|
|
2223
|
+
phone?: string | null;
|
|
2224
|
+
status?: string | null;
|
|
2225
|
+
user_mode?: string;
|
|
2226
|
+
last_login_at?: string | null;
|
|
2227
|
+
last_login_ip?: string | null;
|
|
2228
|
+
two_factor_enabled?: boolean;
|
|
2229
|
+
avatar_path?: string | null;
|
|
2230
|
+
language?: string;
|
|
2231
|
+
timezone?: string;
|
|
2232
|
+
user_type?: string;
|
|
2233
|
+
created?: string;
|
|
2234
|
+
email_verified_at?: string;
|
|
2235
|
+
};
|
|
2236
|
+
}>;
|
|
2237
|
+
};
|
|
2238
|
+
|
|
1916
2239
|
declare const userverification: {
|
|
1917
2240
|
overview: () => Promise<{
|
|
1918
2241
|
data?: {
|
|
@@ -1938,6 +2261,49 @@ declare const userverification: {
|
|
|
1938
2261
|
last_calculated_at?: string;
|
|
1939
2262
|
};
|
|
1940
2263
|
}>;
|
|
2264
|
+
dashboardCard: () => Promise<{
|
|
2265
|
+
message?: string;
|
|
2266
|
+
event?: string | null;
|
|
2267
|
+
data?: {
|
|
2268
|
+
user_type?: string;
|
|
2269
|
+
current_level?: number;
|
|
2270
|
+
completed_layers?: number;
|
|
2271
|
+
pending_layers?: number;
|
|
2272
|
+
total_layers?: number;
|
|
2273
|
+
required_layers?: number;
|
|
2274
|
+
progress_percentage?: number;
|
|
2275
|
+
status?: string;
|
|
2276
|
+
last_calculated_at?: string;
|
|
2277
|
+
next_layer?: {
|
|
2278
|
+
key?: string;
|
|
2279
|
+
name?: string;
|
|
2280
|
+
description?: string;
|
|
2281
|
+
order?: number;
|
|
2282
|
+
is_required?: boolean;
|
|
2283
|
+
requires_review?: boolean;
|
|
2284
|
+
current_status?: string;
|
|
2285
|
+
rejection_reason?: string;
|
|
2286
|
+
};
|
|
2287
|
+
action_required_layer?: {
|
|
2288
|
+
key?: string;
|
|
2289
|
+
name?: string;
|
|
2290
|
+
description?: string;
|
|
2291
|
+
order?: number;
|
|
2292
|
+
is_required?: boolean;
|
|
2293
|
+
requires_review?: boolean;
|
|
2294
|
+
current_status?: string;
|
|
2295
|
+
rejection_reason?: string;
|
|
2296
|
+
};
|
|
2297
|
+
};
|
|
2298
|
+
}>;
|
|
2299
|
+
checkLayerStatus: (params: ApiPathParams<"checkLayerStatus">) => Promise<{
|
|
2300
|
+
message?: string;
|
|
2301
|
+
event?: string | null;
|
|
2302
|
+
data?: {
|
|
2303
|
+
layer_key?: string;
|
|
2304
|
+
status?: number;
|
|
2305
|
+
};
|
|
2306
|
+
}>;
|
|
1941
2307
|
resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
|
|
1942
2308
|
data?: {
|
|
1943
2309
|
current_level?: number;
|
|
@@ -2004,4 +2370,4 @@ declare const wishlist: {
|
|
|
2004
2370
|
}>;
|
|
2005
2371
|
};
|
|
2006
2372
|
|
|
2007
|
-
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, userverification, wishlist };
|
|
2373
|
+
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, user, userverification, wishlist };
|