@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
161 lines • 6.93 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransWebDisplayTypeDefinitionResponseSchema = exports.TransWebDisplayTypeDefaultsResponseSchema = exports.TransWebDisplayTypeResponseSchema = exports.TransUserResponseSchema = exports.TransPurchaseOrderReceiptResponseSchema = exports.TransCompanyResponseSchema = exports.TransCategoryResponseSchema = exports.EntityCustomersRefreshResponseSchema = exports.EntityContactsRefreshResponseSchema = exports.HealthCheckResponseSchema = exports.TransWebDisplayTypeDefinitionDataSchema = exports.TransWebDisplayTypeDefaultsDataSchema = exports.TransWebDisplayTypeDataSchema = exports.TransUserDataSchema = exports.TransPurchaseOrderReceiptDataSchema = exports.TransCompanyDataSchema = exports.TransCategoryDataSchema = exports.EntityRefreshDataSchema = exports.HealthCheckDataSchema = exports.TransWebDisplayTypeDefinitionParamsSchema = exports.TransWebDisplayTypeDefaultsParamsSchema = exports.TransWebDisplayTypeCreateParamsSchema = exports.TransWebDisplayTypeParamsSchema = exports.TransUserCreateParamsSchema = exports.TransUserParamsSchema = exports.TransPurchaseOrderReceiptParamsSchema = exports.TransCompanyCreateParamsSchema = exports.TransCompanyParamsSchema = exports.TransCategoryCreateParamsSchema = exports.TransCategoryParamsSchema = exports.HealthCheckParamsSchema = exports.EntityCustomersRefreshParamsSchema = exports.EntityContactsRefreshParamsSchema = void 0;
const zod_1 = require("zod");
const schemas_1 = require("../../core/schemas");
// P21 APIs Parameter Schemas
/**
* Entity contacts refresh parameters - trigger data refresh
*/
exports.EntityContactsRefreshParamsSchema = zod_1.z.object({});
/**
* Entity customers refresh parameters - trigger data refresh
*/
exports.EntityCustomersRefreshParamsSchema = zod_1.z.object({});
/**
* Health check parameters
*/
exports.HealthCheckParamsSchema = zod_1.z.object({});
/**
* Transaction category parameters for CRUD operations
*/
exports.TransCategoryParamsSchema = zod_1.z.object({
categoryUid: zod_1.z.number().describe('Category UID'),
categoryId: zod_1.z.string().optional().describe('Category ID'),
});
/**
* Transaction category create parameters
*/
exports.TransCategoryCreateParamsSchema = zod_1.z.object({});
/**
* Transaction company parameters for CRUD operations
*/
exports.TransCompanyParamsSchema = zod_1.z.object({
companyUid: zod_1.z.number().describe('Company UID'),
companyId: zod_1.z.string().optional().describe('Company ID'),
});
/**
* Transaction company create parameters
*/
exports.TransCompanyCreateParamsSchema = zod_1.z.object({});
/**
* Transaction purchase order receipt parameters
*/
exports.TransPurchaseOrderReceiptParamsSchema = zod_1.z.object({
poNo: zod_1.z.string().describe('Purchase Order Number'),
});
/**
* Transaction user parameters for CRUD operations
*/
exports.TransUserParamsSchema = zod_1.z.object({
usersUid: zod_1.z.number().describe('User UID'),
userId: zod_1.z.string().optional().describe('User ID'),
});
/**
* Transaction user create parameters
*/
exports.TransUserCreateParamsSchema = zod_1.z.object({});
/**
* Transaction web display type parameters for CRUD operations
*/
exports.TransWebDisplayTypeParamsSchema = zod_1.z.object({
webDisplayTypeUid: zod_1.z.number().describe('Web Display Type UID'),
webDisplayTypeId: zod_1.z.string().optional().describe('Web Display Type ID'),
});
/**
* Transaction web display type create parameters
*/
exports.TransWebDisplayTypeCreateParamsSchema = zod_1.z.object({});
/**
* Transaction web display type defaults parameters
*/
exports.TransWebDisplayTypeDefaultsParamsSchema = zod_1.z.object({});
/**
* Transaction web display type definition parameters
*/
exports.TransWebDisplayTypeDefinitionParamsSchema = zod_1.z.object({});
// Data Schemas (flexible for API responses without schemas)
/**
* Health check response data
*/
exports.HealthCheckDataSchema = zod_1.z.unknown().describe('Health check status information');
/**
* Entity refresh response data
*/
exports.EntityRefreshDataSchema = zod_1.z.unknown().describe('Entity refresh operation result');
/**
* Transaction category data
*/
exports.TransCategoryDataSchema = zod_1.z.unknown().describe('Transaction category information');
/**
* Transaction company data
*/
exports.TransCompanyDataSchema = zod_1.z.unknown().describe('Transaction company information');
/**
* Transaction purchase order receipt data
*/
exports.TransPurchaseOrderReceiptDataSchema = zod_1.z
.unknown()
.describe('Purchase order receipt information');
/**
* Transaction user data
*/
exports.TransUserDataSchema = zod_1.z.unknown().describe('Transaction user information');
/**
* Transaction web display type data
*/
exports.TransWebDisplayTypeDataSchema = zod_1.z.unknown().describe('Web display type information');
/**
* Transaction web display type defaults data
*/
exports.TransWebDisplayTypeDefaultsDataSchema = zod_1.z
.unknown()
.describe('Web display type default values');
/**
* Transaction web display type definition data
*/
exports.TransWebDisplayTypeDefinitionDataSchema = zod_1.z
.unknown()
.describe('Web display type service definition');
// Response Schemas using BaseResponseSchema
/**
* Health check response
*/
exports.HealthCheckResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.HealthCheckDataSchema);
/**
* Entity contacts refresh response
*/
exports.EntityContactsRefreshResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.EntityRefreshDataSchema);
/**
* Entity customers refresh response
*/
exports.EntityCustomersRefreshResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.EntityRefreshDataSchema);
/**
* Transaction category response
*/
exports.TransCategoryResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransCategoryDataSchema);
/**
* Transaction company response
*/
exports.TransCompanyResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransCompanyDataSchema);
/**
* Transaction purchase order receipt response
*/
exports.TransPurchaseOrderReceiptResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransPurchaseOrderReceiptDataSchema);
/**
* Transaction user response
*/
exports.TransUserResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransUserDataSchema);
/**
* Transaction web display type response
*/
exports.TransWebDisplayTypeResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransWebDisplayTypeDataSchema);
/**
* Transaction web display type defaults response
*/
exports.TransWebDisplayTypeDefaultsResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransWebDisplayTypeDefaultsDataSchema);
/**
* Transaction web display type definition response
*/
exports.TransWebDisplayTypeDefinitionResponseSchema = (0, schemas_1.BaseResponseSchema)(exports.TransWebDisplayTypeDefinitionDataSchema);
//# sourceMappingURL=schemas.js.map