@prefecthq/prefect-ui-library 1.6.45 → 1.6.47

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.
Files changed (52) hide show
  1. package/dist/{index-705c852f.mjs → index-e00a6af7.mjs} +14744 -14280
  2. package/dist/index-e00a6af7.mjs.map +1 -0
  3. package/dist/prefect-ui-library.mjs +707 -704
  4. package/dist/prefect-ui-library.umd.js +73 -73
  5. package/dist/prefect-ui-library.umd.js.map +1 -1
  6. package/dist/style.css +1 -1
  7. package/dist/types/demo/compositions/useSeeds.d.ts +2 -1
  8. package/dist/types/demo/sections/concurrency/ConcurrencyLimitsV2Table.vue.d.ts +2 -0
  9. package/dist/types/demo/services/MockApi.d.ts +2 -0
  10. package/dist/types/demo/services/mockWorkspaceConcurrencyV2LimitsAPI.d.ts +15 -0
  11. package/dist/types/demo/utilities/api.d.ts +4 -0
  12. package/dist/types/demo/utilities/data.d.ts +4 -0
  13. package/dist/types/src/components/ConcurrencyLimitsV2CreateModal.vue.d.ts +23 -0
  14. package/dist/types/src/components/ConcurrencyLimitsV2Table.vue.d.ts +2 -0
  15. package/dist/types/src/components/NotificationStatusSelect.vue.d.ts +4 -4
  16. package/dist/types/src/components/index.d.ts +2 -0
  17. package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +23 -1
  18. package/dist/types/src/maps/concurrencyV2Limit.d.ts +4 -0
  19. package/dist/types/src/maps/concurrencyV2LimitCreate.d.ts +4 -0
  20. package/dist/types/src/maps/concurrencyV2LimitUpdate.d.ts +4 -0
  21. package/dist/types/src/maps/index.d.ts +10 -0
  22. package/dist/types/src/mocks/concurrencyV2Limit.d.ts +3 -0
  23. package/dist/types/src/mocks/index.d.ts +1 -0
  24. package/dist/types/src/models/ConcurrencyV2ActiveSlots.d.ts +5 -0
  25. package/dist/types/src/models/ConcurrencyV2Create.d.ts +8 -0
  26. package/dist/types/src/models/ConcurrencyV2DecrementActiveSlots.d.ts +5 -0
  27. package/dist/types/src/models/ConcurrencyV2IncrementActiveSlots.d.ts +5 -0
  28. package/dist/types/src/models/ConcurrencyV2Limit.d.ts +12 -0
  29. package/dist/types/src/models/ConcurrencyV2Update.d.ts +8 -0
  30. package/dist/types/src/models/DeploymentFlowRunCreate.d.ts +1 -0
  31. package/dist/types/src/models/TaskRun.d.ts +2 -2
  32. package/dist/types/src/models/api/ConcurrencyV2ActiveSlotsResponse.d.ts +5 -0
  33. package/dist/types/src/models/api/ConcurrencyV2CreateRequest.d.ts +8 -0
  34. package/dist/types/src/models/api/ConcurrencyV2DecrementActiveSlotsRequest.d.ts +5 -0
  35. package/dist/types/src/models/api/ConcurrencyV2IncrementActiveSlotsRequest.d.ts +5 -0
  36. package/dist/types/src/models/api/ConcurrencyV2Response.d.ts +12 -0
  37. package/dist/types/src/models/api/ConcurrencyV2UpdateRequest.d.ts +8 -0
  38. package/dist/types/src/models/api/DeploymentFlowRunRequest.d.ts +1 -0
  39. package/dist/types/src/models/api/TaskRunResponse.d.ts +1 -1
  40. package/dist/types/src/models/index.d.ts +1 -0
  41. package/dist/types/src/router/routes.d.ts +23 -1
  42. package/dist/types/src/services/Mapper.d.ts +10 -0
  43. package/dist/types/src/services/Mocker.d.ts +1 -0
  44. package/dist/types/src/services/WorkspaceConcurrencyLimitsV2API.d.ts +25 -0
  45. package/dist/types/src/services/index.d.ts +1 -0
  46. package/dist/types/src/utilities/api.d.ts +2 -0
  47. package/dist/types/src/utilities/formValidation.d.ts +3 -0
  48. package/dist/types/vite.config.d.ts +1 -1
  49. package/dist/{viewport.es-ae91b8e8-1d889a4d.mjs → viewport.es-ae91b8e8-c67ff66c.mjs} +2 -2
  50. package/dist/{viewport.es-ae91b8e8-1d889a4d.mjs.map → viewport.es-ae91b8e8-c67ff66c.mjs.map} +1 -1
  51. package/package.json +9 -9
  52. package/dist/index-705c852f.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(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,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;
@@ -1,16 +1,16 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  selected: {
3
- type: import("vue").PropType<"paused" | "all" | "active">;
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" | "all" | "active") => void;
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" | "all" | "active">;
10
+ type: import("vue").PropType<"paused" | "active" | "all">;
11
11
  required: true;
12
12
  };
13
13
  }>> & {
14
- "onUpdate:selected"?: ((value: "paused" | "all" | "active") => any) | undefined;
14
+ "onUpdate:selected"?: ((value: "paused" | "active" | "all") => any) | undefined;
15
15
  }, {}, {}>;
16
16
  export default _default;
@@ -46,6 +46,8 @@ 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 ConcurrencyLimitsV2Table } from './ConcurrencyLimitsV2Table.vue';
50
+ export { default as ConcurrencyLimitsV2CreateModal } from './ConcurrencyLimitsV2CreateModal.vue';
49
51
  export { default as ConcurrencyTableActiveSlots } from './ConcurrencyTableActiveSlots.vue';
50
52
  export { default as ConfirmDeleteModal } from './ConfirmDeleteModal.vue';
51
53
  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.flow-runs.task-run";
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: {
@@ -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
  };
@@ -85,6 +94,7 @@ export declare const maps: {
85
94
  parent_task_run_id: string | null;
86
95
  infrastructure_document_id: string | null;
87
96
  state: Partial<import("..").StateRequest>;
97
+ work_queue_name: string | null;
88
98
  }>>;
89
99
  };
90
100
  DeploymentResponse: {
@@ -0,0 +1,3 @@
1
+ import { ConcurrencyV2Limit } from '../models/ConcurrencyV2Limit';
2
+ import { MockFunction } from '../services/Mocker';
3
+ export declare const randomConcurrencyV2Limit: MockFunction<ConcurrencyV2Limit, [Partial<ConcurrencyV2Limit>?]>;
@@ -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)?]>;
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2ActiveSlots = {
2
+ id: string;
3
+ name: string;
4
+ limit: number;
5
+ };
@@ -0,0 +1,8 @@
1
+ export type ConcurrencyV2Create = {
2
+ active?: boolean;
3
+ name?: string;
4
+ limit?: number;
5
+ activeSlots?: number;
6
+ deniedSlots?: number;
7
+ slotDecayPerSecond?: number;
8
+ };
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2DecrementActiveSlots = {
2
+ slots: number;
3
+ names: string[];
4
+ occupancySeconds: number;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2IncrementActiveSlots = {
2
+ slots: number;
3
+ names: string[];
4
+ mode: string;
5
+ };
@@ -0,0 +1,12 @@
1
+ export type ConcurrencyV2Limit = {
2
+ id: string;
3
+ created: Date;
4
+ updated: Date;
5
+ active?: boolean;
6
+ name: string;
7
+ limit: number;
8
+ activeSlots?: number;
9
+ deniedSlots?: number;
10
+ slotDecayPerSecond?: number;
11
+ avgSlotOccupancySeconds?: number;
12
+ };
@@ -0,0 +1,8 @@
1
+ export type ConcurrencyV2Update = {
2
+ active?: boolean;
3
+ name?: string;
4
+ limit?: number;
5
+ activeSlots?: number;
6
+ deniedSlots?: number;
7
+ slotDecayPerSecond?: number;
8
+ };
@@ -10,6 +10,7 @@ type Base = {
10
10
  parentTaskRunId?: string | null;
11
11
  infrastructureDocumentId?: string | null;
12
12
  state?: StateCreate;
13
+ workQueueName?: string | null;
13
14
  };
14
15
  type WithoutParameters = Base & {
15
16
  schema?: never;
@@ -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;
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2ActiveSlotsResponse = {
2
+ id: string;
3
+ name: string;
4
+ limit: number;
5
+ };
@@ -0,0 +1,8 @@
1
+ export type ConcurrencyV2CreateRequest = {
2
+ active?: boolean;
3
+ name?: string;
4
+ limit?: number;
5
+ active_slots?: number;
6
+ denied_slots?: number;
7
+ slot_decay_per_second?: number;
8
+ };
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2IncrementActiveSlotsRequest = {
2
+ slots: number;
3
+ names: string[];
4
+ occupancy_seconds: number;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type ConcurrencyV2IncrementActiveSlotsRequest = {
2
+ slots: number;
3
+ names: string[];
4
+ mode: string;
5
+ };
@@ -0,0 +1,12 @@
1
+ export type ConcurrencyV2Response = {
2
+ id: string;
3
+ created: Date;
4
+ updated: Date;
5
+ active: boolean;
6
+ name: string;
7
+ limit: number;
8
+ active_slots: number;
9
+ denied_slots: number;
10
+ slot_decay_per_second: number;
11
+ avg_slot_occupancy_seconds: number;
12
+ };
@@ -0,0 +1,8 @@
1
+ export type ConcurrencyV2UpdateRequest = {
2
+ active?: boolean;
3
+ name?: string;
4
+ limit?: number;
5
+ active_slots?: number;
6
+ denied_slots?: number;
7
+ slot_decay_per_second?: number;
8
+ };
@@ -10,4 +10,5 @@ export type DeploymentFlowRunRequest = Partial<{
10
10
  parent_task_run_id: string | null;
11
11
  infrastructure_document_id: string | null;
12
12
  state: Partial<StateRequest>;
13
+ work_queue_name: string | null;
13
14
  }>;
@@ -8,7 +8,7 @@ export type TaskRunResponse = {
8
8
  created: string;
9
9
  updated: string;
10
10
  name: string | null;
11
- flow_run_id: string;
11
+ flow_run_id: string | null;
12
12
  task_key: string;
13
13
  dynamic_key: string;
14
14
  cache_key: string | null;
@@ -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.flow-runs.task-run";
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
  };
@@ -109,6 +118,7 @@ export declare const mapper: Mapper<{
109
118
  parent_task_run_id: string | null;
110
119
  infrastructure_document_id: string | null;
111
120
  state: Partial<import("..").StateRequest>;
121
+ work_queue_name: string | null;
112
122
  }>>;
113
123
  };
114
124
  DeploymentResponse: {
@@ -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: (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(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>;
@@ -0,0 +1,3 @@
1
+ import { ValidationRule } from '@prefecthq/vue-compositions';
2
+ export declare const isRequired: ValidationRule<unknown>;
3
+ export declare const isGreaterThanZeroOrNull: ValidationRule<number | undefined>;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vite").UserConfigExport;
1
+ declare const _default: import("vite").UserConfigFnObject;
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- import { k as O, f as k, $ as b, l as c } from "./index-705c852f.mjs";
1
+ import { k as O, f as k, $ as b, l as c } from "./index-e00a6af7.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-1d889a4d.mjs.map
1538
+ //# sourceMappingURL=viewport.es-ae91b8e8-c67ff66c.mjs.map