UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

35 lines 1.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LocationListParamsSchema = exports.LocationSchema = void 0; const zod_1 = require("zod"); // Location Schema exports.LocationSchema = zod_1.z.object({ locationId: zod_1.z.number(), companyId: zod_1.z.string().max(8), defaultBranchId: zod_1.z.string().max(8).nullable(), deleteFlag: zod_1.z.string().max(1), 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}$/), lastMaintainedBy: zod_1.z.string().max(30), locationName: zod_1.z.string().max(255).nullable(), lotBinIntegration: zod_1.z.string().max(1).nullable(), fedexLocAcctNo: zod_1.z.string().max(255).nullable(), fedexMeterNo: zod_1.z.string().max(255).nullable(), upsAccountNo: zod_1.z.string().max(255).nullable(), upsPickupTypeCd: zod_1.z.number().int().nullable(), upsCustomerTypeCd: zod_1.z.number().int().nullable(), upsOltAccessKey: zod_1.z.string().max(255).nullable(), upsOltPassword: zod_1.z.string().max(255).nullable(), upsOltUserId: zod_1.z.string().max(255).nullable(), distributionCenter: zod_1.z.string().max(1), updateCd: zod_1.z.number().int(), }); // Location List Parameters Schema exports.LocationListParamsSchema = zod_1.z.object({ deleteFlag: 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('location_id|ASC').optional(), q: zod_1.z.string().optional(), }); //# sourceMappingURL=location.js.map