windmill-components 1.13.0
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/LICENSE +661 -0
- package/common.d.ts +29 -0
- package/components/ArgInfo.svelte +48 -0
- package/components/ArgInput.svelte +277 -0
- package/components/AutosizedTextarea.svelte +34 -0
- package/components/Badge.svelte +12 -0
- package/components/Button.svelte +82 -0
- package/components/ButtonAndDropdown.svelte +25 -0
- package/components/CenteredPage.svelte +5 -0
- package/components/ChevronButton.svelte +21 -0
- package/components/DisplayResult.svelte +101 -0
- package/components/Dropdown.svelte +108 -0
- package/components/Editor.svelte +370 -0
- package/components/FieldHeader.svelte +21 -0
- package/components/FlowBuilder.svelte +202 -0
- package/components/FlowEditor.svelte +95 -0
- package/components/FlowPreview.svelte +141 -0
- package/components/FlowStatusViewer.svelte +137 -0
- package/components/GroupModal.svelte +90 -0
- package/components/IconedResourceType.svelte +32 -0
- package/components/InviteGlobalUser.svelte +56 -0
- package/components/InviteUser.svelte +48 -0
- package/components/ItemPicker.svelte +58 -0
- package/components/JobStatus.svelte +38 -0
- package/components/Modal.svelte +94 -0
- package/components/ModuleStep.svelte +64 -0
- package/components/Multiselect.svelte +327 -0
- package/components/ObjectResourceInput.svelte +62 -0
- package/components/ObjectTypeNarrowing.svelte +25 -0
- package/components/PageHeader.svelte +29 -0
- package/components/Password.svelte +45 -0
- package/components/Path.svelte +129 -0
- package/components/RadioButton.svelte +117 -0
- package/components/Required.svelte +11 -0
- package/components/ResourceEditor.svelte +260 -0
- package/components/ResourcePicker.svelte +21 -0
- package/components/ResourceTypePicker.svelte +71 -0
- package/components/RunForm.svelte +127 -0
- package/components/SchemaEditor.svelte +221 -0
- package/components/SchemaForm.svelte +166 -0
- package/components/SchemaModal.svelte +160 -0
- package/components/SchemaViewer.svelte +76 -0
- package/components/ScriptBuilder.svelte +293 -0
- package/components/ScriptEditor.svelte +669 -0
- package/components/ScriptPicker.svelte +110 -0
- package/components/ScriptSchema.svelte +71 -0
- package/components/ShareModal.svelte +135 -0
- package/components/SharedBadge.svelte +54 -0
- package/components/StringTypeNarrowing.svelte +101 -0
- package/components/Switch.svelte +61 -0
- package/components/TableCustom.svelte +39 -0
- package/components/TableSimple.svelte +66 -0
- package/components/Tabs.svelte +21 -0
- package/components/Tooltip.svelte +93 -0
- package/components/VariableEditor.svelte +159 -0
- package/components/icons/DbIcon.svelte +12 -0
- package/components/icons/Mail.svelte +62 -0
- package/components/icons/Mysql.svelte +77 -0
- package/components/icons/PostgresIcon.svelte +57 -0
- package/components/icons/Slack.svelte +26 -0
- package/gen/core/ApiError.d.ts +8 -0
- package/gen/core/ApiRequestOptions.d.ts +13 -0
- package/gen/core/ApiResult.d.ts +7 -0
- package/gen/core/CancelablePromise.d.ts +26 -0
- package/gen/core/OpenAPI.d.ts +16 -0
- package/gen/core/request.d.ts +13 -0
- package/gen/index.d.ts +59 -0
- package/gen/models/AuditLog.d.ts +32 -0
- package/gen/models/CompletedJob.d.ts +48 -0
- package/gen/models/ContextualVariable.d.ts +5 -0
- package/gen/models/CreateResource.d.ts +6 -0
- package/gen/models/CreateVariable.d.ts +6 -0
- package/gen/models/CreateWorkspace.d.ts +6 -0
- package/gen/models/EditResource.d.ts +5 -0
- package/gen/models/EditResourceType.d.ts +4 -0
- package/gen/models/EditSchedule.d.ts +7 -0
- package/gen/models/EditVariable.d.ts +6 -0
- package/gen/models/EditWorkspaceUser.d.ts +3 -0
- package/gen/models/Flow.d.ts +13 -0
- package/gen/models/FlowModule.d.ts +6 -0
- package/gen/models/FlowModuleValue.d.ts +10 -0
- package/gen/models/FlowPreview.d.ts +7 -0
- package/gen/models/FlowStatus.d.ts +6 -0
- package/gen/models/FlowStatusModule.d.ts +15 -0
- package/gen/models/FlowValue.d.ts +5 -0
- package/gen/models/GlobalUserInfo.d.ts +14 -0
- package/gen/models/Group.d.ts +6 -0
- package/gen/models/InputTransform.d.ts +12 -0
- package/gen/models/Job.d.ts +11 -0
- package/gen/models/ListableVariable.d.ts +8 -0
- package/gen/models/Login.d.ts +4 -0
- package/gen/models/MainArgSignature.d.ts +14 -0
- package/gen/models/NewSchedule.d.ts +9 -0
- package/gen/models/NewToken.d.ts +4 -0
- package/gen/models/NewUser.d.ts +5 -0
- package/gen/models/Preview.d.ts +13 -0
- package/gen/models/QueuedJob.d.ts +47 -0
- package/gen/models/Resource.d.ts +8 -0
- package/gen/models/ResourceType.d.ts +6 -0
- package/gen/models/Schedule.d.ts +13 -0
- package/gen/models/Script.d.ts +29 -0
- package/gen/models/ScriptArgs.d.ts +1 -0
- package/gen/models/TruncatedToken.d.ts +7 -0
- package/gen/models/User.d.ts +10 -0
- package/gen/models/UserWorkspaceList.d.ts +8 -0
- package/gen/models/WorkerPing.d.ts +8 -0
- package/gen/models/Workspace.d.ts +6 -0
- package/gen/models/WorkspaceInvite.d.ts +5 -0
- package/gen/services/AdminService.d.ts +35 -0
- package/gen/services/AuditService.d.ts +37 -0
- package/gen/services/FlowService.d.ts +82 -0
- package/gen/services/GranularAclService.d.ts +42 -0
- package/gen/services/GroupService.d.ts +94 -0
- package/gen/services/JobService.d.ts +217 -0
- package/gen/services/ResourceService.d.ts +116 -0
- package/gen/services/ScheduleService.d.ts +73 -0
- package/gen/services/ScriptService.d.ts +165 -0
- package/gen/services/SettingsService.d.ts +15 -0
- package/gen/services/UserService.d.ts +211 -0
- package/gen/services/VariableService.d.ts +66 -0
- package/gen/services/WorkerService.d.ts +15 -0
- package/gen/services/WorkspaceService.d.ts +137 -0
- package/infer.d.ts +2 -0
- package/lib/components/ArgInfo.svelte.d.ts +16 -0
- package/lib/components/ArgInput.svelte.d.ts +37 -0
- package/lib/components/AutosizedTextarea.svelte.d.ts +19 -0
- package/lib/components/Badge.svelte.d.ts +20 -0
- package/lib/components/Button.svelte.d.ts +23 -0
- package/lib/components/ButtonAndDropdown.svelte.d.ts +23 -0
- package/lib/components/CenteredPage.svelte.d.ts +23 -0
- package/lib/components/ChevronButton.svelte.d.ts +19 -0
- package/lib/components/DisplayResult.svelte.d.ts +16 -0
- package/lib/components/Dropdown.svelte.d.ts +22 -0
- package/lib/components/Editor.svelte.d.ts +38 -0
- package/lib/components/FieldHeader.svelte.d.ts +23 -0
- package/lib/components/FlowBuilder.svelte.d.ts +18 -0
- package/lib/components/FlowEditor.svelte.d.ts +19 -0
- package/lib/components/FlowPreview.svelte.d.ts +21 -0
- package/lib/components/FlowStatusViewer.svelte.d.ts +18 -0
- package/lib/components/GroupModal.svelte.d.ts +17 -0
- package/lib/components/IconedResourceType.svelte.d.ts +19 -0
- package/lib/components/InviteGlobalUser.svelte.d.ts +19 -0
- package/lib/components/InviteUser.svelte.d.ts +19 -0
- package/lib/components/ItemPicker.svelte.d.ts +24 -0
- package/lib/components/JobStatus.svelte.d.ts +17 -0
- package/lib/components/Modal.svelte.d.ts +28 -0
- package/lib/components/ModuleStep.svelte.d.ts +26 -0
- package/lib/components/Multiselect.svelte.d.ts +33 -0
- package/lib/components/ObjectResourceInput.svelte.d.ts +17 -0
- package/lib/components/ObjectTypeNarrowing.svelte.d.ts +16 -0
- package/lib/components/PageHeader.svelte.d.ts +20 -0
- package/lib/components/Password.svelte.d.ts +18 -0
- package/lib/components/Path.svelte.d.ts +26 -0
- package/lib/components/RadioButton.svelte.d.ts +21 -0
- package/lib/components/Required.svelte.d.ts +17 -0
- package/lib/components/ResourceEditor.svelte.d.ts +22 -0
- package/lib/components/ResourcePicker.svelte.d.ts +17 -0
- package/lib/components/ResourceTypePicker.svelte.d.ts +19 -0
- package/lib/components/RunForm.svelte.d.ts +22 -0
- package/lib/components/SchemaEditor.svelte.d.ts +22 -0
- package/lib/components/SchemaForm.svelte.d.ts +23 -0
- package/lib/components/SchemaModal.svelte.d.ts +44 -0
- package/lib/components/SchemaViewer.svelte.d.ts +17 -0
- package/lib/components/ScriptBuilder.svelte.d.ts +20 -0
- package/lib/components/ScriptEditor.svelte.d.ts +28 -0
- package/lib/components/ScriptPicker.svelte.d.ts +21 -0
- package/lib/components/ScriptSchema.svelte.d.ts +22 -0
- package/lib/components/ShareModal.svelte.d.ts +21 -0
- package/lib/components/SharedBadge.svelte.d.ts +17 -0
- package/lib/components/StringTypeNarrowing.svelte.d.ts +18 -0
- package/lib/components/Switch.svelte.d.ts +31 -0
- package/lib/components/TableCustom.svelte.d.ts +25 -0
- package/lib/components/TableSimple.svelte.d.ts +24 -0
- package/lib/components/Tabs.svelte.d.ts +20 -0
- package/lib/components/Tooltip.svelte.d.ts +20 -0
- package/lib/components/VariableEditor.svelte.d.ts +21 -0
- package/lib/components/icons/DbIcon.svelte.d.ts +17 -0
- package/lib/components/icons/Mail.svelte.d.ts +17 -0
- package/lib/components/icons/Mysql.svelte.d.ts +17 -0
- package/lib/components/icons/PostgresIcon.svelte.d.ts +17 -0
- package/lib/components/icons/Slack.svelte.d.ts +17 -0
- package/package.json +110 -0
- package/stores.d.ts +19 -0
- package/utils.d.ts +60 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class GranularAclService {
|
|
3
|
+
/**
|
|
4
|
+
* get granular acls
|
|
5
|
+
* @returns boolean acls
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static getGranularAcls({ workspace, path, kind, }: {
|
|
9
|
+
workspace: string;
|
|
10
|
+
path: string;
|
|
11
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow';
|
|
12
|
+
}): CancelablePromise<Record<string, boolean>>;
|
|
13
|
+
/**
|
|
14
|
+
* add granular acls
|
|
15
|
+
* @returns string granular acl added
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static addGranularAcls({ workspace, path, kind, requestBody, }: {
|
|
19
|
+
workspace: string;
|
|
20
|
+
path: string;
|
|
21
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow';
|
|
22
|
+
/** acl to add **/
|
|
23
|
+
requestBody: {
|
|
24
|
+
owner: string;
|
|
25
|
+
write?: boolean;
|
|
26
|
+
};
|
|
27
|
+
}): CancelablePromise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* remove granular acls
|
|
30
|
+
* @returns string granular acl removed
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static removeGranularAcls({ workspace, path, kind, requestBody, }: {
|
|
34
|
+
workspace: string;
|
|
35
|
+
path: string;
|
|
36
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow';
|
|
37
|
+
/** acl to add **/
|
|
38
|
+
requestBody: {
|
|
39
|
+
owner: string;
|
|
40
|
+
};
|
|
41
|
+
}): CancelablePromise<string>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Group } from '../models/Group';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class GroupService {
|
|
4
|
+
/**
|
|
5
|
+
* list groups
|
|
6
|
+
* @returns Group group list
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static listGroups({ workspace, page, perPage, }: {
|
|
10
|
+
workspace: string;
|
|
11
|
+
/** which page to return (start at 1, default 1) **/
|
|
12
|
+
page?: number;
|
|
13
|
+
/** number of items to return for a given page (default 30, max 100) **/
|
|
14
|
+
perPage?: number;
|
|
15
|
+
}): CancelablePromise<Array<Group>>;
|
|
16
|
+
/**
|
|
17
|
+
* list group names
|
|
18
|
+
* @returns string group list
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static listGroupNames({ workspace, }: {
|
|
22
|
+
workspace: string;
|
|
23
|
+
}): CancelablePromise<Array<string>>;
|
|
24
|
+
/**
|
|
25
|
+
* create group
|
|
26
|
+
* @returns string group created
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static createGroup({ workspace, requestBody, }: {
|
|
30
|
+
workspace: string;
|
|
31
|
+
/** create group **/
|
|
32
|
+
requestBody: {
|
|
33
|
+
name: string;
|
|
34
|
+
summary?: string;
|
|
35
|
+
};
|
|
36
|
+
}): CancelablePromise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* update group
|
|
39
|
+
* @returns string group updated
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static updateGroup({ workspace, name, requestBody, }: {
|
|
43
|
+
workspace: string;
|
|
44
|
+
name: string;
|
|
45
|
+
/** updated group **/
|
|
46
|
+
requestBody: {
|
|
47
|
+
summary?: string;
|
|
48
|
+
};
|
|
49
|
+
}): CancelablePromise<string>;
|
|
50
|
+
/**
|
|
51
|
+
* delete group
|
|
52
|
+
* @returns string group deleted
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
static deleteGroup({ workspace, name, }: {
|
|
56
|
+
workspace: string;
|
|
57
|
+
name: string;
|
|
58
|
+
}): CancelablePromise<string>;
|
|
59
|
+
/**
|
|
60
|
+
* get group
|
|
61
|
+
* @returns Group group
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static getGroup({ workspace, name, }: {
|
|
65
|
+
workspace: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}): CancelablePromise<Group>;
|
|
68
|
+
/**
|
|
69
|
+
* add user to group
|
|
70
|
+
* @returns string user added to group
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
static addUserToGroup({ workspace, name, requestBody, }: {
|
|
74
|
+
workspace: string;
|
|
75
|
+
name: string;
|
|
76
|
+
/** added user to group **/
|
|
77
|
+
requestBody: {
|
|
78
|
+
username?: string;
|
|
79
|
+
};
|
|
80
|
+
}): CancelablePromise<string>;
|
|
81
|
+
/**
|
|
82
|
+
* remove user to group
|
|
83
|
+
* @returns string user removed from group
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static removeUserToGroup({ workspace, name, requestBody, }: {
|
|
87
|
+
workspace: string;
|
|
88
|
+
name: string;
|
|
89
|
+
/** added user to group **/
|
|
90
|
+
requestBody: {
|
|
91
|
+
username?: string;
|
|
92
|
+
};
|
|
93
|
+
}): CancelablePromise<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import type { CompletedJob } from '../models/CompletedJob';
|
|
2
|
+
import type { FlowPreview } from '../models/FlowPreview';
|
|
3
|
+
import type { Job } from '../models/Job';
|
|
4
|
+
import type { Preview } from '../models/Preview';
|
|
5
|
+
import type { QueuedJob } from '../models/QueuedJob';
|
|
6
|
+
import type { ScriptArgs } from '../models/ScriptArgs';
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
export declare class JobService {
|
|
9
|
+
/**
|
|
10
|
+
* run script by path
|
|
11
|
+
* @returns string job created
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
15
|
+
workspace: string;
|
|
16
|
+
path: string;
|
|
17
|
+
/** script args **/
|
|
18
|
+
requestBody: ScriptArgs;
|
|
19
|
+
/** when to schedule this job (leave empty for immediate run) **/
|
|
20
|
+
scheduledFor?: string;
|
|
21
|
+
/** schedule the script to execute in the number of seconds starting now **/
|
|
22
|
+
scheduledInSecs?: number;
|
|
23
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
24
|
+
parentJob?: string;
|
|
25
|
+
}): CancelablePromise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* run flow by path
|
|
28
|
+
* @returns string job created
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static runFlowByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
32
|
+
workspace: string;
|
|
33
|
+
path: string;
|
|
34
|
+
/** flow args **/
|
|
35
|
+
requestBody: ScriptArgs;
|
|
36
|
+
/** when to schedule this job (leave empty for immediate run) **/
|
|
37
|
+
scheduledFor?: string;
|
|
38
|
+
/** schedule the script to execute in the number of seconds starting now **/
|
|
39
|
+
scheduledInSecs?: number;
|
|
40
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
41
|
+
parentJob?: string;
|
|
42
|
+
}): CancelablePromise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* run script by hash
|
|
45
|
+
* @returns string job created
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, }: {
|
|
49
|
+
workspace: string;
|
|
50
|
+
hash: string;
|
|
51
|
+
/** Partially filled args **/
|
|
52
|
+
requestBody: any;
|
|
53
|
+
/** when to schedule this job (leave empty for immediate run) **/
|
|
54
|
+
scheduledFor?: string;
|
|
55
|
+
/** schedule the script to execute in the number of seconds starting now **/
|
|
56
|
+
scheduledInSecs?: number;
|
|
57
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
58
|
+
parentJob?: string;
|
|
59
|
+
}): CancelablePromise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* run script preview
|
|
62
|
+
* @returns string job created
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static runScriptPreview({ workspace, requestBody, }: {
|
|
66
|
+
workspace: string;
|
|
67
|
+
/** previw **/
|
|
68
|
+
requestBody: Preview;
|
|
69
|
+
}): CancelablePromise<string>;
|
|
70
|
+
/**
|
|
71
|
+
* run flow preview
|
|
72
|
+
* @returns string job created
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static runFlowPreview({ workspace, requestBody, }: {
|
|
76
|
+
workspace: string;
|
|
77
|
+
/** preview **/
|
|
78
|
+
requestBody: FlowPreview;
|
|
79
|
+
}): CancelablePromise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* list all available queued jobs
|
|
82
|
+
* @returns QueuedJob All available queued jobs
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }: {
|
|
86
|
+
workspace: string;
|
|
87
|
+
/** order by desc order (default true) **/
|
|
88
|
+
orderDesc?: boolean;
|
|
89
|
+
/** mask to filter exact matching user creator **/
|
|
90
|
+
createdBy?: string;
|
|
91
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
92
|
+
parentJob?: string;
|
|
93
|
+
/** mask to filter exact matching path **/
|
|
94
|
+
scriptPathExact?: string;
|
|
95
|
+
/** mask to filter matching starting path **/
|
|
96
|
+
scriptPathStart?: string;
|
|
97
|
+
/** mask to filter exact matching path **/
|
|
98
|
+
scriptHash?: string;
|
|
99
|
+
/** filter on created before (inclusive) timestamp **/
|
|
100
|
+
createdBefore?: string;
|
|
101
|
+
/** filter on created after (exclusive) timestamp **/
|
|
102
|
+
createdAfter?: string;
|
|
103
|
+
/** filter on successful jobs **/
|
|
104
|
+
success?: boolean;
|
|
105
|
+
/** filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by, **/
|
|
106
|
+
jobKinds?: string;
|
|
107
|
+
}): CancelablePromise<Array<QueuedJob>>;
|
|
108
|
+
/**
|
|
109
|
+
* list all available completed jobs
|
|
110
|
+
* @returns CompletedJob All available completed jobs
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, success, jobKinds, }: {
|
|
114
|
+
workspace: string;
|
|
115
|
+
/** order by desc order (default true) **/
|
|
116
|
+
orderDesc?: boolean;
|
|
117
|
+
/** mask to filter exact matching user creator **/
|
|
118
|
+
createdBy?: string;
|
|
119
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
120
|
+
parentJob?: string;
|
|
121
|
+
/** mask to filter exact matching path **/
|
|
122
|
+
scriptPathExact?: string;
|
|
123
|
+
/** mask to filter matching starting path **/
|
|
124
|
+
scriptPathStart?: string;
|
|
125
|
+
/** mask to filter exact matching path **/
|
|
126
|
+
scriptHash?: string;
|
|
127
|
+
/** filter on created before (inclusive) timestamp **/
|
|
128
|
+
createdBefore?: string;
|
|
129
|
+
/** filter on created after (exclusive) timestamp **/
|
|
130
|
+
createdAfter?: string;
|
|
131
|
+
/** filter on successful jobs **/
|
|
132
|
+
success?: boolean;
|
|
133
|
+
/** filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by, **/
|
|
134
|
+
jobKinds?: string;
|
|
135
|
+
}): CancelablePromise<Array<CompletedJob>>;
|
|
136
|
+
/**
|
|
137
|
+
* list all available jobs
|
|
138
|
+
* @returns Job All jobs
|
|
139
|
+
* @throws ApiError
|
|
140
|
+
*/
|
|
141
|
+
static listJobs({ workspace, createdBy, parentJob, scriptPathExact, scriptPathStart, scriptHash, createdBefore, createdAfter, jobKinds, success, }: {
|
|
142
|
+
workspace: string;
|
|
143
|
+
/** mask to filter exact matching user creator **/
|
|
144
|
+
createdBy?: string;
|
|
145
|
+
/** The parent job that is at the origin and responsible for the execution of this script if any **/
|
|
146
|
+
parentJob?: string;
|
|
147
|
+
/** mask to filter exact matching path **/
|
|
148
|
+
scriptPathExact?: string;
|
|
149
|
+
/** mask to filter matching starting path **/
|
|
150
|
+
scriptPathStart?: string;
|
|
151
|
+
/** mask to filter exact matching path **/
|
|
152
|
+
scriptHash?: string;
|
|
153
|
+
/** filter on created before (inclusive) timestamp **/
|
|
154
|
+
createdBefore?: string;
|
|
155
|
+
/** filter on created after (exclusive) timestamp **/
|
|
156
|
+
createdAfter?: string;
|
|
157
|
+
/** filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by, **/
|
|
158
|
+
jobKinds?: string;
|
|
159
|
+
/** filter on successful jobs **/
|
|
160
|
+
success?: boolean;
|
|
161
|
+
}): CancelablePromise<Array<Job>>;
|
|
162
|
+
/**
|
|
163
|
+
* get job
|
|
164
|
+
* @returns Job job details
|
|
165
|
+
* @throws ApiError
|
|
166
|
+
*/
|
|
167
|
+
static getJob({ workspace, id, }: {
|
|
168
|
+
workspace: string;
|
|
169
|
+
id: string;
|
|
170
|
+
}): CancelablePromise<Job>;
|
|
171
|
+
/**
|
|
172
|
+
* get job updates
|
|
173
|
+
* @returns any job details
|
|
174
|
+
* @throws ApiError
|
|
175
|
+
*/
|
|
176
|
+
static getJobUpdates({ workspace, id, running, logOffset, }: {
|
|
177
|
+
workspace: string;
|
|
178
|
+
id: string;
|
|
179
|
+
running?: boolean;
|
|
180
|
+
logOffset?: number;
|
|
181
|
+
}): CancelablePromise<{
|
|
182
|
+
running?: boolean;
|
|
183
|
+
completed?: boolean;
|
|
184
|
+
new_logs?: string;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* get completed job
|
|
188
|
+
* @returns CompletedJob job details
|
|
189
|
+
* @throws ApiError
|
|
190
|
+
*/
|
|
191
|
+
static getCompletedJob({ workspace, id, }: {
|
|
192
|
+
workspace: string;
|
|
193
|
+
id: string;
|
|
194
|
+
}): CancelablePromise<CompletedJob>;
|
|
195
|
+
/**
|
|
196
|
+
* delete completed job (erase content but keep run id)
|
|
197
|
+
* @returns CompletedJob job details
|
|
198
|
+
* @throws ApiError
|
|
199
|
+
*/
|
|
200
|
+
static deleteCompletedJob({ workspace, id, }: {
|
|
201
|
+
workspace: string;
|
|
202
|
+
id: string;
|
|
203
|
+
}): CancelablePromise<CompletedJob>;
|
|
204
|
+
/**
|
|
205
|
+
* cancel queued job
|
|
206
|
+
* @returns string job canceled
|
|
207
|
+
* @throws ApiError
|
|
208
|
+
*/
|
|
209
|
+
static cancelQueuedJob({ workspace, id, requestBody, }: {
|
|
210
|
+
workspace: string;
|
|
211
|
+
id: string;
|
|
212
|
+
/** reason **/
|
|
213
|
+
requestBody: {
|
|
214
|
+
reason?: string;
|
|
215
|
+
};
|
|
216
|
+
}): CancelablePromise<string>;
|
|
217
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { CreateResource } from '../models/CreateResource';
|
|
2
|
+
import type { EditResource } from '../models/EditResource';
|
|
3
|
+
import type { EditResourceType } from '../models/EditResourceType';
|
|
4
|
+
import type { Resource } from '../models/Resource';
|
|
5
|
+
import type { ResourceType } from '../models/ResourceType';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
export declare class ResourceService {
|
|
8
|
+
/**
|
|
9
|
+
* create resource
|
|
10
|
+
* @returns string resource created
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static createResource({ workspace, requestBody, }: {
|
|
14
|
+
workspace: string;
|
|
15
|
+
/** new resource **/
|
|
16
|
+
requestBody: CreateResource;
|
|
17
|
+
}): CancelablePromise<string>;
|
|
18
|
+
/**
|
|
19
|
+
* delete resource
|
|
20
|
+
* @returns string resource deleted
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static deleteResource({ workspace, path, }: {
|
|
24
|
+
workspace: string;
|
|
25
|
+
path: string;
|
|
26
|
+
}): CancelablePromise<string>;
|
|
27
|
+
/**
|
|
28
|
+
* update resource
|
|
29
|
+
* @returns string resource updated
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static updateResource({ workspace, path, requestBody, }: {
|
|
33
|
+
workspace: string;
|
|
34
|
+
path: string;
|
|
35
|
+
/** updated resource **/
|
|
36
|
+
requestBody: EditResource;
|
|
37
|
+
}): CancelablePromise<string>;
|
|
38
|
+
/**
|
|
39
|
+
* get resource
|
|
40
|
+
* @returns Resource resource deleted
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static getResource({ workspace, path, }: {
|
|
44
|
+
workspace: string;
|
|
45
|
+
path: string;
|
|
46
|
+
}): CancelablePromise<Resource>;
|
|
47
|
+
/**
|
|
48
|
+
* list resources
|
|
49
|
+
* @returns Resource resource list
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static listResource({ workspace, page, perPage, resourceType, }: {
|
|
53
|
+
workspace: string;
|
|
54
|
+
/** which page to return (start at 1, default 1) **/
|
|
55
|
+
page?: number;
|
|
56
|
+
/** number of items to return for a given page (default 30, max 100) **/
|
|
57
|
+
perPage?: number;
|
|
58
|
+
/** resource_type to list from **/
|
|
59
|
+
resourceType?: string;
|
|
60
|
+
}): CancelablePromise<Array<Resource>>;
|
|
61
|
+
/**
|
|
62
|
+
* create resource_type
|
|
63
|
+
* @returns string resource_type created
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
static createResourceType({ workspace, requestBody, }: {
|
|
67
|
+
workspace: string;
|
|
68
|
+
/** new resource_type **/
|
|
69
|
+
requestBody: ResourceType;
|
|
70
|
+
}): CancelablePromise<string>;
|
|
71
|
+
/**
|
|
72
|
+
* delete resource_type
|
|
73
|
+
* @returns string resource_type deleted
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
static deleteResourceType({ workspace, path, }: {
|
|
77
|
+
workspace: string;
|
|
78
|
+
path: string;
|
|
79
|
+
}): CancelablePromise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* update resource_type
|
|
82
|
+
* @returns string resource_type updated
|
|
83
|
+
* @throws ApiError
|
|
84
|
+
*/
|
|
85
|
+
static updateResourceType({ workspace, path, requestBody, }: {
|
|
86
|
+
workspace: string;
|
|
87
|
+
path: string;
|
|
88
|
+
/** updated resource_type **/
|
|
89
|
+
requestBody: EditResourceType;
|
|
90
|
+
}): CancelablePromise<string>;
|
|
91
|
+
/**
|
|
92
|
+
* get resource_type
|
|
93
|
+
* @returns ResourceType resource_type deleted
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static getResourceType({ workspace, path, }: {
|
|
97
|
+
workspace: string;
|
|
98
|
+
path: string;
|
|
99
|
+
}): CancelablePromise<ResourceType>;
|
|
100
|
+
/**
|
|
101
|
+
* list resource_types
|
|
102
|
+
* @returns ResourceType resource_type list
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
static listResourceType({ workspace, }: {
|
|
106
|
+
workspace: string;
|
|
107
|
+
}): CancelablePromise<Array<ResourceType>>;
|
|
108
|
+
/**
|
|
109
|
+
* list resource_types names
|
|
110
|
+
* @returns string resource_type list
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static listResourceTypeNames({ workspace, }: {
|
|
114
|
+
workspace: string;
|
|
115
|
+
}): CancelablePromise<Array<string>>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { EditSchedule } from '../models/EditSchedule';
|
|
2
|
+
import type { NewSchedule } from '../models/NewSchedule';
|
|
3
|
+
import type { Schedule } from '../models/Schedule';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class ScheduleService {
|
|
6
|
+
/**
|
|
7
|
+
* preview schedule
|
|
8
|
+
* @returns string the preview of the next 10 time this schedule would apply to
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static previewSchedule({ requestBody, }: {
|
|
12
|
+
/** schedule **/
|
|
13
|
+
requestBody: {
|
|
14
|
+
schedule: string;
|
|
15
|
+
offset?: number;
|
|
16
|
+
};
|
|
17
|
+
}): CancelablePromise<Array<string>>;
|
|
18
|
+
/**
|
|
19
|
+
* create schedule
|
|
20
|
+
* @returns string schedule created
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static createSchedule({ workspace, requestBody, }: {
|
|
24
|
+
workspace: string;
|
|
25
|
+
/** new schedule **/
|
|
26
|
+
requestBody: NewSchedule;
|
|
27
|
+
}): CancelablePromise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* update schedule
|
|
30
|
+
* @returns string schedule updated
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static updateSchedule({ workspace, path, requestBody, }: {
|
|
34
|
+
workspace: string;
|
|
35
|
+
path: string;
|
|
36
|
+
/** updated schedule **/
|
|
37
|
+
requestBody: EditSchedule;
|
|
38
|
+
}): CancelablePromise<string>;
|
|
39
|
+
/**
|
|
40
|
+
* set enabled schedule
|
|
41
|
+
* @returns string schedule enabled set
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static setScheduleEnabled({ workspace, path, requestBody, }: {
|
|
45
|
+
workspace: string;
|
|
46
|
+
path: string;
|
|
47
|
+
/** updated schedule enable **/
|
|
48
|
+
requestBody: {
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
};
|
|
51
|
+
}): CancelablePromise<string>;
|
|
52
|
+
/**
|
|
53
|
+
* get schedule
|
|
54
|
+
* @returns Schedule schedule deleted
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static getSchedule({ workspace, path, }: {
|
|
58
|
+
workspace: string;
|
|
59
|
+
path: string;
|
|
60
|
+
}): CancelablePromise<Schedule>;
|
|
61
|
+
/**
|
|
62
|
+
* list schedules
|
|
63
|
+
* @returns Schedule schedule list
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
static listSchedules({ workspace, page, perPage, }: {
|
|
67
|
+
workspace: string;
|
|
68
|
+
/** which page to return (start at 1, default 1) **/
|
|
69
|
+
page?: number;
|
|
70
|
+
/** number of items to return for a given page (default 30, max 100) **/
|
|
71
|
+
perPage?: number;
|
|
72
|
+
}): CancelablePromise<Array<Schedule>>;
|
|
73
|
+
}
|