@akinon/next 1.56.0-rc.0 → 1.56.0-rc.2
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/CHANGELOG.md +13 -0
- package/data/client/checkout.ts +17 -1
- package/data/urls.ts +2 -1
- package/package.json +2 -2
- package/plugins.d.ts +1 -0
- package/types/commerce/checkout.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
+
## 1.56.0-rc.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7b05522: ZERO-2905: Fix resend and close button in otp package
|
|
8
|
+
- 29ead87: ZERO-2905: Fix resend and close button in otp package
|
|
9
|
+
|
|
10
|
+
## 1.56.0-rc.1
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 207ac6e: ZERO-2917: Add OrderSelectionPage endpoint
|
|
15
|
+
|
|
3
16
|
## 1.56.0-rc.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/data/client/checkout.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from '../../redux/reducers/checkout';
|
|
10
10
|
import {
|
|
11
11
|
CheckoutContext,
|
|
12
|
+
ExtraField,
|
|
12
13
|
GuestLoginFormParams,
|
|
13
14
|
Order,
|
|
14
15
|
PreOrder
|
|
@@ -714,6 +715,20 @@ export const checkoutApi = api.injectEndpoints({
|
|
|
714
715
|
await queryFulfilled;
|
|
715
716
|
dispatch(setShippingStepBusy(false));
|
|
716
717
|
}
|
|
718
|
+
}),
|
|
719
|
+
setOrderSelectionPage: build.mutation<
|
|
720
|
+
CheckoutResponse,
|
|
721
|
+
{ extra_field: ExtraField }
|
|
722
|
+
>({
|
|
723
|
+
query: ({ extra_field }) => ({
|
|
724
|
+
url: buildClientRequestUrl(checkout.setOrderSelectionPage, {
|
|
725
|
+
useFormData: true
|
|
726
|
+
}),
|
|
727
|
+
method: 'POST',
|
|
728
|
+
body: {
|
|
729
|
+
extra_field
|
|
730
|
+
}
|
|
731
|
+
})
|
|
717
732
|
})
|
|
718
733
|
}),
|
|
719
734
|
overrideExisting: false
|
|
@@ -751,5 +766,6 @@ export const {
|
|
|
751
766
|
usePayWithLoyaltyBalanceMutation,
|
|
752
767
|
useSetOrderNoteMutation,
|
|
753
768
|
useSetDeliveryBagsMutation,
|
|
754
|
-
useSetAttributeBasedShippingOptionsMutation
|
|
769
|
+
useSetAttributeBasedShippingOptionsMutation,
|
|
770
|
+
useSetOrderSelectionPageMutation
|
|
755
771
|
} = checkoutApi;
|
package/data/urls.ts
CHANGED
|
@@ -113,7 +113,8 @@ export const checkout = {
|
|
|
113
113
|
couponSelectionPage: '/orders/checkout/?page=CouponSelectionPage',
|
|
114
114
|
setAttributeBasedShippingOption:
|
|
115
115
|
'/orders/checkout/?page=AttributeBasedShippingOptionSelectionPage',
|
|
116
|
-
deliveryBagsPage: '/orders/checkout/?page=DeliveryBagsPage'
|
|
116
|
+
deliveryBagsPage: '/orders/checkout/?page=DeliveryBagsPage',
|
|
117
|
+
setOrderSelectionPage: '/orders/checkout/?page=OrderSelectionPage'
|
|
117
118
|
};
|
|
118
119
|
|
|
119
120
|
export const flatpage = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.56.0-rc.
|
|
4
|
+
"version": "1.56.0-rc.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"set-cookie-parser": "2.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@akinon/eslint-plugin-projectzero": "1.56.0-rc.
|
|
33
|
+
"@akinon/eslint-plugin-projectzero": "1.56.0-rc.2",
|
|
34
34
|
"@types/react-redux": "7.1.30",
|
|
35
35
|
"@types/set-cookie-parser": "2.4.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|
package/plugins.d.ts
CHANGED
|
@@ -100,8 +100,11 @@ export interface PreOrder {
|
|
|
100
100
|
attribute_based_shipping_options?: AttributeBasedShippingOption[];
|
|
101
101
|
bags?: Product[];
|
|
102
102
|
bags_fee?: string;
|
|
103
|
+
extra_field?: ExtraField;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
export type ExtraField = Record<string, any>;
|
|
107
|
+
|
|
105
108
|
export interface GuestLoginFormParams {
|
|
106
109
|
user_email: string;
|
|
107
110
|
phone_number: string;
|