UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

41 lines 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createInvMastLinksResource = createInvMastLinksResource; exports.createInvMastLinksDataResource = createInvMastLinksDataResource; const schemas_1 = require("../schemas"); /** * Creates the invMastLinks resource methods * OpenAPI Path: /inv-mast-links/{invMastUid} → invMastLinks.list * @description Direct path mapping for inventory master links */ function createInvMastLinksResource(executeRequest) { return { /** * List inventory master links * @description Get document links for an inventory master item * @fullPath api.items.invMastLinks.list * @service items * @domain inventory-management * @discoverable true */ list: async (invMastUid) => { return executeRequest({ method: 'GET', path: `/inv-mast-links/${invMastUid}`, responseSchema: schemas_1.InvMastLinksResponseSchema, }); }, }; } /** * Creates the invMastLinksData resource methods (data-only versions) */ function createInvMastLinksDataResource(invMastLinks) { return { list: async (invMastUid) => { const response = await invMastLinks.list(invMastUid); return response.data; }, }; } //# sourceMappingURL=inv-mast-links.js.map