From 5254be38cbac101729ca8c38214216616fd045a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Tue, 10 Feb 2026 18:24:04 +0400 Subject: [PATCH] Remove unused mutation result fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- .../iam/AssumePageMutation.graphql.ts | 72 +++---------------- .../pages/iam/organizations/AssumePage.tsx | 9 --- 2 files changed, 9 insertions(+), 72 deletions(-) diff --git a/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts b/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts index 17b1d4c94..80f0840a1 100644 --- a/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts +++ b/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<754086efd418674e8d92f629f7a01736>> + * @generated SignedSource<<096c8befe586a961b8ebf410eda0e019>> * @lightSyntaxTransform * @nogrep */ @@ -19,15 +19,6 @@ export type AssumePageMutation$variables = { export type AssumePageMutation$data = { readonly assumeOrganizationSession: { readonly result: { - readonly __typename: "OrganizationSessionCreated"; - readonly membership: { - readonly id: string; - readonly lastSession: { - readonly expiresAt: string; - readonly id: string; - } | null | undefined; - }; - } | { readonly __typename: "PasswordRequired"; readonly reason: ReauthenticationReason; } | { @@ -55,20 +46,13 @@ var v0 = [ } ], v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { "alias": null, "args": null, "kind": "ScalarField", "name": "reason", "storageKey": null }, -v3 = [ +v2 = [ { "alias": null, "args": [ @@ -101,45 +85,7 @@ v3 = [ { "kind": "InlineFragment", "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "lastSession", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "OrganizationSessionCreated", - "abstractKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/) + (v1/*: any*/) ], "type": "PasswordRequired", "abstractKey": null @@ -147,7 +93,7 @@ v3 = [ { "kind": "InlineFragment", "selections": [ - (v2/*: any*/), + (v1/*: any*/), { "alias": null, "args": null, @@ -172,7 +118,7 @@ return { "kind": "Fragment", "metadata": null, "name": "AssumePageMutation", - "selections": (v3/*: any*/), + "selections": (v2/*: any*/), "type": "Mutation", "abstractKey": null }, @@ -181,19 +127,19 @@ return { "argumentDefinitions": (v0/*: any*/), "kind": "Operation", "name": "AssumePageMutation", - "selections": (v3/*: any*/) + "selections": (v2/*: any*/) }, "params": { - "cacheID": "cc56faddf33aa8f6b84f139f262647f6", + "cacheID": "073df17c6a8b470ae74d1d39243b3e30", "id": null, "metadata": {}, "name": "AssumePageMutation", "operationKind": "mutation", - "text": "mutation AssumePageMutation(\n $input: AssumeOrganizationSessionInput!\n) {\n assumeOrganizationSession(input: $input) {\n result {\n __typename\n ... on OrganizationSessionCreated {\n membership {\n id\n lastSession {\n id\n expiresAt\n }\n }\n }\n ... on PasswordRequired {\n reason\n }\n ... on SAMLAuthenticationRequired {\n reason\n redirectUrl\n }\n }\n }\n}\n" + "text": "mutation AssumePageMutation(\n $input: AssumeOrganizationSessionInput!\n) {\n assumeOrganizationSession(input: $input) {\n result {\n __typename\n ... on PasswordRequired {\n reason\n }\n ... on SAMLAuthenticationRequired {\n reason\n redirectUrl\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "e5799d78e6d954273c07db7c022b31e7"; +(node as any).hash = "e6f39c43ccc7680cd72ad99c84a82780"; export default node; diff --git a/apps/console/src/pages/iam/organizations/AssumePage.tsx b/apps/console/src/pages/iam/organizations/AssumePage.tsx index 9f389b5dd..042c9e233 100644 --- a/apps/console/src/pages/iam/organizations/AssumePage.tsx +++ b/apps/console/src/pages/iam/organizations/AssumePage.tsx @@ -18,15 +18,6 @@ const assumeMutation = graphql` assumeOrganizationSession(input: $input) { result { __typename - ... on OrganizationSessionCreated { - membership { - id - lastSession { - id - expiresAt - } - } - } ... on PasswordRequired { reason }