From 3c154a009d5b95d1c9acfadb676274a760dc171a Mon Sep 17 00:00:00 2001 From: Vu Nguyen Date: Thu, 19 Mar 2020 16:21:00 +0700 Subject: [PATCH] Feat: #72 create insert data react table into users page smb (#650) * fix: #72 create insert data react table into users page smb --- .../src/styles/components/spreadsheet.scss | 6 + .../validators/__tests__/validate-number.ts | 31 + .../elements/src/utils/validators/index.ts | 1 + .../src/utils/validators/validate-number.ts | 4 + .../src/resolvers/negotiators/api.ts | 10 +- .../resolvers/negotiators/negotiators.d.ts | 1 + .../__snapshots__/negotiators.test.tsx.snap | 36004 ++++++++++++---- .../negotiators-list/__mocks__/negotiators.ts | 280 +- .../negotiator-office-selectbox.test.tsx.snap | 9 + .../negotiator-status-checkbox.test.tsx.snap | 21 + .../negotiators-list.test.tsx.snap | 16369 +++++-- .../negotiator-office-selectbox.test.tsx | 18 + .../negotiator-status-checkbox.test.tsx | 86 + .../__tests__/negotiators-list.test.tsx | 181 +- .../negotiator-office-selectbox.tsx | 91 + .../negotiator-status-checkbox.tsx | 101 + .../negotiators-list/negotiators-list.graphql | 21 - .../ui/negotiators-list/negotiators-list.tsx | 373 +- .../ui/negotiators-list/negotiators.graphql | 64 + packages/smb/src/constants/paginators.ts | 1 + 20 files changed, 41065 insertions(+), 12607 deletions(-) create mode 100644 packages/elements/src/utils/validators/__tests__/validate-number.ts create mode 100644 packages/elements/src/utils/validators/validate-number.ts create mode 100644 packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-office-selectbox.test.tsx.snap create mode 100644 packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-status-checkbox.test.tsx.snap create mode 100644 packages/smb/src/components/ui/negotiators-list/__tests__/negotiator-office-selectbox.test.tsx create mode 100644 packages/smb/src/components/ui/negotiators-list/__tests__/negotiator-status-checkbox.test.tsx create mode 100644 packages/smb/src/components/ui/negotiators-list/negotiator-office-selectbox.tsx create mode 100644 packages/smb/src/components/ui/negotiators-list/negotiator-status-checkbox.tsx delete mode 100644 packages/smb/src/components/ui/negotiators-list/negotiators-list.graphql create mode 100644 packages/smb/src/components/ui/negotiators-list/negotiators.graphql diff --git a/packages/elements/src/styles/components/spreadsheet.scss b/packages/elements/src/styles/components/spreadsheet.scss index f27caabe7a..a04c785629 100644 --- a/packages/elements/src/styles/components/spreadsheet.scss +++ b/packages/elements/src/styles/components/spreadsheet.scss @@ -27,6 +27,9 @@ span.data-grid-container:focus { text-align: right; border: 1px solid #ddd; padding: 0; + &.hidden { + display: none; + } } .data-grid-container .data-grid .cell.selected { border: 1px double rgb(33, 133, 208); @@ -90,6 +93,9 @@ span.data-grid-container:focus { .data-grid-container .data-grid .cell .value-viewer, .data-grid-container .data-grid .cell .data-editor { display: block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } /* custom style */ diff --git a/packages/elements/src/utils/validators/__tests__/validate-number.ts b/packages/elements/src/utils/validators/__tests__/validate-number.ts new file mode 100644 index 0000000000..c7a14c5fd9 --- /dev/null +++ b/packages/elements/src/utils/validators/__tests__/validate-number.ts @@ -0,0 +1,31 @@ +import { isNumberOnly } from '../validate-number' + +interface ValueTypes { + validEmail: string + invalidEmail: string +} + +describe('validate-number', () => { + describe('isNumber', () => { + it('should return true', () => { + const input = '980123111' + const output = true + const result = isNumberOnly(input) + expect(result).toEqual(output) + }) + + it('should return false', () => { + const input = '109310s12' + const output = false + const result = isNumberOnly(input) + expect(result).toEqual(output) + }) + + it('should return false', () => { + const input = null + const output = false + const result = isNumberOnly(input) + expect(result).toEqual(output) + }) + }) +}) diff --git a/packages/elements/src/utils/validators/index.ts b/packages/elements/src/utils/validators/index.ts index e8e0c34387..1119e0cae6 100644 --- a/packages/elements/src/utils/validators/index.ts +++ b/packages/elements/src/utils/validators/index.ts @@ -8,6 +8,7 @@ export { validateMaxCharacterLength, } from './validate-character-length' export { validateEmail, isEmail } from './validate-email' +export { isNumberOnly } from './validate-number' export { validateRequire, fieldValidateRequire } from './validate-require' export { validateURI } from './validate-uri' export { validatePassword, isValidPassword } from './validate-password' diff --git a/packages/elements/src/utils/validators/validate-number.ts b/packages/elements/src/utils/validators/validate-number.ts new file mode 100644 index 0000000000..ffd1edd6c6 --- /dev/null +++ b/packages/elements/src/utils/validators/validate-number.ts @@ -0,0 +1,4 @@ +export const isNumberOnly = string => { + const re = /^\d+$/ + return re.test(string) +} diff --git a/packages/graphql-server/src/resolvers/negotiators/api.ts b/packages/graphql-server/src/resolvers/negotiators/api.ts index 00085965c4..b3fb870700 100644 --- a/packages/graphql-server/src/resolvers/negotiators/api.ts +++ b/packages/graphql-server/src/resolvers/negotiators/api.ts @@ -24,8 +24,10 @@ export const callGetNegotiatorByIdAPI = async ( const traceId = context.traceId logger.info('callGetNegotiatorByIdAPI', { traceId, args }) try { + const { id, ...rest } = args + const params = qs.stringify(rest) const response = await createPlatformAxiosInstance().get( - `${URLS.negotiators}/${args.id}`, + `${URLS.negotiators}/${id}?${params}`, { headers: { Authorization: context.authorization, @@ -69,7 +71,7 @@ export const callCreateNegotiatorAPI = async ( }) const id = getIdFromCreateHeaders({ headers: response.headers }) if (id) { - return callGetNegotiatorByIdAPI({ id }, context) + return callGetNegotiatorByIdAPI({ id, embed: ['office'] }, context) } return null } catch (error) { @@ -95,8 +97,8 @@ export const callUpdateNegotiatorAPI = async ( }, }, ) - if (updateResponse?.data) { - return callGetNegotiatorByIdAPI({ id: args.id }, context) + if (updateResponse) { + return callGetNegotiatorByIdAPI({ id: args.id, embed: ['office'] }, context) } return errors.generateUserInputError(traceId) } catch (error) { diff --git a/packages/graphql-server/src/resolvers/negotiators/negotiators.d.ts b/packages/graphql-server/src/resolvers/negotiators/negotiators.d.ts index c6c85946cc..1aa6033b59 100644 --- a/packages/graphql-server/src/resolvers/negotiators/negotiators.d.ts +++ b/packages/graphql-server/src/resolvers/negotiators/negotiators.d.ts @@ -7,6 +7,7 @@ export type UpdateNegotiatorArgs = { id: string; _eTag: string } & UpdateNegotia export type GetNegotiatorByIdArgs = { id: string + embed?: string[] } export type GetNegotiatorsArgs = { diff --git a/packages/smb/src/components/pages/negotiators/__tests__/__snapshots__/negotiators.test.tsx.snap b/packages/smb/src/components/pages/negotiators/__tests__/__snapshots__/negotiators.test.tsx.snap index b5b1859e33..97ea06876e 100644 --- a/packages/smb/src/components/pages/negotiators/__tests__/__snapshots__/negotiators.test.tsx.snap +++ b/packages/smb/src/components/pages/negotiators/__tests__/__snapshots__/negotiators.test.tsx.snap @@ -33,6 +33,7 @@ exports[`Negotiators Negotiators should match a snapshot 1`] = ` "cache": InMemoryCache { "addTypename": true, "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, "weakness": true, }, "config": Object { @@ -159,6 +160,20 @@ exports[`Negotiators Negotiators should match a snapshot 1`] = ` }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -181,11 +196,129 @@ exports[`Negotiators Negotiators should match a snapshot 1`] = ` "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, ], @@ -362,199 +495,119 @@ exports[`Negotiators Negotiators should match a snapshot 1`] = ` }, }, }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ Object { "directives": Array [], - "kind": "FragmentDefinition", + "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "GetNegotiators", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", + "operation": "query", "selectionSet": Object { "kind": "SelectionSet", "selections": Array [ @@ -644,6 +697,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -666,11 +733,129 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, Object { @@ -861,179 +1046,62 @@ query GetNegotiators( }, }, }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 1279, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -1042,7 +1110,37 @@ query GetNegotiators( _links } } -", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", "locationOffset": Object { "column": 1, "line": 1, @@ -1151,6 +1249,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -1173,104 +1285,222 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "id", }, }, Object { + "arguments": Array [], + "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "__typename", + "value": "created", }, }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, }, Object { "directives": Array [], @@ -1368,206 +1598,119 @@ query GetNegotiators( }, }, }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ Object { "directives": Array [], - "kind": "FragmentDefinition", + "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "GetNegotiators", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", + "operation": "query", "selectionSet": Object { "kind": "SelectionSet", "selections": Array [ @@ -1657,6 +1800,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -1679,77 +1836,195 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "id", }, }, Object { + "arguments": Array [], + "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "__typename", + "value": "created", }, }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, }, ], }, @@ -1874,131 +2149,532 @@ query GetNegotiators( }, }, }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ Object { "directives": Array [], - "kind": "FragmentDefinition", + "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "OFFICES", }, + "operation": "query", "selectionSet": Object { "kind": "SelectionSet", "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "active", + "value": "id", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "officeId", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "name", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "email", + "value": "address", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "pageSize", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { "kind": "Name", "value": "_links", }, @@ -2012,11 +2688,96 @@ query GetNegotiators( "value": "_embedded", }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, Object { + "arguments": Array [], + "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "__typename", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, ], @@ -2025,28 +2786,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -2064,278 +2825,267 @@ query GetNegotiators( }, "start": 0, }, - }, - }, - "watches": Set { - Object { - "callback": [Function], - "optimistic": true, - "previousResult": [Function], - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "_embedded", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, + }, + ], }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "ListType", + "kind": "NonNullType", "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -2343,17 +3093,20 @@ query GetNegotiators( "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -2361,537 +3114,586 @@ query GetNegotiators( "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, + ], }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", }, - "name": "GraphQL request", }, - "start": 0, }, - }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - }, - }, - "clearStoreCallbacks": Array [], - "defaultOptions": Object {}, - "disableNetworkFetches": false, - "link": MockLink { - "addTypename": true, - "mockedResponsesByKey": Object {}, - }, - "localState": LocalState { - "cache": InMemoryCache { - "addTypename": true, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": true, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, - }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map { - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OfficeModelAddress", }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + "value": "_embedded", }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", }, - ], - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + }, + Object { + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "__typename", }, }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + ], }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "ListType", + "kind": "NonNullType", "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -2899,198 +3701,328 @@ query GetNegotiators( "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - ], + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", }, }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -3100,503 +4032,604 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "_embedded", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageCount", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, ], - "directives": Array [], - "kind": "Field", + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -3606,16 +4639,22 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, + "start": 0, }, - Object { + }, + }, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { "definitions": Array [ Object { "directives": Array [], @@ -3714,6 +4753,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -3736,11 +4789,129 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, Object { @@ -3931,206 +5102,132 @@ query GetNegotiators( }, }, }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ Object { "directives": Array [], - "kind": "FragmentDefinition", + "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "OFFICES", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", + "operation": "query", "selectionSet": Object { "kind": "SelectionSet", "selections": Array [ @@ -4168,13 +5265,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -4182,13 +5279,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -4196,13 +5293,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -4210,13 +5307,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -4225,7 +5322,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -4246,7 +5343,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, Object { @@ -4363,23 +5460,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -4387,10 +5478,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -4405,10 +5499,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -4444,7 +5541,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -4491,7 +5588,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -4500,7 +5597,27 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { @@ -4509,7 +5626,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -4518,7 +5635,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -4527,7 +5644,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -4536,7 +5653,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -4545,7 +5662,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -4554,16 +5671,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", }, }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { "arguments": Array [], "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingName", }, }, Object { @@ -4572,7 +5716,61 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, Object { @@ -4588,28 +5786,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -4628,501 +5826,542 @@ query GetNegotiators( "start": 0, }, }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, }, - "watches": Set { + }, + }, + "clearStoreCallbacks": Array [], + "defaultOptions": Object {}, + "disableNetworkFetches": false, + "link": MockLink { + "addTypename": true, + "mockedResponsesByKey": Object {}, + }, + "localState": LocalState { + "cache": InMemoryCache { + "addTypename": true, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": true, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map { Object { - "callback": [Function], - "optimistic": true, - "previousResult": [Function], - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "officeId", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "String", + "value": "embed", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { + ], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "_embedded", }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, }, }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -5131,533 +6370,549 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, + "start": 0, }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - }, - }, - "client": [Circular], - }, - "mutate": [Function], - "query": [Function], - "queryDeduplication": true, - "queryManager": QueryManager { - "assumeImmutableResults": false, - "clientAwareness": Object { - "name": undefined, - "version": undefined, - }, - "dataStore": DataStore { - "cache": InMemoryCache { - "addTypename": true, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": true, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, - }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map { - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", - "name": Object { + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "officeId", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - ], }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "String", + "value": "embed", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { + ], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "_embedded", }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -5666,504 +6921,550 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "officeId", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "String", + "value": "embed", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { + ], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -6172,505 +7473,549 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, + "start": 0, }, - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "officeId", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "pageCount", }, }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "totalCount", }, }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -6679,280 +8024,293 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "name", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, - Object { - "kind": "Argument", + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "sortBy", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "_embedded", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", "value": "pageNumber", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageCount", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, }, ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "ListType", + "kind": "NonNullType", "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -6960,17 +8318,20 @@ query GetNegotiators( "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -6978,205 +8339,286 @@ query GetNegotiators( "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", }, }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -7186,1028 +8628,16893 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, + "start": 0, }, - }, - "watches": Set { - Object { - "callback": [Function], - "optimistic": true, - "previousResult": [Function], - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, - ], - "directives": Array [], - "kind": "Field", + }, + }, + Object { + "kind": "Argument", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "address", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", + Object { + "kind": "Argument", "name": Object { "kind": "Name", - "value": "name", + "value": "sortBy", }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", + Object { + "kind": "Argument", "name": Object { "kind": "Name", "value": "pageSize", }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, - "variable": Object { - "kind": "Variable", + Object { + "kind": "Argument", "name": Object { "kind": "Name", "value": "pageNumber", }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, - }, - Object { - "kind": "Field", + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "__typename", + "value": "String", }, }, - ], + }, }, - "typeCondition": Object { + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, }, - "name": "GraphQL request", }, - "start": 0, - }, - }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - }, - }, - }, - "fetchQueryRejectFns": Map {}, - "idCounter": 3, - "inFlightLinkObservables": Map { - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + "kind": "VariableDefinition", "type": Object { "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + Object { + "directives": Array [], + "kind": "VariableDefinition", "type": Object { "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + }, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + }, + }, + "client": [Circular], + }, + "mutate": [Function], + "query": [Function], + "queryDeduplication": true, + "queryManager": QueryManager { + "assumeImmutableResults": false, + "clientAwareness": Object { + "name": undefined, + "version": undefined, + }, + "dataStore": DataStore { + "cache": InMemoryCache { + "addTypename": true, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": true, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + }, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + }, + }, + }, + "fetchQueryRejectFns": Map {}, + "idCounter": 5, + "inFlightLinkObservables": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Map {}, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Map {}, + }, + "link": MockLink { + "addTypename": true, + "mockedResponsesByKey": Object {}, + }, + "localState": LocalState { + "cache": InMemoryCache { + "addTypename": true, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": true, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + }, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + }, + }, + "client": [Circular], + }, + "mutationStore": MutationStore { + "store": Object {}, + }, + "onBroadcast": [Function], + "pollingInfoByQueryId": Map {}, + "queries": Map { + "1" => Object { + "cancel": [Function], + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "invalidated": false, + "lastRequestId": 2, + "listeners": Set { + [Function], + }, + "newData": null, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "isTornDown": false, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "options": Object { + "context": undefined, + "displayName": "Query", + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], }, ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -8216,520 +25523,661 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, }, - "name": "GraphQL request", }, - "start": 0, - }, - } => Map {}, - }, - "link": MockLink { - "addTypename": true, - "mockedResponsesByKey": Object {}, - }, - "localState": LocalState { - "cache": InMemoryCache { - "addTypename": true, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": true, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, + "queryId": "1", + "queryManager": [Circular], + "queryName": "GetNegotiators", + "shouldSubscribe": true, + "subscriptions": Set {}, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map { - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + "subscriptions": Set {}, + }, + "3" => Object { + "cancel": [Function], + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "id", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + "value": "pageSize", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + "value": "pageCount", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "value": "totalCount", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + "value": "_links", }, }, Object { - "kind": "Argument", + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + "value": "__typename", }, }, ], - "directives": Array [], - "kind": "Field", + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "Int", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - ], + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", }, }, - ], - }, - "variableDefinitions": Array [ + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "String", + "value": "OfficeAddress", }, }, - }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, ], }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", }, }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -8739,503 +26187,601 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", + "start": 0, + }, + }, + "invalidated": false, + "lastRequestId": 4, + "listeners": Set { + [Function], + }, + "newData": null, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "isTornDown": false, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "error": [Function], + "next": [Function], }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "options": Object { + "context": undefined, + "displayName": "Query", + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "id", }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", + Object { + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "name", }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "address", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", "value": "pageSize", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "totalCount", + "value": "pageNumber", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, - Object { - "kind": "Field", + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "__typename", + "value": "String", }, }, - ], + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", "type": Object { "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + Object { + "directives": Array [], + "kind": "VariableDefinition", "type": Object { "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -9245,16 +26791,38 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", }, - "name": "GraphQL request", + "start": 0, }, - "start": 0, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, }, }, - Object { + "queryId": "3", + "queryManager": [Circular], + "queryName": "OFFICES", + "shouldSubscribe": true, + "subscriptions": Set {}, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + "subscriptions": Set {}, + }, + }, + "queryDeduplication": true, + "queryStore": QueryStore { + "store": Object { + "1": Object { + "document": Object { "definitions": Array [ Object { "directives": Array [], @@ -9353,6 +26921,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -9375,11 +26957,129 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, }, Object { @@ -9505,244 +27205,127 @@ query GetNegotiators( "kind": "Name", "value": "String", }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + }, + }, + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "officeId", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "Int", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "pageSize", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "email", + "value": "Int", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "metadata", + "value": "pageNumber", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_links", + "value": "sortBy", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, }, }, - Object { - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "__typename", + "value": "embed", }, }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, + ], }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 1279, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -9751,7 +27334,37 @@ query GetNegotiators( _links } } -", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", "locationOffset": Object { "column": 1, "line": 1, @@ -9760,14 +27373,33 @@ query GetNegotiators( }, "start": 0, }, - } => Object { + }, + "graphQLErrors": Array [], + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "networkError": null, + "networkStatus": 1, + "previousVariables": null, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + "3": Object { + "document": Object { "definitions": Array [ Object { "directives": Array [], "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -9807,13 +27439,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -9821,13 +27453,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -9835,13 +27467,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -9849,13 +27481,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -9864,7 +27496,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -9885,7 +27517,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, Object { @@ -10002,23 +27634,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -10026,10 +27652,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -10044,10 +27673,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -10083,7 +27715,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -10130,7 +27762,81 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, }, Object { @@ -10139,16 +27845,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { "arguments": Array [], "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "buildingName", }, }, Object { @@ -10157,7 +27890,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "buildingNumber", }, }, Object { @@ -10166,7 +27899,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "line1", }, }, Object { @@ -10175,7 +27908,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "line2", }, }, Object { @@ -10184,7 +27917,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "line3", }, }, Object { @@ -10193,7 +27926,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "line4", }, }, Object { @@ -10202,7 +27935,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "postcode", }, }, Object { @@ -10211,7 +27944,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "countryId", }, }, Object { @@ -10227,28 +27960,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -10267,235 +28000,381 @@ query GetNegotiators( "start": 0, }, }, + "graphQLErrors": Array [], + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "networkError": null, + "networkStatus": 1, + "previousVariables": null, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, }, - "watches": Set { - Object { - "callback": [Function], - "optimistic": true, - "previousResult": [Function], - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ + }, + }, + "ssrMode": false, + "transformCache": WeakMap {}, + }, + "reFetchObservableQueries": [Function], + "resetStore": [Function], + "resetStoreCallbacks": Array [], + "store": DataStore { + "cache": InMemoryCache { + "addTypename": true, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": true, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, }, - }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - ], + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, }, - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -10503,265 +28382,719 @@ query GetNegotiators( "value": "String", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "value": "String", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", + "value": "String", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", "name": Object { "kind": "Name", - "value": "String", + "value": "id", }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "id", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "created", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "modified", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "active", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "_links", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "String", }, }, - Object { - "kind": "Field", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "__typename", + "value": "String", }, }, - ], + }, }, - "typeCondition": Object { - "kind": "NamedType", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "embed", }, }, }, ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -10770,34 +29103,47 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", }, + "start": 0, }, }, - }, - "client": [Circular], - }, - "mutationStore": MutationStore { - "store": Object {}, - }, - "onBroadcast": [Function], - "pollingInfoByQueryId": Map {}, - "queries": Map { - "1" => Object { - "cancel": [Function], - "document": Object { + Object { "definitions": Array [ Object { "directives": Array [], @@ -10896,6 +29242,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -10918,11 +29278,129 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, Object { @@ -11084,208 +29562,91 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + "value": "Int", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "pageNumber", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "_links", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "sortBy", }, }, - Object { - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "__typename", + "value": "embed", }, }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, + ], }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 1279, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -11294,7 +29655,37 @@ query GetNegotiators( _links } } -", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", "locationOffset": Object { "column": 1, "line": 1, @@ -11303,348 +29694,383 @@ query GetNegotiators( }, "start": 0, }, - }, - "invalidated": false, - "lastRequestId": 2, - "listeners": Set { - [Function], - }, - "newData": null, - "observableQuery": ObservableQuery { - "_subscriber": [Function], - "isTornDown": false, - "lastResult": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, - }, - "lastResultSnapshot": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, - }, - "observers": Set { - SubscriptionObserver { - "_subscription": Subscription { - "_cleanup": [Function], - "_observer": Object { - "error": [Function], - "next": [Function], - }, - "_queue": Array [ - Object { - "type": "next", - "value": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, - }, - }, - ], - "_state": "buffering", - }, - }, - }, - "options": Object { - "context": undefined, - "displayName": "Query", - "fetchPolicy": "network-only", - "metadata": Object { - "reactComponent": Object { - "displayName": "Query", + } => Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", }, - }, - "notifyOnNetworkStatusChange": false, - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, }, - }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - ], + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, }, - }, + ], }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", + "value": "String", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { @@ -11652,788 +30078,754 @@ query GetNegotiators( "value": "String", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, }, - ], + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, }, Object { "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "modified", + "value": "String", }, }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "name", + "value": "id", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "active", + "value": "name", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "address", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "email", + "value": "sortBy", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "pageSize", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, ], - }, - "typeCondition": Object { - "kind": "NamedType", + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "GetOffices", }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - "queryId": "1", - "queryManager": [Circular], - "queryName": "GetNegotiators", - "shouldSubscribe": true, - "subscriptions": Set {}, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - "subscriptions": Set {}, - }, - }, - "queryDeduplication": true, - "queryStore": QueryStore { - "store": Object { - "1": Object { - "document": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "id", + "value": "_embedded", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + "value": "pageNumber", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + "value": "pageSize", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "value": "pageCount", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + "value": "totalCount", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + "value": "_links", }, }, ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], - }, }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "ListType", + "kind": "NonNullType", "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, }, - "variable": Object { - "kind": "Variable", + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "id", + "value": "Int", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} -", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], }, - "start": 0, - }, - }, - "graphQLErrors": Array [], - "metadata": Object { - "reactComponent": Object { - "displayName": "Query", - }, - }, - "networkError": null, - "networkStatus": 1, - "previousVariables": null, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, - }, - }, - }, - }, - "ssrMode": false, - "transformCache": WeakMap {}, - }, - "reFetchObservableQueries": [Function], - "resetStore": [Function], - "resetStoreCallbacks": Array [], - "store": DataStore { - "cache": InMemoryCache { - "addTypename": true, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": true, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, - }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map { - Object { + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Object { "definitions": Array [ Object { "directives": Array [], "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -12473,13 +30865,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -12487,13 +30879,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -12501,13 +30893,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -12515,13 +30907,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -12530,7 +30922,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -12551,7 +30943,14 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, ], @@ -12602,6 +31001,13 @@ query GetNegotiators( "value": "_links", }, }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, ], }, }, @@ -12654,23 +31060,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -12678,10 +31078,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -12696,10 +31099,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -12735,7 +31141,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -12782,7 +31188,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -12791,7 +31197,27 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { @@ -12800,7 +31226,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -12809,7 +31235,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -12818,7 +31244,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -12827,7 +31253,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -12836,7 +31262,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -12845,16 +31271,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { "arguments": Array [], "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingName", }, }, Object { @@ -12863,7 +31316,68 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", }, }, ], @@ -12872,28 +31386,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -12911,14 +31425,15 @@ query GetNegotiators( }, "start": 0, }, - } => Object { + }, + Object { "definitions": Array [ Object { "directives": Array [], "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -12958,13 +31473,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -12972,13 +31487,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -12986,13 +31501,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -13000,13 +31515,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -13015,7 +31530,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -13036,7 +31551,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, Object { @@ -13153,23 +31668,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -13177,10 +31686,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -13195,10 +31707,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -13234,7 +31749,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -13281,7 +31796,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -13290,7 +31805,27 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { @@ -13299,7 +31834,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -13308,7 +31843,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -13317,7 +31852,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -13326,7 +31861,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -13335,7 +31870,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -13344,7 +31879,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, }, Object { @@ -13353,7 +31924,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingNumber", }, }, Object { @@ -13362,7 +31933,52 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, Object { @@ -13378,28 +31994,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -13417,15 +32033,14 @@ query GetNegotiators( }, "start": 0, }, - }, - Object { + } => Object { "definitions": Array [ Object { "directives": Array [], "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -13465,13 +32080,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -13479,13 +32094,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -13493,13 +32108,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -13507,13 +32122,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -13522,7 +32137,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -13543,7 +32158,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, Object { @@ -13660,23 +32275,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -13684,10 +32293,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -13702,10 +32314,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -13726,33 +32341,116 @@ query GetNegotiators( "value": "String", }, }, - "variable": Object { - "kind": "Variable", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "workPhone", }, }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { "arguments": Array [], "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "id", + "value": "email", }, }, Object { @@ -13761,7 +32459,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "created", + "value": "metadata", }, }, Object { @@ -13770,7 +32468,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "modified", + "value": "_eTag", }, }, Object { @@ -13779,7 +32477,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "name", + "value": "_links", }, }, Object { @@ -13788,25 +32486,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "_embedded", }, }, Object { - "arguments": Array [], - "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "__typename", }, }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { "arguments": Array [], "directives": Array [], "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "buildingName", }, }, Object { @@ -13815,7 +32531,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "buildingNumber", }, }, Object { @@ -13824,7 +32540,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "line1", }, }, Object { @@ -13833,7 +32549,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "line2", }, }, Object { @@ -13842,7 +32558,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "line3", }, }, Object { @@ -13851,7 +32567,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "line4", }, }, Object { @@ -13860,7 +32576,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "postcode", }, }, Object { @@ -13869,7 +32585,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "countryId", }, }, Object { @@ -13885,28 +32601,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -13924,495 +32640,517 @@ query GetNegotiators( }, "start": 0, }, - } => Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", + }, + }, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", "name": Object { "kind": "Name", "value": "id", }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "name", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", - }, - }, - ], + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "officeId", }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageCount", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "totalCount", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_links", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "__typename", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, }, }, ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, + ], }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", "type": Object { - "kind": "NonNullType", + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, }, - }, - Object { - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "__typename", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, }, }, ], }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -14421,18 +33159,54 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", }, - "name": "GraphQL request", + "start": 0, }, - "start": 0, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, }, }, - }, - "watches": Set { Object { "callback": [Function], "optimistic": true, @@ -14444,7 +33218,7 @@ query GetNegotiators( "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -14484,13 +33258,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -14498,13 +33272,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -14512,13 +33286,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -14526,13 +33300,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -14541,7 +33315,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -14562,7 +33336,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, Object { @@ -14679,23 +33453,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -14703,10 +33471,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -14721,10 +33492,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -14760,7 +33534,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -14807,7 +33581,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -14816,7 +33590,27 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], }, }, Object { @@ -14825,7 +33619,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -14834,7 +33628,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -14843,7 +33637,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -14852,7 +33646,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -14861,7 +33655,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -14870,7 +33664,43 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", + }, + }, + Object { + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "__typename", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, }, Object { @@ -14879,7 +33709,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingNumber", }, }, Object { @@ -14888,7 +33718,52 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, Object { @@ -14904,28 +33779,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -14946,7 +33821,7 @@ query GetNegotiators( }, "variables": Object { "pageNumber": 1, - "pageSize": 12, + "pageSize": 100, }, }, }, @@ -14995,6 +33870,31 @@ query GetNegotiators(
+ +
+ +
+
diff --git a/packages/smb/src/components/ui/negotiators-list/__mocks__/negotiators.ts b/packages/smb/src/components/ui/negotiators-list/__mocks__/negotiators.ts index b53b070442..532d988837 100644 --- a/packages/smb/src/components/ui/negotiators-list/__mocks__/negotiators.ts +++ b/packages/smb/src/components/ui/negotiators-list/__mocks__/negotiators.ts @@ -1,4 +1,218 @@ -import { NegotiatorsQueryResponse } from '../negotiators-list' +import { NegotiatorsQueryResponse, NegotiatorUpdateParams, NegotiatorCreateParams } from '../negotiators-list' +import { NegotiatorModel } from '@reapit/elements/node_modules/@reapit/foundations-ts-definitions/types' +import { ChangedCells, Cell } from '@reapit/elements/src/components/Spreadsheet/types' + +export const updateNegotiatorParams: NegotiatorUpdateParams = { + id: 'MGL', + name: 'Abel Robertson', + active: true, + email: 'abel.robertson@reapitestates.net', + mobilePhone: '1002291122', + _eTag: '"10109C0209C684789B72FFC53730E31C"', +} + +export const createNegotiatorParams: NegotiatorCreateParams = { + name: 'Abel Robertson', + active: true, + email: 'abel.robertson@reapitestates.net', + mobilePhone: '1002291122', + officeId: 'OFF', + jobTitle: 'Senior Manager', +} + +export const negotiatorDetail: NegotiatorModel = { + id: 'MGL', + created: '2014-12-26T12:22:01.0000000Z', + modified: '2016-11-29T09:57:32.0000000Z', + name: 'Abel Robertson', + active: true, + officeId: 'NPG', + email: 'abel.robertson@reapitestates.net', + metadata: {}, + _eTag: '"10109C0209C684789B72FFC53730E31C"', + _links: { + self: { + href: '/negotiators/MGL', + }, + office: { + href: '/offices/NPG', + }, + }, +} + +export const mockChangeCellsForUpdateCase: ChangedCells = [ + { + oldCell: { + value: 'Abel Robertson', + isValidated: true, + }, + newCell: { + value: 'Robertson', + isValidated: true, + }, + row: 1, + col: 0, + }, +] + +export const mockChangeCellsForCreateCase: ChangedCells = [ + { + oldCell: { + value: 'Abel Robertson', + isValidated: true, + }, + newCell: { + value: 'Robertson', + isValidated: true, + }, + row: 1, + col: 0, + }, +] + +export const mockOfficeCellRenderProps = { + row: 1, + col: 5, + cell: { value: 'Reapit' }, + selected: false, + editing: false, + updated: false, + attributesRenderer: jest.fn() as any, + className: 'cell', + style: { background: 'red' }, + onMouseDown: jest.fn(), + onMouseOver: jest.fn(), + onDoubleClick: jest.fn(), + onContextMenu: jest.fn(), + children: null, +} + +export const mockSpreadSheetDataForUpdateCase: Cell[][] = [ + [ + { + readOnly: true, + value: 'Username', + }, + { + readOnly: true, + value: 'Job Title', + }, + { + readOnly: true, + value: 'Email Address', + }, + { + readOnly: true, + value: 'Telephone', + }, + { + readOnly: true, + value: 'Office', + }, + { + readOnly: true, + value: 'Status', + }, + ], + [ + { + value: 'Abel Robertson', + isValidated: true, + }, + { + value: 'undefined', + }, + { + value: 'abel.robertson@reapitestates.net', + }, + { + value: '9481221233', + }, + { + readOnly: true, + value: 'River Town', + }, + { + readOnly: true, + value: 'true', + }, + { + className: 'hidden', + value: 'MGL', + }, + { + className: 'hidden', + value: '"10109C0209C684789B72FFC53730E31C"', + }, + ], +] + +export const mockSpreadSheetDataForCreateCase: Cell[][] = [ + [ + { + readOnly: true, + value: 'Username', + }, + { + readOnly: true, + value: 'Job Title', + }, + { + readOnly: true, + value: 'Email Address', + }, + { + readOnly: true, + value: 'Telephone', + }, + { + readOnly: true, + value: 'Office', + }, + { + readOnly: true, + value: 'Status', + }, + ], + [ + { + value: 'Abel Robertson', + isValidated: true, + }, + { + value: 'undefined', + isValidated: true, + }, + { + value: 'abel.robertson@reapitestates.net', + isValidated: true, + }, + { + value: '9481221233', + isValidated: true, + }, + { + readOnly: true, + value: 'River Town', + isValidated: true, + }, + { + readOnly: true, + value: 'true', + isValidated: true, + }, + { + className: 'hidden', + value: null, + isValidated: true, + }, + { + className: 'hidden', + value: null, + isValidated: true, + }, + ], +] export const negotiators: NegotiatorsQueryResponse = { GetNegotiators: { @@ -11,7 +225,28 @@ export const negotiators: NegotiatorsQueryResponse = { active: true, officeId: 'NPG', email: 'abel.robertson@reapitestates.net', + mobilePhone: '9481221233', metadata: {}, + _embedded: { + office: { + id: 'BDF', + created: '2010-11-16T15:42:00Z', + modified: '2020-02-14T15:56:48Z', + name: 'River Town', + manager: 'Scott Bolton', + address: { + buildingName: '', + buildingNumber: '', + line1: 'Bedford Heights', + line2: 'Brickhill Drive', + line3: 'Bedfordshire', + line4: '', + postcode: 'MK41 7PH', + countryId: '', + }, + email: 'salesbe@hughmason.co.uk', + }, + }, _eTag: '"10109C0209C684789B72FFC53730E31C"', _links: { self: { @@ -29,6 +264,28 @@ export const negotiators: NegotiatorsQueryResponse = { name: 'Accounts User', active: true, officeId: 'MCL', + email: 'abel.21f@reapitestates.net', + mobilePhone: '9481221233', + _embedded: { + office: { + id: 'BDF', + created: '2010-11-16T15:42:00Z', + modified: '2020-02-14T15:56:48Z', + name: 'River Town', + manager: 'Scott Bolton', + address: { + buildingName: '', + buildingNumber: '', + line1: 'Bedford Heights', + line2: 'Brickhill Drive', + line3: 'Bedfordshire', + line4: '', + postcode: 'MK41 7PH', + countryId: '', + }, + email: 'salesbe@hughmason.co.uk', + }, + }, _eTag: '"85A9DB571DB893A5FB734105AFF6B464"', _links: { self: { @@ -47,7 +304,28 @@ export const negotiators: NegotiatorsQueryResponse = { active: true, officeId: 'NGL', email: 'adele.small@reapitestates.net', + mobilePhone: '9481221233', metadata: {}, + _embedded: { + office: { + id: 'BDF', + created: '2010-11-16T15:42:00Z', + modified: '2020-02-14T15:56:48Z', + name: 'River Town', + manager: 'Scott Bolton', + address: { + buildingName: '', + buildingNumber: '', + line1: 'Bedford Heights', + line2: 'Brickhill Drive', + line3: 'Bedfordshire', + line4: '', + postcode: 'MK41 7PH', + countryId: '', + }, + email: 'salesbe@hughmason.co.uk', + }, + }, _eTag: '"B28EE5CFF654DB22BF3247CA028C10C3"', _links: { self: { diff --git a/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-office-selectbox.test.tsx.snap b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-office-selectbox.test.tsx.snap new file mode 100644 index 0000000000..95a509ff23 --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-office-selectbox.test.tsx.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`NegotiatorOfficeSelectbox should match a snapshot 1`] = ` + + Reapit + +`; diff --git a/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-status-checkbox.test.tsx.snap b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-status-checkbox.test.tsx.snap new file mode 100644 index 0000000000..a509c765df --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiator-status-checkbox.test.tsx.snap @@ -0,0 +1,21 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`NegotiatorStatusCheckbox should match a snapshot 1`] = ` +
+ + +
+`; diff --git a/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiators-list.test.tsx.snap b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiators-list.test.tsx.snap index f85512fed0..2f81ebd0ab 100644 --- a/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiators-list.test.tsx.snap +++ b/packages/smb/src/components/ui/negotiators-list/__tests__/__snapshots__/negotiators-list.test.tsx.snap @@ -128,6 +128,20 @@ exports[`NegotiatorList NegotiatorList should match a snapshot 1`] = ` }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -150,11 +164,129 @@ exports[`NegotiatorList NegotiatorList should match a snapshot 1`] = ` "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, ], @@ -331,172 +463,62 @@ exports[`NegotiatorList NegotiatorList should match a snapshot 1`] = ` }, }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "embed", }, }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, + ], }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 1279, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -505,7 +527,37 @@ query GetNegotiators( _links } } -", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", "locationOffset": Object { "column": 1, "line": 1, @@ -526,6 +578,26 @@ query GetNegotiators( "_embedded": Array [ Object { "_eTag": "\\"10109C0209C684789B72FFC53730E31C\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, "_links": Object { "office": Object { "href": "/offices/NPG", @@ -539,12 +611,33 @@ query GetNegotiators( "email": "abel.robertson@reapitestates.net", "id": "MGL", "metadata": Object {}, + "mobilePhone": "9481221233", "modified": "2016-11-29T09:57:32.0000000Z", "name": "Abel Robertson", "officeId": "NPG", }, Object { "_eTag": "\\"85A9DB571DB893A5FB734105AFF6B464\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, "_links": Object { "office": Object { "href": "/offices/MCL", @@ -555,13 +648,35 @@ query GetNegotiators( }, "active": true, "created": "2017-02-07T12:08:53.0000000Z", + "email": "abel.21f@reapitestates.net", "id": "RPA", + "mobilePhone": "9481221233", "modified": "2017-02-07T12:09:41.0000000Z", "name": "Accounts User", "officeId": "MCL", }, Object { "_eTag": "\\"B28EE5CFF654DB22BF3247CA028C10C3\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, "_links": Object { "office": Object { "href": "/offices/NGL", @@ -575,6 +690,7 @@ query GetNegotiators( "email": "adele.small@reapitestates.net", "id": "KLB", "metadata": Object {}, + "mobilePhone": "9481221233", "modified": "2017-03-10T00:02:08.0000000Z", "name": "Adele Small", "officeId": "NGL", @@ -602,515 +718,677 @@ query GetNegotiators( }, }, }, - ] - } - > - + Map {}, + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + } => Map {}, + }, + "link": MockLink { + "addTypename": false, + "mockedResponsesByKey": Object { + "{\\"query\\":\\"mutation CreateNegotiator($name: String, $jobTitle: String, $active: Boolean, $officeId: String, $mobilePhone: String, $email: String) {\\\\n CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email)\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "CreateNegotiator", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "active", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "CreateNegotiator", + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Boolean", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "result": Object { + "data": Object { + "_eTag": "\\"10109C0209C684789B72FFC53730E31C\\"", + "_links": Object { + "office": Object { + "href": "/offices/NPG", + }, + "self": Object { + "href": "/negotiators/MGL", + }, + }, + "active": true, + "created": "2014-12-26T12:22:01.0000000Z", + "email": "abel.robertson@reapitestates.net", + "id": "MGL", + "metadata": Object {}, + "modified": "2016-11-29T09:57:32.0000000Z", + "name": "Abel Robertson", + "officeId": "NPG", + }, + }, + "variables": Object { + "active": true, + "email": "abel.robertson@reapitestates.net", + "jobTitle": "Senior Manager", + "mobilePhone": "1002291122", + "name": "Abel Robertson", + "officeId": "OFF", + }, + }, + }, + ], + "{\\"query\\":\\"mutation UpdateNegotiator($id: String!, $_eTag: String!, $name: String, $jobTitle: String, $active: Boolean, $mobilePhone: String, $email: String) {\\\\n UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) {\\\\n id\\\\n name\\\\n jobTitle\\\\n active\\\\n mobilePhone\\\\n email\\\\n _eTag\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "UpdateNegotiator", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "active", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "UpdateNegotiator", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Boolean", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "result": Object { + "data": "", + }, + "variables": Object { + "_eTag": "\\"10109C0209C684789B72FFC53730E31C\\"", + "active": true, + "email": "abel.robertson@reapitestates.net", + "id": "MGL", + "mobilePhone": "1002291122", + "name": "Abel Robertson", + }, + }, + }, + ], + "{\\"query\\":\\"query GetNegotiators($id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String, $embed: [String!]) {\\\\n GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) {\\\\n _embedded {\\\\n id\\\\n created\\\\n modified\\\\n name\\\\n jobTitle\\\\n active\\\\n officeId\\\\n workPhone\\\\n mobilePhone\\\\n email\\\\n metadata\\\\n _eTag\\\\n _links\\\\n _embedded\\\\n }\\\\n pageNumber\\\\n pageSize\\\\n pageCount\\\\n totalCount\\\\n _links\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + "result": Object { + "data": Object { + "GetNegotiators": Object { + "_embedded": Array [ + Object { + "_eTag": "\\"10109C0209C684789B72FFC53730E31C\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, + "_links": Object { + "office": Object { + "href": "/offices/NPG", + }, + "self": Object { + "href": "/negotiators/MGL", + }, + }, + "active": true, + "created": "2014-12-26T12:22:01.0000000Z", + "email": "abel.robertson@reapitestates.net", + "id": "MGL", + "metadata": Object {}, + "mobilePhone": "9481221233", + "modified": "2016-11-29T09:57:32.0000000Z", + "name": "Abel Robertson", + "officeId": "NPG", + }, + Object { + "_eTag": "\\"85A9DB571DB893A5FB734105AFF6B464\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, + "_links": Object { + "office": Object { + "href": "/offices/MCL", + }, + "self": Object { + "href": "/negotiators/RPA", + }, + }, + "active": true, + "created": "2017-02-07T12:08:53.0000000Z", + "email": "abel.21f@reapitestates.net", + "id": "RPA", + "mobilePhone": "9481221233", + "modified": "2017-02-07T12:09:41.0000000Z", + "name": "Accounts User", + "officeId": "MCL", + }, + Object { + "_eTag": "\\"B28EE5CFF654DB22BF3247CA028C10C3\\"", + "_embedded": Object { + "office": Object { + "address": Object { + "buildingName": "", + "buildingNumber": "", + "countryId": "", + "line1": "Bedford Heights", + "line2": "Brickhill Drive", + "line3": "Bedfordshire", + "line4": "", + "postcode": "MK41 7PH", + }, + "created": "2010-11-16T15:42:00Z", + "email": "salesbe@hughmason.co.uk", + "id": "BDF", + "manager": "Scott Bolton", + "modified": "2020-02-14T15:56:48Z", + "name": "River Town", + }, + }, + "_links": Object { + "office": Object { + "href": "/offices/NGL", + }, + "self": Object { + "href": "/negotiators/KLB", + }, + }, + "active": true, + "created": "2010-11-15T14:53:08.0000000Z", + "email": "adele.small@reapitestates.net", + "id": "KLB", + "metadata": Object {}, + "mobilePhone": "9481221233", + "modified": "2017-03-10T00:02:08.0000000Z", + "name": "Adele Small", + "officeId": "NGL", + }, + ], + "_links": Object { + "first": Object { + "href": "/negotiators/?PageNumber=1&PageSize=3", + }, + "last": Object { + "href": "/negotiators/?PageNumber=3&PageSize=3", + }, + "next": Object { + "href": "/negotiators/?PageNumber=2&PageSize=3", + }, + "self": Object { + "href": "/negotiators/?PageNumber=1&PageSize=3", + }, + }, + "pageCount": 3, + "pageNumber": 1, + "pageSize": 3, + "totalCount": 3, + }, + }, + }, + }, + ], + }, + }, + "localState": LocalState { + "cache": InMemoryCache { + "addTypename": false, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": false, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, + }, + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" + +query OFFICES( + $id: [String!], + $name: String, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, + $sortBy: String + ) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { + _embedded { + ...Office + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} +", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, + }, + }, + }, + "client": [Circular], + }, + "mutationStore": MutationStore { + "store": Object {}, + }, + "onBroadcast": [Function], + "pollingInfoByQueryId": Map {}, + "queries": Map { + "1" => Object { + "cancel": [Function], + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "invalidated": false, + "lastRequestId": 2, + "listeners": Set { + [Function], + }, + "newData": null, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "isTornDown": false, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "options": Object { + "context": undefined, + "displayName": "Query", + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, }, - "value": Object { + "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", @@ -2824,444 +11093,157 @@ query GetNegotiators( }, }, Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "name", + "value": "String", }, }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { + "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "name", }, }, }, Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, }, - "value": Object { + "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "officeId", }, }, }, Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "Int", }, }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { + "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageSize", }, }, }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], + "value": "Int", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", "value": "pageNumber", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "totalCount", + "value": "String", }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_links", - }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "value": "sortBy", + }, }, }, - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], }, ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -3270,491 +11252,626 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", + }, + "start": 0, + }, + }, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, }, - "name": "GraphQL request", }, - "start": 0, + "queryId": "1", + "queryManager": [Circular], + "queryName": "GetNegotiators", + "shouldSubscribe": true, + "subscriptions": Set {}, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, + }, }, - } => Map {}, - }, - "link": MockLink { - "addTypename": false, - "mockedResponsesByKey": Object { - "{\\"query\\":\\"query GetNegotiators($id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String) {\\\\n GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) {\\\\n _embedded {\\\\n ...Negotiator\\\\n }\\\\n pageNumber\\\\n pageSize\\\\n pageCount\\\\n totalCount\\\\n _links\\\\n }\\\\n}\\\\n\\\\nfragment Negotiator on NegotiatorModel {\\\\n id\\\\n created\\\\n modified\\\\n name\\\\n jobTitle\\\\n active\\\\n officeId\\\\n workPhone\\\\n mobilePhone\\\\n email\\\\n metadata\\\\n _eTag\\\\n _links\\\\n _embedded\\\\n}\\\\n\\"}": Array [ - Object { - "request": Object { - "query": Object { - "definitions": Array [ + "subscriptions": Set {}, + }, + "3" => Object { + "cancel": [Function], + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - "directives": Array [], - "kind": "Field", + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - ], + "value": "id", }, }, - ], - }, - "variableDefinitions": Array [ + }, Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", }, }, - "variable": Object { + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "id", + "value": "address", }, }, }, Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "String", + "value": "sortBy", }, }, - "variable": Object { + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "name", + "value": "pageSize", }, }, }, Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - }, + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, - "variable": Object { + "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "pageNumber", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Int", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], }, }, - "variable": Object { - "kind": "Variable", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "pageNumber", }, }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Int", + "value": "pageSize", }, }, - "variable": Object { - "kind": "Variable", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageCount", }, }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "String", + "value": "totalCount", }, }, - "variable": Object { - "kind": "Variable", + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "_links", }, }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, - ], + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentDefinition", + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "address", }, "selectionSet": Object { "kind": "SelectionSet", "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", + "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "OfficeAddress", }, }, ], }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModelAddress", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -3764,141 +11881,46 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", - }, - "start": 0, - }, - }, - "variables": Object { - "pageNumber": 1, - "pageSize": 100, + "locationOffset": Object { + "column": 1, + "line": 1, }, + "name": "GraphQL request", }, - "result": Object { - "data": Object { - "GetNegotiators": Object { - "_embedded": Array [ - Object { - "_eTag": "\\"10109C0209C684789B72FFC53730E31C\\"", - "_links": Object { - "office": Object { - "href": "/offices/NPG", - }, - "self": Object { - "href": "/negotiators/MGL", - }, - }, - "active": true, - "created": "2014-12-26T12:22:01.0000000Z", - "email": "abel.robertson@reapitestates.net", - "id": "MGL", - "metadata": Object {}, - "modified": "2016-11-29T09:57:32.0000000Z", - "name": "Abel Robertson", - "officeId": "NPG", - }, - Object { - "_eTag": "\\"85A9DB571DB893A5FB734105AFF6B464\\"", - "_links": Object { - "office": Object { - "href": "/offices/MCL", - }, - "self": Object { - "href": "/negotiators/RPA", - }, - }, - "active": true, - "created": "2017-02-07T12:08:53.0000000Z", - "id": "RPA", - "modified": "2017-02-07T12:09:41.0000000Z", - "name": "Accounts User", - "officeId": "MCL", - }, - Object { - "_eTag": "\\"B28EE5CFF654DB22BF3247CA028C10C3\\"", - "_links": Object { - "office": Object { - "href": "/offices/NGL", - }, - "self": Object { - "href": "/negotiators/KLB", - }, - }, - "active": true, - "created": "2010-11-15T14:53:08.0000000Z", - "email": "adele.small@reapitestates.net", - "id": "KLB", - "metadata": Object {}, - "modified": "2017-03-10T00:02:08.0000000Z", - "name": "Adele Small", - "officeId": "NGL", - }, - ], - "_links": Object { - "first": Object { - "href": "/negotiators/?PageNumber=1&PageSize=3", - }, - "last": Object { - "href": "/negotiators/?PageNumber=3&PageSize=3", - }, - "next": Object { - "href": "/negotiators/?PageNumber=2&PageSize=3", - }, - "self": Object { - "href": "/negotiators/?PageNumber=1&PageSize=3", - }, - }, - "pageCount": 3, - "pageNumber": 1, - "pageSize": 3, - "totalCount": 3, + "start": 0, + }, + }, + "invalidated": false, + "lastRequestId": 4, + "listeners": Set { + [Function], + }, + "newData": null, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "isTornDown": false, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "error": [Function], + "next": [Function], }, + "_queue": undefined, + "_state": "ready", }, }, }, - ], - }, - }, - "localState": LocalState { - "cache": InMemoryCache { - "addTypename": false, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": false, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, - }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map {}, - "watches": Set { - Object { - "callback": [Function], - "optimistic": true, - "previousResult": [Function], + "options": Object { + "context": undefined, + "displayName": "Query", + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, + }, + "notifyOnNetworkStatusChange": false, "query": Object { "definitions": Array [ Object { @@ -3906,7 +11928,7 @@ query GetNegotiators( "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -3946,13 +11968,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -3960,13 +11982,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -3974,13 +11996,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -3988,13 +12010,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -4003,7 +12025,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -4024,7 +12046,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, ], @@ -4127,23 +12149,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -4151,10 +12167,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -4169,10 +12188,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -4208,7 +12230,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -4255,7 +12277,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -4264,7 +12286,20 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], }, }, Object { @@ -4273,7 +12308,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -4282,7 +12317,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -4291,7 +12326,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -4300,7 +12335,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -4309,7 +12344,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -4318,7 +12353,36 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, }, Object { @@ -4327,7 +12391,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingNumber", }, }, Object { @@ -4336,7 +12400,52 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, ], @@ -4345,28 +12454,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -4387,489 +12496,516 @@ query GetNegotiators( }, "variables": Object { "pageNumber": 1, - "pageSize": 12, + "pageSize": 100, }, }, + "queryId": "3", + "queryManager": [Circular], + "queryName": "OFFICES", + "shouldSubscribe": true, + "subscriptions": Set {}, + "variables": Object { + "pageNumber": 1, + "pageSize": 100, + }, }, + "subscriptions": Set {}, }, - "client": [Circular], - }, - "mutationStore": MutationStore { - "store": Object {}, }, - "onBroadcast": [Function], - "pollingInfoByQueryId": Map {}, - "queries": Map { - "1" => Object { - "cancel": [Function], - "document": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "id", - }, - "value": Object { - "kind": "Variable", + "queryDeduplication": true, + "queryStore": QueryStore { + "store": Object { + "1": Object { + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", "name": Object { "kind": "Name", "value": "id", }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "name", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "kind": "Argument", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "name", }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "officeId", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", "value": "pageSize", }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageCount", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "totalCount", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "kind": "Argument", "name": Object { "kind": "Name", - "value": "_links", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetNegotiators", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "pageCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "totalCount", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, }, - }, - ], - }, - }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + ], }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, + ], }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", "type": Object { - "kind": "NonNullType", + "kind": "ListType", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, }, }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - }, - Object { - "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, - }, - }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "officeId", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, }, }, Object { - "arguments": Array [], "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, }, }, ], }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, - }, - }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + ], + "kind": "Document", + "loc": Object { + "end": 1279, + "source": Object { + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -4878,538 +13014,619 @@ query GetNegotiators( _links } } -", - "locationOffset": Object { - "column": 1, - "line": 1, + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", + "locationOffset": Object { + "column": 1, + "line": 1, + }, + "name": "GraphQL request", }, - "name": "GraphQL request", + "start": 0, }, - "start": 0, }, - }, - "invalidated": false, - "lastRequestId": 2, - "listeners": Set { - [Function], - }, - "newData": null, - "observableQuery": ObservableQuery { - "_subscriber": [Function], - "isTornDown": false, - "lastResult": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, + "graphQLErrors": Array [], + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", + }, }, - "lastResultSnapshot": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, + "networkError": null, + "networkStatus": 1, + "previousVariables": null, + "variables": Object { + "embed": Array [ + "office", + ], + "pageNumber": 1, + "pageSize": 12, }, - "observers": Set { - SubscriptionObserver { - "_subscription": Subscription { - "_cleanup": [Function], - "_observer": Object { - "error": [Function], - "next": [Function], + }, + "3": Object { + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "OFFICES", }, - "_queue": Array [ - Object { - "type": "next", - "value": Object { - "data": undefined, - "loading": true, - "networkStatus": 1, - "stale": false, - }, - }, - ], - "_state": "buffering", - }, - }, - }, - "options": Object { - "context": undefined, - "displayName": "Query", - "fetchPolicy": "network-only", - "metadata": Object { - "reactComponent": Object { - "displayName": "Query", - }, - }, - "notifyOnNetworkStatusChange": false, - "query": Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [ - Object { - "kind": "Argument", + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "name", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "address", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + "value": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "id", + "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "id", - }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", }, }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "GetOffices", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "name", + "value": "_embedded", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "Office", + }, + }, + ], }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + "value": "pageNumber", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", "value": "pageSize", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "pageNumber", - }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + "value": "pageCount", }, }, Object { - "kind": "Argument", + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "totalCount", }, - "value": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", }, }, ], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "GetNegotiators", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "directives": Array [], - "kind": "FragmentSpread", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - }, - ], - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "pageCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "totalCount", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - ], - }, }, - ], - }, - "variableDefinitions": Array [ - Object { - "directives": Array [], - "kind": "VariableDefinition", + }, + ], + }, + "variableDefinitions": Array [ + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", "type": Object { - "kind": "ListType", + "kind": "NonNullType", "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, }, - "variable": Object { - "kind": "Variable", + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "address", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "id", + "value": "Int", }, }, }, - Object { - "directives": Array [], - "kind": "VariableDefinition", + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageSize", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NonNullType", "type": Object { "kind": "NamedType", "name": Object { "kind": "Name", - "value": "String", + "value": "Int", }, }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "name", - }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "pageNumber", + }, + }, + }, + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, + "variable": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sortBy", }, }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "Office", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "manager", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "String", + "value": "OfficeAddress", }, }, - }, + ], }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "officeId", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageSize", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingNumber", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "pageNumber", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", }, }, Object { + "arguments": Array [], "directives": Array [], - "kind": "VariableDefinition", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", }, - "variable": Object { - "kind": "Variable", - "name": Object { - "kind": "Name", - "value": "sortBy", - }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, ], }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", + "typeCondition": Object { + "kind": "NamedType", "name": Object { "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_embedded", - }, - }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", - }, + "value": "OfficeModelAddress", }, }, - ], - "kind": "Document", - "loc": Object { - "end": 441, - "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + }, + ], + "kind": "Document", + "loc": Object { + "end": 418, + "source": Object { + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -5419,38 +13636,75 @@ query GetNegotiators( } } ", - "locationOffset": Object { - "column": 1, - "line": 1, - }, - "name": "GraphQL request", + "locationOffset": Object { + "column": 1, + "line": 1, }, - "start": 0, + "name": "GraphQL request", }, + "start": 0, }, - "variables": Object { - "pageNumber": 1, - "pageSize": 12, + }, + "graphQLErrors": Array [], + "metadata": Object { + "reactComponent": Object { + "displayName": "Query", }, }, - "queryId": "1", - "queryManager": [Circular], - "queryName": "GetNegotiators", - "shouldSubscribe": true, - "subscriptions": Set {}, + "networkError": null, + "networkStatus": 1, + "previousVariables": null, "variables": Object { "pageNumber": 1, - "pageSize": 12, + "pageSize": 100, }, }, - "subscriptions": Set {}, }, - }, - "queryDeduplication": true, - "queryStore": QueryStore { - "store": Object { - "1": Object { - "document": Object { + }, + "ssrMode": false, + "transformCache": WeakMap {}, + }, + "reFetchObservableQueries": [Function], + "resetStore": [Function], + "resetStoreCallbacks": Array [], + "store": DataStore { + "cache": InMemoryCache { + "addTypename": false, + "cacheKeyRoot": KeyTrie { + "weak": WeakMap {}, + "weakness": true, + }, + "config": Object { + "addTypename": false, + "dataIdFromObject": [Function], + "fragmentMatcher": HeuristicFragmentMatcher {}, + "freezeResults": false, + "resultCaching": true, + }, + "data": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "maybeBroadcastWatch": [Function], + "optimisticData": DepTrackingCache { + "data": Object {}, + "depend": [Function], + }, + "silenceBroadcast": false, + "storeReader": StoreReader { + "executeSelectionSet": [Function], + "executeStoreQuery": [Function], + "executeSubSelectedArray": [Function], + "freezeResults": false, + }, + "storeWriter": StoreWriter {}, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "optimistic": true, + "previousResult": [Function], + "query": Object { "definitions": Array [ Object { "directives": Array [], @@ -5549,6 +13803,20 @@ query GetNegotiators( }, }, }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "embed", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "embed", + }, + }, + }, ], "directives": Array [], "kind": "Field", @@ -5571,11 +13839,129 @@ query GetNegotiators( "kind": "SelectionSet", "selections": Array [ Object { + "arguments": Array [], "directives": Array [], - "kind": "FragmentSpread", + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "created", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "modified", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "name", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "jobTitle", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "active", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "officeId", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "workPhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mobilePhone", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "metadata", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_eTag", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "_links", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "_embedded", }, }, ], @@ -5752,172 +14138,62 @@ query GetNegotiators( }, }, }, - ], - }, - Object { - "directives": Array [], - "kind": "FragmentDefinition", - "name": Object { - "kind": "Name", - "value": "Negotiator", - }, - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "id", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "created", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "modified", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "name", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "jobTitle", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "active", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "officeId", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "workPhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "mobilePhone", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "email", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "metadata", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_eTag", - }, - }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "_links", + Object { + "directives": Array [], + "kind": "VariableDefinition", + "type": Object { + "kind": "ListType", + "type": Object { + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", + }, + }, }, }, - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", + "variable": Object { + "kind": "Variable", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "embed", }, }, - ], - }, - "typeCondition": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "NegotiatorModel", }, - }, + ], }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 1279, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" - -query GetNegotiators( + "body": "query GetNegotiators( $id: [String!], $name: String, $officeId: [String!], $pageSize: Int, $pageNumber: Int, $sortBy: String + $embed: [String!] ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { _embedded { - ...Negotiator + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded } pageNumber pageSize @@ -5926,7 +14202,37 @@ query GetNegotiators( _links } } -", + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +}", "locationOffset": Object { "column": 1, "line": 1, @@ -5936,60 +14242,14 @@ query GetNegotiators( "start": 0, }, }, - "graphQLErrors": Array [], - "metadata": Object { - "reactComponent": Object { - "displayName": "Query", - }, - }, - "networkError": null, - "networkStatus": 1, - "previousVariables": null, "variables": Object { + "embed": Array [ + "office", + ], "pageNumber": 1, "pageSize": 12, }, }, - }, - }, - "ssrMode": false, - "transformCache": WeakMap {}, - }, - "reFetchObservableQueries": [Function], - "resetStore": [Function], - "resetStoreCallbacks": Array [], - "store": DataStore { - "cache": InMemoryCache { - "addTypename": false, - "cacheKeyRoot": KeyTrie { - "weakness": true, - }, - "config": Object { - "addTypename": false, - "dataIdFromObject": [Function], - "fragmentMatcher": HeuristicFragmentMatcher {}, - "freezeResults": false, - "resultCaching": true, - }, - "data": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "maybeBroadcastWatch": [Function], - "optimisticData": DepTrackingCache { - "data": Object {}, - "depend": [Function], - }, - "silenceBroadcast": false, - "storeReader": StoreReader { - "executeSelectionSet": [Function], - "executeStoreQuery": [Function], - "executeSubSelectedArray": [Function], - "freezeResults": false, - }, - "storeWriter": StoreWriter {}, - "typenameDocumentCache": Map {}, - "watches": Set { Object { "callback": [Function], "optimistic": true, @@ -6001,7 +14261,7 @@ query GetNegotiators( "kind": "OperationDefinition", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "OFFICES", }, "operation": "query", "selectionSet": Object { @@ -6041,13 +14301,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -6055,13 +14315,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageSize", + "value": "sortBy", }, }, }, @@ -6069,13 +14329,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "pageNumber", + "value": "pageSize", }, }, }, @@ -6083,13 +14343,13 @@ query GetNegotiators( "kind": "Argument", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, "value": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "sortBy", + "value": "pageNumber", }, }, }, @@ -6098,7 +14358,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "GetNegotiators", + "value": "GetOffices", }, "selectionSet": Object { "kind": "SelectionSet", @@ -6119,7 +14379,7 @@ query GetNegotiators( "kind": "FragmentSpread", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, }, ], @@ -6222,23 +14482,17 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "ListType", - "type": Object { - "kind": "NonNullType", - "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "String", - }, - }, + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "String", }, }, "variable": Object { "kind": "Variable", "name": Object { "kind": "Name", - "value": "officeId", + "value": "address", }, }, }, @@ -6246,10 +14500,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -6264,10 +14521,13 @@ query GetNegotiators( "directives": Array [], "kind": "VariableDefinition", "type": Object { - "kind": "NamedType", - "name": Object { - "kind": "Name", - "value": "Int", + "kind": "NonNullType", + "type": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Int", + }, }, }, "variable": Object { @@ -6303,7 +14563,7 @@ query GetNegotiators( "kind": "FragmentDefinition", "name": Object { "kind": "Name", - "value": "Negotiator", + "value": "Office", }, "selectionSet": Object { "kind": "SelectionSet", @@ -6350,7 +14610,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "jobTitle", + "value": "manager", }, }, Object { @@ -6359,7 +14619,20 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "active", + "value": "address", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + }, + ], }, }, Object { @@ -6368,7 +14641,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "officeId", + "value": "workPhone", }, }, Object { @@ -6377,7 +14650,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "workPhone", + "value": "email", }, }, Object { @@ -6386,7 +14659,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "mobilePhone", + "value": "metadata", }, }, Object { @@ -6395,7 +14668,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "email", + "value": "_eTag", }, }, Object { @@ -6404,7 +14677,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "metadata", + "value": "_links", }, }, Object { @@ -6413,7 +14686,36 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_eTag", + "value": "_embedded", + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "OfficeModel", + }, + }, + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "OfficeAddress", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "buildingName", }, }, Object { @@ -6422,7 +14724,7 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_links", + "value": "buildingNumber", }, }, Object { @@ -6431,7 +14733,52 @@ query GetNegotiators( "kind": "Field", "name": Object { "kind": "Name", - "value": "_embedded", + "value": "line1", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line2", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line3", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "line4", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "postcode", + }, + }, + Object { + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "countryId", }, }, ], @@ -6440,28 +14787,28 @@ query GetNegotiators( "kind": "NamedType", "name": Object { "kind": "Name", - "value": "NegotiatorModel", + "value": "OfficeModelAddress", }, }, }, ], "kind": "Document", "loc": Object { - "end": 441, + "end": 418, "source": Object { - "body": "#import \\"../../../graphql/fragments/negotiator.graphql\\" + "body": "#import \\"../../../graphql/fragments/office.graphql\\" -query GetNegotiators( +query OFFICES( $id: [String!], $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, + $address: String, + $pageSize: Int!, + $pageNumber: Int!, $sortBy: String ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { + GetOffices(id: $id, name: $name, address: $address, sortBy: $sortBy, pageSize: $pageSize, pageNumber: $pageNumber) { _embedded { - ...Negotiator + ...Office } pageNumber pageSize @@ -6482,7 +14829,7 @@ query GetNegotiators( }, "variables": Object { "pageNumber": 1, - "pageSize": 12, + "pageSize": 100, }, }, }, @@ -6547,6 +14894,31 @@ query GetNegotiators(
+ +
+ +
+
@@ -6573,6 +14945,7 @@ exports[`NegotiatorList renderNegotiatorList should match snapshot 2`] = ` exports[`NegotiatorList renderNegotiatorList should match snapshot 3`] = `
-

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. -

+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

} + validate={[Function]} /> { + it('should match a snapshot', () => { + expect(shallow()).toMatchSnapshot() + }) +}) diff --git a/packages/smb/src/components/ui/negotiators-list/__tests__/negotiator-status-checkbox.test.tsx b/packages/smb/src/components/ui/negotiators-list/__tests__/negotiator-status-checkbox.test.tsx new file mode 100644 index 0000000000..ac3bbc3a0a --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/__tests__/negotiator-status-checkbox.test.tsx @@ -0,0 +1,86 @@ +import * as React from 'react' +import { shallow } from 'enzyme' +import { + mockSpreadSheetDataForUpdateCase, + mockOfficeCellRenderProps, + mockSpreadSheetDataForCreateCase, +} from '../__mocks__/negotiators' +import NegotiatorStatusCheckbox, { + NegotiatorStatusCheckboxProps, + handleCheckBoxChange, + handleUseEffect, +} from '../negotiator-status-checkbox' + +const mockProps: NegotiatorStatusCheckboxProps = { + cellRenderProps: mockOfficeCellRenderProps, + updateNegotiator: jest.fn(), + data: mockSpreadSheetDataForUpdateCase, + setData: jest.fn(), + disabled: false, +} + +const mockHandleCheckboxChangeParamsForUpdateCase = { + e: { + target: { check: true }, + }, + data: mockSpreadSheetDataForUpdateCase, + row: 1, + col: 5, + disabled: false, + setChecked: jest.fn(), + setData: jest.fn(), + updateNegotiator: jest.fn(), +} + +const mockHandleCheckboxChangeParamsForCreateCase = { + e: { + target: { check: true }, + }, + data: mockSpreadSheetDataForCreateCase, + row: 1, + col: 5, + disabled: false, + setChecked: jest.fn(), + setData: jest.fn(), + updateNegotiator: jest.fn(), +} + +describe('NegotiatorStatusCheckbox', () => { + it('should match a snapshot', () => { + expect(shallow()).toMatchSnapshot() + }) + + describe('handleUseEffect', () => { + it('should run correctly', () => { + const mockFunction = jest.fn() + const mockCheckboxValue = true + const fn = handleUseEffect(mockCheckboxValue, mockFunction) + fn() + expect(mockFunction).toBeCalled() + }) + }) + + describe('handleCheckBoxChange', () => { + it('should return if checkbox is disabled', () => { + if (mockProps.disabled) { + expect(handleCheckBoxChange).toReturn + } + }) + it('should execute updateNegotiator in case of existing row', () => { + const fn = () => { + handleCheckBoxChange(mockHandleCheckboxChangeParamsForUpdateCase) + } + fn() + expect(mockHandleCheckboxChangeParamsForUpdateCase.updateNegotiator).toBeCalled + }) + it('should execute setChecked & setData only in case of new row', () => { + const fn = () => { + handleCheckBoxChange(mockHandleCheckboxChangeParamsForCreateCase) + } + fn() + expect(mockHandleCheckboxChangeParamsForUpdateCase.setChecked).toBeCalled + expect(mockHandleCheckboxChangeParamsForUpdateCase.setData).toBeCalled + expect(handleCheckBoxChange).toReturn + }) + }) +}) diff --git a/packages/smb/src/components/ui/negotiators-list/__tests__/negotiators-list.test.tsx b/packages/smb/src/components/ui/negotiators-list/__tests__/negotiators-list.test.tsx index 08958fbfc4..48d7366591 100644 --- a/packages/smb/src/components/ui/negotiators-list/__tests__/negotiators-list.test.tsx +++ b/packages/smb/src/components/ui/negotiators-list/__tests__/negotiators-list.test.tsx @@ -10,11 +10,27 @@ import { getDataTable, tableHeaders, handleChangePage, + validate, + prepareUpdateNegeotiatorParams, + prepareCreateNegeotiatorParams, + handleAfterCellsChanged, + handleErrorMessageUseEffect, } from '../negotiators-list' -import { GetNegotiators } from '../negotiators-list.graphql' -import { negotiators } from '../__mocks__/negotiators' +import { GetNegotiators, UpdateNegotiator, CreateNegotiator } from '../negotiators.graphql' +import { + negotiators, + updateNegotiatorParams, + createNegotiatorParams, + negotiatorDetail, + mockChangeCellsForUpdateCase, + mockSpreadSheetDataForUpdateCase, + mockSpreadSheetDataForCreateCase, + mockChangeCellsForCreateCase, +} from '../__mocks__/negotiators' import { error } from '@/graphql/__mocks__/error' import { getMockRouterProps } from '@/core/__mocks__/mock-router' +import { Cell } from '@reapit/elements' +import { ApolloError } from 'apollo-boost' const mockQueries = { request: { @@ -26,13 +42,29 @@ const mockQueries = { }, } +const mockUpdateMutation = { + request: { + query: UpdateNegotiator, + variables: updateNegotiatorParams, + result: { data: '' }, + }, +} + +const mockCreateMutation = { + request: { + query: CreateNegotiator, + variables: createNegotiatorParams, + result: { data: negotiatorDetail }, + }, +} + describe('NegotiatorList', () => { describe('NegotiatorList', () => { it('should match a snapshot', () => { const mockProps: NegotiatorListProps = getMockRouterProps({ params: {}, search: '?page=1' }) const wrapper = mount( - + , @@ -41,6 +73,31 @@ describe('NegotiatorList', () => { }) }) + describe('handleErrorMessageUseEffect', () => { + it('should run correctly', () => { + const mockFunction = jest.fn() + const mockCreateNegotiatorError: ApolloError = { + message: 'Create Negotiator Error', + graphQLErrors: [], + extraInfo: null, + name: '', + networkError: null, + } + const mockUpdateNegotiatorError: ApolloError = { + message: 'Update Negotiator Error', + graphQLErrors: [], + extraInfo: null, + name: '', + networkError: null, + } + const fn = handleErrorMessageUseEffect(mockCreateNegotiatorError, mockUpdateNegotiatorError, mockFunction) + fn() + if (mockCreateNegotiatorError || mockUpdateNegotiatorError) { + expect(mockFunction).toBeCalled() + } + }) + }) + describe('renderNegotiatorList', () => { it('should match snapshot', () => { const mockParams: RenderNegotiatorListParams = { @@ -48,6 +105,8 @@ describe('NegotiatorList', () => { error: undefined, handleChangePage: jest.fn(), dataTable: [], + updateNegotiator: jest.fn(), + createNegotiator: jest.fn(), } const wrapper = shallow(
{renderNegotiatorList(mockParams)}
) expect(wrapper).toMatchSnapshot() @@ -59,25 +118,40 @@ describe('NegotiatorList', () => { error, handleChangePage: jest.fn(), dataTable: [], + updateNegotiator: jest.fn(), + createNegotiator: jest.fn(), } const wrapper = shallow(
{renderNegotiatorList(mockParams)}
) expect(wrapper).toMatchSnapshot() }) it('should match snapshot', () => { + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + const mockUpdateNegotiatorLoading = false const mockParams: RenderNegotiatorListParams = { loading: false, error: undefined, handleChangePage: jest.fn(), - dataTable: getDataTable(negotiators), + updateNegotiator: jest.fn(), + createNegotiator: jest.fn(), + dataTable: getDataTable(negotiators, mockUpdateNegotiator, mockUpdateNegotiatorLoading, mockCreateNegotiator), } const wrapper = shallow(
{renderNegotiatorList(mockParams)}
) expect(wrapper).toMatchSnapshot() }) describe('getDataTable', () => { + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + const mockUpdateNegotiatorLoading = false it('should run correctly', () => { - const dataTable = getDataTable(negotiators) + const dataTable = getDataTable( + negotiators, + mockUpdateNegotiator, + mockUpdateNegotiatorLoading, + mockCreateNegotiator, + ) expect(Array.isArray(dataTable)).toBe(true) expect(dataTable.length).toBe(4) expect(dataTable[0]).toEqual(tableHeaders) @@ -92,5 +166,102 @@ describe('NegotiatorList', () => { expect(mockParams.history.push).toBeCalledWith({ search: 'page=2' }) }) }) + + describe('validate spreadsheet', () => { + it('should run correctly', () => { + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + const mockUpdateNegotiatorLoading = false + const dataTable = getDataTable( + negotiators, + mockUpdateNegotiator, + mockUpdateNegotiatorLoading, + mockCreateNegotiator, + ) + expect(validate(dataTable as Cell[][])).toEqual([ + [true, true, true, true, true, true], + [true, true, true, true, true, true, true, true], + [true, true, true, true, true, true, true, true], + [true, true, true, true, true, true, true, true], + ]) + }) + }) + + describe('prepareUpdateNegeotiatorParams', () => { + it('should run correctly', () => { + const mockRowIndex = 1 + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + const mockUpdateNegotiatorLoading = false + const dataTable = getDataTable( + negotiators, + mockUpdateNegotiator, + mockUpdateNegotiatorLoading, + mockCreateNegotiator, + ) + expect(prepareUpdateNegeotiatorParams(dataTable as Cell[][], mockRowIndex)).toEqual({ + id: 'MGL', + name: 'Abel Robertson', + jobTitle: undefined, + active: true, + email: 'abel.robertson@reapitestates.net', + mobilePhone: '9481221233', + _eTag: '"10109C0209C684789B72FFC53730E31C"', + }) + }) + }) + + describe('prepareCreateNegeotiatorParams', () => { + it('should run correctly', () => { + const mockRowIndex = 1 + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + const mockUpdateNegotiatorLoading = false + const dataTable = getDataTable( + negotiators, + mockUpdateNegotiator, + mockUpdateNegotiatorLoading, + mockCreateNegotiator, + ) + expect(prepareCreateNegeotiatorParams(dataTable as Cell[][], mockRowIndex)).toEqual({ + name: 'Abel Robertson', + jobTitle: undefined, + active: true, + officeId: 'River Town', + mobilePhone: '9481221233', + email: 'abel.robertson@reapitestates.net', + }) + }) + }) + + describe('handleAfterCellsChanged', () => { + const mockUpdateNegotiator = jest.fn() + const mockCreateNegotiator = jest.fn() + it('should run update function once', () => { + const fn = (updateNegotiator, createNegotiator) => { + return handleAfterCellsChanged(updateNegotiator, createNegotiator)( + mockChangeCellsForUpdateCase, + mockSpreadSheetDataForUpdateCase, + ) + } + + fn(mockUpdateNegotiator, mockCreateNegotiator) + + expect(mockUpdateNegotiator).toBeCalled() + }) + + it('should run create function once', () => { + const fn = (updateNegotiator, createNegotiator) => { + return handleAfterCellsChanged(updateNegotiator, createNegotiator)( + mockChangeCellsForCreateCase, + mockSpreadSheetDataForCreateCase, + ) + } + + fn(mockUpdateNegotiator, mockCreateNegotiator) + + expect(mockCreateNegotiator).toBeCalled() + }) + }) }) }) diff --git a/packages/smb/src/components/ui/negotiators-list/negotiator-office-selectbox.tsx b/packages/smb/src/components/ui/negotiators-list/negotiator-office-selectbox.tsx new file mode 100644 index 0000000000..5a92914bac --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/negotiator-office-selectbox.tsx @@ -0,0 +1,91 @@ +import * as React from 'react' +import ReactDataSheet from 'react-datasheet' +import { Cell } from '@reapit/elements/src/components/Spreadsheet/types' +import { OfficesQueryResponse } from '../offices-tab/offices-tab' +import { prepareCreateNegeotiatorParams } from './negotiators-list' + +export type NegotiatorOfficeSelectboxProps = { + cellRenderProps: ReactDataSheet.CellRendererProps + officeData?: OfficesQueryResponse + spreadsheetData: Cell[][] + createNegotiator: (params) => void +} + +export const handleOnChange = (officeData, setValue, spreadsheetData, row, createNegotiator) => { + return e => { + const selectedOfficeId = e.target.value + const selectedOffice = officeData?.GetOffices?._embedded?.find(office => office.id === selectedOfficeId) + setValue(selectedOfficeId) + const createNegotiatorVariables = { + ...prepareCreateNegeotiatorParams(spreadsheetData, row), + officeId: selectedOfficeId, + } + createNegotiator({ + variables: createNegotiatorVariables, + optimisticResponse: { + __typename: 'Mutation', + CreateNegotiator: { + ...createNegotiatorVariables, + id: Math.random(), + created: new Date().toISOString, + modified: new Date().toISOString, + workPhone: null, + metadata: null, + _eTag: null, + _links: null, + _embedded: { + office: { + id: selectedOfficeId, + name: selectedOffice?.name, + }, + }, + __typename: 'NegotiatorModel', + }, + }, + }) + } +} + +export const NegotiatorOfficeSelectbox: React.FC = ({ + cellRenderProps, + officeData, + spreadsheetData, + createNegotiator, +}) => { + const { + row, + cell: { value: office }, + } = cellRenderProps + + const [value, setValue] = React.useState('') + + const selectedRow = spreadsheetData[row] + const id = selectedRow[6].value + + return id ? ( + {office} + ) : ( +
+
+
+ +
+
+
+ ) +} + +export default NegotiatorOfficeSelectbox diff --git a/packages/smb/src/components/ui/negotiators-list/negotiator-status-checkbox.tsx b/packages/smb/src/components/ui/negotiators-list/negotiator-status-checkbox.tsx new file mode 100644 index 0000000000..a44dccb52f --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/negotiator-status-checkbox.tsx @@ -0,0 +1,101 @@ +import * as React from 'react' +import ReactDataSheet from 'react-datasheet' +import { Cell, SetData } from '@reapit/elements/src/components/Spreadsheet/types' +import { prepareUpdateNegeotiatorParams } from './negotiators-list' + +export type NegotiatorStatusCheckboxProps = { + cellRenderProps: ReactDataSheet.CellRendererProps + data: Cell[][] + setData: SetData + updateNegotiator: (params) => void + disabled?: boolean +} + +export const handleCheckBoxChange = ({ e, data, row, col, disabled, setChecked, setData, updateNegotiator }) => { + if (disabled) { + return + } + + const selectedValue = e.target.checked + const selectedRow = data[row] + const id = selectedRow[6].value + + // Just need to update current sheet data in case its a new row + if (!id) { + setChecked(selectedValue) + const newData = data.map(row => row.map(cell => ({ ...cell }))) + newData[row][col].value = selectedValue + setData(newData) + return + } + + // Execute update mutation in case its an existing row + const updateNegotiatorVariables = { + ...prepareUpdateNegeotiatorParams(data, row), + active: selectedValue, + } + updateNegotiator({ + variables: updateNegotiatorVariables, + optimisticResponse: { + UpdateNegotiator: { + ...updateNegotiatorVariables, + __typename: 'NegotiatorModel', + }, + }, + }) +} + +export const handleUseEffect = (value, setChecked) => { + return () => { + if (value || value === 'true') { + setChecked(true) + } else { + setChecked(false) + } + } +} + +export const NegotiatorStatusCheckbox: React.FC = ({ + cellRenderProps, + data, + setData, + updateNegotiator, + disabled, +}) => { + const { + row, + col, + cell: { value }, + } = cellRenderProps + + const [checked, setChecked] = React.useState(false) + + React.useEffect(handleUseEffect(value, setChecked), [value]) + + const onChange = e => { + const params = { + e, + data, + row, + col, + disabled, + setChecked, + setData, + updateNegotiator, + } + handleCheckBoxChange(params) + } + + const checkBoxId = `${row}-${col}` + + return ( +
+ + +
+ ) +} + +export default NegotiatorStatusCheckbox diff --git a/packages/smb/src/components/ui/negotiators-list/negotiators-list.graphql b/packages/smb/src/components/ui/negotiators-list/negotiators-list.graphql deleted file mode 100644 index 8c07d5036e..0000000000 --- a/packages/smb/src/components/ui/negotiators-list/negotiators-list.graphql +++ /dev/null @@ -1,21 +0,0 @@ -#import "../../../graphql/fragments/negotiator.graphql" - -query GetNegotiators( - $id: [String!], - $name: String, - $officeId: [String!], - $pageSize: Int, - $pageNumber: Int, - $sortBy: String - ) { - GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy) { - _embedded { - ...Negotiator - } - pageNumber - pageSize - pageCount - totalCount - _links - } -} diff --git a/packages/smb/src/components/ui/negotiators-list/negotiators-list.tsx b/packages/smb/src/components/ui/negotiators-list/negotiators-list.tsx index 5f295d93c6..dc86082146 100644 --- a/packages/smb/src/components/ui/negotiators-list/negotiators-list.tsx +++ b/packages/smb/src/components/ui/negotiators-list/negotiators-list.tsx @@ -1,16 +1,33 @@ import * as React from 'react' import { useLocation, useHistory } from 'react-router-dom' -import { useQuery } from '@apollo/react-hooks' +import { useQuery, useMutation } from '@apollo/react-hooks' import { QueryResult } from '@apollo/react-common' import { ApolloError } from 'apollo-boost' -import { Loader, Cell, Alert, Section, Pagination, Spreadsheet } from '@reapit/elements' -import { getParamsFromPath, stringifyObjectIntoQueryString } from '@/utils/client-url-params' -import { GetNegotiators } from './negotiators-list.graphql' import { - PagedResultNegotiatorModel_, - NegotiatorModel, -} from '@reapit/elements/node_modules/@reapit/foundations-ts-definitions/types' -import { NEGOTIATORS_PER_PAGE } from '@/constants/paginators' + Toast, + Loader, + Cell, + Alert, + Section, + Pagination, + Spreadsheet, + ChangedCells, + fieldValidateRequire, + isEmail, + isNumberOnly, + ErrorData, + minLengthValidator, +} from '@reapit/elements' +import { getParamsFromPath, stringifyObjectIntoQueryString } from '@/utils/client-url-params' +import { GetNegotiators, UpdateNegotiator, CreateNegotiator } from './negotiators.graphql' +import NegotiatorStatusCheckbox from './negotiator-status-checkbox' +import NegotiatorOfficeSelectbox from './negotiator-office-selectbox' + +import { NegotiatorModel, PagedResultNegotiatorModel_, OfficeModel } from '@reapit/foundations-ts-definitions' +import { NEGOTIATORS_PER_PAGE, NEGOTIATOR_OFFICE_PER_PAGE } from '@/constants/paginators' + +import { OFFICES } from '../offices-tab/offices-tab.graphql' +import { OfficesQueryResponse, OfficesQueryParams } from '../offices-tab/offices-tab' export const tableHeaders: DataTableRow[] = [ { readOnly: true, value: 'Username' }, @@ -35,12 +52,36 @@ export interface NegotiatorsQueryParams { id?: string[] officeId?: string[] name?: string + embed?: string[] +} + +export interface NegotiatorUpdateParams { + id: string + _eTag: string + name: string + jobTitle?: string + active: boolean + mobilePhone: string + email: string +} + +export interface NegotiatorCreateParams { + name: string + jobTitle?: string + active: boolean + officeId: string + mobilePhone: string + email: string } export type NegotiatorsQueryResponse = { GetNegotiators?: PagedResultNegotiatorModel_ } +export type CreateNegotiatorMutationResponse = { + CreateNegotiator: NegotiatorModel +} + export type RenderNegotiatorListParams = { loading: boolean error?: ApolloError @@ -49,37 +90,57 @@ export type RenderNegotiatorListParams = { totalCount?: number dataTable: DataTableRow[][] handleChangePage: (page: number) => void + updateNegotiator: () => void + createNegotiator: () => void } -const NegotiatorStatusCheckbox = ({ cellRenderProps }) => { - const { - row, - col, - cell: { value }, - } = cellRenderProps - const checkBoxId = `${row}-${col}` - return ( -
- - -
- ) -} - -export const getDataTable = (data: NegotiatorsQueryResponse): DataTableRow[][] => { +export const getDataTable = ( + data: NegotiatorsQueryResponse, + updateNegotiator: (params) => void, + updateNegotiatorLoading: boolean, + createNegotiator: (params) => void, + officeData?: OfficesQueryResponse, +): DataTableRow[][] => { let dataTable: DataTableRow[][] = [tableHeaders] const negotiators: NegotiatorModel[] = data.GetNegotiators?._embedded || [] + + const StatusCheckbox = props => { + const { cellRenderProps, data, setData } = props + return ( + + ) + } + + const OfficeSelectbox = props => { + const { cellRenderProps, data } = props + return ( + + ) + } + const dataRows: DataTableRow[][] = negotiators.map((negotiator: NegotiatorModel) => { - const { name, jobTitle, email, mobilePhone, officeId, active } = negotiator + const { name, jobTitle, email, mobilePhone, active, id, _eTag, _embedded } = negotiator + const office: OfficeModel = _embedded?.office return [ { value: name }, { value: jobTitle }, { value: email }, { value: mobilePhone }, - { value: officeId }, - { value: active, CustomComponent: NegotiatorStatusCheckbox }, + { readOnly: true, value: office?.name, CustomComponent: OfficeSelectbox }, + { readOnly: true, value: active, CustomComponent: StatusCheckbox }, + { value: id, className: 'hidden' }, + { value: _eTag, className: 'hidden' }, ] }) dataTable = [tableHeaders, ...dataRows] @@ -95,6 +156,131 @@ export const handleChangePage = ({ history }) => (pageNumber: number) => { }) } +export const validate = (data: Cell[][]) => { + return data.map((row, rowIndex) => + row.map((cell, cellIndex) => { + if (rowIndex === 0) return true // dont need to validate header row + // cell name is required + if (cellIndex === 0) { + return !fieldValidateRequire(cell.value as string) && minLengthValidator(5)(cell.value as string) + } + // cell email is required + if (cellIndex === 2) { + return !fieldValidateRequire(cell.value as string) && isEmail(cell.value as string) + } + // cell telephone is required + if (cellIndex === 3) { + return !fieldValidateRequire(cell.value as string) && isNumberOnly(cell.value) + } + // Office is required + if (cellIndex === 4) { + return !fieldValidateRequire(cell.value as string) + } + return true + }), + ) +} + +export const prepareUpdateNegeotiatorParams = (data: Cell[][], rowIndex) => { + const selectedRow = data[rowIndex] + const name = selectedRow[0].value + const jobTitle = selectedRow[1].value + const email = selectedRow[2].value + const mobilePhone = selectedRow[3].value + const active = selectedRow[5].value + const id = selectedRow[6].value + const _eTag = selectedRow[7].value + return { + id, + _eTag, + name, + jobTitle, + active, + mobilePhone, + email, + } +} + +export const prepareCreateNegeotiatorParams = (data: Cell[][], rowIndex) => { + const selectedRow = data[rowIndex] + const name = selectedRow[0].value + const jobTitle = selectedRow[1].value + const email = selectedRow[2].value + const mobilePhone = selectedRow[3].value + const officeId = selectedRow[4].value + let active = false + if (selectedRow[5].value) { + active = true + } + return { + name, + jobTitle, + active, + officeId, + mobilePhone, + email, + } +} + +export const handleAfterCellsChanged = (updateNegotiator, createNegotiator) => { + return (changes: ChangedCells, data: Cell[][]) => { + const selectedRow = data[changes[0].row] + const selectedCell = selectedRow[changes[0].col] + if (!selectedCell.isValidated) { + return + } + const id = selectedRow[6].value + const _eTag = selectedRow[7].value + const office = selectedRow[4].value + const officeId = office?.split('|')[0] + const officeName = office?.split('|')[1] + + const isEditMode = id && _eTag + if (isEditMode) { + const updateNegotiatorVariables = prepareUpdateNegeotiatorParams(data, changes[0].row) + updateNegotiator({ + variables: updateNegotiatorVariables, + optimisticResponse: { + UpdateNegotiator: { + ...updateNegotiatorVariables, + __typename: 'NegotiatorModel', + }, + }, + }) + return + } + + const isValid = selectedRow.every(item => item.isValidated) + if (!isValid) { + return + } + const createNegotiatorVariables = prepareCreateNegeotiatorParams(data, changes[0].row) + createNegotiator({ + variables: createNegotiatorVariables, + optimisticResponse: { + __typename: 'Mutation', + CreateNegotiator: { + ...createNegotiatorVariables, + id: Math.random(), + created: new Date().toISOString, + modified: new Date().toISOString, + workPhone: null, + metadata: null, + _eTag: null, + _links: null, + _embedded: { + office: { + id: officeId, + name: officeName, + }, + }, + __typename: 'NegotiatorModel', + }, + }, + }) + } +} + export const renderNegotiatorList = ({ loading, error, @@ -103,6 +289,8 @@ export const renderNegotiatorList = ({ pageSize = 0, totalCount = 0, handleChangePage, + updateNegotiator, + createNegotiator, }: RenderNegotiatorListParams) => { if (loading) { return @@ -110,17 +298,18 @@ export const renderNegotiatorList = ({ if (error) { return } + return ( -

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the - industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type - and scrambled it to make a type specimen book. -

+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the + industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and + scrambled it to make a type specimen book.

} /> @@ -131,27 +320,127 @@ export const renderNegotiatorList = ({ ) } +export const handleErrorMessageUseEffect = (createNegotiatorError, updateNegotiatorError, setErrorServer) => { + return () => { + if (createNegotiatorError) { + setErrorServer({ + type: 'SERVER', + message: createNegotiatorError.message, + }) + } + if (updateNegotiatorError) { + setErrorServer({ + type: 'SERVER', + message: updateNegotiatorError.message, + }) + } + } +} + export const NegotiatorList: React.FC = () => { + const [serverError, setErrorServer] = React.useState(null) + const [componentError, setErrorComponent] = React.useState(null) const location = useLocation() const history = useHistory() const params = getParamsFromPath(location?.search) const page = Number(params?.page) || 1 - const { loading, error, data } = useQuery(GetNegotiators, { - variables: { pageSize: NEGOTIATORS_PER_PAGE, pageNumber: page }, - fetchPolicy: 'network-only', + const [updateNegotiator, { error: updateNegotiatorError, loading: updateNegotiatorLoading }] = useMutation( + UpdateNegotiator, + ) + + const { loading, error: getNegotiatorsError, data: negotiatorData } = useQuery< + NegotiatorsQueryResponse, + NegotiatorsQueryParams + >(GetNegotiators, { + variables: { pageSize: NEGOTIATORS_PER_PAGE, pageNumber: page, embed: ['office'] }, }) as QueryResult - const dataTable = getDataTable(data || { GetNegotiators: { _embedded: [] } }) + + const [createNegotiator, { error: createNegotiatorError }] = useMutation(CreateNegotiator, { + update(cache, response) { + const createNegotiatorResponse: CreateNegotiatorMutationResponse = response.data + const data: NegotiatorsQueryResponse = cache.readQuery({ + query: GetNegotiators, + variables: { + pageSize: NEGOTIATORS_PER_PAGE, + pageNumber: page, + embed: ['office'], + }, + }) || { GetNegotiators: { _embedded: [] } } + + const { _embedded: existingNegotiators, pageNumber, pageSize, pageCount, totalCount, _links } = + data.GetNegotiators || {} + + const addedNegotiator = { + ...createNegotiatorResponse.CreateNegotiator, + __typename: 'NegotiatorModel', + } + + cache.writeQuery({ + query: GetNegotiators, + data: { + GetNegotiators: { + __typename: 'PagedResultNegotiatorModel', + _embedded: existingNegotiators?.concat([addedNegotiator]), + pageNumber, + pageSize, + pageCount, + totalCount, + _links, + }, + }, + variables: { + pageSize: NEGOTIATORS_PER_PAGE, + pageNumber: page, + embed: ['office'], + }, + }) + }, + }) + + const { data: officeData } = useQuery(OFFICES, { + variables: { pageSize: NEGOTIATOR_OFFICE_PER_PAGE, pageNumber: 1 }, + }) as QueryResult + + React.useEffect(handleErrorMessageUseEffect(createNegotiatorError, updateNegotiatorError, setErrorServer), [ + createNegotiatorError, + updateNegotiatorError, + ]) + + const errorClearedComponent = () => { + setErrorComponent(null) + } + + const errorClearedServer = () => { + setErrorServer(null) + } + + const dataTable = getDataTable( + negotiatorData || { GetNegotiators: { _embedded: [] } }, + updateNegotiator, + updateNegotiatorLoading, + createNegotiator, + officeData, + ) + return (
{renderNegotiatorList({ loading, - error, + error: getNegotiatorsError, dataTable, - pageNumber: data?.GetNegotiators?.pageNumber, - pageSize: data?.GetNegotiators?.pageSize, - totalCount: data?.GetNegotiators?.totalCount, + pageNumber: negotiatorData?.GetNegotiators?.pageNumber, + pageSize: negotiatorData?.GetNegotiators?.pageSize, + totalCount: negotiatorData?.GetNegotiators?.totalCount, handleChangePage: handleChangePage({ history }), + updateNegotiator: updateNegotiator, + createNegotiator: createNegotiator, })} +
) } diff --git a/packages/smb/src/components/ui/negotiators-list/negotiators.graphql b/packages/smb/src/components/ui/negotiators-list/negotiators.graphql new file mode 100644 index 0000000000..88f4f1d0ba --- /dev/null +++ b/packages/smb/src/components/ui/negotiators-list/negotiators.graphql @@ -0,0 +1,64 @@ +query GetNegotiators( + $id: [String!], + $name: String, + $officeId: [String!], + $pageSize: Int, + $pageNumber: Int, + $sortBy: String + $embed: [String!] + ) { + GetNegotiators(id: $id, name: $name, officeId: $officeId, pageSize: $pageSize, pageNumber: $pageNumber, sortBy: $sortBy, embed: $embed) { + _embedded { + id + created + modified + name + jobTitle + active + officeId + workPhone + mobilePhone + email + metadata + _eTag + _links + _embedded + } + pageNumber + pageSize + pageCount + totalCount + _links + } +} + +mutation UpdateNegotiator( + $id: String!, + $_eTag: String!, + $name: String, + $jobTitle: String, + $active: Boolean, + $mobilePhone: String, + $email: String +) { + UpdateNegotiator(id: $id, _eTag: $_eTag, name: $name, jobTitle: $jobTitle, active: $active, mobilePhone: $mobilePhone, email: $email) { + id + name + jobTitle + active + mobilePhone + email + _eTag + } +} + +mutation CreateNegotiator( + $name: String, + $jobTitle: String, + $active: Boolean, + $officeId: String, + $mobilePhone: String, + $email: String +) { + CreateNegotiator(name: $name, jobTitle: $jobTitle, active: $active, officeId: $officeId, mobilePhone: $mobilePhone, email: $email) +} \ No newline at end of file diff --git a/packages/smb/src/constants/paginators.ts b/packages/smb/src/constants/paginators.ts index 25716270e4..3f1a0d4485 100644 --- a/packages/smb/src/constants/paginators.ts +++ b/packages/smb/src/constants/paginators.ts @@ -1,2 +1,3 @@ export const OFFICES_PER_PAGE = 12 export const NEGOTIATORS_PER_PAGE = 12 +export const NEGOTIATOR_OFFICE_PER_PAGE = 100