@prefecthq/prefect-ui-library 2.0.0-beta.0 → 2.0.1

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 (55) hide show
  1. package/dist/{index-a467e34e.mjs → index-56d7f5d8.mjs} +16478 -15989
  2. package/dist/index-56d7f5d8.mjs.map +1 -0
  3. package/dist/prefect-ui-library.mjs +715 -709
  4. package/dist/prefect-ui-library.umd.js +120 -120
  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/ConcurrencyLimitV2Menu.vue.d.ts +17 -0
  14. package/dist/types/src/components/ConcurrencyLimitsV2CreateModal.vue.d.ts +23 -0
  15. package/dist/types/src/components/ConcurrencyLimitsV2Table.vue.d.ts +2 -0
  16. package/dist/types/src/components/ConcurrencyLimitsV2UpdateModal.vue.d.ts +32 -0
  17. package/dist/types/src/components/NotificationStatusSelect.vue.d.ts +4 -4
  18. package/dist/types/src/components/index.d.ts +4 -0
  19. package/dist/types/src/compositions/index.d.ts +1 -0
  20. package/dist/types/src/compositions/useOffsetStickyRootMargin.d.ts +14 -0
  21. package/dist/types/src/compositions/useWorkspaceRoutes.d.ts +23 -1
  22. package/dist/types/src/localization/index.d.ts +2 -0
  23. package/dist/types/src/localization/locale/en.d.ts +2 -0
  24. package/dist/types/src/maps/concurrencyV2Limit.d.ts +4 -0
  25. package/dist/types/src/maps/concurrencyV2LimitCreate.d.ts +4 -0
  26. package/dist/types/src/maps/concurrencyV2LimitUpdate.d.ts +4 -0
  27. package/dist/types/src/maps/index.d.ts +9 -0
  28. package/dist/types/src/mocks/concurrencyV2Limit.d.ts +3 -0
  29. package/dist/types/src/mocks/index.d.ts +1 -0
  30. package/dist/types/src/models/ConcurrencyV2ActiveSlots.d.ts +5 -0
  31. package/dist/types/src/models/ConcurrencyV2Create.d.ts +8 -0
  32. package/dist/types/src/models/ConcurrencyV2DecrementActiveSlots.d.ts +5 -0
  33. package/dist/types/src/models/ConcurrencyV2IncrementActiveSlots.d.ts +5 -0
  34. package/dist/types/src/models/ConcurrencyV2Limit.d.ts +12 -0
  35. package/dist/types/src/models/ConcurrencyV2Update.d.ts +8 -0
  36. package/dist/types/src/models/TaskRun.d.ts +2 -2
  37. package/dist/types/src/models/api/ConcurrencyV2ActiveSlotsResponse.d.ts +5 -0
  38. package/dist/types/src/models/api/ConcurrencyV2CreateRequest.d.ts +8 -0
  39. package/dist/types/src/models/api/ConcurrencyV2DecrementActiveSlotsRequest.d.ts +5 -0
  40. package/dist/types/src/models/api/ConcurrencyV2IncrementActiveSlotsRequest.d.ts +5 -0
  41. package/dist/types/src/models/api/ConcurrencyV2Response.d.ts +12 -0
  42. package/dist/types/src/models/api/ConcurrencyV2UpdateRequest.d.ts +8 -0
  43. package/dist/types/src/models/api/TaskRunResponse.d.ts +1 -1
  44. package/dist/types/src/models/index.d.ts +1 -0
  45. package/dist/types/src/router/routes.d.ts +23 -1
  46. package/dist/types/src/services/Mapper.d.ts +9 -0
  47. package/dist/types/src/services/Mocker.d.ts +1 -0
  48. package/dist/types/src/services/WorkspaceConcurrencyLimitsV2API.d.ts +25 -0
  49. package/dist/types/src/services/index.d.ts +1 -0
  50. package/dist/types/src/utilities/api.d.ts +2 -0
  51. package/dist/types/src/utilities/formValidation.d.ts +3 -0
  52. package/dist/{viewport.es-f8e518db-b39becd6.mjs → viewport.es-f8e518db-f46c8e0e.mjs} +2 -2
  53. package/dist/{viewport.es-f8e518db-b39becd6.mjs.map → viewport.es-f8e518db-f46c8e0e.mjs.map} +1 -1
  54. package/package.json +11 -11
  55. package/dist/index-a467e34e.mjs.map +0 -1
@@ -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" | "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,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';
@@ -34,6 +34,7 @@ export * from './useReactiveForm';
34
34
  export * from './useScrollLinking';
35
35
  export * from './useShowModal';
36
36
  export * from './useStatePolling';
37
+ export * from './useOffsetStickyRootMargin';
37
38
  export * from './useSubscriptions';
38
39
  export * from './useTabs';
39
40
  export * from './useTaskRun';
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ type UseOffsetStickyRootMargin = {
3
+ margin: Ref<string>;
4
+ };
5
+ /**
6
+ * The useOffsetStickyRootMargin composition is used to provide a rootMargin
7
+ * value for sticky headers that are intended to align with the top of the page,
8
+ * or just below the mobile nav on smaller screens. Use in conjunction with
9
+ * prefect-design's <p-layout-table> component or the usePositionStickyObserver
10
+ * composition from vue-compositions.
11
+ * @returns UseOffsetStickyRootMargin
12
+ */
13
+ export declare function useOffsetStickyRootMargin(): UseOffsetStickyRootMargin;
14
+ export {};
@@ -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: {
@@ -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
  };
@@ -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
+ };
@@ -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
+ };
@@ -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
  };
@@ -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>;
@@ -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,4 +1,4 @@
1
- import { X as O, l as k, K as b, u as c } from "./index-a467e34e.mjs";
1
+ import { X as O, l as k, K as b, u as c } from "./index-56d7f5d8.mjs";
2
2
  import "vue";
3
3
  import "@prefecthq/vue-charts";
4
4
  import "@prefecthq/prefect-design";
@@ -2239,4 +2239,4 @@ export {
2239
2239
  C as Viewport,
2240
2240
  $ as Wheel
2241
2241
  };
2242
- //# sourceMappingURL=viewport.es-f8e518db-b39becd6.mjs.map
2242
+ //# sourceMappingURL=viewport.es-f8e518db-f46c8e0e.mjs.map