@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
35 lines • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UsersIdDocResponseSchema = exports.UsersIdDocItemSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../../core/schemas");
/**
* Schema for /users/{id}/doc GET endpoint
* Returns enhanced user document with profile values and customer information
* Updated to match current API response format
*/
exports.UsersIdDocItemSchema = zod_1.z
.object({
id: zod_1.z.number(),
name: zod_1.z.string(),
username: zod_1.z.string(),
email: zod_1.z.string(),
block: zod_1.z.number(),
registerDate: zod_1.z.string(),
lastvisitDate: zod_1.z.string().nullable(),
lastResetTime: zod_1.z.string().nullable(),
profileValues: zod_1.z.record(zod_1.z.unknown()).optional(),
customerId: zod_1.z.string().optional(),
contactId: zod_1.z.string().optional(),
timezone: zod_1.z.string().optional(),
language: zod_1.z.string().optional(),
groups: zod_1.z
.array(zod_1.z.object({
id: zod_1.z.number(),
title: zod_1.z.string(),
}))
.optional(),
})
.passthrough();
exports.UsersIdDocResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.UsersIdDocItemSchema);
//# sourceMappingURL=usersIdDoc.js.map