@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
20 lines • 944 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompanyDetailParamsSchema = exports.CompanyListParamsSchema = exports.CompanySchema = void 0;
const zod_1 = require("zod");
/** Company - key field only, passthrough for API flexibility */
exports.CompanySchema = zod_1.z.object({ companyUid: zod_1.z.number().int() }).passthrough();
/** Company list params */
exports.CompanyListParamsSchema = zod_1.z.object({
companyId: zod_1.z.string().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(),
orderBy: zod_1.z.string().default('company_uid|ASC').optional(),
q: zod_1.z.string().optional(),
});
/** Company detail params */
exports.CompanyDetailParamsSchema = zod_1.z.object({
companyUid: zod_1.z.number().int(),
companyId: zod_1.z.string().optional(),
});
//# sourceMappingURL=company.js.map