Rename fieldId and objectId into fieldMetadataId and objectMetadataId (#2421)

* Rename fieldId and objectId into fieldMetadataId and objectMetadataId

* Fix tests
This commit is contained in:
Charles Bochet
2023-11-10 14:35:18 +01:00
committed by GitHub
parent 57cfd4db45
commit 618513afcd
136 changed files with 544 additions and 402 deletions

View File

@ -196,6 +196,21 @@ export type CreateOneObjectInput = {
object: CreateObjectInput;
};
export type CreateOneRelationInput = {
/** The record to create */
relation: CreateRelationInput;
};
export type CreateRelationInput = {
description?: InputMaybe<Scalars['String']['input']>;
fromObjectMetadataId: Scalars['String']['input'];
icon?: InputMaybe<Scalars['String']['input']>;
label: Scalars['String']['input'];
name: Scalars['String']['input'];
relationType: Scalars['String']['input'];
toObjectMetadataId: Scalars['String']['input'];
};
export enum Currency {
Aed = 'AED',
Afn = 'AFN',
@ -437,6 +452,7 @@ export enum FieldMetadataType {
Money = 'MONEY',
Number = 'NUMBER',
Phone = 'PHONE',
Relation = 'RELATION',
Text = 'TEXT',
Url = 'URL',
Uuid = 'UUID'
@ -446,6 +462,7 @@ export type Mutation = {
__typename?: 'Mutation';
createOneField: Field;
createOneObject: Object;
createOneRelation: Relation;
deleteOneField: FieldDeleteResponse;
deleteOneObject: ObjectDeleteResponse;
updateOneField: Field;
@ -463,6 +480,11 @@ export type MutationCreateOneObjectArgs = {
};
export type MutationCreateOneRelationArgs = {
input: CreateOneRelationInput;
};
export type MutationDeleteOneFieldArgs = {
input: DeleteOneFieldInput;
};
@ -611,6 +633,7 @@ export type Query = {
fields: FieldConnection;
object: Object;
objects: ObjectConnection;
relation: Relation;
};
@ -633,6 +656,11 @@ export type QueryObjectsArgs = {
paging?: CursorPaging;
};
export type QueryRelationArgs = {
id: Scalars['ID']['input'];
};
export type Support = {
__typename?: 'Support';
supportDriver: Scalars['String']['output'];
@ -769,6 +797,7 @@ export type Field = {
__typename?: 'field';
createdAt: Scalars['DateTime']['output'];
description?: Maybe<Scalars['String']['output']>;
fromRelationMetadata?: Maybe<Relation>;
icon?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
isActive: Scalars['Boolean']['output'];
@ -778,6 +807,7 @@ export type Field = {
name: Scalars['String']['output'];
/** @deprecated Use label name instead */
placeholder?: Maybe<Scalars['String']['output']>;
toRelationMetadata?: Maybe<Relation>;
type: FieldMetadataType;
updatedAt: Scalars['DateTime']['output'];
};
@ -820,6 +850,28 @@ export type ObjectEdge = {
node: Object;
};
export type Relation = {
__typename?: 'relation';
createdAt: Scalars['DateTime']['output'];
fromFieldMetadataId: Scalars['String']['output'];
fromObjectMetadata: Object;
fromObjectMetadataId: Scalars['String']['output'];
id: Scalars['ID']['output'];
relationType: Scalars['String']['output'];
toFieldMetadataId: Scalars['String']['output'];
toObjectMetadata: Object;
toObjectMetadataId: Scalars['String']['output'];
updatedAt: Scalars['DateTime']['output'];
};
export type RelationEdge = {
__typename?: 'relationEdge';
/** Cursor for this node. */
cursor: Scalars['ConnectionCursor']['output'];
/** The node containing the relation */
node: Relation;
};
export type CreateOneObjectMetadataItemMutationVariables = Exact<{
input: CreateOneObjectInput;
}>;