Skip to content

Commit

Permalink
rename the mutation names
Browse files Browse the repository at this point in the history
  • Loading branch information
nourbalaha committed Oct 24, 2024
1 parent 874a7b4 commit 64e5ae4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 117 deletions.
39 changes: 14 additions & 25 deletions web/src/gql/graphql-client-api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,9 @@ export type Mutation = {
publishItem?: Maybe<PublishItemPayload>;
publishModel?: Maybe<PublishModelPayload>;
regenerateToken?: Maybe<IntegrationPayload>;
removeIntegrationFromWorkspace?: Maybe<RemoveMemberFromWorkspacePayload>;
removeMultipleUsersFromWorkspace?: Maybe<RemoveMultipleMembersFromWorkspacePayload>;
removeIntegrationFromWorkspace?: Maybe<RemoveIntegrationFromWorkspacePayload>;
removeMultipleMembersFromWorkspace?: Maybe<RemoveMultipleMembersFromWorkspacePayload>;
removeMyAuth?: Maybe<UpdateMePayload>;
removeUserFromWorkspace?: Maybe<RemoveMemberFromWorkspacePayload>;
unpublishItem?: Maybe<UnpublishItemPayload>;
updateAsset?: Maybe<UpdateAssetPayload>;
updateComment?: Maybe<CommentPayload>;
Expand Down Expand Up @@ -1007,8 +1006,8 @@ export type MutationRemoveIntegrationFromWorkspaceArgs = {
};


export type MutationRemoveMultipleUsersFromWorkspaceArgs = {
input: RemoveMultipleUsersFromWorkspaceInput;
export type MutationRemoveMultipleMembersFromWorkspaceArgs = {
input: RemoveMultipleMembersFromWorkspaceInput;
};


Expand All @@ -1017,11 +1016,6 @@ export type MutationRemoveMyAuthArgs = {
};


export type MutationRemoveUserFromWorkspaceArgs = {
input: RemoveUserFromWorkspaceInput;
};


export type MutationUnpublishItemArgs = {
input: UnpublishItemInput;
};
Expand Down Expand Up @@ -1437,30 +1431,25 @@ export type RemoveIntegrationFromWorkspaceInput = {
workspaceId: Scalars['ID']['input'];
};

export type RemoveMemberFromWorkspacePayload = {
__typename?: 'RemoveMemberFromWorkspacePayload';
export type RemoveIntegrationFromWorkspacePayload = {
__typename?: 'RemoveIntegrationFromWorkspacePayload';
workspace: Workspace;
};

export type RemoveMultipleMembersFromWorkspaceInput = {
userIds: Array<Scalars['ID']['input']>;
workspaceId: Scalars['ID']['input'];
};

export type RemoveMultipleMembersFromWorkspacePayload = {
__typename?: 'RemoveMultipleMembersFromWorkspacePayload';
workspace: Workspace;
};

export type RemoveMultipleUsersFromWorkspaceInput = {
userIds: Array<Scalars['ID']['input']>;
workspaceId: Scalars['ID']['input'];
};

export type RemoveMyAuthInput = {
auth: Scalars['String']['input'];
};

export type RemoveUserFromWorkspaceInput = {
userId: Scalars['ID']['input'];
workspaceId: Scalars['ID']['input'];
};

export type Request = Node & {
__typename?: 'Request';
approvedAt?: Maybe<Scalars['DateTime']['output']>;
Expand Down Expand Up @@ -2960,7 +2949,7 @@ export type RemoveMultipleMembersFromWorkspaceMutationVariables = Exact<{
}>;


export type RemoveMultipleMembersFromWorkspaceMutation = { __typename?: 'Mutation', removeMultipleUsersFromWorkspace?: { __typename?: 'RemoveMultipleMembersFromWorkspacePayload', workspace: { __typename?: 'Workspace', id: string, name: string, personal: boolean, members: Array<{ __typename?: 'WorkspaceIntegrationMember', integrationId: string, role: Role, active: boolean, invitedById: string, integration?: { __typename?: 'Integration', id: string, name: string, description?: string | null, logoUrl: string, iType: IntegrationType, developerId: string, createdAt: Date, updatedAt: Date, developer: { __typename?: 'User', id: string, name: string, email: string }, config?: { __typename?: 'IntegrationConfig', token: string, webhooks: Array<{ __typename?: 'Webhook', id: string, name: string, url: string, active: boolean, secret: string, createdAt: Date, updatedAt: Date, trigger: { __typename?: 'WebhookTrigger', onItemCreate?: boolean | null, onItemUpdate?: boolean | null, onItemDelete?: boolean | null, onItemPublish?: boolean | null, onItemUnPublish?: boolean | null, onAssetUpload?: boolean | null, onAssetDecompress?: boolean | null, onAssetDelete?: boolean | null } }> } | null } | null, invitedBy?: { __typename?: 'User', id: string, name: string, email: string } | null } | { __typename?: 'WorkspaceUserMember', userId: string, role: Role, user?: { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null };
export type RemoveMultipleMembersFromWorkspaceMutation = { __typename?: 'Mutation', removeMultipleMembersFromWorkspace?: { __typename?: 'RemoveMultipleMembersFromWorkspacePayload', workspace: { __typename?: 'Workspace', id: string, name: string, personal: boolean, members: Array<{ __typename?: 'WorkspaceIntegrationMember', integrationId: string, role: Role, active: boolean, invitedById: string, integration?: { __typename?: 'Integration', id: string, name: string, description?: string | null, logoUrl: string, iType: IntegrationType, developerId: string, createdAt: Date, updatedAt: Date, developer: { __typename?: 'User', id: string, name: string, email: string }, config?: { __typename?: 'IntegrationConfig', token: string, webhooks: Array<{ __typename?: 'Webhook', id: string, name: string, url: string, active: boolean, secret: string, createdAt: Date, updatedAt: Date, trigger: { __typename?: 'WebhookTrigger', onItemCreate?: boolean | null, onItemUpdate?: boolean | null, onItemDelete?: boolean | null, onItemPublish?: boolean | null, onItemUnPublish?: boolean | null, onAssetUpload?: boolean | null, onAssetDecompress?: boolean | null, onAssetDelete?: boolean | null } }> } | null } | null, invitedBy?: { __typename?: 'User', id: string, name: string, email: string } | null } | { __typename?: 'WorkspaceUserMember', userId: string, role: Role, user?: { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null };

export type AddIntegrationToWorkspaceMutationVariables = Exact<{
workspaceId: Scalars['ID']['input'];
Expand All @@ -2986,7 +2975,7 @@ export type RemoveIntegrationFromWorkspaceMutationVariables = Exact<{
}>;


export type RemoveIntegrationFromWorkspaceMutation = { __typename?: 'Mutation', removeIntegrationFromWorkspace?: { __typename?: 'RemoveMemberFromWorkspacePayload', workspace: { __typename?: 'Workspace', id: string, name: string, personal: boolean, members: Array<{ __typename?: 'WorkspaceIntegrationMember', integrationId: string, role: Role, active: boolean, invitedById: string, integration?: { __typename?: 'Integration', id: string, name: string, description?: string | null, logoUrl: string, iType: IntegrationType, developerId: string, createdAt: Date, updatedAt: Date, developer: { __typename?: 'User', id: string, name: string, email: string }, config?: { __typename?: 'IntegrationConfig', token: string, webhooks: Array<{ __typename?: 'Webhook', id: string, name: string, url: string, active: boolean, secret: string, createdAt: Date, updatedAt: Date, trigger: { __typename?: 'WebhookTrigger', onItemCreate?: boolean | null, onItemUpdate?: boolean | null, onItemDelete?: boolean | null, onItemPublish?: boolean | null, onItemUnPublish?: boolean | null, onAssetUpload?: boolean | null, onAssetDecompress?: boolean | null, onAssetDelete?: boolean | null } }> } | null } | null, invitedBy?: { __typename?: 'User', id: string, name: string, email: string } | null } | { __typename?: 'WorkspaceUserMember', userId: string, role: Role, user?: { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null };
export type RemoveIntegrationFromWorkspaceMutation = { __typename?: 'Mutation', removeIntegrationFromWorkspace?: { __typename?: 'RemoveIntegrationFromWorkspacePayload', workspace: { __typename?: 'Workspace', id: string, name: string, personal: boolean, members: Array<{ __typename?: 'WorkspaceIntegrationMember', integrationId: string, role: Role, active: boolean, invitedById: string, integration?: { __typename?: 'Integration', id: string, name: string, description?: string | null, logoUrl: string, iType: IntegrationType, developerId: string, createdAt: Date, updatedAt: Date, developer: { __typename?: 'User', id: string, name: string, email: string }, config?: { __typename?: 'IntegrationConfig', token: string, webhooks: Array<{ __typename?: 'Webhook', id: string, name: string, url: string, active: boolean, secret: string, createdAt: Date, updatedAt: Date, trigger: { __typename?: 'WebhookTrigger', onItemCreate?: boolean | null, onItemUpdate?: boolean | null, onItemDelete?: boolean | null, onItemPublish?: boolean | null, onItemUnPublish?: boolean | null, onAssetUpload?: boolean | null, onAssetDecompress?: boolean | null, onAssetDelete?: boolean | null } }> } | null } | null, invitedBy?: { __typename?: 'User', id: string, name: string, email: string } | null } | { __typename?: 'WorkspaceUserMember', userId: string, role: Role, user?: { __typename?: 'User', id: string, name: string, email: string } | null }> } } | null };

export type CreateWorkspaceMutationVariables = Exact<{
name: Scalars['String']['input'];
Expand Down Expand Up @@ -7370,7 +7359,7 @@ export type UpdateMemberOfWorkspaceMutationResult = Apollo.MutationResult<Update
export type UpdateMemberOfWorkspaceMutationOptions = Apollo.BaseMutationOptions<UpdateMemberOfWorkspaceMutation, UpdateMemberOfWorkspaceMutationVariables>;
export const RemoveMultipleMembersFromWorkspaceDocument = gql`
mutation RemoveMultipleMembersFromWorkspace($workspaceId: ID!, $userIds: [ID!]!) {
removeMultipleUsersFromWorkspace(
removeMultipleMembersFromWorkspace(
input: {workspaceId: $workspaceId, userIds: $userIds}
) {
workspace {
Expand Down
109 changes: 18 additions & 91 deletions web/src/gql/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7833,14 +7833,14 @@
],
"type": {
"kind": "OBJECT",
"name": "RemoveMemberFromWorkspacePayload",
"name": "RemoveIntegrationFromWorkspacePayload",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "removeMultipleUsersFromWorkspace",
"name": "removeMultipleMembersFromWorkspace",
"description": null,
"args": [
{
Expand All @@ -7851,7 +7851,7 @@
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "RemoveMultipleUsersFromWorkspaceInput",
"name": "RemoveMultipleMembersFromWorkspaceInput",
"ofType": null
}
},
Expand Down Expand Up @@ -7897,35 +7897,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "removeUserFromWorkspace",
"description": null,
"args": [
{
"name": "input",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "RemoveUserFromWorkspaceInput",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "OBJECT",
"name": "RemoveMemberFromWorkspacePayload",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "unpublishItem",
"description": null,
Expand Down Expand Up @@ -10915,35 +10886,7 @@
},
{
"kind": "OBJECT",
"name": "RemoveMemberFromWorkspacePayload",
"description": null,
"isOneOf": null,
"fields": [
{
"name": "workspace",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Workspace",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "RemoveMultipleMembersFromWorkspacePayload",
"name": "RemoveIntegrationFromWorkspacePayload",
"description": null,
"isOneOf": null,
"fields": [
Expand Down Expand Up @@ -10971,7 +10914,7 @@
},
{
"kind": "INPUT_OBJECT",
"name": "RemoveMultipleUsersFromWorkspaceInput",
"name": "RemoveMultipleMembersFromWorkspaceInput",
"description": null,
"isOneOf": false,
"fields": null,
Expand Down Expand Up @@ -11022,65 +10965,49 @@
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "RemoveMyAuthInput",
"kind": "OBJECT",
"name": "RemoveMultipleMembersFromWorkspacePayload",
"description": null,
"isOneOf": false,
"fields": null,
"inputFields": [
"isOneOf": null,
"fields": [
{
"name": "auth",
"name": "workspace",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"kind": "OBJECT",
"name": "Workspace",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "RemoveUserFromWorkspaceInput",
"name": "RemoveMyAuthInput",
"description": null,
"isOneOf": false,
"fields": null,
"inputFields": [
{
"name": "userId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "workspaceId",
"name": "auth",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"name": "String",
"ofType": null
}
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/gql/queries/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const UPDATE_MEMBER_OF_WORKSPACE = gql`

export const REMOVE_MULTIPLE_MEMBERS_FROM_WORKSPACE = gql`
mutation RemoveMultipleMembersFromWorkspace($workspaceId: ID!, $userIds: [ID!]!) {
removeMultipleUsersFromWorkspace(input: { workspaceId: $workspaceId, userIds: $userIds }) {
removeMultipleMembersFromWorkspace(input: { workspaceId: $workspaceId, userIds: $userIds }) {
workspace {
id
...WorkspaceFragment
Expand Down

0 comments on commit 64e5ae4

Please sign in to comment.