@justins-home/api-services 1.2.25 → 1.2.26
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 +5 -3
- package/dist/index.d.ts +5 -3
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ declare class ApiError<T = unknown> extends Error {
|
|
|
8
8
|
constructor(message: string, status?: number, data?: T, operation?: string);
|
|
9
9
|
}
|
|
10
10
|
type OperationId$1 = keyof operations;
|
|
11
|
+
type MultipartPayload$1 = FormData;
|
|
11
12
|
type RequestContent$1<T extends OperationId$1> = operations[T] extends {
|
|
12
13
|
requestBody: {
|
|
13
14
|
content: infer C;
|
|
@@ -21,7 +22,7 @@ type ApiRequest$1<T extends OperationId$1> = operations[T] extends {
|
|
|
21
22
|
};
|
|
22
23
|
} ? R : RequestContent$1<T> extends {
|
|
23
24
|
'multipart/form-data': infer R;
|
|
24
|
-
} ? R : operations[T] extends {
|
|
25
|
+
} ? R | MultipartPayload$1 : operations[T] extends {
|
|
25
26
|
parameters: {
|
|
26
27
|
query?: infer Q;
|
|
27
28
|
};
|
|
@@ -41,6 +42,7 @@ declare const api: {
|
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
type OperationId = keyof operations;
|
|
45
|
+
type MultipartPayload = FormData;
|
|
44
46
|
type RequestContent<T extends OperationId> = operations[T] extends {
|
|
45
47
|
requestBody: {
|
|
46
48
|
content: infer C;
|
|
@@ -54,7 +56,7 @@ type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
|
54
56
|
};
|
|
55
57
|
} ? R : RequestContent<T> extends {
|
|
56
58
|
'multipart/form-data': infer R;
|
|
57
|
-
} ? R : operations[T] extends {
|
|
59
|
+
} ? R | MultipartPayload : operations[T] extends {
|
|
58
60
|
parameters: {
|
|
59
61
|
query?: infer Q;
|
|
60
62
|
};
|
|
@@ -3479,4 +3481,4 @@ declare const wishlist: {
|
|
|
3479
3481
|
}>;
|
|
3480
3482
|
};
|
|
3481
3483
|
|
|
3482
|
-
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, user, userverification, wishlist };
|
|
3484
|
+
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type MultipartPayload, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, user, userverification, wishlist };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare class ApiError<T = unknown> extends Error {
|
|
|
8
8
|
constructor(message: string, status?: number, data?: T, operation?: string);
|
|
9
9
|
}
|
|
10
10
|
type OperationId$1 = keyof operations;
|
|
11
|
+
type MultipartPayload$1 = FormData;
|
|
11
12
|
type RequestContent$1<T extends OperationId$1> = operations[T] extends {
|
|
12
13
|
requestBody: {
|
|
13
14
|
content: infer C;
|
|
@@ -21,7 +22,7 @@ type ApiRequest$1<T extends OperationId$1> = operations[T] extends {
|
|
|
21
22
|
};
|
|
22
23
|
} ? R : RequestContent$1<T> extends {
|
|
23
24
|
'multipart/form-data': infer R;
|
|
24
|
-
} ? R : operations[T] extends {
|
|
25
|
+
} ? R | MultipartPayload$1 : operations[T] extends {
|
|
25
26
|
parameters: {
|
|
26
27
|
query?: infer Q;
|
|
27
28
|
};
|
|
@@ -41,6 +42,7 @@ declare const api: {
|
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
type OperationId = keyof operations;
|
|
45
|
+
type MultipartPayload = FormData;
|
|
44
46
|
type RequestContent<T extends OperationId> = operations[T] extends {
|
|
45
47
|
requestBody: {
|
|
46
48
|
content: infer C;
|
|
@@ -54,7 +56,7 @@ type ApiRequest<T extends OperationId> = operations[T] extends {
|
|
|
54
56
|
};
|
|
55
57
|
} ? R : RequestContent<T> extends {
|
|
56
58
|
'multipart/form-data': infer R;
|
|
57
|
-
} ? R : operations[T] extends {
|
|
59
|
+
} ? R | MultipartPayload : operations[T] extends {
|
|
58
60
|
parameters: {
|
|
59
61
|
query?: infer Q;
|
|
60
62
|
};
|
|
@@ -3479,4 +3481,4 @@ declare const wishlist: {
|
|
|
3479
3481
|
}>;
|
|
3480
3482
|
};
|
|
3481
3483
|
|
|
3482
|
-
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, user, userverification, wishlist };
|
|
3484
|
+
export { ApiError, type ApiPathParams, type ApiRequest, type ApiResponse, type Expand, type MultipartPayload, type OperationId, admin, api, appointment, auth, booking, conversations, customer, feature, github, google, inspection, landlord, listings, maintenance, notification, plan, review, tenancy, tenant, user, userverification, wishlist };
|
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.26",
|
|
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/
|
|
20
|
-
"@justins-home/
|
|
19
|
+
"@justins-home/types": "1.1.20",
|
|
20
|
+
"@justins-home/http-client": "1.1.20"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|