UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

32 lines 1.41 kB
import { z } from 'zod'; // Location Schema export const LocationSchema = z.object({ locationId: z.number(), companyId: z.string().max(8), defaultBranchId: z.string().max(8).nullable(), deleteFlag: z.string().max(1), dateCreated: z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/), dateLastModified: z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/), lastMaintainedBy: z.string().max(30), locationName: z.string().max(255).nullable(), lotBinIntegration: z.string().max(1).nullable(), fedexLocAcctNo: z.string().max(255).nullable(), fedexMeterNo: z.string().max(255).nullable(), upsAccountNo: z.string().max(255).nullable(), upsPickupTypeCd: z.number().int().nullable(), upsCustomerTypeCd: z.number().int().nullable(), upsOltAccessKey: z.string().max(255).nullable(), upsOltPassword: z.string().max(255).nullable(), upsOltUserId: z.string().max(255).nullable(), distributionCenter: z.string().max(1), updateCd: z.number().int(), }); // Location List Parameters Schema export const LocationListParamsSchema = z.object({ deleteFlag: z.string().optional(), limit: z.number().int().min(1).max(1000).default(10).optional(), offset: z.number().int().min(0).default(0).optional(), orderBy: z.string().default('location_id|ASC').optional(), q: z.string().optional(), }); //# sourceMappingURL=location.js.map