windmill-client 1.250.0 → 1.252.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/dist/client.d.ts +1 -1
- package/dist/client.js +17 -0
- package/dist/core/OpenAPI.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -2
- package/dist/models/ConcurrencyGroup.d.ts +4 -0
- package/dist/models/ConcurrencyGroup.js +2 -0
- package/dist/models/ConcurrencyId.d.ts +1 -0
- package/dist/models/ConcurrencyId.js +2 -0
- package/dist/models/NewScript.d.ts +1 -0
- package/dist/models/WindmillFilePreview.d.ts +0 -1
- package/dist/services/ConcurrencyGroupsService.d.ts +18 -0
- package/dist/services/ConcurrencyGroupsService.js +33 -0
- package/dist/services/HelpersService.d.ts +11 -0
- package/dist/services/HelpersService.js +17 -0
- package/dist/services/WorkspaceService.d.ts +25 -0
- package/dist/services/WorkspaceService.js +30 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DenoS3LightClientSettings } from "./s3Types";
|
|
2
2
|
export { AdminService, AuditService, FlowService, GranularAclService, GroupService, JobService, ResourceService, VariableService, ScriptService, ScheduleService, SettingsService, UserService, WorkspaceService, } from "./index";
|
|
3
3
|
export type Sql = string;
|
|
4
4
|
export type Email = string;
|
package/dist/client.js
CHANGED
|
@@ -291,6 +291,23 @@ function denoS3LightClientSettings(s3_resource_path) {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
exports.denoS3LightClientSettings = denoS3LightClientSettings;
|
|
294
|
+
// export async function loadS3File(
|
|
295
|
+
// s3object: S3Object,
|
|
296
|
+
// s3ResourcePath: string | undefined
|
|
297
|
+
// ): Promise<Response> {
|
|
298
|
+
// const settings = await denoS3LightClientSettings(s3ResourcePath);
|
|
299
|
+
// const s3 = new S3Client(settings);
|
|
300
|
+
// return await s3.getObject(s3object.s3);
|
|
301
|
+
// }
|
|
302
|
+
// export async function writeS3File(
|
|
303
|
+
// s3object: S3Object,
|
|
304
|
+
// fileContent: ReadableStream<Uint8Array> | Uint8Array | string,
|
|
305
|
+
// s3ResourcePath: string | undefined
|
|
306
|
+
// ): Promise<Response> {
|
|
307
|
+
// const settings = await denoS3LightClientSettings(s3ResourcePath);
|
|
308
|
+
// const s3 = new S3Client(settings);
|
|
309
|
+
// return await s3.putObject(s3object.s3, fileContent);
|
|
310
|
+
// }
|
|
294
311
|
/**
|
|
295
312
|
* Get URLs needed for resuming a flow after this step
|
|
296
313
|
* @param approver approver name
|
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type { BranchAll } from './models/BranchAll';
|
|
|
15
15
|
export type { BranchOne } from './models/BranchOne';
|
|
16
16
|
export type { ClientName } from './models/ClientName';
|
|
17
17
|
export { CompletedJob } from './models/CompletedJob';
|
|
18
|
+
export type { ConcurrencyGroup } from './models/ConcurrencyGroup';
|
|
19
|
+
export type { ConcurrencyId } from './models/ConcurrencyId';
|
|
18
20
|
export type { ContextualVariable } from './models/ContextualVariable';
|
|
19
21
|
export type { CreatedBy } from './models/CreatedBy';
|
|
20
22
|
export type { CreatedOrStartedAfter } from './models/CreatedOrStartedAfter';
|
|
@@ -147,6 +149,7 @@ export { AdminService } from './services/AdminService';
|
|
|
147
149
|
export { AppService } from './services/AppService';
|
|
148
150
|
export { AuditService } from './services/AuditService';
|
|
149
151
|
export { CaptureService } from './services/CaptureService';
|
|
152
|
+
export { ConcurrencyGroupsService } from './services/ConcurrencyGroupsService';
|
|
150
153
|
export { ConfigService } from './services/ConfigService';
|
|
151
154
|
export { DraftService } from './services/DraftService';
|
|
152
155
|
export { FavoriteService } from './services/FavoriteService';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.denoS3LightClientSettings = exports.getIdToken = exports.getState = exports.setState = exports.getResumeUrls = exports.setResource = exports.getResource = exports.setVariable = exports.getVariable = exports.setClient = exports.WorkspaceService = exports.WorkerService = void 0;
|
|
3
|
+
exports.UserService = exports.SettingsService = exports.SettingService = exports.ScriptService = exports.ScheduleService = exports.ResourceService = exports.RawAppService = exports.OidcService = exports.OauthService = exports.MetricsService = exports.JobService = exports.IntegrationService = exports.InputService = exports.HelpersService = exports.GroupService = exports.GranularAclService = exports.FolderService = exports.FlowService = exports.FavoriteService = exports.DraftService = exports.ConfigService = exports.ConcurrencyGroupsService = exports.CaptureService = exports.AuditService = exports.AppService = exports.AdminService = exports.WindmillFilePreview = exports.Script = exports.RunnableType = exports.RawScriptForDependencies = exports.RawScript = exports.QueuedJob = exports.Preview = exports.Policy = exports.NewScript = exports.MainArgSignature = exports.ListableApp = exports.LargeFileStorage = exports.Job = exports.Http = exports.GlobalUserInfo = exports.FlowStatusModule = exports.CompletedJob = exports.AuditLog = exports.AppWithLastVersion = exports.ActionKind = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
|
+
exports.denoS3LightClientSettings = exports.getIdToken = exports.getState = exports.setState = exports.getResumeUrls = exports.setResource = exports.getResource = exports.setVariable = exports.getVariable = exports.setClient = exports.WorkspaceService = exports.WorkerService = exports.VariableService = void 0;
|
|
5
5
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
6
6
|
/* istanbul ignore file */
|
|
7
7
|
/* tslint:disable */
|
|
@@ -61,6 +61,8 @@ var AuditService_1 = require("./services/AuditService");
|
|
|
61
61
|
Object.defineProperty(exports, "AuditService", { enumerable: true, get: function () { return AuditService_1.AuditService; } });
|
|
62
62
|
var CaptureService_1 = require("./services/CaptureService");
|
|
63
63
|
Object.defineProperty(exports, "CaptureService", { enumerable: true, get: function () { return CaptureService_1.CaptureService; } });
|
|
64
|
+
var ConcurrencyGroupsService_1 = require("./services/ConcurrencyGroupsService");
|
|
65
|
+
Object.defineProperty(exports, "ConcurrencyGroupsService", { enumerable: true, get: function () { return ConcurrencyGroupsService_1.ConcurrencyGroupsService; } });
|
|
64
66
|
var ConfigService_1 = require("./services/ConfigService");
|
|
65
67
|
Object.defineProperty(exports, "ConfigService", { enumerable: true, get: function () { return ConfigService_1.ConfigService; } });
|
|
66
68
|
var DraftService_1 = require("./services/DraftService");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ConcurrencyId = string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ConcurrencyGroup } from '../models/ConcurrencyGroup';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class ConcurrencyGroupsService {
|
|
4
|
+
/**
|
|
5
|
+
* List all concurrency groups
|
|
6
|
+
* @returns ConcurrencyGroup all concurrency groups
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static listConcurrencyGroups(): CancelablePromise<Array<ConcurrencyGroup>>;
|
|
10
|
+
/**
|
|
11
|
+
* Delete concurrency group
|
|
12
|
+
* @returns any concurrency group removed
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static deleteConcurrencyGroup({ concurrencyId, }: {
|
|
16
|
+
concurrencyId: string;
|
|
17
|
+
}): CancelablePromise<any>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConcurrencyGroupsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class ConcurrencyGroupsService {
|
|
7
|
+
/**
|
|
8
|
+
* List all concurrency groups
|
|
9
|
+
* @returns ConcurrencyGroup all concurrency groups
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listConcurrencyGroups() {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/concurrency_groups/list',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Delete concurrency group
|
|
20
|
+
* @returns any concurrency group removed
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static deleteConcurrencyGroup({ concurrencyId, }) {
|
|
24
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
25
|
+
method: 'DELETE',
|
|
26
|
+
url: '/concurrency_groups/{concurrency_id}',
|
|
27
|
+
path: {
|
|
28
|
+
'concurrency_id': concurrencyId,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ConcurrencyGroupsService = ConcurrencyGroupsService;
|
|
@@ -148,6 +148,17 @@ export declare class HelpersService {
|
|
|
148
148
|
readBytesFrom?: number;
|
|
149
149
|
readBytesLength?: number;
|
|
150
150
|
}): CancelablePromise<WindmillFilePreview>;
|
|
151
|
+
/**
|
|
152
|
+
* Generate a unique URL to download the file
|
|
153
|
+
* @returns any Download URL
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
static generateDownloadUrl({ workspace, fileKey, }: {
|
|
157
|
+
workspace: string;
|
|
158
|
+
fileKey: string;
|
|
159
|
+
}): CancelablePromise<{
|
|
160
|
+
download_url: string;
|
|
161
|
+
}>;
|
|
151
162
|
/**
|
|
152
163
|
* Permanently delete file from S3
|
|
153
164
|
* @returns any Confirmation
|
|
@@ -156,6 +156,23 @@ class HelpersService {
|
|
|
156
156
|
},
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Generate a unique URL to download the file
|
|
161
|
+
* @returns any Download URL
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
static generateDownloadUrl({ workspace, fileKey, }) {
|
|
165
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
166
|
+
method: 'GET',
|
|
167
|
+
url: '/w/{workspace}/job_helpers/generate_download_url',
|
|
168
|
+
path: {
|
|
169
|
+
'workspace': workspace,
|
|
170
|
+
},
|
|
171
|
+
query: {
|
|
172
|
+
'file_key': fileKey,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
159
176
|
/**
|
|
160
177
|
* Permanently delete file from S3
|
|
161
178
|
* @returns any Confirmation
|
|
@@ -189,6 +189,7 @@ export declare class WorkspaceService {
|
|
|
189
189
|
error_handler_muted_on_cancel?: boolean;
|
|
190
190
|
large_file_storage?: LargeFileStorage;
|
|
191
191
|
git_sync?: Array<WorkspaceGitSync>;
|
|
192
|
+
default_app?: string;
|
|
192
193
|
}>;
|
|
193
194
|
/**
|
|
194
195
|
* get deploy to
|
|
@@ -362,6 +363,30 @@ export declare class WorkspaceService {
|
|
|
362
363
|
git_sync_settings?: Array<WorkspaceGitSync>;
|
|
363
364
|
};
|
|
364
365
|
}): CancelablePromise<any>;
|
|
366
|
+
/**
|
|
367
|
+
* edit default app for workspace
|
|
368
|
+
* @returns string status
|
|
369
|
+
* @throws ApiError
|
|
370
|
+
*/
|
|
371
|
+
static editWorkspaceDefaultApp({ workspace, requestBody, }: {
|
|
372
|
+
workspace: string;
|
|
373
|
+
/**
|
|
374
|
+
* Workspace default app
|
|
375
|
+
*/
|
|
376
|
+
requestBody: {
|
|
377
|
+
default_app_path?: string;
|
|
378
|
+
};
|
|
379
|
+
}): CancelablePromise<string>;
|
|
380
|
+
/**
|
|
381
|
+
* get default app for workspace
|
|
382
|
+
* @returns any status
|
|
383
|
+
* @throws ApiError
|
|
384
|
+
*/
|
|
385
|
+
static getWorkspaceDefaultApp({ workspace, }: {
|
|
386
|
+
workspace: string;
|
|
387
|
+
}): CancelablePromise<{
|
|
388
|
+
default_app_path?: string;
|
|
389
|
+
}>;
|
|
365
390
|
/**
|
|
366
391
|
* get large file storage config
|
|
367
392
|
* @returns LargeFileStorage status
|
|
@@ -423,6 +423,36 @@ class WorkspaceService {
|
|
|
423
423
|
mediaType: 'application/json',
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* edit default app for workspace
|
|
428
|
+
* @returns string status
|
|
429
|
+
* @throws ApiError
|
|
430
|
+
*/
|
|
431
|
+
static editWorkspaceDefaultApp({ workspace, requestBody, }) {
|
|
432
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
433
|
+
method: 'POST',
|
|
434
|
+
url: '/w/{workspace}/workspaces/edit_default_app',
|
|
435
|
+
path: {
|
|
436
|
+
'workspace': workspace,
|
|
437
|
+
},
|
|
438
|
+
body: requestBody,
|
|
439
|
+
mediaType: 'application/json',
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* get default app for workspace
|
|
444
|
+
* @returns any status
|
|
445
|
+
* @throws ApiError
|
|
446
|
+
*/
|
|
447
|
+
static getWorkspaceDefaultApp({ workspace, }) {
|
|
448
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
449
|
+
method: 'GET',
|
|
450
|
+
url: '/w/{workspace}/workspaces/default_app',
|
|
451
|
+
path: {
|
|
452
|
+
'workspace': workspace,
|
|
453
|
+
},
|
|
454
|
+
});
|
|
455
|
+
}
|
|
426
456
|
/**
|
|
427
457
|
* get large file storage config
|
|
428
458
|
* @returns LargeFileStorage status
|