@workplane/types 0.4.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +70 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -89,5 +89,74 @@ interface ServerWorkflows {
89
89
  appendInputEvent: (runId: string, input: AppendInputEventInput) => Promise<RunInputEvent>;
90
90
  markInputDelivered: (runId: string, sequence: number) => Promise<void>;
91
91
  }
92
+ type WorkplanRunStatus = "running" | "step_failed" | "completed" | "failed" | "cancelled";
93
+ interface WorkplanScheduleRecord {
94
+ id: string;
95
+ planId: string;
96
+ name: string;
97
+ cronExpression: string;
98
+ timezone: string;
99
+ inputs: Record<string, unknown>;
100
+ enabled: boolean;
101
+ lastRunAt: string | null;
102
+ nextRunAt: string | null;
103
+ createdBy: string | null;
104
+ createdAt: string;
105
+ updatedAt: string;
106
+ }
107
+ interface CreateWorkplanScheduleInput {
108
+ planId: string;
109
+ name: string;
110
+ cronExpression: string;
111
+ timezone: string;
112
+ inputs?: Record<string, unknown>;
113
+ enabled?: boolean;
114
+ nextRunAt?: string | null;
115
+ createdBy?: string;
116
+ }
117
+ interface UpdateWorkplanScheduleInput {
118
+ name?: string;
119
+ cronExpression?: string;
120
+ timezone?: string;
121
+ inputs?: Record<string, unknown>;
122
+ enabled?: boolean;
123
+ nextRunAt?: string | null;
124
+ }
125
+ interface WorkplanRunRecord {
126
+ id: string;
127
+ scheduleId: string | null;
128
+ planId: string;
129
+ planName: string;
130
+ status: WorkplanRunStatus;
131
+ idempotencyKey: string | null;
132
+ createdAt: string;
133
+ endedAt: string | null;
134
+ error: string | null;
135
+ }
136
+ interface WorkplanStepResultRecord {
137
+ id: string;
138
+ workplanRunId: string;
139
+ stepId: string;
140
+ stepName: string;
141
+ output: string | null;
142
+ exitCode: number | null;
143
+ durationMs: number | null;
144
+ metadata: Record<string, unknown> | null;
145
+ createdAt: string;
146
+ }
147
+ interface CreateWorkplanRunInput {
148
+ scheduleId?: string;
149
+ planId: string;
150
+ planName: string;
151
+ idempotencyKey?: string;
152
+ }
153
+ interface WorkplanStepResultInput {
154
+ stepId: string;
155
+ stepName: string;
156
+ output?: string;
157
+ exitCode?: number;
158
+ durationMs?: number;
159
+ metadata?: Record<string, unknown>;
160
+ }
92
161
 
93
- export type { AppendInputEventInput, ArtifactInput, ArtifactRecord, CreateTaskInput, InputEventKind, NodePollResult, NodeRecord, RunInputEvent, RunLogInput, RunLogRecord, RunRecord, RunStatus, ServerWorkflows, TaskRecord, TaskStatus };
162
+ export type { AppendInputEventInput, ArtifactInput, ArtifactRecord, CreateTaskInput, CreateWorkplanRunInput, CreateWorkplanScheduleInput, InputEventKind, NodePollResult, NodeRecord, RunInputEvent, RunLogInput, RunLogRecord, RunRecord, RunStatus, ServerWorkflows, TaskRecord, TaskStatus, UpdateWorkplanScheduleInput, WorkplanRunRecord, WorkplanRunStatus, WorkplanScheduleRecord, WorkplanStepResultInput, WorkplanStepResultRecord };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workplane/types",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",