/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/patchsubscriberrequestdto.ts
76 строк
2 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 PatchSubscriberRequestDto = { /** * First name of the subscriber */ firstName?: string | null | undefined; /** * Last name of the subscriber */ lastName?: string | null | undefined; /** * Email address of the subscriber */ email?: string | null | undefined; /** * Phone number of the subscriber */ phone?: string | null | undefined; /** * Avatar URL or identifier */ avatar?: string | null | undefined; /** * Locale of the subscriber */ locale?: string | null | undefined; /** * Timezone of the subscriber */ timezone?: string | null | undefined; /** * Additional custom data associated with the subscriber */ data?: { [k: string]: any } | null | undefined; }; /** @internal */ export type PatchSubscriberRequestDto$Outbound = { firstName?: string | null | undefined; lastName?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; locale?: string | null | undefined; timezone?: string | null | undefined; data?: { [k: string]: any } | null | undefined; }; /** @internal */ export const PatchSubscriberRequestDto$outboundSchema: z.ZodType< PatchSubscriberRequestDto$Outbound, z.ZodTypeDef, PatchSubscriberRequestDto > = z.object({ firstName: z.nullable(z.string()).optional(), lastName: z.nullable(z.string()).optional(), email: z.nullable(z.string()).optional(), phone: z.nullable(z.string()).optional(), avatar: z.nullable(z.string()).optional(), locale: z.nullable(z.string()).optional(), timezone: z.nullable(z.string()).optional(), data: z.nullable(z.record(z.any())).optional(), }); export function patchSubscriberRequestDtoToJSON( patchSubscriberRequestDto: PatchSubscriberRequestDto, ): string { return JSON.stringify( PatchSubscriberRequestDto$outboundSchema.parse(patchSubscriberRequestDto), ); }