@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
22 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetStockResponseSchema = exports.GetStockParamsSchema = exports.StockDetailsDataSchema = exports.StockLocationDataSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Stock location data - key field only, passthrough for API flexibility */
exports.StockLocationDataSchema = zod_1.z.object({ locationId: zod_1.z.number() }).passthrough();
/** Stock details data - passthrough for API flexibility */
exports.StockDetailsDataSchema = zod_1.z
.object({
stockData: zod_1.z.array(exports.StockLocationDataSchema).optional(),
})
.passthrough();
exports.GetStockParamsSchema = zod_1.z.object({
includeCompanySummary: zod_1.z.boolean().optional(),
includeCalculatedValues: zod_1.z.boolean().optional(),
locationIds: zod_1.z.array(zod_1.z.number()).optional(),
companyIds: zod_1.z.array(zod_1.z.string()).optional(),
});
// Response schemas
exports.GetStockResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.StockDetailsDataSchema);
//# sourceMappingURL=invLoc.js.map