workflow-common 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow-common",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "this is shared library project for bolt ui and backend",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -11,6 +11,7 @@ export type WorkflowExecution = {
11
11
  phases?: ExecutionPhase[];
12
12
  browser: string;
13
13
  videoUrl: string | null;
14
+ scheduleId: string | null;
14
15
  };
15
16
  export type ExecutionPhase = {
16
17
  id: string;
@@ -16,13 +16,14 @@ export interface Environment {
16
16
  browser?: Browser;
17
17
  page?: Page;
18
18
  browserType?: string;
19
+ launchAllowed: boolean;
19
20
  }
20
21
  export interface ExecutionEnvironmentType<T extends Workflowtask> {
21
22
  getInput(name: T['inputs'][number]['name']): string;
22
- isVariableSource(name: T['inputs'][number]['name']): boolean;
23
23
  setOutput(name: T['outputs'][number]['name'], value: string): void;
24
24
  getBrowser(): Browser | undefined;
25
25
  setBrowser(browser: Browser): void;
26
+ isLaunchedAllowed(): boolean;
26
27
  getPage(): Page | undefined;
27
28
  setPage(page: Page): void;
28
29
  setScreenshot(screenshot: string): void;
package/types/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './task';
8
8
  export * from './workflow';
9
9
  export * from './workflowTasks';
10
10
  export * from './suites';
11
+ export * from './sendgrid';
package/types/index.js CHANGED
@@ -24,3 +24,4 @@ __exportStar(require("./task"), exports);
24
24
  __exportStar(require("./workflow"), exports);
25
25
  __exportStar(require("./workflowTasks"), exports);
26
26
  __exportStar(require("./suites"), exports);
27
+ __exportStar(require("./sendgrid"), exports);
@@ -0,0 +1,23 @@
1
+ export interface WorkflowEmailData {
2
+ workflowName: string;
3
+ executionId: string;
4
+ startedAt: string;
5
+ nextRunAt: string;
6
+ timezone: string;
7
+ time: string;
8
+ endedAt: string;
9
+ scheduleStatus: string;
10
+ scheduleFrequency: string;
11
+ logsUrl?: string;
12
+ reportNo: string;
13
+ generatedAt: string;
14
+ isSuccess: boolean;
15
+ executions: WorkflowItems[];
16
+ }
17
+ export interface WorkflowItems {
18
+ testName: string;
19
+ status: string;
20
+ executionId: string;
21
+ completedAt: string;
22
+ duration?: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });