@defra/fcp-sfd-frontend-engine 0.10.0 → 0.11.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!) {
@@ -243,6 +259,7 @@ var updateCustomerNameMutation = `
243
259
 
244
260
  // src/mutations/mutations.js
245
261
  var mutations = {
262
+ updateBusinessEmail: updateBusinessEmailMutation,
246
263
  updateCustomerName: updateCustomerNameMutation
247
264
  };
248
265
 
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!) {
@@ -203,6 +219,7 @@ var updateCustomerNameMutation = `
203
219
 
204
220
  // src/mutations/mutations.js
205
221
  var mutations = {
222
+ updateBusinessEmail: updateBusinessEmailMutation,
206
223
  updateCustomerName: updateCustomerNameMutation
207
224
  };
208
225
 
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.11.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,7 @@
1
+ import { updateBusinessEmailMutation } from './business/update-business-email.js'
1
2
  import { updateCustomerNameMutation } from './personal/update-customer-name.js'
2
3
 
3
4
  export const mutations = {
5
+ updateBusinessEmail: updateBusinessEmailMutation,
4
6
  updateCustomerName: updateCustomerNameMutation
5
7
  }