UNPKG

contentful-management

Version:
12 lines 482 B
import { freezeSys, toPlainObject } from 'contentful-sdk-core'; import copy from 'fast-copy'; import { wrapCollection } from '../common-utils'; export function wrapAgentRun(_makeRequest, data) { const agentRun = toPlainObject(copy(data)); return freezeSys(agentRun); } export function wrapAgentGenerateResponse(_makeRequest, data) { const response = toPlainObject(copy(data)); return freezeSys(response); } export const wrapAgentRunCollection = wrapCollection(wrapAgentRun);