@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
73 lines • 5.91 kB
JavaScript
;
/**
* Legacy API Service
* @description Client library for Legacy microservice API endpoints
*
* The Legacy microservice provides access to legacy data structures and systems
* within the Augur platform, serving as a bridge between modern applications
* and older data schemas.
*
* @example
* ```typescript
* import { LegacyClient } from '@augur/api-client/services/legacy';
* import { HTTPClient } from '@augur/api-client/core';
*
* const http = new HTTPClient('legacy', {
* siteId: 'your-site-id',
* bearerToken: 'your-token'
* });
* const legacy = new LegacyClient(http);
*
* // State management
* const states = await legacy.states.list({ twoLetterCode: 'CA' });
* const newState = await legacy.states.create({
* two_letter_code: 'TX',
* state_name: 'Texas',
* tax_rate: 0.0625
* });
*
* // Inventory operations
* const alsoBought = await legacy.inventory.getAlsoBought(12345);
* const tags = await legacy.inventory.tags.list(12345);
* const descriptions = await legacy.inventory.webDescriptions.list(12345);
*
* // Category and order operations
* const category = await legacy.categories.get(67890);
* const resetResult = await legacy.orders.reset(98765);
* ```
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthCheckResponseSchema = exports.DeleteResponseSchema = exports.OrderResetApiResponseSchema = exports.ItemCategoryResponseSchema = exports.InvMastWebDescResponseSchema = exports.InvMastWebDescListResponseSchema = exports.InvMastTagResponseSchema = exports.InvMastTagListResponseSchema = exports.AlsoBoughtListResponseSchema = exports.UpdateInvMastWebDescRequestSchema = exports.CreateInvMastWebDescRequestSchema = exports.InvMastWebDescSchema = exports.UpdateInvMastTagRequestSchema = exports.CreateInvMastTagRequestSchema = exports.InvMastTagSchema = exports.AlsoBoughtProductSchema = exports.StateResponseSchema = exports.StateListResponseSchema = exports.UpdateStateRequestSchema = exports.CreateStateRequestSchema = exports.StateGetParamsSchema = exports.StateListParamsSchema = exports.StateSchema = exports.LegacyClient = void 0;
// Export the client class
var client_1 = require("./client");
Object.defineProperty(exports, "LegacyClient", { enumerable: true, get: function () { return client_1.LegacyClient; } });
// Export schemas for advanced use cases
var schemas_1 = require("./schemas");
// State schemas
Object.defineProperty(exports, "StateSchema", { enumerable: true, get: function () { return schemas_1.StateSchema; } });
Object.defineProperty(exports, "StateListParamsSchema", { enumerable: true, get: function () { return schemas_1.StateListParamsSchema; } });
Object.defineProperty(exports, "StateGetParamsSchema", { enumerable: true, get: function () { return schemas_1.StateGetParamsSchema; } });
Object.defineProperty(exports, "CreateStateRequestSchema", { enumerable: true, get: function () { return schemas_1.CreateStateRequestSchema; } });
Object.defineProperty(exports, "UpdateStateRequestSchema", { enumerable: true, get: function () { return schemas_1.UpdateStateRequestSchema; } });
Object.defineProperty(exports, "StateListResponseSchema", { enumerable: true, get: function () { return schemas_1.StateListResponseSchema; } });
Object.defineProperty(exports, "StateResponseSchema", { enumerable: true, get: function () { return schemas_1.StateResponseSchema; } });
// Inventory schemas
Object.defineProperty(exports, "AlsoBoughtProductSchema", { enumerable: true, get: function () { return schemas_1.AlsoBoughtProductSchema; } });
Object.defineProperty(exports, "InvMastTagSchema", { enumerable: true, get: function () { return schemas_1.InvMastTagSchema; } });
Object.defineProperty(exports, "CreateInvMastTagRequestSchema", { enumerable: true, get: function () { return schemas_1.CreateInvMastTagRequestSchema; } });
Object.defineProperty(exports, "UpdateInvMastTagRequestSchema", { enumerable: true, get: function () { return schemas_1.UpdateInvMastTagRequestSchema; } });
Object.defineProperty(exports, "InvMastWebDescSchema", { enumerable: true, get: function () { return schemas_1.InvMastWebDescSchema; } });
Object.defineProperty(exports, "CreateInvMastWebDescRequestSchema", { enumerable: true, get: function () { return schemas_1.CreateInvMastWebDescRequestSchema; } });
Object.defineProperty(exports, "UpdateInvMastWebDescRequestSchema", { enumerable: true, get: function () { return schemas_1.UpdateInvMastWebDescRequestSchema; } });
// Response schemas
Object.defineProperty(exports, "AlsoBoughtListResponseSchema", { enumerable: true, get: function () { return schemas_1.AlsoBoughtListResponseSchema; } });
Object.defineProperty(exports, "InvMastTagListResponseSchema", { enumerable: true, get: function () { return schemas_1.InvMastTagListResponseSchema; } });
Object.defineProperty(exports, "InvMastTagResponseSchema", { enumerable: true, get: function () { return schemas_1.InvMastTagResponseSchema; } });
Object.defineProperty(exports, "InvMastWebDescListResponseSchema", { enumerable: true, get: function () { return schemas_1.InvMastWebDescListResponseSchema; } });
Object.defineProperty(exports, "InvMastWebDescResponseSchema", { enumerable: true, get: function () { return schemas_1.InvMastWebDescResponseSchema; } });
Object.defineProperty(exports, "ItemCategoryResponseSchema", { enumerable: true, get: function () { return schemas_1.ItemCategoryResponseSchema; } });
Object.defineProperty(exports, "OrderResetApiResponseSchema", { enumerable: true, get: function () { return schemas_1.OrderResetApiResponseSchema; } });
Object.defineProperty(exports, "DeleteResponseSchema", { enumerable: true, get: function () { return schemas_1.DeleteResponseSchema; } });
// Health check
Object.defineProperty(exports, "HealthCheckResponseSchema", { enumerable: true, get: function () { return schemas_1.HealthCheckResponseSchema; } });
//# sourceMappingURL=index.js.map