@prefecthq/prefect-ui-library 1.1.10 → 1.1.11
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/{index-d5214ec2.mjs → index-d62482f8.mjs} +12480 -12326
- package/dist/index-d62482f8.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +452 -450
- package/dist/prefect-ui-library.umd.js +65 -65
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/components/SchemaFormFieldsWithValues.vue.d.ts +22 -0
- package/dist/types/src/components/SchemaPropertiesKeyValues.vue.d.ts +2 -0
- package/dist/types/src/components/SchemaPropertyKeyValue.vue.d.ts +2 -0
- package/dist/types/src/components/WorkPoolTypeSelect.vue.d.ts +4 -2
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/compositions/useTabs.d.ts +7 -2
- package/dist/types/src/maps/index.d.ts +14 -0
- package/dist/types/src/maps/workerCollection.d.ts +10 -0
- package/dist/types/src/models/WorkPool.d.ts +3 -2
- package/dist/types/src/models/WorkPoolCreate.d.ts +1 -0
- package/dist/types/src/models/WorkPoolEdit.d.ts +3 -0
- package/dist/types/src/models/WorkerCollectionItem.d.ts +19 -0
- package/dist/types/src/models/api/WorkPoolRequest.d.ts +7 -0
- package/dist/types/src/models/api/WorkPoolResponse.d.ts +6 -0
- package/dist/types/src/models/api/WorkerCollectionItemResponse.d.ts +15 -0
- package/dist/types/src/models/api/index.d.ts +1 -0
- package/dist/types/src/models/index.d.ts +2 -1
- package/dist/types/src/services/CollectionsApi.d.ts +2 -1
- package/dist/types/src/services/Mapper.d.ts +14 -0
- package/dist/types/src/services/can.d.ts +1 -1
- package/dist/types/src/types/schemas.d.ts +4 -0
- package/dist/types/src/utilities/arrays.d.ts +1 -1
- package/dist/types/src/utilities/parameters.d.ts +3 -1
- package/dist/{viewport.es-5fa29f11-ea22d621.mjs → viewport.es-5fa29f11-43388715.mjs} +2 -2
- package/dist/{viewport.es-5fa29f11-ea22d621.mjs.map → viewport.es-5fa29f11-43388715.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/index-d5214ec2.mjs.map +0 -1
- /package/dist/types/demo/sections/blocks/{BlockDocumentsSelect.vue.d.ts → BlockDocumentCombobox.vue.d.ts} +0 -0
- /package/dist/types/src/components/{BlockDocumentsSelect.vue.d.ts → BlockDocumentCombobox.vue.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Schema, SchemaValues } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
schema: Schema;
|
|
4
|
+
values: SchemaValues | null | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:values": (value: SchemaValues) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
schema: Schema;
|
|
9
|
+
values: SchemaValues | null | undefined;
|
|
10
|
+
}>>> & {
|
|
11
|
+
"onUpdate:values"?: ((value: SchemaValues) => any) | undefined;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -2,9 +2,11 @@ import { Schema, SchemaValues } from '../types/schemas';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
schema: Schema;
|
|
4
4
|
values: SchemaValues;
|
|
5
|
+
alternate?: boolean | undefined;
|
|
5
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
7
|
schema: Schema;
|
|
7
8
|
values: SchemaValues;
|
|
9
|
+
alternate?: boolean | undefined;
|
|
8
10
|
}>>>, {}>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,9 +2,11 @@ import { SchemaProperty, SchemaValue } from '../types/schemas';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
property: SchemaProperty;
|
|
4
4
|
value: SchemaValue;
|
|
5
|
+
alternate?: boolean | undefined;
|
|
5
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
7
|
property: SchemaProperty;
|
|
7
8
|
value: SchemaValue;
|
|
9
|
+
alternate?: boolean | undefined;
|
|
8
10
|
}>>>, {}>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
selected: string | null;
|
|
2
|
+
selected: string | null | undefined;
|
|
3
|
+
disabled?: boolean | undefined;
|
|
3
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
5
|
"update:selected": (value: string | null) => void;
|
|
5
6
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
selected: string | null;
|
|
7
|
+
selected: string | null | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
7
9
|
}>>> & {
|
|
8
10
|
"onUpdate:selected"?: ((value: string | null) => any) | undefined;
|
|
9
11
|
}, {}>;
|
|
@@ -2,10 +2,10 @@ export { default as ActivityChart } from './ActivityChart.vue';
|
|
|
2
2
|
export { default as BetaBadge } from './BetaBadge.vue';
|
|
3
3
|
export { default as BlockCapabilityBlockDocumentInput } from './BlockCapabilityBlockDocumentInput.vue';
|
|
4
4
|
export { default as BlockDocumentCard } from './BlockDocumentCard.vue';
|
|
5
|
+
export { default as BlockDocumentCombobox } from './BlockDocumentCombobox.vue';
|
|
5
6
|
export { default as BlockDocumentInput } from './BlockDocumentInput.vue';
|
|
6
7
|
export { default as BlockDocumentKeyValue } from './BlockDocumentKeyValue.vue';
|
|
7
8
|
export { default as BlockDocumentMenu } from './BlockDocumentMenu.vue';
|
|
8
|
-
export { default as BlockDocumentsSelect } from './BlockDocumentsSelect.vue';
|
|
9
9
|
export { default as BlockDocumentsTable } from './BlockDocumentsTable.vue';
|
|
10
10
|
export { default as BlockIconText } from './BlockIconText.vue';
|
|
11
11
|
export { default as BlockSchemaCapabilities } from './BlockSchemaCapabilities.vue';
|
|
@@ -240,3 +240,4 @@ export { default as WorkQueuesTable } from './WorkQueuesTable.vue';
|
|
|
240
240
|
export { default as WorkQueueStatusBadge } from './WorkQueueStatusBadge.vue';
|
|
241
241
|
export { default as WorkQueueStatusIcon } from './WorkQueueStatusIcon.vue';
|
|
242
242
|
export { default as WorkQueueToggle } from './WorkQueueToggle.vue';
|
|
243
|
+
export { default as SchemaFormFieldsWithValues } from './SchemaFormFieldsWithValues.vue';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { MaybeRef } from '../types';
|
|
2
3
|
export type ConditionalTab = {
|
|
3
4
|
label: string;
|
|
4
5
|
hidden?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export
|
|
7
|
+
export type UseTabs = {
|
|
8
|
+
tabs: ComputedRef<string[]>;
|
|
9
|
+
tab: Ref<string | undefined>;
|
|
10
|
+
};
|
|
11
|
+
export declare function useTabs(tabs: MaybeRef<ConditionalTab[]>, tab?: MaybeRef<string | undefined>): UseTabs;
|
|
@@ -83,6 +83,9 @@ export declare const maps: {
|
|
|
83
83
|
CollectionItemResponse: {
|
|
84
84
|
CollectionItem: import("..").MapFunction<import("..").CollectionItemResponse, import("..").CollectionItem>;
|
|
85
85
|
};
|
|
86
|
+
PrefectWorkerCollectionResponse: {
|
|
87
|
+
WorkerCollectionItem: import("..").MapFunction<import("..").PrefectWorkerCollectionResponse, import("..").WorkerCollectionItem[]>;
|
|
88
|
+
};
|
|
86
89
|
CollectionResponse: {
|
|
87
90
|
CollectionItems: import("..").MapFunction<import("..").CollectionsResponse, import("..").CollectionItem[]>;
|
|
88
91
|
};
|
|
@@ -312,12 +315,14 @@ export declare const maps: {
|
|
|
312
315
|
type: string;
|
|
313
316
|
isPaused: boolean;
|
|
314
317
|
concurrencyLimit: number;
|
|
318
|
+
baseJobTemplate: Record<string, unknown>;
|
|
315
319
|
}>, Partial<{
|
|
316
320
|
name: string;
|
|
317
321
|
description: string;
|
|
318
322
|
type: string;
|
|
319
323
|
is_paused: boolean;
|
|
320
324
|
concurrency_limit: number;
|
|
325
|
+
base_job_template: import("..").BaseJobTemplateRequest;
|
|
321
326
|
}>>;
|
|
322
327
|
};
|
|
323
328
|
WorkPoolEdit: {
|
|
@@ -325,10 +330,13 @@ export declare const maps: {
|
|
|
325
330
|
description: string | null;
|
|
326
331
|
isPaused: boolean;
|
|
327
332
|
concurrencyLimit: number | null;
|
|
333
|
+
baseJobTemplate: import("..").WorkerBaseJobTemplate;
|
|
334
|
+
updatedDefaultVariableValues: import("..").SchemaValues;
|
|
328
335
|
}>, Partial<{
|
|
329
336
|
description: string | null;
|
|
330
337
|
is_paused: boolean;
|
|
331
338
|
concurrency_limit: number | null;
|
|
339
|
+
base_job_template: import("..").BaseJobTemplateRequest;
|
|
332
340
|
}>>;
|
|
333
341
|
};
|
|
334
342
|
WorkPoolQueue: {
|
|
@@ -410,6 +418,12 @@ export declare const maps: {
|
|
|
410
418
|
WorkPoolQueueFilter: {
|
|
411
419
|
WorkPoolQueueFilterRequest: import("..").MapFunction<import("..").WorkPoolQueueFilter, import("../models/api/Filters").WorkPoolQueueFilterRequest>;
|
|
412
420
|
};
|
|
421
|
+
WorkerSchemaProperty: {
|
|
422
|
+
WorkerSchemaPropertyRequest: import("..").MapFunction<{
|
|
423
|
+
values: import("..").SchemaValues;
|
|
424
|
+
schema: import("..").WorkerBaseJobTemplate;
|
|
425
|
+
}, import("..").WorkerBaseJobTemplate>;
|
|
426
|
+
};
|
|
413
427
|
FlowRunsHistoryFilter: {
|
|
414
428
|
FlowRunsHistoryFilterRequest: import("..").MapFunction<import("..").FlowRunsHistoryFilter, import("../models/api/Filters").FlowRunsHistoryFilterRequest>;
|
|
415
429
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PrefectWorkerCollectionResponse, WorkerCollectionItem } from '../models';
|
|
2
|
+
import { MapFunction } from '../services/Mapper';
|
|
3
|
+
import { SchemaValues, WorkerBaseJobTemplate } from '../types/schemas';
|
|
4
|
+
export declare const mapPrefectWorkerCollectionResponseToWorkerCollectionItemArray: MapFunction<PrefectWorkerCollectionResponse, WorkerCollectionItem[]>;
|
|
5
|
+
type MapSchemaValuesSource = {
|
|
6
|
+
values: SchemaValues;
|
|
7
|
+
schema: WorkerBaseJobTemplate;
|
|
8
|
+
};
|
|
9
|
+
export declare const mapWorkerSchemaValuesToWorkerSchemaValuesRequest: MapFunction<MapSchemaValuesSource, WorkerBaseJobTemplate>;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type WorkPoolType = typeof workPoolTypes[number];
|
|
1
|
+
import { BaseJobTemplateRequest } from '../models/api/WorkPoolRequest';
|
|
3
2
|
export interface IWorkPool {
|
|
4
3
|
readonly id: string;
|
|
5
4
|
created: Date;
|
|
@@ -10,6 +9,7 @@ export interface IWorkPool {
|
|
|
10
9
|
isPaused: boolean;
|
|
11
10
|
defaultQueueId: string;
|
|
12
11
|
concurrencyLimit: number | null;
|
|
12
|
+
baseJobTemplate: Record<string, unknown>;
|
|
13
13
|
}
|
|
14
14
|
export declare class WorkPool implements IWorkPool {
|
|
15
15
|
readonly id: string;
|
|
@@ -21,6 +21,7 @@ export declare class WorkPool implements IWorkPool {
|
|
|
21
21
|
isPaused: boolean;
|
|
22
22
|
defaultQueueId: string;
|
|
23
23
|
concurrencyLimit: number | null;
|
|
24
|
+
baseJobTemplate: BaseJobTemplateRequest;
|
|
24
25
|
constructor(workPool: IWorkPool);
|
|
25
26
|
get typeLabel(): string;
|
|
26
27
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { SchemaValues, WorkerBaseJobTemplate } from '../types/schemas';
|
|
1
2
|
export type WorkPoolEdit = Partial<{
|
|
2
3
|
description: string | null;
|
|
3
4
|
isPaused: boolean;
|
|
4
5
|
concurrencyLimit: number | null;
|
|
6
|
+
baseJobTemplate: WorkerBaseJobTemplate;
|
|
7
|
+
updatedDefaultVariableValues: SchemaValues;
|
|
5
8
|
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SchemaProperty } from '../types';
|
|
2
|
+
export type DefaultBaseJobConfiguration = {
|
|
3
|
+
jobConfiguration: Record<string, unknown>;
|
|
4
|
+
variables: SchemaProperty;
|
|
5
|
+
};
|
|
6
|
+
export type WorkerCollectionItem = {
|
|
7
|
+
defaultBaseJobConfiguration?: Record<string, unknown>;
|
|
8
|
+
description?: string;
|
|
9
|
+
documentationUrl?: string;
|
|
10
|
+
installCommand?: string;
|
|
11
|
+
logoUrl?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
};
|
|
14
|
+
export type WorkerColection = Record<string, WorkerCollectionItem>;
|
|
15
|
+
export type PrefectWorkerCollection = {
|
|
16
|
+
prefect: {
|
|
17
|
+
workers: WorkerColection;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { SchemaResponse } from '../../models/api/SchemaResponse';
|
|
2
|
+
export type BaseJobTemplateRequest = {
|
|
3
|
+
job_configuration?: Record<string, string>;
|
|
4
|
+
variables?: SchemaResponse;
|
|
5
|
+
};
|
|
1
6
|
export type WorkPoolCreateRequest = Partial<{
|
|
2
7
|
name: string;
|
|
3
8
|
description: string;
|
|
4
9
|
type: string;
|
|
5
10
|
is_paused: boolean;
|
|
6
11
|
concurrency_limit: number;
|
|
12
|
+
base_job_template: BaseJobTemplateRequest;
|
|
7
13
|
}>;
|
|
8
14
|
export type WorkPoolEditRequest = Partial<{
|
|
9
15
|
description: string | null;
|
|
10
16
|
is_paused: boolean;
|
|
11
17
|
concurrency_limit: number | null;
|
|
18
|
+
base_job_template: BaseJobTemplateRequest;
|
|
12
19
|
}>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { SchemaResponse } from '../../models/api/SchemaResponse';
|
|
1
2
|
import { DateString } from '../../types/dates';
|
|
3
|
+
export type BaseJobTemplateResponse = {
|
|
4
|
+
job_configuration?: Record<string, string>;
|
|
5
|
+
variables?: SchemaResponse;
|
|
6
|
+
};
|
|
2
7
|
export type WorkPoolResponse = {
|
|
3
8
|
id: string;
|
|
4
9
|
created: DateString;
|
|
@@ -9,4 +14,5 @@ export type WorkPoolResponse = {
|
|
|
9
14
|
is_paused: boolean | null;
|
|
10
15
|
concurrency_limit: number | null;
|
|
11
16
|
default_queue_id: string;
|
|
17
|
+
base_job_template: BaseJobTemplateResponse;
|
|
12
18
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SchemaPropertyResponse } from '../../models/api/SchemaResponse';
|
|
2
|
+
export type DefaultBaseJobConfigurationResponse = {
|
|
3
|
+
job_configuration: Record<string, unknown>;
|
|
4
|
+
variables: SchemaPropertyResponse;
|
|
5
|
+
};
|
|
6
|
+
export type WorkerCollectionItemResponse = {
|
|
7
|
+
default_base_job_configuration?: DefaultBaseJobConfigurationResponse;
|
|
8
|
+
description?: string;
|
|
9
|
+
documentation_url?: string;
|
|
10
|
+
install_command?: string;
|
|
11
|
+
logo_url?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
};
|
|
14
|
+
export type WorkerCollectionResponse = Record<string, WorkerCollectionItemResponse>;
|
|
15
|
+
export type PrefectWorkerCollectionResponse = Record<string, WorkerCollectionResponse>;
|
|
@@ -33,6 +33,7 @@ export * from './StateUpdateRequest';
|
|
|
33
33
|
export * from './TaskInputResponse';
|
|
34
34
|
export * from './TaskRunResponse';
|
|
35
35
|
export * from './UiFlowRunHistoryResponse';
|
|
36
|
+
export * from './WorkerCollectionItemResponse';
|
|
36
37
|
export * from './WorkerScheduledFlowRunResponse';
|
|
37
38
|
export * from './WorkerScheduledFlowRunsRequest';
|
|
38
39
|
export * from './WorkPoolQueueRequest';
|
|
@@ -19,6 +19,7 @@ export * from './ExistingHandleError';
|
|
|
19
19
|
export * from './FilterDateError';
|
|
20
20
|
export * from './FilterPrefixError';
|
|
21
21
|
export * from './FilterRelativeDateUnitError';
|
|
22
|
+
export * from './Filters';
|
|
22
23
|
export * from './Flow';
|
|
23
24
|
export * from './FlowRun';
|
|
24
25
|
export * from './GraphNode';
|
|
@@ -45,6 +46,7 @@ export * from './TaskInput';
|
|
|
45
46
|
export * from './TaskRun';
|
|
46
47
|
export * from './TimelineNode';
|
|
47
48
|
export * from './UiFlowRunHistory';
|
|
49
|
+
export * from './WorkerCollectionItem';
|
|
48
50
|
export * from './WorkerScheduledFlowRun';
|
|
49
51
|
export * from './WorkerScheduledFlowRuns';
|
|
50
52
|
export * from './WorkPool';
|
|
@@ -60,4 +62,3 @@ export * from './WorkQueueEdit';
|
|
|
60
62
|
export * from './WorkQueueFilter';
|
|
61
63
|
export * from './WorkQueueHealthPolicy';
|
|
62
64
|
export * from './WorkQueueStatus';
|
|
63
|
-
export * from './Filters';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CollectionItem } from '../models';
|
|
1
|
+
import { CollectionItem, WorkerCollectionItem } from '../models';
|
|
2
2
|
import { Api } from '../services/Api';
|
|
3
3
|
export declare class CollectionsApi extends Api {
|
|
4
4
|
protected routePrefix: string;
|
|
5
5
|
getFlowCollection(): Promise<CollectionItem[]>;
|
|
6
|
+
getWorkerCollection(): Promise<WorkerCollectionItem[]>;
|
|
6
7
|
}
|
|
@@ -107,6 +107,9 @@ export declare const mapper: Mapper<{
|
|
|
107
107
|
CollectionItemResponse: {
|
|
108
108
|
CollectionItem: MapFunction<import("..").CollectionItemResponse, import("..").CollectionItem>;
|
|
109
109
|
};
|
|
110
|
+
PrefectWorkerCollectionResponse: {
|
|
111
|
+
WorkerCollectionItem: MapFunction<import("..").PrefectWorkerCollectionResponse, import("..").WorkerCollectionItem[]>;
|
|
112
|
+
};
|
|
110
113
|
CollectionResponse: {
|
|
111
114
|
CollectionItems: MapFunction<import("..").CollectionsResponse, import("..").CollectionItem[]>;
|
|
112
115
|
};
|
|
@@ -336,12 +339,14 @@ export declare const mapper: Mapper<{
|
|
|
336
339
|
type: string;
|
|
337
340
|
isPaused: boolean;
|
|
338
341
|
concurrencyLimit: number;
|
|
342
|
+
baseJobTemplate: Record<string, unknown>;
|
|
339
343
|
}>, Partial<{
|
|
340
344
|
name: string;
|
|
341
345
|
description: string;
|
|
342
346
|
type: string;
|
|
343
347
|
is_paused: boolean;
|
|
344
348
|
concurrency_limit: number;
|
|
349
|
+
base_job_template: import("..").BaseJobTemplateRequest;
|
|
345
350
|
}>>;
|
|
346
351
|
};
|
|
347
352
|
WorkPoolEdit: {
|
|
@@ -349,10 +354,13 @@ export declare const mapper: Mapper<{
|
|
|
349
354
|
description: string | null;
|
|
350
355
|
isPaused: boolean;
|
|
351
356
|
concurrencyLimit: number | null;
|
|
357
|
+
baseJobTemplate: import("..").WorkerBaseJobTemplate;
|
|
358
|
+
updatedDefaultVariableValues: import("..").SchemaValues;
|
|
352
359
|
}>, Partial<{
|
|
353
360
|
description: string | null;
|
|
354
361
|
is_paused: boolean;
|
|
355
362
|
concurrency_limit: number | null;
|
|
363
|
+
base_job_template: import("..").BaseJobTemplateRequest;
|
|
356
364
|
}>>;
|
|
357
365
|
};
|
|
358
366
|
WorkPoolQueue: {
|
|
@@ -434,6 +442,12 @@ export declare const mapper: Mapper<{
|
|
|
434
442
|
WorkPoolQueueFilter: {
|
|
435
443
|
WorkPoolQueueFilterRequest: MapFunction<import("..").WorkPoolQueueFilter, import("../models/api/Filters").WorkPoolQueueFilterRequest>;
|
|
436
444
|
};
|
|
445
|
+
WorkerSchemaProperty: {
|
|
446
|
+
WorkerSchemaPropertyRequest: MapFunction<{
|
|
447
|
+
values: import("..").SchemaValues;
|
|
448
|
+
schema: import("..").WorkerBaseJobTemplate;
|
|
449
|
+
}, import("..").WorkerBaseJobTemplate>;
|
|
450
|
+
};
|
|
437
451
|
FlowRunsHistoryFilter: {
|
|
438
452
|
FlowRunsHistoryFilterRequest: MapFunction<import("..").FlowRunsHistoryFilter, import("../models/api/Filters").FlowRunsHistoryFilterRequest>;
|
|
439
453
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
import { MaybeRef } from '../types/reactivity';
|
|
3
|
-
export declare const workspaceFeatureFlags: readonly ["access:collections"];
|
|
3
|
+
export declare const workspaceFeatureFlags: readonly ["access:collections", "access:workers"];
|
|
4
4
|
export type WorkspaceFeatureFlag = typeof workspaceFeatureFlags[number];
|
|
5
5
|
export declare const workspacePermissions: readonly ["create:automation", "create:block", "create:concurrency_limit", "create:deployment", "create:flow_run", "create:flow", "create:log", "create:notification_policy", "create:saved_search", "create:task_run", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:automation", "delete:block", "delete:concurrency_limit", "delete:deployment", "delete:flow_run", "delete:flow", "delete:notification_policy", "delete:saved_search", "delete:task_run", "delete:work_queue", "delete:work_pool_queue", "delete:work_pool", "delete:workspace_bot_access", "delete:workspace_user_access", "read:automation", "read:block", "read:concurrency_limit", "read:deployment", "read:flow_run", "read:flow", "read:log", "read:notification_policy", "read:saved_search", "read:task_run", "read:work_queue", "read:work_pool_queue", "read:work_pool", "read:workspace_bot_access", "read:workspace_settings", "read:workspace_user_access", "run:deployment", "update:automation", "update:block", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:work_queue", "update:work_pool_queue", "update:work_pool", "update:workspace_bot_access", "update:workspace_settings", "update:workspace_user_access", "update:workspace"];
|
|
6
6
|
export type WorkspacePermission = typeof workspacePermissions[number];
|
|
@@ -61,5 +61,9 @@ export type Schema = SchemaProperty & {
|
|
|
61
61
|
secretFields?: string[];
|
|
62
62
|
definitions?: SchemaDefinitions;
|
|
63
63
|
};
|
|
64
|
+
export type WorkerBaseJobTemplate = {
|
|
65
|
+
job_configuration?: Record<string, string>;
|
|
66
|
+
variables?: Schema;
|
|
67
|
+
};
|
|
64
68
|
export declare function isSchemaValues(input: unknown): input is SchemaValues;
|
|
65
69
|
export declare function schemaHas<T extends Schema | SchemaProperty, P extends keyof T>(schema: T, property: P): schema is T & Require<T, P>;
|
|
@@ -13,7 +13,7 @@ export declare function isEmptyArray(value: unknown): value is unknown[];
|
|
|
13
13
|
export declare function isStringArray(value: unknown): value is string[];
|
|
14
14
|
export declare function isNumberArray(value: unknown): value is number[];
|
|
15
15
|
export declare function asSingle<T>(value: T | T[]): T;
|
|
16
|
-
export declare function repeat<T>(count: number, method: () => T): T[];
|
|
16
|
+
export declare function repeat<T>(count: number, method: (index?: number) => T): T[];
|
|
17
17
|
export declare function some<T>(source: T[], min?: number, max?: number): T[];
|
|
18
18
|
export declare function intersects(first: unknown[], ...rest: unknown[][]): boolean;
|
|
19
19
|
export declare function groupBy<T, K extends keyof T>(source: T[], key: K): Map<T[K], T[]>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Schema, SchemaValues } from '../types/schemas';
|
|
1
|
+
import { Schema, SchemaProperties, SchemaValues } from '../types/schemas';
|
|
2
2
|
export declare function getSchemaValuesWithDefaults(values: SchemaValues, schema: Schema): SchemaValues;
|
|
3
3
|
export declare function getSchemaValuesWithDefaultsJson(values: SchemaValues, schema: Schema): string;
|
|
4
4
|
export declare function getSchemaDefaults(schema: Schema): SchemaValues;
|
|
5
|
+
export declare function getSchemaPropertiesWithoutDefaults(schemaProperties?: SchemaProperties): SchemaProperties;
|
|
6
|
+
export declare function getSchemaWithoutDefaults(schema: Schema): Schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as c, q as b, L as O, w as k } from "./index-
|
|
1
|
+
import { l as c, q as b, L as O, w as k } from "./index-d62482f8.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/prefect-design";
|
|
4
4
|
import "@prefecthq/vue-compositions";
|
|
@@ -1534,4 +1534,4 @@ export {
|
|
|
1534
1534
|
C as Viewport,
|
|
1535
1535
|
$ as Wheel
|
|
1536
1536
|
};
|
|
1537
|
-
//# sourceMappingURL=viewport.es-5fa29f11-
|
|
1537
|
+
//# sourceMappingURL=viewport.es-5fa29f11-43388715.mjs.map
|