workflow-common 1.1.6 → 1.1.7
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 +1 -1
- package/types/sendgrid.d.ts +1 -1
- package/types/suites.d.ts +16 -1
- package/types/workflow.d.ts +26 -0
package/package.json
CHANGED
package/types/sendgrid.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export interface WorkflowEmailData {
|
|
|
9
9
|
endedAt: string;
|
|
10
10
|
scheduleStatus: string;
|
|
11
11
|
scheduleFrequency: string;
|
|
12
|
-
logsUrl?: string;
|
|
13
12
|
reportNo: string;
|
|
14
13
|
generatedAt: string;
|
|
15
14
|
isSuccess: boolean;
|
|
@@ -21,4 +20,5 @@ export interface WorkflowItems {
|
|
|
21
20
|
executionId: string;
|
|
22
21
|
completedAt: string;
|
|
23
22
|
duration?: string;
|
|
23
|
+
logsUrl?: string;
|
|
24
24
|
}
|
package/types/suites.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValue, Timestamp } from 'firebase/firestore';
|
|
2
|
+
import { Scheduler, WorkflowExecutionStatus, WorkflowExecutionTrigger } from './workflow';
|
|
2
3
|
export type SuiteExecution = {
|
|
3
4
|
id: string;
|
|
4
5
|
status: WorkflowExecutionStatus;
|
|
@@ -10,3 +11,17 @@ export type SuiteExecution = {
|
|
|
10
11
|
executionIds: string[];
|
|
11
12
|
suiteId: string;
|
|
12
13
|
};
|
|
14
|
+
export interface SuiteData {
|
|
15
|
+
id?: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
executionType: 'sequential' | 'parallel';
|
|
19
|
+
scheduler?: Scheduler;
|
|
20
|
+
applicationId: string;
|
|
21
|
+
companyId?: string | null;
|
|
22
|
+
createdBy?: string | null;
|
|
23
|
+
createdAt?: Timestamp | FieldValue | null;
|
|
24
|
+
updatedAt?: Timestamp | FieldValue | null;
|
|
25
|
+
flowsId?: string[];
|
|
26
|
+
updatedBy?: string | null;
|
|
27
|
+
}
|
package/types/workflow.d.ts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { TaskParam, TaskType } from './task';
|
|
2
2
|
import { AppNode } from './appNode';
|
|
3
|
+
import { FieldValue, Timestamp } from 'firebase/firestore';
|
|
4
|
+
export type Repeat = 'once' | 'daily' | 'weekly' | 'monthly';
|
|
3
5
|
export declare enum WorkflowStatus {
|
|
4
6
|
DRAFT = "DRAFT",
|
|
5
7
|
PUBLISHED = "PUBLISHED"
|
|
6
8
|
}
|
|
9
|
+
export interface WorkflowData {
|
|
10
|
+
id: string;
|
|
11
|
+
applicationId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
scheduler?: {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
dateTime: Timestamp | FieldValue | null;
|
|
17
|
+
repeat: string;
|
|
18
|
+
browser?: string;
|
|
19
|
+
};
|
|
20
|
+
status: string;
|
|
21
|
+
definition: string;
|
|
22
|
+
createdBy: string;
|
|
23
|
+
updatedBy: string;
|
|
24
|
+
createdAt: Timestamp | FieldValue | null;
|
|
25
|
+
updatedAt: Timestamp | FieldValue | null;
|
|
26
|
+
}
|
|
7
27
|
export type Workflowtask = {
|
|
8
28
|
label: string;
|
|
9
29
|
type: TaskType;
|
|
@@ -39,3 +59,9 @@ export declare enum ScheduleExecutionStatus {
|
|
|
39
59
|
COMPLETED = "COMPLETED",
|
|
40
60
|
FAILED = "FAILED"
|
|
41
61
|
}
|
|
62
|
+
export type Scheduler = {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
dateTime: Timestamp | null;
|
|
65
|
+
repeat: Repeat;
|
|
66
|
+
browser?: string;
|
|
67
|
+
};
|