contentful-management
Version:
Client for Contentful's Content Management API
12 lines • 482 B
JavaScript
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);