UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

35 lines 1.62 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CompanyDetailParamsSchema = exports.CompanyListParamsSchema = exports.CompanySchema = void 0; const zod_1 = require("zod"); // Company Schema exports.CompanySchema = zod_1.z.object({ companyUid: zod_1.z.number().int(), companyId: zod_1.z.string().max(8), companyName: zod_1.z.string().max(40).nullable(), dateCreated: zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/), dateLastModified: zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/), deleteFlag: zod_1.z.string().max(1), updateCd: zod_1.z.number().int(), lastMaintainedBy: zod_1.z.string().max(8), addressId: zod_1.z.number().nullable(), defaultSalesLocationId: zod_1.z.number().nullable(), freightCodeUid: zod_1.z.number().int().nullable(), upsAccountNo: zod_1.z.string().max(255).nullable(), defaultSourcePriceCd: zod_1.z.number().int().nullable(), defaultMultiplier: zod_1.z.number().nullable(), }); // Company List Parameters Schema 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 Parameters Schema exports.CompanyDetailParamsSchema = zod_1.z.object({ companyUid: zod_1.z.number().int(), companyId: zod_1.z.string().optional(), }); //# sourceMappingURL=company.js.map