Add deleteOneObject mutation (#3682)
* Add deleteOneObject mutation * codegen * move relationToDelete to dedicated file --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -220,7 +220,7 @@ export type Mutation = {
|
||||
createOneObject: Object;
|
||||
createOneRelation: Relation;
|
||||
deleteOneField: FieldDeleteResponse;
|
||||
deleteOneObject: ObjectDeleteResponse;
|
||||
deleteOneObject: Object;
|
||||
deleteOneRelation: RelationDeleteResponse;
|
||||
deleteUser: User;
|
||||
updateOneField: Field;
|
||||
@ -297,25 +297,6 @@ export type ObjectConnection = {
|
||||
totalCount: Scalars['Int']['output'];
|
||||
};
|
||||
|
||||
export type ObjectDeleteResponse = {
|
||||
__typename?: 'ObjectDeleteResponse';
|
||||
createdAt?: Maybe<Scalars['DateTime']['output']>;
|
||||
dataSourceId?: Maybe<Scalars['String']['output']>;
|
||||
description?: Maybe<Scalars['String']['output']>;
|
||||
icon?: Maybe<Scalars['String']['output']>;
|
||||
id?: Maybe<Scalars['ID']['output']>;
|
||||
imageIdentifierFieldMetadataId?: Maybe<Scalars['String']['output']>;
|
||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||
isCustom?: Maybe<Scalars['Boolean']['output']>;
|
||||
isSystem?: Maybe<Scalars['Boolean']['output']>;
|
||||
labelIdentifierFieldMetadataId?: Maybe<Scalars['String']['output']>;
|
||||
labelPlural?: Maybe<Scalars['String']['output']>;
|
||||
labelSingular?: Maybe<Scalars['String']['output']>;
|
||||
namePlural?: Maybe<Scalars['String']['output']>;
|
||||
nameSingular?: Maybe<Scalars['String']['output']>;
|
||||
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
||||
};
|
||||
|
||||
export type ObjectFieldsConnection = {
|
||||
__typename?: 'ObjectFieldsConnection';
|
||||
/** Array of edges. */
|
||||
@ -450,8 +431,8 @@ export type TimelineThreadParticipant = {
|
||||
firstName: Scalars['String']['output'];
|
||||
handle: Scalars['String']['output'];
|
||||
lastName: Scalars['String']['output'];
|
||||
personId?: Maybe<Scalars['String']['output']>;
|
||||
workspaceMemberId?: Maybe<Scalars['String']['output']>;
|
||||
personId?: Maybe<Scalars['ID']['output']>;
|
||||
workspaceMemberId?: Maybe<Scalars['ID']['output']>;
|
||||
};
|
||||
|
||||
export type UpdateFieldInput = {
|
||||
@ -696,7 +677,7 @@ export type DeleteOneObjectMetadataItemMutationVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type DeleteOneObjectMetadataItemMutation = { __typename?: 'Mutation', deleteOneObject: { __typename?: 'ObjectDeleteResponse', id?: string | null, dataSourceId?: string | null, nameSingular?: string | null, namePlural?: string | null, labelSingular?: string | null, labelPlural?: string | null, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, createdAt?: any | null, updatedAt?: any | null, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null } };
|
||||
export type DeleteOneObjectMetadataItemMutation = { __typename?: 'Mutation', deleteOneObject: { __typename?: 'object', id: string, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null } };
|
||||
|
||||
export type DeleteOneFieldMetadataItemMutationVariables = Exact<{
|
||||
idToDelete: Scalars['ID']['input'];
|
||||
|
||||
@ -97,6 +97,11 @@ export type CursorPaging = {
|
||||
last?: InputMaybe<Scalars['Int']>;
|
||||
};
|
||||
|
||||
export type DeleteOneObjectInput = {
|
||||
/** The id of the record to delete. */
|
||||
id: Scalars['ID'];
|
||||
};
|
||||
|
||||
export type EmailPasswordResetLink = {
|
||||
__typename?: 'EmailPasswordResetLink';
|
||||
/** Boolean that confirms query was dispatched */
|
||||
@ -223,7 +228,7 @@ export type Mutation = {
|
||||
createOneObject: Object;
|
||||
createOneRefreshToken: RefreshToken;
|
||||
deleteCurrentWorkspace: Workspace;
|
||||
deleteOneObject: ObjectDeleteResponse;
|
||||
deleteOneObject: Object;
|
||||
deleteUser: User;
|
||||
emailPasswordResetLink: EmailPasswordResetLink;
|
||||
generateApiKeyToken: ApiKeyToken;
|
||||
@ -259,6 +264,11 @@ export type MutationCreateOneRefreshTokenArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type MutationDeleteOneObjectArgs = {
|
||||
input: DeleteOneObjectInput;
|
||||
};
|
||||
|
||||
|
||||
export type MutationGenerateApiKeyTokenArgs = {
|
||||
apiKeyId: Scalars['String'];
|
||||
expiresAt: Scalars['String'];
|
||||
@ -329,25 +339,6 @@ export type ObjectConnection = {
|
||||
totalCount: Scalars['Int'];
|
||||
};
|
||||
|
||||
export type ObjectDeleteResponse = {
|
||||
__typename?: 'ObjectDeleteResponse';
|
||||
createdAt?: Maybe<Scalars['DateTime']>;
|
||||
dataSourceId?: Maybe<Scalars['String']>;
|
||||
description?: Maybe<Scalars['String']>;
|
||||
icon?: Maybe<Scalars['String']>;
|
||||
id?: Maybe<Scalars['ID']>;
|
||||
imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
|
||||
isActive?: Maybe<Scalars['Boolean']>;
|
||||
isCustom?: Maybe<Scalars['Boolean']>;
|
||||
isSystem?: Maybe<Scalars['Boolean']>;
|
||||
labelIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
|
||||
labelPlural?: Maybe<Scalars['String']>;
|
||||
labelSingular?: Maybe<Scalars['String']>;
|
||||
namePlural?: Maybe<Scalars['String']>;
|
||||
nameSingular?: Maybe<Scalars['String']>;
|
||||
updatedAt?: Maybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type ObjectFieldsConnection = {
|
||||
__typename?: 'ObjectFieldsConnection';
|
||||
/** Array of edges. */
|
||||
|
||||
Reference in New Issue
Block a user