UNPKG

@ninetailed/experience.js-utils-contentful

Version:
333 lines (332 loc) 10.3 kB
import { z } from 'zod'; export declare const AudienceEntryFields: z.ZodObject<z.objectUtil.extendShape<{}, { /** * The name of the audience (Short Text) */ nt_name: z.ZodString; /** * The description of the audience (Short Text) */ nt_description: z.ZodOptional<z.ZodString>; /** * The internal id of the audience (Short Text) */ nt_audience_id: z.ZodString; }>, z.UnknownKeysParam, z.ZodTypeAny, { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }, { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }>; export type AudienceEntryFields = z.infer<typeof AudienceEntryFields>; export declare const AudienceEntry: z.ZodObject<z.objectUtil.extendShape<{ sys: z.ZodObject<{ type: z.ZodOptional<z.ZodString>; id: z.ZodString; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; locale: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodNumber>; space: z.ZodOptional<z.ZodObject<{ sys: z.ZodObject<{ type: z.ZodOptional<z.ZodString>; linkType: z.ZodOptional<z.ZodString>; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; type?: string | undefined; linkType?: string | undefined; }, { id: string; type?: string | undefined; linkType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }>>; environment: z.ZodOptional<z.ZodObject<{ sys: z.ZodObject<{ type: z.ZodOptional<z.ZodString>; linkType: z.ZodOptional<z.ZodString>; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; type?: string | undefined; linkType?: string | undefined; }, { id: string; type?: string | undefined; linkType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }>>; contentType: z.ZodOptional<z.ZodObject<{ sys: z.ZodObject<{ type: z.ZodOptional<z.ZodString>; linkType: z.ZodOptional<z.ZodString>; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; type?: string | undefined; linkType?: string | undefined; }, { id: string; type?: string | undefined; linkType?: string | undefined; }>; }, "strip", z.ZodTypeAny, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }, { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; }>>; }, "strip", z.ZodTypeAny, { id: string; type?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locale?: string | undefined; revision?: number | undefined; space?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; environment?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; contentType?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; }, { id: string; type?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locale?: string | undefined; revision?: number | undefined; space?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; environment?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; contentType?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; }>; fields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>; metadata: z.ZodOptional<z.ZodObject<{ tags: z.ZodArray<z.ZodObject<{ sys: z.ZodObject<z.objectUtil.extendShape<{ type: z.ZodOptional<z.ZodString>; linkType: z.ZodOptional<z.ZodString>; id: z.ZodString; }, { linkType: z.ZodString; }>, "strip", z.ZodTypeAny, { id: string; linkType: string; type?: string | undefined; }, { id: string; linkType: string; type?: string | undefined; }>; }, "strip", z.ZodTypeAny, { sys: { id: string; linkType: string; type?: string | undefined; }; }, { sys: { id: string; linkType: string; type?: string | undefined; }; }>, "many">; }, "strip", z.ZodTypeAny, { tags: { sys: { id: string; linkType: string; type?: string | undefined; }; }[]; }, { tags: { sys: { id: string; linkType: string; type?: string | undefined; }; }[]; }>>; }, { fields: z.ZodObject<z.objectUtil.extendShape<{}, { /** * The name of the audience (Short Text) */ nt_name: z.ZodString; /** * The description of the audience (Short Text) */ nt_description: z.ZodOptional<z.ZodString>; /** * The internal id of the audience (Short Text) */ nt_audience_id: z.ZodString; }>, z.UnknownKeysParam, z.ZodTypeAny, { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }, { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }>; }>, "strip", z.ZodTypeAny, { sys: { id: string; type?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locale?: string | undefined; revision?: number | undefined; space?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; environment?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; contentType?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; }; fields: { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }; metadata?: { tags: { sys: { id: string; linkType: string; type?: string | undefined; }; }[]; } | undefined; }, { sys: { id: string; type?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locale?: string | undefined; revision?: number | undefined; space?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; environment?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; contentType?: { sys: { id: string; type?: string | undefined; linkType?: string | undefined; }; } | undefined; }; fields: { nt_name: string; nt_audience_id: string; nt_description?: string | undefined; }; metadata?: { tags: { sys: { id: string; linkType: string; type?: string | undefined; }; }[]; } | undefined; }>; export type AudienceEntryLike = z.input<typeof AudienceEntry>; export type AudienceEntry = z.infer<typeof AudienceEntry>;