@justins-home/api-services 1.2.7 → 1.2.9

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
@@ -73,6 +73,215 @@ declare const admin: {
73
73
  expires_at?: string | null;
74
74
  };
75
75
  }>;
76
+ dashboardStats: () => Promise<{
77
+ message?: string;
78
+ event?: string | null;
79
+ data?: {
80
+ system_scale?: {
81
+ total_users?: number;
82
+ active_landlords?: number;
83
+ total_properties?: number;
84
+ active_tenancies?: number;
85
+ };
86
+ operational_health?: {
87
+ inspections_this_month?: number;
88
+ overdue_inspections?: number;
89
+ open_maintenance?: number;
90
+ sla_24h?: number;
91
+ };
92
+ financial?: {
93
+ revenue_mtd?: number;
94
+ vacancy_rate?: number;
95
+ arrears_total?: number;
96
+ maintenance_ratio?: number;
97
+ };
98
+ };
99
+ }>;
100
+ planDistribution: () => Promise<{
101
+ message?: string;
102
+ event?: string | null;
103
+ data?: {
104
+ total?: number;
105
+ period?: string;
106
+ distribution?: {
107
+ plan?: string;
108
+ label?: string;
109
+ count?: number;
110
+ percentage?: number;
111
+ }[];
112
+ };
113
+ }>;
114
+ riskOverview: () => Promise<{
115
+ message?: string;
116
+ event?: string | null;
117
+ data?: {
118
+ score?: {
119
+ value?: number;
120
+ max?: number;
121
+ grade?: string;
122
+ };
123
+ trend?: {
124
+ month?: string;
125
+ score?: number;
126
+ }[];
127
+ breakdown?: {
128
+ compliant?: number;
129
+ warning?: number;
130
+ critical?: number;
131
+ };
132
+ insight?: {
133
+ message?: string;
134
+ highlight_value?: number;
135
+ highlight_label?: string;
136
+ type?: string;
137
+ };
138
+ };
139
+ }>;
140
+ activityFeed: () => Promise<{
141
+ message?: string;
142
+ event?: string | null;
143
+ data?: {
144
+ id?: string;
145
+ type?: string;
146
+ title?: string;
147
+ subtitle?: string;
148
+ meta?: {
149
+ listing?: string;
150
+ actor?: string;
151
+ };
152
+ timestamp?: string;
153
+ time_ago?: string;
154
+ }[];
155
+ }>;
156
+ fetchAdminProfile: () => Promise<{
157
+ message?: string;
158
+ event?: string | null;
159
+ data?: {
160
+ uid?: string | null;
161
+ username?: string | null;
162
+ first_name?: string | null;
163
+ last_name?: string | null;
164
+ email?: string | null;
165
+ phone?: string | null;
166
+ status?: string | null;
167
+ user_mode?: string | null;
168
+ last_login_at?: string | null;
169
+ last_login_ip?: string | null;
170
+ two_factor_enabled?: string | null;
171
+ avatar_path?: string | null;
172
+ language?: string | null;
173
+ timezone?: string | null;
174
+ user_type?: string;
175
+ created?: string | null;
176
+ email_verified_at?: string | null;
177
+ verification_status?: {
178
+ overall?: string;
179
+ breakdown?: unknown[];
180
+ };
181
+ role?: string | null;
182
+ };
183
+ }>;
184
+ updateAdminProfile: (payload: ApiRequest<"updateAdminProfile">) => Promise<{
185
+ data?: {
186
+ uid?: string;
187
+ username?: string;
188
+ first_name?: string | null;
189
+ last_name?: string | null;
190
+ email?: string;
191
+ phone?: string | null;
192
+ status?: string | null;
193
+ user_mode?: string;
194
+ last_login_at?: string | null;
195
+ last_login_ip?: string | null;
196
+ two_factor_enabled?: boolean;
197
+ avatar_path?: string | null;
198
+ language?: string;
199
+ timezone?: string;
200
+ user_type?: string;
201
+ created?: string;
202
+ email_verified_at?: string;
203
+ verification_status?: {
204
+ overall?: string;
205
+ breakdown?: {
206
+ verification_key?: string;
207
+ state?: string;
208
+ }[];
209
+ };
210
+ role?: string | null;
211
+ };
212
+ }>;
213
+ fetchLandlordList: () => Promise<{
214
+ message?: string;
215
+ event?: string | null;
216
+ data?: {
217
+ items?: {
218
+ user_uid?: string;
219
+ name?: string;
220
+ avatar?: string;
221
+ joined_at?: string;
222
+ joined_label?: string;
223
+ contact?: {
224
+ email?: string;
225
+ phone?: string;
226
+ };
227
+ verification?: {
228
+ status?: string;
229
+ label?: string;
230
+ };
231
+ plan?: {
232
+ key?: string;
233
+ name?: string;
234
+ };
235
+ properties_count?: number;
236
+ account_status?: {
237
+ value?: string;
238
+ label?: string;
239
+ };
240
+ }[];
241
+ pagination?: {
242
+ current_page?: number;
243
+ per_page?: number;
244
+ total?: number;
245
+ last_page?: number;
246
+ from?: number;
247
+ to?: number;
248
+ };
249
+ };
250
+ }>;
251
+ fetchTenantList: () => Promise<{
252
+ message?: string;
253
+ event?: string | null;
254
+ data?: {
255
+ items?: {
256
+ user_uid?: string;
257
+ name?: string;
258
+ avatar?: string;
259
+ email?: string;
260
+ verification?: {
261
+ status?: string;
262
+ label?: string;
263
+ };
264
+ active_tenancy?: {
265
+ has_active_tenancy?: boolean;
266
+ tenancy_uid?: string;
267
+ property_address?: string;
268
+ };
269
+ right_to_rent?: {
270
+ status?: string;
271
+ label?: string;
272
+ };
273
+ status?: string;
274
+ }[];
275
+ pagination?: {
276
+ current_page?: number;
277
+ per_page?: number;
278
+ total?: number;
279
+ last_page?: number;
280
+ from?: number;
281
+ to?: number;
282
+ };
283
+ };
284
+ }>;
76
285
  getSubmittedListing: () => Promise<{
77
286
  data?: {
78
287
  draft_name?: string;
@@ -646,7 +855,7 @@ declare const admin: {
646
855
  status?: string;
647
856
  priority?: string;
648
857
  reported_at?: string;
649
- assigned_at?: string | null;
858
+ assigned_at?: string;
650
859
  completed_at?: string | null;
651
860
  sla_deadline?: string;
652
861
  created_at?: string;
@@ -922,6 +1131,61 @@ declare const tenant: {
922
1131
  postApiV1PortalTenantCreateWithGithub: () => Promise<unknown>;
923
1132
  postApiV1PortalTenantSendOtp: () => Promise<unknown>;
924
1133
  postApiV1PortalTenantVerifyOtp: (payload: ApiRequest<"postApiV1PortalTenantVerifyOtp">) => Promise<unknown>;
1134
+ fetchTenantProfile: () => Promise<{
1135
+ message?: string;
1136
+ event?: string | null;
1137
+ data?: {
1138
+ uid?: string | null;
1139
+ username?: string | null;
1140
+ first_name?: string | null;
1141
+ last_name?: string | null;
1142
+ email?: string | null;
1143
+ phone?: string | null;
1144
+ status?: string | null;
1145
+ user_mode?: string | null;
1146
+ last_login_at?: string | null;
1147
+ last_login_ip?: string | null;
1148
+ two_factor_enabled?: string | null;
1149
+ avatar_path?: string | null;
1150
+ language?: string | null;
1151
+ timezone?: string | null;
1152
+ user_type?: string;
1153
+ created?: string | null;
1154
+ email_verified_at?: string | null;
1155
+ verification_status?: {
1156
+ overall?: string;
1157
+ breakdown?: unknown[];
1158
+ };
1159
+ };
1160
+ }>;
1161
+ updateTenantProfile: (payload: ApiRequest<"updateTenantProfile">) => Promise<{
1162
+ data?: {
1163
+ uid?: string;
1164
+ username?: string;
1165
+ first_name?: string | null;
1166
+ last_name?: string | null;
1167
+ email?: string;
1168
+ phone?: string | null;
1169
+ status?: string | null;
1170
+ user_mode?: string;
1171
+ last_login_at?: string | null;
1172
+ last_login_ip?: string | null;
1173
+ two_factor_enabled?: boolean;
1174
+ avatar_path?: string | null;
1175
+ language?: string;
1176
+ timezone?: string;
1177
+ user_type?: string;
1178
+ created?: string;
1179
+ email_verified_at?: string;
1180
+ verification_status?: {
1181
+ overall?: string;
1182
+ breakdown?: {
1183
+ verification_key?: string;
1184
+ state?: string;
1185
+ }[];
1186
+ };
1187
+ };
1188
+ }>;
925
1189
  };
926
1190
 
927
1191
  declare const customer: {
@@ -999,23 +1263,30 @@ declare const inspection: {
999
1263
  declare const landlord: {
1000
1264
  new: (payload: ApiRequest<"newLandlord">) => Promise<{
1001
1265
  data?: {
1002
- uid?: string | null;
1003
- username?: string | null;
1266
+ uid?: string;
1267
+ username?: string;
1004
1268
  first_name?: string | null;
1005
1269
  last_name?: string | null;
1006
- email?: string | null;
1270
+ email?: string;
1007
1271
  phone?: string | null;
1008
1272
  status?: string | null;
1009
- user_mode?: string | null;
1273
+ user_mode?: string;
1010
1274
  last_login_at?: string | null;
1011
1275
  last_login_ip?: string | null;
1012
- two_factor_enabled?: string | null;
1276
+ two_factor_enabled?: boolean;
1013
1277
  avatar_path?: string | null;
1014
- language?: string | null;
1015
- timezone?: string | null;
1278
+ language?: string;
1279
+ timezone?: string;
1016
1280
  user_type?: string;
1017
1281
  created?: string;
1018
- email_verified_at?: string | null;
1282
+ email_verified_at?: string;
1283
+ verification_status?: {
1284
+ overall?: string;
1285
+ breakdown?: {
1286
+ verification_key?: string;
1287
+ state?: string;
1288
+ }[];
1289
+ };
1019
1290
  address?: string | null;
1020
1291
  address_line_2?: string | null;
1021
1292
  legal_full_name?: string | null;
@@ -1116,6 +1387,10 @@ declare const landlord: {
1116
1387
  user_type?: string;
1117
1388
  created?: string | null;
1118
1389
  email_verified_at?: string | null;
1390
+ verification_status?: {
1391
+ overall?: string;
1392
+ breakdown?: unknown[];
1393
+ };
1119
1394
  address?: string | null;
1120
1395
  address_line_2?: string | null;
1121
1396
  legal_full_name?: string | null;
@@ -1138,23 +1413,30 @@ declare const landlord: {
1138
1413
  }>;
1139
1414
  updateProfile: (payload: ApiRequest<"updateProfile">) => Promise<{
1140
1415
  data?: {
1141
- uid?: string | null;
1142
- username?: string | null;
1416
+ uid?: string;
1417
+ username?: string;
1143
1418
  first_name?: string | null;
1144
1419
  last_name?: string | null;
1145
- email?: string | null;
1420
+ email?: string;
1146
1421
  phone?: string | null;
1147
1422
  status?: string | null;
1148
- user_mode?: string | null;
1423
+ user_mode?: string;
1149
1424
  last_login_at?: string | null;
1150
1425
  last_login_ip?: string | null;
1151
- two_factor_enabled?: string | null;
1426
+ two_factor_enabled?: boolean;
1152
1427
  avatar_path?: string | null;
1153
- language?: string | null;
1154
- timezone?: string | null;
1428
+ language?: string;
1429
+ timezone?: string;
1155
1430
  user_type?: string;
1156
1431
  created?: string;
1157
- email_verified_at?: string | null;
1432
+ email_verified_at?: string;
1433
+ verification_status?: {
1434
+ overall?: string;
1435
+ breakdown?: {
1436
+ verification_key?: string;
1437
+ state?: string;
1438
+ }[];
1439
+ };
1158
1440
  address?: string | null;
1159
1441
  address_line_2?: string | null;
1160
1442
  legal_full_name?: string | null;
@@ -2199,6 +2481,13 @@ declare const user: {
2199
2481
  user_type?: string;
2200
2482
  created?: string;
2201
2483
  email_verified_at?: string;
2484
+ verification_status?: {
2485
+ overall?: string;
2486
+ breakdown?: {
2487
+ verification_key?: string;
2488
+ state?: string;
2489
+ }[];
2490
+ };
2202
2491
  };
2203
2492
  }>;
2204
2493
  };
package/dist/index.d.ts CHANGED
@@ -73,6 +73,215 @@ declare const admin: {
73
73
  expires_at?: string | null;
74
74
  };
75
75
  }>;
76
+ dashboardStats: () => Promise<{
77
+ message?: string;
78
+ event?: string | null;
79
+ data?: {
80
+ system_scale?: {
81
+ total_users?: number;
82
+ active_landlords?: number;
83
+ total_properties?: number;
84
+ active_tenancies?: number;
85
+ };
86
+ operational_health?: {
87
+ inspections_this_month?: number;
88
+ overdue_inspections?: number;
89
+ open_maintenance?: number;
90
+ sla_24h?: number;
91
+ };
92
+ financial?: {
93
+ revenue_mtd?: number;
94
+ vacancy_rate?: number;
95
+ arrears_total?: number;
96
+ maintenance_ratio?: number;
97
+ };
98
+ };
99
+ }>;
100
+ planDistribution: () => Promise<{
101
+ message?: string;
102
+ event?: string | null;
103
+ data?: {
104
+ total?: number;
105
+ period?: string;
106
+ distribution?: {
107
+ plan?: string;
108
+ label?: string;
109
+ count?: number;
110
+ percentage?: number;
111
+ }[];
112
+ };
113
+ }>;
114
+ riskOverview: () => Promise<{
115
+ message?: string;
116
+ event?: string | null;
117
+ data?: {
118
+ score?: {
119
+ value?: number;
120
+ max?: number;
121
+ grade?: string;
122
+ };
123
+ trend?: {
124
+ month?: string;
125
+ score?: number;
126
+ }[];
127
+ breakdown?: {
128
+ compliant?: number;
129
+ warning?: number;
130
+ critical?: number;
131
+ };
132
+ insight?: {
133
+ message?: string;
134
+ highlight_value?: number;
135
+ highlight_label?: string;
136
+ type?: string;
137
+ };
138
+ };
139
+ }>;
140
+ activityFeed: () => Promise<{
141
+ message?: string;
142
+ event?: string | null;
143
+ data?: {
144
+ id?: string;
145
+ type?: string;
146
+ title?: string;
147
+ subtitle?: string;
148
+ meta?: {
149
+ listing?: string;
150
+ actor?: string;
151
+ };
152
+ timestamp?: string;
153
+ time_ago?: string;
154
+ }[];
155
+ }>;
156
+ fetchAdminProfile: () => Promise<{
157
+ message?: string;
158
+ event?: string | null;
159
+ data?: {
160
+ uid?: string | null;
161
+ username?: string | null;
162
+ first_name?: string | null;
163
+ last_name?: string | null;
164
+ email?: string | null;
165
+ phone?: string | null;
166
+ status?: string | null;
167
+ user_mode?: string | null;
168
+ last_login_at?: string | null;
169
+ last_login_ip?: string | null;
170
+ two_factor_enabled?: string | null;
171
+ avatar_path?: string | null;
172
+ language?: string | null;
173
+ timezone?: string | null;
174
+ user_type?: string;
175
+ created?: string | null;
176
+ email_verified_at?: string | null;
177
+ verification_status?: {
178
+ overall?: string;
179
+ breakdown?: unknown[];
180
+ };
181
+ role?: string | null;
182
+ };
183
+ }>;
184
+ updateAdminProfile: (payload: ApiRequest<"updateAdminProfile">) => Promise<{
185
+ data?: {
186
+ uid?: string;
187
+ username?: string;
188
+ first_name?: string | null;
189
+ last_name?: string | null;
190
+ email?: string;
191
+ phone?: string | null;
192
+ status?: string | null;
193
+ user_mode?: string;
194
+ last_login_at?: string | null;
195
+ last_login_ip?: string | null;
196
+ two_factor_enabled?: boolean;
197
+ avatar_path?: string | null;
198
+ language?: string;
199
+ timezone?: string;
200
+ user_type?: string;
201
+ created?: string;
202
+ email_verified_at?: string;
203
+ verification_status?: {
204
+ overall?: string;
205
+ breakdown?: {
206
+ verification_key?: string;
207
+ state?: string;
208
+ }[];
209
+ };
210
+ role?: string | null;
211
+ };
212
+ }>;
213
+ fetchLandlordList: () => Promise<{
214
+ message?: string;
215
+ event?: string | null;
216
+ data?: {
217
+ items?: {
218
+ user_uid?: string;
219
+ name?: string;
220
+ avatar?: string;
221
+ joined_at?: string;
222
+ joined_label?: string;
223
+ contact?: {
224
+ email?: string;
225
+ phone?: string;
226
+ };
227
+ verification?: {
228
+ status?: string;
229
+ label?: string;
230
+ };
231
+ plan?: {
232
+ key?: string;
233
+ name?: string;
234
+ };
235
+ properties_count?: number;
236
+ account_status?: {
237
+ value?: string;
238
+ label?: string;
239
+ };
240
+ }[];
241
+ pagination?: {
242
+ current_page?: number;
243
+ per_page?: number;
244
+ total?: number;
245
+ last_page?: number;
246
+ from?: number;
247
+ to?: number;
248
+ };
249
+ };
250
+ }>;
251
+ fetchTenantList: () => Promise<{
252
+ message?: string;
253
+ event?: string | null;
254
+ data?: {
255
+ items?: {
256
+ user_uid?: string;
257
+ name?: string;
258
+ avatar?: string;
259
+ email?: string;
260
+ verification?: {
261
+ status?: string;
262
+ label?: string;
263
+ };
264
+ active_tenancy?: {
265
+ has_active_tenancy?: boolean;
266
+ tenancy_uid?: string;
267
+ property_address?: string;
268
+ };
269
+ right_to_rent?: {
270
+ status?: string;
271
+ label?: string;
272
+ };
273
+ status?: string;
274
+ }[];
275
+ pagination?: {
276
+ current_page?: number;
277
+ per_page?: number;
278
+ total?: number;
279
+ last_page?: number;
280
+ from?: number;
281
+ to?: number;
282
+ };
283
+ };
284
+ }>;
76
285
  getSubmittedListing: () => Promise<{
77
286
  data?: {
78
287
  draft_name?: string;
@@ -646,7 +855,7 @@ declare const admin: {
646
855
  status?: string;
647
856
  priority?: string;
648
857
  reported_at?: string;
649
- assigned_at?: string | null;
858
+ assigned_at?: string;
650
859
  completed_at?: string | null;
651
860
  sla_deadline?: string;
652
861
  created_at?: string;
@@ -922,6 +1131,61 @@ declare const tenant: {
922
1131
  postApiV1PortalTenantCreateWithGithub: () => Promise<unknown>;
923
1132
  postApiV1PortalTenantSendOtp: () => Promise<unknown>;
924
1133
  postApiV1PortalTenantVerifyOtp: (payload: ApiRequest<"postApiV1PortalTenantVerifyOtp">) => Promise<unknown>;
1134
+ fetchTenantProfile: () => Promise<{
1135
+ message?: string;
1136
+ event?: string | null;
1137
+ data?: {
1138
+ uid?: string | null;
1139
+ username?: string | null;
1140
+ first_name?: string | null;
1141
+ last_name?: string | null;
1142
+ email?: string | null;
1143
+ phone?: string | null;
1144
+ status?: string | null;
1145
+ user_mode?: string | null;
1146
+ last_login_at?: string | null;
1147
+ last_login_ip?: string | null;
1148
+ two_factor_enabled?: string | null;
1149
+ avatar_path?: string | null;
1150
+ language?: string | null;
1151
+ timezone?: string | null;
1152
+ user_type?: string;
1153
+ created?: string | null;
1154
+ email_verified_at?: string | null;
1155
+ verification_status?: {
1156
+ overall?: string;
1157
+ breakdown?: unknown[];
1158
+ };
1159
+ };
1160
+ }>;
1161
+ updateTenantProfile: (payload: ApiRequest<"updateTenantProfile">) => Promise<{
1162
+ data?: {
1163
+ uid?: string;
1164
+ username?: string;
1165
+ first_name?: string | null;
1166
+ last_name?: string | null;
1167
+ email?: string;
1168
+ phone?: string | null;
1169
+ status?: string | null;
1170
+ user_mode?: string;
1171
+ last_login_at?: string | null;
1172
+ last_login_ip?: string | null;
1173
+ two_factor_enabled?: boolean;
1174
+ avatar_path?: string | null;
1175
+ language?: string;
1176
+ timezone?: string;
1177
+ user_type?: string;
1178
+ created?: string;
1179
+ email_verified_at?: string;
1180
+ verification_status?: {
1181
+ overall?: string;
1182
+ breakdown?: {
1183
+ verification_key?: string;
1184
+ state?: string;
1185
+ }[];
1186
+ };
1187
+ };
1188
+ }>;
925
1189
  };
926
1190
 
927
1191
  declare const customer: {
@@ -999,23 +1263,30 @@ declare const inspection: {
999
1263
  declare const landlord: {
1000
1264
  new: (payload: ApiRequest<"newLandlord">) => Promise<{
1001
1265
  data?: {
1002
- uid?: string | null;
1003
- username?: string | null;
1266
+ uid?: string;
1267
+ username?: string;
1004
1268
  first_name?: string | null;
1005
1269
  last_name?: string | null;
1006
- email?: string | null;
1270
+ email?: string;
1007
1271
  phone?: string | null;
1008
1272
  status?: string | null;
1009
- user_mode?: string | null;
1273
+ user_mode?: string;
1010
1274
  last_login_at?: string | null;
1011
1275
  last_login_ip?: string | null;
1012
- two_factor_enabled?: string | null;
1276
+ two_factor_enabled?: boolean;
1013
1277
  avatar_path?: string | null;
1014
- language?: string | null;
1015
- timezone?: string | null;
1278
+ language?: string;
1279
+ timezone?: string;
1016
1280
  user_type?: string;
1017
1281
  created?: string;
1018
- email_verified_at?: string | null;
1282
+ email_verified_at?: string;
1283
+ verification_status?: {
1284
+ overall?: string;
1285
+ breakdown?: {
1286
+ verification_key?: string;
1287
+ state?: string;
1288
+ }[];
1289
+ };
1019
1290
  address?: string | null;
1020
1291
  address_line_2?: string | null;
1021
1292
  legal_full_name?: string | null;
@@ -1116,6 +1387,10 @@ declare const landlord: {
1116
1387
  user_type?: string;
1117
1388
  created?: string | null;
1118
1389
  email_verified_at?: string | null;
1390
+ verification_status?: {
1391
+ overall?: string;
1392
+ breakdown?: unknown[];
1393
+ };
1119
1394
  address?: string | null;
1120
1395
  address_line_2?: string | null;
1121
1396
  legal_full_name?: string | null;
@@ -1138,23 +1413,30 @@ declare const landlord: {
1138
1413
  }>;
1139
1414
  updateProfile: (payload: ApiRequest<"updateProfile">) => Promise<{
1140
1415
  data?: {
1141
- uid?: string | null;
1142
- username?: string | null;
1416
+ uid?: string;
1417
+ username?: string;
1143
1418
  first_name?: string | null;
1144
1419
  last_name?: string | null;
1145
- email?: string | null;
1420
+ email?: string;
1146
1421
  phone?: string | null;
1147
1422
  status?: string | null;
1148
- user_mode?: string | null;
1423
+ user_mode?: string;
1149
1424
  last_login_at?: string | null;
1150
1425
  last_login_ip?: string | null;
1151
- two_factor_enabled?: string | null;
1426
+ two_factor_enabled?: boolean;
1152
1427
  avatar_path?: string | null;
1153
- language?: string | null;
1154
- timezone?: string | null;
1428
+ language?: string;
1429
+ timezone?: string;
1155
1430
  user_type?: string;
1156
1431
  created?: string;
1157
- email_verified_at?: string | null;
1432
+ email_verified_at?: string;
1433
+ verification_status?: {
1434
+ overall?: string;
1435
+ breakdown?: {
1436
+ verification_key?: string;
1437
+ state?: string;
1438
+ }[];
1439
+ };
1158
1440
  address?: string | null;
1159
1441
  address_line_2?: string | null;
1160
1442
  legal_full_name?: string | null;
@@ -2199,6 +2481,13 @@ declare const user: {
2199
2481
  user_type?: string;
2200
2482
  created?: string;
2201
2483
  email_verified_at?: string;
2484
+ verification_status?: {
2485
+ overall?: string;
2486
+ breakdown?: {
2487
+ verification_key?: string;
2488
+ state?: string;
2489
+ }[];
2490
+ };
2202
2491
  };
2203
2492
  }>;
2204
2493
  };
package/dist/index.js CHANGED
@@ -108,6 +108,30 @@ var admin = {
108
108
  basicLogin: (payload) => {
109
109
  return api.post("basicLoginAdmin", "/api/v1/portal/admin/login", payload);
110
110
  },
111
+ dashboardStats: () => {
112
+ return api.get("dashboardStatsAdmin", "/api/v1/portal/admin/dashboard/stats");
113
+ },
114
+ planDistribution: () => {
115
+ return api.get("planDistribution", "/api/v1/portal/admin/dashboard/plan-distribution");
116
+ },
117
+ riskOverview: () => {
118
+ return api.get("riskOverview", "/api/v1/portal/admin/dashboard/risk-overview");
119
+ },
120
+ activityFeed: () => {
121
+ return api.get("activityFeed", "/api/v1/portal/admin/dashboard/activity-feed");
122
+ },
123
+ fetchAdminProfile: () => {
124
+ return api.get("fetchAdminProfile", "/api/v1/portal/admin/dashboard/profile");
125
+ },
126
+ updateAdminProfile: (payload) => {
127
+ return api.post("updateAdminProfile", "/api/v1/portal/admin/dashboard/update-profile", payload);
128
+ },
129
+ fetchLandlordList: () => {
130
+ return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all");
131
+ },
132
+ fetchTenantList: () => {
133
+ return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all");
134
+ },
111
135
  getSubmittedListing: () => {
112
136
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
113
137
  },
@@ -372,6 +396,12 @@ var tenant = {
372
396
  },
373
397
  postApiV1PortalTenantVerifyOtp: (payload) => {
374
398
  return api.post("postApiV1PortalTenantVerifyOtp", "/api/v1/portal/tenant/verify-otp", payload);
399
+ },
400
+ fetchTenantProfile: () => {
401
+ return api.get("fetchTenantProfile", "/api/v1/portal/tenant/dashboard/profile");
402
+ },
403
+ updateTenantProfile: (payload) => {
404
+ return api.post("updateTenantProfile", "/api/v1/portal/tenant/dashboard/update-profile", payload);
375
405
  }
376
406
  };
377
407
 
package/dist/index.mjs CHANGED
@@ -61,6 +61,30 @@ var admin = {
61
61
  basicLogin: (payload) => {
62
62
  return api.post("basicLoginAdmin", "/api/v1/portal/admin/login", payload);
63
63
  },
64
+ dashboardStats: () => {
65
+ return api.get("dashboardStatsAdmin", "/api/v1/portal/admin/dashboard/stats");
66
+ },
67
+ planDistribution: () => {
68
+ return api.get("planDistribution", "/api/v1/portal/admin/dashboard/plan-distribution");
69
+ },
70
+ riskOverview: () => {
71
+ return api.get("riskOverview", "/api/v1/portal/admin/dashboard/risk-overview");
72
+ },
73
+ activityFeed: () => {
74
+ return api.get("activityFeed", "/api/v1/portal/admin/dashboard/activity-feed");
75
+ },
76
+ fetchAdminProfile: () => {
77
+ return api.get("fetchAdminProfile", "/api/v1/portal/admin/dashboard/profile");
78
+ },
79
+ updateAdminProfile: (payload) => {
80
+ return api.post("updateAdminProfile", "/api/v1/portal/admin/dashboard/update-profile", payload);
81
+ },
82
+ fetchLandlordList: () => {
83
+ return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all");
84
+ },
85
+ fetchTenantList: () => {
86
+ return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all");
87
+ },
64
88
  getSubmittedListing: () => {
65
89
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
66
90
  },
@@ -325,6 +349,12 @@ var tenant = {
325
349
  },
326
350
  postApiV1PortalTenantVerifyOtp: (payload) => {
327
351
  return api.post("postApiV1PortalTenantVerifyOtp", "/api/v1/portal/tenant/verify-otp", payload);
352
+ },
353
+ fetchTenantProfile: () => {
354
+ return api.get("fetchTenantProfile", "/api/v1/portal/tenant/dashboard/profile");
355
+ },
356
+ updateTenantProfile: (payload) => {
357
+ return api.post("updateTenantProfile", "/api/v1/portal/tenant/dashboard/update-profile", payload);
328
358
  }
329
359
  };
330
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
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.2",
20
- "@justins-home/types": "1.1.2"
19
+ "@justins-home/http-client": "1.1.4",
20
+ "@justins-home/types": "1.1.4"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"