@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,12 +1,10 @@
1
1
  import { Schemas, components, GenericRecord } from '../../../api-types/storeApiTypes.d.ts';
2
2
  import { UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult, UseQueryReturnType } from '@tanstack/vue-query';
3
+ import { OperationResponse, Operations } from '../..';
3
4
  import { ShopwareApiError, BrandedResponse } from '@teamnovu/kit-shopware-api-client';
4
- import { Operations } from '../..';
5
5
  import { ComputedRef } from 'vue';
6
6
  export declare function useCheckoutAddresses(): {
7
- contextUpdateMutation: UseMutationReturnType<{
8
- redirectUrl?: string;
9
- }, Error | ShopwareApiError, {
7
+ contextUpdateMutation: UseMutationReturnType<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
10
8
  billingAddressId?: string;
11
9
  countryId?: string;
12
10
  countryStateId?: string;
@@ -15,9 +13,7 @@ export declare function useCheckoutAddresses(): {
15
13
  paymentMethodId?: string;
16
14
  shippingAddressId?: string;
17
15
  shippingMethodId?: string;
18
- }, unknown, Omit< MutationObserverIdleResult<{
19
- redirectUrl?: string;
20
- }, Error | ShopwareApiError, {
16
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
21
17
  billingAddressId?: string;
22
18
  countryId?: string;
23
19
  countryStateId?: string;
@@ -26,9 +22,7 @@ export declare function useCheckoutAddresses(): {
26
22
  paymentMethodId?: string;
27
23
  shippingAddressId?: string;
28
24
  shippingMethodId?: string;
29
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
30
- redirectUrl?: string;
31
- }, Error | ShopwareApiError, {
25
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
32
26
  billingAddressId?: string;
33
27
  countryId?: string;
34
28
  countryStateId?: string;
@@ -37,9 +31,7 @@ export declare function useCheckoutAddresses(): {
37
31
  paymentMethodId?: string;
38
32
  shippingAddressId?: string;
39
33
  shippingMethodId?: string;
40
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
41
- redirectUrl?: string;
42
- }, Error | ShopwareApiError, {
34
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
43
35
  billingAddressId?: string;
44
36
  countryId?: string;
45
37
  countryStateId?: string;
@@ -48,9 +40,7 @@ export declare function useCheckoutAddresses(): {
48
40
  paymentMethodId?: string;
49
41
  shippingAddressId?: string;
50
42
  shippingMethodId?: string;
51
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
52
- redirectUrl?: string;
53
- }, Error | ShopwareApiError, {
43
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
54
44
  billingAddressId?: string;
55
45
  countryId?: string;
56
46
  countryStateId?: string;
@@ -1,180 +1,24 @@
1
1
  import { MaybeRef, ComputedRef } from 'vue';
2
- import { Schemas } from '../../query/types';
3
- import { components, GenericRecord } from '../../../api-types/storeApiTypes';
2
+ import { BrandedSchema } from '../types/schema';
4
3
  import { UseQueryReturnType } from '@tanstack/vue-query';
5
4
  import { BrandedResponse } from '@teamnovu/kit-shopware-api-client';
6
5
  import { Operations } from '../..';
7
- export declare function useOrderDetails(orderId: MaybeRef<string>, criteria?: Schemas['Criteria']): {
8
- order: ComputedRef<{
9
- addresses?: components["schemas"]["OrderAddress"][];
10
- affiliateCode?: string;
11
- readonly amountNet?: number;
12
- readonly amountTotal?: number;
13
- billingAddress?: components["schemas"]["OrderAddress"];
14
- billingAddressId: string;
15
- billingAddressVersionId?: string;
16
- campaignCode?: string;
17
- readonly createdAt?: string;
18
- createdById?: string;
19
- currency?: components["schemas"]["Currency"];
20
- currencyFactor: number;
21
- currencyId: string;
22
- customerComment?: string;
23
- customFields?: GenericRecord;
24
- deepLinkCode?: string;
25
- deliveries?: components["schemas"]["OrderDelivery"][];
26
- documents: components["schemas"]["Document"][];
27
- id: string;
28
- language?: components["schemas"]["Language"];
29
- languageId: string;
30
- lineItems?: components["schemas"]["OrderLineItem"][];
31
- orderCustomer?: components["schemas"]["OrderCustomer"];
32
- readonly orderDate: string;
33
- orderDateTime: string;
34
- orderNumber?: string;
35
- readonly positionPrice?: number;
36
- price: components["schemas"]["CalculatedPrice"];
37
- salesChannelId: string;
38
- shippingCosts?: {
39
- calculatedTaxes?: GenericRecord;
40
- listPrice?: {
41
- discount?: number;
42
- percentage?: number;
43
- price?: number;
44
- };
45
- quantity: number;
46
- referencePrice?: GenericRecord;
47
- regulationPrice?: {
48
- price?: number;
49
- };
50
- taxRules?: GenericRecord;
51
- totalPrice: number;
52
- unitPrice: number;
53
- };
54
- readonly shippingTotal?: number;
55
- source?: string;
56
- stateMachineState: components["schemas"]["StateMachineState"];
57
- tags?: components["schemas"]["Tag"][];
58
- readonly taxStatus?: string;
59
- transactions?: components["schemas"]["OrderTransaction"][];
60
- readonly updatedAt?: string;
61
- updatedById?: string;
62
- versionId?: string;
63
- } | undefined>;
6
+ export declare function useOrderDetails(orderId: MaybeRef<string>, criteria?: BrandedSchema<'Criteria'>): {
7
+ order: ComputedRef<BrandedSchema<"Order"> | undefined>;
64
8
  status: ComputedRef<string | undefined>;
65
9
  statusTechnicalName: ComputedRef<string | undefined>;
66
10
  total: ComputedRef<number | undefined>;
67
11
  subtotal: ComputedRef<number | undefined>;
68
12
  shippingCosts: ComputedRef<number | undefined>;
69
- shippingAddress: ComputedRef<{
70
- additionalAddressLine1?: string;
71
- additionalAddressLine2?: string;
72
- city: string;
73
- company?: string;
74
- country?: components["schemas"]["Country"];
75
- countryId: string;
76
- countryState?: components["schemas"]["CountryState"];
77
- countryStateId?: string;
78
- readonly createdAt?: string;
79
- customFields?: GenericRecord;
80
- department?: string;
81
- firstName: string;
82
- hash?: string;
83
- id: string;
84
- lastName: string;
85
- phoneNumber?: string;
86
- salutation?: components["schemas"]["Salutation"];
87
- street: string;
88
- title?: string;
89
- readonly updatedAt?: string;
90
- vatId?: string;
91
- versionId?: string;
92
- zipcode?: string;
93
- } | undefined>;
94
- billingAddress: ComputedRef<{
95
- additionalAddressLine1?: string;
96
- additionalAddressLine2?: string;
97
- city: string;
98
- company?: string;
99
- country?: components["schemas"]["Country"];
100
- countryId: string;
101
- countryState?: components["schemas"]["CountryState"];
102
- countryStateId?: string;
103
- readonly createdAt?: string;
104
- customFields?: GenericRecord;
105
- department?: string;
106
- firstName: string;
107
- hash?: string;
108
- id: string;
109
- lastName: string;
110
- phoneNumber?: string;
111
- salutation?: components["schemas"]["Salutation"];
112
- street: string;
113
- title?: string;
114
- readonly updatedAt?: string;
115
- vatId?: string;
116
- versionId?: string;
117
- zipcode?: string;
118
- } | undefined>;
13
+ shippingAddress: ComputedRef<BrandedSchema<"OrderAddress"> | undefined>;
14
+ billingAddress: ComputedRef<BrandedSchema<"OrderAddress"> | undefined>;
119
15
  personalDetails: ComputedRef<{
120
16
  email: string | undefined;
121
17
  firstName: string | undefined;
122
18
  lastName: string | undefined;
123
19
  }>;
124
- shippingMethod: ComputedRef<{
125
- active?: boolean;
126
- availabilityRule?: components["schemas"]["Rule"];
127
- readonly createdAt?: string;
128
- customFields?: GenericRecord;
129
- deliveryTime?: components["schemas"]["DeliveryTime"];
130
- deliveryTimeId: string;
131
- description?: string;
132
- id: string;
133
- media?: components["schemas"]["Media"];
134
- mediaId?: string;
135
- name: string;
136
- position?: number;
137
- prices?: components["schemas"]["ShippingMethodPrice"][];
138
- tags?: components["schemas"]["Tag"][];
139
- tax?: components["schemas"]["Tax"];
140
- taxType?: string;
141
- technicalName: string;
142
- trackingUrl?: string;
143
- translated: {
144
- deliveryTimeId: string;
145
- description: string;
146
- mediaId: string;
147
- name: string;
148
- taxType: string;
149
- technicalName: string;
150
- trackingUrl: string;
151
- };
152
- readonly updatedAt?: string;
153
- } | undefined>;
154
- paymentMethod: ComputedRef<{
155
- active?: boolean;
156
- afterOrderEnabled?: boolean;
157
- readonly createdAt?: string;
158
- customFields?: GenericRecord;
159
- description?: string;
160
- readonly distinguishableName?: string;
161
- id: string;
162
- media?: components["schemas"]["Media"];
163
- mediaId?: string;
164
- name: string;
165
- position?: number;
166
- shortName?: string;
167
- technicalName: string;
168
- translated: {
169
- description: string;
170
- distinguishableName: string;
171
- mediaId: string;
172
- name: string;
173
- shortName: string;
174
- technicalName: string;
175
- };
176
- readonly updatedAt?: string;
177
- } | undefined>;
20
+ shippingMethod: ComputedRef<BrandedSchema<"ShippingMethod"> | undefined>;
21
+ paymentMethod: ComputedRef<BrandedSchema<"PaymentMethod"> | undefined>;
178
22
  paymentChangeable: ComputedRef<boolean>;
179
23
  orderQuery: UseQueryReturnType<BrandedResponse<Operations, "readOrder post /order">, Error>;
180
24
  };
@@ -1,5 +1,6 @@
1
1
  import { MaybeRef, ComputedRef } from 'vue';
2
- import { Schemas } from '../../query/types';
2
+ import { Schemas } from '../../query/types/operations';
3
+ import { BrandedSchema } from '../types/schema';
3
4
  import { GenericRecord, components } from '../../../api-types/storeApiTypes';
4
5
  export declare function useOrderPayment(order: MaybeRef<Schemas['Order'] | null | undefined>): {
5
6
  isAsynchronous: ComputedRef<any>;
@@ -34,40 +35,6 @@ export declare function useOrderPayment(order: MaybeRef<Schemas['Order'] | null
34
35
  validationData?: GenericRecord;
35
36
  versionId?: string;
36
37
  } | undefined>;
37
- state: ComputedRef<{
38
- readonly createdAt?: string;
39
- customFields?: GenericRecord;
40
- id?: string;
41
- name: string;
42
- technicalName: string;
43
- translated: {
44
- name: string;
45
- technicalName: string;
46
- };
47
- readonly updatedAt?: string;
48
- } | undefined>;
49
- paymentMethod: ComputedRef<{
50
- active?: boolean;
51
- afterOrderEnabled?: boolean;
52
- readonly createdAt?: string;
53
- customFields?: GenericRecord;
54
- description?: string;
55
- readonly distinguishableName?: string;
56
- id: string;
57
- media?: components["schemas"]["Media"];
58
- mediaId?: string;
59
- name: string;
60
- position?: number;
61
- shortName?: string;
62
- technicalName: string;
63
- translated: {
64
- description: string;
65
- distinguishableName: string;
66
- mediaId: string;
67
- name: string;
68
- shortName: string;
69
- technicalName: string;
70
- };
71
- readonly updatedAt?: string;
72
- } | undefined>;
38
+ state: ComputedRef<BrandedSchema<"StateMachineState"> | undefined>;
39
+ paymentMethod: ComputedRef<BrandedSchema<"PaymentMethod"> | undefined>;
73
40
  };
@@ -1,12 +1,10 @@
1
1
  import { UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult, UseQueryReturnType } from '@tanstack/vue-query';
2
+ import { OperationResponse, Operations } from '../..';
2
3
  import { ShopwareApiError, BrandedResponse } from '@teamnovu/kit-shopware-api-client';
3
- import { Operations } from '../..';
4
4
  import { ComputedRef } from 'vue';
5
5
  import { GenericRecord, components } from '../../../api-types/storeApiTypes';
6
6
  export declare function usePaymentMethods(): {
7
- contextUpdateMutation: UseMutationReturnType<{
8
- redirectUrl?: string;
9
- }, Error | ShopwareApiError, {
7
+ contextUpdateMutation: UseMutationReturnType<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
10
8
  billingAddressId?: string;
11
9
  countryId?: string;
12
10
  countryStateId?: string;
@@ -15,9 +13,7 @@ export declare function usePaymentMethods(): {
15
13
  paymentMethodId?: string;
16
14
  shippingAddressId?: string;
17
15
  shippingMethodId?: string;
18
- }, unknown, Omit< MutationObserverIdleResult<{
19
- redirectUrl?: string;
20
- }, Error | ShopwareApiError, {
16
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
21
17
  billingAddressId?: string;
22
18
  countryId?: string;
23
19
  countryStateId?: string;
@@ -26,9 +22,7 @@ export declare function usePaymentMethods(): {
26
22
  paymentMethodId?: string;
27
23
  shippingAddressId?: string;
28
24
  shippingMethodId?: string;
29
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
30
- redirectUrl?: string;
31
- }, Error | ShopwareApiError, {
25
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
32
26
  billingAddressId?: string;
33
27
  countryId?: string;
34
28
  countryStateId?: string;
@@ -37,9 +31,7 @@ export declare function usePaymentMethods(): {
37
31
  paymentMethodId?: string;
38
32
  shippingAddressId?: string;
39
33
  shippingMethodId?: string;
40
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
41
- redirectUrl?: string;
42
- }, Error | ShopwareApiError, {
34
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
43
35
  billingAddressId?: string;
44
36
  countryId?: string;
45
37
  countryStateId?: string;
@@ -48,9 +40,7 @@ export declare function usePaymentMethods(): {
48
40
  paymentMethodId?: string;
49
41
  shippingAddressId?: string;
50
42
  shippingMethodId?: string;
51
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
52
- redirectUrl?: string;
53
- }, Error | ShopwareApiError, {
43
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
54
44
  billingAddressId?: string;
55
45
  countryId?: string;
56
46
  countryStateId?: string;
@@ -86,9 +76,7 @@ export declare function usePaymentMethods(): {
86
76
  };
87
77
  readonly updatedAt?: string;
88
78
  } | undefined>;
89
- setPaymentMethod: (paymentMethodId: string) => Promise<{
90
- redirectUrl?: string;
91
- }>;
79
+ setPaymentMethod: (paymentMethodId: string) => Promise< OperationResponse<"updateContext patch /context">>;
92
80
  isSaving: ComputedRef<boolean>;
93
81
  paymentMethods: ComputedRef<{
94
82
  active?: boolean;
@@ -1,12 +1,10 @@
1
1
  import { UseMutationReturnType, MutationObserverIdleResult, MutationObserverLoadingResult, MutationObserverErrorResult, MutationObserverSuccessResult, UseQueryReturnType } from '@tanstack/vue-query';
2
+ import { OperationResponse, Operations } from '../..';
2
3
  import { ShopwareApiError, BrandedResponse } from '@teamnovu/kit-shopware-api-client';
3
- import { Operations } from '../..';
4
4
  import { ComputedRef } from 'vue';
5
5
  import { components, GenericRecord } from '../../../api-types/storeApiTypes';
6
6
  export declare function useShippingMethods(): {
7
- contextUpdateMutation: UseMutationReturnType<{
8
- redirectUrl?: string;
9
- }, Error | ShopwareApiError, {
7
+ contextUpdateMutation: UseMutationReturnType<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
10
8
  billingAddressId?: string;
11
9
  countryId?: string;
12
10
  countryStateId?: string;
@@ -15,9 +13,7 @@ export declare function useShippingMethods(): {
15
13
  paymentMethodId?: string;
16
14
  shippingAddressId?: string;
17
15
  shippingMethodId?: string;
18
- }, unknown, Omit< MutationObserverIdleResult<{
19
- redirectUrl?: string;
20
- }, Error | ShopwareApiError, {
16
+ }, unknown, Omit< MutationObserverIdleResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
21
17
  billingAddressId?: string;
22
18
  countryId?: string;
23
19
  countryStateId?: string;
@@ -26,9 +22,7 @@ export declare function useShippingMethods(): {
26
22
  paymentMethodId?: string;
27
23
  shippingAddressId?: string;
28
24
  shippingMethodId?: string;
29
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<{
30
- redirectUrl?: string;
31
- }, Error | ShopwareApiError, {
25
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverLoadingResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
32
26
  billingAddressId?: string;
33
27
  countryId?: string;
34
28
  countryStateId?: string;
@@ -37,9 +31,7 @@ export declare function useShippingMethods(): {
37
31
  paymentMethodId?: string;
38
32
  shippingAddressId?: string;
39
33
  shippingMethodId?: string;
40
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<{
41
- redirectUrl?: string;
42
- }, Error | ShopwareApiError, {
34
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverErrorResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
43
35
  billingAddressId?: string;
44
36
  countryId?: string;
45
37
  countryStateId?: string;
@@ -48,9 +40,7 @@ export declare function useShippingMethods(): {
48
40
  paymentMethodId?: string;
49
41
  shippingAddressId?: string;
50
42
  shippingMethodId?: string;
51
- }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<{
52
- redirectUrl?: string;
53
- }, Error | ShopwareApiError, {
43
+ }, unknown>, "mutate" | "reset"> | Omit< MutationObserverSuccessResult<OperationResponse<"updateContext patch /context">, Error | ShopwareApiError, {
54
44
  billingAddressId?: string;
55
45
  countryId?: string;
56
46
  countryStateId?: string;
@@ -92,9 +82,7 @@ export declare function useShippingMethods(): {
92
82
  };
93
83
  readonly updatedAt?: string;
94
84
  } | undefined>;
95
- setShippingMethod: (shippingMethodId: string) => Promise<{
96
- redirectUrl?: string;
97
- }>;
85
+ setShippingMethod: (shippingMethodId: string) => Promise< OperationResponse<"updateContext patch /context">>;
98
86
  isSaving: ComputedRef<boolean>;
99
87
  shippingMethods: ComputedRef<{
100
88
  active?: boolean;
@@ -0,0 +1,5 @@
1
+ import { Schemas } from '../../query/types/operations';
2
+ export interface SchemaType<TKey> {
3
+ __key?: TKey;
4
+ }
5
+ export type BrandedSchema<SchemaKey extends (keyof Schemas) & string> = Schemas[SchemaKey] & SchemaType<SchemaKey>;