@prefecthq/prefect-ui-library 3.12.5 → 3.12.7

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.
@@ -5,28 +5,18 @@ type SimpleVersionInfo = {
5
5
  branch?: string | null;
6
6
  url?: string | null;
7
7
  };
8
- type GithubVersionInfo = {
9
- type: 'vcs:github';
8
+ type GitVersionInfoBase = {
9
+ type: string;
10
10
  version: string;
11
11
  branch: string;
12
12
  url: string;
13
13
  repository: string;
14
14
  };
15
- type GitVersionInfo = {
15
+ type GitVersionInfo = GitVersionInfoBase & {
16
16
  type: 'vcs:git';
17
- version: string;
18
- branch: string;
19
- url: string;
20
- repository: string;
21
17
  };
22
- type DockerVersionInfo = {
23
- type: 'container:docker';
24
- version: string;
25
- branch: string;
26
- url: string;
27
- imageName: string;
28
- registry: string;
29
- image: string;
18
+ type GithubVersionInfo = GitVersionInfoBase & {
19
+ type: 'vcs:github';
30
20
  };
31
- export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo | DockerVersionInfo) & Record<string, unknown>;
21
+ export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo) & Record<string, unknown>;
32
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.12.5",
3
+ "version": "3.12.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -207,8 +207,8 @@ export const mapFlowRunFilter: MapFunction<FlowRunFilter, FlowRunFilterRequest>
207
207
  ...toAny(source.deploymentId),
208
208
  ...toIsNull(source.deploymentIdNull),
209
209
  },
210
- deployment_version_id: this.map('DeploymentVersionIdFilter', source.deploymentVersionId, 'DeploymentVersionIdFilterRequest'),
211
- deployment_version_info: this.map('DeploymentVersionInfoFilter', source.deploymentVersionInfo, 'DeploymentVersionInfoFilterRequest'),
210
+ deployment_version_id: Object.keys(removeEmptyObjects(source.deploymentVersionId ?? {})).length > 0 ? this.map('DeploymentVersionIdFilter', source.deploymentVersionId, 'DeploymentVersionIdFilterRequest') : undefined,
211
+ deployment_version_info: Object.keys(removeEmptyObjects(source.deploymentVersionInfo ?? {})).length > 0 ? this.map('DeploymentVersionInfoFilter', source.deploymentVersionInfo, 'DeploymentVersionInfoFilterRequest') : undefined,
212
212
  work_queue_name: {
213
213
  ...toOperator(source.workQueueNameOperator),
214
214
  ...toAny(source.workQueueName),
@@ -6,30 +6,20 @@ type SimpleVersionInfo = {
6
6
  url?: string | null,
7
7
  }
8
8
 
9
- type GithubVersionInfo = {
10
- type: 'vcs:github',
9
+ type GitVersionInfoBase = {
10
+ type: string,
11
11
  version: string,
12
12
  branch: string,
13
13
  url: string,
14
14
  repository: string,
15
15
  }
16
16
 
17
- type GitVersionInfo = {
17
+ type GitVersionInfo = GitVersionInfoBase & {
18
18
  type: 'vcs:git',
19
- version: string,
20
- branch: string,
21
- url: string,
22
- repository: string,
23
19
  }
24
20
 
25
- type DockerVersionInfo = {
26
- type: 'container:docker',
27
- version: string,
28
- branch: string,
29
- url: string,
30
- imageName: string,
31
- registry: string,
32
- image: string,
21
+ type GithubVersionInfo = GitVersionInfoBase & {
22
+ type: 'vcs:github',
33
23
  }
34
24
 
35
- export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo | DockerVersionInfo) & Record<string, unknown>
25
+ export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo) & Record<string, unknown>