mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 21:57:56 +00:00
Enable deletion of relation fields (#5338)
In this PR 1. Enable deletion of relation fields in the product and via the api (migration part was missing in the api) 3. Change wording, only use "deactivate" and "delete" everywhere (and not a mix of the two + "disable", "erase")
This commit is contained in:
@@ -366,6 +366,11 @@ export type MutationTrackArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type MutationUpdateOneObjectArgs = {
|
||||
input: UpdateOneObjectInput;
|
||||
};
|
||||
|
||||
|
||||
export type MutationUpdatePasswordViaResetTokenArgs = {
|
||||
newPassword: Scalars['String'];
|
||||
passwordResetToken: Scalars['String'];
|
||||
@@ -548,18 +553,6 @@ export enum RelationDefinitionType {
|
||||
OneToOne = 'ONE_TO_ONE'
|
||||
}
|
||||
|
||||
export type RelationDeleteResponse = {
|
||||
__typename?: 'RelationDeleteResponse';
|
||||
createdAt?: Maybe<Scalars['DateTime']>;
|
||||
fromFieldMetadataId?: Maybe<Scalars['String']>;
|
||||
fromObjectMetadataId?: Maybe<Scalars['String']>;
|
||||
id?: Maybe<Scalars['UUID']>;
|
||||
relationType?: Maybe<RelationMetadataType>;
|
||||
toFieldMetadataId?: Maybe<Scalars['String']>;
|
||||
toObjectMetadataId?: Maybe<Scalars['String']>;
|
||||
updatedAt?: Maybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
/** Type of the relation */
|
||||
export enum RelationMetadataType {
|
||||
ManyToMany = 'MANY_TO_MANY',
|
||||
@@ -728,6 +721,24 @@ export type UpdateBillingEntity = {
|
||||
success: Scalars['Boolean'];
|
||||
};
|
||||
|
||||
export type UpdateObjectPayload = {
|
||||
description?: InputMaybe<Scalars['String']>;
|
||||
icon?: InputMaybe<Scalars['String']>;
|
||||
imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
|
||||
isActive?: InputMaybe<Scalars['Boolean']>;
|
||||
labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
|
||||
labelPlural?: InputMaybe<Scalars['String']>;
|
||||
labelSingular?: InputMaybe<Scalars['String']>;
|
||||
namePlural?: InputMaybe<Scalars['String']>;
|
||||
nameSingular?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type UpdateOneObjectInput = {
|
||||
/** The id of the object to update */
|
||||
id: Scalars['UUID'];
|
||||
update: UpdateObjectPayload;
|
||||
};
|
||||
|
||||
export type UpdateWorkspaceInput = {
|
||||
allowImpersonation?: InputMaybe<Scalars['Boolean']>;
|
||||
displayName?: InputMaybe<Scalars['String']>;
|
||||
|
||||
Reference in New Issue
Block a user