/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/workflowpreferencerequestdto.ts
48 строк
1 KB
AdemDev
feat(providers): add LINE Messaging API chat provider fixes NV-7614 (#11148)
13 июл 2026, 11:20
Не верифицирован
13 июл 2026, 11:20
51e40a8
Код
Авторство
О чём код?
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type WorkflowPreferenceRequestDto = { /** * Whether the preference is enabled. Used when condition is not provided. */ enabled?: boolean | undefined; /** * Optional JSON Logic condition evaluated against the trigger payload at fan-out time (for example, `{ "var": "payload.tier" }`) */ condition?: { [k: string]: any } | undefined; /** * The workflow identifier */ workflowId: string; }; /** @internal */ export type WorkflowPreferenceRequestDto$Outbound = { enabled?: boolean | undefined; condition?: { [k: string]: any } | undefined; workflowId: string; }; /** @internal */ export const WorkflowPreferenceRequestDto$outboundSchema: z.ZodType< WorkflowPreferenceRequestDto$Outbound, z.ZodTypeDef, WorkflowPreferenceRequestDto > = z.object({ enabled: z.boolean().optional(), condition: z.record(z.any()).optional(), workflowId: z.string(), }); export function workflowPreferenceRequestDtoToJSON( workflowPreferenceRequestDto: WorkflowPreferenceRequestDto, ): string { return JSON.stringify( WorkflowPreferenceRequestDto$outboundSchema.parse( workflowPreferenceRequestDto, ), ); }