@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,167 +1,6 @@
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 { OperationOptions, OperationResponse } from '../types/query';
4
- import { components, GenericRecord } from '../../../api-types/storeApiTypes';
5
4
  declare const createCustomerAddressOperation = "createCustomerAddress post /account/address";
6
- export declare function useCreateCustomerAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createCustomerAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof createCustomerAddressOperation>>): UseMutationReturnType<{
7
- additionalAddressLine1?: string;
8
- additionalAddressLine2?: string;
9
- city: string;
10
- company?: string;
11
- country?: components["schemas"]["Country"];
12
- countryId: string;
13
- countryState?: components["schemas"]["CountryState"];
14
- countryStateId?: string;
15
- readonly createdAt?: string;
16
- customerId: string;
17
- customFields?: GenericRecord;
18
- department?: string;
19
- firstName: string;
20
- hash?: string;
21
- id: string;
22
- lastName: string;
23
- phoneNumber?: string;
24
- salutation?: components["schemas"]["Salutation"];
25
- salutationId?: string;
26
- street: string;
27
- title?: string;
28
- readonly updatedAt?: string;
29
- zipcode?: string;
30
- } & {
31
- country: components["schemas"]["Country"];
32
- countryState?: components["schemas"]["CountryState"] | null;
33
- createdAt: string;
34
- readonly customerId: string;
35
- readonly id?: string;
36
- salutation: components["schemas"]["Salutation"];
37
- updatedAt: string | null;
38
- }, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown, Omit< MutationObserverIdleResult<{
39
- additionalAddressLine1?: string;
40
- additionalAddressLine2?: string;
41
- city: string;
42
- company?: string;
43
- country?: components["schemas"]["Country"];
44
- countryId: string;
45
- countryState?: components["schemas"]["CountryState"];
46
- countryStateId?: string;
47
- readonly createdAt?: string;
48
- customerId: string;
49
- customFields?: GenericRecord;
50
- department?: string;
51
- firstName: string;
52
- hash?: string;
53
- id: string;
54
- lastName: string;
55
- phoneNumber?: string;
56
- salutation?: components["schemas"]["Salutation"];
57
- salutationId?: string;
58
- street: string;
59
- title?: string;
60
- readonly updatedAt?: string;
61
- zipcode?: string;
62
- } & {
63
- country: components["schemas"]["Country"];
64
- countryState?: components["schemas"]["CountryState"] | null;
65
- createdAt: string;
66
- readonly customerId: string;
67
- readonly id?: string;
68
- salutation: components["schemas"]["Salutation"];
69
- updatedAt: string | null;
70
- }, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
71
- additionalAddressLine1?: string;
72
- additionalAddressLine2?: string;
73
- city: string;
74
- company?: string;
75
- country?: components["schemas"]["Country"];
76
- countryId: string;
77
- countryState?: components["schemas"]["CountryState"];
78
- countryStateId?: string;
79
- readonly createdAt?: string;
80
- customerId: string;
81
- customFields?: GenericRecord;
82
- department?: string;
83
- firstName: string;
84
- hash?: string;
85
- id: string;
86
- lastName: string;
87
- phoneNumber?: string;
88
- salutation?: components["schemas"]["Salutation"];
89
- salutationId?: string;
90
- street: string;
91
- title?: string;
92
- readonly updatedAt?: string;
93
- zipcode?: string;
94
- } & {
95
- country: components["schemas"]["Country"];
96
- countryState?: components["schemas"]["CountryState"] | null;
97
- createdAt: string;
98
- readonly customerId: string;
99
- readonly id?: string;
100
- salutation: components["schemas"]["Salutation"];
101
- updatedAt: string | null;
102
- }, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
103
- additionalAddressLine1?: string;
104
- additionalAddressLine2?: string;
105
- city: string;
106
- company?: string;
107
- country?: components["schemas"]["Country"];
108
- countryId: string;
109
- countryState?: components["schemas"]["CountryState"];
110
- countryStateId?: string;
111
- readonly createdAt?: string;
112
- customerId: string;
113
- customFields?: GenericRecord;
114
- department?: string;
115
- firstName: string;
116
- hash?: string;
117
- id: string;
118
- lastName: string;
119
- phoneNumber?: string;
120
- salutation?: components["schemas"]["Salutation"];
121
- salutationId?: string;
122
- street: string;
123
- title?: string;
124
- readonly updatedAt?: string;
125
- zipcode?: string;
126
- } & {
127
- country: components["schemas"]["Country"];
128
- countryState?: components["schemas"]["CountryState"] | null;
129
- createdAt: string;
130
- readonly customerId: string;
131
- readonly id?: string;
132
- salutation: components["schemas"]["Salutation"];
133
- updatedAt: string | null;
134
- }, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
135
- additionalAddressLine1?: string;
136
- additionalAddressLine2?: string;
137
- city: string;
138
- company?: string;
139
- country?: components["schemas"]["Country"];
140
- countryId: string;
141
- countryState?: components["schemas"]["CountryState"];
142
- countryStateId?: string;
143
- readonly createdAt?: string;
144
- customerId: string;
145
- customFields?: GenericRecord;
146
- department?: string;
147
- firstName: string;
148
- hash?: string;
149
- id: string;
150
- lastName: string;
151
- phoneNumber?: string;
152
- salutation?: components["schemas"]["Salutation"];
153
- salutationId?: string;
154
- street: string;
155
- title?: string;
156
- readonly updatedAt?: string;
157
- zipcode?: string;
158
- } & {
159
- country: components["schemas"]["Country"];
160
- countryState?: components["schemas"]["CountryState"] | null;
161
- createdAt: string;
162
- readonly customerId: string;
163
- readonly id?: string;
164
- salutation: components["schemas"]["Salutation"];
165
- updatedAt: string | null;
166
- }, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset">>;
5
+ export declare function useCreateCustomerAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createCustomerAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof createCustomerAddressOperation>>): UseMutationReturnType<OperationResponse<"createCustomerAddress post /account/address">, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"createCustomerAddress post /account/address">, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"createCustomerAddress post /account/address">, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"createCustomerAddress post /account/address">, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"createCustomerAddress post /account/address">, Error | ShopwareApiError, OperationOptions<"createCustomerAddress post /account/address">, unknown>, "mutate" | "reset">>;
167
6
  export {};
@@ -1,167 +1,6 @@
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 { OperationOptions, OperationResponse } from '../types/query';
4
- import { components, GenericRecord } from '../../../api-types/storeApiTypes';
5
4
  declare const updateCustomerAddressOperation = "updateCustomerAddress patch /account/address/{addressId}";
6
- export declare function useUpdateCustomerAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateCustomerAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof updateCustomerAddressOperation>>): UseMutationReturnType<{
7
- additionalAddressLine1?: string;
8
- additionalAddressLine2?: string;
9
- city: string;
10
- company?: string;
11
- country?: components["schemas"]["Country"];
12
- countryId: string;
13
- countryState?: components["schemas"]["CountryState"];
14
- countryStateId?: string;
15
- readonly createdAt?: string;
16
- customerId: string;
17
- customFields?: GenericRecord;
18
- department?: string;
19
- firstName: string;
20
- hash?: string;
21
- id: string;
22
- lastName: string;
23
- phoneNumber?: string;
24
- salutation?: components["schemas"]["Salutation"];
25
- salutationId?: string;
26
- street: string;
27
- title?: string;
28
- readonly updatedAt?: string;
29
- zipcode?: string;
30
- } & {
31
- country: components["schemas"]["Country"];
32
- countryState?: components["schemas"]["CountryState"] | null;
33
- createdAt: string;
34
- readonly customerId: string;
35
- readonly id?: string;
36
- salutation: components["schemas"]["Salutation"];
37
- updatedAt: string | null;
38
- }, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown, Omit< MutationObserverIdleResult<{
39
- additionalAddressLine1?: string;
40
- additionalAddressLine2?: string;
41
- city: string;
42
- company?: string;
43
- country?: components["schemas"]["Country"];
44
- countryId: string;
45
- countryState?: components["schemas"]["CountryState"];
46
- countryStateId?: string;
47
- readonly createdAt?: string;
48
- customerId: string;
49
- customFields?: GenericRecord;
50
- department?: string;
51
- firstName: string;
52
- hash?: string;
53
- id: string;
54
- lastName: string;
55
- phoneNumber?: string;
56
- salutation?: components["schemas"]["Salutation"];
57
- salutationId?: string;
58
- street: string;
59
- title?: string;
60
- readonly updatedAt?: string;
61
- zipcode?: string;
62
- } & {
63
- country: components["schemas"]["Country"];
64
- countryState?: components["schemas"]["CountryState"] | null;
65
- createdAt: string;
66
- readonly customerId: string;
67
- readonly id?: string;
68
- salutation: components["schemas"]["Salutation"];
69
- updatedAt: string | null;
70
- }, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
71
- additionalAddressLine1?: string;
72
- additionalAddressLine2?: string;
73
- city: string;
74
- company?: string;
75
- country?: components["schemas"]["Country"];
76
- countryId: string;
77
- countryState?: components["schemas"]["CountryState"];
78
- countryStateId?: string;
79
- readonly createdAt?: string;
80
- customerId: string;
81
- customFields?: GenericRecord;
82
- department?: string;
83
- firstName: string;
84
- hash?: string;
85
- id: string;
86
- lastName: string;
87
- phoneNumber?: string;
88
- salutation?: components["schemas"]["Salutation"];
89
- salutationId?: string;
90
- street: string;
91
- title?: string;
92
- readonly updatedAt?: string;
93
- zipcode?: string;
94
- } & {
95
- country: components["schemas"]["Country"];
96
- countryState?: components["schemas"]["CountryState"] | null;
97
- createdAt: string;
98
- readonly customerId: string;
99
- readonly id?: string;
100
- salutation: components["schemas"]["Salutation"];
101
- updatedAt: string | null;
102
- }, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
103
- additionalAddressLine1?: string;
104
- additionalAddressLine2?: string;
105
- city: string;
106
- company?: string;
107
- country?: components["schemas"]["Country"];
108
- countryId: string;
109
- countryState?: components["schemas"]["CountryState"];
110
- countryStateId?: string;
111
- readonly createdAt?: string;
112
- customerId: string;
113
- customFields?: GenericRecord;
114
- department?: string;
115
- firstName: string;
116
- hash?: string;
117
- id: string;
118
- lastName: string;
119
- phoneNumber?: string;
120
- salutation?: components["schemas"]["Salutation"];
121
- salutationId?: string;
122
- street: string;
123
- title?: string;
124
- readonly updatedAt?: string;
125
- zipcode?: string;
126
- } & {
127
- country: components["schemas"]["Country"];
128
- countryState?: components["schemas"]["CountryState"] | null;
129
- createdAt: string;
130
- readonly customerId: string;
131
- readonly id?: string;
132
- salutation: components["schemas"]["Salutation"];
133
- updatedAt: string | null;
134
- }, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
135
- additionalAddressLine1?: string;
136
- additionalAddressLine2?: string;
137
- city: string;
138
- company?: string;
139
- country?: components["schemas"]["Country"];
140
- countryId: string;
141
- countryState?: components["schemas"]["CountryState"];
142
- countryStateId?: string;
143
- readonly createdAt?: string;
144
- customerId: string;
145
- customFields?: GenericRecord;
146
- department?: string;
147
- firstName: string;
148
- hash?: string;
149
- id: string;
150
- lastName: string;
151
- phoneNumber?: string;
152
- salutation?: components["schemas"]["Salutation"];
153
- salutationId?: string;
154
- street: string;
155
- title?: string;
156
- readonly updatedAt?: string;
157
- zipcode?: string;
158
- } & {
159
- country: components["schemas"]["Country"];
160
- countryState?: components["schemas"]["CountryState"] | null;
161
- createdAt: string;
162
- readonly customerId: string;
163
- readonly id?: string;
164
- salutation: components["schemas"]["Salutation"];
165
- updatedAt: string | null;
166
- }, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset">>;
5
+ export declare function useUpdateCustomerAddressMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateCustomerAddressOperation>, ShopwareApiError | Error, OperationOptions<typeof updateCustomerAddressOperation>>): UseMutationReturnType<OperationResponse<"updateCustomerAddress patch /account/address/{addressId}">, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateCustomerAddress patch /account/address/{addressId}">, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateCustomerAddress patch /account/address/{addressId}">, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateCustomerAddress patch /account/address/{addressId}">, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateCustomerAddress patch /account/address/{addressId}">, Error | ShopwareApiError, OperationOptions<"updateCustomerAddress patch /account/address/{addressId}">, unknown>, "mutate" | "reset">>;
167
6
  export {};
@@ -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 addCartItemOperation = "addLineItem post /checkout/cart/line-item";
6
5
  type LineItem = OperationBody<typeof addCartItemOperation>['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 addCartItemOperation>, 'items'> & {
9
8
  items: LineItemPayload[];
10
9
  };
11
- export declare function useAddLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof addCartItemOperation>, 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 useAddLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof addCartItemOperation>, ShopwareApiError | Error, Body>): UseMutationReturnType<OperationResponse<"addLineItem post /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown, Omit< MutationObserverIdleResult<OperationResponse<"addLineItem post /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"addLineItem post /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"addLineItem post /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"addLineItem post /checkout/cart/line-item">, Error | ShopwareApiError, Body, unknown>, "mutate" | "reset">>;
132
11
  export {};
@@ -1,137 +1,16 @@
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 removeCartItemOperation = "removeLineItem post /checkout/cart/line-item/delete";
6
- export declare function useRemoveLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof removeCartItemOperation>, ShopwareApiError | Error, OperationBody<typeof removeCartItemOperation>>): UseMutationReturnType<{
7
- affiliateCode?: string | null;
8
- apiAlias: "cart";
9
- campaignCode?: string | null;
10
- customerComment?: string | null;
11
- deliveries?: components["schemas"]["CartDelivery"][];
12
- errors?: components["schemas"]["CartError"][] | {
13
- [key: string]: {
14
- code: number;
15
- key: string;
16
- level: number;
17
- message: string;
18
- messageKey: string;
19
- };
20
- };
21
- lineItems?: components["schemas"]["LineItem"][];
22
- modified?: boolean;
23
- name?: string;
24
- price: components["schemas"]["CalculatedPrice"];
25
- token?: string;
26
- transactions?: {
27
- amount?: components["schemas"]["CalculatedPrice"];
28
- paymentMethodId?: string;
29
- }[];
30
- }, Error | ShopwareApiError, {
5
+ export declare function useRemoveLineItemMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof removeCartItemOperation>, ShopwareApiError | Error, OperationBody<typeof removeCartItemOperation>>): UseMutationReturnType<OperationResponse<"removeLineItem post /checkout/cart/line-item/delete">, Error | ShopwareApiError, {
31
6
  ids: [string, ...string[]];
32
- }, unknown, Omit< MutationObserverIdleResult<{
33
- affiliateCode?: string | null;
34
- apiAlias: "cart";
35
- campaignCode?: string | null;
36
- customerComment?: string | null;
37
- deliveries?: components["schemas"]["CartDelivery"][];
38
- errors?: components["schemas"]["CartError"][] | {
39
- [key: string]: {
40
- code: number;
41
- key: string;
42
- level: number;
43
- message: string;
44
- messageKey: string;
45
- };
46
- };
47
- lineItems?: components["schemas"]["LineItem"][];
48
- modified?: boolean;
49
- name?: string;
50
- price: components["schemas"]["CalculatedPrice"];
51
- token?: string;
52
- transactions?: {
53
- amount?: components["schemas"]["CalculatedPrice"];
54
- paymentMethodId?: string;
55
- }[];
56
- }, Error | ShopwareApiError, {
7
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"removeLineItem post /checkout/cart/line-item/delete">, Error | ShopwareApiError, {
57
8
  ids: [string, ...string[]];
58
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
59
- affiliateCode?: string | null;
60
- apiAlias: "cart";
61
- campaignCode?: string | null;
62
- customerComment?: string | null;
63
- deliveries?: components["schemas"]["CartDelivery"][];
64
- errors?: components["schemas"]["CartError"][] | {
65
- [key: string]: {
66
- code: number;
67
- key: string;
68
- level: number;
69
- message: string;
70
- messageKey: string;
71
- };
72
- };
73
- lineItems?: components["schemas"]["LineItem"][];
74
- modified?: boolean;
75
- name?: string;
76
- price: components["schemas"]["CalculatedPrice"];
77
- token?: string;
78
- transactions?: {
79
- amount?: components["schemas"]["CalculatedPrice"];
80
- paymentMethodId?: string;
81
- }[];
82
- }, Error | ShopwareApiError, {
9
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"removeLineItem post /checkout/cart/line-item/delete">, Error | ShopwareApiError, {
83
10
  ids: [string, ...string[]];
84
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
85
- affiliateCode?: string | null;
86
- apiAlias: "cart";
87
- campaignCode?: string | null;
88
- customerComment?: string | null;
89
- deliveries?: components["schemas"]["CartDelivery"][];
90
- errors?: components["schemas"]["CartError"][] | {
91
- [key: string]: {
92
- code: number;
93
- key: string;
94
- level: number;
95
- message: string;
96
- messageKey: string;
97
- };
98
- };
99
- lineItems?: components["schemas"]["LineItem"][];
100
- modified?: boolean;
101
- name?: string;
102
- price: components["schemas"]["CalculatedPrice"];
103
- token?: string;
104
- transactions?: {
105
- amount?: components["schemas"]["CalculatedPrice"];
106
- paymentMethodId?: string;
107
- }[];
108
- }, Error | ShopwareApiError, {
11
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"removeLineItem post /checkout/cart/line-item/delete">, Error | ShopwareApiError, {
109
12
  ids: [string, ...string[]];
110
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
111
- affiliateCode?: string | null;
112
- apiAlias: "cart";
113
- campaignCode?: string | null;
114
- customerComment?: string | null;
115
- deliveries?: components["schemas"]["CartDelivery"][];
116
- errors?: components["schemas"]["CartError"][] | {
117
- [key: string]: {
118
- code: number;
119
- key: string;
120
- level: number;
121
- message: string;
122
- messageKey: string;
123
- };
124
- };
125
- lineItems?: components["schemas"]["LineItem"][];
126
- modified?: boolean;
127
- name?: string;
128
- price: components["schemas"]["CalculatedPrice"];
129
- token?: string;
130
- transactions?: {
131
- amount?: components["schemas"]["CalculatedPrice"];
132
- paymentMethodId?: string;
133
- }[];
134
- }, Error | ShopwareApiError, {
13
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"removeLineItem post /checkout/cart/line-item/delete">, Error | ShopwareApiError, {
135
14
  ids: [string, ...string[]];
136
15
  }, unknown>, "mutate" | "reset">>;
137
16
  export {};