Skip to content

Commit

Permalink
Amplication build # clvqhgelz06d2b7kdr3vvfdkx
Browse files Browse the repository at this point in the history
  • Loading branch information
amplication[bot] committed May 3, 2024
1 parent a013fc8 commit bb74d07
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/amplication-plugin-api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ generator client {

model Plugin {
categories Json? @default("[]")
codeGeneratorName String?
codeGeneratorName String @default("data-service-generator")
createdAt DateTime @default(now())
description String?
downloads Int?
Expand Down
9 changes: 3 additions & 6 deletions packages/amplication-plugin-api/src/plugin/base/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ class Plugin {
categories!: JsonValue;

@ApiProperty({
required: false,
required: true,
type: String,
})
@IsString()
@IsOptional()
@Field(() => String, {
nullable: true,
})
codeGeneratorName!: string | null;
@Field(() => String)
codeGeneratorName!: string;

@ApiProperty({
required: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ class PluginCreateInput {
categories?: InputJsonValue;

@ApiProperty({
required: false,
required: true,
type: String,
})
@IsString()
@IsOptional()
@Field(() => String, {
nullable: true,
})
codeGeneratorName?: string | null;
@Field(() => String)
codeGeneratorName!: string;

@ApiProperty({
required: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PluginUpdateInput {
@Field(() => String, {
nullable: true,
})
codeGeneratorName?: string | null;
codeGeneratorName?: string;

@ApiProperty({
required: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import { ApiProperty } from "@nestjs/swagger";
import { JsonFilter } from "../../util/JsonFilter";
import { Type } from "class-transformer";
import { IsOptional } from "class-validator";
import { StringFilter } from "../../util/StringFilter";
import { StringNullableFilter } from "../../util/StringNullableFilter";
import { IntNullableFilter } from "../../util/IntNullableFilter";
import { StringFilter } from "../../util/StringFilter";

@InputType()
class PluginWhereInput {
Expand All @@ -33,14 +33,14 @@ class PluginWhereInput {

@ApiProperty({
required: false,
type: StringNullableFilter,
type: StringFilter,
})
@Type(() => StringNullableFilter)
@Type(() => StringFilter)
@IsOptional()
@Field(() => StringNullableFilter, {
@Field(() => StringFilter, {
nullable: true,
})
codeGeneratorName?: StringNullableFilter;
codeGeneratorName?: StringFilter;

@ApiProperty({
required: false,
Expand Down

0 comments on commit bb74d07

Please sign in to comment.