@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
22 lines • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrandItemListResponseSchema = exports.BrandItemResponseSchema = exports.BrandItemListParamsSchema = exports.UpdateBrandItemRequestSchema = exports.CreateBrandItemRequestSchema = exports.BrandItemSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Brand item - key field only, passthrough for API flexibility */
exports.BrandItemSchema = zod_1.z.object({ brandItemUid: zod_1.z.coerce.number() }).passthrough();
/** Create brand item request - passthrough for flexible input */
exports.CreateBrandItemRequestSchema = zod_1.z.object({}).passthrough();
/** Update brand item request - passthrough for flexible input */
exports.UpdateBrandItemRequestSchema = zod_1.z.object({}).passthrough();
/** Brand item list params */
exports.BrandItemListParamsSchema = schemas_1.BaseGetParamsSchema.extend({
invMastUid: zod_1.z.coerce.number().optional(),
isPrimary: zod_1.z.string().optional(),
isActive: zod_1.z.string().optional(),
orderBy: zod_1.z.string().optional(),
});
// Response Schemas
exports.BrandItemResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.BrandItemSchema);
exports.BrandItemListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.BrandItemSchema));
//# sourceMappingURL=brandsItems.js.map