- add layer for lambda execution - add layer for local execution - add package resolve for the monaco editor - add route to get installed package for serverless functions - add layer versioning
30 lines
753 B
TypeScript
30 lines
753 B
TypeScript
import { Field, InputType } from '@nestjs/graphql';
|
|
|
|
import { IsNotEmpty, IsObject, IsUUID } from 'class-validator';
|
|
import graphqlTypeJson from 'graphql-type-json';
|
|
|
|
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
|
|
|
|
@InputType()
|
|
export class ExecuteServerlessFunctionInput {
|
|
@Field(() => UUIDScalarType, {
|
|
description: 'Id of the serverless function to execute',
|
|
})
|
|
@IsNotEmpty()
|
|
@IsUUID()
|
|
id: string;
|
|
|
|
@Field(() => graphqlTypeJson, {
|
|
description: 'Payload in JSON format',
|
|
})
|
|
@IsObject()
|
|
payload: JSON;
|
|
|
|
@Field(() => String, {
|
|
nullable: false,
|
|
description: 'Version of the serverless function to execute',
|
|
defaultValue: 'latest',
|
|
})
|
|
version: string;
|
|
}
|