@open-tender/cloud 0.0.81 → 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';
@@ -165,9 +166,10 @@ const customerGiftCardsSlice = (0, toolkit_1.createSlice)({
165
166
  state.error = action.payload;
166
167
  state.loading = 'idle';
167
168
  })
168
- .addCase(exports.addCustomerGiftCard.fulfilled, state => {
169
+ .addCase(exports.addCustomerGiftCard.fulfilled, (state, action) => {
169
170
  state.loading = 'idle';
170
171
  state.error = null;
172
+ state.entities = action.payload;
171
173
  })
172
174
  .addCase(exports.addCustomerGiftCard.pending, state => {
173
175
  state.loading = 'pending';
@@ -187,6 +189,30 @@ const customerGiftCardsSlice = (0, toolkit_1.createSlice)({
187
189
  .addCase(exports.updateCustomerGiftCard.rejected, (state, action) => {
188
190
  state.error = action.payload;
189
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';
190
216
  });
191
217
  }
192
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';
@@ -161,9 +162,10 @@ const customerGiftCardsSlice = createSlice({
161
162
  state.error = action.payload;
162
163
  state.loading = 'idle';
163
164
  })
164
- .addCase(addCustomerGiftCard.fulfilled, state => {
165
+ .addCase(addCustomerGiftCard.fulfilled, (state, action) => {
165
166
  state.loading = 'idle';
166
167
  state.error = null;
168
+ state.entities = action.payload;
167
169
  })
168
170
  .addCase(addCustomerGiftCard.pending, state => {
169
171
  state.loading = 'pending';
@@ -183,6 +185,30 @@ const customerGiftCardsSlice = createSlice({
183
185
  .addCase(updateCustomerGiftCard.rejected, (state, action) => {
184
186
  state.error = action.payload;
185
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';
186
212
  });
187
213
  }
188
214
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.0.81",
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",