From 36f451b99309f68b6539fbda1d0055dd472dbcbc Mon Sep 17 00:00:00 2001 From: glo11372 Date: Tue, 6 Aug 2024 13:03:39 +0530 Subject: [PATCH 1/2] Pwa-3276:[feature]: Extending Peregrine Talons for Custom Applications --- .../talons/SignIn/__tests__/useSignIn.spec.js | 7164 +++++++++++++++++ .../peregrine/lib/talons/SignIn/useSignIn.js | 37 +- 2 files changed, 7191 insertions(+), 10 deletions(-) diff --git a/packages/peregrine/lib/talons/SignIn/__tests__/useSignIn.spec.js b/packages/peregrine/lib/talons/SignIn/__tests__/useSignIn.spec.js index e32b6b1c4f..9f3ed201bb 100644 --- a/packages/peregrine/lib/talons/SignIn/__tests__/useSignIn.spec.js +++ b/packages/peregrine/lib/talons/SignIn/__tests__/useSignIn.spec.js @@ -124,22 +124,7186 @@ test('returns correct shape', () => { expect(result.current).toMatchInlineSnapshot(` Object { + "cartContext": Array [ + Object { + "cartId": "old-cart-id", + }, + Object { + "createCart": [MockFunction], + "getCartDetails": [MockFunction], + "removeCart": [MockFunction], + }, + ], "errors": Map { "getUserDetailsQuery" => "getDetails error from redux", "signInMutation" => undefined, }, + "eventingContext": Array [ + Object {}, + Object { + "dispatch": [MockFunction], + }, + ], + "fetchCartDetails": undefined, + "fetchCartId": [Function], + "fetchUserDetails": undefined, "forgotPasswordHandleEnterKeyPress": [Function], + "googleReCaptcha": Object { + "generateReCaptchaData": [Function], + "recaptchaLoading": true, + "recaptchaWidgetProps": Object { + "containerElement": [Function], + "shouldRender": false, + }, + }, "handleCreateAccount": [Function], "handleEnterKeyPress": [Function], "handleForgotPassword": [Function], "handleSubmit": [Function], "isBusy": true, + "isSigningIn": false, + "mergeCarts": [Function], "recaptchaWidgetProps": Object { "containerElement": [Function], "shouldRender": false, }, "setFormApi": [Function], + "setIsSigningIn": [Function], + "signInMutationResult": Array [ + [Function], + Object { + "called": false, + "client": ApolloClient { + "cache": InMemoryCache { + "addTypename": false, + "config": Object { + "addTypename": false, + "canonizeResults": false, + "dataIdFromObject": [Function], + "resultCaching": true, + }, + "data": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": [Circular], + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "toReference": [Function], + }, + "evict": [Function], + "getFragmentDoc": [Function], + "makeVar": [Function], + "maybeBroadcastWatch": [Function], + "modify": [Function], + "optimisticData": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": [Circular], + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "reset": [Function], + "storeReader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + "storeWriter": StoreWriter { + "cache": [Circular], + "reader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + }, + "txCount": 0, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": QueryInfo { + "cache": [Circular], + "cancel": [Function], + "dirty": false, + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "graphQLErrors": Array [], + "lastDiff": Object { + "diff": Object { + "complete": false, + "missing": Array [ + MissingFieldError { + "message": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + "path": Object { + "recaptchaV3Config": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + }, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + ], + "result": Object {}, + }, + "options": Object { + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + }, + }, + "lastRequestId": 1, + "lastWatch": [Circular], + "listeners": Set { + [Function], + }, + "networkError": null, + "networkStatus": 1, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "concast": Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + Object { + "error": [Function], + "next": [Function], + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + "initialFetchPolicy": "cache-and-network", + "isTornDown": false, + "last": Object { + "result": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + "variables": Object {}, + }, + "observer": Object { + "error": [Function], + "next": [Function], + }, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": undefined, + "error": [Function], + "next": [Function], + }, + "_queue": Array [ + Object { + "type": "next", + "value": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + }, + ], + "_state": "buffering", + }, + }, + }, + "options": Object { + "fetchPolicy": "cache-and-network", + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + "queryId": "1", + "queryInfo": [Circular], + "queryManager": QueryManager { + "assumeImmutableResults": false, + "cache": [Circular], + "clientAwareness": Object { + "name": undefined, + "version": undefined, + }, + "fetchCancelFns": Map { + "1" => [Function], + }, + "inFlightLinkObservables": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + } => Map { + "{}" => Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + }, + "link": MockLink { + "addTypename": false, + "mockedResponsesByKey": Object { + "{\\"query\\":\\"mutation MergeCartsAfterSignIn($sourceCartId: String!, $destinationCartId: String!) {\\\\n mergeCarts(\\\\n source_cart_id: $sourceCartId\\\\n destination_cart_id: $destinationCartId\\\\n ) {\\\\n id\\\\n items {\\\\n uid\\\\n }\\\\n ...CheckoutPageFragment\\\\n }\\\\n}\\\\n\\\\nfragment CheckoutPageFragment on Cart {\\\\n id\\\\n items {\\\\n uid\\\\n product {\\\\n uid\\\\n stock_status\\\\n }\\\\n }\\\\n total_quantity\\\\n available_payment_methods {\\\\n code\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "MergeCartsAfterSignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "source_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sourceCartId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "destination_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "destinationCartId", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mergeCarts", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + ], + }, + }, + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "sourceCartId", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "destinationCartId", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "product", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "stock_status", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "total_quantity", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "available_payment_methods", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "code", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Cart", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 932, + "start": 0, + }, + }, + "variables": Object { + "destinationCartId": "new-cart-id", + "sourceCartId": "old-cart-id", + }, + }, + "result": Object { + "data": null, + }, + }, + ], + "{\\"query\\":\\"mutation SignIn($email: String!, $password: String!) {\\\\n generateCustomerToken(email: $email, password: $password) {\\\\n token\\\\n customer_token_lifetime\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "SignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "password", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "password", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "generateCustomerToken", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "token", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "customer_token_lifetime", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "email", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "password", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 198, + "start": 0, + }, + }, + "variables": Object { + "email": "fry@planetexpress.com", + "password": "slurm is the best", + }, + }, + "result": Object { + "data": Object { + "generateCustomerToken": Object { + "customer_token_lifetime": 3600, + "token": "auth-token-123", + }, + }, + }, + }, + ], + }, + "operation": Object { + "extensions": Object {}, + "operationName": "GetReCaptchaV3Config", + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + }, + "localState": LocalState { + "cache": [Circular], + "client": [Circular], + }, + "mutationIdCounter": 1, + "mutationStore": Object {}, + "onBroadcast": [Function], + "queries": Map { + "1" => [Circular], + }, + "queryDeduplication": true, + "queryIdCounter": 2, + "requestIdCounter": 2, + "ssrMode": false, + "transformCache": WeakMap {}, + }, + "queryName": "GetReCaptchaV3Config", + "subscriptions": Set {}, + }, + "oqListener": [Function], + "queryId": "1", + "stopped": false, + "subscriptions": Set {}, + "variables": Object {}, + }, + }, + }, + }, + "clearStoreCallbacks": Array [], + "defaultOptions": Object {}, + "disableNetworkFetches": false, + "link": MockLink { + "addTypename": false, + "mockedResponsesByKey": Object { + "{\\"query\\":\\"mutation MergeCartsAfterSignIn($sourceCartId: String!, $destinationCartId: String!) {\\\\n mergeCarts(\\\\n source_cart_id: $sourceCartId\\\\n destination_cart_id: $destinationCartId\\\\n ) {\\\\n id\\\\n items {\\\\n uid\\\\n }\\\\n ...CheckoutPageFragment\\\\n }\\\\n}\\\\n\\\\nfragment CheckoutPageFragment on Cart {\\\\n id\\\\n items {\\\\n uid\\\\n product {\\\\n uid\\\\n stock_status\\\\n }\\\\n }\\\\n total_quantity\\\\n available_payment_methods {\\\\n code\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "MergeCartsAfterSignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "source_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sourceCartId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "destination_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "destinationCartId", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mergeCarts", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + ], + }, + }, + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "sourceCartId", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "destinationCartId", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "product", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "stock_status", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "total_quantity", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "available_payment_methods", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "code", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Cart", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 932, + "start": 0, + }, + }, + "variables": Object { + "destinationCartId": "new-cart-id", + "sourceCartId": "old-cart-id", + }, + }, + "result": Object { + "data": null, + }, + }, + ], + "{\\"query\\":\\"mutation SignIn($email: String!, $password: String!) {\\\\n generateCustomerToken(email: $email, password: $password) {\\\\n token\\\\n customer_token_lifetime\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "SignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "password", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "password", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "generateCustomerToken", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "token", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "customer_token_lifetime", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "email", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "password", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 198, + "start": 0, + }, + }, + "variables": Object { + "email": "fry@planetexpress.com", + "password": "slurm is the best", + }, + }, + "result": Object { + "data": Object { + "generateCustomerToken": Object { + "customer_token_lifetime": 3600, + "token": "auth-token-123", + }, + }, + }, + }, + ], + }, + "operation": Object { + "extensions": Object {}, + "operationName": "GetReCaptchaV3Config", + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + }, + "localState": LocalState { + "cache": InMemoryCache { + "addTypename": false, + "config": Object { + "addTypename": false, + "canonizeResults": false, + "dataIdFromObject": [Function], + "resultCaching": true, + }, + "data": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": [Circular], + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "toReference": [Function], + }, + "evict": [Function], + "getFragmentDoc": [Function], + "makeVar": [Function], + "maybeBroadcastWatch": [Function], + "modify": [Function], + "optimisticData": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": [Circular], + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "reset": [Function], + "storeReader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + "storeWriter": StoreWriter { + "cache": [Circular], + "reader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + }, + "txCount": 0, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": QueryInfo { + "cache": [Circular], + "cancel": [Function], + "dirty": false, + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "graphQLErrors": Array [], + "lastDiff": Object { + "diff": Object { + "complete": false, + "missing": Array [ + MissingFieldError { + "message": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + "path": Object { + "recaptchaV3Config": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + }, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + ], + "result": Object {}, + }, + "options": Object { + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + }, + }, + "lastRequestId": 1, + "lastWatch": [Circular], + "listeners": Set { + [Function], + }, + "networkError": null, + "networkStatus": 1, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "concast": Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + Object { + "error": [Function], + "next": [Function], + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + "initialFetchPolicy": "cache-and-network", + "isTornDown": false, + "last": Object { + "result": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + "variables": Object {}, + }, + "observer": Object { + "error": [Function], + "next": [Function], + }, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": undefined, + "error": [Function], + "next": [Function], + }, + "_queue": Array [ + Object { + "type": "next", + "value": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + }, + ], + "_state": "buffering", + }, + }, + }, + "options": Object { + "fetchPolicy": "cache-and-network", + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + "queryId": "1", + "queryInfo": [Circular], + "queryManager": QueryManager { + "assumeImmutableResults": false, + "cache": [Circular], + "clientAwareness": Object { + "name": undefined, + "version": undefined, + }, + "fetchCancelFns": Map { + "1" => [Function], + }, + "inFlightLinkObservables": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + } => Map { + "{}" => Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + }, + "link": MockLink { + "addTypename": false, + "mockedResponsesByKey": Object { + "{\\"query\\":\\"mutation MergeCartsAfterSignIn($sourceCartId: String!, $destinationCartId: String!) {\\\\n mergeCarts(\\\\n source_cart_id: $sourceCartId\\\\n destination_cart_id: $destinationCartId\\\\n ) {\\\\n id\\\\n items {\\\\n uid\\\\n }\\\\n ...CheckoutPageFragment\\\\n }\\\\n}\\\\n\\\\nfragment CheckoutPageFragment on Cart {\\\\n id\\\\n items {\\\\n uid\\\\n product {\\\\n uid\\\\n stock_status\\\\n }\\\\n }\\\\n total_quantity\\\\n available_payment_methods {\\\\n code\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "MergeCartsAfterSignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "source_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sourceCartId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "destination_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "destinationCartId", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mergeCarts", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + ], + }, + }, + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "sourceCartId", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "destinationCartId", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "product", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "stock_status", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "total_quantity", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "available_payment_methods", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "code", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Cart", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 932, + "start": 0, + }, + }, + "variables": Object { + "destinationCartId": "new-cart-id", + "sourceCartId": "old-cart-id", + }, + }, + "result": Object { + "data": null, + }, + }, + ], + "{\\"query\\":\\"mutation SignIn($email: String!, $password: String!) {\\\\n generateCustomerToken(email: $email, password: $password) {\\\\n token\\\\n customer_token_lifetime\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "SignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "password", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "password", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "generateCustomerToken", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "token", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "customer_token_lifetime", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "email", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "password", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 198, + "start": 0, + }, + }, + "variables": Object { + "email": "fry@planetexpress.com", + "password": "slurm is the best", + }, + }, + "result": Object { + "data": Object { + "generateCustomerToken": Object { + "customer_token_lifetime": 3600, + "token": "auth-token-123", + }, + }, + }, + }, + ], + }, + "operation": Object { + "extensions": Object {}, + "operationName": "GetReCaptchaV3Config", + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + }, + "localState": [Circular], + "mutationIdCounter": 1, + "mutationStore": Object {}, + "onBroadcast": [Function], + "queries": Map { + "1" => [Circular], + }, + "queryDeduplication": true, + "queryIdCounter": 2, + "requestIdCounter": 2, + "ssrMode": false, + "transformCache": WeakMap {}, + }, + "queryName": "GetReCaptchaV3Config", + "subscriptions": Set {}, + }, + "oqListener": [Function], + "queryId": "1", + "stopped": false, + "subscriptions": Set {}, + "variables": Object {}, + }, + }, + }, + }, + "client": [Circular], + }, + "mutate": [Function], + "query": [Function], + "queryDeduplication": true, + "queryManager": QueryManager { + "assumeImmutableResults": false, + "cache": InMemoryCache { + "addTypename": false, + "config": Object { + "addTypename": false, + "canonizeResults": false, + "dataIdFromObject": [Function], + "resultCaching": true, + }, + "data": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": [Circular], + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "toReference": [Function], + }, + "evict": [Function], + "getFragmentDoc": [Function], + "makeVar": [Function], + "maybeBroadcastWatch": [Function], + "modify": [Function], + "optimisticData": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": [Circular], + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "reset": [Function], + "storeReader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + "storeWriter": StoreWriter { + "cache": [Circular], + "reader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + }, + "txCount": 0, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": QueryInfo { + "cache": [Circular], + "cancel": [Function], + "dirty": false, + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "graphQLErrors": Array [], + "lastDiff": Object { + "diff": Object { + "complete": false, + "missing": Array [ + MissingFieldError { + "message": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + "path": Object { + "recaptchaV3Config": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + }, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + ], + "result": Object {}, + }, + "options": Object { + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + }, + }, + "lastRequestId": 1, + "lastWatch": [Circular], + "listeners": Set { + [Function], + }, + "networkError": null, + "networkStatus": 1, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "concast": Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + Object { + "error": [Function], + "next": [Function], + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + "initialFetchPolicy": "cache-and-network", + "isTornDown": false, + "last": Object { + "result": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + "variables": Object {}, + }, + "observer": Object { + "error": [Function], + "next": [Function], + }, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": undefined, + "error": [Function], + "next": [Function], + }, + "_queue": Array [ + Object { + "type": "next", + "value": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + }, + ], + "_state": "buffering", + }, + }, + }, + "options": Object { + "fetchPolicy": "cache-and-network", + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + "queryId": "1", + "queryInfo": [Circular], + "queryManager": [Circular], + "queryName": "GetReCaptchaV3Config", + "subscriptions": Set {}, + }, + "oqListener": [Function], + "queryId": "1", + "stopped": false, + "subscriptions": Set {}, + "variables": Object {}, + }, + }, + }, + }, + "clientAwareness": Object { + "name": undefined, + "version": undefined, + }, + "fetchCancelFns": Map { + "1" => [Function], + }, + "inFlightLinkObservables": Map { + Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + } => Map { + "{}" => Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + }, + }, + "link": MockLink { + "addTypename": false, + "mockedResponsesByKey": Object { + "{\\"query\\":\\"mutation MergeCartsAfterSignIn($sourceCartId: String!, $destinationCartId: String!) {\\\\n mergeCarts(\\\\n source_cart_id: $sourceCartId\\\\n destination_cart_id: $destinationCartId\\\\n ) {\\\\n id\\\\n items {\\\\n uid\\\\n }\\\\n ...CheckoutPageFragment\\\\n }\\\\n}\\\\n\\\\nfragment CheckoutPageFragment on Cart {\\\\n id\\\\n items {\\\\n uid\\\\n product {\\\\n uid\\\\n stock_status\\\\n }\\\\n }\\\\n total_quantity\\\\n available_payment_methods {\\\\n code\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "MergeCartsAfterSignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "source_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "sourceCartId", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "destination_cart_id", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "destinationCartId", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "mergeCarts", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + ], + }, + }, + Object { + "directives": Array [], + "kind": "FragmentSpread", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "sourceCartId", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "destinationCartId", + }, + }, + }, + ], + }, + Object { + "directives": Array [], + "kind": "FragmentDefinition", + "name": Object { + "kind": "Name", + "value": "CheckoutPageFragment", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "id", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "items", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "product", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "uid", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "stock_status", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "total_quantity", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "available_payment_methods", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "code", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "typeCondition": Object { + "kind": "NamedType", + "name": Object { + "kind": "Name", + "value": "Cart", + }, + }, + }, + ], + "kind": "Document", + "loc": Object { + "end": 932, + "start": 0, + }, + }, + "variables": Object { + "destinationCartId": "new-cart-id", + "sourceCartId": "old-cart-id", + }, + }, + "result": Object { + "data": null, + }, + }, + ], + "{\\"query\\":\\"mutation SignIn($email: String!, $password: String!) {\\\\n generateCustomerToken(email: $email, password: $password) {\\\\n token\\\\n customer_token_lifetime\\\\n }\\\\n}\\\\n\\"}": Array [ + Object { + "request": Object { + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "SignIn", + }, + "operation": "mutation", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [ + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "email", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "email", + }, + }, + }, + Object { + "kind": "Argument", + "name": Object { + "kind": "Name", + "value": "password", + }, + "value": Object { + "kind": "Variable", + "name": Object { + "kind": "Name", + "value": "password", + }, + }, + }, + ], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "generateCustomerToken", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "token", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "customer_token_lifetime", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [ + Object { + "defaultValue": undefined, + "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": "email", + }, + }, + }, + Object { + "defaultValue": undefined, + "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": "password", + }, + }, + }, + ], + }, + ], + "kind": "Document", + "loc": Object { + "end": 198, + "start": 0, + }, + }, + "variables": Object { + "email": "fry@planetexpress.com", + "password": "slurm is the best", + }, + }, + "result": Object { + "data": Object { + "generateCustomerToken": Object { + "customer_token_lifetime": 3600, + "token": "auth-token-123", + }, + }, + }, + }, + ], + }, + "operation": Object { + "extensions": Object {}, + "operationName": "GetReCaptchaV3Config", + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + }, + "localState": LocalState { + "cache": InMemoryCache { + "addTypename": false, + "config": Object { + "addTypename": false, + "canonizeResults": false, + "dataIdFromObject": [Function], + "resultCaching": true, + }, + "data": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": [Circular], + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "toReference": [Function], + }, + "evict": [Function], + "getFragmentDoc": [Function], + "makeVar": [Function], + "maybeBroadcastWatch": [Function], + "modify": [Function], + "optimisticData": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": [Circular], + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "reset": [Function], + "storeReader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + "storeWriter": StoreWriter { + "cache": [Circular], + "reader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + }, + "txCount": 0, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": QueryInfo { + "cache": [Circular], + "cancel": [Function], + "dirty": false, + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "graphQLErrors": Array [], + "lastDiff": Object { + "diff": Object { + "complete": false, + "missing": Array [ + MissingFieldError { + "message": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + "path": Object { + "recaptchaV3Config": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + }, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + ], + "result": Object {}, + }, + "options": Object { + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + }, + }, + "lastRequestId": 1, + "lastWatch": [Circular], + "listeners": Set { + [Function], + }, + "networkError": null, + "networkStatus": 1, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "concast": Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + Object { + "error": [Function], + "next": [Function], + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + "initialFetchPolicy": "cache-and-network", + "isTornDown": false, + "last": Object { + "result": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + "variables": Object {}, + }, + "observer": Object { + "error": [Function], + "next": [Function], + }, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": undefined, + "error": [Function], + "next": [Function], + }, + "_queue": Array [ + Object { + "type": "next", + "value": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + }, + ], + "_state": "buffering", + }, + }, + }, + "options": Object { + "fetchPolicy": "cache-and-network", + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + "queryId": "1", + "queryInfo": [Circular], + "queryManager": [Circular], + "queryName": "GetReCaptchaV3Config", + "subscriptions": Set {}, + }, + "oqListener": [Function], + "queryId": "1", + "stopped": false, + "subscriptions": Set {}, + "variables": Object {}, + }, + }, + }, + }, + "client": [Circular], + }, + "mutationIdCounter": 1, + "mutationStore": Object {}, + "onBroadcast": [Function], + "queries": Map { + "1" => QueryInfo { + "cache": InMemoryCache { + "addTypename": false, + "config": Object { + "addTypename": false, + "canonizeResults": false, + "dataIdFromObject": [Function], + "resultCaching": true, + }, + "data": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": [Circular], + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "toReference": [Function], + }, + "evict": [Function], + "getFragmentDoc": [Function], + "makeVar": [Function], + "maybeBroadcastWatch": [Function], + "modify": [Function], + "optimisticData": Stump { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + "parent": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + }, + "id": "EntityStore.Stump", + "parent": Root { + "canRead": [Function], + "data": Object {}, + "getFieldValue": [Function], + "group": CacheGroup { + "caching": true, + "d": [Function], + "keyMaker": Trie { + "makeData": [Function], + "weakness": true, + }, + "parent": null, + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "rootIds": Object {}, + "storageTrie": Trie { + "makeData": [Function], + "weakness": true, + }, + "stump": [Circular], + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "refs": Object {}, + "replay": [Function], + "rootIds": Object {}, + "toReference": [Function], + }, + "policies": Policies { + "cache": [Circular], + "config": Object { + "cache": [Circular], + "dataIdFromObject": [Function], + "possibleTypes": undefined, + "typePolicies": undefined, + }, + "fuzzySubtypes": Map {}, + "rootIdsByTypename": Object { + "Mutation": "ROOT_MUTATION", + "Query": "ROOT_QUERY", + "Subscription": "ROOT_SUBSCRIPTION", + }, + "rootTypenamesById": Object { + "ROOT_MUTATION": "Mutation", + "ROOT_QUERY": "Query", + "ROOT_SUBSCRIPTION": "Subscription", + }, + "supertypeMap": Map {}, + "toBeAdded": Object {}, + "typePolicies": Object { + "Query": Object { + "fields": Object {}, + }, + }, + "usingPossibleTypes": false, + }, + "reset": [Function], + "storeReader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + "storeWriter": StoreWriter { + "cache": [Circular], + "reader": StoreReader { + "canon": ObjectCanon { + "empty": Object {}, + "keysByJSON": Map { + "[]" => Object { + "json": "[]", + "sorted": Array [], + }, + }, + "known": WeakSet {}, + "passes": WeakMap {}, + "pool": Trie { + "data": Object { + "keys": Object { + "json": "[]", + "sorted": Array [], + }, + }, + "makeData": [Function], + "weak": WeakMap {}, + "weakness": true, + }, + }, + "config": Object { + "addTypename": false, + "cache": [Circular], + "canonizeResults": false, + }, + "executeSelectionSet": [Function], + "executeSubSelectedArray": [Function], + "knownResults": WeakMap {}, + }, + }, + "txCount": 0, + "typenameDocumentCache": Map {}, + "watches": Set { + Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": [Circular], + }, + }, + }, + "cancel": [Function], + "dirty": false, + "document": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "graphQLErrors": Array [], + "lastDiff": Object { + "diff": Object { + "complete": false, + "missing": Array [ + MissingFieldError { + "message": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + "path": Object { + "recaptchaV3Config": "Can't find field 'recaptchaV3Config' on ROOT_QUERY object", + }, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + ], + "result": Object {}, + }, + "options": Object { + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + }, + }, + "lastRequestId": 1, + "lastWatch": Object { + "callback": [Function], + "canonizeResults": undefined, + "optimistic": true, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "returnPartialData": true, + "variables": Object {}, + "watcher": [Circular], + }, + "listeners": Set { + [Function], + }, + "networkError": null, + "networkStatus": 1, + "observableQuery": ObservableQuery { + "_subscriber": [Function], + "concast": Concast { + "_subscriber": [Function], + "addCount": 1, + "cancel": [Function], + "handlers": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "observers": Set { + Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + Object { + "error": [Function], + "next": [Function], + }, + }, + "promise": Promise {}, + "reject": [Function], + "resolve": [Function], + "sources": Array [], + "sub": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": [Function], + "error": [Function], + "next": [Function], + }, + "_queue": undefined, + "_state": "ready", + }, + }, + "initialFetchPolicy": "cache-and-network", + "isTornDown": false, + "last": Object { + "result": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + "variables": Object {}, + }, + "observer": Object { + "error": [Function], + "next": [Function], + }, + "observers": Set { + SubscriptionObserver { + "_subscription": Subscription { + "_cleanup": [Function], + "_observer": Object { + "complete": undefined, + "error": [Function], + "next": [Function], + }, + "_queue": Array [ + Object { + "type": "next", + "value": Object { + "loading": true, + "networkStatus": 1, + "partial": true, + }, + }, + ], + "_state": "buffering", + }, + }, + }, + "options": Object { + "fetchPolicy": "cache-and-network", + "notifyOnNetworkStatusChange": false, + "query": Object { + "definitions": Array [ + Object { + "directives": Array [], + "kind": "OperationDefinition", + "name": Object { + "kind": "Name", + "value": "GetReCaptchaV3Config", + }, + "operation": "query", + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "recaptchaV3Config", + }, + "selectionSet": Object { + "kind": "SelectionSet", + "selections": Array [ + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "website_key", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "badge_position", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "language_code", + }, + "selectionSet": undefined, + }, + Object { + "alias": undefined, + "arguments": Array [], + "directives": Array [], + "kind": "Field", + "name": Object { + "kind": "Name", + "value": "forms", + }, + "selectionSet": undefined, + }, + ], + }, + }, + ], + }, + "variableDefinitions": Array [], + }, + ], + "kind": "Document", + "loc": Object { + "end": 173, + "start": 0, + }, + }, + "variables": Object {}, + }, + "queryId": "1", + "queryInfo": [Circular], + "queryManager": [Circular], + "queryName": "GetReCaptchaV3Config", + "subscriptions": Set {}, + }, + "oqListener": [Function], + "queryId": "1", + "stopped": false, + "subscriptions": Set {}, + "variables": Object {}, + }, + }, + "queryDeduplication": true, + "queryIdCounter": 2, + "requestIdCounter": 2, + "ssrMode": false, + "transformCache": WeakMap {}, + }, + "reFetchObservableQueries": [Function], + "resetStore": [Function], + "resetStoreCallbacks": Array [], + "typeDefs": undefined, + "version": "3.5.10", + "watchQuery": [Function], + }, + "loading": false, + "reset": [Function], + }, + ], "signinHandleEnterKeyPress": [Function], + "userContext": Array [ + Object { + "getDetailsError": "getDetails error from redux", + "isGettingDetails": false, + }, + Object { + "getUserDetails": [MockFunction], + "setToken": [MockFunction], + }, + ], } `); }); diff --git a/packages/peregrine/lib/talons/SignIn/useSignIn.js b/packages/peregrine/lib/talons/SignIn/useSignIn.js index 35d80fe896..e99a679de3 100644 --- a/packages/peregrine/lib/talons/SignIn/useSignIn.js +++ b/packages/peregrine/lib/talons/SignIn/useSignIn.js @@ -30,31 +30,36 @@ export const useSignIn = props => { const apolloClient = useApolloClient(); const [isSigningIn, setIsSigningIn] = useState(false); - + + const cartContext = useCartContext(); const [ { cartId }, { createCart, removeCart, getCartDetails } - ] = useCartContext(); + ] = cartContext; + const userContext = useUserContext(); const [ { isGettingDetails, getDetailsError }, { getUserDetails, setToken } - ] = useUserContext(); + ] = userContext; - const [, { dispatch }] = useEventingContext(); + const eventingContext = useEventingContext(); + const [, { dispatch }] = eventingContext; - const [signIn, { error: signInError }] = useMutation(signInMutation, { + const signInMutationResult = useMutation(signInMutation, { fetchPolicy: 'no-cache' }); + const [signIn, { error: signInError }] = signInMutationResult; + const googleReCaptcha = useGoogleReCaptcha({ + currentForm: 'CUSTOMER_LOGIN', + formAction: 'signIn' + }); const { generateReCaptchaData, recaptchaLoading, recaptchaWidgetProps - } = useGoogleReCaptcha({ - currentForm: 'CUSTOMER_LOGIN', - formAction: 'signIn' - }); + } = googleReCaptcha const [fetchCartId] = useMutation(createCartMutation); const [mergeCarts] = useMutation(mergeCartsMutation); @@ -222,6 +227,18 @@ export const useSignIn = props => { handleSubmit, isBusy: isGettingDetails || isSigningIn || recaptchaLoading, setFormApi, - recaptchaWidgetProps + recaptchaWidgetProps, + userContext, + cartContext, + eventingContext, + signInMutationResult, + googleReCaptcha, + isSigningIn, + setIsSigningIn, + fetchCartId, + mergeCarts, + fetchUserDetails, + fetchCartDetails + }; }; From 45305c9aebe819100366251adf3fde4009938309 Mon Sep 17 00:00:00 2001 From: glo11372 Date: Tue, 6 Aug 2024 14:24:18 +0530 Subject: [PATCH 2/2] PWA-3276:[feature]: Extending Peregrine Talons for Custom Applications --- packages/peregrine/lib/talons/SignIn/useSignIn.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/peregrine/lib/talons/SignIn/useSignIn.js b/packages/peregrine/lib/talons/SignIn/useSignIn.js index e99a679de3..afedbcc05a 100644 --- a/packages/peregrine/lib/talons/SignIn/useSignIn.js +++ b/packages/peregrine/lib/talons/SignIn/useSignIn.js @@ -30,14 +30,14 @@ export const useSignIn = props => { const apolloClient = useApolloClient(); const [isSigningIn, setIsSigningIn] = useState(false); - - const cartContext = useCartContext(); + + const cartContext = useCartContext(); const [ { cartId }, { createCart, removeCart, getCartDetails } ] = cartContext; - const userContext = useUserContext(); + const userContext = useUserContext(); const [ { isGettingDetails, getDetailsError }, { getUserDetails, setToken } @@ -59,7 +59,7 @@ export const useSignIn = props => { generateReCaptchaData, recaptchaLoading, recaptchaWidgetProps - } = googleReCaptcha + } = googleReCaptcha; const [fetchCartId] = useMutation(createCartMutation); const [mergeCarts] = useMutation(mergeCartsMutation); @@ -239,6 +239,5 @@ export const useSignIn = props => { mergeCarts, fetchUserDetails, fetchCartDetails - }; };