UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

28 lines 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddressEnableParamsSchema = exports.AddressCorpListParamsSchema = exports.AddressListParamsSchema = exports.AddressSchema = void 0; const zod_1 = require("zod"); /** Address - key field only, passthrough for API flexibility */ exports.AddressSchema = zod_1.z.object({ id: zod_1.z.number().int() }).passthrough(); /** Address list params */ exports.AddressListParamsSchema = zod_1.z.object({ carrierFlag: zod_1.z.string().optional(), defaultCd: zod_1.z.number().int().optional(), enabledCd: zod_1.z.number().int().optional(), statusCd: zod_1.z.number().int().optional(), limit: zod_1.z.number().int().min(1).max(1000).default(10).optional(), offset: zod_1.z.number().int().min(0).default(0).optional(), }); /** Address corporate list params */ exports.AddressCorpListParamsSchema = zod_1.z.object({ id: zod_1.z.number().int(), limit: zod_1.z.number().int().min(1).max(1000).default(10).optional(), offset: zod_1.z.number().int().min(0).default(0).optional(), q: zod_1.z.string().optional(), }); /** Address enable params */ exports.AddressEnableParamsSchema = zod_1.z.object({ id: zod_1.z.number().int(), enabledCd: zod_1.z.number().int().optional(), }); //# sourceMappingURL=address.js.map