@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
|
-
|
|
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
|
-
|
|
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,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
|
-
|
|
6
|
+
updateBusinessEmail: updateBusinessEmailMutation,
|
|
7
|
+
updateCustomerName: updateCustomerNameMutation,
|
|
8
|
+
updateCustomerEmail: updateCustomerEmailMutation
|
|
5
9
|
}
|