@prefecthq/prefect-ui-library 3.12.7 → 3.12.8

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.
@@ -8,6 +8,8 @@ type SimpleVersionInfo = {
8
8
  type GitVersionInfoBase = {
9
9
  type: string;
10
10
  version: string;
11
+ commitSha: string;
12
+ message: string;
11
13
  branch: string;
12
14
  url: string;
13
15
  repository: string;
@@ -18,5 +20,14 @@ type GitVersionInfo = GitVersionInfoBase & {
18
20
  type GithubVersionInfo = GitVersionInfoBase & {
19
21
  type: 'vcs:github';
20
22
  };
21
- export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo) & Record<string, unknown>;
23
+ type GitlabVersionInfo = GitVersionInfoBase & {
24
+ type: 'vcs:gitlab';
25
+ };
26
+ type BitbucketVersionInfo = GitVersionInfoBase & {
27
+ type: 'vcs:bitbucket';
28
+ };
29
+ type AzureDevopsVersionInfo = GitVersionInfoBase & {
30
+ type: 'vcs:azuredevops';
31
+ };
32
+ export type DeploymentVersionInfo = (SimpleVersionInfo | GitVersionInfo | GithubVersionInfo | GitlabVersionInfo | BitbucketVersionInfo | AzureDevopsVersionInfo) & Record<string, unknown>;
22
33
  export {};
@@ -3,10 +3,12 @@ import { SchemaResponseV2, SchemaValuesV2 } from '../../schemas';
3
3
  import { DateString } from '../../types/dates';
4
4
  export type DeploymentVersionInfoResponse = {
5
5
  type: string;
6
- base: string | null;
7
- branch: string | null;
8
6
  version: string;
9
- url: string | null;
7
+ branch?: string | null;
8
+ url?: string | null;
9
+ commit_sha?: string | null;
10
+ message?: string | null;
11
+ repository?: string | null;
10
12
  } & Record<string, unknown>;
11
13
  export type DeploymentVersionResponse = {
12
14
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.12.7",
3
+ "version": "3.12.8",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,6 +18,8 @@ export const randomDeploymentVersion: MockFunction<DeploymentVersion, [Partial<D
18
18
  branch: this.create('string'),
19
19
  url: this.create('url'),
20
20
  repository: this.create('string'),
21
+ commitSha: this.create('string'),
22
+ message: this.create('string'),
21
23
  },
22
24
  tags: this.createMany('noun', this.create('number', [0, 5])),
23
25
  labels: {},
@@ -9,6 +9,8 @@ type SimpleVersionInfo = {
9
9
  type GitVersionInfoBase = {
10
10
  type: string,
11
11
  version: string,
12
+ commitSha: string,
13
+ message: string,
12
14
  branch: string,
13
15
  url: string,
14
16
  repository: string,
@@ -22,4 +24,16 @@ type GithubVersionInfo = GitVersionInfoBase & {
22
24
  type: 'vcs:github',
23
25
  }
24
26
 
25
- export type DeploymentVersionInfo = (SimpleVersionInfo | GithubVersionInfo | GitVersionInfo) & Record<string, unknown>
27
+ type GitlabVersionInfo = GitVersionInfoBase & {
28
+ type: 'vcs:gitlab',
29
+ }
30
+
31
+ type BitbucketVersionInfo = GitVersionInfoBase & {
32
+ type: 'vcs:bitbucket',
33
+ }
34
+
35
+ type AzureDevopsVersionInfo = GitVersionInfoBase & {
36
+ type: 'vcs:azuredevops',
37
+ }
38
+
39
+ export type DeploymentVersionInfo = (SimpleVersionInfo | GitVersionInfo | GithubVersionInfo | GitlabVersionInfo | BitbucketVersionInfo | AzureDevopsVersionInfo) & Record<string, unknown>
@@ -4,10 +4,12 @@ import { DateString } from '@/types/dates'
4
4
 
5
5
  export type DeploymentVersionInfoResponse = {
6
6
  type: string,
7
- base: string | null,
8
- branch: string | null,
9
7
  version: string,
10
- url: string | null,
8
+ branch?: string | null,
9
+ url?: string | null,
10
+ commit_sha?: string | null,
11
+ message?: string | null,
12
+ repository?: string | null,
11
13
  } & Record<string, unknown>
12
14
 
13
15
  export type DeploymentVersionResponse = {