@justins-home/api-services 1.2.28 → 1.2.30
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 +52 -12
- package/dist/index.d.ts +52 -12
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -47,6 +47,10 @@ type RequestContent<T extends OperationId> = operations[T] extends {
|
|
|
47
47
|
requestBody: {
|
|
48
48
|
content: infer C;
|
|
49
49
|
};
|
|
50
|
+
} ? C : operations[T] extends {
|
|
51
|
+
requestBody?: {
|
|
52
|
+
content: infer C;
|
|
53
|
+
};
|
|
50
54
|
} ? C : never;
|
|
51
55
|
type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
52
56
|
requestBody: {
|
|
@@ -54,6 +58,12 @@ type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
|
54
58
|
'application/json': infer R;
|
|
55
59
|
};
|
|
56
60
|
};
|
|
61
|
+
} ? R : operations[T] extends {
|
|
62
|
+
requestBody?: {
|
|
63
|
+
content: {
|
|
64
|
+
'application/json': infer R;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
57
67
|
} ? R : RequestContent<T> extends {
|
|
58
68
|
'multipart/form-data': infer R;
|
|
59
69
|
} ? R | MultipartPayload : operations[T] extends {
|
|
@@ -1129,7 +1139,28 @@ declare const admin: {
|
|
|
1129
1139
|
media?: unknown[];
|
|
1130
1140
|
};
|
|
1131
1141
|
}>;
|
|
1132
|
-
getFeatures: () => Promise<
|
|
1142
|
+
getFeatures: (payload: ApiRequest<"getFeaturesAdmin">) => Promise<{
|
|
1143
|
+
message?: string;
|
|
1144
|
+
event?: string | null;
|
|
1145
|
+
data?: {
|
|
1146
|
+
group?: {
|
|
1147
|
+
id?: number;
|
|
1148
|
+
name?: string;
|
|
1149
|
+
description?: string;
|
|
1150
|
+
display_order?: number;
|
|
1151
|
+
applicable_verticals?: string[];
|
|
1152
|
+
};
|
|
1153
|
+
features?: {
|
|
1154
|
+
id?: number;
|
|
1155
|
+
category_id?: number;
|
|
1156
|
+
name?: string;
|
|
1157
|
+
description?: string;
|
|
1158
|
+
icon?: string | null;
|
|
1159
|
+
is_active?: boolean;
|
|
1160
|
+
is_filterable?: boolean;
|
|
1161
|
+
}[];
|
|
1162
|
+
}[];
|
|
1163
|
+
}>;
|
|
1133
1164
|
createFeature: (payload: ApiRequest<"createFeature">) => Promise<{
|
|
1134
1165
|
data?: {
|
|
1135
1166
|
id?: number;
|
|
@@ -2022,15 +2053,26 @@ declare const github: {
|
|
|
2022
2053
|
|
|
2023
2054
|
declare const feature: {
|
|
2024
2055
|
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
2056
|
+
message?: string;
|
|
2057
|
+
event?: string | null;
|
|
2025
2058
|
data?: {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2059
|
+
group?: {
|
|
2060
|
+
id?: number;
|
|
2061
|
+
name?: string;
|
|
2062
|
+
description?: string;
|
|
2063
|
+
display_order?: number;
|
|
2064
|
+
applicable_verticals?: string[];
|
|
2065
|
+
};
|
|
2066
|
+
features?: {
|
|
2067
|
+
id?: number;
|
|
2068
|
+
category_id?: number;
|
|
2069
|
+
name?: string;
|
|
2070
|
+
description?: string;
|
|
2071
|
+
icon?: string | null;
|
|
2072
|
+
is_active?: boolean;
|
|
2073
|
+
is_filterable?: boolean;
|
|
2074
|
+
}[];
|
|
2075
|
+
}[];
|
|
2034
2076
|
}>;
|
|
2035
2077
|
};
|
|
2036
2078
|
|
|
@@ -2702,9 +2744,7 @@ declare const listings: {
|
|
|
2702
2744
|
price?: string | null;
|
|
2703
2745
|
state?: string;
|
|
2704
2746
|
is_visible?: boolean;
|
|
2705
|
-
summary?:
|
|
2706
|
-
availability?: string | null;
|
|
2707
|
-
};
|
|
2747
|
+
summary?: unknown[];
|
|
2708
2748
|
workflow?: unknown[];
|
|
2709
2749
|
media?: unknown[];
|
|
2710
2750
|
}[];
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ type RequestContent<T extends OperationId> = operations[T] extends {
|
|
|
47
47
|
requestBody: {
|
|
48
48
|
content: infer C;
|
|
49
49
|
};
|
|
50
|
+
} ? C : operations[T] extends {
|
|
51
|
+
requestBody?: {
|
|
52
|
+
content: infer C;
|
|
53
|
+
};
|
|
50
54
|
} ? C : never;
|
|
51
55
|
type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
52
56
|
requestBody: {
|
|
@@ -54,6 +58,12 @@ type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
|
54
58
|
'application/json': infer R;
|
|
55
59
|
};
|
|
56
60
|
};
|
|
61
|
+
} ? R : operations[T] extends {
|
|
62
|
+
requestBody?: {
|
|
63
|
+
content: {
|
|
64
|
+
'application/json': infer R;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
57
67
|
} ? R : RequestContent<T> extends {
|
|
58
68
|
'multipart/form-data': infer R;
|
|
59
69
|
} ? R | MultipartPayload : operations[T] extends {
|
|
@@ -1129,7 +1139,28 @@ declare const admin: {
|
|
|
1129
1139
|
media?: unknown[];
|
|
1130
1140
|
};
|
|
1131
1141
|
}>;
|
|
1132
|
-
getFeatures: () => Promise<
|
|
1142
|
+
getFeatures: (payload: ApiRequest<"getFeaturesAdmin">) => Promise<{
|
|
1143
|
+
message?: string;
|
|
1144
|
+
event?: string | null;
|
|
1145
|
+
data?: {
|
|
1146
|
+
group?: {
|
|
1147
|
+
id?: number;
|
|
1148
|
+
name?: string;
|
|
1149
|
+
description?: string;
|
|
1150
|
+
display_order?: number;
|
|
1151
|
+
applicable_verticals?: string[];
|
|
1152
|
+
};
|
|
1153
|
+
features?: {
|
|
1154
|
+
id?: number;
|
|
1155
|
+
category_id?: number;
|
|
1156
|
+
name?: string;
|
|
1157
|
+
description?: string;
|
|
1158
|
+
icon?: string | null;
|
|
1159
|
+
is_active?: boolean;
|
|
1160
|
+
is_filterable?: boolean;
|
|
1161
|
+
}[];
|
|
1162
|
+
}[];
|
|
1163
|
+
}>;
|
|
1133
1164
|
createFeature: (payload: ApiRequest<"createFeature">) => Promise<{
|
|
1134
1165
|
data?: {
|
|
1135
1166
|
id?: number;
|
|
@@ -2022,15 +2053,26 @@ declare const github: {
|
|
|
2022
2053
|
|
|
2023
2054
|
declare const feature: {
|
|
2024
2055
|
get: (query?: Expand<ApiRequest<"getFeature">>) => Promise<{
|
|
2056
|
+
message?: string;
|
|
2057
|
+
event?: string | null;
|
|
2025
2058
|
data?: {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2059
|
+
group?: {
|
|
2060
|
+
id?: number;
|
|
2061
|
+
name?: string;
|
|
2062
|
+
description?: string;
|
|
2063
|
+
display_order?: number;
|
|
2064
|
+
applicable_verticals?: string[];
|
|
2065
|
+
};
|
|
2066
|
+
features?: {
|
|
2067
|
+
id?: number;
|
|
2068
|
+
category_id?: number;
|
|
2069
|
+
name?: string;
|
|
2070
|
+
description?: string;
|
|
2071
|
+
icon?: string | null;
|
|
2072
|
+
is_active?: boolean;
|
|
2073
|
+
is_filterable?: boolean;
|
|
2074
|
+
}[];
|
|
2075
|
+
}[];
|
|
2034
2076
|
}>;
|
|
2035
2077
|
};
|
|
2036
2078
|
|
|
@@ -2702,9 +2744,7 @@ declare const listings: {
|
|
|
2702
2744
|
price?: string | null;
|
|
2703
2745
|
state?: string;
|
|
2704
2746
|
is_visible?: boolean;
|
|
2705
|
-
summary?:
|
|
2706
|
-
availability?: string | null;
|
|
2707
|
-
};
|
|
2747
|
+
summary?: unknown[];
|
|
2708
2748
|
workflow?: unknown[];
|
|
2709
2749
|
media?: unknown[];
|
|
2710
2750
|
}[];
|
package/dist/index.js
CHANGED
|
@@ -304,8 +304,8 @@ var admin = {
|
|
|
304
304
|
republishListing: (params) => {
|
|
305
305
|
return api.post("republishListing", `/api/v1/portal/admin/listing/${params.listing_uid}/republish`);
|
|
306
306
|
},
|
|
307
|
-
getFeatures: () => {
|
|
308
|
-
return api.post("getFeaturesAdmin", "/api/v1/portal/admin/feature/fetch-all");
|
|
307
|
+
getFeatures: (payload) => {
|
|
308
|
+
return api.post("getFeaturesAdmin", "/api/v1/portal/admin/feature/fetch-all", payload);
|
|
309
309
|
},
|
|
310
310
|
createFeature: (payload) => {
|
|
311
311
|
return api.post("createFeature", "/api/v1/portal/admin/feature/create", payload);
|
package/dist/index.mjs
CHANGED
|
@@ -257,8 +257,8 @@ var admin = {
|
|
|
257
257
|
republishListing: (params) => {
|
|
258
258
|
return api.post("republishListing", `/api/v1/portal/admin/listing/${params.listing_uid}/republish`);
|
|
259
259
|
},
|
|
260
|
-
getFeatures: () => {
|
|
261
|
-
return api.post("getFeaturesAdmin", "/api/v1/portal/admin/feature/fetch-all");
|
|
260
|
+
getFeatures: (payload) => {
|
|
261
|
+
return api.post("getFeaturesAdmin", "/api/v1/portal/admin/feature/fetch-all", payload);
|
|
262
262
|
},
|
|
263
263
|
createFeature: (payload) => {
|
|
264
264
|
return api.post("createFeature", "/api/v1/portal/admin/feature/create", payload);
|
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.30",
|
|
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.
|
|
20
|
-
"@justins-home/types": "1.1.
|
|
19
|
+
"@justins-home/http-client": "1.1.24",
|
|
20
|
+
"@justins-home/types": "1.1.24"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|