UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

332 lines 10.6 kB
import { z } from 'zod'; /** * Podcast Entity Schema (matches Podcasts.json) */ export declare const PodcastSchema: z.ZodObject<{ podcastsUid: z.ZodNumber; title: z.ZodOptional<z.ZodNullable<z.ZodString>>; path: z.ZodOptional<z.ZodNullable<z.ZodString>>; transcript: z.ZodString; dateCreated: z.ZodString; dateLastModified: z.ZodString; updateCd: z.ZodNumber; statusCd: z.ZodNumber; processCd: z.ZodNumber; }, "strip", z.ZodTypeAny, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }>; /** * Parameter Schemas */ export declare const PodcastListParamsSchema: z.ZodObject<{ limit: z.ZodOptional<z.ZodNumber>; offset: z.ZodOptional<z.ZodNumber>; statusCd: z.ZodOptional<z.ZodNumber>; q: z.ZodOptional<z.ZodString>; } & { edgeCache: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<8>, z.ZodLiteral<"1">, z.ZodLiteral<"2">, z.ZodLiteral<"3">, z.ZodLiteral<"4">, z.ZodLiteral<"5">, z.ZodLiteral<"8">]>, 3 | 2 | 4 | 1 | 5 | 8, 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>; }, "strip", z.ZodTypeAny, { edgeCache?: 3 | 2 | 4 | 1 | 5 | 8 | undefined; limit?: number | undefined; offset?: number | undefined; q?: string | undefined; statusCd?: number | undefined; }, { edgeCache?: 3 | 2 | 4 | 1 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined; limit?: number | undefined; offset?: number | undefined; q?: string | undefined; statusCd?: number | undefined; }>; export declare const PodcastCreateParamsSchema: z.ZodObject<{ title: z.ZodOptional<z.ZodNullable<z.ZodString>>; path: z.ZodOptional<z.ZodNullable<z.ZodString>>; transcript: z.ZodString; }, "strip", z.ZodTypeAny, { transcript: string; path?: string | null | undefined; title?: string | null | undefined; }, { transcript: string; path?: string | null | undefined; title?: string | null | undefined; }>; export declare const PodcastUpdateParamsSchema: z.ZodObject<{ title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>; path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>; transcript: z.ZodOptional<z.ZodOptional<z.ZodString>>; statusCd: z.ZodOptional<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { path?: string | null | undefined; title?: string | null | undefined; statusCd?: number | undefined; transcript?: string | undefined; }, { path?: string | null | undefined; title?: string | null | undefined; statusCd?: number | undefined; transcript?: string | undefined; }>; /** * Response Schemas */ export declare const PodcastResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodObject<{ podcastsUid: z.ZodNumber; title: z.ZodOptional<z.ZodNullable<z.ZodString>>; path: z.ZodOptional<z.ZodNullable<z.ZodString>>; transcript: z.ZodString; dateCreated: z.ZodString; dateLastModified: z.ZodString; updateCd: z.ZodNumber; statusCd: z.ZodNumber; processCd: z.ZodNumber; }, "strip", z.ZodTypeAny, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }>; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; export declare const PodcastListResponseSchema: z.ZodEffects<z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ podcastsUid: z.ZodNumber; title: z.ZodOptional<z.ZodNullable<z.ZodString>>; path: z.ZodOptional<z.ZodNullable<z.ZodString>>; transcript: z.ZodString; dateCreated: z.ZodString; dateLastModified: z.ZodString; updateCd: z.ZodNumber; statusCd: z.ZodNumber; processCd: z.ZodNumber; }, "strip", z.ZodTypeAny, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }, { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }>, "many">; message: z.ZodString; options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; status: z.ZodNumber; total: z.ZodNumber; totalResults: z.ZodNumber; }, "strip", z.ZodTypeAny, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }, { params: Record<string, unknown> | unknown[]; data: { dateCreated: string; dateLastModified: string; statusCd: number; updateCd: number; processCd: number; transcript: string; podcastsUid: number; path?: string | null | undefined; title?: string | null | undefined; }[]; options: Record<string, unknown> | unknown[]; status: number; message: string; count: number; total: number; totalResults: number; }>; /** * Type Exports */ export type Podcast = z.infer<typeof PodcastSchema>; export type PodcastListParams = z.infer<typeof PodcastListParamsSchema>; export type PodcastCreateParams = z.infer<typeof PodcastCreateParamsSchema>; export type PodcastUpdateParams = z.infer<typeof PodcastUpdateParamsSchema>; export type PodcastResponse = z.infer<typeof PodcastResponseSchema>; export type PodcastListResponse = z.infer<typeof PodcastListResponseSchema>; //# sourceMappingURL=podcasts.d.ts.map