@prefecthq/prefect-ui-library 3.11.16 → 3.11.17

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.
@@ -1,4 +1,11 @@
1
1
  import { WorkPoolWorkerStatus } from '../models/WorkPoolWorkerStatus';
2
+ type Integration = {
3
+ name: string;
4
+ version: string;
5
+ };
6
+ type Metadata = Record<string, unknown> & {
7
+ integrations?: Integration[];
8
+ };
2
9
  export interface IWorkPoolWorker {
3
10
  readonly id: string;
4
11
  created: Date;
@@ -9,7 +16,7 @@ export interface IWorkPoolWorker {
9
16
  status: WorkPoolWorkerStatus;
10
17
  heartbeatIntervalSeconds: number;
11
18
  clientVersion: string | null;
12
- metadata: Record<string, unknown> | null;
19
+ metadata: Metadata | null;
13
20
  }
14
21
  export declare class WorkPoolWorker implements IWorkPoolWorker {
15
22
  readonly id: string;
@@ -32,3 +39,4 @@ export type PaginatedWorkPoolWorkers = {
32
39
  page: number;
33
40
  pages: number;
34
41
  };
42
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.11.16",
3
+ "version": "3.11.17",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,8 @@
1
1
  import { WorkPoolWorkerStatus } from '@/models/WorkPoolWorkerStatus'
2
2
 
3
+ type Integration = { name: string, version: string }
4
+ type Metadata = Record<string, unknown> & { integrations?: Integration[] }
5
+
3
6
  export interface IWorkPoolWorker {
4
7
  readonly id: string,
5
8
  created: Date,
@@ -10,7 +13,7 @@ export interface IWorkPoolWorker {
10
13
  status: WorkPoolWorkerStatus,
11
14
  heartbeatIntervalSeconds: number,
12
15
  clientVersion: string | null,
13
- metadata: Record<string, unknown> | null,
16
+ metadata: Metadata | null,
14
17
  }
15
18
 
16
19
  export class WorkPoolWorker implements IWorkPoolWorker {