Serverless function improvements (#6769)

- 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
This commit is contained in:
martmull
2024-09-02 15:25:20 +02:00
committed by GitHub
parent f8890689ee
commit 7e03419c16
41 changed files with 4834 additions and 164 deletions

View File

@ -1,6 +1,6 @@
import { Field, InputType } from '@nestjs/graphql';
import { IsNotEmpty, IsObject, IsOptional, IsUUID } from 'class-validator';
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';
@ -16,11 +16,9 @@ export class ExecuteServerlessFunctionInput {
@Field(() => graphqlTypeJson, {
description: 'Payload in JSON format',
nullable: true,
})
@IsObject()
@IsOptional()
payload?: JSON;
payload: JSON;
@Field(() => String, {
nullable: false,

View File

@ -43,7 +43,6 @@ export class ServerlessFunctionDTO {
id: string;
@IsString()
@IsNotEmpty()
@Field()
name: string;

View File

@ -14,7 +14,6 @@ export class UpdateServerlessFunctionInput {
id: string;
@IsString()
@IsNotEmpty()
@Field()
name: string;