@open-tender/cloud 0.0.82 → 0.0.83

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.
@@ -154,9 +154,10 @@ const customerGiftCardsSlice = (0, toolkit_1.createSlice)({
154
154
  state.error = action.payload;
155
155
  state.loading = 'idle';
156
156
  })
157
- .addCase(exports.removeCustomerGiftCard.fulfilled, state => {
157
+ .addCase(exports.removeCustomerGiftCard.fulfilled, (state, action) => {
158
158
  state.loading = 'idle';
159
159
  state.error = null;
160
+ state.entities = action.payload;
160
161
  })
161
162
  .addCase(exports.removeCustomerGiftCard.pending, state => {
162
163
  state.loading = 'pending';
@@ -188,6 +189,30 @@ const customerGiftCardsSlice = (0, toolkit_1.createSlice)({
188
189
  .addCase(exports.updateCustomerGiftCard.rejected, (state, action) => {
189
190
  state.error = action.payload;
190
191
  state.loading = 'idle';
192
+ })
193
+ .addCase(exports.assignCustomerGiftCardOther.fulfilled, (state, action) => {
194
+ state.entities = action.payload;
195
+ state.loading = 'idle';
196
+ state.error = null;
197
+ })
198
+ .addCase(exports.assignCustomerGiftCardOther.pending, state => {
199
+ state.loading = 'pending';
200
+ })
201
+ .addCase(exports.assignCustomerGiftCardOther.rejected, (state, action) => {
202
+ state.error = action.payload;
203
+ state.loading = 'idle';
204
+ })
205
+ .addCase(exports.assignCustomerGiftCard.fulfilled, (state, action) => {
206
+ state.entities = action.payload;
207
+ state.loading = 'idle';
208
+ state.error = null;
209
+ })
210
+ .addCase(exports.assignCustomerGiftCard.pending, state => {
211
+ state.loading = 'pending';
212
+ })
213
+ .addCase(exports.assignCustomerGiftCard.rejected, (state, action) => {
214
+ state.error = action.payload;
215
+ state.loading = 'idle';
191
216
  });
192
217
  }
193
218
  });
@@ -150,9 +150,10 @@ const customerGiftCardsSlice = createSlice({
150
150
  state.error = action.payload;
151
151
  state.loading = 'idle';
152
152
  })
153
- .addCase(removeCustomerGiftCard.fulfilled, state => {
153
+ .addCase(removeCustomerGiftCard.fulfilled, (state, action) => {
154
154
  state.loading = 'idle';
155
155
  state.error = null;
156
+ state.entities = action.payload;
156
157
  })
157
158
  .addCase(removeCustomerGiftCard.pending, state => {
158
159
  state.loading = 'pending';
@@ -184,6 +185,30 @@ const customerGiftCardsSlice = createSlice({
184
185
  .addCase(updateCustomerGiftCard.rejected, (state, action) => {
185
186
  state.error = action.payload;
186
187
  state.loading = 'idle';
188
+ })
189
+ .addCase(assignCustomerGiftCardOther.fulfilled, (state, action) => {
190
+ state.entities = action.payload;
191
+ state.loading = 'idle';
192
+ state.error = null;
193
+ })
194
+ .addCase(assignCustomerGiftCardOther.pending, state => {
195
+ state.loading = 'pending';
196
+ })
197
+ .addCase(assignCustomerGiftCardOther.rejected, (state, action) => {
198
+ state.error = action.payload;
199
+ state.loading = 'idle';
200
+ })
201
+ .addCase(assignCustomerGiftCard.fulfilled, (state, action) => {
202
+ state.entities = action.payload;
203
+ state.loading = 'idle';
204
+ state.error = null;
205
+ })
206
+ .addCase(assignCustomerGiftCard.pending, state => {
207
+ state.loading = 'pending';
208
+ })
209
+ .addCase(assignCustomerGiftCard.rejected, (state, action) => {
210
+ state.error = action.payload;
211
+ state.loading = 'idle';
187
212
  });
188
213
  }
189
214
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
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",