windmill-client 0.2.1 → 0.3.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.
Files changed (121) hide show
  1. package/build.sh +0 -1
  2. package/dist/core/OpenAPI.js +1 -1
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +3 -1
  5. package/dist/models/ListableRawApp.d.ts +9 -0
  6. package/dist/models/ListableRawApp.js +5 -0
  7. package/dist/services/AppService.d.ts +19 -18
  8. package/dist/services/AppService.js +16 -16
  9. package/dist/services/FavoriteService.d.ts +2 -2
  10. package/dist/services/GranularAclService.d.ts +3 -3
  11. package/dist/services/JobService.d.ts +12 -0
  12. package/dist/services/JobService.js +15 -0
  13. package/dist/services/RawAppService.d.ts +103 -0
  14. package/dist/services/RawAppService.js +110 -0
  15. package/package.json +1 -1
  16. package/publish.sh +3 -0
  17. package/src/core/OpenAPI.ts +1 -1
  18. package/src/index.ts +2 -0
  19. package/src/models/ListableRawApp.ts +14 -0
  20. package/src/services/AppService.ts +33 -32
  21. package/src/services/FavoriteService.ts +2 -2
  22. package/src/services/GranularAclService.ts +3 -3
  23. package/src/services/JobService.ts +25 -0
  24. package/src/services/RawAppService.ts +209 -0
  25. package/src/core/ApiError.d.ts +0 -10
  26. package/src/core/ApiRequestOptions.d.ts +0 -13
  27. package/src/core/ApiResult.d.ts +0 -7
  28. package/src/core/CancelablePromise.d.ts +0 -26
  29. package/src/core/OpenAPI.d.ts +0 -16
  30. package/src/core/request.d.ts +0 -13
  31. package/src/models/AppWithLastVersion.d.ts +0 -21
  32. package/src/models/AppWithLastVersionWDraft.d.ts +0 -5
  33. package/src/models/AuditLog.d.ts +0 -32
  34. package/src/models/BranchAll.d.ts +0 -10
  35. package/src/models/BranchOne.d.ts +0 -10
  36. package/src/models/CompletedJob.d.ts +0 -57
  37. package/src/models/ContextualVariable.d.ts +0 -5
  38. package/src/models/CreateInput.d.ts +0 -4
  39. package/src/models/CreateResource.d.ts +0 -6
  40. package/src/models/CreateVariable.d.ts +0 -8
  41. package/src/models/CreateWorkspace.d.ts +0 -5
  42. package/src/models/EditResource.d.ts +0 -5
  43. package/src/models/EditResourceType.d.ts +0 -4
  44. package/src/models/EditSchedule.d.ts +0 -6
  45. package/src/models/EditVariable.d.ts +0 -6
  46. package/src/models/EditWorkspaceUser.d.ts +0 -5
  47. package/src/models/Flow.d.ts +0 -3
  48. package/src/models/FlowMetadata.d.ts +0 -11
  49. package/src/models/FlowModule.d.ts +0 -18
  50. package/src/models/FlowModuleValue.d.ts +0 -8
  51. package/src/models/FlowPreview.d.ts +0 -7
  52. package/src/models/FlowStatus.d.ts +0 -12
  53. package/src/models/FlowStatusModule.d.ts +0 -34
  54. package/src/models/FlowValue.d.ts +0 -6
  55. package/src/models/Folder.d.ts +0 -5
  56. package/src/models/ForloopFlow.d.ts +0 -9
  57. package/src/models/GlobalUserInfo.d.ts +0 -14
  58. package/src/models/Group.d.ts +0 -6
  59. package/src/models/Identity.d.ts +0 -4
  60. package/src/models/Input.d.ts +0 -8
  61. package/src/models/InputTransform.d.ts +0 -3
  62. package/src/models/JavascriptTransform.d.ts +0 -4
  63. package/src/models/Job.d.ts +0 -11
  64. package/src/models/ListableApp.d.ts +0 -18
  65. package/src/models/ListableResource.d.ts +0 -14
  66. package/src/models/ListableVariable.d.ts +0 -14
  67. package/src/models/Login.d.ts +0 -4
  68. package/src/models/MainArgSignature.d.ts +0 -33
  69. package/src/models/NewSchedule.d.ts +0 -10
  70. package/src/models/NewScript.d.ts +0 -29
  71. package/src/models/NewScriptWithDraft.d.ts +0 -5
  72. package/src/models/NewToken.d.ts +0 -4
  73. package/src/models/NewTokenImpersonate.d.ts +0 -5
  74. package/src/models/NewUser.d.ts +0 -5
  75. package/src/models/OpenFlow.d.ts +0 -7
  76. package/src/models/OpenFlowWPath.d.ts +0 -4
  77. package/src/models/PathFlow.d.ts +0 -6
  78. package/src/models/PathScript.d.ts +0 -7
  79. package/src/models/Policy.d.ts +0 -13
  80. package/src/models/Preview.d.ts +0 -16
  81. package/src/models/QueuedJob.d.ts +0 -55
  82. package/src/models/RawScript.d.ts +0 -18
  83. package/src/models/Resource.d.ts +0 -9
  84. package/src/models/ResourceType.d.ts +0 -6
  85. package/src/models/Retry.d.ts +0 -11
  86. package/src/models/RunnableType.d.ts +0 -5
  87. package/src/models/Schedule.d.ts +0 -15
  88. package/src/models/Script.d.ts +0 -43
  89. package/src/models/ScriptArgs.d.ts +0 -1
  90. package/src/models/SlackToken.d.ts +0 -8
  91. package/src/models/StaticTransform.d.ts +0 -4
  92. package/src/models/TokenResponse.d.ts +0 -6
  93. package/src/models/TruncatedToken.d.ts +0 -7
  94. package/src/models/UpdateInput.d.ts +0 -5
  95. package/src/models/Usage.d.ts +0 -3
  96. package/src/models/User.d.ts +0 -14
  97. package/src/models/UserWorkspaceList.d.ts +0 -8
  98. package/src/models/WorkerPing.d.ts +0 -8
  99. package/src/models/Workspace.d.ts +0 -6
  100. package/src/models/WorkspaceInvite.d.ts +0 -6
  101. package/src/services/AdminService.d.ts +0 -39
  102. package/src/services/AppService.d.ts +0 -194
  103. package/src/services/AuditService.d.ts +0 -53
  104. package/src/services/CaptureService.d.ts +0 -30
  105. package/src/services/DraftService.d.ts +0 -16
  106. package/src/services/FavoriteService.d.ts +0 -27
  107. package/src/services/FlowService.d.ts +0 -186
  108. package/src/services/FolderService.d.ts +0 -128
  109. package/src/services/GranularAclService.d.ts +0 -46
  110. package/src/services/GroupService.d.ts +0 -110
  111. package/src/services/InputService.d.ts +0 -78
  112. package/src/services/JobService.d.ts +0 -636
  113. package/src/services/OauthService.d.ts +0 -95
  114. package/src/services/ResourceService.d.ts +0 -177
  115. package/src/services/ScheduleService.d.ts +0 -103
  116. package/src/services/ScriptService.d.ts +0 -303
  117. package/src/services/SettingsService.d.ts +0 -15
  118. package/src/services/UserService.d.ts +0 -284
  119. package/src/services/VariableService.d.ts +0 -83
  120. package/src/services/WorkerService.d.ts +0 -25
  121. package/src/services/WorkspaceService.d.ts +0 -227
@@ -883,6 +883,31 @@ export class JobService {
883
883
  });
884
884
  }
885
885
 
886
+ /**
887
+ * get completed job result if job is completed
888
+ * @returns any result
889
+ * @throws ApiError
890
+ */
891
+ public static getCompletedJobResultMaybe({
892
+ workspace,
893
+ id,
894
+ }: {
895
+ workspace: string,
896
+ id: string,
897
+ }): CancelablePromise<{
898
+ completed: boolean;
899
+ result: any;
900
+ }> {
901
+ return __request(OpenAPI, {
902
+ method: 'GET',
903
+ url: '/w/{workspace}/jobs/completed/get_result_maybe/{id}',
904
+ path: {
905
+ 'workspace': workspace,
906
+ 'id': id,
907
+ },
908
+ });
909
+ }
910
+
886
911
  /**
887
912
  * delete completed job (erase content but keep run id)
888
913
  * @returns CompletedJob job details
@@ -0,0 +1,209 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { ListableRawApp } from '../models/ListableRawApp';
5
+
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ import { OpenAPI } from '../core/OpenAPI';
8
+ import { request as __request } from '../core/request';
9
+
10
+ export class RawAppService {
11
+
12
+ /**
13
+ * list all available raw apps
14
+ * @returns ListableRawApp All available raw apps
15
+ * @throws ApiError
16
+ */
17
+ public static listRawApps({
18
+ workspace,
19
+ page,
20
+ perPage,
21
+ orderDesc,
22
+ createdBy,
23
+ pathStart,
24
+ pathExact,
25
+ starredOnly,
26
+ }: {
27
+ workspace: string,
28
+ /**
29
+ * which page to return (start at 1, default 1)
30
+ */
31
+ page?: number,
32
+ /**
33
+ * number of items to return for a given page (default 30, max 100)
34
+ */
35
+ perPage?: number,
36
+ /**
37
+ * order by desc order (default true)
38
+ */
39
+ orderDesc?: boolean,
40
+ /**
41
+ * mask to filter exact matching user creator
42
+ */
43
+ createdBy?: string,
44
+ /**
45
+ * mask to filter matching starting path
46
+ */
47
+ pathStart?: string,
48
+ /**
49
+ * mask to filter exact matching path
50
+ */
51
+ pathExact?: string,
52
+ /**
53
+ * (default false)
54
+ * show only the starred items
55
+ *
56
+ */
57
+ starredOnly?: boolean,
58
+ }): CancelablePromise<Array<ListableRawApp>> {
59
+ return __request(OpenAPI, {
60
+ method: 'GET',
61
+ url: '/w/{workspace}/raw_apps/list',
62
+ path: {
63
+ 'workspace': workspace,
64
+ },
65
+ query: {
66
+ 'page': page,
67
+ 'per_page': perPage,
68
+ 'order_desc': orderDesc,
69
+ 'created_by': createdBy,
70
+ 'path_start': pathStart,
71
+ 'path_exact': pathExact,
72
+ 'starred_only': starredOnly,
73
+ },
74
+ });
75
+ }
76
+
77
+ /**
78
+ * does an app exisst at path
79
+ * @returns boolean app exists
80
+ * @throws ApiError
81
+ */
82
+ public static existsRawApp({
83
+ workspace,
84
+ path,
85
+ }: {
86
+ workspace: string,
87
+ path: string,
88
+ }): CancelablePromise<boolean> {
89
+ return __request(OpenAPI, {
90
+ method: 'GET',
91
+ url: '/w/{workspace}/raw_apps/exists/{path}',
92
+ path: {
93
+ 'workspace': workspace,
94
+ 'path': path,
95
+ },
96
+ });
97
+ }
98
+
99
+ /**
100
+ * get app by path
101
+ * @returns string app details
102
+ * @throws ApiError
103
+ */
104
+ public static getRawAppData({
105
+ workspace,
106
+ version,
107
+ path,
108
+ }: {
109
+ workspace: string,
110
+ version: number,
111
+ path: string,
112
+ }): CancelablePromise<string> {
113
+ return __request(OpenAPI, {
114
+ method: 'GET',
115
+ url: '/w/{workspace}/apps/get_data/{version}/{path}',
116
+ path: {
117
+ 'workspace': workspace,
118
+ 'version': version,
119
+ 'path': path,
120
+ },
121
+ });
122
+ }
123
+
124
+ /**
125
+ * create raw app
126
+ * @returns string raw app created
127
+ * @throws ApiError
128
+ */
129
+ public static createRawApp({
130
+ workspace,
131
+ requestBody,
132
+ }: {
133
+ workspace: string,
134
+ /**
135
+ * new raw app
136
+ */
137
+ requestBody: {
138
+ path: string;
139
+ value: string;
140
+ summary: string;
141
+ },
142
+ }): CancelablePromise<string> {
143
+ return __request(OpenAPI, {
144
+ method: 'POST',
145
+ url: '/w/{workspace}/raw_apps/create',
146
+ path: {
147
+ 'workspace': workspace,
148
+ },
149
+ body: requestBody,
150
+ mediaType: 'application/json',
151
+ });
152
+ }
153
+
154
+ /**
155
+ * update app
156
+ * @returns string app updated
157
+ * @throws ApiError
158
+ */
159
+ public static updateRawApp({
160
+ workspace,
161
+ path,
162
+ requestBody,
163
+ }: {
164
+ workspace: string,
165
+ path: string,
166
+ /**
167
+ * updateraw app
168
+ */
169
+ requestBody: {
170
+ path?: string;
171
+ summary?: string;
172
+ value?: string;
173
+ },
174
+ }): CancelablePromise<string> {
175
+ return __request(OpenAPI, {
176
+ method: 'POST',
177
+ url: '/w/{workspace}/raw_apps/update/{path}',
178
+ path: {
179
+ 'workspace': workspace,
180
+ 'path': path,
181
+ },
182
+ body: requestBody,
183
+ mediaType: 'application/json',
184
+ });
185
+ }
186
+
187
+ /**
188
+ * delete raw app
189
+ * @returns string app deleted
190
+ * @throws ApiError
191
+ */
192
+ public static deleteRawApp({
193
+ workspace,
194
+ path,
195
+ }: {
196
+ workspace: string,
197
+ path: string,
198
+ }): CancelablePromise<string> {
199
+ return __request(OpenAPI, {
200
+ method: 'DELETE',
201
+ url: '/w/{workspace}/raw_apps/delete/{path}',
202
+ path: {
203
+ 'workspace': workspace,
204
+ 'path': path,
205
+ },
206
+ });
207
+ }
208
+
209
+ }
@@ -1,10 +0,0 @@
1
- import type { ApiRequestOptions } from './ApiRequestOptions';
2
- import type { ApiResult } from './ApiResult';
3
- export declare class ApiError extends Error {
4
- readonly url: string;
5
- readonly status: number;
6
- readonly statusText: string;
7
- readonly body: any;
8
- readonly request: ApiRequestOptions;
9
- constructor(request: ApiRequestOptions, response: ApiResult, message: string);
10
- }
@@ -1,13 +0,0 @@
1
- export type ApiRequestOptions = {
2
- readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
- readonly url: string;
4
- readonly path?: Record<string, any>;
5
- readonly cookies?: Record<string, any>;
6
- readonly headers?: Record<string, any>;
7
- readonly query?: Record<string, any>;
8
- readonly formData?: Record<string, any>;
9
- readonly body?: any;
10
- readonly mediaType?: string;
11
- readonly responseHeader?: string;
12
- readonly errors?: Record<number, string>;
13
- };
@@ -1,7 +0,0 @@
1
- export type ApiResult = {
2
- readonly url: string;
3
- readonly ok: boolean;
4
- readonly status: number;
5
- readonly statusText: string;
6
- readonly body: any;
7
- };
@@ -1,26 +0,0 @@
1
- export declare class CancelError extends Error {
2
- constructor(message: string);
3
- get isCancelled(): boolean;
4
- }
5
- export interface OnCancel {
6
- readonly isResolved: boolean;
7
- readonly isRejected: boolean;
8
- readonly isCancelled: boolean;
9
- (cancelHandler: () => void): void;
10
- }
11
- export declare class CancelablePromise<T> implements Promise<T> {
12
- readonly [Symbol.toStringTag]: string;
13
- private _isResolved;
14
- private _isRejected;
15
- private _isCancelled;
16
- private readonly _cancelHandlers;
17
- private readonly _promise;
18
- private _resolve?;
19
- private _reject?;
20
- constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
21
- then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
22
- catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
23
- finally(onFinally?: (() => void) | null): Promise<T>;
24
- cancel(): void;
25
- get isCancelled(): boolean;
26
- }
@@ -1,16 +0,0 @@
1
- import type { ApiRequestOptions } from './ApiRequestOptions';
2
- type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
3
- type Headers = Record<string, string>;
4
- export type OpenAPIConfig = {
5
- BASE: string;
6
- VERSION: string;
7
- WITH_CREDENTIALS: boolean;
8
- CREDENTIALS: 'include' | 'omit' | 'same-origin';
9
- TOKEN?: string | Resolver<string>;
10
- USERNAME?: string | Resolver<string>;
11
- PASSWORD?: string | Resolver<string>;
12
- HEADERS?: Headers | Resolver<Headers>;
13
- ENCODE_PATH?: (path: string) => string;
14
- };
15
- export declare const OpenAPI: OpenAPIConfig;
16
- export {};
@@ -1,13 +0,0 @@
1
- import type { ApiRequestOptions } from './ApiRequestOptions';
2
- import { CancelablePromise } from './CancelablePromise';
3
- import type { OnCancel } from './CancelablePromise';
4
- import type { OpenAPIConfig } from './OpenAPI';
5
- export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Headers, onCancel: OnCancel) => Promise<Response>;
6
- /**
7
- * Request method
8
- * @param config The OpenAPI configuration object
9
- * @param options The request options from the service
10
- * @returns CancelablePromise<T>
11
- * @throws ApiError
12
- */
13
- export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
@@ -1,21 +0,0 @@
1
- import type { Policy } from './Policy';
2
- export type AppWithLastVersion = {
3
- id: number;
4
- workspace_id: string;
5
- path: string;
6
- summary: string;
7
- versions: Array<number>;
8
- created_by: string;
9
- created_at: string;
10
- value: any;
11
- policy: Policy;
12
- execution_mode: AppWithLastVersion.execution_mode;
13
- extra_perms: Record<string, boolean>;
14
- };
15
- export declare namespace AppWithLastVersion {
16
- enum execution_mode {
17
- VIEWER = "viewer",
18
- PUBLISHER = "publisher",
19
- ANONYMOUS = "anonymous"
20
- }
21
- }
@@ -1,5 +0,0 @@
1
- import type { AppWithLastVersion } from './AppWithLastVersion';
2
- export type AppWithLastVersionWDraft = (AppWithLastVersion & {
3
- draft_only?: boolean;
4
- draft?: any;
5
- });
@@ -1,32 +0,0 @@
1
- export type AuditLog = {
2
- id: number;
3
- timestamp: string;
4
- username: string;
5
- operation: AuditLog.operation;
6
- action_kind: AuditLog.action_kind;
7
- resource?: string;
8
- parameters?: any;
9
- };
10
- export declare namespace AuditLog {
11
- enum operation {
12
- JOBS_RUN = "jobs.run",
13
- SCRIPTS_CREATE = "scripts.create",
14
- SCRIPTS_UPDATE = "scripts.update",
15
- USERS_CREATE = "users.create",
16
- USERS_DELETE = "users.delete",
17
- USERS_SETPASSWORD = "users.setpassword",
18
- USERS_UPDATE = "users.update",
19
- USERS_LOGIN = "users.login",
20
- USERS_TOKEN_CREATE = "users.token.create",
21
- USERS_TOKEN_DELETE = "users.token.delete",
22
- VARIABLES_CREATE = "variables.create",
23
- VARIABLES_DELETE = "variables.delete",
24
- VARIABLES_UPDATE = "variables.update"
25
- }
26
- enum action_kind {
27
- CREATED = "Created",
28
- UPDATED = "Updated",
29
- DELETE = "Delete",
30
- EXECUTE = "Execute"
31
- }
32
- }
@@ -1,10 +0,0 @@
1
- import type { FlowModule } from './FlowModule';
2
- export type BranchAll = {
3
- branches: Array<{
4
- summary?: string;
5
- skip_failure?: boolean;
6
- modules: Array<FlowModule>;
7
- }>;
8
- type: 'branchall';
9
- parallel?: boolean;
10
- };
@@ -1,10 +0,0 @@
1
- import type { FlowModule } from './FlowModule';
2
- export type BranchOne = {
3
- branches: Array<{
4
- summary?: string;
5
- expr: string;
6
- modules: Array<FlowModule>;
7
- }>;
8
- default: Array<FlowModule>;
9
- type: 'branchone';
10
- };
@@ -1,57 +0,0 @@
1
- import type { FlowStatus } from './FlowStatus';
2
- import type { FlowValue } from './FlowValue';
3
- import type { ScriptArgs } from './ScriptArgs';
4
- export type CompletedJob = {
5
- workspace_id?: string;
6
- id: string;
7
- parent_job?: string;
8
- created_by: string;
9
- created_at: string;
10
- started_at: string;
11
- duration_ms: number;
12
- success: boolean;
13
- script_path?: string;
14
- script_hash?: string;
15
- args?: ScriptArgs;
16
- result?: any;
17
- logs?: string;
18
- deleted?: boolean;
19
- raw_code?: string;
20
- canceled: boolean;
21
- canceled_by?: string;
22
- canceled_reason?: string;
23
- job_kind: CompletedJob.job_kind;
24
- schedule_path?: string;
25
- /**
26
- * The user (u/userfoo) or group (g/groupfoo) whom
27
- * the execution of this script will be permissioned_as and by extension its DT_TOKEN.
28
- *
29
- */
30
- permissioned_as: string;
31
- flow_status?: FlowStatus;
32
- raw_flow?: FlowValue;
33
- is_flow_step: boolean;
34
- language?: CompletedJob.language;
35
- is_skipped: boolean;
36
- email: string;
37
- visible_to_owner: boolean;
38
- mem_peak?: number;
39
- tag: string;
40
- };
41
- export declare namespace CompletedJob {
42
- enum job_kind {
43
- SCRIPT = "script",
44
- PREVIEW = "preview",
45
- DEPENDENCIES = "dependencies",
46
- FLOW = "flow",
47
- FLOWPREVIEW = "flowpreview",
48
- SCRIPT_HUB = "script_hub",
49
- IDENTITY = "identity"
50
- }
51
- enum language {
52
- PYTHON3 = "python3",
53
- DENO = "deno",
54
- GO = "go",
55
- BASH = "bash"
56
- }
57
- }
@@ -1,5 +0,0 @@
1
- export type ContextualVariable = {
2
- name: string;
3
- value: string;
4
- description: string;
5
- };
@@ -1,4 +0,0 @@
1
- export type CreateInput = {
2
- name: string;
3
- args: any;
4
- };
@@ -1,6 +0,0 @@
1
- export type CreateResource = {
2
- path: string;
3
- value: any;
4
- description?: string;
5
- resource_type: string;
6
- };
@@ -1,8 +0,0 @@
1
- export type CreateVariable = {
2
- path: string;
3
- value: string;
4
- is_secret: boolean;
5
- description: string;
6
- account?: number;
7
- is_oauth?: boolean;
8
- };
@@ -1,5 +0,0 @@
1
- export type CreateWorkspace = {
2
- id: string;
3
- name: string;
4
- username: string;
5
- };
@@ -1,5 +0,0 @@
1
- export type EditResource = {
2
- path?: string;
3
- description?: string;
4
- value?: any;
5
- };
@@ -1,4 +0,0 @@
1
- export type EditResourceType = {
2
- schema?: string;
3
- description?: string;
4
- };
@@ -1,6 +0,0 @@
1
- import type { ScriptArgs } from './ScriptArgs';
2
- export type EditSchedule = {
3
- schedule: string;
4
- timezone: string;
5
- args: ScriptArgs;
6
- };
@@ -1,6 +0,0 @@
1
- export type EditVariable = {
2
- path?: string;
3
- value?: string;
4
- is_secret?: boolean;
5
- description?: string;
6
- };
@@ -1,5 +0,0 @@
1
- export type EditWorkspaceUser = {
2
- is_admin?: boolean;
3
- operator?: boolean;
4
- disabled?: boolean;
5
- };
@@ -1,3 +0,0 @@
1
- import type { FlowMetadata } from './FlowMetadata';
2
- import type { OpenFlow } from './OpenFlow';
3
- export type Flow = (OpenFlow & FlowMetadata);
@@ -1,11 +0,0 @@
1
- export type FlowMetadata = {
2
- workspace_id?: string;
3
- path: string;
4
- edited_by: string;
5
- edited_at: string;
6
- archived: boolean;
7
- extra_perms: any;
8
- additionalProperties?: boolean;
9
- starred?: boolean;
10
- draft_only?: boolean;
11
- };
@@ -1,18 +0,0 @@
1
- import type { FlowModuleValue } from './FlowModuleValue';
2
- import type { InputTransform } from './InputTransform';
3
- import type { Retry } from './Retry';
4
- export type FlowModule = {
5
- id: string;
6
- value: FlowModuleValue;
7
- stop_after_if?: {
8
- skip_if_stopped?: boolean;
9
- expr: string;
10
- };
11
- sleep?: InputTransform;
12
- summary?: string;
13
- suspend?: {
14
- required_events?: number;
15
- timeout?: number;
16
- };
17
- retry?: Retry;
18
- };
@@ -1,8 +0,0 @@
1
- import type { BranchAll } from './BranchAll';
2
- import type { BranchOne } from './BranchOne';
3
- import type { ForloopFlow } from './ForloopFlow';
4
- import type { Identity } from './Identity';
5
- import type { PathFlow } from './PathFlow';
6
- import type { PathScript } from './PathScript';
7
- import type { RawScript } from './RawScript';
8
- export type FlowModuleValue = (RawScript | PathScript | PathFlow | ForloopFlow | BranchOne | BranchAll | Identity);
@@ -1,7 +0,0 @@
1
- import type { FlowValue } from './FlowValue';
2
- import type { ScriptArgs } from './ScriptArgs';
3
- export type FlowPreview = {
4
- value: FlowValue;
5
- path?: string;
6
- args: ScriptArgs;
7
- };
@@ -1,12 +0,0 @@
1
- import type { FlowStatusModule } from './FlowStatusModule';
2
- export type FlowStatus = {
3
- step: number;
4
- modules: Array<FlowStatusModule>;
5
- failure_module: (FlowStatusModule & {
6
- parent_module?: string;
7
- });
8
- retry?: {
9
- fail_count?: number;
10
- failed_jobs?: Array<string>;
11
- };
12
- };
@@ -1,34 +0,0 @@
1
- export type FlowStatusModule = {
2
- type: FlowStatusModule.type;
3
- id?: string;
4
- job?: string;
5
- count?: number;
6
- iterator?: {
7
- index?: number;
8
- itered?: Array<any>;
9
- args?: any;
10
- };
11
- flow_jobs?: Array<string>;
12
- branch_chosen?: {
13
- type: FlowStatusModule.type;
14
- branch?: number;
15
- };
16
- branchall?: {
17
- branch: number;
18
- len: number;
19
- };
20
- approvers?: Array<{
21
- resume_id: number;
22
- approver: string;
23
- }>;
24
- };
25
- export declare namespace FlowStatusModule {
26
- enum type {
27
- WAITING_FOR_PRIOR_STEPS = "WaitingForPriorSteps",
28
- WAITING_FOR_EVENTS = "WaitingForEvents",
29
- WAITING_FOR_EXECUTOR = "WaitingForExecutor",
30
- IN_PROGRESS = "InProgress",
31
- SUCCESS = "Success",
32
- FAILURE = "Failure"
33
- }
34
- }
@@ -1,6 +0,0 @@
1
- import type { FlowModule } from './FlowModule';
2
- export type FlowValue = {
3
- modules: Array<FlowModule>;
4
- failure_module?: FlowModule;
5
- same_worker?: boolean;
6
- };
@@ -1,5 +0,0 @@
1
- export type Folder = {
2
- name: string;
3
- owners: Array<string>;
4
- extra_perms: Record<string, boolean>;
5
- };