UNPKG

contentful-management

Version:
17 lines (14 loc) 589 B
import { toPlainObject, freezeSys } from 'contentful-sdk-core'; import copy from 'fast-copy'; import { wrapCollection } from '../common-utils.js'; function wrapAgentRun(_makeRequest, data) { const agentRun = toPlainObject(copy(data)); return freezeSys(agentRun); } function wrapAgentGenerateResponse(_makeRequest, data) { const response = toPlainObject(copy(data)); return freezeSys(response); } const wrapAgentRunCollection = wrapCollection(wrapAgentRun); export { wrapAgentGenerateResponse, wrapAgentRun, wrapAgentRunCollection }; //# sourceMappingURL=agent-run.js.map