UNPKG

contentful-management

Version:
20 lines (17 loc) 942 B
import { get as get$1 } from './raw.js'; const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`; const getAutomationExecutionUrl = (params) => `${getBaseUrl(params)}/${params.automationExecutionId}`; const getExecutionsByDefinitionUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions/${params.automationDefinitionId}/automation_executions`; const get = (http, params, headers) => get$1(http, getAutomationExecutionUrl(params), { headers, }); const getMany = (http, params, headers) => get$1(http, getBaseUrl(params), { headers, params: params.query, }); const getForAutomationDefinition = (http, params, headers) => get$1(http, getExecutionsByDefinitionUrl(params), { headers, params: params.query, }); export { get, getForAutomationDefinition, getMany }; //# sourceMappingURL=automation-execution.js.map