Skip to content
Snippets Groups Projects
Commit c3481008 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'feature/158-upgrade-to-eslint-9-and-replace-openapi-generator' into 'main'

Resolve "Upgrade to eslint 9 and replace openapi generator"

Closes #158

See merge request !156
parents 0efa92db 53f1ac11
No related branches found
No related tags found
1 merge request!156Resolve "Upgrade to eslint 9 and replace openapi generator"
Showing
with 2033 additions and 2060 deletions
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
],
};
import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import prettierConfig from "@vue/eslint-config-prettier";
import { includeIgnoreFile } from "@eslint/compat";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, ".gitignore");
export default [
// add more generic rulesets here, such as:
// js.configs.recommended,
...pluginVue.configs["flat/recommended"],
...vueTsEslintConfig(),
prettierConfig,
includeIgnoreFile(gitignorePath),
{
files: ["**/*.ts", "**/*.js", "**/*.vue"],
},
{
files: ["src/components/parameter-schema/**/*.vue"],
rules: {
"vue/require-default-prop": "off",
"vue/require-prop-types": "off",
},
},
];
This diff is collapsed.
import { defineConfig } from "@hey-api/openapi-ts";
export default defineConfig({
client: "@hey-api/client-axios",
input: "./openapi-clowm.json",
output: {
lint: "eslint",
format: "prettier",
path: "src/client",
},
services: {
asClass: true,
},
schemas: false,
types: {
enums: "typescript",
},
});
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -9,14 +9,15 @@ ...@@ -9,14 +9,15 @@
"preview": "vite preview --port 5173", "preview": "vite preview --port 5173",
"build-only": "vite build", "build-only": "vite build",
"type-check": "vue-tsc --noEmit", "type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "lint": "eslint --fix .",
"generate-clowm-client": "openapi --input http://localhost:9999/api/openapi.json --output src/client --client axios" "generate-clowm-client": "openapi-ts"
}, },
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.637.0", "@aws-sdk/client-s3": "^3.637.0",
"@aws-sdk/lib-storage": "^3.637.0", "@aws-sdk/lib-storage": "^3.637.0",
"@aws-sdk/s3-request-presigner": "^3.637.0", "@aws-sdk/s3-request-presigner": "^3.637.0",
"@fortawesome/fontawesome-free": "~6.6.0", "@fortawesome/fontawesome-free": "~6.6.0",
"@hey-api/client-axios": "^0.2.7",
"@popperjs/core": "~2.11.8", "@popperjs/core": "~2.11.8",
"ajv": "~8.17.0", "ajv": "~8.17.0",
"bootstrap": "~5.3.0", "bootstrap": "~5.3.0",
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
"filesize": "~10.1.0", "filesize": "~10.1.0",
"idb-keyval": "^6.2.1", "idb-keyval": "^6.2.1",
"pinia": "~2.2.0", "pinia": "~2.2.0",
"qs": "^6.13.0",
"semver": "~7.6.0", "semver": "~7.6.0",
"showdown": "~2.1.0", "showdown": "~2.1.0",
"sortablejs": "^1.15.2", "sortablejs": "^1.15.2",
...@@ -36,24 +38,25 @@ ...@@ -36,24 +38,25 @@
"vue3-cookies": "~1.0.0" "vue3-cookies": "~1.0.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/compat": "^1.2.0",
"@hey-api/openapi-ts": "^0.53.9",
"@rushstack/eslint-patch": "~1.10.0", "@rushstack/eslint-patch": "~1.10.0",
"@tsconfig/node20": "^20.1.2", "@tsconfig/node20": "^20.1.2",
"@types/bootstrap": "~5.2.0", "@types/bootstrap": "~5.2.0",
"@types/dompurify": "~3.0.0", "@types/dompurify": "~3.0.0",
"@types/node": "^20.11.0", "@types/node": "^20.11.0",
"@types/qs": "^6.9.16",
"@types/semver": "~7.5.1", "@types/semver": "~7.5.1",
"@types/showdown": "~2.0.1", "@types/showdown": "~2.0.1",
"@types/sortablejs": "^1.15.7", "@types/sortablejs": "^1.15.7",
"@vitejs/plugin-vue": "~5.1.0", "@vitejs/plugin-vue": "~5.1.0",
"@vue/eslint-config-prettier": "~9.0.0", "@vue/eslint-config-prettier": "~10.0.0",
"@vue/eslint-config-typescript": "~13.0.0", "@vue/eslint-config-typescript": "~14.0.0",
"@vue/tsconfig": "~0.5.0", "@vue/tsconfig": "~0.5.0",
"axios": "~1.7.0", "eslint": "~9.12.0",
"eslint": "~8.57.0",
"eslint-plugin-vue": "~9.28.0", "eslint-plugin-vue": "~9.28.0",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"npm-run-all": "~4.1.5", "npm-run-all": "~4.1.5",
"openapi-typescript-codegen": "^0.29.0",
"prettier": "~3.3.0", "prettier": "~3.3.0",
"sass": "^1.66.0", "sass": "^1.66.0",
"typescript": "~5.5.0", "typescript": "~5.5.0",
......
...@@ -3,9 +3,8 @@ import { onBeforeMount, onMounted } from "vue"; ...@@ -3,9 +3,8 @@ import { onBeforeMount, onMounted } from "vue";
import { useCookies } from "vue3-cookies"; import { useCookies } from "vue3-cookies";
import { useUserStore } from "@/stores/users"; import { useUserStore } from "@/stores/users";
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
import { OpenAPI } from "@/client"; import { client } from "@/client/services.gen";
import { environment } from "@/environment"; import { environment } from "@/environment";
import axios from "axios";
import { useNameStore } from "@/stores/names"; import { useNameStore } from "@/stores/names";
import AppHeader from "@/components/AppHeader.vue"; import AppHeader from "@/components/AppHeader.vue";
import AppFooter from "@/components/AppFooter.vue"; import AppFooter from "@/components/AppFooter.vue";
...@@ -13,6 +12,7 @@ import { useResourceStore } from "@/stores/resources"; ...@@ -13,6 +12,7 @@ import { useResourceStore } from "@/stores/resources";
import { useWorkflowStore } from "@/stores/workflows"; import { useWorkflowStore } from "@/stores/workflows";
import { useBucketStore } from "@/stores/buckets"; import { useBucketStore } from "@/stores/buckets";
import { useS3KeyStore } from "@/stores/s3keys"; import { useS3KeyStore } from "@/stores/s3keys";
import { stringify as param_stringify } from "qs";
const { cookies } = useCookies(); const { cookies } = useCookies();
const router = useRouter(); const router = useRouter();
...@@ -25,12 +25,16 @@ const bucketRepository = useBucketStore(); ...@@ -25,12 +25,16 @@ const bucketRepository = useBucketStore();
const s3KeyRepository = useS3KeyStore(); const s3KeyRepository = useS3KeyStore();
onBeforeMount(() => { onBeforeMount(() => {
OpenAPI.BASE = environment.API_BASE_URL; client.setConfig({
baseURL: environment.API_BASE_URL,
paramsSerializer: (params) =>
param_stringify(params, { arrayFormat: "repeat" }),
});
userRepository.updateJWT(cookies.get("clowm-jwt")); userRepository.updateJWT(cookies.get("clowm-jwt"));
if (userRepository.authenticated) { if (userRepository.authenticated) {
userRepository.getCurrentUser(); userRepository.getCurrentUser();
} }
axios.interceptors.response.use( client.instance.interceptors.response.use(
(res) => res, (res) => res,
(err) => { (err) => {
if ( if (
...@@ -43,7 +47,9 @@ onBeforeMount(() => { ...@@ -43,7 +47,9 @@ onBeforeMount(() => {
name: "login", name: "login",
query: { query: {
login_error: login_error:
err.response.status === 401 ? "token_invalid" : "token_expired", err.response.status === 401
? "session token invalid"
: "session expired",
next: route.name !== "login" ? encodeURI(route.path) : undefined, next: route.name !== "login" ? encodeURI(route.path) : undefined,
}, },
}); });
......
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from './ApiResult';
export class ApiError extends Error {
public readonly url: string;
public readonly status: number;
public readonly statusText: string;
public readonly body: any;
public readonly request: ApiRequestOptions;
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
super(message);
this.name = 'ApiError';
this.url = response.url;
this.status = response.status;
this.statusText = response.statusText;
this.body = response.body;
this.request = request;
}
}
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ApiRequestOptions = {
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
readonly url: string;
readonly path?: Record<string, any>;
readonly cookies?: Record<string, any>;
readonly headers?: Record<string, any>;
readonly query?: Record<string, any>;
readonly formData?: Record<string, any>;
readonly body?: any;
readonly mediaType?: string;
readonly responseHeader?: string;
readonly errors?: Record<number, string>;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ApiResult = {
readonly url: string;
readonly ok: boolean;
readonly status: number;
readonly statusText: string;
readonly body: any;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export class CancelError extends Error {
constructor(message: string) {
super(message);
this.name = 'CancelError';
}
public get isCancelled(): boolean {
return true;
}
}
export interface OnCancel {
readonly isResolved: boolean;
readonly isRejected: boolean;
readonly isCancelled: boolean;
(cancelHandler: () => void): void;
}
export class CancelablePromise<T> implements Promise<T> {
#isResolved: boolean;
#isRejected: boolean;
#isCancelled: boolean;
readonly #cancelHandlers: (() => void)[];
readonly #promise: Promise<T>;
#resolve?: (value: T | PromiseLike<T>) => void;
#reject?: (reason?: any) => void;
constructor(
executor: (
resolve: (value: T | PromiseLike<T>) => void,
reject: (reason?: any) => void,
onCancel: OnCancel
) => void
) {
this.#isResolved = false;
this.#isRejected = false;
this.#isCancelled = false;
this.#cancelHandlers = [];
this.#promise = new Promise<T>((resolve, reject) => {
this.#resolve = resolve;
this.#reject = reject;
const onResolve = (value: T | PromiseLike<T>): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#isResolved = true;
if (this.#resolve) this.#resolve(value);
};
const onReject = (reason?: any): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#isRejected = true;
if (this.#reject) this.#reject(reason);
};
const onCancel = (cancelHandler: () => void): void => {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#cancelHandlers.push(cancelHandler);
};
Object.defineProperty(onCancel, 'isResolved', {
get: (): boolean => this.#isResolved,
});
Object.defineProperty(onCancel, 'isRejected', {
get: (): boolean => this.#isRejected,
});
Object.defineProperty(onCancel, 'isCancelled', {
get: (): boolean => this.#isCancelled,
});
return executor(onResolve, onReject, onCancel as OnCancel);
});
}
get [Symbol.toStringTag]() {
return "Cancellable Promise";
}
public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
): Promise<TResult1 | TResult2> {
return this.#promise.then(onFulfilled, onRejected);
}
public catch<TResult = never>(
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
): Promise<T | TResult> {
return this.#promise.catch(onRejected);
}
public finally(onFinally?: (() => void) | null): Promise<T> {
return this.#promise.finally(onFinally);
}
public cancel(): void {
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
return;
}
this.#isCancelled = true;
if (this.#cancelHandlers.length) {
try {
for (const cancelHandler of this.#cancelHandlers) {
cancelHandler();
}
} catch (error) {
console.warn('Cancellation threw an error', error);
return;
}
}
this.#cancelHandlers.length = 0;
if (this.#reject) this.#reject(new CancelError('Request aborted'));
}
public get isCancelled(): boolean {
return this.#isCancelled;
}
}
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ApiRequestOptions } from './ApiRequestOptions';
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>;
export type OpenAPIConfig = {
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: 'include' | 'omit' | 'same-origin';
TOKEN?: string | Resolver<string> | undefined;
USERNAME?: string | Resolver<string> | undefined;
PASSWORD?: string | Resolver<string> | undefined;
HEADERS?: Headers | Resolver<Headers> | undefined;
ENCODE_PATH?: ((path: string) => string) | undefined;
};
export const OpenAPI: OpenAPIConfig = {
BASE: '/api',
VERSION: '1.0.0',
WITH_CREDENTIALS: false,
CREDENTIALS: 'include',
TOKEN: undefined,
USERNAME: undefined,
PASSWORD: undefined,
HEADERS: undefined,
ENCODE_PATH: undefined,
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import axios from 'axios';
import type { AxiosError, AxiosRequestConfig, AxiosResponse, AxiosInstance } from 'axios';
import FormData from 'form-data';
import { ApiError } from './ApiError';
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiResult } from './ApiResult';
import { CancelablePromise } from './CancelablePromise';
import type { OnCancel } from './CancelablePromise';
import type { OpenAPIConfig } from './OpenAPI';
export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
return value !== undefined && value !== null;
};
export const isString = (value: any): value is string => {
return typeof value === 'string';
};
export const isStringWithValue = (value: any): value is string => {
return isString(value) && value !== '';
};
export const isBlob = (value: any): value is Blob => {
return (
typeof value === 'object' &&
typeof value.type === 'string' &&
typeof value.stream === 'function' &&
typeof value.arrayBuffer === 'function' &&
typeof value.constructor === 'function' &&
typeof value.constructor.name === 'string' &&
/^(Blob|File)$/.test(value.constructor.name) &&
/^(Blob|File)$/.test(value[Symbol.toStringTag])
);
};
export const isFormData = (value: any): value is FormData => {
return value instanceof FormData;
};
export const isSuccess = (status: number): boolean => {
return status >= 200 && status < 300;
};
export const base64 = (str: string): string => {
try {
return btoa(str);
} catch (err) {
// @ts-ignore
return Buffer.from(str).toString('base64');
}
};
export const getQueryString = (params: Record<string, any>): string => {
const qs: string[] = [];
const append = (key: string, value: any) => {
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
};
const process = (key: string, value: any) => {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach(v => {
process(key, v);
});
} else if (typeof value === 'object') {
Object.entries(value).forEach(([k, v]) => {
process(`${key}[${k}]`, v);
});
} else {
append(key, value);
}
}
};
Object.entries(params).forEach(([key, value]) => {
process(key, value);
});
if (qs.length > 0) {
return `?${qs.join('&')}`;
}
return '';
};
const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
const encoder = config.ENCODE_PATH || encodeURI;
const path = options.url
.replace('{api-version}', config.VERSION)
.replace(/{(.*?)}/g, (substring: string, group: string) => {
if (options.path?.hasOwnProperty(group)) {
return encoder(String(options.path[group]));
}
return substring;
});
const url = `${config.BASE}${path}`;
if (options.query) {
return `${url}${getQueryString(options.query)}`;
}
return url;
};
export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
if (options.formData) {
const formData = new FormData();
const process = (key: string, value: any) => {
if (isString(value) || isBlob(value)) {
formData.append(key, value);
} else {
formData.append(key, JSON.stringify(value));
}
};
Object.entries(options.formData)
.filter(([_, value]) => isDefined(value))
.forEach(([key, value]) => {
if (Array.isArray(value)) {
value.forEach(v => process(key, v));
} else {
process(key, value);
}
});
return formData;
}
return undefined;
};
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
if (typeof resolver === 'function') {
return (resolver as Resolver<T>)(options);
}
return resolver;
};
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> => {
const [token, username, password, additionalHeaders] = await Promise.all([
resolve(options, config.TOKEN),
resolve(options, config.USERNAME),
resolve(options, config.PASSWORD),
resolve(options, config.HEADERS),
]);
const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}
const headers = Object.entries({
Accept: 'application/json',
...additionalHeaders,
...options.headers,
...formHeaders,
})
.filter(([_, value]) => isDefined(value))
.reduce((headers, [key, value]) => ({
...headers,
[key]: String(value),
}), {} as Record<string, string>);
if (isStringWithValue(token)) {
headers['Authorization'] = `Bearer ${token}`;
}
if (isStringWithValue(username) && isStringWithValue(password)) {
const credentials = base64(`${username}:${password}`);
headers['Authorization'] = `Basic ${credentials}`;
}
if (options.body !== undefined) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
headers['Content-Type'] = options.body.type || 'application/octet-stream';
} else if (isString(options.body)) {
headers['Content-Type'] = 'text/plain';
} else if (!isFormData(options.body)) {
headers['Content-Type'] = 'application/json';
}
}
return headers;
};
export const getRequestBody = (options: ApiRequestOptions): any => {
if (options.body) {
return options.body;
}
return undefined;
};
export const sendRequest = async <T>(
config: OpenAPIConfig,
options: ApiRequestOptions,
url: string,
body: any,
formData: FormData | undefined,
headers: Record<string, string>,
onCancel: OnCancel,
axiosClient: AxiosInstance
): Promise<AxiosResponse<T>> => {
const source = axios.CancelToken.source();
const requestConfig: AxiosRequestConfig = {
url,
headers,
data: body ?? formData,
method: options.method,
withCredentials: config.WITH_CREDENTIALS,
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
cancelToken: source.token,
};
onCancel(() => source.cancel('The user aborted a request.'));
try {
return await axiosClient.request(requestConfig);
} catch (error) {
const axiosError = error as AxiosError<T>;
if (axiosError.response) {
return axiosError.response;
}
throw error;
}
};
export const getResponseHeader = (response: AxiosResponse<any>, responseHeader?: string): string | undefined => {
if (responseHeader) {
const content = response.headers[responseHeader];
if (isString(content)) {
return content;
}
}
return undefined;
};
export const getResponseBody = (response: AxiosResponse<any>): any => {
if (response.status !== 204) {
return response.data;
}
return undefined;
};
export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
const errors: Record<number, string> = {
400: 'Bad Request',
401: 'Unauthorized',
403: 'Forbidden',
404: 'Not Found',
500: 'Internal Server Error',
502: 'Bad Gateway',
503: 'Service Unavailable',
...options.errors,
}
const error = errors[result.status];
if (error) {
throw new ApiError(options, result, error);
}
if (!result.ok) {
const errorStatus = result.status ?? 'unknown';
const errorStatusText = result.statusText ?? 'unknown';
const errorBody = (() => {
try {
return JSON.stringify(result.body, null, 2);
} catch (e) {
return undefined;
}
})();
throw new ApiError(options, result,
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
);
}
};
/**
* Request method
* @param config The OpenAPI configuration object
* @param options The request options from the service
* @param axiosClient The axios client instance to use
* @returns CancelablePromise<T>
* @throws ApiError
*/
export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions, axiosClient: AxiosInstance = axios): CancelablePromise<T> => {
return new CancelablePromise(async (resolve, reject, onCancel) => {
try {
const url = getUrl(config, options);
const formData = getFormData(options);
const body = getRequestBody(options);
const headers = await getHeaders(config, options, formData);
if (!onCancel.isCancelled) {
const response = await sendRequest<T>(config, options, url, body, formData, headers, onCancel, axiosClient);
const responseBody = getResponseBody(response);
const responseHeader = getResponseHeader(response, options.responseHeader);
const result: ApiResult = {
url,
ok: isSuccess(response.status),
status: response.status,
statusText: response.statusText,
body: responseHeader ?? responseBody,
};
catchErrorCodes(options, result);
resolve(result.body);
}
} catch (error) {
reject(error);
}
});
};
/* generated using openapi-typescript-codegen -- do not edit */ // This file is auto-generated by @hey-api/openapi-ts
/* istanbul ignore file */ export * from "./services.gen";
/* tslint:disable */ export * from "./types.gen";
/* eslint-disable */
export { ApiError } from './core/ApiError';
export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';
export type { AnonymizedWorkflowExecution } from './models/AnonymizedWorkflowExecution';
export type { ApiTokenIn } from './models/ApiTokenIn';
export type { ApiTokenOut } from './models/ApiTokenOut';
export type { ApiTokenPrivateOut } from './models/ApiTokenPrivateOut';
export type { Body_Bucket_update_bucket_public_state } from './models/Body_Bucket_update_bucket_public_state';
export type { Body_Workflow_Version_upload_workflow_version_icon } from './models/Body_Workflow_Version_upload_workflow_version_icon';
export type { BucketIn } from './models/BucketIn';
export type { BucketOut } from './models/BucketOut';
export type { BucketPermissionIn } from './models/BucketPermissionIn';
export type { BucketPermissionOut } from './models/BucketPermissionOut';
export type { BucketPermissionParameters } from './models/BucketPermissionParameters';
export type { BucketSizeLimits } from './models/BucketSizeLimits';
export { BucketType } from './models/BucketType';
export type { DevWorkflowExecutionIn } from './models/DevWorkflowExecutionIn';
export { DocumentationEnum } from './models/DocumentationEnum';
export type { ErrorDetail } from './models/ErrorDetail';
export { FileTree } from './models/FileTree';
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { IconUpdateOut } from './models/IconUpdateOut';
export { NextflowVersion } from './models/NextflowVersion';
export { OIDCProvider } from './models/OIDCProvider';
export type { OwnershipTransferRequestIn } from './models/OwnershipTransferRequestIn';
export type { OwnershipTransferRequestOut } from './models/OwnershipTransferRequestOut';
export { OwnershipTypeEnum } from './models/OwnershipTypeEnum';
export type { ParameterExtension } from './models/ParameterExtension';
export { Permission } from './models/Permission';
export { PermissionStatus } from './models/PermissionStatus';
export type { ResourceIn } from './models/ResourceIn';
export type { ResourceOut } from './models/ResourceOut';
export type { ResourceVersionIn } from './models/ResourceVersionIn';
export type { ResourceVersionOut } from './models/ResourceVersionOut';
export { ResourceVersionStatus } from './models/ResourceVersionStatus';
export { RoleEnum } from './models/RoleEnum';
export type { S3Key } from './models/S3Key';
export { ScopeEnum } from './models/ScopeEnum';
export type { UserIn } from './models/UserIn';
export type { UserOut } from './models/UserOut';
export type { UserOutExtended } from './models/UserOutExtended';
export type { UserRequestAnswer } from './models/UserRequestAnswer';
export type { UserRoles } from './models/UserRoles';
export type { UserSynchronizationRequestIn } from './models/UserSynchronizationRequestIn';
export type { UserSynchronizationRequestOut } from './models/UserSynchronizationRequestOut';
export type { ValidationError } from './models/ValidationError';
export type { WorkflowCredentialsIn } from './models/WorkflowCredentialsIn';
export type { WorkflowCredentialsOut } from './models/WorkflowCredentialsOut';
export type { WorkflowExecutionIn } from './models/WorkflowExecutionIn';
export type { WorkflowExecutionOut } from './models/WorkflowExecutionOut';
export { WorkflowExecutionStatus } from './models/WorkflowExecutionStatus';
export type { WorkflowIn } from './models/WorkflowIn';
export type { WorkflowModeIn } from './models/WorkflowModeIn';
export type { WorkflowModeOut } from './models/WorkflowModeOut';
export type { WorkflowOut } from './models/WorkflowOut';
export type { WorkflowStatistic } from './models/WorkflowStatistic';
export type { WorkflowUpdate } from './models/WorkflowUpdate';
export type { WorkflowVersion } from './models/WorkflowVersion';
export { WorkflowVersionStatus } from './models/WorkflowVersionStatus';
export type { WorkflowVersionStatusSchema } from './models/WorkflowVersionStatusSchema';
export { ApiTokenService } from './services/ApiTokenService';
export { AuthService } from './services/AuthService';
export { BucketService } from './services/BucketService';
export { BucketPermissionService } from './services/BucketPermissionService';
export { ResourceService } from './services/ResourceService';
export { ResourceVersionService } from './services/ResourceVersionService';
export { S3KeyService } from './services/S3KeyService';
export { UserService } from './services/UserService';
export { WorkflowService } from './services/WorkflowService';
export { WorkflowCredentialsService } from './services/WorkflowCredentialsService';
export { WorkflowExecutionService } from './services/WorkflowExecutionService';
export { WorkflowModeService } from './services/WorkflowModeService';
export { WorkflowVersionService } from './services/WorkflowVersionService';
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { WorkflowExecutionStatus } from './WorkflowExecutionStatus';
export type AnonymizedWorkflowExecution = {
/**
* ID of the workflow execution
*/
workflow_execution_id: string;
/**
* Anonymized user ID of the user who ran the workflow execution
*/
pseudo_uid: string;
/**
* ID of the workflow mode this workflow execution ran in
*/
workflow_mode_id?: (string | null);
/**
* Hash of the git commit
*/
workflow_version_id: string;
/**
* Day of the workflow execution
*/
started_at: string;
/**
* ID of the workflow
*/
workflow_id: string;
/**
* ID of developer of the workflow
*/
developer_id: string;
/**
* End status of the workflow execution
*/
status: WorkflowExecutionStatus;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ScopeEnum } from './ScopeEnum';
export type ApiTokenIn = {
/**
* Short name for the API token
*/
name: string;
/**
* Unix timestamp when the token should expire
*/
expires_at?: (number | null);
/**
* List of scopes this Api token has
*/
scopes: Array<ScopeEnum>;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ScopeEnum } from './ScopeEnum';
export type ApiTokenOut = {
/**
* Short name for the API token
*/
name: string;
/**
* Unix timestamp when the token should expire
*/
expires_at?: (number | null);
/**
* List of scopes this Api token has
*/
scopes: Array<ScopeEnum>;
/**
* The ID of the token
*/
token_id: string;
/**
* The ID of the owner
*/
uid: string;
/**
* The UNIX timestamp when this token was created
*/
created_at: number;
/**
* The UNIX timestamp when this token was used the last time
*/
last_used?: (number | null);
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ScopeEnum } from './ScopeEnum';
export type ApiTokenPrivateOut = {
/**
* Short name for the API token
*/
name: string;
/**
* Unix timestamp when the token should expire
*/
expires_at?: (number | null);
/**
* List of scopes this Api token has
*/
scopes: Array<ScopeEnum>;
/**
* The ID of the token
*/
token_id: string;
/**
* The ID of the owner
*/
uid: string;
/**
* The UNIX timestamp when this token was created
*/
created_at: number;
/**
* The UNIX timestamp when this token was used the last time
*/
last_used?: (number | null);
/**
* The actual token used for authentication
*/
token: string;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Body_Bucket_update_bucket_public_state = {
/**
* New State
*/
public: boolean;
};
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Body_Workflow_Version_upload_workflow_version_icon = {
/**
* Icon for the Workflow.
*/
icon: Blob;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment