Convert metadata tables to camelCase (#2400)
* Convert metadata tables to camelCase * datasourcemetadataid to datasourceid * refactor metadata folders * fix command * move commands out of metadata * fix seed * rename objectId and fieldId in objectMetadataId and fieldMetadataId in FE * fix field-metadata * Fix * Fix * remove logs --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -173,7 +173,7 @@ export type CreateFieldInput = {
|
||||
icon?: InputMaybe<Scalars['String']['input']>;
|
||||
label: Scalars['String']['input'];
|
||||
name: Scalars['String']['input'];
|
||||
objectId: Scalars['String']['input'];
|
||||
objectMetadataId: Scalars['String']['input'];
|
||||
type: FieldMetadataType;
|
||||
};
|
||||
|
||||
@ -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;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user