@open-tender/cloud 0.0.67 → 0.0.69
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/cjs/slices/checkout.js +1 -2
- package/dist/cjs/slices/customer/communicationPreferences.d.ts +1 -0
- package/dist/cjs/slices/customer/communicationPreferences.js +3 -1
- package/dist/esm/slices/checkout.js +1 -2
- package/dist/esm/slices/customer/communicationPreferences.d.ts +1 -0
- package/dist/esm/slices/customer/communicationPreferences.js +1 -0
- package/package.json +1 -1
|
@@ -242,8 +242,7 @@ const checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
242
242
|
extraReducers: builder => {
|
|
243
243
|
builder
|
|
244
244
|
.addCase(exports.validateOrder.fulfilled, (state, action) => {
|
|
245
|
-
|
|
246
|
-
state.errors = action.payload.errors;
|
|
245
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { loading: 'idle', error: null });
|
|
247
246
|
})
|
|
248
247
|
.addCase(exports.validateOrder.pending, state => {
|
|
249
248
|
state.loading = 'pending';
|
|
@@ -42,3 +42,4 @@ export declare const setCustomerCommunicationDefaultPreferences: import("@reduxj
|
|
|
42
42
|
}>;
|
|
43
43
|
export declare const resetCustomerCommunicationPreferences: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCustomerCommunicationPreferencesError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCustomerCommunicationPreferences: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
44
44
|
export declare const customerCommunicationPrefsReducer: import("redux").Reducer<CustomerCommunicationPrefsState, import("redux").AnyAction>;
|
|
45
|
+
export declare const selectCustomerCommunicationPreferences: (state: AppState) => CustomerCommunicationPrefsState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.customerCommunicationPrefsReducer = exports.setCustomerCommunicationPreferences = exports.resetCustomerCommunicationPreferencesError = exports.resetCustomerCommunicationPreferences = exports.setCustomerCommunicationDefaultPreferences = exports.removeCustomerCommunicationPreference = exports.addCustomerCommunicationPreference = exports.fetchCustomerCommunicationPreferences = exports.CustomerCommunicationPrefsActionType = void 0;
|
|
4
|
+
exports.selectCustomerCommunicationPreferences = exports.customerCommunicationPrefsReducer = exports.setCustomerCommunicationPreferences = exports.resetCustomerCommunicationPreferencesError = exports.resetCustomerCommunicationPreferences = exports.setCustomerCommunicationDefaultPreferences = exports.removeCustomerCommunicationPreference = exports.addCustomerCommunicationPreference = exports.fetchCustomerCommunicationPreferences = exports.CustomerCommunicationPrefsActionType = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
7
|
const types_1 = require("../types");
|
|
@@ -163,3 +163,5 @@ const customerCommunicationPrefsSlice = (0, toolkit_1.createSlice)({
|
|
|
163
163
|
});
|
|
164
164
|
_a = customerCommunicationPrefsSlice.actions, exports.resetCustomerCommunicationPreferences = _a.resetCustomerCommunicationPreferences, exports.resetCustomerCommunicationPreferencesError = _a.resetCustomerCommunicationPreferencesError, exports.setCustomerCommunicationPreferences = _a.setCustomerCommunicationPreferences;
|
|
165
165
|
exports.customerCommunicationPrefsReducer = customerCommunicationPrefsSlice.reducer;
|
|
166
|
+
const selectCustomerCommunicationPreferences = (state) => state.customer.communicationPreferences;
|
|
167
|
+
exports.selectCustomerCommunicationPreferences = selectCustomerCommunicationPreferences;
|
|
@@ -238,8 +238,7 @@ const checkoutSlice = createSlice({
|
|
|
238
238
|
extraReducers: builder => {
|
|
239
239
|
builder
|
|
240
240
|
.addCase(validateOrder.fulfilled, (state, action) => {
|
|
241
|
-
|
|
242
|
-
state.errors = action.payload.errors;
|
|
241
|
+
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { loading: 'idle', error: null });
|
|
243
242
|
})
|
|
244
243
|
.addCase(validateOrder.pending, state => {
|
|
245
244
|
state.loading = 'pending';
|
|
@@ -42,3 +42,4 @@ export declare const setCustomerCommunicationDefaultPreferences: import("@reduxj
|
|
|
42
42
|
}>;
|
|
43
43
|
export declare const resetCustomerCommunicationPreferences: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCustomerCommunicationPreferencesError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCustomerCommunicationPreferences: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
44
44
|
export declare const customerCommunicationPrefsReducer: import("redux").Reducer<CustomerCommunicationPrefsState, import("redux").AnyAction>;
|
|
45
|
+
export declare const selectCustomerCommunicationPreferences: (state: AppState) => CustomerCommunicationPrefsState;
|
|
@@ -159,3 +159,4 @@ const customerCommunicationPrefsSlice = createSlice({
|
|
|
159
159
|
});
|
|
160
160
|
export const { resetCustomerCommunicationPreferences, resetCustomerCommunicationPreferencesError, setCustomerCommunicationPreferences } = customerCommunicationPrefsSlice.actions;
|
|
161
161
|
export const customerCommunicationPrefsReducer = customerCommunicationPrefsSlice.reducer;
|
|
162
|
+
export const selectCustomerCommunicationPreferences = (state) => state.customer.communicationPreferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|