@qualisero/openapi-endpoint 0.7.0 → 0.9.0
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/README.md +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/openapi-mutation.d.ts +14 -12
- package/dist/openapi-mutation.d.ts.map +1 -1
- package/dist/openapi-mutation.js +12 -28
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vue OpenAPI Query
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/@qualisero%2Fopenapi-endpoint)
|
|
4
4
|
[](https://github.com/qualisero/openapi-endpoint/actions/workflows/ci.yml)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://bundlephobia.com/package/@qualisero/openapi-endpoint)
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export declare function useOpenApi<Ops extends Operations<Ops>>(config: OpenApiC
|
|
|
109
109
|
* ```
|
|
110
110
|
*/
|
|
111
111
|
useMutation: <Op extends keyof Ops>(operationId: IsQueryOperation<Ops, Op> extends false ? Op : never, pathParamsOrOptions?: GetPathParameters<Ops, Op> extends Record<string, never> ? QMutationOptions<Ops, Op> : MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undefined> | QMutationOptions<Ops, Op>, optionsOrNull?: QMutationOptions<Ops, Op>) => {
|
|
112
|
-
data: import("vue").ComputedRef<import("./types").GetResponseData<Ops, Op> | undefined>;
|
|
112
|
+
data: import("vue").ComputedRef<import("axios").AxiosResponse<import("./types").GetResponseData<Ops, Op>, any, {}> | undefined>;
|
|
113
113
|
isEnabled: import("vue").ComputedRef<boolean>;
|
|
114
114
|
extraPathParams: import("vue").Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
115
115
|
context: import("vue").Ref<unknown, unknown>;
|
|
@@ -124,11 +124,11 @@ export declare function useOpenApi<Ops extends Operations<Ops>>(config: OpenApiC
|
|
|
124
124
|
variables: import("vue").Ref<undefined, undefined>;
|
|
125
125
|
isIdle: import("vue").Ref<true, true>;
|
|
126
126
|
submittedAt: import("vue").Ref<number, number>;
|
|
127
|
-
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("
|
|
128
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<import("
|
|
127
|
+
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
128
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown>;
|
|
129
129
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
130
130
|
} | {
|
|
131
|
-
data: import("vue").ComputedRef<import("./types").GetResponseData<Ops, Op> | undefined>;
|
|
131
|
+
data: import("vue").ComputedRef<import("axios").AxiosResponse<import("./types").GetResponseData<Ops, Op>, any, {}> | undefined>;
|
|
132
132
|
isEnabled: import("vue").ComputedRef<boolean>;
|
|
133
133
|
extraPathParams: import("vue").Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
134
134
|
context: import("vue").Ref<unknown, unknown>;
|
|
@@ -143,11 +143,11 @@ export declare function useOpenApi<Ops extends Operations<Ops>>(config: OpenApiC
|
|
|
143
143
|
variables: import("@vue/shared").IfAny<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>, [import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>] extends [import("vue").Ref<any, any>] ? import("vue").Ref<any, any> & (import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>) : import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>>;
|
|
144
144
|
isIdle: import("vue").Ref<false, false>;
|
|
145
145
|
submittedAt: import("vue").Ref<number, number>;
|
|
146
|
-
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("
|
|
147
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<import("
|
|
146
|
+
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
147
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown>;
|
|
148
148
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
149
149
|
} | {
|
|
150
|
-
data: import("vue").ComputedRef<import("./types").GetResponseData<Ops, Op> | undefined>;
|
|
150
|
+
data: import("vue").ComputedRef<import("axios").AxiosResponse<import("./types").GetResponseData<Ops, Op>, any, {}> | undefined>;
|
|
151
151
|
isEnabled: import("vue").ComputedRef<boolean>;
|
|
152
152
|
extraPathParams: import("vue").Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
153
153
|
context: import("vue").Ref<unknown, unknown>;
|
|
@@ -162,11 +162,11 @@ export declare function useOpenApi<Ops extends Operations<Ops>>(config: OpenApiC
|
|
|
162
162
|
variables: import("@vue/shared").IfAny<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>, [import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>] extends [import("vue").Ref<any, any>] ? import("vue").Ref<any, any> & (import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>) : import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>>;
|
|
163
163
|
isIdle: import("vue").Ref<false, false>;
|
|
164
164
|
submittedAt: import("vue").Ref<number, number>;
|
|
165
|
-
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("
|
|
166
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<import("
|
|
165
|
+
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
166
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown>;
|
|
167
167
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
168
168
|
} | {
|
|
169
|
-
data: import("vue").ComputedRef<import("./types").GetResponseData<Ops, Op> | undefined>;
|
|
169
|
+
data: import("vue").ComputedRef<import("axios").AxiosResponse<import("./types").GetResponseData<Ops, Op>, any, {}> | undefined>;
|
|
170
170
|
isEnabled: import("vue").ComputedRef<boolean>;
|
|
171
171
|
extraPathParams: import("vue").Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
172
172
|
context: import("vue").Ref<unknown, unknown>;
|
|
@@ -181,8 +181,8 @@ export declare function useOpenApi<Ops extends Operations<Ops>>(config: OpenApiC
|
|
|
181
181
|
variables: import("@vue/shared").IfAny<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>, [import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>] extends [import("vue").Ref<any, any>] ? import("vue").Ref<any, any> & (import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>) : import("vue").Ref<import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>>>;
|
|
182
182
|
isIdle: import("vue").Ref<false, false>;
|
|
183
183
|
submittedAt: import("vue").Ref<number, number>;
|
|
184
|
-
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("
|
|
185
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<import("
|
|
184
|
+
mutate: (variables: import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
185
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<import("axios").AxiosResponse<any, any, {}>, Error, import("./types").GetRequestBody<Ops, Op> extends never ? void | import("./types").QMutationVars<Ops, Op> : import("./types").QMutationVars<Ops, Op>, unknown>;
|
|
186
186
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
187
187
|
};
|
|
188
188
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ComputedRef, type Ref, type MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import { type GetPathParameters, type QMutationVars, type GetResponseData, type QMutationOptions, Operations, GetRequestBody } from './types';
|
|
3
3
|
import { type OpenApiHelpers } from './openapi-helpers';
|
|
4
|
+
import { type AxiosResponse } from 'axios';
|
|
4
5
|
export type EndpointMutationReturn<Ops extends Operations<Ops>, Op extends keyof Ops> = ReturnType<typeof useEndpointMutation<Ops, Op>>;
|
|
5
6
|
/**
|
|
6
7
|
* Composable for performing a strictly typed OpenAPI mutation operation using Vue Query.
|
|
@@ -28,12 +29,13 @@ export type EndpointMutationReturn<Ops extends Operations<Ops>, Op extends keyof
|
|
|
28
29
|
* - `mutate` and `mutateAsync`: Functions to trigger the mutation, taking an object with:
|
|
29
30
|
* - `data`: The request body data for the mutation.
|
|
30
31
|
* - `pathParams`: Optional additional path parameters for the mutation.
|
|
32
|
+
* - `axiosOptions`: Optional axios configuration overrides for this specific mutation call.
|
|
31
33
|
* - `dontUpdateCache`, `dontInvalidate`, `invalidateOperations`, `refetchEndpoints`: Same as options, but can be set per-mutation.
|
|
32
34
|
* - All other properties and methods from the underlying Vue Query mutation object.
|
|
33
35
|
*/
|
|
34
36
|
export declare function useEndpointMutation<Ops extends Operations<Ops>, Op extends keyof Ops>(operationId: Op, h: OpenApiHelpers<Ops, Op>, // helpers
|
|
35
37
|
pathParamsOrOptions?: MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undefined> | QMutationOptions<Ops, Op>, optionsOrNull?: QMutationOptions<Ops, Op>): {
|
|
36
|
-
data: ComputedRef<GetResponseData<Ops, Op
|
|
38
|
+
data: ComputedRef<AxiosResponse<GetResponseData<Ops, Op>> | undefined>;
|
|
37
39
|
isEnabled: ComputedRef<boolean>;
|
|
38
40
|
extraPathParams: Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
39
41
|
context: Ref<unknown, unknown>;
|
|
@@ -48,11 +50,11 @@ pathParamsOrOptions?: MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undef
|
|
|
48
50
|
variables: Ref<undefined, undefined>;
|
|
49
51
|
isIdle: Ref<true, true>;
|
|
50
52
|
submittedAt: Ref<number, number>;
|
|
51
|
-
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<
|
|
52
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<
|
|
53
|
+
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
54
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown>;
|
|
53
55
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
54
56
|
} | {
|
|
55
|
-
data: ComputedRef<GetResponseData<Ops, Op
|
|
57
|
+
data: ComputedRef<AxiosResponse<GetResponseData<Ops, Op>> | undefined>;
|
|
56
58
|
isEnabled: ComputedRef<boolean>;
|
|
57
59
|
extraPathParams: Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
58
60
|
context: Ref<unknown, unknown>;
|
|
@@ -67,11 +69,11 @@ pathParamsOrOptions?: MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undef
|
|
|
67
69
|
variables: import("@vue/shared").IfAny<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>, [GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>] extends [Ref<any, any>] ? Ref<any, any> & (GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>) : Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>>;
|
|
68
70
|
isIdle: Ref<false, false>;
|
|
69
71
|
submittedAt: Ref<number, number>;
|
|
70
|
-
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<
|
|
71
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<
|
|
72
|
+
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
73
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown>;
|
|
72
74
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
73
75
|
} | {
|
|
74
|
-
data: ComputedRef<GetResponseData<Ops, Op
|
|
76
|
+
data: ComputedRef<AxiosResponse<GetResponseData<Ops, Op>> | undefined>;
|
|
75
77
|
isEnabled: ComputedRef<boolean>;
|
|
76
78
|
extraPathParams: Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
77
79
|
context: Ref<unknown, unknown>;
|
|
@@ -86,11 +88,11 @@ pathParamsOrOptions?: MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undef
|
|
|
86
88
|
variables: import("@vue/shared").IfAny<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>, [GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>] extends [Ref<any, any>] ? Ref<any, any> & (GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>) : Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>>;
|
|
87
89
|
isIdle: Ref<false, false>;
|
|
88
90
|
submittedAt: Ref<number, number>;
|
|
89
|
-
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<
|
|
90
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<
|
|
91
|
+
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
92
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown>;
|
|
91
93
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
92
94
|
} | {
|
|
93
|
-
data: ComputedRef<GetResponseData<Ops, Op
|
|
95
|
+
data: ComputedRef<AxiosResponse<GetResponseData<Ops, Op>> | undefined>;
|
|
94
96
|
isEnabled: ComputedRef<boolean>;
|
|
95
97
|
extraPathParams: Ref<GetPathParameters<Ops, Op>, GetPathParameters<Ops, Op>>;
|
|
96
98
|
context: Ref<unknown, unknown>;
|
|
@@ -105,8 +107,8 @@ pathParamsOrOptions?: MaybeRefOrGetter<GetPathParameters<Ops, Op> | null | undef
|
|
|
105
107
|
variables: import("@vue/shared").IfAny<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>, [GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>] extends [Ref<any, any>] ? Ref<any, any> & (GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>) : Ref<GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>>>;
|
|
106
108
|
isIdle: Ref<false, false>;
|
|
107
109
|
submittedAt: Ref<number, number>;
|
|
108
|
-
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<
|
|
109
|
-
mutateAsync: import("@tanstack/query-core").MutateFunction<
|
|
110
|
+
mutate: (variables: GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, options?: import("@tanstack/query-core").MutateOptions<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown> | undefined) => void;
|
|
111
|
+
mutateAsync: import("@tanstack/query-core").MutateFunction<AxiosResponse<any, any, {}>, Error, GetRequestBody<Ops, Op> extends never ? void | QMutationVars<Ops, Op> : QMutationVars<Ops, Op>, unknown>;
|
|
110
112
|
reset: import("@tanstack/query-core").MutationObserverResult<TData, TError, TVariables, TOnMutateResult>["reset"];
|
|
111
113
|
};
|
|
112
114
|
//# sourceMappingURL=openapi-mutation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-mutation.d.ts","sourceRoot":"","sources":["../src/openapi-mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAG/F,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,UAAU,EACV,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"openapi-mutation.d.ts","sourceRoot":"","sources":["../src/openapi-mutation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAG/F,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,UAAU,EACV,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,MAAM,sBAAsB,CAAC,GAAG,SAAS,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,MAAM,GAAG,IAAI,UAAU,CAChG,OAAO,mBAAmB,CAAC,GAAG,EAAE,EAAE,CAAC,CACpC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,SAAS,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,MAAM,GAAG,EACnF,WAAW,EAAE,EAAE,EACf,CAAC,EAAE,cAAc,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,UAAU;AACtC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,EAAE,CAAC,EACjH,aAAa,CAAC,EAAE,gBAAgB,CAAC,GAAG,EAAE,EAAE,CAAC;UA8IhB,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;UAAhE,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;UAAhE,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;UAAhE,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;EAI1F"}
|
package/dist/openapi-mutation.js
CHANGED
|
@@ -2,7 +2,6 @@ import { computed, ref, toValue } from 'vue';
|
|
|
2
2
|
import { useMutation } from '@tanstack/vue-query';
|
|
3
3
|
import { HttpMethod, } from './types';
|
|
4
4
|
import { resolvePath, generateQueryKey, isPathResolved, getParamsOptionsFrom } from './openapi-utils';
|
|
5
|
-
import { isAxiosError } from 'axios';
|
|
6
5
|
/**
|
|
7
6
|
* Composable for performing a strictly typed OpenAPI mutation operation using Vue Query.
|
|
8
7
|
* Ensures the operation is a mutation (POST/PUT/PATCH/DELETE) at runtime.
|
|
@@ -29,6 +28,7 @@ import { isAxiosError } from 'axios';
|
|
|
29
28
|
* - `mutate` and `mutateAsync`: Functions to trigger the mutation, taking an object with:
|
|
30
29
|
* - `data`: The request body data for the mutation.
|
|
31
30
|
* - `pathParams`: Optional additional path parameters for the mutation.
|
|
31
|
+
* - `axiosOptions`: Optional axios configuration overrides for this specific mutation call.
|
|
32
32
|
* - `dontUpdateCache`, `dontInvalidate`, `invalidateOperations`, `refetchEndpoints`: Same as options, but can be set per-mutation.
|
|
33
33
|
* - All other properties and methods from the underlying Vue Query mutation object.
|
|
34
34
|
*/
|
|
@@ -40,7 +40,7 @@ pathParamsOrOptions, optionsOrNull) {
|
|
|
40
40
|
}
|
|
41
41
|
const { path, method } = h.getOperationInfo(operationId);
|
|
42
42
|
const { pathParams, options } = getParamsOptionsFrom(path, pathParamsOrOptions, optionsOrNull);
|
|
43
|
-
const { axiosOptions, dontInvalidate, dontUpdateCache, invalidateOperations, refetchEndpoints,
|
|
43
|
+
const { axiosOptions, dontInvalidate, dontUpdateCache, invalidateOperations, refetchEndpoints, ...useMutationOptions } = options;
|
|
44
44
|
const extraPathParams = ref({});
|
|
45
45
|
// Compute the resolved path
|
|
46
46
|
const allPathParams = computed(() => ({
|
|
@@ -51,7 +51,7 @@ pathParamsOrOptions, optionsOrNull) {
|
|
|
51
51
|
const queryKey = computed(() => generateQueryKey(resolvedPath.value));
|
|
52
52
|
const mutation = useMutation({
|
|
53
53
|
mutationFn: async (vars) => {
|
|
54
|
-
const { data, pathParams: pathParamsFromMutate } = vars;
|
|
54
|
+
const { data, pathParams: pathParamsFromMutate, axiosOptions: axiosOptionsFromMutate, } = vars;
|
|
55
55
|
extraPathParams.value = pathParamsFromMutate || {};
|
|
56
56
|
// TODO: use typing to ensure all required path params are provided
|
|
57
57
|
if (!isPathResolved(resolvedPath.value)) {
|
|
@@ -59,32 +59,16 @@ pathParamsOrOptions, optionsOrNull) {
|
|
|
59
59
|
}
|
|
60
60
|
// Cancel any ongoing queries for this path (prevent race conditions with refresh)
|
|
61
61
|
await h.queryClient.cancelQueries({ queryKey: queryKey.value, exact: false });
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return response.data;
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
if (errorHandler && isAxiosError(error)) {
|
|
73
|
-
const result = await errorHandler(error);
|
|
74
|
-
if (result !== undefined) {
|
|
75
|
-
return result;
|
|
76
|
-
}
|
|
77
|
-
// If errorHandler returns undefined and doesn't throw,
|
|
78
|
-
// we consider this a "recovered" state and return undefined
|
|
79
|
-
// TanStack Query will handle this as a successful mutation with no data
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
throw error;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
62
|
+
return h.axios({
|
|
63
|
+
method: method.toLowerCase(),
|
|
64
|
+
url: resolvedPath.value,
|
|
65
|
+
...(data !== undefined && { data }),
|
|
66
|
+
...axiosOptions,
|
|
67
|
+
...axiosOptionsFromMutate,
|
|
68
|
+
});
|
|
86
69
|
},
|
|
87
|
-
onSuccess: async (
|
|
70
|
+
onSuccess: async (response, vars, _context) => {
|
|
71
|
+
const data = response.data;
|
|
88
72
|
const { dontInvalidate: dontInvalidateMutate, dontUpdateCache: dontUpdateCacheMutate, invalidateOperations: invalidateOperationsMutate, refetchEndpoints: refetchEndpointsMutate, } = vars || {};
|
|
89
73
|
// update cache with returned data for PUT/PATCH requests
|
|
90
74
|
if (
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxiosInstance, type AxiosError, type AxiosRequestConfig } from 'axios';
|
|
1
|
+
import { type AxiosInstance, type AxiosError, type AxiosRequestConfig, type AxiosResponse } from 'axios';
|
|
2
2
|
import { UseMutationOptions, type UseQueryOptions, QueryClient } from '@tanstack/vue-query';
|
|
3
3
|
import type { MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
4
4
|
import type { EndpointQueryReturn } from './openapi-query';
|
|
@@ -98,11 +98,11 @@ type MutationOnSuccessOptions<Ops extends Operations<Ops>> = {
|
|
|
98
98
|
export type QMutationVars<Ops extends Operations<Ops>, Op extends keyof Ops> = MutationOnSuccessOptions<Ops> & {
|
|
99
99
|
data?: GetRequestBody<Ops, Op>;
|
|
100
100
|
pathParams?: GetPathParameters<Ops, Op>;
|
|
101
|
+
axiosOptions?: AxiosRequestConfig;
|
|
101
102
|
};
|
|
102
103
|
/** @internal */
|
|
103
|
-
export type QMutationOptions<Ops extends Operations<Ops>, Op extends keyof Ops> = OmitMaybeRef<UseMutationOptions<GetResponseData<Ops, Op
|
|
104
|
+
export type QMutationOptions<Ops extends Operations<Ops>, Op extends keyof Ops> = OmitMaybeRef<UseMutationOptions<AxiosResponse<GetResponseData<Ops, Op>>, Error, GetRequestBody<Ops, Op> extends never ? QMutationVars<Ops, Op> | void : QMutationVars<Ops, Op>>, 'mutationFn' | 'mutationKey'> & MutationOnSuccessOptions<Ops> & {
|
|
104
105
|
axiosOptions?: AxiosRequestConfig;
|
|
105
|
-
errorHandler?: (error: AxiosError) => GetResponseData<Ops, Op> | void | Promise<GetResponseData<Ops, Op> | void>;
|
|
106
106
|
};
|
|
107
107
|
export type GetPathParameters<Ops extends Operations<Ops>, Op extends keyof Ops> = Ops[Op] extends {
|
|
108
108
|
parameters: {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,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