UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

21 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubPartListResponseSchema = exports.SubPartResponseSchema = exports.SubPartListParamsSchema = exports.UpdateSubPartRequestSchema = exports.CreateSubPartRequestSchema = exports.SubPartSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../../../core/schemas"); /** Sub-Part - key field only, passthrough for API flexibility */ exports.SubPartSchema = zod_1.z.object({ subPartUid: zod_1.z.coerce.number() }).passthrough(); /** Create sub-part request - passthrough for flexible input */ exports.CreateSubPartRequestSchema = zod_1.z.object({}).passthrough(); /** Update sub-part request - passthrough for flexible input */ exports.UpdateSubPartRequestSchema = zod_1.z.object({}).passthrough(); /** Sub-part list params */ exports.SubPartListParamsSchema = schemas_1.BaseGetParamsSchema.extend({ isOptional: zod_1.z.string().optional(), isActive: zod_1.z.string().optional(), orderBy: zod_1.z.string().optional(), }); // Response Schemas exports.SubPartResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.SubPartSchema); exports.SubPartListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.SubPartSchema)); //# sourceMappingURL=subparts.js.map