martmull
2024-10-22 14:51:03 +02:00
committed by GitHub
parent 7fc844ea8f
commit e767f16dbe
26 changed files with 547 additions and 242 deletions

View File

@ -3,7 +3,7 @@ import { ID, InputType } from '@nestjs/graphql';
import { IDField } from '@ptc-org/nestjs-query-graphql';
@InputType()
export class DeleteServerlessFunctionInput {
export class ServerlessFunctionIdInput {
@IDField(() => ID, { description: 'The id of the function.' })
id!: string;
}

View File

@ -11,6 +11,7 @@ import {
QueryOptions,
} from '@ptc-org/nestjs-query-graphql';
import {
IsArray,
IsDateString,
IsEnum,
IsNotEmpty,
@ -59,6 +60,10 @@ export class ServerlessFunctionDTO {
@Field({ nullable: true })
latestVersion: string;
@IsArray()
@Field(() => [String], { nullable: false })
publishedVersions: string[];
@IsEnum(ServerlessFunctionSyncStatus)
@IsNotEmpty()
@Field(() => ServerlessFunctionSyncStatus)