UNPKG

contentful-management

Version:
8 lines 340 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 const wrapAgentRunCollection = wrapCollection(wrapAgentRun);