/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/createenvironmentrequestdto.ts
48 строк
1 KB
George Djabarov
feat(api-service): add multi subscription per topic and trigger condition parsing fixes NV-6810 (#9472)
25 ноя 2025, 14:55
Не верифицирован
25 ноя 2025, 14:55
a352a21
Код
Авторство
О чём код?
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CreateEnvironmentRequestDto = { /** * Name of the environment to be created */ name: string; /** * MongoDB ObjectId of the parent environment (optional) */ parentId?: string | undefined; /** * Hex color code for the environment */ color: string; }; /** @internal */ export type CreateEnvironmentRequestDto$Outbound = { name: string; parentId?: string | undefined; color: string; }; /** @internal */ export const CreateEnvironmentRequestDto$outboundSchema: z.ZodType< CreateEnvironmentRequestDto$Outbound, z.ZodTypeDef, CreateEnvironmentRequestDto > = z.object({ name: z.string(), parentId: z.string().optional(), color: z.string(), }); export function createEnvironmentRequestDtoToJSON( createEnvironmentRequestDto: CreateEnvironmentRequestDto, ): string { return JSON.stringify( CreateEnvironmentRequestDto$outboundSchema.parse( createEnvironmentRequestDto, ), ); }