import type { AxiosInstance } from 'contentful-sdk-core' ; import { GetBulkActionParams , GetSpaceEnvironmentParams } from '../../../common-types' ; import { BulkActionProps , BulkActionPublishPayload , BulkActionUnpublishPayload , BulkActionValidatePayload , } from '../../../entities/bulk-action' ; import { RestEndpoint } from '../types' ; import * as raw from './raw' ; export const get = ( http , params ) => { return raw . get ( http , `/spaces/${ params . spaceId }/environments/${ params . environmentId }/bulk_actions/actions/${ params . bulkActionId }` ) ; } ; export const publish = ( http , params , payload ) : Promise < BulkActionProps < BulkActionPublishPayload > > => { return raw . post ( http , `/spaces/${ params . spaceId }/environments/${ params . environmentId }/bulk_actions/publish` , payload ) ; } ; export const unpublish = ( http , params , payload ) : Promise < BulkActionProps < BulkActionUnpublishPayload > > => { return raw . post ( http , `/spaces/${ params . spaceId }/environments/${ params . environmentId }/bulk_actions/unpublish` , payload ) ; } ; export const validate = ( http , params , payload ) : Promise < BulkActionProps < BulkActionValidatePayload > > => { return raw . post ( http , `/spaces/${ params . spaceId }/environments/${ params . environmentId }/bulk_actions/validate` , payload ) ; } ;