@justins-home/api-services 1.2.2 → 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 CHANGED
@@ -67,12 +67,22 @@ declare const admin: {
67
67
  new: (payload: ApiRequest<"newAdmin">) => Promise<{
68
68
  data?: {
69
69
  uid?: string | null;
70
- name?: string | null;
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
- created_at?: string;
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?: string | null;
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;
@@ -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: {
@@ -1019,13 +1028,40 @@ declare const landlord: {
1019
1028
  new: (payload: ApiRequest<"newLandlord">) => Promise<{
1020
1029
  data?: {
1021
1030
  uid?: string | null;
1022
- name?: string | null;
1031
+ username?: string | null;
1032
+ first_name?: string | null;
1033
+ last_name?: string | null;
1023
1034
  email?: string | null;
1024
1035
  phone?: string | null;
1025
1036
  status?: string | null;
1026
1037
  user_mode?: string | null;
1027
- created_at?: string;
1028
- address?: string;
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;
1029
1065
  };
1030
1066
  }>;
1031
1067
  basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
@@ -1087,6 +1123,86 @@ declare const landlord: {
1087
1123
  };
1088
1124
  };
1089
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
+ }>;
1090
1206
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1091
1207
  data?: {
1092
1208
  uid?: string;
@@ -1368,14 +1484,13 @@ declare const landlord: {
1368
1484
  }>;
1369
1485
  getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
1370
1486
  data?: {
1371
- listing_uid?: string | null;
1487
+ uid?: string;
1372
1488
  compliances?: string | null;
1373
1489
  };
1374
1490
  }>;
1375
1491
  submitListingCompliance: (params: ApiPathParams<"submitListingCompliance">, payload: ApiRequest<"submitListingCompliance">) => Promise<{
1376
1492
  data?: {
1377
1493
  id?: number;
1378
- listing_id?: number;
1379
1494
  compliance?: {
1380
1495
  id?: number;
1381
1496
  key?: string;
@@ -1392,7 +1507,7 @@ declare const landlord: {
1392
1507
  }>;
1393
1508
  resolveListingCompliance: (params: ApiPathParams<"resolveListingCompliance">) => Promise<{
1394
1509
  data?: {
1395
- listing_uid?: string | null;
1510
+ uid?: string | null;
1396
1511
  compliances?: string | null;
1397
1512
  };
1398
1513
  }>;
@@ -1432,10 +1547,45 @@ declare const landlord: {
1432
1547
  total?: number;
1433
1548
  };
1434
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
+ }>;
1435
1586
  submitTenancyCompliance: (params: ApiPathParams<"submitTenancyCompliance">, payload: ApiRequest<"submitTenancyCompliance">) => Promise<{
1436
1587
  data?: {
1437
1588
  id?: number;
1438
- tenancy_id?: number;
1439
1589
  compliance?: {
1440
1590
  id?: number;
1441
1591
  key?: string;
@@ -1443,7 +1593,7 @@ declare const landlord: {
1443
1593
  };
1444
1594
  verification_layer_key?: string;
1445
1595
  status?: string;
1446
- submitted_data?: string | null;
1596
+ submitted_data?: unknown[];
1447
1597
  rejection_reason?: string | null;
1448
1598
  reviewed_by?: number;
1449
1599
  reviewed_at?: string;
@@ -1451,9 +1601,21 @@ declare const landlord: {
1451
1601
  };
1452
1602
  }>;
1453
1603
  resolveTenancyCompliance: (params: ApiPathParams<"resolveTenancyCompliance">) => Promise<{
1454
- message?: string;
1455
- event?: string;
1456
- data?: unknown[];
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
+ };
1457
1619
  }>;
1458
1620
  };
1459
1621
 
@@ -1798,6 +1960,30 @@ declare const notification: {
1798
1960
  event?: string | null;
1799
1961
  data?: string | null;
1800
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
+ }>;
1801
1987
  };
1802
1988
 
1803
1989
  declare const plan: {
@@ -2004,7 +2190,7 @@ declare const tenancy: {
2004
2190
  to_state?: string;
2005
2191
  changed_by_user_id?: number;
2006
2192
  changed_by_name?: string;
2007
- comment?: string | null;
2193
+ comment?: string;
2008
2194
  created_at?: string;
2009
2195
  }[];
2010
2196
  }>;
@@ -2021,6 +2207,35 @@ declare const tenancy: {
2021
2207
  }>;
2022
2208
  };
2023
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
+
2024
2239
  declare const userverification: {
2025
2240
  overview: () => Promise<{
2026
2241
  data?: {
@@ -2081,6 +2296,14 @@ declare const userverification: {
2081
2296
  };
2082
2297
  };
2083
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
+ }>;
2084
2307
  resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
2085
2308
  data?: {
2086
2309
  current_level?: number;
@@ -2147,4 +2370,4 @@ declare const wishlist: {
2147
2370
  }>;
2148
2371
  };
2149
2372
 
2150
- 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 };
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
- name?: string | null;
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
- created_at?: string;
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?: string | null;
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;
@@ -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: {
@@ -1019,13 +1028,40 @@ declare const landlord: {
1019
1028
  new: (payload: ApiRequest<"newLandlord">) => Promise<{
1020
1029
  data?: {
1021
1030
  uid?: string | null;
1022
- name?: string | null;
1031
+ username?: string | null;
1032
+ first_name?: string | null;
1033
+ last_name?: string | null;
1023
1034
  email?: string | null;
1024
1035
  phone?: string | null;
1025
1036
  status?: string | null;
1026
1037
  user_mode?: string | null;
1027
- created_at?: string;
1028
- address?: string;
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;
1029
1065
  };
1030
1066
  }>;
1031
1067
  basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
@@ -1087,6 +1123,86 @@ declare const landlord: {
1087
1123
  };
1088
1124
  };
1089
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
+ }>;
1090
1206
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1091
1207
  data?: {
1092
1208
  uid?: string;
@@ -1368,14 +1484,13 @@ declare const landlord: {
1368
1484
  }>;
1369
1485
  getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
1370
1486
  data?: {
1371
- listing_uid?: string | null;
1487
+ uid?: string;
1372
1488
  compliances?: string | null;
1373
1489
  };
1374
1490
  }>;
1375
1491
  submitListingCompliance: (params: ApiPathParams<"submitListingCompliance">, payload: ApiRequest<"submitListingCompliance">) => Promise<{
1376
1492
  data?: {
1377
1493
  id?: number;
1378
- listing_id?: number;
1379
1494
  compliance?: {
1380
1495
  id?: number;
1381
1496
  key?: string;
@@ -1392,7 +1507,7 @@ declare const landlord: {
1392
1507
  }>;
1393
1508
  resolveListingCompliance: (params: ApiPathParams<"resolveListingCompliance">) => Promise<{
1394
1509
  data?: {
1395
- listing_uid?: string | null;
1510
+ uid?: string | null;
1396
1511
  compliances?: string | null;
1397
1512
  };
1398
1513
  }>;
@@ -1432,10 +1547,45 @@ declare const landlord: {
1432
1547
  total?: number;
1433
1548
  };
1434
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
+ }>;
1435
1586
  submitTenancyCompliance: (params: ApiPathParams<"submitTenancyCompliance">, payload: ApiRequest<"submitTenancyCompliance">) => Promise<{
1436
1587
  data?: {
1437
1588
  id?: number;
1438
- tenancy_id?: number;
1439
1589
  compliance?: {
1440
1590
  id?: number;
1441
1591
  key?: string;
@@ -1443,7 +1593,7 @@ declare const landlord: {
1443
1593
  };
1444
1594
  verification_layer_key?: string;
1445
1595
  status?: string;
1446
- submitted_data?: string | null;
1596
+ submitted_data?: unknown[];
1447
1597
  rejection_reason?: string | null;
1448
1598
  reviewed_by?: number;
1449
1599
  reviewed_at?: string;
@@ -1451,9 +1601,21 @@ declare const landlord: {
1451
1601
  };
1452
1602
  }>;
1453
1603
  resolveTenancyCompliance: (params: ApiPathParams<"resolveTenancyCompliance">) => Promise<{
1454
- message?: string;
1455
- event?: string;
1456
- data?: unknown[];
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
+ };
1457
1619
  }>;
1458
1620
  };
1459
1621
 
@@ -1798,6 +1960,30 @@ declare const notification: {
1798
1960
  event?: string | null;
1799
1961
  data?: string | null;
1800
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
+ }>;
1801
1987
  };
1802
1988
 
1803
1989
  declare const plan: {
@@ -2004,7 +2190,7 @@ declare const tenancy: {
2004
2190
  to_state?: string;
2005
2191
  changed_by_user_id?: number;
2006
2192
  changed_by_name?: string;
2007
- comment?: string | null;
2193
+ comment?: string;
2008
2194
  created_at?: string;
2009
2195
  }[];
2010
2196
  }>;
@@ -2021,6 +2207,35 @@ declare const tenancy: {
2021
2207
  }>;
2022
2208
  };
2023
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
+
2024
2239
  declare const userverification: {
2025
2240
  overview: () => Promise<{
2026
2241
  data?: {
@@ -2081,6 +2296,14 @@ declare const userverification: {
2081
2296
  };
2082
2297
  };
2083
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
+ }>;
2084
2307
  resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
2085
2308
  data?: {
2086
2309
  current_level?: number;
@@ -2147,4 +2370,4 @@ declare const wishlist: {
2147
2370
  }>;
2148
2371
  };
2149
2372
 
2150
- 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 };
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ __export(index_exports, {
42
42
  setupClient: () => import_http_client2.configureHttpClient,
43
43
  tenancy: () => tenancy,
44
44
  tenant: () => tenant,
45
+ user: () => user,
45
46
  userverification: () => userverification,
46
47
  wishlist: () => wishlist
47
48
  });
@@ -254,6 +255,12 @@ var admin = {
254
255
  assignComplianceToTenancy: (params) => {
255
256
  return api.post("assignComplianceToTenancy", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-tenancy/${params.tenancy_id}`);
256
257
  },
258
+ assignComplianceToListingVertical: (params, payload) => {
259
+ return api.post("assignComplianceToListingVertical", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-vertical`, payload);
260
+ },
261
+ assignComplianceToListingType: (params, payload) => {
262
+ return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
263
+ },
257
264
  listingHistoryInspection: (params) => {
258
265
  return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`);
259
266
  },
@@ -280,12 +287,6 @@ var admin = {
280
287
  },
281
288
  cancelMaintenanceRequest: (params, payload) => {
282
289
  return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
283
- },
284
- assignComplianceToListingVertical: (params, payload) => {
285
- return api.post("assignComplianceToListingVertical", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-vertical`, payload);
286
- },
287
- assignComplianceToListingType: (params, payload) => {
288
- return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
289
290
  }
290
291
  };
291
292
 
@@ -438,6 +439,12 @@ var landlord = {
438
439
  dashboardStats: () => {
439
440
  return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
440
441
  },
442
+ profile: () => {
443
+ return api.get("profile", "/api/v1/portal/landlord/dashboard/profile");
444
+ },
445
+ updateProfile: (payload) => {
446
+ return api.post("updateProfile", "/api/v1/portal/landlord/dashboard/update-profile", payload);
447
+ },
441
448
  createListingDraft: (payload) => {
442
449
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
443
450
  },
@@ -501,6 +508,9 @@ var landlord = {
501
508
  getLandlordTenancies: () => {
502
509
  return api.get("getLandlordTenancies", "/api/v1/portal/landlord/tenancy/fetch-all");
503
510
  },
511
+ getLandlordListingTenancies: (params) => {
512
+ return api.get("getLandlordListingTenancies", `/api/v1/portal/landlord/tenancy/fetch-by-listing/${params.listing_uid}`);
513
+ },
504
514
  submitTenancyCompliance: (params, payload) => {
505
515
  return api.post("submitTenancyCompliance", `/api/v1/portal/landlord/tenancy/compliance/submit/${params.tenancy_uid}`, payload);
506
516
  },
@@ -570,6 +580,15 @@ var notification = {
570
580
  },
571
581
  registerDeviceToken: () => {
572
582
  return api.post("registerDeviceTokenNotification", "/api/v1/public/notification/device-token");
583
+ },
584
+ getNotificationPreference: () => {
585
+ return api.get("getNotificationPreference", "/api/v1/public/notification/preference/fetch-group");
586
+ },
587
+ updateNotificationPreference: (params, payload) => {
588
+ return api.post("updateNotificationPreference", `/api/v1/public/notification/preference/update-group/${params.group}`, payload);
589
+ },
590
+ updateBulkPreferences: (payload) => {
591
+ return api.post("updateBulkPreferences", "/api/v1/public/notification/preference/update-bulk", payload);
573
592
  }
574
593
  };
575
594
 
@@ -642,6 +661,16 @@ var tenancy = {
642
661
  }
643
662
  };
644
663
 
664
+ // src/generated/user.ts
665
+ var user = {
666
+ sendTwoFactorToggleOtp: () => {
667
+ return api.post("sendTwoFactorToggleOtp", "/api/v1/public/user/two-factor/send-otp");
668
+ },
669
+ toggleTwoFactor: (payload) => {
670
+ return api.post("toggleTwoFactor", "/api/v1/public/user/two-factor/toggle", payload);
671
+ }
672
+ };
673
+
645
674
  // src/generated/userverification.ts
646
675
  var userverification = {
647
676
  overview: () => {
@@ -656,6 +685,9 @@ var userverification = {
656
685
  dashboardCard: () => {
657
686
  return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
658
687
  },
688
+ checkLayerStatus: (params) => {
689
+ return api.get("checkLayerStatus", `/api/v1/public/userverification/check-layer-status/${params.layerKey}`);
690
+ },
659
691
  resubmit: (params, payload) => {
660
692
  return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
661
693
  }
@@ -697,6 +729,7 @@ var wishlist = {
697
729
  setupClient,
698
730
  tenancy,
699
731
  tenant,
732
+ user,
700
733
  userverification,
701
734
  wishlist
702
735
  });
package/dist/index.mjs CHANGED
@@ -208,6 +208,12 @@ var admin = {
208
208
  assignComplianceToTenancy: (params) => {
209
209
  return api.post("assignComplianceToTenancy", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-tenancy/${params.tenancy_id}`);
210
210
  },
211
+ assignComplianceToListingVertical: (params, payload) => {
212
+ return api.post("assignComplianceToListingVertical", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-vertical`, payload);
213
+ },
214
+ assignComplianceToListingType: (params, payload) => {
215
+ return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
216
+ },
211
217
  listingHistoryInspection: (params) => {
212
218
  return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`);
213
219
  },
@@ -234,12 +240,6 @@ var admin = {
234
240
  },
235
241
  cancelMaintenanceRequest: (params, payload) => {
236
242
  return api.post("cancelMaintenanceRequest", `/api/v1/portal/admin/maintenance/${params.uid}/cancel`, payload);
237
- },
238
- assignComplianceToListingVertical: (params, payload) => {
239
- return api.post("assignComplianceToListingVertical", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-vertical`, payload);
240
- },
241
- assignComplianceToListingType: (params, payload) => {
242
- return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
243
243
  }
244
244
  };
245
245
 
@@ -392,6 +392,12 @@ var landlord = {
392
392
  dashboardStats: () => {
393
393
  return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
394
394
  },
395
+ profile: () => {
396
+ return api.get("profile", "/api/v1/portal/landlord/dashboard/profile");
397
+ },
398
+ updateProfile: (payload) => {
399
+ return api.post("updateProfile", "/api/v1/portal/landlord/dashboard/update-profile", payload);
400
+ },
395
401
  createListingDraft: (payload) => {
396
402
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
397
403
  },
@@ -455,6 +461,9 @@ var landlord = {
455
461
  getLandlordTenancies: () => {
456
462
  return api.get("getLandlordTenancies", "/api/v1/portal/landlord/tenancy/fetch-all");
457
463
  },
464
+ getLandlordListingTenancies: (params) => {
465
+ return api.get("getLandlordListingTenancies", `/api/v1/portal/landlord/tenancy/fetch-by-listing/${params.listing_uid}`);
466
+ },
458
467
  submitTenancyCompliance: (params, payload) => {
459
468
  return api.post("submitTenancyCompliance", `/api/v1/portal/landlord/tenancy/compliance/submit/${params.tenancy_uid}`, payload);
460
469
  },
@@ -524,6 +533,15 @@ var notification = {
524
533
  },
525
534
  registerDeviceToken: () => {
526
535
  return api.post("registerDeviceTokenNotification", "/api/v1/public/notification/device-token");
536
+ },
537
+ getNotificationPreference: () => {
538
+ return api.get("getNotificationPreference", "/api/v1/public/notification/preference/fetch-group");
539
+ },
540
+ updateNotificationPreference: (params, payload) => {
541
+ return api.post("updateNotificationPreference", `/api/v1/public/notification/preference/update-group/${params.group}`, payload);
542
+ },
543
+ updateBulkPreferences: (payload) => {
544
+ return api.post("updateBulkPreferences", "/api/v1/public/notification/preference/update-bulk", payload);
527
545
  }
528
546
  };
529
547
 
@@ -596,6 +614,16 @@ var tenancy = {
596
614
  }
597
615
  };
598
616
 
617
+ // src/generated/user.ts
618
+ var user = {
619
+ sendTwoFactorToggleOtp: () => {
620
+ return api.post("sendTwoFactorToggleOtp", "/api/v1/public/user/two-factor/send-otp");
621
+ },
622
+ toggleTwoFactor: (payload) => {
623
+ return api.post("toggleTwoFactor", "/api/v1/public/user/two-factor/toggle", payload);
624
+ }
625
+ };
626
+
599
627
  // src/generated/userverification.ts
600
628
  var userverification = {
601
629
  overview: () => {
@@ -610,6 +638,9 @@ var userverification = {
610
638
  dashboardCard: () => {
611
639
  return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
612
640
  },
641
+ checkLayerStatus: (params) => {
642
+ return api.get("checkLayerStatus", `/api/v1/public/userverification/check-layer-status/${params.layerKey}`);
643
+ },
613
644
  resubmit: (params, payload) => {
614
645
  return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
615
646
  }
@@ -650,6 +681,7 @@ export {
650
681
  configureHttpClient as setupClient,
651
682
  tenancy,
652
683
  tenant,
684
+ user,
653
685
  userverification,
654
686
  wishlist
655
687
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",