@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
37 lines • 1.21 kB
JavaScript
import { InvMastLinksResponseSchema } from '../schemas';
/**
* Creates the invMastLinks resource methods
* OpenAPI Path: /inv-mast-links/{invMastUid} → invMastLinks.list
* @description Direct path mapping for inventory master links
*/
export 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: InvMastLinksResponseSchema,
});
},
};
}
/**
* Creates the invMastLinksData resource methods (data-only versions)
*/
export function createInvMastLinksDataResource(invMastLinks) {
return {
list: async (invMastUid) => {
const response = await invMastLinks.list(invMastUid);
return response.data;
},
};
}
//# sourceMappingURL=inv-mast-links.js.map