@mondaycom/apps-cli
Version:
A cli tool to manage apps (and monday-code projects) in monday.com
168 lines (167 loc) • 5.84 kB
TypeScript
import { z } from 'zod';
import { AppReleaseCategory } from '../../consts/app-release.js';
import { Region } from '../../types/general/region.js';
export declare const appReleaseSchema: z.ZodObject<{
id: z.ZodNumber;
app_version_id: z.ZodNumber;
kind: z.ZodString;
category: z.ZodNativeEnum<typeof AppReleaseCategory>;
state: z.ZodString;
region: z.ZodNativeEnum<typeof Region>;
data: z.ZodOptional<z.ZodObject<{
url: z.ZodOptional<z.ZodString>;
latestUrl: z.ZodOptional<z.ZodString>;
liveUrl: z.ZodOptional<z.ZodString>;
deploymentState: z.ZodOptional<z.ZodString>;
sourceUrl: z.ZodOptional<z.ZodString>;
microFrontendName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
}, {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}, {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}>;
export declare const appReleasesSchema: z.ZodObject<{
appReleases: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
app_version_id: z.ZodNumber;
kind: z.ZodString;
category: z.ZodNativeEnum<typeof AppReleaseCategory>;
state: z.ZodString;
region: z.ZodNativeEnum<typeof Region>;
data: z.ZodOptional<z.ZodObject<{
url: z.ZodOptional<z.ZodString>;
latestUrl: z.ZodOptional<z.ZodString>;
liveUrl: z.ZodOptional<z.ZodString>;
deploymentState: z.ZodOptional<z.ZodString>;
sourceUrl: z.ZodOptional<z.ZodString>;
microFrontendName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
}, {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}, {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}>, "many">;
statusCode: z.ZodNumber;
headers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
}, "strip", z.ZodTypeAny, {
statusCode: number;
headers: Record<string, string | string[]>;
appReleases: {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}[];
}, {
statusCode: number;
headers: Record<string, string | string[]>;
appReleases: {
id: number;
region: Region;
state: string;
kind: string;
app_version_id: number;
category: AppReleaseCategory;
data?: {
url?: string | undefined;
latestUrl?: string | undefined;
liveUrl?: string | undefined;
deploymentState?: string | undefined;
sourceUrl?: string | undefined;
microFrontendName?: string | undefined;
} | undefined;
}[];
}>;
export type AppReleasesResponse = z.infer<typeof appReleasesSchema>;
export type AppRelease = z.infer<typeof appReleaseSchema>;