Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions app/client/src/ce/constants/WorkflowConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ import type { EvaluationVersion } from "constants/EvalConstants";

type ID = string;

export interface WorkflowScheduleSpecInterface {
cronExpressions: Array<string>;
timeZoneName: string;
}

export enum WorkflowScheduleState {
ACTIVE = "ACTIVE",
INACTIVE = "INACTIVE",
}

export interface WorkflowScheduleInterface {
scheduleSpec: WorkflowScheduleSpecInterface;
triggerData: Record<string, unknown>;
name: string;
state: WorkflowScheduleState;
}

// Type for the workflow object.
export interface Workflow {
id: ID;
Expand All @@ -20,6 +37,7 @@ export interface Workflow {
// PR for reference: https://github.com/appsmithorg/appsmith/pull/8796
evaluationVersion: EvaluationVersion;
token?: string;
schedules?: Record<string, WorkflowScheduleInterface>;
}

export type WorkflowMetadata = Workflow;
1 change: 1 addition & 0 deletions app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export const FORK_APP = () => `Fork app`;
export const SIGN_IN = () => `Sign in`;
export const SHARE_APP = () => `Share app`;
export const ALL_APPS = () => `All apps`;
export const KNOW_MORE = () => "Know more";

export const EDITOR_HEADER = {
saving: () => "Saving",
Expand Down