@justins-home/api-services 1.2.1 → 1.2.2

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
@@ -537,7 +537,7 @@ declare const admin: {
537
537
  }>;
538
538
  createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
539
539
  data?: {
540
- id?: number;
540
+ id?: string | null;
541
541
  compliance_key?: string;
542
542
  name?: string;
543
543
  description?: string;
@@ -830,6 +830,23 @@ declare const auth: {
830
830
  event?: string | null;
831
831
  data?: string | null;
832
832
  }>;
833
+ sendResetPasswordOTP: (payload: ApiRequest<"sendResetPasswordOTP">) => Promise<{
834
+ message?: string;
835
+ event?: string | null;
836
+ data?: string | null;
837
+ }>;
838
+ verifyPasswordResetOTP: (payload: ApiRequest<"verifyPasswordResetOTP">) => Promise<{
839
+ message?: string;
840
+ event?: string | null;
841
+ data?: {
842
+ reset_token?: string;
843
+ };
844
+ }>;
845
+ resetPassword: (payload: ApiRequest<"resetPassword">) => Promise<{
846
+ message?: string;
847
+ event?: string | null;
848
+ data?: string | null;
849
+ }>;
833
850
  generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
834
851
  message?: string;
835
852
  event?: string | null;
@@ -840,6 +857,13 @@ declare const auth: {
840
857
  event?: string | null;
841
858
  data?: string | null;
842
859
  }>;
860
+ checkEmailStatus: () => Promise<{
861
+ message?: string;
862
+ event?: string | null;
863
+ data?: {
864
+ is_verified?: number;
865
+ };
866
+ }>;
843
867
  };
844
868
 
845
869
  declare const booking: {
@@ -1013,6 +1037,56 @@ declare const landlord: {
1013
1037
  expires_at?: string | null;
1014
1038
  };
1015
1039
  }>;
1040
+ dashboardStats: () => Promise<{
1041
+ message?: string;
1042
+ event?: string | null;
1043
+ data?: {
1044
+ portfolio?: {
1045
+ label?: string;
1046
+ value?: number;
1047
+ formatted_value?: string;
1048
+ status?: string;
1049
+ meta?: {
1050
+ label?: string;
1051
+ value?: string | null;
1052
+ formatted_value?: string | null;
1053
+ };
1054
+ };
1055
+ maintenance?: {
1056
+ label?: string;
1057
+ value?: number;
1058
+ formatted_value?: string;
1059
+ status?: string;
1060
+ meta?: {
1061
+ label?: string;
1062
+ value?: number;
1063
+ formatted_value?: string;
1064
+ };
1065
+ };
1066
+ sla_performance?: {
1067
+ label?: string;
1068
+ value?: number;
1069
+ formatted_value?: string;
1070
+ status?: string;
1071
+ meta?: {
1072
+ label?: string;
1073
+ value?: number;
1074
+ formatted_value?: string;
1075
+ };
1076
+ };
1077
+ inspection?: {
1078
+ label?: string;
1079
+ value?: string;
1080
+ formatted_value?: string;
1081
+ status?: string;
1082
+ meta?: {
1083
+ label?: string;
1084
+ value?: string;
1085
+ formatted_value?: string;
1086
+ };
1087
+ };
1088
+ };
1089
+ }>;
1016
1090
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1017
1091
  data?: {
1018
1092
  uid?: string;
@@ -1258,6 +1332,40 @@ declare const landlord: {
1258
1332
  media?: unknown[];
1259
1333
  };
1260
1334
  }>;
1335
+ propertyStandardsOverview: () => Promise<{
1336
+ message?: string;
1337
+ event?: string | null;
1338
+ data?: {
1339
+ listing_uid?: string;
1340
+ property?: {
1341
+ address_line?: string;
1342
+ city?: string;
1343
+ postcode?: string;
1344
+ display_address?: string;
1345
+ };
1346
+ compliance?: {
1347
+ name?: string;
1348
+ status?: string;
1349
+ valid_until?: string;
1350
+ display_status?: string;
1351
+ };
1352
+ inspection?: {
1353
+ last_completed_at?: string;
1354
+ next_scheduled_at?: string;
1355
+ display_last?: string;
1356
+ display_next?: string;
1357
+ };
1358
+ maintenance?: {
1359
+ last_activity_at?: string;
1360
+ next_due_at?: string;
1361
+ display_last?: string;
1362
+ display_next?: string;
1363
+ };
1364
+ action?: {
1365
+ listing_uid?: string;
1366
+ };
1367
+ }[];
1368
+ }>;
1261
1369
  getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
1262
1370
  data?: {
1263
1371
  listing_uid?: string | null;
@@ -1577,14 +1685,14 @@ declare const conversations: {
1577
1685
  }>;
1578
1686
  listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
1579
1687
  data?: {
1580
- id?: number;
1581
- conversation_id?: number;
1582
- body?: string;
1688
+ id?: string | null;
1689
+ conversation_id?: string | null;
1690
+ body?: string | null;
1583
1691
  attachment_url?: string | null;
1584
- is_system?: boolean;
1692
+ is_system?: string | null;
1585
1693
  state?: string;
1586
1694
  read_at?: string | null;
1587
- created_at?: string;
1695
+ created_at?: string | null;
1588
1696
  }[];
1589
1697
  links?: {
1590
1698
  first?: string;
@@ -1938,6 +2046,41 @@ declare const userverification: {
1938
2046
  last_calculated_at?: string;
1939
2047
  };
1940
2048
  }>;
2049
+ dashboardCard: () => Promise<{
2050
+ message?: string;
2051
+ event?: string | null;
2052
+ data?: {
2053
+ user_type?: string;
2054
+ current_level?: number;
2055
+ completed_layers?: number;
2056
+ pending_layers?: number;
2057
+ total_layers?: number;
2058
+ required_layers?: number;
2059
+ progress_percentage?: number;
2060
+ status?: string;
2061
+ last_calculated_at?: string;
2062
+ next_layer?: {
2063
+ key?: string;
2064
+ name?: string;
2065
+ description?: string;
2066
+ order?: number;
2067
+ is_required?: boolean;
2068
+ requires_review?: boolean;
2069
+ current_status?: string;
2070
+ rejection_reason?: string;
2071
+ };
2072
+ action_required_layer?: {
2073
+ key?: string;
2074
+ name?: string;
2075
+ description?: string;
2076
+ order?: number;
2077
+ is_required?: boolean;
2078
+ requires_review?: boolean;
2079
+ current_status?: string;
2080
+ rejection_reason?: string;
2081
+ };
2082
+ };
2083
+ }>;
1941
2084
  resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
1942
2085
  data?: {
1943
2086
  current_level?: number;
package/dist/index.d.ts CHANGED
@@ -537,7 +537,7 @@ declare const admin: {
537
537
  }>;
538
538
  createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
539
539
  data?: {
540
- id?: number;
540
+ id?: string | null;
541
541
  compliance_key?: string;
542
542
  name?: string;
543
543
  description?: string;
@@ -830,6 +830,23 @@ declare const auth: {
830
830
  event?: string | null;
831
831
  data?: string | null;
832
832
  }>;
833
+ sendResetPasswordOTP: (payload: ApiRequest<"sendResetPasswordOTP">) => Promise<{
834
+ message?: string;
835
+ event?: string | null;
836
+ data?: string | null;
837
+ }>;
838
+ verifyPasswordResetOTP: (payload: ApiRequest<"verifyPasswordResetOTP">) => Promise<{
839
+ message?: string;
840
+ event?: string | null;
841
+ data?: {
842
+ reset_token?: string;
843
+ };
844
+ }>;
845
+ resetPassword: (payload: ApiRequest<"resetPassword">) => Promise<{
846
+ message?: string;
847
+ event?: string | null;
848
+ data?: string | null;
849
+ }>;
833
850
  generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
834
851
  message?: string;
835
852
  event?: string | null;
@@ -840,6 +857,13 @@ declare const auth: {
840
857
  event?: string | null;
841
858
  data?: string | null;
842
859
  }>;
860
+ checkEmailStatus: () => Promise<{
861
+ message?: string;
862
+ event?: string | null;
863
+ data?: {
864
+ is_verified?: number;
865
+ };
866
+ }>;
843
867
  };
844
868
 
845
869
  declare const booking: {
@@ -1013,6 +1037,56 @@ declare const landlord: {
1013
1037
  expires_at?: string | null;
1014
1038
  };
1015
1039
  }>;
1040
+ dashboardStats: () => Promise<{
1041
+ message?: string;
1042
+ event?: string | null;
1043
+ data?: {
1044
+ portfolio?: {
1045
+ label?: string;
1046
+ value?: number;
1047
+ formatted_value?: string;
1048
+ status?: string;
1049
+ meta?: {
1050
+ label?: string;
1051
+ value?: string | null;
1052
+ formatted_value?: string | null;
1053
+ };
1054
+ };
1055
+ maintenance?: {
1056
+ label?: string;
1057
+ value?: number;
1058
+ formatted_value?: string;
1059
+ status?: string;
1060
+ meta?: {
1061
+ label?: string;
1062
+ value?: number;
1063
+ formatted_value?: string;
1064
+ };
1065
+ };
1066
+ sla_performance?: {
1067
+ label?: string;
1068
+ value?: number;
1069
+ formatted_value?: string;
1070
+ status?: string;
1071
+ meta?: {
1072
+ label?: string;
1073
+ value?: number;
1074
+ formatted_value?: string;
1075
+ };
1076
+ };
1077
+ inspection?: {
1078
+ label?: string;
1079
+ value?: string;
1080
+ formatted_value?: string;
1081
+ status?: string;
1082
+ meta?: {
1083
+ label?: string;
1084
+ value?: string;
1085
+ formatted_value?: string;
1086
+ };
1087
+ };
1088
+ };
1089
+ }>;
1016
1090
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1017
1091
  data?: {
1018
1092
  uid?: string;
@@ -1258,6 +1332,40 @@ declare const landlord: {
1258
1332
  media?: unknown[];
1259
1333
  };
1260
1334
  }>;
1335
+ propertyStandardsOverview: () => Promise<{
1336
+ message?: string;
1337
+ event?: string | null;
1338
+ data?: {
1339
+ listing_uid?: string;
1340
+ property?: {
1341
+ address_line?: string;
1342
+ city?: string;
1343
+ postcode?: string;
1344
+ display_address?: string;
1345
+ };
1346
+ compliance?: {
1347
+ name?: string;
1348
+ status?: string;
1349
+ valid_until?: string;
1350
+ display_status?: string;
1351
+ };
1352
+ inspection?: {
1353
+ last_completed_at?: string;
1354
+ next_scheduled_at?: string;
1355
+ display_last?: string;
1356
+ display_next?: string;
1357
+ };
1358
+ maintenance?: {
1359
+ last_activity_at?: string;
1360
+ next_due_at?: string;
1361
+ display_last?: string;
1362
+ display_next?: string;
1363
+ };
1364
+ action?: {
1365
+ listing_uid?: string;
1366
+ };
1367
+ }[];
1368
+ }>;
1261
1369
  getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
1262
1370
  data?: {
1263
1371
  listing_uid?: string | null;
@@ -1577,14 +1685,14 @@ declare const conversations: {
1577
1685
  }>;
1578
1686
  listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
1579
1687
  data?: {
1580
- id?: number;
1581
- conversation_id?: number;
1582
- body?: string;
1688
+ id?: string | null;
1689
+ conversation_id?: string | null;
1690
+ body?: string | null;
1583
1691
  attachment_url?: string | null;
1584
- is_system?: boolean;
1692
+ is_system?: string | null;
1585
1693
  state?: string;
1586
1694
  read_at?: string | null;
1587
- created_at?: string;
1695
+ created_at?: string | null;
1588
1696
  }[];
1589
1697
  links?: {
1590
1698
  first?: string;
@@ -1938,6 +2046,41 @@ declare const userverification: {
1938
2046
  last_calculated_at?: string;
1939
2047
  };
1940
2048
  }>;
2049
+ dashboardCard: () => Promise<{
2050
+ message?: string;
2051
+ event?: string | null;
2052
+ data?: {
2053
+ user_type?: string;
2054
+ current_level?: number;
2055
+ completed_layers?: number;
2056
+ pending_layers?: number;
2057
+ total_layers?: number;
2058
+ required_layers?: number;
2059
+ progress_percentage?: number;
2060
+ status?: string;
2061
+ last_calculated_at?: string;
2062
+ next_layer?: {
2063
+ key?: string;
2064
+ name?: string;
2065
+ description?: string;
2066
+ order?: number;
2067
+ is_required?: boolean;
2068
+ requires_review?: boolean;
2069
+ current_status?: string;
2070
+ rejection_reason?: string;
2071
+ };
2072
+ action_required_layer?: {
2073
+ key?: string;
2074
+ name?: string;
2075
+ description?: string;
2076
+ order?: number;
2077
+ is_required?: boolean;
2078
+ requires_review?: boolean;
2079
+ current_status?: string;
2080
+ rejection_reason?: string;
2081
+ };
2082
+ };
2083
+ }>;
1941
2084
  resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
1942
2085
  data?: {
1943
2086
  current_level?: number;
package/dist/index.js CHANGED
@@ -319,11 +319,23 @@ var auth = {
319
319
  logoutUser: () => {
320
320
  return api.post("logoutUser", "/api/v1/public/auth/logout");
321
321
  },
322
+ sendResetPasswordOTP: (payload) => {
323
+ return api.post("sendResetPasswordOTP", "/api/v1/public/auth/request-password-reset", payload);
324
+ },
325
+ verifyPasswordResetOTP: (payload) => {
326
+ return api.post("verifyPasswordResetOTP", "/api/v1/public/auth/verify-password-reset-otp", payload);
327
+ },
328
+ resetPassword: (payload) => {
329
+ return api.post("resetPassword", "/api/v1/public/auth/reset-password", payload);
330
+ },
322
331
  generateOTP: (payload) => {
323
332
  return api.post("generateOTP", "/api/v1/public/auth/send-otp", payload);
324
333
  },
325
334
  verifyOTP: (payload) => {
326
335
  return api.post("verifyOTP", "/api/v1/public/auth/verify-otp", payload);
336
+ },
337
+ checkEmailStatus: () => {
338
+ return api.get("checkEmailStatus", "/api/v1/public/auth/check-status");
327
339
  }
328
340
  };
329
341
 
@@ -423,6 +435,9 @@ var landlord = {
423
435
  basicLogin: (payload) => {
424
436
  return api.post("basicLoginLandlord", "/api/v1/portal/landlord/login", payload);
425
437
  },
438
+ dashboardStats: () => {
439
+ return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
440
+ },
426
441
  createListingDraft: (payload) => {
427
442
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
428
443
  },
@@ -471,6 +486,9 @@ var landlord = {
471
486
  submitListing: (params) => {
472
487
  return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
473
488
  },
489
+ propertyStandardsOverview: () => {
490
+ return api.get("propertyStandardsOverview", "/api/v1/portal/landlord/listing/compliance/overview");
491
+ },
474
492
  getListingCompliance: (params) => {
475
493
  return api.get("getListingCompliance", `/api/v1/portal/landlord/listing/compliance/fetch/${params.listing_uid}`);
476
494
  },
@@ -635,6 +653,9 @@ var userverification = {
635
653
  fetchFlow: () => {
636
654
  return api.get("fetchFlowUserVerification", "/api/v1/public/userverification/fetch-flow");
637
655
  },
656
+ dashboardCard: () => {
657
+ return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
658
+ },
638
659
  resubmit: (params, payload) => {
639
660
  return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
640
661
  }
package/dist/index.mjs CHANGED
@@ -273,11 +273,23 @@ var auth = {
273
273
  logoutUser: () => {
274
274
  return api.post("logoutUser", "/api/v1/public/auth/logout");
275
275
  },
276
+ sendResetPasswordOTP: (payload) => {
277
+ return api.post("sendResetPasswordOTP", "/api/v1/public/auth/request-password-reset", payload);
278
+ },
279
+ verifyPasswordResetOTP: (payload) => {
280
+ return api.post("verifyPasswordResetOTP", "/api/v1/public/auth/verify-password-reset-otp", payload);
281
+ },
282
+ resetPassword: (payload) => {
283
+ return api.post("resetPassword", "/api/v1/public/auth/reset-password", payload);
284
+ },
276
285
  generateOTP: (payload) => {
277
286
  return api.post("generateOTP", "/api/v1/public/auth/send-otp", payload);
278
287
  },
279
288
  verifyOTP: (payload) => {
280
289
  return api.post("verifyOTP", "/api/v1/public/auth/verify-otp", payload);
290
+ },
291
+ checkEmailStatus: () => {
292
+ return api.get("checkEmailStatus", "/api/v1/public/auth/check-status");
281
293
  }
282
294
  };
283
295
 
@@ -377,6 +389,9 @@ var landlord = {
377
389
  basicLogin: (payload) => {
378
390
  return api.post("basicLoginLandlord", "/api/v1/portal/landlord/login", payload);
379
391
  },
392
+ dashboardStats: () => {
393
+ return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
394
+ },
380
395
  createListingDraft: (payload) => {
381
396
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
382
397
  },
@@ -425,6 +440,9 @@ var landlord = {
425
440
  submitListing: (params) => {
426
441
  return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
427
442
  },
443
+ propertyStandardsOverview: () => {
444
+ return api.get("propertyStandardsOverview", "/api/v1/portal/landlord/listing/compliance/overview");
445
+ },
428
446
  getListingCompliance: (params) => {
429
447
  return api.get("getListingCompliance", `/api/v1/portal/landlord/listing/compliance/fetch/${params.listing_uid}`);
430
448
  },
@@ -589,6 +607,9 @@ var userverification = {
589
607
  fetchFlow: () => {
590
608
  return api.get("fetchFlowUserVerification", "/api/v1/public/userverification/fetch-flow");
591
609
  },
610
+ dashboardCard: () => {
611
+ return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
612
+ },
592
613
  resubmit: (params, payload) => {
593
614
  return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
594
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",