@teamnovu/kit-shopware-composables 0.0.7 → 0.0.8

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.
Files changed (51) hide show
  1. package/dist/helpers/checkout/useCheckoutAddresses.d.ts +6 -16
  2. package/dist/helpers/checkout/useOrderDetails.d.ts +7 -163
  3. package/dist/helpers/checkout/useOrderPayment.d.ts +4 -37
  4. package/dist/helpers/checkout/usePaymentMethods.d.ts +7 -19
  5. package/dist/helpers/checkout/useShippingMethods.d.ts +7 -19
  6. package/dist/helpers/types/schema.d.ts +5 -0
  7. package/dist/index.mjs +684 -575
  8. package/dist/query/address/useCreateCustomerAddressMutation.d.ts +1 -162
  9. package/dist/query/address/useUpdateCustomerAddressMutation.d.ts +1 -162
  10. package/dist/query/cart/useAddLineItemMutation.d.ts +1 -122
  11. package/dist/query/cart/useRemoveLineItemMutation.d.ts +5 -126
  12. package/dist/query/cart/useUpdateLineItemMutation.d.ts +1 -122
  13. package/dist/query/checkout/useCreateOrderMutation.d.ts +2 -278
  14. package/dist/query/context/useUpdateContextMutation.d.ts +5 -15
  15. package/dist/query/customer/index.d.ts +7 -0
  16. package/dist/query/customer/useChangeEmailMutation.d.ts +1 -11
  17. package/dist/query/customer/useChangePasswordMutation.d.ts +6 -0
  18. package/dist/query/customer/useChangeProfileMutation.d.ts +1 -11
  19. package/dist/query/customer/useDefaultBillingAddressMutation.d.ts +6 -0
  20. package/dist/query/customer/useDefaultShippingAddressMutation.d.ts +6 -0
  21. package/dist/query/customer/useDeleteCustomerMutation.d.ts +6 -0
  22. package/dist/query/customer/useLoginCustomerMutation.d.ts +5 -15
  23. package/dist/query/customer/useLogoutCustomerMutation.d.ts +1 -11
  24. package/dist/query/customer/useRecoveryPasswordMutation.d.ts +6 -0
  25. package/dist/query/customer/useRegisterConfirmMutation.d.ts +21 -0
  26. package/dist/query/customer/useRegisterCustomerMutation.d.ts +1 -262
  27. package/dist/query/customer/useSendRecoveryMailMutation.d.ts +6 -0
  28. package/dist/query/payment/useHandlePaymentMutation.d.ts +1 -11
  29. package/dist/query/payment/useOrderSetPaymentMutation.d.ts +1 -11
  30. package/dist/query/types/query.d.ts +2 -2
  31. package/dist/util/index.d.ts +1 -0
  32. package/dist/util/isAsynchronous.d.ts +3 -0
  33. package/package.json +2 -2
  34. package/src/helpers/checkout/useOrderDetails.ts +8 -8
  35. package/src/helpers/checkout/useOrderPayment.ts +6 -10
  36. package/src/helpers/types/schema.ts +11 -0
  37. package/src/query/checkout/useCreateOrderMutation.ts +2 -2
  38. package/src/query/customer/index.ts +7 -0
  39. package/src/query/customer/useChangeEmailMutation.ts +2 -1
  40. package/src/query/customer/useChangePasswordMutation.ts +28 -0
  41. package/src/query/customer/useChangeProfileMutation.ts +5 -2
  42. package/src/query/customer/useDefaultBillingAddressMutation.ts +35 -0
  43. package/src/query/customer/useDefaultShippingAddressMutation.ts +35 -0
  44. package/src/query/customer/useDeleteCustomerMutation.ts +36 -0
  45. package/src/query/customer/useRecoveryPasswordMutation.ts +28 -0
  46. package/src/query/customer/useRegisterConfirmMutation.ts +37 -0
  47. package/src/query/customer/useSendRecoveryMailMutation.ts +28 -0
  48. package/src/query/types/operations.ts +0 -1
  49. package/src/query/types/query.ts +2 -2
  50. package/src/util/index.ts +1 -0
  51. package/src/util/isAsynchronous.ts +8 -0
@@ -1,132 +1,11 @@
1
1
  import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
2
  import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationBody, OperationResponse } from '../types/query';
4
- import { components } from '../../../api-types/storeApiTypes';
5
4
  declare const updateCartItemOperation = "updateLineItem patch /checkout/cart/line-item";
6
5
  type LineItem = OperationBody<typeof updateCartItemOperation>['items'][number];
7
6
  type LineItemPayload = Partial<Omit<LineItem, 'id' | 'quantity' | 'type'>> & Required<Pick<LineItem, 'id' | 'quantity' | 'type'>>;
8
7
  type Body = Omit<OperationBody<typeof updateCartItemOperation>, 'items'> & {
9
8
  items: LineItemPayload[];
10
9
  };
11
- export declare function useUpdateLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateCartItemOperation>, ShopwareApiError | Error, Body>): UseMutationReturnType<{
12
- affiliateCode?: string | null;
13
- apiAlias: "cart";
14
- campaignCode?: string | null;
15
- customerComment?: string | null;
16
- deliveries?: components["schemas"]["CartDelivery"][];
17
- errors?: components["schemas"]["CartError"][] | {
18
- [key: string]: {
19
- code: number;
20
- key: string;
21
- level: number;
22
- message: string;
23
- messageKey: string;
24
- };
25
- };
26
- lineItems?: components["schemas"]["LineItem"][];
27
- modified?: boolean;
28
- name?: string;
29
- price: components["schemas"]["CalculatedPrice"];
30
- token?: string;
31
- transactions?: {
32
- amount?: components["schemas"]["CalculatedPrice"];
33
- paymentMethodId?: string;
34
- }[];
35
- }, Error | ShopwareApiError, Body, unknown, Omit< MutationObserverIdleResult<{
36
- affiliateCode?: string | null;
37
- apiAlias: "cart";
38
- campaignCode?: string | null;
39
- customerComment?: string | null;
40
- deliveries?: components["schemas"]["CartDelivery"][];
41
- errors?: components["schemas"]["CartError"][] | {
42
- [key: string]: {
43
- code: number;
44
- key: string;
45
- level: number;
46
- message: string;
47
- messageKey: string;
48
- };
49
- };
50
- lineItems?: components["schemas"]["LineItem"][];
51
- modified?: boolean;
52
- name?: string;
53
- price: components["schemas"]["CalculatedPrice"];
54
- token?: string;
55
- transactions?: {
56
- amount?: components["schemas"]["CalculatedPrice"];
57
- paymentMethodId?: string;
58
- }[];
59
- }, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
60
- affiliateCode?: string | null;
61
- apiAlias: "cart";
62
- campaignCode?: string | null;
63
- customerComment?: string | null;
64
- deliveries?: components["schemas"]["CartDelivery"][];
65
- errors?: components["schemas"]["CartError"][] | {
66
- [key: string]: {
67
- code: number;
68
- key: string;
69
- level: number;
70
- message: string;
71
- messageKey: string;
72
- };
73
- };
74
- lineItems?: components["schemas"]["LineItem"][];
75
- modified?: boolean;
76
- name?: string;
77
- price: components["schemas"]["CalculatedPrice"];
78
- token?: string;
79
- transactions?: {
80
- amount?: components["schemas"]["CalculatedPrice"];
81
- paymentMethodId?: string;
82
- }[];
83
- }, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
84
- affiliateCode?: string | null;
85
- apiAlias: "cart";
86
- campaignCode?: string | null;
87
- customerComment?: string | null;
88
- deliveries?: components["schemas"]["CartDelivery"][];
89
- errors?: components["schemas"]["CartError"][] | {
90
- [key: string]: {
91
- code: number;
92
- key: string;
93
- level: number;
94
- message: string;
95
- messageKey: string;
96
- };
97
- };
98
- lineItems?: components["schemas"]["LineItem"][];
99
- modified?: boolean;
100
- name?: string;
101
- price: components["schemas"]["CalculatedPrice"];
102
- token?: string;
103
- transactions?: {
104
- amount?: components["schemas"]["CalculatedPrice"];
105
- paymentMethodId?: string;
106
- }[];
107
- }, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
108
- affiliateCode?: string | null;
109
- apiAlias: "cart";
110
- campaignCode?: string | null;
111
- customerComment?: string | null;
112
- deliveries?: components["schemas"]["CartDelivery"][];
113
- errors?: components["schemas"]["CartError"][] | {
114
- [key: string]: {
115
- code: number;
116
- key: string;
117
- level: number;
118
- message: string;
119
- messageKey: string;
120
- };
121
- };
122
- lineItems?: components["schemas"]["LineItem"][];
123
- modified?: boolean;
124
- name?: string;
125
- price: components["schemas"]["CalculatedPrice"];
126
- token?: string;
127
- transactions?: {
128
- amount?: components["schemas"]["CalculatedPrice"];
129
- paymentMethodId?: string;
130
- }[];
131
- }, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset">>;
10
+ export declare function useUpdateLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateCartItemOperation>, ShopwareApiError | Error, Body>): UseMutationReturnType<OperationResponse<"updateLineItem patch /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateLineItem patch /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateLineItem patch /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateLineItem patch /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateLineItem patch /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset">>;
132
11
  export {};
@@ -1,282 +1,6 @@
1
- import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
2
1
  import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationOptions, OperationResponse } from '../types/query';
4
- import { components, GenericRecord } from '../../../api-types/storeApiTypes';
5
4
  declare const createOrderOperation = "createOrder post /checkout/order";
6
- export declare function useCreateOrderMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createOrderOperation>, ShopwareApiError | Error, OperationOptions<typeof createOrderOperation>>): UseMutationReturnType<{
7
- addresses?: components["schemas"]["OrderAddress"][];
8
- affiliateCode?: string;
9
- readonly amountNet?: number;
10
- readonly amountTotal?: number;
11
- billingAddress?: components["schemas"]["OrderAddress"];
12
- billingAddressId: string;
13
- billingAddressVersionId?: string;
14
- campaignCode?: string;
15
- readonly createdAt?: string;
16
- createdById?: string;
17
- currency?: components["schemas"]["Currency"];
18
- currencyFactor: number;
19
- currencyId: string;
20
- customerComment?: string;
21
- customFields?: GenericRecord;
22
- deepLinkCode?: string;
23
- deliveries?: components["schemas"]["OrderDelivery"][];
24
- documents: components["schemas"]["Document"][];
25
- id: string;
26
- language?: components["schemas"]["Language"];
27
- languageId: string;
28
- lineItems?: components["schemas"]["OrderLineItem"][];
29
- orderCustomer?: components["schemas"]["OrderCustomer"];
30
- readonly orderDate: string;
31
- orderDateTime: string;
32
- orderNumber?: string;
33
- readonly positionPrice?: number;
34
- price: components["schemas"]["CalculatedPrice"];
35
- salesChannelId: string;
36
- shippingCosts?: {
37
- calculatedTaxes?: GenericRecord;
38
- listPrice?: {
39
- discount?: number;
40
- percentage?: number;
41
- price?: number;
42
- };
43
- quantity: number;
44
- referencePrice?: GenericRecord;
45
- regulationPrice?: {
46
- price?: number;
47
- };
48
- taxRules?: GenericRecord;
49
- totalPrice: number;
50
- unitPrice: number;
51
- };
52
- readonly shippingTotal?: number;
53
- source?: string;
54
- stateMachineState: components["schemas"]["StateMachineState"];
55
- tags?: components["schemas"]["Tag"][];
56
- readonly taxStatus?: string;
57
- transactions?: components["schemas"]["OrderTransaction"][];
58
- readonly updatedAt?: string;
59
- updatedById?: string;
60
- versionId?: string;
61
- }, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown, Omit< MutationObserverIdleResult<{
62
- addresses?: components["schemas"]["OrderAddress"][];
63
- affiliateCode?: string;
64
- readonly amountNet?: number;
65
- readonly amountTotal?: number;
66
- billingAddress?: components["schemas"]["OrderAddress"];
67
- billingAddressId: string;
68
- billingAddressVersionId?: string;
69
- campaignCode?: string;
70
- readonly createdAt?: string;
71
- createdById?: string;
72
- currency?: components["schemas"]["Currency"];
73
- currencyFactor: number;
74
- currencyId: string;
75
- customerComment?: string;
76
- customFields?: GenericRecord;
77
- deepLinkCode?: string;
78
- deliveries?: components["schemas"]["OrderDelivery"][];
79
- documents: components["schemas"]["Document"][];
80
- id: string;
81
- language?: components["schemas"]["Language"];
82
- languageId: string;
83
- lineItems?: components["schemas"]["OrderLineItem"][];
84
- orderCustomer?: components["schemas"]["OrderCustomer"];
85
- readonly orderDate: string;
86
- orderDateTime: string;
87
- orderNumber?: string;
88
- readonly positionPrice?: number;
89
- price: components["schemas"]["CalculatedPrice"];
90
- salesChannelId: string;
91
- shippingCosts?: {
92
- calculatedTaxes?: GenericRecord;
93
- listPrice?: {
94
- discount?: number;
95
- percentage?: number;
96
- price?: number;
97
- };
98
- quantity: number;
99
- referencePrice?: GenericRecord;
100
- regulationPrice?: {
101
- price?: number;
102
- };
103
- taxRules?: GenericRecord;
104
- totalPrice: number;
105
- unitPrice: number;
106
- };
107
- readonly shippingTotal?: number;
108
- source?: string;
109
- stateMachineState: components["schemas"]["StateMachineState"];
110
- tags?: components["schemas"]["Tag"][];
111
- readonly taxStatus?: string;
112
- transactions?: components["schemas"]["OrderTransaction"][];
113
- readonly updatedAt?: string;
114
- updatedById?: string;
115
- versionId?: string;
116
- }, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
117
- addresses?: components["schemas"]["OrderAddress"][];
118
- affiliateCode?: string;
119
- readonly amountNet?: number;
120
- readonly amountTotal?: number;
121
- billingAddress?: components["schemas"]["OrderAddress"];
122
- billingAddressId: string;
123
- billingAddressVersionId?: string;
124
- campaignCode?: string;
125
- readonly createdAt?: string;
126
- createdById?: string;
127
- currency?: components["schemas"]["Currency"];
128
- currencyFactor: number;
129
- currencyId: string;
130
- customerComment?: string;
131
- customFields?: GenericRecord;
132
- deepLinkCode?: string;
133
- deliveries?: components["schemas"]["OrderDelivery"][];
134
- documents: components["schemas"]["Document"][];
135
- id: string;
136
- language?: components["schemas"]["Language"];
137
- languageId: string;
138
- lineItems?: components["schemas"]["OrderLineItem"][];
139
- orderCustomer?: components["schemas"]["OrderCustomer"];
140
- readonly orderDate: string;
141
- orderDateTime: string;
142
- orderNumber?: string;
143
- readonly positionPrice?: number;
144
- price: components["schemas"]["CalculatedPrice"];
145
- salesChannelId: string;
146
- shippingCosts?: {
147
- calculatedTaxes?: GenericRecord;
148
- listPrice?: {
149
- discount?: number;
150
- percentage?: number;
151
- price?: number;
152
- };
153
- quantity: number;
154
- referencePrice?: GenericRecord;
155
- regulationPrice?: {
156
- price?: number;
157
- };
158
- taxRules?: GenericRecord;
159
- totalPrice: number;
160
- unitPrice: number;
161
- };
162
- readonly shippingTotal?: number;
163
- source?: string;
164
- stateMachineState: components["schemas"]["StateMachineState"];
165
- tags?: components["schemas"]["Tag"][];
166
- readonly taxStatus?: string;
167
- transactions?: components["schemas"]["OrderTransaction"][];
168
- readonly updatedAt?: string;
169
- updatedById?: string;
170
- versionId?: string;
171
- }, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
172
- addresses?: components["schemas"]["OrderAddress"][];
173
- affiliateCode?: string;
174
- readonly amountNet?: number;
175
- readonly amountTotal?: number;
176
- billingAddress?: components["schemas"]["OrderAddress"];
177
- billingAddressId: string;
178
- billingAddressVersionId?: string;
179
- campaignCode?: string;
180
- readonly createdAt?: string;
181
- createdById?: string;
182
- currency?: components["schemas"]["Currency"];
183
- currencyFactor: number;
184
- currencyId: string;
185
- customerComment?: string;
186
- customFields?: GenericRecord;
187
- deepLinkCode?: string;
188
- deliveries?: components["schemas"]["OrderDelivery"][];
189
- documents: components["schemas"]["Document"][];
190
- id: string;
191
- language?: components["schemas"]["Language"];
192
- languageId: string;
193
- lineItems?: components["schemas"]["OrderLineItem"][];
194
- orderCustomer?: components["schemas"]["OrderCustomer"];
195
- readonly orderDate: string;
196
- orderDateTime: string;
197
- orderNumber?: string;
198
- readonly positionPrice?: number;
199
- price: components["schemas"]["CalculatedPrice"];
200
- salesChannelId: string;
201
- shippingCosts?: {
202
- calculatedTaxes?: GenericRecord;
203
- listPrice?: {
204
- discount?: number;
205
- percentage?: number;
206
- price?: number;
207
- };
208
- quantity: number;
209
- referencePrice?: GenericRecord;
210
- regulationPrice?: {
211
- price?: number;
212
- };
213
- taxRules?: GenericRecord;
214
- totalPrice: number;
215
- unitPrice: number;
216
- };
217
- readonly shippingTotal?: number;
218
- source?: string;
219
- stateMachineState: components["schemas"]["StateMachineState"];
220
- tags?: components["schemas"]["Tag"][];
221
- readonly taxStatus?: string;
222
- transactions?: components["schemas"]["OrderTransaction"][];
223
- readonly updatedAt?: string;
224
- updatedById?: string;
225
- versionId?: string;
226
- }, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
227
- addresses?: components["schemas"]["OrderAddress"][];
228
- affiliateCode?: string;
229
- readonly amountNet?: number;
230
- readonly amountTotal?: number;
231
- billingAddress?: components["schemas"]["OrderAddress"];
232
- billingAddressId: string;
233
- billingAddressVersionId?: string;
234
- campaignCode?: string;
235
- readonly createdAt?: string;
236
- createdById?: string;
237
- currency?: components["schemas"]["Currency"];
238
- currencyFactor: number;
239
- currencyId: string;
240
- customerComment?: string;
241
- customFields?: GenericRecord;
242
- deepLinkCode?: string;
243
- deliveries?: components["schemas"]["OrderDelivery"][];
244
- documents: components["schemas"]["Document"][];
245
- id: string;
246
- language?: components["schemas"]["Language"];
247
- languageId: string;
248
- lineItems?: components["schemas"]["OrderLineItem"][];
249
- orderCustomer?: components["schemas"]["OrderCustomer"];
250
- readonly orderDate: string;
251
- orderDateTime: string;
252
- orderNumber?: string;
253
- readonly positionPrice?: number;
254
- price: components["schemas"]["CalculatedPrice"];
255
- salesChannelId: string;
256
- shippingCosts?: {
257
- calculatedTaxes?: GenericRecord;
258
- listPrice?: {
259
- discount?: number;
260
- percentage?: number;
261
- price?: number;
262
- };
263
- quantity: number;
264
- referencePrice?: GenericRecord;
265
- regulationPrice?: {
266
- price?: number;
267
- };
268
- taxRules?: GenericRecord;
269
- totalPrice: number;
270
- unitPrice: number;
271
- };
272
- readonly shippingTotal?: number;
273
- source?: string;
274
- stateMachineState: components["schemas"]["StateMachineState"];
275
- tags?: components["schemas"]["Tag"][];
276
- readonly taxStatus?: string;
277
- transactions?: components["schemas"]["OrderTransaction"][];
278
- readonly updatedAt?: string;
279
- updatedById?: string;
280
- versionId?: string;
281
- }, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset">>;
5
+ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createOrderOperation>, ShopwareApiError | Error, OperationOptions<typeof createOrderOperation>>): UseMutationReturnType<OperationResponse<"createOrder post /checkout/order">, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"createOrder post /checkout/order">, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"createOrder post /checkout/order">, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"createOrder post /checkout/order">, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"createOrder post /checkout/order">, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset">>;
282
6
  export {};
@@ -2,9 +2,7 @@ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult,
2
2
  import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationBody, OperationResponse } from '../types/query';
4
4
  declare const updateContextOperation = "updateContext patch /context";
5
- export declare function useUpdateContextMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateContextOperation>, ShopwareApiError | Error, OperationBody<typeof updateContextOperation>>): UseMutationReturnType<{
6
- redirectUrl?: string;
7
- }, Error | ShopwareApiError, {
5
+ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateContextOperation>, ShopwareApiError | Error, OperationBody<typeof updateContextOperation>>): UseMutationReturnType<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
8
6
  billingAddressId?: string;
9
7
  countryId?: string;
10
8
  countryStateId?: string;
@@ -13,9 +11,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
13
11
  paymentMethodId?: string;
14
12
  shippingAddressId?: string;
15
13
  shippingMethodId?: string;
16
- }, unknown, Omit< MutationObserverIdleResult<{
17
- redirectUrl?: string;
18
- }, Error | ShopwareApiError, {
14
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
19
15
  billingAddressId?: string;
20
16
  countryId?: string;
21
17
  countryStateId?: string;
@@ -24,9 +20,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
24
20
  paymentMethodId?: string;
25
21
  shippingAddressId?: string;
26
22
  shippingMethodId?: string;
27
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
28
- redirectUrl?: string;
29
- }, Error | ShopwareApiError, {
23
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
30
24
  billingAddressId?: string;
31
25
  countryId?: string;
32
26
  countryStateId?: string;
@@ -35,9 +29,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
35
29
  paymentMethodId?: string;
36
30
  shippingAddressId?: string;
37
31
  shippingMethodId?: string;
38
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
39
- redirectUrl?: string;
40
- }, Error | ShopwareApiError, {
32
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
41
33
  billingAddressId?: string;
42
34
  countryId?: string;
43
35
  countryStateId?: string;
@@ -46,9 +38,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
46
38
  paymentMethodId?: string;
47
39
  shippingAddressId?: string;
48
40
  shippingMethodId?: string;
49
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
50
- redirectUrl?: string;
51
- }, Error | ShopwareApiError, {
41
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
52
42
  billingAddressId?: string;
53
43
  countryId?: string;
54
44
  countryStateId?: string;
@@ -4,3 +4,10 @@ export * from './useLoginCustomerMutation';
4
4
  export * from './useLogoutCustomerMutation';
5
5
  export * from './useReadCustomerQuery';
6
6
  export * from './useRegisterCustomerMutation';
7
+ export * from './useDefaultBillingAddressMutation';
8
+ export * from './useDefaultShippingAddressMutation';
9
+ export * from './useDeleteCustomerMutation';
10
+ export * from './useRegisterConfirmMutation';
11
+ export * from './useSendRecoveryMailMutation';
12
+ export * from './useChangePasswordMutation';
13
+ export * from './useRecoveryPasswordMutation';
@@ -2,15 +2,5 @@ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult,
2
2
  import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationOptions, OperationResponse } from '../types/query';
4
4
  declare const changeEmailOperation = "changeEmail post /account/change-email";
5
- export declare function useChangeEmailMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeEmailOperation>, ShopwareApiError | Error, OperationOptions<typeof changeEmailOperation>>): UseMutationReturnType<{
6
- success?: boolean;
7
- }, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown, Omit< MutationObserverIdleResult<{
8
- success?: boolean;
9
- }, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
10
- success?: boolean;
11
- }, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
12
- success?: boolean;
13
- }, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
14
- success?: boolean;
15
- }, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset">>;
5
+ export declare function useChangeEmailMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeEmailOperation>, ShopwareApiError | Error, OperationOptions<typeof changeEmailOperation>>): UseMutationReturnType<OperationResponse<"changeEmail post /account/change-email">, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"changeEmail post /account/change-email">, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"changeEmail post /account/change-email">, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"changeEmail post /account/change-email">, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"changeEmail post /account/change-email">, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset">>;
16
6
  export {};
@@ -0,0 +1,6 @@
1
+ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
+ import { OperationOptions, OperationResponse } from '../types/query';
4
+ declare const changePasswordOperation = "changePassword post /account/change-password";
5
+ export declare function useChangePasswordMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changePasswordOperation>, ShopwareApiError | Error, OperationOptions<typeof changePasswordOperation>>): UseMutationReturnType<OperationResponse<"changePassword post /account/change-password">, Error | ShopwareApiError, OperationOptions<"changePassword post /account/change-password">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"changePassword post /account/change-password">, Error | ShopwareApiError, OperationOptions<"changePassword post /account/change-password">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"changePassword post /account/change-password">, Error | ShopwareApiError, OperationOptions<"changePassword post /account/change-password">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"changePassword post /account/change-password">, Error | ShopwareApiError, OperationOptions<"changePassword post /account/change-password">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"changePassword post /account/change-password">, Error | ShopwareApiError, OperationOptions<"changePassword post /account/change-password">, unknown>, "mutate" | "reset">>;
6
+ export {};
@@ -2,15 +2,5 @@ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult,
2
2
  import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationOptions, OperationResponse } from '../types/query';
4
4
  declare const changeProfileOperation = "changeProfile post /account/change-profile";
5
- export declare function useChangeProfileMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeProfileOperation>, ShopwareApiError | Error, OperationOptions<typeof changeProfileOperation>>): UseMutationReturnType<{
6
- success?: boolean;
7
- }, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown, Omit< MutationObserverIdleResult<{
8
- success?: boolean;
9
- }, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
10
- success?: boolean;
11
- }, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
12
- success?: boolean;
13
- }, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
14
- success?: boolean;
15
- }, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset">>;
5
+ export declare function useChangeProfileMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeProfileOperation>, ShopwareApiError | Error, OperationOptions<typeof changeProfileOperation>>): UseMutationReturnType<OperationResponse<"changeProfile post /account/change-profile">, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"changeProfile post /account/change-profile">, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"changeProfile post /account/change-profile">, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"changeProfile post /account/change-profile">, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"changeProfile post /account/change-profile">, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset">>;
16
6
  export {};
@@ -0,0 +1,6 @@
1
+ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
+ import { OperationOptions, OperationResponse } from '../types/query';
4
+ declare const defaultBillingAddressOperation = "defaultBillingAddress patch /account/address/default-billing/{addressId}";
5
+ export declare function useDefaultBillingAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof defaultBillingAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof defaultBillingAddressOperation>>): UseMutationReturnType<never, Error | ShopwareApiError, OperationOptions<"defaultBillingAddress patch /account/address/default-billing/{addressId}">, unknown, Omit< MutationObserverIdleResult<never, Error | ShopwareApiError, OperationOptions<"defaultBillingAddress patch /account/address/default-billing/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<never, Error | ShopwareApiError, OperationOptions<"defaultBillingAddress patch /account/address/default-billing/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<never, Error | ShopwareApiError, OperationOptions<"defaultBillingAddress patch /account/address/default-billing/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<never, Error | ShopwareApiError, OperationOptions<"defaultBillingAddress patch /account/address/default-billing/{addressId}">, unknown>, "mutate" | "reset">>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
+ import { OperationOptions, OperationResponse } from '../types/query';
4
+ declare const defaultShippingAddressOperation = "defaultShippingAddress patch /account/address/default-shipping/{addressId}";
5
+ export declare function useDefaultShippingAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof defaultShippingAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof defaultShippingAddressOperation>>): UseMutationReturnType<never, Error | ShopwareApiError, OperationOptions<"defaultShippingAddress patch /account/address/default-shipping/{addressId}">, unknown, Omit< MutationObserverIdleResult<never, Error | ShopwareApiError, OperationOptions<"defaultShippingAddress patch /account/address/default-shipping/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<never, Error | ShopwareApiError, OperationOptions<"defaultShippingAddress patch /account/address/default-shipping/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<never, Error | ShopwareApiError, OperationOptions<"defaultShippingAddress patch /account/address/default-shipping/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<never, Error | ShopwareApiError, OperationOptions<"defaultShippingAddress patch /account/address/default-shipping/{addressId}">, unknown>, "mutate" | "reset">>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
+ import { OperationOptions, OperationResponse } from '../types/query';
4
+ declare const deleteCustomerOperation = "deleteCustomer delete /account/customer";
5
+ export declare function useDeleteCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof deleteCustomerOperation>, ShopwareApiError | Error, OperationOptions<typeof deleteCustomerOperation>>): UseMutationReturnType<never, Error | ShopwareApiError, OperationOptions<"deleteCustomer delete /account/customer">, unknown, Omit< MutationObserverIdleResult<never, Error | ShopwareApiError, OperationOptions<"deleteCustomer delete /account/customer">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<never, Error | ShopwareApiError, OperationOptions<"deleteCustomer delete /account/customer">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<never, Error | ShopwareApiError, OperationOptions<"deleteCustomer delete /account/customer">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<never, Error | ShopwareApiError, OperationOptions<"deleteCustomer delete /account/customer">, unknown>, "mutate" | "reset">>;
6
+ export {};
@@ -2,29 +2,19 @@ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult,
2
2
  import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
3
  import { OperationBody, OperationResponse } from '../types/query';
4
4
  declare const loginCustomerOperation = "loginCustomer post /account/login";
5
- export declare function useLoginCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof loginCustomerOperation>, ShopwareApiError | Error, OperationBody<typeof loginCustomerOperation>>): UseMutationReturnType<{
6
- redirectUrl?: string;
7
- }, Error | ShopwareApiError, {
5
+ export declare function useLoginCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof loginCustomerOperation>, ShopwareApiError | Error, OperationBody<typeof loginCustomerOperation>>): UseMutationReturnType<OperationResponse<"loginCustomer post /account/login">, Error | ShopwareApiError, {
8
6
  password: string;
9
7
  username: string;
10
- }, unknown, Omit< MutationObserverIdleResult<{
11
- redirectUrl?: string;
12
- }, Error | ShopwareApiError, {
8
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"loginCustomer post /account/login">, Error | ShopwareApiError, {
13
9
  password: string;
14
10
  username: string;
15
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
16
- redirectUrl?: string;
17
- }, Error | ShopwareApiError, {
11
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"loginCustomer post /account/login">, Error | ShopwareApiError, {
18
12
  password: string;
19
13
  username: string;
20
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
21
- redirectUrl?: string;
22
- }, Error | ShopwareApiError, {
14
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"loginCustomer post /account/login">, Error | ShopwareApiError, {
23
15
  password: string;
24
16
  username: string;
25
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
26
- redirectUrl?: string;
27
- }, Error | ShopwareApiError, {
17
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"loginCustomer post /account/login">, Error | ShopwareApiError, {
28
18
  password: string;
29
19
  username: string;
30
20
  }, unknown>, "mutate" | "reset">>;
@@ -2,15 +2,5 @@ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
2
2
  import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
3
3
  import { OperationOptions, OperationResponse } from '../types/query';
4
4
  declare const logoutOperation = "logoutCustomer post /account/logout";
5
- export declare function useLogoutCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof logoutOperation>, ShopwareApiError | Error, OperationOptions<typeof logoutOperation>>): UseMutationReturnType<{
6
- redirectUrl?: string;
7
- }, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown, Omit< MutationObserverIdleResult<{
8
- redirectUrl?: string;
9
- }, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
10
- redirectUrl?: string;
11
- }, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
12
- redirectUrl?: string;
13
- }, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
14
- redirectUrl?: string;
15
- }, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset">>;
5
+ export declare function useLogoutCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof logoutOperation>, ShopwareApiError | Error, OperationOptions<typeof logoutOperation>>): UseMutationReturnType<OperationResponse<"logoutCustomer post /account/logout">, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"logoutCustomer post /account/logout">, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"logoutCustomer post /account/logout">, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"logoutCustomer post /account/logout">, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"logoutCustomer post /account/logout">, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset">>;
16
6
  export {};
@@ -0,0 +1,6 @@
1
+ import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
2
+ import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
3
+ import { OperationOptions, OperationResponse } from '../types/query';
4
+ declare const recoveryPasswordOperation = "recoveryPassword post /account/recovery-password-confirm";
5
+ export declare function useRecoveryPasswordMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof recoveryPasswordOperation>, ShopwareApiError | Error, OperationOptions<typeof recoveryPasswordOperation>>): UseMutationReturnType<OperationResponse<"recoveryPassword post /account/recovery-password-confirm">, Error | ShopwareApiError, OperationOptions<"recoveryPassword post /account/recovery-password-confirm">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"recoveryPassword post /account/recovery-password-confirm">, Error | ShopwareApiError, OperationOptions<"recoveryPassword post /account/recovery-password-confirm">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"recoveryPassword post /account/recovery-password-confirm">, Error | ShopwareApiError, OperationOptions<"recoveryPassword post /account/recovery-password-confirm">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"recoveryPassword post /account/recovery-password-confirm">, Error | ShopwareApiError, OperationOptions<"recoveryPassword post /account/recovery-password-confirm">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"recoveryPassword post /account/recovery-password-confirm">, Error | ShopwareApiError, OperationOptions<"recoveryPassword post /account/recovery-password-confirm">, unknown>, "mutate" | "reset">>;
6
+ export {};