UNPKG

contentful-management

Version:
22 lines (19 loc) 1.23 kB
import { toPlainObject, freezeSys } from 'contentful-sdk-core'; import copy from 'fast-copy'; import { wrapCursorPaginatedCollection } from '../common-utils.js'; var EnvironmentTemplateInstallationStatuses; (function (EnvironmentTemplateInstallationStatuses) { EnvironmentTemplateInstallationStatuses["created"] = "created"; EnvironmentTemplateInstallationStatuses["inProgress"] = "inProgress"; EnvironmentTemplateInstallationStatuses["failed"] = "failed"; EnvironmentTemplateInstallationStatuses["succeeded"] = "succeeded"; EnvironmentTemplateInstallationStatuses["disconnected"] = "disconnected"; EnvironmentTemplateInstallationStatuses["inRetry"] = "inRetry"; })(EnvironmentTemplateInstallationStatuses || (EnvironmentTemplateInstallationStatuses = {})); function wrapEnvironmentTemplateInstallation(makeRequest, data) { const environmentTemplate = toPlainObject(copy(data)); return freezeSys(environmentTemplate); } const wrapEnvironmentTemplateInstallationCollection = wrapCursorPaginatedCollection(wrapEnvironmentTemplateInstallation); export { wrapEnvironmentTemplateInstallation, wrapEnvironmentTemplateInstallationCollection }; //# sourceMappingURL=environment-template-installation.js.map