@defra/fcp-sfd-frontend-engine 0.10.0 → 0.12.0

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/index.cjs CHANGED
@@ -224,6 +224,22 @@ var mappers = {
224
224
  businessDetails: mapBusinessDetails
225
225
  };
226
226
 
227
+ // src/mutations/business/update-business-email.js
228
+ var updateBusinessEmailMutation = `
229
+ mutation Mutation($input: UpdateBusinessEmailInput!) {
230
+ updateBusinessEmail(input: $input) {
231
+ business {
232
+ info {
233
+ email {
234
+ address
235
+ }
236
+ }
237
+ }
238
+ success
239
+ }
240
+ }
241
+ `;
242
+
227
243
  // src/mutations/personal/update-customer-name.js
228
244
  var updateCustomerNameMutation = `
229
245
  mutation UpdateCustomerName($input: UpdateCustomerNameInput!) {
@@ -241,9 +257,26 @@ var updateCustomerNameMutation = `
241
257
  }
242
258
  `;
243
259
 
260
+ // src/mutations/personal/update-customer-email.js
261
+ var updateCustomerEmailMutation = `
262
+ mutation UpdateCustomerEmail($input: UpdateCustomerEmailInput!) {
263
+ updateCustomerEmail(input: $input) {
264
+ customer {
265
+ info {
266
+ email {
267
+ address
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ `;
274
+
244
275
  // src/mutations/mutations.js
245
276
  var mutations = {
246
- updateCustomerName: updateCustomerNameMutation
277
+ updateBusinessEmail: updateBusinessEmailMutation,
278
+ updateCustomerName: updateCustomerNameMutation,
279
+ updateCustomerEmail: updateCustomerEmailMutation
247
280
  };
248
281
 
249
282
  // src/presenters/base-presenter.js
package/dist/index.js CHANGED
@@ -184,6 +184,22 @@ var mappers = {
184
184
  businessDetails: mapBusinessDetails
185
185
  };
186
186
 
187
+ // src/mutations/business/update-business-email.js
188
+ var updateBusinessEmailMutation = `
189
+ mutation Mutation($input: UpdateBusinessEmailInput!) {
190
+ updateBusinessEmail(input: $input) {
191
+ business {
192
+ info {
193
+ email {
194
+ address
195
+ }
196
+ }
197
+ }
198
+ success
199
+ }
200
+ }
201
+ `;
202
+
187
203
  // src/mutations/personal/update-customer-name.js
188
204
  var updateCustomerNameMutation = `
189
205
  mutation UpdateCustomerName($input: UpdateCustomerNameInput!) {
@@ -201,9 +217,26 @@ var updateCustomerNameMutation = `
201
217
  }
202
218
  `;
203
219
 
220
+ // src/mutations/personal/update-customer-email.js
221
+ var updateCustomerEmailMutation = `
222
+ mutation UpdateCustomerEmail($input: UpdateCustomerEmailInput!) {
223
+ updateCustomerEmail(input: $input) {
224
+ customer {
225
+ info {
226
+ email {
227
+ address
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ `;
234
+
204
235
  // src/mutations/mutations.js
205
236
  var mutations = {
206
- updateCustomerName: updateCustomerNameMutation
237
+ updateBusinessEmail: updateBusinessEmailMutation,
238
+ updateCustomerName: updateCustomerNameMutation,
239
+ updateCustomerEmail: updateCustomerEmailMutation
207
240
  };
208
241
 
209
242
  // src/presenters/base-presenter.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/fcp-sfd-frontend-engine",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Shared frontend engine used by both the internal and external frontend applications.",
5
5
  "main": "./dist/index.cjs",
6
6
  "exports": {
@@ -0,0 +1,14 @@
1
+ export const updateBusinessEmailMutation = `
2
+ mutation Mutation($input: UpdateBusinessEmailInput!) {
3
+ updateBusinessEmail(input: $input) {
4
+ business {
5
+ info {
6
+ email {
7
+ address
8
+ }
9
+ }
10
+ }
11
+ success
12
+ }
13
+ }
14
+ `
@@ -1,5 +1,9 @@
1
+ import { updateBusinessEmailMutation } from './business/update-business-email.js'
1
2
  import { updateCustomerNameMutation } from './personal/update-customer-name.js'
3
+ import { updateCustomerEmailMutation } from './personal/update-customer-email.js'
2
4
 
3
5
  export const mutations = {
4
- updateCustomerName: updateCustomerNameMutation
6
+ updateBusinessEmail: updateBusinessEmailMutation,
7
+ updateCustomerName: updateCustomerNameMutation,
8
+ updateCustomerEmail: updateCustomerEmailMutation
5
9
  }
@@ -0,0 +1,13 @@
1
+ export const updateCustomerEmailMutation = `
2
+ mutation UpdateCustomerEmail($input: UpdateCustomerEmailInput!) {
3
+ updateCustomerEmail(input: $input) {
4
+ customer {
5
+ info {
6
+ email {
7
+ address
8
+ }
9
+ }
10
+ }
11
+ }
12
+ }
13
+ `