// React App
import executor from '@firecamp/rest-executor/dist/esm';
// Node.js
import executor from '@firecamp/rest-executor/dist/cjs';
// Run pre script
const { request, environment } = await executor.preScript(request, variables);
// Run request
const response = await executor.send(request);
// Set cookies
// Run post script
await executor.postScript(postScript: string, response: IRestResponse, variables: TPlainObject);
// Run test script
await executor.testScript(request: IRest, response: IRestResponse, variables: TPlainObject);