@teamnovu/kit-shopware-composables 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/global.d.ts +8 -0
- package/dist/helpers/checkout/index.d.ts +1 -1
- package/dist/helpers/checkout/{useAddresses.d.ts → useCheckoutAddresses.d.ts} +9 -51
- package/dist/helpers/checkout/useOrderDetails.d.ts +3 -8
- package/dist/helpers/checkout/usePaymentMethods.d.ts +11 -49
- package/dist/helpers/checkout/useShippingMethods.d.ts +11 -55
- package/dist/helpers/general/usePagination.d.ts +3 -1
- package/dist/helpers/user/useIsLoggedIn.d.ts +3 -2
- package/dist/helpers/user/useUser.d.ts +4 -106
- package/dist/index.mjs +808 -640
- package/dist/keys.d.ts +42 -1
- package/dist/query/address/index.d.ts +1 -0
- package/dist/query/address/useCreateCustomerAddressMutation.d.ts +7 -6
- package/dist/query/address/useDeleteCustomerAddressMutation.d.ts +2 -1
- package/dist/query/address/useListAddressQuery.d.ts +5 -36
- package/dist/query/address/useUpdateCustomerAddressMutation.d.ts +167 -0
- package/dist/query/cart/useAddLineItemMutation.d.ts +7 -6
- package/dist/query/cart/useReadCartQuery.d.ts +5 -100
- package/dist/query/cart/useRemoveLineItemMutation.d.ts +7 -6
- package/dist/query/cart/useUpdateLineItemMutation.d.ts +7 -6
- package/dist/query/checkout/index.d.ts +0 -1
- package/dist/query/checkout/useCreateOrderMutation.d.ts +7 -6
- package/dist/query/context/useReadContextQuery.d.ts +8 -148
- package/dist/query/context/useUpdateContextMutation.d.ts +7 -6
- package/dist/query/country/index.d.ts +1 -0
- package/dist/query/country/useReadCountryQuery.d.ts +17 -0
- package/dist/query/customer/useChangeEmailMutation.d.ts +7 -6
- package/dist/query/customer/useChangeProfileMutation.d.ts +7 -6
- package/dist/query/customer/useLoginCustomerMutation.d.ts +7 -6
- package/dist/query/customer/useLogoutCustomerMutation.d.ts +7 -6
- package/dist/query/customer/useReadCustomerQuery.d.ts +10 -213
- package/dist/query/customer/useRegisterCustomerMutation.d.ts +7 -6
- package/dist/query/index.d.ts +4 -0
- package/dist/query/navigation/index.d.ts +1 -0
- package/dist/query/navigation/useReadNavigationQuery.d.ts +22 -0
- package/dist/query/order/useReadOrderQuery.d.ts +5 -32
- package/dist/query/payment/useHandlePaymentMutation.d.ts +7 -6
- package/dist/query/payment/useOrderSetPaymentMutation.d.ts +7 -6
- package/dist/query/payment/useReadPaymentMethodQuery.d.ts +5 -20
- package/dist/query/products/useReadCategoryListQuery.d.ts +5 -36
- package/dist/query/products/useReadCompactProductListingQuery.d.ts +5 -20
- package/dist/query/products/useReadCustomProductDetailQuery.d.ts +5 -52
- package/dist/query/salutation/index.d.ts +1 -0
- package/dist/query/salutation/useReadSalutationQuery.d.ts +17 -0
- package/dist/query/seoUrl/index.d.ts +1 -0
- package/dist/query/seoUrl/useReadSeoUrlQuery.d.ts +17 -0
- package/dist/query/shipping/useReadShippingMethodQuery.d.ts +5 -44
- package/dist/query/types/index.d.ts +1 -0
- package/dist/query/types/operations.d.ts +3 -3
- package/dist/query/types/query.d.ts +2 -3
- package/dist/query/types/util.d.ts +6 -0
- package/dist/util/unrefOptions.d.ts +2 -2
- package/docs/index.md +3 -3
- package/package.json +6 -4
- package/src/global.d.ts +8 -0
- package/src/helpers/checkout/index.ts +1 -1
- package/src/helpers/checkout/{useAddresses.ts → useCheckoutAddresses.ts} +2 -2
- package/src/helpers/checkout/useOrderDetails.ts +1 -1
- package/src/helpers/checkout/useOrderPayment.ts +1 -1
- package/src/helpers/checkout/usePaymentMethods.ts +5 -2
- package/src/helpers/checkout/useShippingMethods.ts +5 -2
- package/src/helpers/general/usePagination.ts +10 -5
- package/src/helpers/user/useIsLoggedIn.ts +6 -8
- package/src/helpers/user/useUser.ts +1 -1
- package/src/inject.ts +1 -1
- package/src/keys.ts +66 -1
- package/src/query/address/index.ts +1 -0
- package/src/query/address/useCreateCustomerAddressMutation.ts +7 -6
- package/src/query/address/useDeleteCustomerAddressMutation.ts +7 -6
- package/src/query/address/useUpdateCustomerAddressMutation.ts +42 -0
- package/src/query/cart/useAddLineItemMutation.ts +7 -6
- package/src/query/cart/useRemoveLineItemMutation.ts +6 -5
- package/src/query/cart/useUpdateLineItemMutation.ts +5 -4
- package/src/query/checkout/index.ts +0 -1
- package/src/query/checkout/useCreateOrderMutation.ts +11 -8
- package/src/query/context/useReadContextQuery.ts +14 -5
- package/src/query/context/useUpdateContextMutation.ts +6 -5
- package/src/query/country/index.ts +1 -0
- package/src/query/country/useReadCountryQuery.ts +31 -0
- package/src/query/customer/useChangeEmailMutation.ts +7 -7
- package/src/query/customer/useChangeProfileMutation.ts +7 -7
- package/src/query/customer/useLoginCustomerMutation.ts +12 -9
- package/src/query/customer/useLogoutCustomerMutation.ts +11 -7
- package/src/query/customer/useReadCustomerQuery.ts +2 -1
- package/src/query/customer/useRegisterCustomerMutation.ts +7 -7
- package/src/query/index.ts +4 -0
- package/src/query/navigation/index.ts +1 -0
- package/src/query/navigation/useReadNavigationQuery.ts +43 -0
- package/src/query/order/useReadOrderQuery.ts +0 -2
- package/src/query/payment/useHandlePaymentMutation.ts +5 -4
- package/src/query/payment/useOrderSetPaymentMutation.ts +6 -5
- package/src/query/salutation/index.ts +1 -0
- package/src/query/salutation/useReadSalutationQuery.ts +31 -0
- package/src/query/seoUrl/index.ts +1 -0
- package/src/query/seoUrl/useReadSeoUrlQuery.ts +31 -0
- package/src/query/types/index.ts +1 -0
- package/src/query/types/operations.ts +5 -5
- package/src/query/types/query.ts +4 -6
- package/src/query/types/util.ts +19 -0
- package/src/util/unrefOptions.ts +4 -4
- package/src/util/useOptimistic.ts +2 -1
- package/tsconfig.json +4 -2
- package/vite.config.js +6 -1
- package/dist/query/checkout/useCheckout.d.ts +0 -1
- package/src/query/checkout/useCheckout.ts +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
1
2
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
3
|
import { OperationOptions, OperationResponse } from '../types/query';
|
|
3
4
|
import { components, GenericRecord } from '../../../api-types/storeApiTypes';
|
|
4
5
|
declare const createOrderOperation = "createOrder post /checkout/order";
|
|
5
|
-
export declare function useCreateOrderMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createOrderOperation>,
|
|
6
|
+
export declare function useCreateOrderMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof createOrderOperation>, ShopwareApiError | Error, OperationOptions<typeof createOrderOperation>>): UseMutationReturnType<{
|
|
6
7
|
addresses?: components["schemas"]["OrderAddress"][];
|
|
7
8
|
affiliateCode?: string;
|
|
8
9
|
readonly amountNet?: number;
|
|
@@ -57,7 +58,7 @@ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOpti
|
|
|
57
58
|
readonly updatedAt?: string;
|
|
58
59
|
updatedById?: string;
|
|
59
60
|
versionId?: string;
|
|
60
|
-
},
|
|
61
|
+
}, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown, Omit< MutationObserverIdleResult<{
|
|
61
62
|
addresses?: components["schemas"]["OrderAddress"][];
|
|
62
63
|
affiliateCode?: string;
|
|
63
64
|
readonly amountNet?: number;
|
|
@@ -112,7 +113,7 @@ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOpti
|
|
|
112
113
|
readonly updatedAt?: string;
|
|
113
114
|
updatedById?: string;
|
|
114
115
|
versionId?: string;
|
|
115
|
-
},
|
|
116
|
+
}, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
116
117
|
addresses?: components["schemas"]["OrderAddress"][];
|
|
117
118
|
affiliateCode?: string;
|
|
118
119
|
readonly amountNet?: number;
|
|
@@ -167,7 +168,7 @@ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOpti
|
|
|
167
168
|
readonly updatedAt?: string;
|
|
168
169
|
updatedById?: string;
|
|
169
170
|
versionId?: string;
|
|
170
|
-
},
|
|
171
|
+
}, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
171
172
|
addresses?: components["schemas"]["OrderAddress"][];
|
|
172
173
|
affiliateCode?: string;
|
|
173
174
|
readonly amountNet?: number;
|
|
@@ -222,7 +223,7 @@ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOpti
|
|
|
222
223
|
readonly updatedAt?: string;
|
|
223
224
|
updatedById?: string;
|
|
224
225
|
versionId?: string;
|
|
225
|
-
},
|
|
226
|
+
}, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
226
227
|
addresses?: components["schemas"]["OrderAddress"][];
|
|
227
228
|
affiliateCode?: string;
|
|
228
229
|
readonly amountNet?: number;
|
|
@@ -277,5 +278,5 @@ export declare function useCreateOrderMutation(mutationOptions?: UseMutationOpti
|
|
|
277
278
|
readonly updatedAt?: string;
|
|
278
279
|
updatedById?: string;
|
|
279
280
|
versionId?: string;
|
|
280
|
-
},
|
|
281
|
+
}, Error | ShopwareApiError, OperationOptions<"createOrder post /checkout/order">, unknown>, "mutate" | "reset">>;
|
|
281
282
|
export {};
|
|
@@ -1,153 +1,13 @@
|
|
|
1
|
+
import { OperationOptions } from '../types/query';
|
|
1
2
|
import { UndefinedInitialQueryOptions, UseQueryReturnType } from '@tanstack/vue-query';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
currencyFactor?: number;
|
|
7
|
-
currencyId?: string;
|
|
8
|
-
currencyPrecision?: number;
|
|
9
|
-
languageIdChain?: string[];
|
|
10
|
-
scope?: string;
|
|
11
|
-
source?: string;
|
|
12
|
-
taxState?: string;
|
|
13
|
-
useCache?: boolean;
|
|
14
|
-
versionId?: string;
|
|
15
|
-
};
|
|
16
|
-
currency?: components["schemas"]["Currency"];
|
|
17
|
-
currentCustomerGroup?: {
|
|
18
|
-
displayGross?: boolean;
|
|
19
|
-
name?: string;
|
|
20
|
-
};
|
|
21
|
-
customer?: components["schemas"]["Customer"];
|
|
22
|
-
fallbackCustomerGroup?: {
|
|
23
|
-
displayGross?: boolean;
|
|
24
|
-
name?: string;
|
|
25
|
-
};
|
|
26
|
-
paymentMethod?: components["schemas"]["PaymentMethod"];
|
|
27
|
-
salesChannel: components["schemas"]["SalesChannel"];
|
|
28
|
-
shippingLocation?: {
|
|
29
|
-
address?: components["schemas"]["CustomerAddress"];
|
|
30
|
-
apiAlias?: "cart_delivery_shipping_location";
|
|
31
|
-
country?: components["schemas"]["Country"];
|
|
32
|
-
};
|
|
33
|
-
shippingMethod?: components["schemas"]["ShippingMethod"];
|
|
34
|
-
taxRules?: {
|
|
35
|
-
name?: string;
|
|
36
|
-
taxRate?: number;
|
|
37
|
-
}[];
|
|
38
|
-
token?: string;
|
|
39
|
-
}, Error, {
|
|
40
|
-
apiAlias: "sales_channel_context";
|
|
41
|
-
context?: {
|
|
42
|
-
currencyFactor?: number;
|
|
43
|
-
currencyId?: string;
|
|
44
|
-
currencyPrecision?: number;
|
|
45
|
-
languageIdChain?: string[];
|
|
46
|
-
scope?: string;
|
|
47
|
-
source?: string;
|
|
48
|
-
taxState?: string;
|
|
49
|
-
useCache?: boolean;
|
|
50
|
-
versionId?: string;
|
|
51
|
-
};
|
|
52
|
-
currency?: components["schemas"]["Currency"];
|
|
53
|
-
currentCustomerGroup?: {
|
|
54
|
-
displayGross?: boolean;
|
|
55
|
-
name?: string;
|
|
56
|
-
};
|
|
57
|
-
customer?: components["schemas"]["Customer"];
|
|
58
|
-
fallbackCustomerGroup?: {
|
|
59
|
-
displayGross?: boolean;
|
|
60
|
-
name?: string;
|
|
61
|
-
};
|
|
62
|
-
paymentMethod?: components["schemas"]["PaymentMethod"];
|
|
63
|
-
salesChannel: components["schemas"]["SalesChannel"];
|
|
64
|
-
shippingLocation?: {
|
|
65
|
-
address?: components["schemas"]["CustomerAddress"];
|
|
66
|
-
apiAlias?: "cart_delivery_shipping_location";
|
|
67
|
-
country?: components["schemas"]["Country"];
|
|
68
|
-
};
|
|
69
|
-
shippingMethod?: components["schemas"]["ShippingMethod"];
|
|
70
|
-
taxRules?: {
|
|
71
|
-
name?: string;
|
|
72
|
-
taxRate?: number;
|
|
73
|
-
}[];
|
|
74
|
-
token?: string;
|
|
75
|
-
}, readonly ["context"]> & {
|
|
3
|
+
import { BrandedResponse } from '@teamnovu/kit-shopware-api-client';
|
|
4
|
+
import { Operations } from '..';
|
|
5
|
+
declare const readContextOperation = "readContext get /context";
|
|
6
|
+
export declare function useReadContextQueryOptions(options?: OperationOptions<typeof readContextOperation>): UndefinedInitialQueryOptions<BrandedResponse<Operations, "readContext get /context">, Error, BrandedResponse<Operations, "readContext get /context">, readonly ["context"]> & {
|
|
76
7
|
queryKey: readonly ["context"] & {
|
|
77
|
-
[dataTagSymbol]:
|
|
78
|
-
apiAlias: "sales_channel_context";
|
|
79
|
-
context?: {
|
|
80
|
-
currencyFactor?: number;
|
|
81
|
-
currencyId?: string;
|
|
82
|
-
currencyPrecision?: number;
|
|
83
|
-
languageIdChain?: string[];
|
|
84
|
-
scope?: string;
|
|
85
|
-
source?: string;
|
|
86
|
-
taxState?: string;
|
|
87
|
-
useCache?: boolean;
|
|
88
|
-
versionId?: string;
|
|
89
|
-
};
|
|
90
|
-
currency?: components["schemas"]["Currency"];
|
|
91
|
-
currentCustomerGroup?: {
|
|
92
|
-
displayGross?: boolean;
|
|
93
|
-
name?: string;
|
|
94
|
-
};
|
|
95
|
-
customer?: components["schemas"]["Customer"];
|
|
96
|
-
fallbackCustomerGroup?: {
|
|
97
|
-
displayGross?: boolean;
|
|
98
|
-
name?: string;
|
|
99
|
-
};
|
|
100
|
-
paymentMethod?: components["schemas"]["PaymentMethod"];
|
|
101
|
-
salesChannel: components["schemas"]["SalesChannel"];
|
|
102
|
-
shippingLocation?: {
|
|
103
|
-
address?: components["schemas"]["CustomerAddress"];
|
|
104
|
-
apiAlias?: "cart_delivery_shipping_location";
|
|
105
|
-
country?: components["schemas"]["Country"];
|
|
106
|
-
};
|
|
107
|
-
shippingMethod?: components["schemas"]["ShippingMethod"];
|
|
108
|
-
taxRules?: {
|
|
109
|
-
name?: string;
|
|
110
|
-
taxRate?: number;
|
|
111
|
-
}[];
|
|
112
|
-
token?: string;
|
|
113
|
-
};
|
|
8
|
+
[dataTagSymbol]: BrandedResponse<Operations, "readContext get /context">;
|
|
114
9
|
[dataTagErrorSymbol]: Error;
|
|
115
10
|
};
|
|
116
11
|
};
|
|
117
|
-
export declare function useReadContextQuery(): UseQueryReturnType<
|
|
118
|
-
|
|
119
|
-
context?: {
|
|
120
|
-
currencyFactor?: number;
|
|
121
|
-
currencyId?: string;
|
|
122
|
-
currencyPrecision?: number;
|
|
123
|
-
languageIdChain?: string[];
|
|
124
|
-
scope?: string;
|
|
125
|
-
source?: string;
|
|
126
|
-
taxState?: string;
|
|
127
|
-
useCache?: boolean;
|
|
128
|
-
versionId?: string;
|
|
129
|
-
};
|
|
130
|
-
currency?: components["schemas"]["Currency"];
|
|
131
|
-
currentCustomerGroup?: {
|
|
132
|
-
displayGross?: boolean;
|
|
133
|
-
name?: string;
|
|
134
|
-
};
|
|
135
|
-
customer?: components["schemas"]["Customer"];
|
|
136
|
-
fallbackCustomerGroup?: {
|
|
137
|
-
displayGross?: boolean;
|
|
138
|
-
name?: string;
|
|
139
|
-
};
|
|
140
|
-
paymentMethod?: components["schemas"]["PaymentMethod"];
|
|
141
|
-
salesChannel: components["schemas"]["SalesChannel"];
|
|
142
|
-
shippingLocation?: {
|
|
143
|
-
address?: components["schemas"]["CustomerAddress"];
|
|
144
|
-
apiAlias?: "cart_delivery_shipping_location";
|
|
145
|
-
country?: components["schemas"]["Country"];
|
|
146
|
-
};
|
|
147
|
-
shippingMethod?: components["schemas"]["ShippingMethod"];
|
|
148
|
-
taxRules?: {
|
|
149
|
-
name?: string;
|
|
150
|
-
taxRate?: number;
|
|
151
|
-
}[];
|
|
152
|
-
token?: string;
|
|
153
|
-
}, Error>;
|
|
12
|
+
export declare function useReadContextQuery(options?: OperationOptions<typeof readContextOperation>): UseQueryReturnType<BrandedResponse<Operations, "readContext get /context">, Error>;
|
|
13
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
2
3
|
import { OperationBody, OperationResponse } from '../types/query';
|
|
3
4
|
declare const updateContextOperation = "updateContext patch /context";
|
|
4
|
-
export declare function useUpdateContextMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateContextOperation>,
|
|
5
|
+
export declare function useUpdateContextMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof updateContextOperation>, ShopwareApiError | Error, OperationBody<typeof updateContextOperation>>): UseMutationReturnType<{
|
|
5
6
|
redirectUrl?: string;
|
|
6
|
-
},
|
|
7
|
+
}, Error | ShopwareApiError, {
|
|
7
8
|
billingAddressId?: string;
|
|
8
9
|
countryId?: string;
|
|
9
10
|
countryStateId?: string;
|
|
@@ -14,7 +15,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
|
|
|
14
15
|
shippingMethodId?: string;
|
|
15
16
|
}, unknown, Omit< MutationObserverIdleResult<{
|
|
16
17
|
redirectUrl?: string;
|
|
17
|
-
},
|
|
18
|
+
}, Error | ShopwareApiError, {
|
|
18
19
|
billingAddressId?: string;
|
|
19
20
|
countryId?: string;
|
|
20
21
|
countryStateId?: string;
|
|
@@ -25,7 +26,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
|
|
|
25
26
|
shippingMethodId?: string;
|
|
26
27
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
27
28
|
redirectUrl?: string;
|
|
28
|
-
},
|
|
29
|
+
}, Error | ShopwareApiError, {
|
|
29
30
|
billingAddressId?: string;
|
|
30
31
|
countryId?: string;
|
|
31
32
|
countryStateId?: string;
|
|
@@ -36,7 +37,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
|
|
|
36
37
|
shippingMethodId?: string;
|
|
37
38
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
38
39
|
redirectUrl?: string;
|
|
39
|
-
},
|
|
40
|
+
}, Error | ShopwareApiError, {
|
|
40
41
|
billingAddressId?: string;
|
|
41
42
|
countryId?: string;
|
|
42
43
|
countryStateId?: string;
|
|
@@ -47,7 +48,7 @@ export declare function useUpdateContextMutation(mutationOptions?: UseMutationOp
|
|
|
47
48
|
shippingMethodId?: string;
|
|
48
49
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
49
50
|
redirectUrl?: string;
|
|
50
|
-
},
|
|
51
|
+
}, Error | ShopwareApiError, {
|
|
51
52
|
billingAddressId?: string;
|
|
52
53
|
countryId?: string;
|
|
53
54
|
countryStateId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useReadCountryQuery';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperationOptions } from '../types/query';
|
|
2
|
+
import { UndefinedInitialQueryOptions, UseQueryReturnType } from '@tanstack/vue-query';
|
|
3
|
+
import { BrandedResponse } from '@teamnovu/kit-shopware-api-client';
|
|
4
|
+
import { Operations } from '..';
|
|
5
|
+
declare const readCountryOperation = "readCountry post /country";
|
|
6
|
+
export declare const useReadCountryQueryOptions: (options?: OperationOptions<typeof readCountryOperation>) => UndefinedInitialQueryOptions<BrandedResponse<Operations, "readCountry post /country">, Error, BrandedResponse<Operations, "readCountry post /country">, readonly ["country", "list", {
|
|
7
|
+
readonly body: unknown;
|
|
8
|
+
}]> & {
|
|
9
|
+
queryKey: readonly ["country", "list", {
|
|
10
|
+
readonly body: unknown;
|
|
11
|
+
}] & {
|
|
12
|
+
[dataTagSymbol]: BrandedResponse<Operations, "readCountry post /country">;
|
|
13
|
+
[dataTagErrorSymbol]: Error;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare function useReadCountryQuery(options?: OperationOptions<typeof readCountryOperation>): UseQueryReturnType<BrandedResponse<Operations, "readCountry post /country">, Error>;
|
|
17
|
+
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
2
3
|
import { OperationOptions, OperationResponse } from '../types/query';
|
|
3
4
|
declare const changeEmailOperation = "changeEmail post /account/change-email";
|
|
4
|
-
export declare function useChangeEmailMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeEmailOperation>,
|
|
5
|
+
export declare function useChangeEmailMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeEmailOperation>, ShopwareApiError | Error, OperationOptions<typeof changeEmailOperation>>): UseMutationReturnType<{
|
|
5
6
|
success?: boolean;
|
|
6
|
-
},
|
|
7
|
+
}, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown, Omit< MutationObserverIdleResult<{
|
|
7
8
|
success?: boolean;
|
|
8
|
-
},
|
|
9
|
+
}, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
9
10
|
success?: boolean;
|
|
10
|
-
},
|
|
11
|
+
}, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
11
12
|
success?: boolean;
|
|
12
|
-
},
|
|
13
|
+
}, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
13
14
|
success?: boolean;
|
|
14
|
-
},
|
|
15
|
+
}, Error | ShopwareApiError, OperationOptions<"changeEmail post /account/change-email">, unknown>, "mutate" | "reset">>;
|
|
15
16
|
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
2
3
|
import { OperationOptions, OperationResponse } from '../types/query';
|
|
3
4
|
declare const changeProfileOperation = "changeProfile post /account/change-profile";
|
|
4
|
-
export declare function useChangeProfileMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeProfileOperation>,
|
|
5
|
+
export declare function useChangeProfileMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof changeProfileOperation>, ShopwareApiError | Error, OperationOptions<typeof changeProfileOperation>>): UseMutationReturnType<{
|
|
5
6
|
success?: boolean;
|
|
6
|
-
},
|
|
7
|
+
}, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown, Omit< MutationObserverIdleResult<{
|
|
7
8
|
success?: boolean;
|
|
8
|
-
},
|
|
9
|
+
}, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
9
10
|
success?: boolean;
|
|
10
|
-
},
|
|
11
|
+
}, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
11
12
|
success?: boolean;
|
|
12
|
-
},
|
|
13
|
+
}, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
13
14
|
success?: boolean;
|
|
14
|
-
},
|
|
15
|
+
}, Error | ShopwareApiError, OperationOptions<"changeProfile post /account/change-profile">, unknown>, "mutate" | "reset">>;
|
|
15
16
|
export {};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
2
3
|
import { OperationBody, OperationResponse } from '../types/query';
|
|
3
4
|
declare const loginCustomerOperation = "loginCustomer post /account/login";
|
|
4
|
-
export declare function useLoginCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof loginCustomerOperation>,
|
|
5
|
+
export declare function useLoginCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof loginCustomerOperation>, ShopwareApiError | Error, OperationBody<typeof loginCustomerOperation>>): UseMutationReturnType<{
|
|
5
6
|
redirectUrl?: string;
|
|
6
|
-
},
|
|
7
|
+
}, Error | ShopwareApiError, {
|
|
7
8
|
password: string;
|
|
8
9
|
username: string;
|
|
9
10
|
}, unknown, Omit< MutationObserverIdleResult<{
|
|
10
11
|
redirectUrl?: string;
|
|
11
|
-
},
|
|
12
|
+
}, Error | ShopwareApiError, {
|
|
12
13
|
password: string;
|
|
13
14
|
username: string;
|
|
14
15
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
15
16
|
redirectUrl?: string;
|
|
16
|
-
},
|
|
17
|
+
}, Error | ShopwareApiError, {
|
|
17
18
|
password: string;
|
|
18
19
|
username: string;
|
|
19
20
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
20
21
|
redirectUrl?: string;
|
|
21
|
-
},
|
|
22
|
+
}, Error | ShopwareApiError, {
|
|
22
23
|
password: string;
|
|
23
24
|
username: string;
|
|
24
25
|
}, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
25
26
|
redirectUrl?: string;
|
|
26
|
-
},
|
|
27
|
+
}, Error | ShopwareApiError, {
|
|
27
28
|
password: string;
|
|
28
29
|
username: string;
|
|
29
30
|
}, unknown>, "mutate" | "reset">>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { ShopwareApiError } from '@teamnovu/kit-shopware-api-client';
|
|
1
2
|
import { UseMutationOptions, UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult } from '@tanstack/vue-query';
|
|
2
3
|
import { OperationOptions, OperationResponse } from '../types/query';
|
|
3
4
|
declare const logoutOperation = "logoutCustomer post /account/logout";
|
|
4
|
-
export declare function useLogoutCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof logoutOperation>,
|
|
5
|
+
export declare function useLogoutCustomerMutation(mutationOptions?: UseMutationOptions<OperationResponse<typeof logoutOperation>, ShopwareApiError | Error, OperationOptions<typeof logoutOperation>>): UseMutationReturnType<{
|
|
5
6
|
redirectUrl?: string;
|
|
6
|
-
},
|
|
7
|
+
}, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown, Omit< MutationObserverIdleResult<{
|
|
7
8
|
redirectUrl?: string;
|
|
8
|
-
},
|
|
9
|
+
}, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
|
|
9
10
|
redirectUrl?: string;
|
|
10
|
-
},
|
|
11
|
+
}, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
|
|
11
12
|
redirectUrl?: string;
|
|
12
|
-
},
|
|
13
|
+
}, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
|
|
13
14
|
redirectUrl?: string;
|
|
14
|
-
},
|
|
15
|
+
}, Error | ShopwareApiError, OperationOptions<"logoutCustomer post /account/logout">, unknown>, "mutate" | "reset">>;
|
|
15
16
|
export {};
|
|
@@ -1,220 +1,17 @@
|
|
|
1
1
|
import { OperationOptions } from '../types/query';
|
|
2
2
|
import { UndefinedInitialQueryOptions, UseQueryReturnType } from '@tanstack/vue-query';
|
|
3
|
-
import {
|
|
3
|
+
import { BrandedResponse } from '@teamnovu/kit-shopware-api-client';
|
|
4
|
+
import { Operations } from '..';
|
|
4
5
|
declare const readCustomer = "readCustomer post /account/customer";
|
|
5
|
-
export declare function useReadCustomerQueryOptions(options?: OperationOptions<typeof readCustomer>): UndefinedInitialQueryOptions<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
birthday?: string;
|
|
13
|
-
campaignCode?: string;
|
|
14
|
-
readonly createdAt?: string;
|
|
15
|
-
createdById?: string;
|
|
16
|
-
customerNumber: string;
|
|
17
|
-
customFields?: GenericRecord;
|
|
18
|
-
defaultBillingAddress?: components["schemas"]["CustomerAddress"];
|
|
19
|
-
defaultBillingAddressId: string;
|
|
20
|
-
defaultShippingAddress?: components["schemas"]["CustomerAddress"];
|
|
21
|
-
defaultShippingAddressId: string;
|
|
22
|
-
doubleOptInConfirmDate?: string;
|
|
23
|
-
doubleOptInEmailSentDate?: string;
|
|
24
|
-
doubleOptInRegistration?: boolean;
|
|
25
|
-
email: string;
|
|
26
|
-
firstLogin?: string;
|
|
27
|
-
firstName: string;
|
|
28
|
-
group?: components["schemas"]["CustomerGroup"];
|
|
29
|
-
groupId: string;
|
|
30
|
-
guest?: boolean;
|
|
31
|
-
hash?: string;
|
|
32
|
-
id: string;
|
|
33
|
-
language?: components["schemas"]["Language"];
|
|
34
|
-
languageId: string;
|
|
35
|
-
lastLogin?: string;
|
|
36
|
-
lastName: string;
|
|
37
|
-
readonly lastOrderDate?: string;
|
|
38
|
-
lastPaymentMethod?: components["schemas"]["PaymentMethod"];
|
|
39
|
-
lastPaymentMethodId?: string;
|
|
40
|
-
readonly orderCount?: number;
|
|
41
|
-
readonly orderTotalAmount?: number;
|
|
42
|
-
readonly reviewCount?: number;
|
|
43
|
-
salesChannelId: string;
|
|
44
|
-
salutation?: components["schemas"]["Salutation"];
|
|
45
|
-
salutationId?: string;
|
|
46
|
-
readonly tagIds?: string[];
|
|
47
|
-
tags?: components["schemas"]["Tag"][];
|
|
48
|
-
title?: string;
|
|
49
|
-
readonly updatedAt?: string;
|
|
50
|
-
updatedById?: string;
|
|
51
|
-
} & ({
|
|
52
|
-
accountType: "private";
|
|
53
|
-
} | {
|
|
54
|
-
accountType: "business";
|
|
55
|
-
company: string;
|
|
56
|
-
vatIds: [string, ...string[]];
|
|
57
|
-
}), Error, {
|
|
58
|
-
active?: boolean;
|
|
59
|
-
activeBillingAddress: components["schemas"]["CustomerAddress"];
|
|
60
|
-
activeShippingAddress: components["schemas"]["CustomerAddress"];
|
|
61
|
-
addresses?: components["schemas"]["CustomerAddress"][];
|
|
62
|
-
affiliateCode?: string;
|
|
63
|
-
apiAlias: "customer";
|
|
64
|
-
birthday?: string;
|
|
65
|
-
campaignCode?: string;
|
|
66
|
-
readonly createdAt?: string;
|
|
67
|
-
createdById?: string;
|
|
68
|
-
customerNumber: string;
|
|
69
|
-
customFields?: GenericRecord;
|
|
70
|
-
defaultBillingAddress?: components["schemas"]["CustomerAddress"];
|
|
71
|
-
defaultBillingAddressId: string;
|
|
72
|
-
defaultShippingAddress?: components["schemas"]["CustomerAddress"];
|
|
73
|
-
defaultShippingAddressId: string;
|
|
74
|
-
doubleOptInConfirmDate?: string;
|
|
75
|
-
doubleOptInEmailSentDate?: string;
|
|
76
|
-
doubleOptInRegistration?: boolean;
|
|
77
|
-
email: string;
|
|
78
|
-
firstLogin?: string;
|
|
79
|
-
firstName: string;
|
|
80
|
-
group?: components["schemas"]["CustomerGroup"];
|
|
81
|
-
groupId: string;
|
|
82
|
-
guest?: boolean;
|
|
83
|
-
hash?: string;
|
|
84
|
-
id: string;
|
|
85
|
-
language?: components["schemas"]["Language"];
|
|
86
|
-
languageId: string;
|
|
87
|
-
lastLogin?: string;
|
|
88
|
-
lastName: string;
|
|
89
|
-
readonly lastOrderDate?: string;
|
|
90
|
-
lastPaymentMethod?: components["schemas"]["PaymentMethod"];
|
|
91
|
-
lastPaymentMethodId?: string;
|
|
92
|
-
readonly orderCount?: number;
|
|
93
|
-
readonly orderTotalAmount?: number;
|
|
94
|
-
readonly reviewCount?: number;
|
|
95
|
-
salesChannelId: string;
|
|
96
|
-
salutation?: components["schemas"]["Salutation"];
|
|
97
|
-
salutationId?: string;
|
|
98
|
-
readonly tagIds?: string[];
|
|
99
|
-
tags?: components["schemas"]["Tag"][];
|
|
100
|
-
title?: string;
|
|
101
|
-
readonly updatedAt?: string;
|
|
102
|
-
updatedById?: string;
|
|
103
|
-
} & ({
|
|
104
|
-
accountType: "private";
|
|
105
|
-
} | {
|
|
106
|
-
accountType: "business";
|
|
107
|
-
company: string;
|
|
108
|
-
vatIds: [string, ...string[]];
|
|
109
|
-
}), readonly ["customer"]> & {
|
|
110
|
-
queryKey: readonly ["customer"] & {
|
|
111
|
-
[dataTagSymbol]: {
|
|
112
|
-
active?: boolean;
|
|
113
|
-
activeBillingAddress: components["schemas"]["CustomerAddress"];
|
|
114
|
-
activeShippingAddress: components["schemas"]["CustomerAddress"];
|
|
115
|
-
addresses?: components["schemas"]["CustomerAddress"][];
|
|
116
|
-
affiliateCode?: string;
|
|
117
|
-
apiAlias: "customer";
|
|
118
|
-
birthday?: string;
|
|
119
|
-
campaignCode?: string;
|
|
120
|
-
readonly createdAt?: string;
|
|
121
|
-
createdById?: string;
|
|
122
|
-
customerNumber: string;
|
|
123
|
-
customFields?: GenericRecord;
|
|
124
|
-
defaultBillingAddress?: components["schemas"]["CustomerAddress"];
|
|
125
|
-
defaultBillingAddressId: string;
|
|
126
|
-
defaultShippingAddress?: components["schemas"]["CustomerAddress"];
|
|
127
|
-
defaultShippingAddressId: string;
|
|
128
|
-
doubleOptInConfirmDate?: string;
|
|
129
|
-
doubleOptInEmailSentDate?: string;
|
|
130
|
-
doubleOptInRegistration?: boolean;
|
|
131
|
-
email: string;
|
|
132
|
-
firstLogin?: string;
|
|
133
|
-
firstName: string;
|
|
134
|
-
group?: components["schemas"]["CustomerGroup"];
|
|
135
|
-
groupId: string;
|
|
136
|
-
guest?: boolean;
|
|
137
|
-
hash?: string;
|
|
138
|
-
id: string;
|
|
139
|
-
language?: components["schemas"]["Language"];
|
|
140
|
-
languageId: string;
|
|
141
|
-
lastLogin?: string;
|
|
142
|
-
lastName: string;
|
|
143
|
-
readonly lastOrderDate?: string;
|
|
144
|
-
lastPaymentMethod?: components["schemas"]["PaymentMethod"];
|
|
145
|
-
lastPaymentMethodId?: string;
|
|
146
|
-
readonly orderCount?: number;
|
|
147
|
-
readonly orderTotalAmount?: number;
|
|
148
|
-
readonly reviewCount?: number;
|
|
149
|
-
salesChannelId: string;
|
|
150
|
-
salutation?: components["schemas"]["Salutation"];
|
|
151
|
-
salutationId?: string;
|
|
152
|
-
readonly tagIds?: string[];
|
|
153
|
-
tags?: components["schemas"]["Tag"][];
|
|
154
|
-
title?: string;
|
|
155
|
-
readonly updatedAt?: string;
|
|
156
|
-
updatedById?: string;
|
|
157
|
-
} & ({
|
|
158
|
-
accountType: "private";
|
|
159
|
-
} | {
|
|
160
|
-
accountType: "business";
|
|
161
|
-
company: string;
|
|
162
|
-
vatIds: [string, ...string[]];
|
|
163
|
-
});
|
|
6
|
+
export declare function useReadCustomerQueryOptions(options?: OperationOptions<typeof readCustomer>): UndefinedInitialQueryOptions<BrandedResponse<Operations, "readCustomer post /account/customer">, Error, BrandedResponse<Operations, "readCustomer post /account/customer">, readonly ["customer", {
|
|
7
|
+
readonly body: unknown;
|
|
8
|
+
}]> & {
|
|
9
|
+
queryKey: readonly ["customer", {
|
|
10
|
+
readonly body: unknown;
|
|
11
|
+
}] & {
|
|
12
|
+
[dataTagSymbol]: BrandedResponse<Operations, "readCustomer post /account/customer">;
|
|
164
13
|
[dataTagErrorSymbol]: Error;
|
|
165
14
|
};
|
|
166
15
|
};
|
|
167
|
-
export declare function useReadCustomerQuery(options?: OperationOptions<typeof readCustomer>): UseQueryReturnType<
|
|
168
|
-
active?: boolean;
|
|
169
|
-
activeBillingAddress: components["schemas"]["CustomerAddress"];
|
|
170
|
-
activeShippingAddress: components["schemas"]["CustomerAddress"];
|
|
171
|
-
addresses?: components["schemas"]["CustomerAddress"][];
|
|
172
|
-
affiliateCode?: string;
|
|
173
|
-
apiAlias: "customer";
|
|
174
|
-
birthday?: string;
|
|
175
|
-
campaignCode?: string;
|
|
176
|
-
readonly createdAt?: string;
|
|
177
|
-
createdById?: string;
|
|
178
|
-
customerNumber: string;
|
|
179
|
-
customFields?: GenericRecord;
|
|
180
|
-
defaultBillingAddress?: components["schemas"]["CustomerAddress"];
|
|
181
|
-
defaultBillingAddressId: string;
|
|
182
|
-
defaultShippingAddress?: components["schemas"]["CustomerAddress"];
|
|
183
|
-
defaultShippingAddressId: string;
|
|
184
|
-
doubleOptInConfirmDate?: string;
|
|
185
|
-
doubleOptInEmailSentDate?: string;
|
|
186
|
-
doubleOptInRegistration?: boolean;
|
|
187
|
-
email: string;
|
|
188
|
-
firstLogin?: string;
|
|
189
|
-
firstName: string;
|
|
190
|
-
group?: components["schemas"]["CustomerGroup"];
|
|
191
|
-
groupId: string;
|
|
192
|
-
guest?: boolean;
|
|
193
|
-
hash?: string;
|
|
194
|
-
id: string;
|
|
195
|
-
language?: components["schemas"]["Language"];
|
|
196
|
-
languageId: string;
|
|
197
|
-
lastLogin?: string;
|
|
198
|
-
lastName: string;
|
|
199
|
-
readonly lastOrderDate?: string;
|
|
200
|
-
lastPaymentMethod?: components["schemas"]["PaymentMethod"];
|
|
201
|
-
lastPaymentMethodId?: string;
|
|
202
|
-
readonly orderCount?: number;
|
|
203
|
-
readonly orderTotalAmount?: number;
|
|
204
|
-
readonly reviewCount?: number;
|
|
205
|
-
salesChannelId: string;
|
|
206
|
-
salutation?: components["schemas"]["Salutation"];
|
|
207
|
-
salutationId?: string;
|
|
208
|
-
readonly tagIds?: string[];
|
|
209
|
-
tags?: components["schemas"]["Tag"][];
|
|
210
|
-
title?: string;
|
|
211
|
-
readonly updatedAt?: string;
|
|
212
|
-
updatedById?: string;
|
|
213
|
-
} & ({
|
|
214
|
-
accountType: "private";
|
|
215
|
-
} | {
|
|
216
|
-
accountType: "business";
|
|
217
|
-
company: string;
|
|
218
|
-
vatIds: [string, ...string[]];
|
|
219
|
-
}), Error>;
|
|
16
|
+
export declare function useReadCustomerQuery(options?: OperationOptions<typeof readCustomer>): UseQueryReturnType<BrandedResponse<Operations, "readCustomer post /account/customer">, Error>;
|
|
220
17
|
export {};
|