@justins-home/api-services 1.2.0 → 1.2.1
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 +89 -13
- package/dist/index.d.ts +89 -13
- package/dist/index.js +2 -11
- package/dist/index.mjs +2 -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;
|
|
@@ -803,7 +816,15 @@ 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;
|
|
@@ -888,10 +909,6 @@ declare const booking: {
|
|
|
888
909
|
}>;
|
|
889
910
|
};
|
|
890
911
|
|
|
891
|
-
declare const agent: {
|
|
892
|
-
getApiV1PortalAgentTest: () => Promise<unknown>;
|
|
893
|
-
};
|
|
894
|
-
|
|
895
912
|
declare const tenant: {
|
|
896
913
|
getApiV1PortalTenantTest: () => Promise<{
|
|
897
914
|
message?: string;
|
|
@@ -923,7 +940,17 @@ declare const github: {
|
|
|
923
940
|
};
|
|
924
941
|
|
|
925
942
|
declare const feature: {
|
|
926
|
-
|
|
943
|
+
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
944
|
+
data?: {
|
|
945
|
+
id?: number;
|
|
946
|
+
category_id?: number;
|
|
947
|
+
name?: string;
|
|
948
|
+
description?: string;
|
|
949
|
+
icon?: string;
|
|
950
|
+
is_active?: boolean;
|
|
951
|
+
is_filterable?: boolean;
|
|
952
|
+
};
|
|
953
|
+
}>;
|
|
927
954
|
};
|
|
928
955
|
|
|
929
956
|
declare const inspection: {
|
|
@@ -977,7 +1004,15 @@ declare const landlord: {
|
|
|
977
1004
|
address?: string;
|
|
978
1005
|
};
|
|
979
1006
|
}>;
|
|
980
|
-
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<
|
|
1007
|
+
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
|
|
1008
|
+
message?: string;
|
|
1009
|
+
event?: string | null;
|
|
1010
|
+
data?: {
|
|
1011
|
+
access_token?: string | null;
|
|
1012
|
+
token_type?: string;
|
|
1013
|
+
expires_at?: string | null;
|
|
1014
|
+
};
|
|
1015
|
+
}>;
|
|
981
1016
|
createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
|
|
982
1017
|
data?: {
|
|
983
1018
|
uid?: string;
|
|
@@ -1573,7 +1608,20 @@ declare const conversations: {
|
|
|
1573
1608
|
total?: number;
|
|
1574
1609
|
};
|
|
1575
1610
|
}>;
|
|
1576
|
-
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<
|
|
1611
|
+
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<{
|
|
1612
|
+
message?: string;
|
|
1613
|
+
event?: string | null;
|
|
1614
|
+
data?: {
|
|
1615
|
+
id?: string | null;
|
|
1616
|
+
conversation_id?: string | null;
|
|
1617
|
+
body?: string | null;
|
|
1618
|
+
attachment_url?: string | null;
|
|
1619
|
+
is_system?: string | null;
|
|
1620
|
+
state?: string;
|
|
1621
|
+
read_at?: string | null;
|
|
1622
|
+
created_at?: string | null;
|
|
1623
|
+
};
|
|
1624
|
+
}>;
|
|
1577
1625
|
markConversationAsRead: (params: ApiPathParams<"markConversationAsRead">) => Promise<{
|
|
1578
1626
|
message?: string;
|
|
1579
1627
|
event?: string | null;
|
|
@@ -1697,7 +1745,14 @@ declare const review: {
|
|
|
1697
1745
|
total?: number;
|
|
1698
1746
|
};
|
|
1699
1747
|
}>;
|
|
1700
|
-
ratingSummary: () => Promise<
|
|
1748
|
+
ratingSummary: () => Promise<{
|
|
1749
|
+
message?: string;
|
|
1750
|
+
event?: string | null;
|
|
1751
|
+
data?: {
|
|
1752
|
+
average_rating?: number;
|
|
1753
|
+
reviews_count?: number;
|
|
1754
|
+
};
|
|
1755
|
+
}>;
|
|
1701
1756
|
createListing: (payload: ApiRequest<"createListingReview">) => Promise<{
|
|
1702
1757
|
data?: {
|
|
1703
1758
|
id?: number;
|
|
@@ -1894,7 +1949,28 @@ declare const userverification: {
|
|
|
1894
1949
|
};
|
|
1895
1950
|
|
|
1896
1951
|
declare const wishlist: {
|
|
1897
|
-
create: (payload: ApiRequest<"createWishlist">) => Promise<
|
|
1952
|
+
create: (payload: ApiRequest<"createWishlist">) => Promise<{
|
|
1953
|
+
data?: {
|
|
1954
|
+
wishlist_uid?: string;
|
|
1955
|
+
listing?: {
|
|
1956
|
+
uid?: string;
|
|
1957
|
+
listing_type?: string;
|
|
1958
|
+
vertical?: string;
|
|
1959
|
+
price?: string | null;
|
|
1960
|
+
state?: string;
|
|
1961
|
+
is_visible?: boolean;
|
|
1962
|
+
summary?: {
|
|
1963
|
+
property_type?: string | null;
|
|
1964
|
+
bedrooms?: string | null;
|
|
1965
|
+
bathrooms?: string | null;
|
|
1966
|
+
city?: string | null;
|
|
1967
|
+
availability?: string | null;
|
|
1968
|
+
};
|
|
1969
|
+
workflow?: unknown[];
|
|
1970
|
+
media?: unknown[];
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
}>;
|
|
1898
1974
|
remove: (params: ApiPathParams<"removeWishlist">) => Promise<{
|
|
1899
1975
|
message?: string;
|
|
1900
1976
|
event?: string | null;
|
|
@@ -1928,4 +2004,4 @@ declare const wishlist: {
|
|
|
1928
2004
|
}>;
|
|
1929
2005
|
};
|
|
1930
2006
|
|
|
1931
|
-
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin,
|
|
2007
|
+
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, userverification, wishlist };
|
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;
|
|
@@ -803,7 +816,15 @@ 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;
|
|
@@ -888,10 +909,6 @@ declare const booking: {
|
|
|
888
909
|
}>;
|
|
889
910
|
};
|
|
890
911
|
|
|
891
|
-
declare const agent: {
|
|
892
|
-
getApiV1PortalAgentTest: () => Promise<unknown>;
|
|
893
|
-
};
|
|
894
|
-
|
|
895
912
|
declare const tenant: {
|
|
896
913
|
getApiV1PortalTenantTest: () => Promise<{
|
|
897
914
|
message?: string;
|
|
@@ -923,7 +940,17 @@ declare const github: {
|
|
|
923
940
|
};
|
|
924
941
|
|
|
925
942
|
declare const feature: {
|
|
926
|
-
|
|
943
|
+
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
944
|
+
data?: {
|
|
945
|
+
id?: number;
|
|
946
|
+
category_id?: number;
|
|
947
|
+
name?: string;
|
|
948
|
+
description?: string;
|
|
949
|
+
icon?: string;
|
|
950
|
+
is_active?: boolean;
|
|
951
|
+
is_filterable?: boolean;
|
|
952
|
+
};
|
|
953
|
+
}>;
|
|
927
954
|
};
|
|
928
955
|
|
|
929
956
|
declare const inspection: {
|
|
@@ -977,7 +1004,15 @@ declare const landlord: {
|
|
|
977
1004
|
address?: string;
|
|
978
1005
|
};
|
|
979
1006
|
}>;
|
|
980
|
-
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<
|
|
1007
|
+
basicLogin: (payload: ApiRequest<"basicLoginLandlord">) => Promise<{
|
|
1008
|
+
message?: string;
|
|
1009
|
+
event?: string | null;
|
|
1010
|
+
data?: {
|
|
1011
|
+
access_token?: string | null;
|
|
1012
|
+
token_type?: string;
|
|
1013
|
+
expires_at?: string | null;
|
|
1014
|
+
};
|
|
1015
|
+
}>;
|
|
981
1016
|
createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
|
|
982
1017
|
data?: {
|
|
983
1018
|
uid?: string;
|
|
@@ -1573,7 +1608,20 @@ declare const conversations: {
|
|
|
1573
1608
|
total?: number;
|
|
1574
1609
|
};
|
|
1575
1610
|
}>;
|
|
1576
|
-
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<
|
|
1611
|
+
sendConversationMessage: (payload: ApiRequest<"sendConversationMessage">) => Promise<{
|
|
1612
|
+
message?: string;
|
|
1613
|
+
event?: string | null;
|
|
1614
|
+
data?: {
|
|
1615
|
+
id?: string | null;
|
|
1616
|
+
conversation_id?: string | null;
|
|
1617
|
+
body?: string | null;
|
|
1618
|
+
attachment_url?: string | null;
|
|
1619
|
+
is_system?: string | null;
|
|
1620
|
+
state?: string;
|
|
1621
|
+
read_at?: string | null;
|
|
1622
|
+
created_at?: string | null;
|
|
1623
|
+
};
|
|
1624
|
+
}>;
|
|
1577
1625
|
markConversationAsRead: (params: ApiPathParams<"markConversationAsRead">) => Promise<{
|
|
1578
1626
|
message?: string;
|
|
1579
1627
|
event?: string | null;
|
|
@@ -1697,7 +1745,14 @@ declare const review: {
|
|
|
1697
1745
|
total?: number;
|
|
1698
1746
|
};
|
|
1699
1747
|
}>;
|
|
1700
|
-
ratingSummary: () => Promise<
|
|
1748
|
+
ratingSummary: () => Promise<{
|
|
1749
|
+
message?: string;
|
|
1750
|
+
event?: string | null;
|
|
1751
|
+
data?: {
|
|
1752
|
+
average_rating?: number;
|
|
1753
|
+
reviews_count?: number;
|
|
1754
|
+
};
|
|
1755
|
+
}>;
|
|
1701
1756
|
createListing: (payload: ApiRequest<"createListingReview">) => Promise<{
|
|
1702
1757
|
data?: {
|
|
1703
1758
|
id?: number;
|
|
@@ -1894,7 +1949,28 @@ declare const userverification: {
|
|
|
1894
1949
|
};
|
|
1895
1950
|
|
|
1896
1951
|
declare const wishlist: {
|
|
1897
|
-
create: (payload: ApiRequest<"createWishlist">) => Promise<
|
|
1952
|
+
create: (payload: ApiRequest<"createWishlist">) => Promise<{
|
|
1953
|
+
data?: {
|
|
1954
|
+
wishlist_uid?: string;
|
|
1955
|
+
listing?: {
|
|
1956
|
+
uid?: string;
|
|
1957
|
+
listing_type?: string;
|
|
1958
|
+
vertical?: string;
|
|
1959
|
+
price?: string | null;
|
|
1960
|
+
state?: string;
|
|
1961
|
+
is_visible?: boolean;
|
|
1962
|
+
summary?: {
|
|
1963
|
+
property_type?: string | null;
|
|
1964
|
+
bedrooms?: string | null;
|
|
1965
|
+
bathrooms?: string | null;
|
|
1966
|
+
city?: string | null;
|
|
1967
|
+
availability?: string | null;
|
|
1968
|
+
};
|
|
1969
|
+
workflow?: unknown[];
|
|
1970
|
+
media?: unknown[];
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
}>;
|
|
1898
1974
|
remove: (params: ApiPathParams<"removeWishlist">) => Promise<{
|
|
1899
1975
|
message?: string;
|
|
1900
1976
|
event?: string | null;
|
|
@@ -1928,4 +2004,4 @@ declare const wishlist: {
|
|
|
1928
2004
|
}>;
|
|
1929
2005
|
};
|
|
1930
2006
|
|
|
1931
|
-
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin,
|
|
2007
|
+
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, userverification, wishlist };
|
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,
|
|
@@ -344,13 +343,6 @@ var booking = {
|
|
|
344
343
|
}
|
|
345
344
|
};
|
|
346
345
|
|
|
347
|
-
// src/generated/agent.ts
|
|
348
|
-
var agent = {
|
|
349
|
-
getApiV1PortalAgentTest: () => {
|
|
350
|
-
return api.get("getApiV1PortalAgentTest", "/api/v1/portal/agent/test");
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
|
|
354
346
|
// src/generated/tenant.ts
|
|
355
347
|
var tenant = {
|
|
356
348
|
getApiV1PortalTenantTest: () => {
|
|
@@ -411,8 +403,8 @@ var github = {
|
|
|
411
403
|
|
|
412
404
|
// src/generated/feature.ts
|
|
413
405
|
var feature = {
|
|
414
|
-
|
|
415
|
-
return api.get("
|
|
406
|
+
get: (query) => {
|
|
407
|
+
return api.get("getFeature", "/api/v1/public/feature/fetch-all", query);
|
|
416
408
|
}
|
|
417
409
|
};
|
|
418
410
|
|
|
@@ -664,7 +656,6 @@ var wishlist = {
|
|
|
664
656
|
0 && (module.exports = {
|
|
665
657
|
ApiError,
|
|
666
658
|
admin,
|
|
667
|
-
agent,
|
|
668
659
|
api,
|
|
669
660
|
appointment,
|
|
670
661
|
auth,
|
package/dist/index.mjs
CHANGED
|
@@ -297,13 +297,6 @@ var booking = {
|
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
299
|
|
|
300
|
-
// src/generated/agent.ts
|
|
301
|
-
var agent = {
|
|
302
|
-
getApiV1PortalAgentTest: () => {
|
|
303
|
-
return api.get("getApiV1PortalAgentTest", "/api/v1/portal/agent/test");
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
|
|
307
300
|
// src/generated/tenant.ts
|
|
308
301
|
var tenant = {
|
|
309
302
|
getApiV1PortalTenantTest: () => {
|
|
@@ -364,8 +357,8 @@ var github = {
|
|
|
364
357
|
|
|
365
358
|
// src/generated/feature.ts
|
|
366
359
|
var feature = {
|
|
367
|
-
|
|
368
|
-
return api.get("
|
|
360
|
+
get: (query) => {
|
|
361
|
+
return api.get("getFeature", "/api/v1/public/feature/fetch-all", query);
|
|
369
362
|
}
|
|
370
363
|
};
|
|
371
364
|
|
|
@@ -616,7 +609,6 @@ var wishlist = {
|
|
|
616
609
|
export {
|
|
617
610
|
ApiError,
|
|
618
611
|
admin,
|
|
619
|
-
agent,
|
|
620
612
|
api,
|
|
621
613
|
appointment,
|
|
622
614
|
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.1",
|
|
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
|
}
|