@cargo-ai/api 1.0.1
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/build/src/api/ai/index.d.ts +78 -0
- package/build/src/api/ai/index.d.ts.map +1 -0
- package/build/src/api/ai/index.js +530 -0
- package/build/src/api/billing/index.d.ts +25 -0
- package/build/src/api/billing/index.d.ts.map +1 -0
- package/build/src/api/billing/index.js +155 -0
- package/build/src/api/connection/index.d.ts +28 -0
- package/build/src/api/connection/index.d.ts.map +1 -0
- package/build/src/api/connection/index.js +172 -0
- package/build/src/api/expression/index.d.ts +26 -0
- package/build/src/api/expression/index.d.ts.map +1 -0
- package/build/src/api/expression/index.js +115 -0
- package/build/src/api/index.d.ts +72 -0
- package/build/src/api/index.d.ts.map +1 -0
- package/build/src/api/index.js +51 -0
- package/build/src/api/orchestration/index.d.ts +66 -0
- package/build/src/api/orchestration/index.d.ts.map +1 -0
- package/build/src/api/orchestration/index.js +625 -0
- package/build/src/api/revenueOrganization/index.d.ts +37 -0
- package/build/src/api/revenueOrganization/index.d.ts.map +1 -0
- package/build/src/api/revenueOrganization/index.js +241 -0
- package/build/src/api/segmentation/index.d.ts +28 -0
- package/build/src/api/segmentation/index.d.ts.map +1 -0
- package/build/src/api/segmentation/index.js +188 -0
- package/build/src/api/storage/index.d.ts +45 -0
- package/build/src/api/storage/index.d.ts.map +1 -0
- package/build/src/api/storage/index.js +402 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts +29 -0
- package/build/src/api/systemOfRecordIntegration/index.d.ts.map +1 -0
- package/build/src/api/systemOfRecordIntegration/index.js +151 -0
- package/build/src/api/userManagement/index.d.ts +14 -0
- package/build/src/api/userManagement/index.d.ts.map +1 -0
- package/build/src/api/userManagement/index.js +33 -0
- package/build/src/api/workspaceManagement/index.d.ts +43 -0
- package/build/src/api/workspaceManagement/index.d.ts.map +1 -0
- package/build/src/api/workspaceManagement/index.js +283 -0
- package/build/src/client.d.ts +5 -0
- package/build/src/client.d.ts.map +1 -0
- package/build/src/client.js +24 -0
- package/build/src/fetcher/client.d.ts +7 -0
- package/build/src/fetcher/client.d.ts.map +1 -0
- package/build/src/fetcher/client.js +9 -0
- package/build/src/fetcher/error.d.ts +101 -0
- package/build/src/fetcher/error.d.ts.map +1 -0
- package/build/src/fetcher/error.js +184 -0
- package/build/src/fetcher/fetcher.d.ts +12 -0
- package/build/src/fetcher/fetcher.d.ts.map +1 -0
- package/build/src/fetcher/fetcher.js +1 -0
- package/build/src/fetcher/index.d.ts +34 -0
- package/build/src/fetcher/index.d.ts.map +1 -0
- package/build/src/fetcher/index.js +78 -0
- package/build/src/index.d.ts +5 -0
- package/build/src/index.d.ts.map +1 -0
- package/build/src/index.js +3 -0
- package/build/src/store/ai.d.ts +481 -0
- package/build/src/store/ai.d.ts.map +1 -0
- package/build/src/store/ai.js +112 -0
- package/build/src/store/billing.d.ts +140 -0
- package/build/src/store/billing.d.ts.map +1 -0
- package/build/src/store/billing.js +62 -0
- package/build/src/store/connection.d.ts +183 -0
- package/build/src/store/connection.d.ts.map +1 -0
- package/build/src/store/connection.js +88 -0
- package/build/src/store/expression.d.ts +112 -0
- package/build/src/store/expression.d.ts.map +1 -0
- package/build/src/store/expression.js +27 -0
- package/build/src/store/index.d.ts +14 -0
- package/build/src/store/index.d.ts.map +1 -0
- package/build/src/store/index.js +25 -0
- package/build/src/store/orchestration.d.ts +942 -0
- package/build/src/store/orchestration.d.ts.map +1 -0
- package/build/src/store/orchestration.js +217 -0
- package/build/src/store/revenueOrganization.d.ts +201 -0
- package/build/src/store/revenueOrganization.d.ts.map +1 -0
- package/build/src/store/revenueOrganization.js +68 -0
- package/build/src/store/segmentation.d.ts +566 -0
- package/build/src/store/segmentation.d.ts.map +1 -0
- package/build/src/store/segmentation.js +103 -0
- package/build/src/store/storage.d.ts +1096 -0
- package/build/src/store/storage.d.ts.map +1 -0
- package/build/src/store/storage.js +174 -0
- package/build/src/store/systemOfRecordIntegration.d.ts +122 -0
- package/build/src/store/systemOfRecordIntegration.d.ts.map +1 -0
- package/build/src/store/systemOfRecordIntegration.js +53 -0
- package/build/src/store/userManagement.d.ts +34 -0
- package/build/src/store/userManagement.d.ts.map +1 -0
- package/build/src/store/userManagement.js +22 -0
- package/build/src/store/workspaceManagement.d.ts +215 -0
- package/build/src/store/workspaceManagement.d.ts.map +1 -0
- package/build/src/store/workspaceManagement.js +103 -0
- package/build/src/types.d.ts +6 -0
- package/build/src/types.d.ts.map +1 -0
- package/build/src/types.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,942 @@
|
|
|
1
|
+
import { type OrchestrationTypes } from "cargo-domain-types";
|
|
2
|
+
import type { EitherOr } from "cargo-utils";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import type { StateCreator } from "zustand";
|
|
5
|
+
import type { BackendToFrontend, DateToString } from "../types.js";
|
|
6
|
+
import type { Ai } from "./ai.js";
|
|
7
|
+
import type { Segmentation } from "./segmentation.js";
|
|
8
|
+
import type { Storage } from "./storage.js";
|
|
9
|
+
type GlobalRecord<K extends keyof any, T> = Record<K, T>;
|
|
10
|
+
export declare namespace Orchestration {
|
|
11
|
+
type Play = BackendToFrontend<OrchestrationTypes.Play>;
|
|
12
|
+
type PlayRunCreationRule = BackendToFrontend<OrchestrationTypes.PlayRunCreationRule>;
|
|
13
|
+
type PlayHealthAlertAction = BackendToFrontend<OrchestrationTypes.PlayHealthAlertAction>;
|
|
14
|
+
type PlaySchedule = BackendToFrontend<OrchestrationTypes.PlaySchedule>;
|
|
15
|
+
type PlayScheduleCron = BackendToFrontend<OrchestrationTypes.PlayScheduleCron>;
|
|
16
|
+
type PlayScheduleDbt = BackendToFrontend<OrchestrationTypes.PlayScheduleDbt>;
|
|
17
|
+
type PlayScheduleRealtime = BackendToFrontend<OrchestrationTypes.PlayScheduleRealtime>;
|
|
18
|
+
type PlayScheduleDependency = BackendToFrontend<OrchestrationTypes.PlayScheduleDependency>;
|
|
19
|
+
type PlayScheduleWatch = BackendToFrontend<OrchestrationTypes.PlayScheduleWatch>;
|
|
20
|
+
type PlayTemplate = BackendToFrontend<OrchestrationTypes.PlayTemplate>;
|
|
21
|
+
type Tool = BackendToFrontend<OrchestrationTypes.Tool>;
|
|
22
|
+
type ToolTemplate = BackendToFrontend<OrchestrationTypes.ToolTemplate>;
|
|
23
|
+
type ToolIcon = BackendToFrontend<OrchestrationTypes.ToolIcon>;
|
|
24
|
+
type Workflow = BackendToFrontend<OrchestrationTypes.Workflow>;
|
|
25
|
+
type WorkflowTemplate = BackendToFrontend<OrchestrationTypes.WorkflowTemplate>;
|
|
26
|
+
type WorkflowNode = BackendToFrontend<OrchestrationTypes.WorkflowNode>;
|
|
27
|
+
type Node = BackendToFrontend<OrchestrationTypes.Node>;
|
|
28
|
+
type RunMetric = BackendToFrontend<OrchestrationTypes.RunMetric>;
|
|
29
|
+
type RecordMetric = BackendToFrontend<OrchestrationTypes.RecordMetric>;
|
|
30
|
+
type ReleaseStatus = BackendToFrontend<OrchestrationTypes.ReleaseStatus>;
|
|
31
|
+
type Release = BackendToFrontend<OrchestrationTypes.Release>;
|
|
32
|
+
type ReleaseTestRecord = BackendToFrontend<OrchestrationTypes.ReleaseTestRecord>;
|
|
33
|
+
type ReleaseFormField = BackendToFrontend<OrchestrationTypes.ReleaseFormField>;
|
|
34
|
+
type BatchStatus = BackendToFrontend<OrchestrationTypes.BatchStatus>;
|
|
35
|
+
type Batch = BackendToFrontend<OrchestrationTypes.Batch>;
|
|
36
|
+
type BatchData = BackendToFrontend<OrchestrationTypes.BatchData>;
|
|
37
|
+
type BatchDataRunsReset = BackendToFrontend<OrchestrationTypes.BatchDataRunsReset>;
|
|
38
|
+
type BatchDataRunsFilter = BackendToFrontend<OrchestrationTypes.BatchDataRunsFilter>;
|
|
39
|
+
type RunStatus = BackendToFrontend<OrchestrationTypes.RunStatus>;
|
|
40
|
+
type RecordStatus = BackendToFrontend<OrchestrationTypes.RecordStatus>;
|
|
41
|
+
type Execution = BackendToFrontend<OrchestrationTypes.Execution>;
|
|
42
|
+
type ExecutionStatus = BackendToFrontend<OrchestrationTypes.ExecutionStatus>;
|
|
43
|
+
type Run = BackendToFrontend<OrchestrationTypes.Run>;
|
|
44
|
+
type Record = BackendToFrontend<OrchestrationTypes.Record>;
|
|
45
|
+
type ExecutionsFilter = BackendToFrontend<OrchestrationTypes.ExecutionsFilter>;
|
|
46
|
+
type ExecutionsFilterCondition = BackendToFrontend<OrchestrationTypes.ExecutionsFilterCondition>;
|
|
47
|
+
type ExecutionsFilterGroup = BackendToFrontend<OrchestrationTypes.ExecutionsFilterGroup>;
|
|
48
|
+
type Template = BackendToFrontend<OrchestrationTypes.Template>;
|
|
49
|
+
type TemplateCategory = BackendToFrontend<OrchestrationTypes.TemplateCategory>;
|
|
50
|
+
type TemplateNode = BackendToFrontend<OrchestrationTypes.TemplateNode>;
|
|
51
|
+
const reshapeReleaseFormFieldsToSchemas: (formFields: OrchestrationTypes.ReleaseFormField[]) => {
|
|
52
|
+
jsonSchema: import("jsonschema").Schema;
|
|
53
|
+
uiSchema: globalThis.Record<string, unknown>;
|
|
54
|
+
};
|
|
55
|
+
const zodNode: z.ZodIntersection<z.ZodObject<{
|
|
56
|
+
uuid: z.ZodString;
|
|
57
|
+
slug: z.ZodString;
|
|
58
|
+
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
maximumAttempts: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
initialInterval: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
backoffCoefficient: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
childrenUuids: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
66
|
+
fallbackChildUuid: z.ZodOptional<z.ZodString>;
|
|
67
|
+
fallbackOnFailure: z.ZodBoolean;
|
|
68
|
+
position: z.ZodObject<{
|
|
69
|
+
x: z.ZodNumber;
|
|
70
|
+
y: z.ZodNumber;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
73
|
+
kind: z.ZodEnum<{
|
|
74
|
+
native: "native";
|
|
75
|
+
}>;
|
|
76
|
+
actionSlug: z.ZodString;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
kind: z.ZodEnum<{
|
|
79
|
+
connector: "connector";
|
|
80
|
+
}>;
|
|
81
|
+
actionSlug: z.ZodString;
|
|
82
|
+
integrationSlug: z.ZodString;
|
|
83
|
+
connectorUuid: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
kind: z.ZodEnum<{
|
|
86
|
+
tool: "tool";
|
|
87
|
+
}>;
|
|
88
|
+
toolUuid: z.ZodString;
|
|
89
|
+
releaseUuid: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodEnum<{
|
|
92
|
+
agent: "agent";
|
|
93
|
+
}>;
|
|
94
|
+
agentUuid: z.ZodString;
|
|
95
|
+
releaseUuid: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>]>>;
|
|
97
|
+
namespace Api {
|
|
98
|
+
export type ListWorkflowsResult = {
|
|
99
|
+
workflows: Workflow[];
|
|
100
|
+
};
|
|
101
|
+
export type CreatePlayPayload = DateToString<{
|
|
102
|
+
name: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
modelUuid: string;
|
|
105
|
+
filter?: Segmentation.Filter;
|
|
106
|
+
sort?: Segmentation.Sort;
|
|
107
|
+
limit?: number;
|
|
108
|
+
trackingColumnSlugs?: string[];
|
|
109
|
+
changeKinds: Segmentation.ChangeKind[];
|
|
110
|
+
runCreationRule: PlayRunCreationRule;
|
|
111
|
+
schedule?: Omit<PlayScheduleCron, "temporalScheduleWorkflowId"> | PlayScheduleDbt | PlayScheduleRealtime | PlayScheduleDependency | Omit<PlayScheduleWatch, "temporalScheduleWorkflowId" | "meta">;
|
|
112
|
+
folderUuid?: string;
|
|
113
|
+
}>;
|
|
114
|
+
export type CreatePlayResult = {
|
|
115
|
+
play: Play;
|
|
116
|
+
};
|
|
117
|
+
export const zodCreatePlayErrorReason: z.ZodEnum<{
|
|
118
|
+
folderNotFound: "folderNotFound";
|
|
119
|
+
modelNotFound: "modelNotFound";
|
|
120
|
+
datasetNotFound: "datasetNotFound";
|
|
121
|
+
connectorNotFound: "connectorNotFound";
|
|
122
|
+
integrationNotFound: "integrationNotFound";
|
|
123
|
+
datasetNotCompatible: "datasetNotCompatible";
|
|
124
|
+
integrationNotCompatible: "integrationNotCompatible";
|
|
125
|
+
failedToSchedule: "failedToSchedule";
|
|
126
|
+
invalidFilter: "invalidFilter";
|
|
127
|
+
failedToCreateSegment: "failedToCreateSegment";
|
|
128
|
+
}>;
|
|
129
|
+
export type ListPlaysResult = {
|
|
130
|
+
plays: Play[];
|
|
131
|
+
};
|
|
132
|
+
export type UpdatePlayPayload = DateToString<{
|
|
133
|
+
uuid: string;
|
|
134
|
+
description?: string | null;
|
|
135
|
+
isEnabled?: boolean;
|
|
136
|
+
name?: string;
|
|
137
|
+
filter?: Segmentation.Filter;
|
|
138
|
+
sort?: Segmentation.Sort | null;
|
|
139
|
+
limit?: number | null;
|
|
140
|
+
trackingColumnSlugs?: string[] | null;
|
|
141
|
+
changeKinds?: Segmentation.ChangeKind[];
|
|
142
|
+
runCreationRule?: PlayRunCreationRule;
|
|
143
|
+
healthThreshold?: number;
|
|
144
|
+
healthAlertActions?: PlayHealthAlertAction[];
|
|
145
|
+
schedule?: Omit<PlayScheduleCron, "temporalScheduleWorkflowId"> | PlayScheduleDbt | PlayScheduleRealtime | PlayScheduleDependency | Omit<PlayScheduleWatch, "temporalScheduleWorkflowId" | "meta"> | null;
|
|
146
|
+
folderUuid?: string | null;
|
|
147
|
+
}>;
|
|
148
|
+
export type UpdatePlayResult = {
|
|
149
|
+
play: Play;
|
|
150
|
+
};
|
|
151
|
+
export const zodUpdatePlayErrorReason: z.ZodEnum<{
|
|
152
|
+
folderNotFound: "folderNotFound";
|
|
153
|
+
modelNotFound: "modelNotFound";
|
|
154
|
+
datasetNotFound: "datasetNotFound";
|
|
155
|
+
connectorNotFound: "connectorNotFound";
|
|
156
|
+
integrationNotFound: "integrationNotFound";
|
|
157
|
+
datasetNotCompatible: "datasetNotCompatible";
|
|
158
|
+
integrationNotCompatible: "integrationNotCompatible";
|
|
159
|
+
failedToSchedule: "failedToSchedule";
|
|
160
|
+
invalidFilter: "invalidFilter";
|
|
161
|
+
segmentNotFound: "segmentNotFound";
|
|
162
|
+
playNotFound: "playNotFound";
|
|
163
|
+
playNotDeployed: "playNotDeployed";
|
|
164
|
+
failedToUpdateSegment: "failedToUpdateSegment";
|
|
165
|
+
}>;
|
|
166
|
+
export const zodRemovePlayErrorReason: z.ZodEnum<{
|
|
167
|
+
playNotFound: "playNotFound";
|
|
168
|
+
failedToRemoveSegment: "failedToRemoveSegment";
|
|
169
|
+
}>;
|
|
170
|
+
export type CreateToolPayload = DateToString<{
|
|
171
|
+
name: string;
|
|
172
|
+
icon: ToolIcon;
|
|
173
|
+
description?: string;
|
|
174
|
+
folderUuid?: string;
|
|
175
|
+
}>;
|
|
176
|
+
export type CreateToolResult = {
|
|
177
|
+
tool: Tool;
|
|
178
|
+
};
|
|
179
|
+
export type ListToolsResult = {
|
|
180
|
+
tools: Tool[];
|
|
181
|
+
};
|
|
182
|
+
export type UpdateToolPayload = DateToString<{
|
|
183
|
+
uuid: string;
|
|
184
|
+
name?: string;
|
|
185
|
+
icon?: ToolIcon;
|
|
186
|
+
description?: string | null;
|
|
187
|
+
folderUuid?: string | null;
|
|
188
|
+
}>;
|
|
189
|
+
export type UpdateToolResult = {
|
|
190
|
+
tool: Tool;
|
|
191
|
+
};
|
|
192
|
+
export const zodUpdateToolErrorReason: z.ZodEnum<{
|
|
193
|
+
folderNotFound: "folderNotFound";
|
|
194
|
+
toolNotFound: "toolNotFound";
|
|
195
|
+
toolIsReadOnly: "toolIsReadOnly";
|
|
196
|
+
}>;
|
|
197
|
+
export const zodRemoveToolErrorReason: z.ZodEnum<{
|
|
198
|
+
toolNotFound: "toolNotFound";
|
|
199
|
+
toolIsReadOnly: "toolIsReadOnly";
|
|
200
|
+
}>;
|
|
201
|
+
export type ComputeNodePayload = DateToString<{
|
|
202
|
+
node: NodePayload;
|
|
203
|
+
groupContext?: GlobalRecord<string, any>;
|
|
204
|
+
context: GlobalRecord<string, any>;
|
|
205
|
+
}>;
|
|
206
|
+
export type ComputeNodeResult = {
|
|
207
|
+
computedConfig: GlobalRecord<string, any>;
|
|
208
|
+
};
|
|
209
|
+
type NodePayload = Omit<Node, "childrenUuids"> & {
|
|
210
|
+
childrenUuids: Array<string | null>;
|
|
211
|
+
};
|
|
212
|
+
export type ExecuteNodePayload = DateToString<{
|
|
213
|
+
workflowUuid: string;
|
|
214
|
+
releaseUuid: string;
|
|
215
|
+
node: NodePayload;
|
|
216
|
+
computedConfig: GlobalRecord<string, any>;
|
|
217
|
+
context: GlobalRecord<string, any>;
|
|
218
|
+
groupContext?: GlobalRecord<string, any>;
|
|
219
|
+
}>;
|
|
220
|
+
export type ExecuteNodeGroupItemResult = {
|
|
221
|
+
item: any;
|
|
222
|
+
executions: GlobalRecord<string, {
|
|
223
|
+
outcome: "executing";
|
|
224
|
+
message: string;
|
|
225
|
+
} | {
|
|
226
|
+
outcome: "executed";
|
|
227
|
+
data: GlobalRecord<string, any> | null;
|
|
228
|
+
creditsUsedCount: number;
|
|
229
|
+
childIndex?: number;
|
|
230
|
+
} | {
|
|
231
|
+
outcome: "notExecuted";
|
|
232
|
+
reason: "actionFailed";
|
|
233
|
+
message: string;
|
|
234
|
+
creditsUsedCount: number;
|
|
235
|
+
}>;
|
|
236
|
+
computedConfigs: GlobalRecord<string, {
|
|
237
|
+
outcome: "computed";
|
|
238
|
+
computedConfig: GlobalRecord<string, any>;
|
|
239
|
+
} | {
|
|
240
|
+
outcome: "notComputed";
|
|
241
|
+
errorMessage: string;
|
|
242
|
+
}>;
|
|
243
|
+
error: string | undefined;
|
|
244
|
+
};
|
|
245
|
+
export type ExecuteNodePendingResult = {
|
|
246
|
+
status: "pending";
|
|
247
|
+
message: string;
|
|
248
|
+
};
|
|
249
|
+
export type ExecuteNodeSuccessResult = {
|
|
250
|
+
status: "success";
|
|
251
|
+
data: GlobalRecord<string, any> | Array<GlobalRecord<string, any>> | null;
|
|
252
|
+
creditsUsedCount: number;
|
|
253
|
+
groupItems?: ExecuteNodeGroupItemResult[];
|
|
254
|
+
childIndex?: number;
|
|
255
|
+
};
|
|
256
|
+
export type ExecuteNodeErrorResult = {
|
|
257
|
+
status: "error";
|
|
258
|
+
message: string;
|
|
259
|
+
creditsUsedCount: number;
|
|
260
|
+
groupItems?: ExecuteNodeGroupItemResult[];
|
|
261
|
+
};
|
|
262
|
+
export type ExecuteNodeResult = ExecuteNodePendingResult | ExecuteNodeSuccessResult | ExecuteNodeErrorResult;
|
|
263
|
+
export const zodExecuteNodeErrorReason: z.ZodEnum<{
|
|
264
|
+
releaseNotFound: "releaseNotFound";
|
|
265
|
+
}>;
|
|
266
|
+
export type CreateBatchPayload = DateToString<{
|
|
267
|
+
workflowUuid: string;
|
|
268
|
+
data: {
|
|
269
|
+
kind: "segment";
|
|
270
|
+
segmentUuid: string;
|
|
271
|
+
} | {
|
|
272
|
+
kind: "change";
|
|
273
|
+
changeUuid: string;
|
|
274
|
+
changeKinds: Segmentation.ChangeKind[];
|
|
275
|
+
} | {
|
|
276
|
+
kind: "file";
|
|
277
|
+
s3Filename: string;
|
|
278
|
+
mappings?: GlobalRecord<string, string>;
|
|
279
|
+
} | {
|
|
280
|
+
kind: "filter";
|
|
281
|
+
modelUuid: string;
|
|
282
|
+
filter?: Segmentation.Filter;
|
|
283
|
+
sort?: Segmentation.Sort;
|
|
284
|
+
limit?: number;
|
|
285
|
+
} | {
|
|
286
|
+
kind: "runs";
|
|
287
|
+
filter: BatchDataRunsFilter;
|
|
288
|
+
reset: BatchDataRunsReset;
|
|
289
|
+
} | {
|
|
290
|
+
kind: "recordIds";
|
|
291
|
+
modelUuid: string;
|
|
292
|
+
ids: string[];
|
|
293
|
+
} | {
|
|
294
|
+
kind: "group";
|
|
295
|
+
items: any[];
|
|
296
|
+
parentBatchUuid?: string;
|
|
297
|
+
parentRunUuid: string;
|
|
298
|
+
parentNodeUuid: string;
|
|
299
|
+
} | {
|
|
300
|
+
kind: "records";
|
|
301
|
+
records: GlobalRecord<string, any>[];
|
|
302
|
+
} | {
|
|
303
|
+
kind: "schedule";
|
|
304
|
+
modelUuid: string;
|
|
305
|
+
segmentUuid: string;
|
|
306
|
+
changeKinds: Segmentation.ChangeKind[];
|
|
307
|
+
skip?: boolean;
|
|
308
|
+
} | {
|
|
309
|
+
kind: "form";
|
|
310
|
+
records: GlobalRecord<string, unknown>[];
|
|
311
|
+
parentBatchUuid?: string;
|
|
312
|
+
parentRunUuid?: string;
|
|
313
|
+
parentNodeUuid?: string;
|
|
314
|
+
};
|
|
315
|
+
}>;
|
|
316
|
+
export type CreateBatchResult = {
|
|
317
|
+
batch: Batch;
|
|
318
|
+
};
|
|
319
|
+
export const zodCreateBatchErrorReason: z.ZodEnum<{
|
|
320
|
+
notEnoughCredits: "notEnoughCredits";
|
|
321
|
+
workflowNotFound: "workflowNotFound";
|
|
322
|
+
invalidReleaseOrCustomNodes: "invalidReleaseOrCustomNodes";
|
|
323
|
+
nodesNotFound: "nodesNotFound";
|
|
324
|
+
startNodeNotFound: "startNodeNotFound";
|
|
325
|
+
dataError: "dataError";
|
|
326
|
+
failedToStart: "failedToStart";
|
|
327
|
+
}>;
|
|
328
|
+
export type PreviewBatchPayload = DateToString<{
|
|
329
|
+
workflowUuid: string;
|
|
330
|
+
data: {
|
|
331
|
+
kind: "segment";
|
|
332
|
+
segmentUuid: string;
|
|
333
|
+
} | {
|
|
334
|
+
kind: "change";
|
|
335
|
+
changeUuid: string;
|
|
336
|
+
changeKinds: Segmentation.ChangeKind[];
|
|
337
|
+
} | {
|
|
338
|
+
kind: "file";
|
|
339
|
+
s3Filename: any;
|
|
340
|
+
} | {
|
|
341
|
+
kind: "filter";
|
|
342
|
+
modelUuid: string;
|
|
343
|
+
filter?: Segmentation.Filter;
|
|
344
|
+
sort?: Segmentation.Sort;
|
|
345
|
+
limit?: number;
|
|
346
|
+
} | {
|
|
347
|
+
kind: "runs";
|
|
348
|
+
runUuids: string[];
|
|
349
|
+
reset: BatchDataRunsReset;
|
|
350
|
+
} | {
|
|
351
|
+
kind: "recordIds";
|
|
352
|
+
modelUuid: string;
|
|
353
|
+
ids: string[];
|
|
354
|
+
} | {
|
|
355
|
+
kind: "group";
|
|
356
|
+
items: any[];
|
|
357
|
+
parentBatchUuid?: string;
|
|
358
|
+
parentRunUuid: string;
|
|
359
|
+
parentNodeUuid: string;
|
|
360
|
+
} | {
|
|
361
|
+
kind: "records";
|
|
362
|
+
records: GlobalRecord<string, any>[];
|
|
363
|
+
} | {
|
|
364
|
+
kind: "schedule";
|
|
365
|
+
modelUuid: string;
|
|
366
|
+
segmentUuid: string;
|
|
367
|
+
changeKinds: Segmentation.ChangeKind[];
|
|
368
|
+
};
|
|
369
|
+
}>;
|
|
370
|
+
export type PreviewBatchResult = {
|
|
371
|
+
records: GlobalRecord<string, any>[];
|
|
372
|
+
columns: Storage.Column[];
|
|
373
|
+
count: number;
|
|
374
|
+
};
|
|
375
|
+
export const zodPreviewBatchErrorReason: z.ZodEnum<{
|
|
376
|
+
segmentNotFound: "segmentNotFound";
|
|
377
|
+
workflowNotFound: "workflowNotFound";
|
|
378
|
+
modelLinkedToWorkflow: "modelLinkedToWorkflow";
|
|
379
|
+
noModelLinkedToWorkflow: "noModelLinkedToWorkflow";
|
|
380
|
+
failedToFetchFromClient: "failedToFetchFromClient";
|
|
381
|
+
}>;
|
|
382
|
+
export type ListBatchesPayload = DateToString<{
|
|
383
|
+
workflowUuids?: string[];
|
|
384
|
+
releaseUuid?: string;
|
|
385
|
+
parentBatchUuid?: string;
|
|
386
|
+
parentRunUuid?: string;
|
|
387
|
+
parentNodeUuid?: string;
|
|
388
|
+
statuses?: BatchStatus[];
|
|
389
|
+
hasRuns?: boolean;
|
|
390
|
+
isSkipped?: boolean;
|
|
391
|
+
isFinished?: boolean;
|
|
392
|
+
includedDataKinds?: Array<BatchData["kind"]>;
|
|
393
|
+
excludedDataKinds?: Array<BatchData["kind"]>;
|
|
394
|
+
limit?: number;
|
|
395
|
+
offset?: number;
|
|
396
|
+
}>;
|
|
397
|
+
export type ListBatchesResult = {
|
|
398
|
+
batches: Batch[];
|
|
399
|
+
};
|
|
400
|
+
export type GetBatchResult = {
|
|
401
|
+
batch: Batch;
|
|
402
|
+
};
|
|
403
|
+
export const zodCancelBatchErrorReason: z.ZodEnum<{
|
|
404
|
+
failedToStart: "failedToStart";
|
|
405
|
+
batchNotFound: "batchNotFound";
|
|
406
|
+
batchAlreadyFinished: "batchAlreadyFinished";
|
|
407
|
+
}>;
|
|
408
|
+
export type DownloadBatchPayload = DateToString<{
|
|
409
|
+
uuid: string;
|
|
410
|
+
outputNodeSlug: string;
|
|
411
|
+
}>;
|
|
412
|
+
export type DownloadBatchResult = {
|
|
413
|
+
url: string;
|
|
414
|
+
};
|
|
415
|
+
export const zodDownloadBatchErrorReason: z.ZodEnum<{
|
|
416
|
+
batchNotFound: "batchNotFound";
|
|
417
|
+
batchNotFinished: "batchNotFinished";
|
|
418
|
+
batchNotSupported: "batchNotSupported";
|
|
419
|
+
}>;
|
|
420
|
+
export type CreateRunPayload = DateToString<{
|
|
421
|
+
workflowUuid: string;
|
|
422
|
+
releaseUuid?: string;
|
|
423
|
+
data: unknown;
|
|
424
|
+
}>;
|
|
425
|
+
export type CreateRunResult = {
|
|
426
|
+
run: Run;
|
|
427
|
+
};
|
|
428
|
+
export const zodCreateRunErrorReason: z.ZodEnum<{
|
|
429
|
+
notEnoughCredits: "notEnoughCredits";
|
|
430
|
+
workflowNotFound: "workflowNotFound";
|
|
431
|
+
invalidReleaseOrCustomNodes: "invalidReleaseOrCustomNodes";
|
|
432
|
+
nodesNotFound: "nodesNotFound";
|
|
433
|
+
startNodeNotFound: "startNodeNotFound";
|
|
434
|
+
failedToStart: "failedToStart";
|
|
435
|
+
invalidData: "invalidData";
|
|
436
|
+
}>;
|
|
437
|
+
export type GetRunResult = {
|
|
438
|
+
run: Run;
|
|
439
|
+
runComputedConfigs: GlobalRecord<string, any>;
|
|
440
|
+
runContext: GlobalRecord<string, any>;
|
|
441
|
+
};
|
|
442
|
+
export type ListRunsPayload = DateToString<{
|
|
443
|
+
workflowUuid: string;
|
|
444
|
+
batchUuid?: string;
|
|
445
|
+
releaseUuid?: string;
|
|
446
|
+
statuses?: RunStatus[];
|
|
447
|
+
parentBatchUuid?: string;
|
|
448
|
+
parentUuid?: string;
|
|
449
|
+
parentNodeUuid?: string;
|
|
450
|
+
isGroupParent?: boolean;
|
|
451
|
+
recordId?: string;
|
|
452
|
+
recordTitle?: string;
|
|
453
|
+
recordTitleOrId?: string;
|
|
454
|
+
isFinished?: boolean;
|
|
455
|
+
executionsFilter?: ExecutionsFilter;
|
|
456
|
+
createdAfter?: string;
|
|
457
|
+
createdBefore?: string;
|
|
458
|
+
limit?: number;
|
|
459
|
+
offset?: number;
|
|
460
|
+
}>;
|
|
461
|
+
export type CountRunsPayload = DateToString<{
|
|
462
|
+
workflowUuid: string;
|
|
463
|
+
batchUuid?: string;
|
|
464
|
+
releaseUuid?: string;
|
|
465
|
+
statuses?: RunStatus[];
|
|
466
|
+
parentBatchUuid?: string;
|
|
467
|
+
parentUuid?: string;
|
|
468
|
+
parentNodeUuid?: string;
|
|
469
|
+
isGroupParent?: boolean;
|
|
470
|
+
recordId?: string;
|
|
471
|
+
recordTitle?: string;
|
|
472
|
+
recordTitleOrId?: string;
|
|
473
|
+
isFinished?: boolean;
|
|
474
|
+
executionsFilter?: ExecutionsFilter;
|
|
475
|
+
createdAfter?: string;
|
|
476
|
+
createdBefore?: string;
|
|
477
|
+
}>;
|
|
478
|
+
export type DownloadRunsPayload = DateToString<{
|
|
479
|
+
workflowUuid: string;
|
|
480
|
+
batchUuid?: string;
|
|
481
|
+
releaseUuid?: string;
|
|
482
|
+
statuses?: RunStatus[];
|
|
483
|
+
parentBatchUuid?: string;
|
|
484
|
+
parentUuid?: string;
|
|
485
|
+
parentNodeUuid?: string;
|
|
486
|
+
isGroupParent?: boolean;
|
|
487
|
+
recordId?: string;
|
|
488
|
+
recordTitle?: string;
|
|
489
|
+
recordTitleOrId?: string;
|
|
490
|
+
isFinished?: boolean;
|
|
491
|
+
executionsFilter?: ExecutionsFilter;
|
|
492
|
+
createdAfter?: string;
|
|
493
|
+
createdBefore?: string;
|
|
494
|
+
}>;
|
|
495
|
+
export type ReviewRunPayload = DateToString<{
|
|
496
|
+
uuid: string;
|
|
497
|
+
computedConfig: GlobalRecord<string, any>;
|
|
498
|
+
}>;
|
|
499
|
+
export type ReviewRunResult = {
|
|
500
|
+
run: Run;
|
|
501
|
+
};
|
|
502
|
+
export type CancelRunsPayload = DateToString<{
|
|
503
|
+
workflowUuid: string;
|
|
504
|
+
} & EitherOr<{
|
|
505
|
+
uuids: string[];
|
|
506
|
+
}, {
|
|
507
|
+
recordId?: string;
|
|
508
|
+
recordTitle?: string;
|
|
509
|
+
recordTitleOrId?: string;
|
|
510
|
+
releaseUuid?: string;
|
|
511
|
+
batchUuid?: string;
|
|
512
|
+
parentBatchUuid?: string;
|
|
513
|
+
parentUuid?: string;
|
|
514
|
+
parentNodeUuid?: string;
|
|
515
|
+
isGroupParent?: boolean;
|
|
516
|
+
executionsFilter?: ExecutionsFilter;
|
|
517
|
+
}>>;
|
|
518
|
+
export const zodCancelRunsErrorReason: z.ZodEnum<{
|
|
519
|
+
failedToStart: "failedToStart";
|
|
520
|
+
}>;
|
|
521
|
+
export type ListRunsResult = {
|
|
522
|
+
runs: Run[];
|
|
523
|
+
count: number;
|
|
524
|
+
};
|
|
525
|
+
export type CountRunsResult = {
|
|
526
|
+
count: number;
|
|
527
|
+
};
|
|
528
|
+
export type DownloadRunsResult = {
|
|
529
|
+
url: string;
|
|
530
|
+
};
|
|
531
|
+
export type GetRunMetricsPayload = DateToString<{
|
|
532
|
+
workflowUuid: string;
|
|
533
|
+
releaseUuid?: string;
|
|
534
|
+
batchUuid?: string;
|
|
535
|
+
createdAfter?: string;
|
|
536
|
+
createdBefore?: string;
|
|
537
|
+
}>;
|
|
538
|
+
export type GetRunMetricsResult = {
|
|
539
|
+
runMetrics: RunMetric[];
|
|
540
|
+
};
|
|
541
|
+
export type ListRecordsPayload = DateToString<{
|
|
542
|
+
workflowUuid: string;
|
|
543
|
+
ids?: string[];
|
|
544
|
+
title?: string;
|
|
545
|
+
titleOrId?: string;
|
|
546
|
+
releaseUuid?: string;
|
|
547
|
+
batchUuid?: string;
|
|
548
|
+
statuses?: RecordStatus[];
|
|
549
|
+
parentBatchUuid?: string;
|
|
550
|
+
parentRunUuid?: string;
|
|
551
|
+
parentNodeUuid?: string;
|
|
552
|
+
isGroupParent?: boolean;
|
|
553
|
+
executionsFilter?: ExecutionsFilter;
|
|
554
|
+
createdAfter?: string;
|
|
555
|
+
createdBefore?: string;
|
|
556
|
+
limit?: number;
|
|
557
|
+
offset?: number;
|
|
558
|
+
}>;
|
|
559
|
+
export type ListRecordsResult = {
|
|
560
|
+
records: Record[];
|
|
561
|
+
count: number;
|
|
562
|
+
};
|
|
563
|
+
export type CountRecordsPayload = DateToString<{
|
|
564
|
+
workflowUuid: string;
|
|
565
|
+
ids?: string[];
|
|
566
|
+
title?: string;
|
|
567
|
+
titleOrId?: string;
|
|
568
|
+
releaseUuid?: string;
|
|
569
|
+
batchUuid?: string;
|
|
570
|
+
statuses?: RecordStatus[];
|
|
571
|
+
parentBatchUuid?: string;
|
|
572
|
+
parentRunUuid?: string;
|
|
573
|
+
parentNodeUuid?: string;
|
|
574
|
+
isGroupParent?: boolean;
|
|
575
|
+
executionsFilter?: ExecutionsFilter;
|
|
576
|
+
createdAfter?: string;
|
|
577
|
+
createdBefore?: string;
|
|
578
|
+
}>;
|
|
579
|
+
export type CountRecordsResult = {
|
|
580
|
+
count: number;
|
|
581
|
+
};
|
|
582
|
+
export type DownloadRecordsPayload = DateToString<{
|
|
583
|
+
workflowUuid: string;
|
|
584
|
+
ids?: string[];
|
|
585
|
+
title?: string;
|
|
586
|
+
titleOrId?: string;
|
|
587
|
+
releaseUuid?: string;
|
|
588
|
+
batchUuid?: string;
|
|
589
|
+
statuses?: RunStatus[];
|
|
590
|
+
parentBatchUuid?: string;
|
|
591
|
+
parentRunUuid?: string;
|
|
592
|
+
parentNodeUuid?: string;
|
|
593
|
+
isGroupParent?: boolean;
|
|
594
|
+
executionsFilter?: ExecutionsFilter;
|
|
595
|
+
createdAfter?: string;
|
|
596
|
+
createdBefore?: string;
|
|
597
|
+
}>;
|
|
598
|
+
export type DownloadRecordsResult = {
|
|
599
|
+
url: string;
|
|
600
|
+
};
|
|
601
|
+
export type CancelRecordsPayload = DateToString<{
|
|
602
|
+
workflowUuid: string;
|
|
603
|
+
} & EitherOr<{
|
|
604
|
+
ids: string[];
|
|
605
|
+
}, {
|
|
606
|
+
title?: string;
|
|
607
|
+
titleOrId?: string;
|
|
608
|
+
releaseUuid?: string;
|
|
609
|
+
batchUuid?: string;
|
|
610
|
+
parentBatchUuid?: string;
|
|
611
|
+
parentRunUuid?: string;
|
|
612
|
+
parentNodeUuid?: string;
|
|
613
|
+
isGroupParent?: boolean;
|
|
614
|
+
executionsFilter?: ExecutionsFilter;
|
|
615
|
+
}>>;
|
|
616
|
+
export type GetRecordMetricsPayload = DateToString<{
|
|
617
|
+
workflowUuid: string;
|
|
618
|
+
releaseUuid?: string;
|
|
619
|
+
batchUuid?: string;
|
|
620
|
+
createdAfter?: string;
|
|
621
|
+
createdBefore?: string;
|
|
622
|
+
}>;
|
|
623
|
+
export type GetRecordMetricsResult = {
|
|
624
|
+
recordMetrics: RecordMetric[];
|
|
625
|
+
};
|
|
626
|
+
export const zodCancelRecordsErrorReason: z.ZodEnum<{
|
|
627
|
+
failedToStart: "failedToStart";
|
|
628
|
+
tooManyRecordsSelected: "tooManyRecordsSelected";
|
|
629
|
+
}>;
|
|
630
|
+
export type GetReleaseResult = {
|
|
631
|
+
release: Release;
|
|
632
|
+
};
|
|
633
|
+
export type ListReleasesPayload = DateToString<{
|
|
634
|
+
workflowUuid?: string;
|
|
635
|
+
userUuid?: string;
|
|
636
|
+
statuses?: ReleaseStatus[];
|
|
637
|
+
limit?: number;
|
|
638
|
+
offset?: number;
|
|
639
|
+
}>;
|
|
640
|
+
export type ListReleaseResult = {
|
|
641
|
+
releases: Release[];
|
|
642
|
+
};
|
|
643
|
+
export type GetDraftReleasePayload = DateToString<{
|
|
644
|
+
workflowUuid: string;
|
|
645
|
+
}>;
|
|
646
|
+
export type GetDraftReleaseResult = {
|
|
647
|
+
release: Release;
|
|
648
|
+
};
|
|
649
|
+
export const zodGetDraftReleaseErrorReason: z.ZodEnum<{
|
|
650
|
+
workflowNotFound: "workflowNotFound";
|
|
651
|
+
}>;
|
|
652
|
+
export type DeployDraftReleasePayload = DateToString<{
|
|
653
|
+
workflowUuid: string;
|
|
654
|
+
nodes: NodePayload[];
|
|
655
|
+
formFields: ReleaseFormField[] | null;
|
|
656
|
+
version: string;
|
|
657
|
+
description?: string;
|
|
658
|
+
options?: {
|
|
659
|
+
connectorUuidsByIntegrationSlug?: GlobalRecord<string, string>;
|
|
660
|
+
modelUuidsByIntegrationSlug?: GlobalRecord<string, string>;
|
|
661
|
+
};
|
|
662
|
+
}>;
|
|
663
|
+
export type DeployDraftReleaseResult = {
|
|
664
|
+
release: Release;
|
|
665
|
+
};
|
|
666
|
+
export const zodDeployDraftReleaseErrorReason: z.ZodEnum<{
|
|
667
|
+
draftReleaseNotFound: "draftReleaseNotFound";
|
|
668
|
+
duplicatedReleaseVersion: "duplicatedReleaseVersion";
|
|
669
|
+
workflowNotFound: "workflowNotFound";
|
|
670
|
+
draftReleaseNodesAreInvalid: "draftReleaseNodesAreInvalid";
|
|
671
|
+
failedToReconciliateNodes: "failedToReconciliateNodes";
|
|
672
|
+
}>;
|
|
673
|
+
export type UpdateDraftReleasePayload = DateToString<{
|
|
674
|
+
workflowUuid: string;
|
|
675
|
+
parentUuid?: string;
|
|
676
|
+
nodes?: NodePayload[];
|
|
677
|
+
testRecords?: ReleaseTestRecord[];
|
|
678
|
+
formFields?: ReleaseFormField[] | null;
|
|
679
|
+
options?: {
|
|
680
|
+
connectorUuidsByIntegrationSlug?: GlobalRecord<string, string>;
|
|
681
|
+
modelUuidsByIntegrationSlug?: GlobalRecord<string, string>;
|
|
682
|
+
};
|
|
683
|
+
}>;
|
|
684
|
+
export type UpdateDraftReleaseResult = {
|
|
685
|
+
release: Release;
|
|
686
|
+
};
|
|
687
|
+
export const zodUpdateDraftReleaseErrorReason: z.ZodEnum<{
|
|
688
|
+
draftReleaseNotFound: "draftReleaseNotFound";
|
|
689
|
+
invalidParent: "invalidParent";
|
|
690
|
+
workflowNotFound: "workflowNotFound";
|
|
691
|
+
failedToReconciliateNodes: "failedToReconciliateNodes";
|
|
692
|
+
}>;
|
|
693
|
+
export type ListTemplatesResult = {
|
|
694
|
+
templates: Template[];
|
|
695
|
+
};
|
|
696
|
+
export type GetTemplatePayload = DateToString<{
|
|
697
|
+
slug: string;
|
|
698
|
+
}>;
|
|
699
|
+
export type GetTemplateResult = {
|
|
700
|
+
template: Template;
|
|
701
|
+
};
|
|
702
|
+
export const zodGetTemplateErrorReason: z.ZodEnum<{
|
|
703
|
+
templateNotFound: "templateNotFound";
|
|
704
|
+
}>;
|
|
705
|
+
export {};
|
|
706
|
+
}
|
|
707
|
+
const batchKeys: {
|
|
708
|
+
all: (workspaceUuid: string) => readonly ["batches", string];
|
|
709
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["batches", string, string];
|
|
710
|
+
list: (workspaceUuid: string, payload: Api.ListBatchesPayload) => readonly ["batches", string, {
|
|
711
|
+
workflowUuids?: string[] | undefined;
|
|
712
|
+
releaseUuid?: string | undefined;
|
|
713
|
+
parentBatchUuid?: string | undefined;
|
|
714
|
+
parentRunUuid?: string | undefined;
|
|
715
|
+
parentNodeUuid?: string | undefined;
|
|
716
|
+
statuses?: BatchStatus[] | undefined;
|
|
717
|
+
hasRuns?: boolean | undefined;
|
|
718
|
+
isSkipped?: boolean | undefined;
|
|
719
|
+
isFinished?: boolean | undefined;
|
|
720
|
+
includedDataKinds?: ("filter" | "schedule" | "runs" | "records" | "segment" | "file" | "change" | "recordIds" | "group" | "form" | "watchedRecords")[] | undefined;
|
|
721
|
+
excludedDataKinds?: ("filter" | "schedule" | "runs" | "records" | "segment" | "file" | "change" | "recordIds" | "group" | "form" | "watchedRecords")[] | undefined;
|
|
722
|
+
limit?: number | undefined;
|
|
723
|
+
offset?: number | undefined;
|
|
724
|
+
}];
|
|
725
|
+
};
|
|
726
|
+
const workflowKeys: {
|
|
727
|
+
all: (workspaceUuid: string) => readonly ["workflows", string];
|
|
728
|
+
};
|
|
729
|
+
const playKeys: {
|
|
730
|
+
all: (workspaceUuid: string) => readonly ["plays", string];
|
|
731
|
+
};
|
|
732
|
+
const toolsKeys: {
|
|
733
|
+
all: (workspaceUuid: string) => readonly ["tools", string];
|
|
734
|
+
};
|
|
735
|
+
const releaseKeys: {
|
|
736
|
+
all: (workspaceUuid: string) => readonly ["releases", string];
|
|
737
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["releases", string, string];
|
|
738
|
+
getDraft: (workspaceUuid: string, workflowUuid: string) => readonly ["releases", string, string];
|
|
739
|
+
list: (workspaceUuid: string, payload: Api.ListReleasesPayload) => readonly ["releases", string, {
|
|
740
|
+
workflowUuid?: string | undefined;
|
|
741
|
+
userUuid?: string | undefined;
|
|
742
|
+
statuses?: ReleaseStatus[] | undefined;
|
|
743
|
+
limit?: number | undefined;
|
|
744
|
+
offset?: number | undefined;
|
|
745
|
+
}];
|
|
746
|
+
};
|
|
747
|
+
const draftReleaseKeys: {
|
|
748
|
+
all: (workspaceUuid: string) => readonly ["draftReleases", string];
|
|
749
|
+
get: (workspaceUuid: string, workflowUuid: string) => readonly ["releases", string, string];
|
|
750
|
+
};
|
|
751
|
+
const runKeys: {
|
|
752
|
+
all: (workspaceUuid: string) => readonly ["runs", string];
|
|
753
|
+
get: (workspaceUuid: string, uuid: string) => readonly ["runs", string, string];
|
|
754
|
+
list: (workspaceUuid: string, payload: Api.ListRunsPayload) => readonly ["runs", string, {
|
|
755
|
+
workflowUuid: string;
|
|
756
|
+
batchUuid?: string | undefined;
|
|
757
|
+
releaseUuid?: string | undefined;
|
|
758
|
+
statuses?: RunStatus[] | undefined;
|
|
759
|
+
parentBatchUuid?: string | undefined;
|
|
760
|
+
parentUuid?: string | undefined;
|
|
761
|
+
parentNodeUuid?: string | undefined;
|
|
762
|
+
isGroupParent?: boolean | undefined;
|
|
763
|
+
recordId?: string | undefined;
|
|
764
|
+
recordTitle?: string | undefined;
|
|
765
|
+
recordTitleOrId?: string | undefined;
|
|
766
|
+
isFinished?: boolean | undefined;
|
|
767
|
+
executionsFilter?: {
|
|
768
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
769
|
+
groups: {
|
|
770
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
771
|
+
conditions: ({
|
|
772
|
+
kind: "node";
|
|
773
|
+
nodeSlug: string;
|
|
774
|
+
operator: "isRunning";
|
|
775
|
+
} | {
|
|
776
|
+
kind: "node";
|
|
777
|
+
nodeSlug: string;
|
|
778
|
+
operator: "hasSuccess";
|
|
779
|
+
value?: string | undefined;
|
|
780
|
+
} | {
|
|
781
|
+
kind: "node";
|
|
782
|
+
nodeSlug: string;
|
|
783
|
+
operator: "hasError";
|
|
784
|
+
value?: string | undefined;
|
|
785
|
+
})[];
|
|
786
|
+
}[];
|
|
787
|
+
} | undefined;
|
|
788
|
+
createdAfter?: string | undefined;
|
|
789
|
+
createdBefore?: string | undefined;
|
|
790
|
+
limit?: number | undefined;
|
|
791
|
+
offset?: number | undefined;
|
|
792
|
+
}];
|
|
793
|
+
count: (workspaceUuid: string, payload: Api.CountRunsPayload) => readonly ["runs", string, {
|
|
794
|
+
workflowUuid: string;
|
|
795
|
+
batchUuid?: string | undefined;
|
|
796
|
+
releaseUuid?: string | undefined;
|
|
797
|
+
statuses?: RunStatus[] | undefined;
|
|
798
|
+
parentBatchUuid?: string | undefined;
|
|
799
|
+
parentUuid?: string | undefined;
|
|
800
|
+
parentNodeUuid?: string | undefined;
|
|
801
|
+
isGroupParent?: boolean | undefined;
|
|
802
|
+
recordId?: string | undefined;
|
|
803
|
+
recordTitle?: string | undefined;
|
|
804
|
+
recordTitleOrId?: string | undefined;
|
|
805
|
+
isFinished?: boolean | undefined;
|
|
806
|
+
executionsFilter?: {
|
|
807
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
808
|
+
groups: {
|
|
809
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
810
|
+
conditions: ({
|
|
811
|
+
kind: "node";
|
|
812
|
+
nodeSlug: string;
|
|
813
|
+
operator: "isRunning";
|
|
814
|
+
} | {
|
|
815
|
+
kind: "node";
|
|
816
|
+
nodeSlug: string;
|
|
817
|
+
operator: "hasSuccess";
|
|
818
|
+
value?: string | undefined;
|
|
819
|
+
} | {
|
|
820
|
+
kind: "node";
|
|
821
|
+
nodeSlug: string;
|
|
822
|
+
operator: "hasError";
|
|
823
|
+
value?: string | undefined;
|
|
824
|
+
})[];
|
|
825
|
+
}[];
|
|
826
|
+
} | undefined;
|
|
827
|
+
createdAfter?: string | undefined;
|
|
828
|
+
createdBefore?: string | undefined;
|
|
829
|
+
}];
|
|
830
|
+
getMetrics: (workspaceUuid: string, payload: Api.GetRunMetricsPayload) => readonly ["runs", string, {
|
|
831
|
+
workflowUuid: string;
|
|
832
|
+
releaseUuid?: string | undefined;
|
|
833
|
+
batchUuid?: string | undefined;
|
|
834
|
+
createdAfter?: string | undefined;
|
|
835
|
+
createdBefore?: string | undefined;
|
|
836
|
+
}];
|
|
837
|
+
};
|
|
838
|
+
const recordKeys: {
|
|
839
|
+
all: (workspaceUuid: string) => readonly ["records", string];
|
|
840
|
+
list: (workspaceUuid: string, payload: Api.ListRecordsPayload) => readonly ["records", string, {
|
|
841
|
+
workflowUuid: string;
|
|
842
|
+
ids?: string[] | undefined;
|
|
843
|
+
title?: string | undefined;
|
|
844
|
+
titleOrId?: string | undefined;
|
|
845
|
+
releaseUuid?: string | undefined;
|
|
846
|
+
batchUuid?: string | undefined;
|
|
847
|
+
statuses?: RecordStatus[] | undefined;
|
|
848
|
+
parentBatchUuid?: string | undefined;
|
|
849
|
+
parentRunUuid?: string | undefined;
|
|
850
|
+
parentNodeUuid?: string | undefined;
|
|
851
|
+
isGroupParent?: boolean | undefined;
|
|
852
|
+
executionsFilter?: {
|
|
853
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
854
|
+
groups: {
|
|
855
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
856
|
+
conditions: ({
|
|
857
|
+
kind: "node";
|
|
858
|
+
nodeSlug: string;
|
|
859
|
+
operator: "isRunning";
|
|
860
|
+
} | {
|
|
861
|
+
kind: "node";
|
|
862
|
+
nodeSlug: string;
|
|
863
|
+
operator: "hasSuccess";
|
|
864
|
+
value?: string | undefined;
|
|
865
|
+
} | {
|
|
866
|
+
kind: "node";
|
|
867
|
+
nodeSlug: string;
|
|
868
|
+
operator: "hasError";
|
|
869
|
+
value?: string | undefined;
|
|
870
|
+
})[];
|
|
871
|
+
}[];
|
|
872
|
+
} | undefined;
|
|
873
|
+
createdAfter?: string | undefined;
|
|
874
|
+
createdBefore?: string | undefined;
|
|
875
|
+
limit?: number | undefined;
|
|
876
|
+
offset?: number | undefined;
|
|
877
|
+
}];
|
|
878
|
+
count: (workspaceUuid: string, payload: Api.CountRecordsPayload) => readonly ["records", string, {
|
|
879
|
+
workflowUuid: string;
|
|
880
|
+
ids?: string[] | undefined;
|
|
881
|
+
title?: string | undefined;
|
|
882
|
+
titleOrId?: string | undefined;
|
|
883
|
+
releaseUuid?: string | undefined;
|
|
884
|
+
batchUuid?: string | undefined;
|
|
885
|
+
statuses?: RecordStatus[] | undefined;
|
|
886
|
+
parentBatchUuid?: string | undefined;
|
|
887
|
+
parentRunUuid?: string | undefined;
|
|
888
|
+
parentNodeUuid?: string | undefined;
|
|
889
|
+
isGroupParent?: boolean | undefined;
|
|
890
|
+
executionsFilter?: {
|
|
891
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
892
|
+
groups: {
|
|
893
|
+
conjonction: OrchestrationTypes.ExecutionsFilterConjonction;
|
|
894
|
+
conditions: ({
|
|
895
|
+
kind: "node";
|
|
896
|
+
nodeSlug: string;
|
|
897
|
+
operator: "isRunning";
|
|
898
|
+
} | {
|
|
899
|
+
kind: "node";
|
|
900
|
+
nodeSlug: string;
|
|
901
|
+
operator: "hasSuccess";
|
|
902
|
+
value?: string | undefined;
|
|
903
|
+
} | {
|
|
904
|
+
kind: "node";
|
|
905
|
+
nodeSlug: string;
|
|
906
|
+
operator: "hasError";
|
|
907
|
+
value?: string | undefined;
|
|
908
|
+
})[];
|
|
909
|
+
}[];
|
|
910
|
+
} | undefined;
|
|
911
|
+
createdAfter?: string | undefined;
|
|
912
|
+
createdBefore?: string | undefined;
|
|
913
|
+
}];
|
|
914
|
+
getMetrics: (workspaceUuid: string, payload: Api.GetRecordMetricsPayload) => readonly ["records", string, {
|
|
915
|
+
workflowUuid: string;
|
|
916
|
+
releaseUuid?: string | undefined;
|
|
917
|
+
batchUuid?: string | undefined;
|
|
918
|
+
createdAfter?: string | undefined;
|
|
919
|
+
createdBefore?: string | undefined;
|
|
920
|
+
}];
|
|
921
|
+
};
|
|
922
|
+
const templateKeys: {
|
|
923
|
+
all: () => readonly ["templates"];
|
|
924
|
+
get: (slug: string) => readonly ["templates", string];
|
|
925
|
+
list: () => readonly ["templates"];
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
export interface OrchestrationSlice {
|
|
929
|
+
workflows: Orchestration.Workflow[];
|
|
930
|
+
setWorkflows: (workflows: Orchestration.Workflow[]) => void;
|
|
931
|
+
plays: Orchestration.Play[];
|
|
932
|
+
setPlays: (plays: Orchestration.Play[]) => void;
|
|
933
|
+
tools: Orchestration.Tool[];
|
|
934
|
+
setTools: (plays: Orchestration.Tool[]) => void;
|
|
935
|
+
templates: Array<Orchestration.Template | Ai.Template>;
|
|
936
|
+
setTemplates: (templates: Array<Orchestration.Template | Ai.Template>) => void;
|
|
937
|
+
}
|
|
938
|
+
export declare const createOrchestrationSlice: StateCreator<OrchestrationSlice, [
|
|
939
|
+
], [
|
|
940
|
+
], OrchestrationSlice>;
|
|
941
|
+
export {};
|
|
942
|
+
//# sourceMappingURL=orchestration.d.ts.map
|