UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

65 lines 3.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MetaFilesDataSchema = exports.NotificationCreateParamsSchema = exports.NotificationSchema = exports.FyxerTranscriptUpdateParamsSchema = exports.FyxerTranscriptCreateParamsSchema = exports.FyxerTranscriptListParamsSchema = exports.FyxerTranscriptSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); // Fyxer Transcript Schemas - per FyxerTranscriptHdr.json specification exports.FyxerTranscriptSchema = zod_1.z.object({ fyxerTranscriptHdrUid: zod_1.z.number().min(1), link: zod_1.z.string().max(255), summary: zod_1.z.string().nullable().optional(), transcript: zod_1.z.string().nullable().optional(), title: zod_1.z.string().max(255).nullable().optional(), dateRecorded: zod_1.z.string(), // ISO 8601 format dateCreated: zod_1.z.string(), // ISO 8601 format dateLastModified: zod_1.z.string(), // ISO 8601 format updateCd: zod_1.z.union([zod_1.z.literal(704), zod_1.z.literal(705), zod_1.z.literal(1185)]), statusCd: zod_1.z.union([zod_1.z.literal(700), zod_1.z.literal(704), zod_1.z.literal(705)]), processCd: zod_1.z.union([zod_1.z.literal(700), zod_1.z.literal(704), zod_1.z.literal(705)]), }); exports.FyxerTranscriptListParamsSchema = schemas_1.BaseGetParamsSchema.extend({ orderBy: zod_1.z.string().optional(), q: zod_1.z.string().optional(), statusCd: zod_1.z.coerce.number().optional(), }).merge(schemas_1.EdgeCacheParamsSchema); exports.FyxerTranscriptCreateParamsSchema = zod_1.z.object({ link: zod_1.z.string().min(1).max(255), transcript: zod_1.z.string().nullable().optional(), summary: zod_1.z.string().nullable().optional(), title: zod_1.z.string().max(255).nullable().optional(), dateRecorded: zod_1.z.string().nullable().optional(), // ISO 8601 format }); exports.FyxerTranscriptUpdateParamsSchema = zod_1.z.object({ link: zod_1.z.string().max(255).optional(), summary: zod_1.z.string().nullable().optional(), transcript: zod_1.z.string().nullable().optional(), title: zod_1.z.string().max(255).nullable().optional(), dateRecorded: zod_1.z.string().optional(), // ISO 8601 format statusCd: zod_1.z.coerce.number().optional(), processCd: zod_1.z.coerce.number().optional(), }); // Notification Schemas - per Notifications.json specification exports.NotificationSchema = zod_1.z.object({ notificationsUid: zod_1.z.number(), serviceName: zod_1.z.string().max(100).nullable().optional(), dataTypeName: zod_1.z.string().max(100).nullable().optional(), type: zod_1.z.string().max(100).nullable().optional(), dataTypeUid: zod_1.z.number(), dateCreated: zod_1.z.string(), // ISO 8601 format dateLastModified: zod_1.z.string(), // ISO 8601 format updateCd: zod_1.z.number(), statusCd: zod_1.z.number(), processCd: zod_1.z.number(), }); exports.NotificationCreateParamsSchema = zod_1.z.object({ serviceName: zod_1.z.string().min(1).max(100), dataTypeName: zod_1.z.string().min(1).max(100), type: zod_1.z.string().min(1).max(100), dataTypeUid: zod_1.z.coerce.number(), }); // MetaFiles Schemas - per MetaFilesHdr.json specification exports.MetaFilesDataSchema = zod_1.z.object({ content: zod_1.z.string(), contentType: zod_1.z.literal('text/plain'), }); //# sourceMappingURL=content.js.map