UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

66 lines 3.14 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import * as types from "../types/primitives.js"; /** @internal */ export const DefaultApp$outboundSchema = z.object({ projectId: z.string(), defaultRoute: z.string().optional(), }); export function defaultAppToJSON(defaultApp) { return JSON.stringify(DefaultApp$outboundSchema.parse(defaultApp)); } /** @internal */ export const OtherApplications$outboundSchema = z.object({ projectId: z.string(), defaultRoute: z.string().optional(), }); export function otherApplicationsToJSON(otherApplications) { return JSON.stringify(OtherApplications$outboundSchema.parse(otherApplications)); } /** @internal */ export const CreateMicrofrontendsGroupWithApplicationsRequestBody$outboundSchema = z.object({ groupName: z.string(), defaultApp: z.lazy(() => DefaultApp$outboundSchema), otherApplications: z.array(z.lazy(() => OtherApplications$outboundSchema)), }); export function createMicrofrontendsGroupWithApplicationsRequestBodyToJSON(createMicrofrontendsGroupWithApplicationsRequestBody) { return JSON.stringify(CreateMicrofrontendsGroupWithApplicationsRequestBody$outboundSchema.parse(createMicrofrontendsGroupWithApplicationsRequestBody)); } /** @internal */ export const CreateMicrofrontendsGroupWithApplicationsRequest$outboundSchema = z.object({ teamId: z.string().optional(), slug: z.string().optional(), requestBody: z.lazy(() => CreateMicrofrontendsGroupWithApplicationsRequestBody$outboundSchema).optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function createMicrofrontendsGroupWithApplicationsRequestToJSON(createMicrofrontendsGroupWithApplicationsRequest) { return JSON.stringify(CreateMicrofrontendsGroupWithApplicationsRequest$outboundSchema.parse(createMicrofrontendsGroupWithApplicationsRequest)); } /** @internal */ export const NewMicrofrontendsGroup$inboundSchema = z.object({ id: types.string(), slug: types.string(), name: types.string(), fallbackEnvironment: types.string(), enablePolyrepoBranchRouting: types.boolean(), createdAt: types.number(), updatedAt: types.number(), }); export function newMicrofrontendsGroupFromJSON(jsonString) { return safeParse(jsonString, (x) => NewMicrofrontendsGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NewMicrofrontendsGroup' from JSON`); } /** @internal */ export const CreateMicrofrontendsGroupWithApplicationsResponseBody$inboundSchema = z.object({ newMicrofrontendsGroup: z.lazy(() => NewMicrofrontendsGroup$inboundSchema), }); export function createMicrofrontendsGroupWithApplicationsResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => CreateMicrofrontendsGroupWithApplicationsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateMicrofrontendsGroupWithApplicationsResponseBody' from JSON`); } //# sourceMappingURL=createmicrofrontendsgroupwithapplicationsop.js.map