@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
24 lines • 1.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UsersCreateResponseSchema = exports.UsersCreateDataSchema = exports.UsersCreateRequestSchema = exports.UsersResponseSchema = exports.UserItemSchema = exports.UsersParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
exports.UsersParamsSchema = zod_1.z
.object({
accessLevelList: zod_1.z.string().optional(),
customerId: zod_1.z.number().optional(),
limit: zod_1.z.number().int().min(1).max(100).optional(),
offset: zod_1.z.number().int().min(0).optional(),
orderBy: zod_1.z.string().optional(),
q: zod_1.z.string().optional(),
})
.passthrough();
/** User item - passthrough for API flexibility */
exports.UserItemSchema = zod_1.z.object({}).passthrough();
exports.UsersResponseSchema = (0, schemas_1.BaseResponseSchema)(zod_1.z.array(exports.UserItemSchema));
/** Create request - passthrough for flexible input */
exports.UsersCreateRequestSchema = zod_1.z.object({}).passthrough();
/** Create response - key field only, passthrough for API flexibility */
exports.UsersCreateDataSchema = zod_1.z.object({ id: zod_1.z.number() }).passthrough();
exports.UsersCreateResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.UsersCreateDataSchema);
//# sourceMappingURL=users.js.map