Remove identifierFieldMetadataId from createObjectInput (#9450)
Removing labelIdentifierFieldMetadataId and imageIdentifierFieldMetadataId that should not be part of createObjectInput as they don't make sense for an object yet to create and will break
This commit is contained in:
@ -199,6 +199,13 @@ export type CreateAppTokenInput = {
|
|||||||
expiresAt: Scalars['DateTime']['input'];
|
expiresAt: Scalars['DateTime']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CreateDraftFromWorkflowVersionInput = {
|
||||||
|
/** Workflow ID */
|
||||||
|
workflowId: Scalars['String']['input'];
|
||||||
|
/** Workflow version ID */
|
||||||
|
workflowVersionIdToCopy: Scalars['String']['input'];
|
||||||
|
};
|
||||||
|
|
||||||
export type CreateFieldInput = {
|
export type CreateFieldInput = {
|
||||||
defaultValue?: InputMaybe<Scalars['JSON']['input']>;
|
defaultValue?: InputMaybe<Scalars['JSON']['input']>;
|
||||||
description?: InputMaybe<Scalars['String']['input']>;
|
description?: InputMaybe<Scalars['String']['input']>;
|
||||||
@ -221,10 +228,8 @@ export type CreateFieldInput = {
|
|||||||
export type CreateObjectInput = {
|
export type CreateObjectInput = {
|
||||||
description?: InputMaybe<Scalars['String']['input']>;
|
description?: InputMaybe<Scalars['String']['input']>;
|
||||||
icon?: InputMaybe<Scalars['String']['input']>;
|
icon?: InputMaybe<Scalars['String']['input']>;
|
||||||
imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
|
isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
isRemote?: InputMaybe<Scalars['Boolean']['input']>;
|
isRemote?: InputMaybe<Scalars['Boolean']['input']>;
|
||||||
labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
labelPlural: Scalars['String']['input'];
|
labelPlural: Scalars['String']['input'];
|
||||||
labelSingular: Scalars['String']['input'];
|
labelSingular: Scalars['String']['input'];
|
||||||
namePlural: Scalars['String']['input'];
|
namePlural: Scalars['String']['input'];
|
||||||
@ -579,6 +584,7 @@ export type Mutation = {
|
|||||||
challenge: LoginToken;
|
challenge: LoginToken;
|
||||||
checkoutSession: SessionEntity;
|
checkoutSession: SessionEntity;
|
||||||
computeStepOutputSchema: Scalars['JSON']['output'];
|
computeStepOutputSchema: Scalars['JSON']['output'];
|
||||||
|
createDraftFromWorkflowVersion: Scalars['Boolean']['output'];
|
||||||
createOIDCIdentityProvider: SetupSsoOutput;
|
createOIDCIdentityProvider: SetupSsoOutput;
|
||||||
createOneAppToken: AppToken;
|
createOneAppToken: AppToken;
|
||||||
createOneField: Field;
|
createOneField: Field;
|
||||||
@ -685,6 +691,11 @@ export type MutationComputeStepOutputSchemaArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export type MutationCreateDraftFromWorkflowVersionArgs = {
|
||||||
|
input: CreateDraftFromWorkflowVersionInput;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
export type MutationCreateOidcIdentityProviderArgs = {
|
export type MutationCreateOidcIdentityProviderArgs = {
|
||||||
input: SetupOidcSsoInput;
|
input: SetupOidcSsoInput;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,13 +1,7 @@
|
|||||||
import { Field, HideField, InputType } from '@nestjs/graphql';
|
import { Field, HideField, InputType } from '@nestjs/graphql';
|
||||||
|
|
||||||
import { BeforeCreateOne } from '@ptc-org/nestjs-query-graphql';
|
import { BeforeCreateOne } from '@ptc-org/nestjs-query-graphql';
|
||||||
import {
|
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||||
IsBoolean,
|
|
||||||
IsNotEmpty,
|
|
||||||
IsOptional,
|
|
||||||
IsString,
|
|
||||||
IsUUID,
|
|
||||||
} from 'class-validator';
|
|
||||||
import GraphQLJSON from 'graphql-type-json';
|
import GraphQLJSON from 'graphql-type-json';
|
||||||
|
|
||||||
import { FieldMetadataSettings } from 'src/engine/metadata-modules/field-metadata/interfaces/field-metadata-settings.interface';
|
import { FieldMetadataSettings } from 'src/engine/metadata-modules/field-metadata/interfaces/field-metadata-settings.interface';
|
||||||
@ -62,16 +56,6 @@ export class CreateObjectInput {
|
|||||||
@HideField()
|
@HideField()
|
||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
|
|
||||||
@IsUUID()
|
|
||||||
@IsOptional()
|
|
||||||
@Field({ nullable: true })
|
|
||||||
labelIdentifierFieldMetadataId?: string;
|
|
||||||
|
|
||||||
@IsUUID()
|
|
||||||
@IsOptional()
|
|
||||||
@Field({ nullable: true })
|
|
||||||
imageIdentifierFieldMetadataId?: string;
|
|
||||||
|
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@Field({ nullable: true })
|
@Field({ nullable: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user