@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
21 lines • 1.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductLinkListResponseSchema = exports.ProductLinkResponseSchema = exports.ProductLinkListParamsSchema = exports.UpdateProductLinkRequestSchema = exports.CreateProductLinkRequestSchema = exports.ProductLinkSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/** Product link - key field only, passthrough for API flexibility */
exports.ProductLinkSchema = zod_1.z.object({ productLinkUid: zod_1.z.coerce.number() }).passthrough();
/** Create product link request - passthrough for flexible input */
exports.CreateProductLinkRequestSchema = zod_1.z.object({}).passthrough();
/** Update product link request - passthrough for flexible input */
exports.UpdateProductLinkRequestSchema = zod_1.z.object({}).passthrough();
/** Product link list params */
exports.ProductLinkListParamsSchema = schemas_1.BaseGetParamsSchema.extend({
linkType: zod_1.z.string().optional(),
isActive: zod_1.z.string().optional(),
orderBy: zod_1.z.string().optional(),
});
// Response Schemas
exports.ProductLinkResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.ProductLinkSchema);
exports.ProductLinkListResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.ProductLinkSchema));
//# sourceMappingURL=productLinks.js.map