@justins-home/api-services 1.2.0 → 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 +238 -19
- package/dist/index.d.ts +238 -19
- package/dist/index.js +23 -11
- package/dist/index.mjs +23 -10
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -301,14 +301,27 @@ declare const admin: {
|
|
|
301
301
|
updated_at?: string;
|
|
302
302
|
};
|
|
303
303
|
}>;
|
|
304
|
-
getVerificationFlows: () => Promise<
|
|
304
|
+
getVerificationFlows: () => Promise<{
|
|
305
|
+
data?: {
|
|
306
|
+
user_type?: string;
|
|
307
|
+
user_type_class?: string;
|
|
308
|
+
layers?: {
|
|
309
|
+
order?: number;
|
|
310
|
+
is_required?: boolean;
|
|
311
|
+
}[];
|
|
312
|
+
}[];
|
|
313
|
+
}>;
|
|
305
314
|
createVerificationFlow: (payload: ApiRequest<"createVerificationFlow">) => Promise<{
|
|
306
315
|
data?: {
|
|
307
316
|
order?: number;
|
|
308
317
|
is_required?: boolean;
|
|
309
318
|
};
|
|
310
319
|
}>;
|
|
311
|
-
reorderVerificationFlow: (payload: ApiRequest<"reorderVerificationFlow">) => Promise<
|
|
320
|
+
reorderVerificationFlow: (payload: ApiRequest<"reorderVerificationFlow">) => Promise<{
|
|
321
|
+
message?: string;
|
|
322
|
+
event?: string | null;
|
|
323
|
+
data?: string | null;
|
|
324
|
+
}>;
|
|
312
325
|
getUserVerifications: (query?: Expand<ApiRequest<"getUserVerifications">>) => Promise<{
|
|
313
326
|
data?: {
|
|
314
327
|
id?: number;
|
|
@@ -524,7 +537,7 @@ declare const admin: {
|
|
|
524
537
|
}>;
|
|
525
538
|
createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
|
|
526
539
|
data?: {
|
|
527
|
-
id?:
|
|
540
|
+
id?: string | null;
|
|
528
541
|
compliance_key?: string;
|
|
529
542
|
name?: string;
|
|
530
543
|
description?: string;
|
|
@@ -803,12 +816,37 @@ declare const appointment: {
|
|
|
803
816
|
};
|
|
804
817
|
|
|
805
818
|
declare const auth: {
|
|
806
|
-
loginUser: (payload: ApiRequest<"loginUser">) => Promise<
|
|
819
|
+
loginUser: (payload: ApiRequest<"loginUser">) => Promise<{
|
|
820
|
+
message?: string;
|
|
821
|
+
event?: string | null;
|
|
822
|
+
data?: {
|
|
823
|
+
access_token?: string | null;
|
|
824
|
+
token_type?: string;
|
|
825
|
+
expires_at?: string | null;
|
|
826
|
+
};
|
|
827
|
+
}>;
|
|
807
828
|
logoutUser: () => Promise<{
|
|
808
829
|
message?: string;
|
|
809
830
|
event?: string | null;
|
|
810
831
|
data?: string | null;
|
|
811
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
|
+
}>;
|
|
812
850
|
generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
|
|
813
851
|
message?: string;
|
|
814
852
|
event?: string | null;
|
|
@@ -819,6 +857,13 @@ declare const auth: {
|
|
|
819
857
|
event?: string | null;
|
|
820
858
|
data?: string | null;
|
|
821
859
|
}>;
|
|
860
|
+
checkEmailStatus: () => Promise<{
|
|
861
|
+
message?: string;
|
|
862
|
+
event?: string | null;
|
|
863
|
+
data?: {
|
|
864
|
+
is_verified?: number;
|
|
865
|
+
};
|
|
866
|
+
}>;
|
|
822
867
|
};
|
|
823
868
|
|
|
824
869
|
declare const booking: {
|
|
@@ -888,10 +933,6 @@ declare const booking: {
|
|
|
888
933
|
}>;
|
|
889
934
|
};
|
|
890
935
|
|
|
891
|
-
declare const agent: {
|
|
892
|
-
getApiV1PortalAgentTest: () => Promise<unknown>;
|
|
893
|
-
};
|
|
894
|
-
|
|
895
936
|
declare const tenant: {
|
|
896
937
|
getApiV1PortalTenantTest: () => Promise<{
|
|
897
938
|
message?: string;
|
|
@@ -923,7 +964,17 @@ declare const github: {
|
|
|
923
964
|
};
|
|
924
965
|
|
|
925
966
|
declare const feature: {
|
|
926
|
-
|
|
967
|
+
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
968
|
+
data?: {
|
|
969
|
+
id?: number;
|
|
970
|
+
category_id?: number;
|
|
971
|
+
name?: string;
|
|
972
|
+
description?: string;
|
|
973
|
+
icon?: string;
|
|
974
|
+
is_active?: boolean;
|
|
975
|
+
is_filterable?: boolean;
|
|
976
|
+
};
|
|
977
|
+
}>;
|
|
927
978
|
};
|
|
928
979
|
|
|
929
980
|
declare const inspection: {
|
|
@@ -977,7 +1028,65 @@ declare const landlord: {
|
|
|
977
1028
|
address?: string;
|
|
978
1029
|
};
|
|
979
1030
|
}>;
|
|
980
|
-
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<
|
|
1031
|
+
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
|
|
1032
|
+
message?: string;
|
|
1033
|
+
event?: string | null;
|
|
1034
|
+
data?: {
|
|
1035
|
+
access_token?: string | null;
|
|
1036
|
+
token_type?: string;
|
|
1037
|
+
expires_at?: string | null;
|
|
1038
|
+
};
|
|
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
|
+
}>;
|
|
981
1090
|
createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
|
|
982
1091
|
data?: {
|
|
983
1092
|
uid?: string;
|
|
@@ -1223,6 +1332,40 @@ declare const landlord: {
|
|
|
1223
1332
|
media?: unknown[];
|
|
1224
1333
|
};
|
|
1225
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
|
+
}>;
|
|
1226
1369
|
getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
|
|
1227
1370
|
data?: {
|
|
1228
1371
|
listing_uid?: string | null;
|
|
@@ -1542,14 +1685,14 @@ declare const conversations: {
|
|
|
1542
1685
|
}>;
|
|
1543
1686
|
listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
|
|
1544
1687
|
data?: {
|
|
1545
|
-
id?:
|
|
1546
|
-
conversation_id?:
|
|
1547
|
-
body?: string;
|
|
1688
|
+
id?: string | null;
|
|
1689
|
+
conversation_id?: string | null;
|
|
1690
|
+
body?: string | null;
|
|
1548
1691
|
attachment_url?: string | null;
|
|
1549
|
-
is_system?:
|
|
1692
|
+
is_system?: string | null;
|
|
1550
1693
|
state?: string;
|
|
1551
1694
|
read_at?: string | null;
|
|
1552
|
-
created_at?: string;
|
|
1695
|
+
created_at?: string | null;
|
|
1553
1696
|
}[];
|
|
1554
1697
|
links?: {
|
|
1555
1698
|
first?: string;
|
|
@@ -1573,7 +1716,20 @@ declare const conversations: {
|
|
|
1573
1716
|
total?: number;
|
|
1574
1717
|
};
|
|
1575
1718
|
}>;
|
|
1576
|
-
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<
|
|
1719
|
+
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<{
|
|
1720
|
+
message?: string;
|
|
1721
|
+
event?: string | null;
|
|
1722
|
+
data?: {
|
|
1723
|
+
id?: string | null;
|
|
1724
|
+
conversation_id?: string | null;
|
|
1725
|
+
body?: string | null;
|
|
1726
|
+
attachment_url?: string | null;
|
|
1727
|
+
is_system?: string | null;
|
|
1728
|
+
state?: string;
|
|
1729
|
+
read_at?: string | null;
|
|
1730
|
+
created_at?: string | null;
|
|
1731
|
+
};
|
|
1732
|
+
}>;
|
|
1577
1733
|
markConversationAsRead: (params: ApiPathParams<"markConversationAsRead">) => Promise<{
|
|
1578
1734
|
message?: string;
|
|
1579
1735
|
event?: string | null;
|
|
@@ -1697,7 +1853,14 @@ declare const review: {
|
|
|
1697
1853
|
total?: number;
|
|
1698
1854
|
};
|
|
1699
1855
|
}>;
|
|
1700
|
-
ratingSummary: () => Promise<
|
|
1856
|
+
ratingSummary: () => Promise<{
|
|
1857
|
+
message?: string;
|
|
1858
|
+
event?: string | null;
|
|
1859
|
+
data?: {
|
|
1860
|
+
average_rating?: number;
|
|
1861
|
+
reviews_count?: number;
|
|
1862
|
+
};
|
|
1863
|
+
}>;
|
|
1701
1864
|
createListing: (payload: ApiRequest<"createListingReview">) => Promise<{
|
|
1702
1865
|
data?: {
|
|
1703
1866
|
id?: number;
|
|
@@ -1883,6 +2046,41 @@ declare const userverification: {
|
|
|
1883
2046
|
last_calculated_at?: string;
|
|
1884
2047
|
};
|
|
1885
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
|
+
}>;
|
|
1886
2084
|
resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
|
|
1887
2085
|
data?: {
|
|
1888
2086
|
current_level?: number;
|
|
@@ -1894,7 +2092,28 @@ declare const userverification: {
|
|
|
1894
2092
|
};
|
|
1895
2093
|
|
|
1896
2094
|
declare const wishlist: {
|
|
1897
|
-
create: (payload: ApiRequest<"createWishlist">) => Promise<
|
|
2095
|
+
create: (payload: ApiRequest<"createWishlist">) => Promise<{
|
|
2096
|
+
data?: {
|
|
2097
|
+
wishlist_uid?: string;
|
|
2098
|
+
listing?: {
|
|
2099
|
+
uid?: string;
|
|
2100
|
+
listing_type?: string;
|
|
2101
|
+
vertical?: string;
|
|
2102
|
+
price?: string | null;
|
|
2103
|
+
state?: string;
|
|
2104
|
+
is_visible?: boolean;
|
|
2105
|
+
summary?: {
|
|
2106
|
+
property_type?: string | null;
|
|
2107
|
+
bedrooms?: string | null;
|
|
2108
|
+
bathrooms?: string | null;
|
|
2109
|
+
city?: string | null;
|
|
2110
|
+
availability?: string | null;
|
|
2111
|
+
};
|
|
2112
|
+
workflow?: unknown[];
|
|
2113
|
+
media?: unknown[];
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
}>;
|
|
1898
2117
|
remove: (params: ApiPathParams<"removeWishlist">) => Promise<{
|
|
1899
2118
|
message?: string;
|
|
1900
2119
|
event?: string | null;
|
|
@@ -1928,4 +2147,4 @@ declare const wishlist: {
|
|
|
1928
2147
|
}>;
|
|
1929
2148
|
};
|
|
1930
2149
|
|
|
1931
|
-
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -301,14 +301,27 @@ declare const admin: {
|
|
|
301
301
|
updated_at?: string;
|
|
302
302
|
};
|
|
303
303
|
}>;
|
|
304
|
-
getVerificationFlows: () => Promise<
|
|
304
|
+
getVerificationFlows: () => Promise<{
|
|
305
|
+
data?: {
|
|
306
|
+
user_type?: string;
|
|
307
|
+
user_type_class?: string;
|
|
308
|
+
layers?: {
|
|
309
|
+
order?: number;
|
|
310
|
+
is_required?: boolean;
|
|
311
|
+
}[];
|
|
312
|
+
}[];
|
|
313
|
+
}>;
|
|
305
314
|
createVerificationFlow: (payload: ApiRequest<"createVerificationFlow">) => Promise<{
|
|
306
315
|
data?: {
|
|
307
316
|
order?: number;
|
|
308
317
|
is_required?: boolean;
|
|
309
318
|
};
|
|
310
319
|
}>;
|
|
311
|
-
reorderVerificationFlow: (payload: ApiRequest<"reorderVerificationFlow">) => Promise<
|
|
320
|
+
reorderVerificationFlow: (payload: ApiRequest<"reorderVerificationFlow">) => Promise<{
|
|
321
|
+
message?: string;
|
|
322
|
+
event?: string | null;
|
|
323
|
+
data?: string | null;
|
|
324
|
+
}>;
|
|
312
325
|
getUserVerifications: (query?: Expand<ApiRequest<"getUserVerifications">>) => Promise<{
|
|
313
326
|
data?: {
|
|
314
327
|
id?: number;
|
|
@@ -524,7 +537,7 @@ declare const admin: {
|
|
|
524
537
|
}>;
|
|
525
538
|
createComplianceDefinition: (payload: ApiRequest<"createComplianceDefinition">) => Promise<{
|
|
526
539
|
data?: {
|
|
527
|
-
id?:
|
|
540
|
+
id?: string | null;
|
|
528
541
|
compliance_key?: string;
|
|
529
542
|
name?: string;
|
|
530
543
|
description?: string;
|
|
@@ -803,12 +816,37 @@ declare const appointment: {
|
|
|
803
816
|
};
|
|
804
817
|
|
|
805
818
|
declare const auth: {
|
|
806
|
-
loginUser: (payload: ApiRequest<"loginUser">) => Promise<
|
|
819
|
+
loginUser: (payload: ApiRequest<"loginUser">) => Promise<{
|
|
820
|
+
message?: string;
|
|
821
|
+
event?: string | null;
|
|
822
|
+
data?: {
|
|
823
|
+
access_token?: string | null;
|
|
824
|
+
token_type?: string;
|
|
825
|
+
expires_at?: string | null;
|
|
826
|
+
};
|
|
827
|
+
}>;
|
|
807
828
|
logoutUser: () => Promise<{
|
|
808
829
|
message?: string;
|
|
809
830
|
event?: string | null;
|
|
810
831
|
data?: string | null;
|
|
811
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
|
+
}>;
|
|
812
850
|
generateOTP: (payload: ApiRequest<"generateOTP">) => Promise<{
|
|
813
851
|
message?: string;
|
|
814
852
|
event?: string | null;
|
|
@@ -819,6 +857,13 @@ declare const auth: {
|
|
|
819
857
|
event?: string | null;
|
|
820
858
|
data?: string | null;
|
|
821
859
|
}>;
|
|
860
|
+
checkEmailStatus: () => Promise<{
|
|
861
|
+
message?: string;
|
|
862
|
+
event?: string | null;
|
|
863
|
+
data?: {
|
|
864
|
+
is_verified?: number;
|
|
865
|
+
};
|
|
866
|
+
}>;
|
|
822
867
|
};
|
|
823
868
|
|
|
824
869
|
declare const booking: {
|
|
@@ -888,10 +933,6 @@ declare const booking: {
|
|
|
888
933
|
}>;
|
|
889
934
|
};
|
|
890
935
|
|
|
891
|
-
declare const agent: {
|
|
892
|
-
getApiV1PortalAgentTest: () => Promise<unknown>;
|
|
893
|
-
};
|
|
894
|
-
|
|
895
936
|
declare const tenant: {
|
|
896
937
|
getApiV1PortalTenantTest: () => Promise<{
|
|
897
938
|
message?: string;
|
|
@@ -923,7 +964,17 @@ declare const github: {
|
|
|
923
964
|
};
|
|
924
965
|
|
|
925
966
|
declare const feature: {
|
|
926
|
-
|
|
967
|
+
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
968
|
+
data?: {
|
|
969
|
+
id?: number;
|
|
970
|
+
category_id?: number;
|
|
971
|
+
name?: string;
|
|
972
|
+
description?: string;
|
|
973
|
+
icon?: string;
|
|
974
|
+
is_active?: boolean;
|
|
975
|
+
is_filterable?: boolean;
|
|
976
|
+
};
|
|
977
|
+
}>;
|
|
927
978
|
};
|
|
928
979
|
|
|
929
980
|
declare const inspection: {
|
|
@@ -977,7 +1028,65 @@ declare const landlord: {
|
|
|
977
1028
|
address?: string;
|
|
978
1029
|
};
|
|
979
1030
|
}>;
|
|
980
|
-
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<
|
|
1031
|
+
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
|
|
1032
|
+
message?: string;
|
|
1033
|
+
event?: string | null;
|
|
1034
|
+
data?: {
|
|
1035
|
+
access_token?: string | null;
|
|
1036
|
+
token_type?: string;
|
|
1037
|
+
expires_at?: string | null;
|
|
1038
|
+
};
|
|
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
|
+
}>;
|
|
981
1090
|
createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
|
|
982
1091
|
data?: {
|
|
983
1092
|
uid?: string;
|
|
@@ -1223,6 +1332,40 @@ declare const landlord: {
|
|
|
1223
1332
|
media?: unknown[];
|
|
1224
1333
|
};
|
|
1225
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
|
+
}>;
|
|
1226
1369
|
getListingCompliance: (params: ApiPathParams<"getListingCompliance">) => Promise<{
|
|
1227
1370
|
data?: {
|
|
1228
1371
|
listing_uid?: string | null;
|
|
@@ -1542,14 +1685,14 @@ declare const conversations: {
|
|
|
1542
1685
|
}>;
|
|
1543
1686
|
listConversationMessages: (params: ApiPathParams<"listConversationMessages">) => Promise<{
|
|
1544
1687
|
data?: {
|
|
1545
|
-
id?:
|
|
1546
|
-
conversation_id?:
|
|
1547
|
-
body?: string;
|
|
1688
|
+
id?: string | null;
|
|
1689
|
+
conversation_id?: string | null;
|
|
1690
|
+
body?: string | null;
|
|
1548
1691
|
attachment_url?: string | null;
|
|
1549
|
-
is_system?:
|
|
1692
|
+
is_system?: string | null;
|
|
1550
1693
|
state?: string;
|
|
1551
1694
|
read_at?: string | null;
|
|
1552
|
-
created_at?: string;
|
|
1695
|
+
created_at?: string | null;
|
|
1553
1696
|
}[];
|
|
1554
1697
|
links?: {
|
|
1555
1698
|
first?: string;
|
|
@@ -1573,7 +1716,20 @@ declare const conversations: {
|
|
|
1573
1716
|
total?: number;
|
|
1574
1717
|
};
|
|
1575
1718
|
}>;
|
|
1576
|
-
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<
|
|
1719
|
+
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<{
|
|
1720
|
+
message?: string;
|
|
1721
|
+
event?: string | null;
|
|
1722
|
+
data?: {
|
|
1723
|
+
id?: string | null;
|
|
1724
|
+
conversation_id?: string | null;
|
|
1725
|
+
body?: string | null;
|
|
1726
|
+
attachment_url?: string | null;
|
|
1727
|
+
is_system?: string | null;
|
|
1728
|
+
state?: string;
|
|
1729
|
+
read_at?: string | null;
|
|
1730
|
+
created_at?: string | null;
|
|
1731
|
+
};
|
|
1732
|
+
}>;
|
|
1577
1733
|
markConversationAsRead: (params: ApiPathParams<"markConversationAsRead">) => Promise<{
|
|
1578
1734
|
message?: string;
|
|
1579
1735
|
event?: string | null;
|
|
@@ -1697,7 +1853,14 @@ declare const review: {
|
|
|
1697
1853
|
total?: number;
|
|
1698
1854
|
};
|
|
1699
1855
|
}>;
|
|
1700
|
-
ratingSummary: () => Promise<
|
|
1856
|
+
ratingSummary: () => Promise<{
|
|
1857
|
+
message?: string;
|
|
1858
|
+
event?: string | null;
|
|
1859
|
+
data?: {
|
|
1860
|
+
average_rating?: number;
|
|
1861
|
+
reviews_count?: number;
|
|
1862
|
+
};
|
|
1863
|
+
}>;
|
|
1701
1864
|
createListing: (payload: ApiRequest<"createListingReview">) => Promise<{
|
|
1702
1865
|
data?: {
|
|
1703
1866
|
id?: number;
|
|
@@ -1883,6 +2046,41 @@ declare const userverification: {
|
|
|
1883
2046
|
last_calculated_at?: string;
|
|
1884
2047
|
};
|
|
1885
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
|
+
}>;
|
|
1886
2084
|
resubmit: (params: ApiPathParams<"resubmitUserVerification">, payload: ApiRequest<"resubmitUserVerification">) => Promise<{
|
|
1887
2085
|
data?: {
|
|
1888
2086
|
current_level?: number;
|
|
@@ -1894,7 +2092,28 @@ declare const userverification: {
|
|
|
1894
2092
|
};
|
|
1895
2093
|
|
|
1896
2094
|
declare const wishlist: {
|
|
1897
|
-
create: (payload: ApiRequest<"createWishlist">) => Promise<
|
|
2095
|
+
create: (payload: ApiRequest<"createWishlist">) => Promise<{
|
|
2096
|
+
data?: {
|
|
2097
|
+
wishlist_uid?: string;
|
|
2098
|
+
listing?: {
|
|
2099
|
+
uid?: string;
|
|
2100
|
+
listing_type?: string;
|
|
2101
|
+
vertical?: string;
|
|
2102
|
+
price?: string | null;
|
|
2103
|
+
state?: string;
|
|
2104
|
+
is_visible?: boolean;
|
|
2105
|
+
summary?: {
|
|
2106
|
+
property_type?: string | null;
|
|
2107
|
+
bedrooms?: string | null;
|
|
2108
|
+
bathrooms?: string | null;
|
|
2109
|
+
city?: string | null;
|
|
2110
|
+
availability?: string | null;
|
|
2111
|
+
};
|
|
2112
|
+
workflow?: unknown[];
|
|
2113
|
+
media?: unknown[];
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
}>;
|
|
1898
2117
|
remove: (params: ApiPathParams<"removeWishlist">) => Promise<{
|
|
1899
2118
|
message?: string;
|
|
1900
2119
|
event?: string | null;
|
|
@@ -1928,4 +2147,4 @@ declare const wishlist: {
|
|
|
1928
2147
|
}>;
|
|
1929
2148
|
};
|
|
1930
2149
|
|
|
1931
|
-
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,6 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
ApiError: () => ApiError,
|
|
24
24
|
admin: () => admin,
|
|
25
|
-
agent: () => agent,
|
|
26
25
|
api: () => api,
|
|
27
26
|
appointment: () => appointment,
|
|
28
27
|
auth: () => auth,
|
|
@@ -320,11 +319,23 @@ var auth = {
|
|
|
320
319
|
logoutUser: () => {
|
|
321
320
|
return api.post("logoutUser", "/api/v1/public/auth/logout");
|
|
322
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
|
+
},
|
|
323
331
|
generateOTP: (payload) => {
|
|
324
332
|
return api.post("generateOTP", "/api/v1/public/auth/send-otp", payload);
|
|
325
333
|
},
|
|
326
334
|
verifyOTP: (payload) => {
|
|
327
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");
|
|
328
339
|
}
|
|
329
340
|
};
|
|
330
341
|
|
|
@@ -344,13 +355,6 @@ var booking = {
|
|
|
344
355
|
}
|
|
345
356
|
};
|
|
346
357
|
|
|
347
|
-
// src/generated/agent.ts
|
|
348
|
-
var agent = {
|
|
349
|
-
getApiV1PortalAgentTest: () => {
|
|
350
|
-
return api.get("getApiV1PortalAgentTest", "/api/v1/portal/agent/test");
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
|
|
354
358
|
// src/generated/tenant.ts
|
|
355
359
|
var tenant = {
|
|
356
360
|
getApiV1PortalTenantTest: () => {
|
|
@@ -411,8 +415,8 @@ var github = {
|
|
|
411
415
|
|
|
412
416
|
// src/generated/feature.ts
|
|
413
417
|
var feature = {
|
|
414
|
-
|
|
415
|
-
return api.get("
|
|
418
|
+
get: (query) => {
|
|
419
|
+
return api.get("getFeature", "/api/v1/public/feature/fetch-all", query);
|
|
416
420
|
}
|
|
417
421
|
};
|
|
418
422
|
|
|
@@ -431,6 +435,9 @@ var landlord = {
|
|
|
431
435
|
basicLogin: (payload) => {
|
|
432
436
|
return api.post("basicLoginLandlord", "/api/v1/portal/landlord/login", payload);
|
|
433
437
|
},
|
|
438
|
+
dashboardStats: () => {
|
|
439
|
+
return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
|
|
440
|
+
},
|
|
434
441
|
createListingDraft: (payload) => {
|
|
435
442
|
return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
|
|
436
443
|
},
|
|
@@ -479,6 +486,9 @@ var landlord = {
|
|
|
479
486
|
submitListing: (params) => {
|
|
480
487
|
return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
|
|
481
488
|
},
|
|
489
|
+
propertyStandardsOverview: () => {
|
|
490
|
+
return api.get("propertyStandardsOverview", "/api/v1/portal/landlord/listing/compliance/overview");
|
|
491
|
+
},
|
|
482
492
|
getListingCompliance: (params) => {
|
|
483
493
|
return api.get("getListingCompliance", `/api/v1/portal/landlord/listing/compliance/fetch/${params.listing_uid}`);
|
|
484
494
|
},
|
|
@@ -643,6 +653,9 @@ var userverification = {
|
|
|
643
653
|
fetchFlow: () => {
|
|
644
654
|
return api.get("fetchFlowUserVerification", "/api/v1/public/userverification/fetch-flow");
|
|
645
655
|
},
|
|
656
|
+
dashboardCard: () => {
|
|
657
|
+
return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
|
|
658
|
+
},
|
|
646
659
|
resubmit: (params, payload) => {
|
|
647
660
|
return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
|
|
648
661
|
}
|
|
@@ -664,7 +677,6 @@ var wishlist = {
|
|
|
664
677
|
0 && (module.exports = {
|
|
665
678
|
ApiError,
|
|
666
679
|
admin,
|
|
667
|
-
agent,
|
|
668
680
|
api,
|
|
669
681
|
appointment,
|
|
670
682
|
auth,
|
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
|
|
|
@@ -297,13 +309,6 @@ var booking = {
|
|
|
297
309
|
}
|
|
298
310
|
};
|
|
299
311
|
|
|
300
|
-
// src/generated/agent.ts
|
|
301
|
-
var agent = {
|
|
302
|
-
getApiV1PortalAgentTest: () => {
|
|
303
|
-
return api.get("getApiV1PortalAgentTest", "/api/v1/portal/agent/test");
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
|
|
307
312
|
// src/generated/tenant.ts
|
|
308
313
|
var tenant = {
|
|
309
314
|
getApiV1PortalTenantTest: () => {
|
|
@@ -364,8 +369,8 @@ var github = {
|
|
|
364
369
|
|
|
365
370
|
// src/generated/feature.ts
|
|
366
371
|
var feature = {
|
|
367
|
-
|
|
368
|
-
return api.get("
|
|
372
|
+
get: (query) => {
|
|
373
|
+
return api.get("getFeature", "/api/v1/public/feature/fetch-all", query);
|
|
369
374
|
}
|
|
370
375
|
};
|
|
371
376
|
|
|
@@ -384,6 +389,9 @@ var landlord = {
|
|
|
384
389
|
basicLogin: (payload) => {
|
|
385
390
|
return api.post("basicLoginLandlord", "/api/v1/portal/landlord/login", payload);
|
|
386
391
|
},
|
|
392
|
+
dashboardStats: () => {
|
|
393
|
+
return api.get("dashboardStats", "/api/v1/portal/landlord/dashboard/stats");
|
|
394
|
+
},
|
|
387
395
|
createListingDraft: (payload) => {
|
|
388
396
|
return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
|
|
389
397
|
},
|
|
@@ -432,6 +440,9 @@ var landlord = {
|
|
|
432
440
|
submitListing: (params) => {
|
|
433
441
|
return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
|
|
434
442
|
},
|
|
443
|
+
propertyStandardsOverview: () => {
|
|
444
|
+
return api.get("propertyStandardsOverview", "/api/v1/portal/landlord/listing/compliance/overview");
|
|
445
|
+
},
|
|
435
446
|
getListingCompliance: (params) => {
|
|
436
447
|
return api.get("getListingCompliance", `/api/v1/portal/landlord/listing/compliance/fetch/${params.listing_uid}`);
|
|
437
448
|
},
|
|
@@ -596,6 +607,9 @@ var userverification = {
|
|
|
596
607
|
fetchFlow: () => {
|
|
597
608
|
return api.get("fetchFlowUserVerification", "/api/v1/public/userverification/fetch-flow");
|
|
598
609
|
},
|
|
610
|
+
dashboardCard: () => {
|
|
611
|
+
return api.get("dashboardCardUserVerification", "/api/v1/public/userverification/summary");
|
|
612
|
+
},
|
|
599
613
|
resubmit: (params, payload) => {
|
|
600
614
|
return api.post("resubmitUserVerification", `/api/v1/public/userverification/${params.layerKey}/retry`, payload);
|
|
601
615
|
}
|
|
@@ -616,7 +630,6 @@ var wishlist = {
|
|
|
616
630
|
export {
|
|
617
631
|
ApiError,
|
|
618
632
|
admin,
|
|
619
|
-
agent,
|
|
620
633
|
api,
|
|
621
634
|
appointment,
|
|
622
635
|
auth,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justins-home/api-services",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@justins-home/http-client": "1.1.
|
|
20
|
-
"@justins-home/types": "1.1.
|
|
19
|
+
"@justins-home/http-client": "1.1.1",
|
|
20
|
+
"@justins-home/types": "1.1.1"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"lint": "eslint src",
|
|
27
|
-
"check-types": "tsc --noEmit -p
|
|
27
|
+
"check-types": "tsc --noEmit -p tsconfig.json",
|
|
28
28
|
"build": "tsup src/index.ts --format esm,cjs --dts --tsconfig tsconfig.json",
|
|
29
29
|
"test": "vitest"
|
|
30
30
|
}
|