@prefecthq/prefect-ui-library 1.6.46 → 1.6.48
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-a0316622.mjs → index-a0d15dfc.mjs} +13974 -13496
- package/dist/index-a0d15dfc.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +714 -709
- package/dist/prefect-ui-library.umd.js +73 -73
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/compositions/useSeeds.d.ts +2 -1
- package/dist/types/demo/sections/concurrency/ConcurrencyLimitsV2Table.vue.d.ts +2 -0
- package/dist/types/demo/services/MockApi.d.ts +2 -0
- package/dist/types/demo/services/mockWorkspaceConcurrencyV2LimitsAPI.d.ts +15 -0
- package/dist/types/demo/utilities/api.d.ts +4 -0
- package/dist/types/demo/utilities/data.d.ts +4 -0
- package/dist/types/src/components/ConcurrencyLimitV2Menu.vue.d.ts +17 -0
- package/dist/types/src/components/ConcurrencyLimitsV2CreateModal.vue.d.ts +23 -0
- package/dist/types/src/components/ConcurrencyLimitsV2Table.vue.d.ts +2 -0
- package/dist/types/src/components/ConcurrencyLimitsV2UpdateModal.vue.d.ts +32 -0
- package/dist/types/src/components/NotificationStatusSelect.vue.d.ts +4 -4
- package/dist/types/src/components/index.d.ts +4 -0
- package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +23 -1
- package/dist/types/src/localization/index.d.ts +2 -0
- package/dist/types/src/localization/locale/en.d.ts +2 -0
- package/dist/types/src/maps/concurrencyV2Limit.d.ts +4 -0
- package/dist/types/src/maps/concurrencyV2LimitCreate.d.ts +4 -0
- package/dist/types/src/maps/concurrencyV2LimitUpdate.d.ts +4 -0
- package/dist/types/src/maps/index.d.ts +9 -0
- package/dist/types/src/mocks/concurrencyV2Limit.d.ts +3 -0
- package/dist/types/src/mocks/index.d.ts +1 -0
- package/dist/types/src/models/ConcurrencyV2ActiveSlots.d.ts +5 -0
- package/dist/types/src/models/{ConcurrencyV2LimitCreate.d.ts → ConcurrencyV2Create.d.ts} +1 -1
- package/dist/types/src/models/ConcurrencyV2DecrementActiveSlots.d.ts +5 -0
- package/dist/types/src/models/ConcurrencyV2IncrementActiveSlots.d.ts +5 -0
- package/dist/types/src/models/ConcurrencyV2Limit.d.ts +5 -5
- package/dist/types/src/models/ConcurrencyV2Update.d.ts +8 -0
- package/dist/types/src/models/TaskRun.d.ts +2 -2
- package/dist/types/src/models/api/ConcurrencyV2ActiveSlotsResponse.d.ts +5 -0
- package/dist/types/src/models/api/ConcurrencyV2CreateRequest.d.ts +6 -6
- package/dist/types/src/models/api/ConcurrencyV2DecrementActiveSlotsRequest.d.ts +5 -0
- package/dist/types/src/models/api/ConcurrencyV2IncrementActiveSlotsRequest.d.ts +5 -0
- package/dist/types/src/models/api/ConcurrencyV2UpdateRequest.d.ts +8 -0
- package/dist/types/src/models/api/TaskRunResponse.d.ts +1 -1
- package/dist/types/src/models/index.d.ts +1 -0
- package/dist/types/src/router/routes.d.ts +23 -1
- package/dist/types/src/services/Mapper.d.ts +9 -0
- package/dist/types/src/services/Mocker.d.ts +1 -0
- package/dist/types/src/services/WorkspaceConcurrencyLimitsV2API.d.ts +25 -0
- package/dist/types/src/services/index.d.ts +1 -0
- package/dist/types/src/utilities/api.d.ts +2 -0
- package/dist/types/src/utilities/formValidation.d.ts +3 -0
- package/dist/{viewport.es-ae91b8e8-6a364e78.mjs → viewport.es-ae91b8e8-96b1fc79.mjs} +2 -2
- package/dist/{viewport.es-ae91b8e8-6a364e78.mjs.map → viewport.es-ae91b8e8-96b1fc79.mjs.map} +1 -1
- package/package.json +5 -5
- package/dist/index-a0316622.mjs.map +0 -1
|
@@ -10,6 +10,8 @@ export declare class MockApi {
|
|
|
10
10
|
protected get blockTypes(): import("./KeyedDataStore").KeyedDataStore<import("../../src").BlockType, string>;
|
|
11
11
|
protected get blockSchemaCapabilities(): import("./SimpleDataStore").SimpleDataStore<string>;
|
|
12
12
|
protected get concurrencyLimits(): import("./KeyedDataStore").KeyedDataStore<import("../../src").ConcurrencyLimit, string>;
|
|
13
|
+
protected get concurrencyV2ActiveSlots(): import("./KeyedDataStore").KeyedDataStore<import("../../src/models/ConcurrencyV2ActiveSlots").ConcurrencyV2ActiveSlots, string>;
|
|
14
|
+
protected get concurrencyV2Limits(): import("./KeyedDataStore").KeyedDataStore<import("../../src").ConcurrencyV2Limit, string>;
|
|
13
15
|
protected get deployments(): import("./KeyedDataStore").KeyedDataStore<import("../../src").Deployment, string>;
|
|
14
16
|
protected get workQueues(): import("./KeyedDataStore").KeyedDataStore<import("../../src").WorkQueue, string>;
|
|
15
17
|
protected get workPools(): import("./KeyedDataStore").KeyedDataStore<import("../../src").WorkPool, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MockApi } from './MockApi';
|
|
2
|
+
import { ConcurrencyV2ActiveSlots } from '../../src/models/ConcurrencyV2ActiveSlots';
|
|
3
|
+
import { ConcurrencyV2Create } from '../../src/models/ConcurrencyV2Create';
|
|
4
|
+
import { ConcurrencyV2Limit } from '../../src/models/ConcurrencyV2Limit';
|
|
5
|
+
import { ConcurrencyLimitsFilter } from '../../src/models/Filters';
|
|
6
|
+
import { IWorkspaceConcurrencyV2LimitsApi } from '../../src/services/WorkspaceConcurrencyLimitsV2API';
|
|
7
|
+
export declare class MockWorkspaceConcurrencyV2LimitsApi extends MockApi implements IWorkspaceConcurrencyV2LimitsApi {
|
|
8
|
+
getConcurrencyV2Limits(filter?: ConcurrencyLimitsFilter): Promise<ConcurrencyV2Limit[]>;
|
|
9
|
+
getConcurrencyV2Limit(id: string): Promise<ConcurrencyV2Limit>;
|
|
10
|
+
createConcurrencyV2Limit(limit: ConcurrencyV2Create): Promise<ConcurrencyV2Limit>;
|
|
11
|
+
updateConcurrencyV2Limit(id: string, limit: ConcurrencyV2Create): Promise<ConcurrencyV2Limit>;
|
|
12
|
+
deleteConcurrencyV2Limit(id: string): Promise<void>;
|
|
13
|
+
bulkIncrementActiveSlots(names: string[], slots: number, mode: string): Promise<ConcurrencyV2ActiveSlots>;
|
|
14
|
+
bulkDecrementActiveSlots(names: string[], slots: number, mode: string): Promise<ConcurrencyV2ActiveSlots>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FlowRunGraphMock } from '../types/flowRunGraphMock';
|
|
2
2
|
import { Artifact, BlockDocument, BlockSchema, BlockType, Deployment, Flow, FlowRun, TaskRun, WorkPool, WorkPoolQueue, WorkQueue, WorkPoolWorker, ArtifactCollection } from '../../src/models';
|
|
3
3
|
import { ConcurrencyLimit } from '../../src/models/ConcurrencyLimit';
|
|
4
|
+
import { ConcurrencyV2ActiveSlots } from '../../src/models/ConcurrencyV2ActiveSlots';
|
|
5
|
+
import { ConcurrencyV2Limit } from '../../src/models/ConcurrencyV2Limit';
|
|
4
6
|
import { CreateApi } from '../../src/utilities';
|
|
5
7
|
export type ApiMockSeeds = {
|
|
6
8
|
artifacts?: Artifact[];
|
|
@@ -12,6 +14,8 @@ export type ApiMockSeeds = {
|
|
|
12
14
|
blockSchemas?: BlockSchema[];
|
|
13
15
|
blockTypes?: BlockType[];
|
|
14
16
|
concurrencyLimits?: ConcurrencyLimit[];
|
|
17
|
+
concurrencyV2Limits?: ConcurrencyV2Limit[];
|
|
18
|
+
concurrencyV2ActiveSlots?: ConcurrencyV2ActiveSlots;
|
|
15
19
|
taskRuns?: TaskRun[];
|
|
16
20
|
deployments?: Deployment[];
|
|
17
21
|
workQueues?: WorkQueue[];
|
|
@@ -12,6 +12,8 @@ export declare function createDataStores(seeds?: ApiMockSeeds): {
|
|
|
12
12
|
blockDocuments: KeyedDataStore<BlockDocument, string>;
|
|
13
13
|
blockSchemas: KeyedDataStore<BlockSchema, string>;
|
|
14
14
|
concurrencyLimits: KeyedDataStore<import("../../src/index").ConcurrencyLimit, string>;
|
|
15
|
+
concurrencyV2Limits: KeyedDataStore<import("../../src/index").ConcurrencyV2Limit, string>;
|
|
16
|
+
concurrencyV2ActiveSlots: KeyedDataStore<import("../../src/models/ConcurrencyV2ActiveSlots").ConcurrencyV2ActiveSlots, string>;
|
|
15
17
|
taskRuns: KeyedDataStore<TaskRun, string>;
|
|
16
18
|
deployments: KeyedDataStore<Deployment, string>;
|
|
17
19
|
workQueues: KeyedDataStore<WorkQueue, string>;
|
|
@@ -31,6 +33,8 @@ export declare const data: {
|
|
|
31
33
|
blockDocuments: KeyedDataStore<BlockDocument, string>;
|
|
32
34
|
blockSchemas: KeyedDataStore<BlockSchema, string>;
|
|
33
35
|
concurrencyLimits: KeyedDataStore<import("../../src/index").ConcurrencyLimit, string>;
|
|
36
|
+
concurrencyV2Limits: KeyedDataStore<import("../../src/index").ConcurrencyV2Limit, string>;
|
|
37
|
+
concurrencyV2ActiveSlots: KeyedDataStore<import("../../src/models/ConcurrencyV2ActiveSlots").ConcurrencyV2ActiveSlots, string>;
|
|
34
38
|
taskRuns: KeyedDataStore<TaskRun, string>;
|
|
35
39
|
deployments: KeyedDataStore<Deployment, string>;
|
|
36
40
|
workQueues: KeyedDataStore<WorkQueue, string>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConcurrencyV2Limit } from '../models';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
concurrencyLimit: {
|
|
4
|
+
type: import("vue").PropType<ConcurrencyV2Limit>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
delete: (value: string) => void;
|
|
9
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
concurrencyLimit: {
|
|
11
|
+
type: import("vue").PropType<ConcurrencyV2Limit>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & {
|
|
15
|
+
onDelete?: ((value: string) => any) | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
showModal: {
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:showModal": (value: boolean) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
showModal: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
"onUpdate:showModal"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}, {}, {}>, {
|
|
16
|
+
actions?(_: {}): any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ConcurrencyV2Limit } from '../models/ConcurrencyV2Limit';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
showModal: {
|
|
4
|
+
type: import("vue").PropType<boolean>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
concurrencyLimit: {
|
|
8
|
+
type: import("vue").PropType<ConcurrencyV2Limit>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:showModal": (value: boolean) => void;
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
showModal: {
|
|
15
|
+
type: import("vue").PropType<boolean>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
concurrencyLimit: {
|
|
19
|
+
type: import("vue").PropType<ConcurrencyV2Limit>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>> & {
|
|
23
|
+
"onUpdate:showModal"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}, {}, {}>, {
|
|
25
|
+
actions?(_: {}): any;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
selected: {
|
|
3
|
-
type: import("vue").PropType<"paused" | "
|
|
3
|
+
type: import("vue").PropType<"paused" | "active" | "all">;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:selected": (value: "paused" | "
|
|
7
|
+
"update:selected": (value: "paused" | "active" | "all") => void;
|
|
8
8
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
selected: {
|
|
10
|
-
type: import("vue").PropType<"paused" | "
|
|
10
|
+
type: import("vue").PropType<"paused" | "active" | "all">;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
}>> & {
|
|
14
|
-
"onUpdate:selected"?: ((value: "paused" | "
|
|
14
|
+
"onUpdate:selected"?: ((value: "paused" | "active" | "all") => any) | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export default _default;
|
|
@@ -46,6 +46,10 @@ export { default as ConcurrencyLimitMenu } from './ConcurrencyLimitMenu.vue';
|
|
|
46
46
|
export { default as ConcurrencyLimitsCreateModal } from './ConcurrencyLimitsCreateModal.vue';
|
|
47
47
|
export { default as ConcurrencyLimitsPageEmptyState } from './ConcurrencyLimitsPageEmptyState.vue';
|
|
48
48
|
export { default as ConcurrencyLimitsTable } from './ConcurrencyLimitsTable.vue';
|
|
49
|
+
export { default as ConcurrencyLimitV2Menu } from '../components/ConcurrencyLimitV2Menu.vue';
|
|
50
|
+
export { default as ConcurrencyLimitsV2Table } from './ConcurrencyLimitsV2Table.vue';
|
|
51
|
+
export { default as ConcurrencyLimitsV2CreateModal } from './ConcurrencyLimitsV2CreateModal.vue';
|
|
52
|
+
export { default as ConcurrencyLimitsV2UpdateModal } from './ConcurrencyLimitsV2UpdateModal.vue';
|
|
49
53
|
export { default as ConcurrencyTableActiveSlots } from './ConcurrencyTableActiveSlots.vue';
|
|
50
54
|
export { default as ConfirmDeleteModal } from './ConfirmDeleteModal.vue';
|
|
51
55
|
export { default as ConfirmDeleteModalWithSlot } from './ConfirmDeleteModalWithSlot.vue';
|
|
@@ -44,8 +44,15 @@ export declare function useWorkspaceRoutes(): {
|
|
|
44
44
|
readonly flowRunId: string;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
+
taskRuns: () => {
|
|
48
|
+
readonly name: "workspace.task-runs";
|
|
49
|
+
readonly params: {
|
|
50
|
+
readonly accountId?: string | undefined;
|
|
51
|
+
readonly workspaceId?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
47
54
|
taskRun: (taskRunId: string) => {
|
|
48
|
-
readonly name: "workspace.
|
|
55
|
+
readonly name: "workspace.task-runs.task-run";
|
|
49
56
|
readonly params: {
|
|
50
57
|
readonly accountId?: string | undefined;
|
|
51
58
|
readonly workspaceId?: string | undefined;
|
|
@@ -231,6 +238,21 @@ export declare function useWorkspaceRoutes(): {
|
|
|
231
238
|
readonly workspaceId?: string | undefined;
|
|
232
239
|
};
|
|
233
240
|
};
|
|
241
|
+
concurrencyLimitsV2: () => {
|
|
242
|
+
readonly name: "workspace.concurrency-limits-v2";
|
|
243
|
+
readonly params: {
|
|
244
|
+
readonly accountId?: string | undefined;
|
|
245
|
+
readonly workspaceId?: string | undefined;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
concurrencyLimitV2: (concurrencyLimitId: string) => {
|
|
249
|
+
readonly name: "workspace.concurrency-limits-v2.concurrency-limit";
|
|
250
|
+
readonly params: {
|
|
251
|
+
readonly accountId?: string | undefined;
|
|
252
|
+
readonly workspaceId?: string | undefined;
|
|
253
|
+
readonly concurrencyLimitId: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
234
256
|
variables: () => {
|
|
235
257
|
readonly name: "workspace.variables";
|
|
236
258
|
readonly params: {
|
|
@@ -54,6 +54,7 @@ export declare const localization: {
|
|
|
54
54
|
mustBeSnakeCase: (property: string) => string;
|
|
55
55
|
submitNotification: string;
|
|
56
56
|
updateBlock: string;
|
|
57
|
+
updateConcurrencyLimit: string;
|
|
57
58
|
updateNotification: string;
|
|
58
59
|
updateSchedule: string;
|
|
59
60
|
updateWorkPool: string;
|
|
@@ -94,6 +95,7 @@ export declare const localization: {
|
|
|
94
95
|
scheduleFlowRun: string;
|
|
95
96
|
updateBlock: string;
|
|
96
97
|
updateNotification: string;
|
|
98
|
+
updateConcurrencyLimit: string;
|
|
97
99
|
updateSchedule: string;
|
|
98
100
|
updateWorkPool: string;
|
|
99
101
|
updateWorkPoolQueue: string;
|
|
@@ -54,6 +54,7 @@ export declare const en: {
|
|
|
54
54
|
mustBeSnakeCase: (property: string) => string;
|
|
55
55
|
submitNotification: string;
|
|
56
56
|
updateBlock: string;
|
|
57
|
+
updateConcurrencyLimit: string;
|
|
57
58
|
updateNotification: string;
|
|
58
59
|
updateSchedule: string;
|
|
59
60
|
updateWorkPool: string;
|
|
@@ -94,6 +95,7 @@ export declare const en: {
|
|
|
94
95
|
scheduleFlowRun: string;
|
|
95
96
|
updateBlock: string;
|
|
96
97
|
updateNotification: string;
|
|
98
|
+
updateConcurrencyLimit: string;
|
|
97
99
|
updateSchedule: string;
|
|
98
100
|
updateWorkPool: string;
|
|
99
101
|
updateWorkPoolQueue: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConcurrencyV2Response } from '../models/api/ConcurrencyV2Response';
|
|
2
|
+
import { ConcurrencyV2Limit } from '../models/ConcurrencyV2Limit';
|
|
3
|
+
import { MapFunction } from '../services/Mapper';
|
|
4
|
+
export declare const mapConcurrencyV2ResponseToConcurrencyV2Limit: MapFunction<ConcurrencyV2Response, ConcurrencyV2Limit>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConcurrencyV2CreateRequest } from '../models/api/ConcurrencyV2CreateRequest';
|
|
2
|
+
import { ConcurrencyV2Create } from '../models/ConcurrencyV2Create';
|
|
3
|
+
import { MapFunction } from '../services/Mapper';
|
|
4
|
+
export declare const mapConcurrencyV2CreateToConcurrencyV2CreateRequest: MapFunction<ConcurrencyV2Create, ConcurrencyV2CreateRequest>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConcurrencyV2UpdateRequest } from '../models/api/ConcurrencyV2UpdateRequest';
|
|
2
|
+
import { ConcurrencyV2Update } from '../models/ConcurrencyV2Update';
|
|
3
|
+
import { MapFunction } from '../services/Mapper';
|
|
4
|
+
export declare const mapConcurrencyV2UpdateToConcurrencyV2UpdateRequest: MapFunction<ConcurrencyV2Update, ConcurrencyV2UpdateRequest>;
|
|
@@ -65,6 +65,15 @@ export declare const maps: {
|
|
|
65
65
|
ConcurrencyLimitResponse: {
|
|
66
66
|
ConcurrencyLimit: import("..").MapFunction<import("..").ConcurrencyLimitResponse, import("..").ConcurrencyLimit>;
|
|
67
67
|
};
|
|
68
|
+
ConcurrencyV2LimitResponse: {
|
|
69
|
+
ConcurrencyV2Limit: import("..").MapFunction<import("../models/api/ConcurrencyV2Response").ConcurrencyV2Response, import("..").ConcurrencyV2Limit>;
|
|
70
|
+
};
|
|
71
|
+
ConcurrencyV2LimitCreate: {
|
|
72
|
+
ConcurrencyV2CreateRequest: import("..").MapFunction<import("../models/ConcurrencyV2Create").ConcurrencyV2Create, import("../models/api/ConcurrencyV2CreateRequest").ConcurrencyV2CreateRequest>;
|
|
73
|
+
};
|
|
74
|
+
ConcurrencyV2LimitUpdate: {
|
|
75
|
+
ConcurrencyV2UpdateRequest: import("..").MapFunction<import("../models/ConcurrencyV2Update").ConcurrencyV2Update, import("../models/api/ConcurrencyV2UpdateRequest").ConcurrencyV2UpdateRequest>;
|
|
76
|
+
};
|
|
68
77
|
CreatedOrUpdatedByResponse: {
|
|
69
78
|
CreatedOrUpdatedBy: import("..").MapFunction<import("..").CreatedOrUpdatedByResponse, import("..").CreatedOrUpdatedBy>;
|
|
70
79
|
};
|
|
@@ -13,6 +13,7 @@ export declare const mocks: {
|
|
|
13
13
|
char: import("..").MockFunction<"h" | "d" | "w" | "m" | "y" | "a" | "b" | "c" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "x" | "z", []>;
|
|
14
14
|
collectionItem: import("..").MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
15
15
|
concurrencyLimit: import("..").MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
16
|
+
concurrencyV2Limit: import("..").MockFunction<import("..").ConcurrencyV2Limit, [(Partial<import("..").ConcurrencyV2Limit> | undefined)?]>;
|
|
16
17
|
createdOrUpdatedBy: import("..").MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
17
18
|
date: import("..").MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
18
19
|
dateString: import("..").MockFunction<string, [(Date | undefined)?, (Date | undefined)?]>;
|
|
@@ -2,11 +2,11 @@ export type ConcurrencyV2Limit = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
created: Date;
|
|
4
4
|
updated: Date;
|
|
5
|
-
active
|
|
5
|
+
active?: boolean;
|
|
6
6
|
name: string;
|
|
7
7
|
limit: number;
|
|
8
|
-
activeSlots
|
|
9
|
-
deniedSlots
|
|
10
|
-
slotDecayPerSecond
|
|
11
|
-
avgSlotOccupancySeconds
|
|
8
|
+
activeSlots?: number;
|
|
9
|
+
deniedSlots?: number;
|
|
10
|
+
slotDecayPerSecond?: number;
|
|
11
|
+
avgSlotOccupancySeconds?: number;
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ import { StateType } from '../models/StateType';
|
|
|
4
4
|
import { TaskInput } from '../models/TaskInput';
|
|
5
5
|
export interface ITaskRun {
|
|
6
6
|
id: string;
|
|
7
|
-
flowRunId: string;
|
|
7
|
+
flowRunId: string | null;
|
|
8
8
|
cacheExpiration: string | null;
|
|
9
9
|
cacheKey: string | null;
|
|
10
10
|
created: Date;
|
|
@@ -30,7 +30,7 @@ export interface ITaskRun {
|
|
|
30
30
|
}
|
|
31
31
|
export declare class TaskRun implements ITaskRun {
|
|
32
32
|
readonly id: string;
|
|
33
|
-
readonly flowRunId: string;
|
|
33
|
+
readonly flowRunId: string | null;
|
|
34
34
|
cacheExpiration: string | null;
|
|
35
35
|
cacheKey: string | null;
|
|
36
36
|
created: Date;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type ConcurrencyV2CreateRequest = {
|
|
2
|
-
active
|
|
3
|
-
name
|
|
4
|
-
limit
|
|
5
|
-
active_slots
|
|
6
|
-
denied_slots
|
|
7
|
-
slot_decay_per_second
|
|
2
|
+
active?: boolean;
|
|
3
|
+
name?: string;
|
|
4
|
+
limit?: number;
|
|
5
|
+
active_slots?: number;
|
|
6
|
+
denied_slots?: number;
|
|
7
|
+
slot_decay_per_second?: number;
|
|
8
8
|
};
|
|
@@ -9,6 +9,7 @@ export * from './BlockSchema';
|
|
|
9
9
|
export * from './BlockType';
|
|
10
10
|
export * from './CollectionItem';
|
|
11
11
|
export * from './ConcurrencyLimit';
|
|
12
|
+
export * from './ConcurrencyV2Limit';
|
|
12
13
|
export * from './ConcurrencyLimitCreate';
|
|
13
14
|
export * from './CreatedOrUpdatedBy';
|
|
14
15
|
export * from './CronSchedule';
|
|
@@ -48,8 +48,15 @@ export declare function createWorkspaceRoutes(config?: CreateWorkspaceRoutesConf
|
|
|
48
48
|
readonly flowRunId: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
+
taskRuns: () => {
|
|
52
|
+
readonly name: "workspace.task-runs";
|
|
53
|
+
readonly params: {
|
|
54
|
+
readonly accountId?: string | undefined;
|
|
55
|
+
readonly workspaceId?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
51
58
|
taskRun: (taskRunId: string) => {
|
|
52
|
-
readonly name: "workspace.
|
|
59
|
+
readonly name: "workspace.task-runs.task-run";
|
|
53
60
|
readonly params: {
|
|
54
61
|
readonly accountId?: string | undefined;
|
|
55
62
|
readonly workspaceId?: string | undefined;
|
|
@@ -235,6 +242,21 @@ export declare function createWorkspaceRoutes(config?: CreateWorkspaceRoutesConf
|
|
|
235
242
|
readonly workspaceId?: string | undefined;
|
|
236
243
|
};
|
|
237
244
|
};
|
|
245
|
+
concurrencyLimitsV2: () => {
|
|
246
|
+
readonly name: "workspace.concurrency-limits-v2";
|
|
247
|
+
readonly params: {
|
|
248
|
+
readonly accountId?: string | undefined;
|
|
249
|
+
readonly workspaceId?: string | undefined;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
concurrencyLimitV2: (concurrencyLimitId: string) => {
|
|
253
|
+
readonly name: "workspace.concurrency-limits-v2.concurrency-limit";
|
|
254
|
+
readonly params: {
|
|
255
|
+
readonly accountId?: string | undefined;
|
|
256
|
+
readonly workspaceId?: string | undefined;
|
|
257
|
+
readonly concurrencyLimitId: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
238
260
|
variables: () => {
|
|
239
261
|
readonly name: "workspace.variables";
|
|
240
262
|
readonly params: {
|
|
@@ -89,6 +89,15 @@ export declare const mapper: Mapper<{
|
|
|
89
89
|
ConcurrencyLimitResponse: {
|
|
90
90
|
ConcurrencyLimit: MapFunction<import("..").ConcurrencyLimitResponse, import("..").ConcurrencyLimit>;
|
|
91
91
|
};
|
|
92
|
+
ConcurrencyV2LimitResponse: {
|
|
93
|
+
ConcurrencyV2Limit: MapFunction<import("../models/api/ConcurrencyV2Response").ConcurrencyV2Response, import("..").ConcurrencyV2Limit>;
|
|
94
|
+
};
|
|
95
|
+
ConcurrencyV2LimitCreate: {
|
|
96
|
+
ConcurrencyV2CreateRequest: MapFunction<import("../models/ConcurrencyV2Create").ConcurrencyV2Create, import("../models/api/ConcurrencyV2CreateRequest").ConcurrencyV2CreateRequest>;
|
|
97
|
+
};
|
|
98
|
+
ConcurrencyV2LimitUpdate: {
|
|
99
|
+
ConcurrencyV2UpdateRequest: MapFunction<import("../models/ConcurrencyV2Update").ConcurrencyV2Update, import("../models/api/ConcurrencyV2UpdateRequest").ConcurrencyV2UpdateRequest>;
|
|
100
|
+
};
|
|
92
101
|
CreatedOrUpdatedByResponse: {
|
|
93
102
|
CreatedOrUpdatedBy: MapFunction<import("..").CreatedOrUpdatedByResponse, import("..").CreatedOrUpdatedBy>;
|
|
94
103
|
};
|
|
@@ -26,6 +26,7 @@ export declare const mocker: Mocker<{
|
|
|
26
26
|
char: MockFunction<"h" | "d" | "w" | "m" | "y" | "a" | "b" | "c" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "x" | "z", []>;
|
|
27
27
|
collectionItem: MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
28
28
|
concurrencyLimit: MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
29
|
+
concurrencyV2Limit: MockFunction<import("..").ConcurrencyV2Limit, [(Partial<import("..").ConcurrencyV2Limit> | undefined)?]>;
|
|
29
30
|
createdOrUpdatedBy: MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
30
31
|
date: MockFunction<Date, [(Date | undefined)?, (Date | undefined)?]>;
|
|
31
32
|
dateString: MockFunction<string, [(Date | undefined)?, (Date | undefined)?]>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConcurrencyV2ActiveSlots } from '../models/ConcurrencyV2ActiveSlots';
|
|
2
|
+
import { ConcurrencyV2Create } from '../models/ConcurrencyV2Create';
|
|
3
|
+
import { ConcurrencyV2Limit } from '../models/ConcurrencyV2Limit';
|
|
4
|
+
import { ConcurrencyV2Update } from '../models/ConcurrencyV2Update';
|
|
5
|
+
import { ConcurrencyLimitsFilter } from '../models/Filters';
|
|
6
|
+
import { WorkspaceApi } from '../services/WorkspaceApi';
|
|
7
|
+
export interface IWorkspaceConcurrencyV2LimitsApi {
|
|
8
|
+
getConcurrencyV2Limit: (concurrencyV2LimitId: string) => Promise<ConcurrencyV2Limit>;
|
|
9
|
+
getConcurrencyV2Limits: (filter: ConcurrencyLimitsFilter) => Promise<ConcurrencyV2Limit[]>;
|
|
10
|
+
createConcurrencyV2Limit: (concurrencyV2Limit: ConcurrencyV2Create) => Promise<ConcurrencyV2Limit>;
|
|
11
|
+
updateConcurrencyV2Limit: (id: string, concurrencyV2Limit: ConcurrencyV2Update) => Promise<ConcurrencyV2Limit>;
|
|
12
|
+
deleteConcurrencyV2Limit: (concurrencyV2LimitId: string) => Promise<void>;
|
|
13
|
+
bulkIncrementActiveSlots: (names: string[], slots: number, mode: string) => Promise<ConcurrencyV2ActiveSlots>;
|
|
14
|
+
bulkDecrementActiveSlots: (names: string[], slots: number, mode: string) => Promise<ConcurrencyV2ActiveSlots>;
|
|
15
|
+
}
|
|
16
|
+
export declare class WorkspaceConcurrencyV2LimitsApi extends WorkspaceApi {
|
|
17
|
+
protected routePrefix: string;
|
|
18
|
+
getConcurrencyV2Limits(filter?: ConcurrencyLimitsFilter): Promise<ConcurrencyV2Limit[]>;
|
|
19
|
+
getConcurrencyV2Limit(id: string): Promise<ConcurrencyV2Limit>;
|
|
20
|
+
createConcurrencyV2Limit(limit: ConcurrencyV2Create): Promise<ConcurrencyV2Limit>;
|
|
21
|
+
updateConcurrencyV2Limit(id: string, limit: ConcurrencyV2Update): Promise<ConcurrencyV2Limit>;
|
|
22
|
+
deleteConcurrencyV2Limit(id: string): Promise<void>;
|
|
23
|
+
bulkIncrementActiveSlots(names: string[], slots: number, mode: string): Promise<ConcurrencyV2ActiveSlots>;
|
|
24
|
+
bulkDecrementActiveSlots(names: string[], slots: number, mode: string): Promise<ConcurrencyV2ActiveSlots>;
|
|
25
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from './WorkspaceBlockDocumentsApi';
|
|
|
14
14
|
export * from './WorkspaceBlockSchemasApi';
|
|
15
15
|
export * from './WorkspaceBlockTypesApi';
|
|
16
16
|
export * from './WorkspaceConcurrencyLimitsApi';
|
|
17
|
+
export * from './WorkspaceConcurrencyLimitsV2API';
|
|
17
18
|
export * from './WorkspaceDeploymentsApi';
|
|
18
19
|
export * from './WorkspaceFlowRunsApi';
|
|
19
20
|
export * from './WorkspaceFlowsApi';
|
|
@@ -9,6 +9,7 @@ import { WorkspaceBlockDocumentsApi } from '../services/WorkspaceBlockDocumentsA
|
|
|
9
9
|
import { WorkspaceBlockSchemasApi } from '../services/WorkspaceBlockSchemasApi';
|
|
10
10
|
import { WorkspaceBlockTypesApi } from '../services/WorkspaceBlockTypesApi';
|
|
11
11
|
import { WorkspaceConcurrencyLimitsApi } from '../services/WorkspaceConcurrencyLimitsApi';
|
|
12
|
+
import { WorkspaceConcurrencyV2LimitsApi } from '../services/WorkspaceConcurrencyLimitsV2API';
|
|
12
13
|
import { WorkspaceDeploymentsApi } from '../services/WorkspaceDeploymentsApi';
|
|
13
14
|
import { WorkspaceFlowRunsApi } from '../services/WorkspaceFlowRunsApi';
|
|
14
15
|
import { WorkspaceFlowsApi } from '../services/WorkspaceFlowsApi';
|
|
@@ -29,6 +30,7 @@ export declare function createApi(workspaceConfig: WorkspaceApiConfig): {
|
|
|
29
30
|
blockTypes: import("@prefecthq/vue-compositions").CreateActions<WorkspaceBlockTypesApi>;
|
|
30
31
|
collections: import("@prefecthq/vue-compositions").CreateActions<CollectionsApi>;
|
|
31
32
|
concurrencyLimits: import("@prefecthq/vue-compositions").CreateActions<WorkspaceConcurrencyLimitsApi>;
|
|
33
|
+
concurrencyV2Limits: import("@prefecthq/vue-compositions").CreateActions<WorkspaceConcurrencyV2LimitsApi>;
|
|
32
34
|
deployments: import("@prefecthq/vue-compositions").CreateActions<WorkspaceDeploymentsApi>;
|
|
33
35
|
flowRuns: import("@prefecthq/vue-compositions").CreateActions<WorkspaceFlowRunsApi>;
|
|
34
36
|
flows: import("@prefecthq/vue-compositions").CreateActions<WorkspaceFlowsApi>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as O, f as k, $ as b, l as c } from "./index-
|
|
1
|
+
import { k as O, f as k, $ as b, l as c } from "./index-a0d15dfc.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/vue-charts";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
@@ -1535,4 +1535,4 @@ export {
|
|
|
1535
1535
|
C as Viewport,
|
|
1536
1536
|
N as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-ae91b8e8-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-ae91b8e8-96b1fc79.mjs.map
|