@prefecthq/prefect-ui-library 3.12.7 → 3.12.9
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.
- package/dist/{RunsPageWithDefaultFilter-Bq0CmKUS.mjs → RunsPageWithDefaultFilter-COertgmd.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-Bq0CmKUS.mjs.map → RunsPageWithDefaultFilter-COertgmd.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DyODTRPw.mjs → WorkQueueToWorkPoolQueueRedirect-D7UEKo9n.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DyODTRPw.mjs.map → WorkQueueToWorkPoolQueueRedirect-D7UEKo9n.mjs.map} +1 -1
- package/dist/{index-CVx4O1NU.mjs → index-MvE62OD9.mjs} +10 -5
- package/dist/{index-CVx4O1NU.mjs.map → index-MvE62OD9.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +2 -2
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/models/DeploymentVersion.d.ts +2 -0
- package/dist/types/src/models/DeploymentVersionInfo.d.ts +12 -1
- package/dist/types/src/models/api/DeploymentVersionResponse.d.ts +6 -3
- package/package.json +1 -1
- package/src/maps/deployment.ts +1 -0
- package/src/mocks/deploymentVersion.ts +3 -0
- package/src/models/DeploymentVersion.ts +3 -0
- package/src/models/DeploymentVersionInfo.ts +15 -1
- package/src/models/api/DeploymentVersionResponse.ts +6 -3
|
@@ -7,6 +7,7 @@ export type IDeploymentVersion = {
|
|
|
7
7
|
createdBy: CreatedOrUpdatedBy | null;
|
|
8
8
|
updated: Date;
|
|
9
9
|
updatedBy: CreatedOrUpdatedBy | null;
|
|
10
|
+
lastActive: Date | null;
|
|
10
11
|
name: string;
|
|
11
12
|
deploymentId: string;
|
|
12
13
|
description: string | null;
|
|
@@ -30,6 +31,7 @@ export declare class DeploymentVersion implements IDeploymentVersion {
|
|
|
30
31
|
readonly createdBy: CreatedOrUpdatedBy | null;
|
|
31
32
|
readonly updated: Date;
|
|
32
33
|
readonly updatedBy: CreatedOrUpdatedBy | null;
|
|
34
|
+
readonly lastActive: Date | null;
|
|
33
35
|
readonly name: string;
|
|
34
36
|
readonly description: string | null;
|
|
35
37
|
readonly versionInfo: DeploymentVersionInfo;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -14,6 +16,7 @@ export type DeploymentVersionResponse = {
|
|
|
14
16
|
created_by: CreatedOrUpdatedByResponse | null;
|
|
15
17
|
updated: DateString;
|
|
16
18
|
updated_by: CreatedOrUpdatedByResponse | null;
|
|
19
|
+
last_active: DateString | null;
|
|
17
20
|
name: string;
|
|
18
21
|
deployment_id: string;
|
|
19
22
|
description: string | null;
|
package/package.json
CHANGED
package/src/maps/deployment.ts
CHANGED
|
@@ -124,6 +124,7 @@ export const mapDeploymentVersionResponseToDeploymentVersion: MapFunction<Deploy
|
|
|
124
124
|
createdBy: this.map('CreatedOrUpdatedByResponse', source.created_by, 'CreatedOrUpdatedBy'),
|
|
125
125
|
updated: this.map('string', source.updated, 'Date'),
|
|
126
126
|
updatedBy: this.map('CreatedOrUpdatedByResponse', source.updated_by, 'CreatedOrUpdatedBy'),
|
|
127
|
+
lastActive: this.map('string', source.last_active, 'Date'),
|
|
127
128
|
name: source.name,
|
|
128
129
|
deploymentId: source.deployment_id,
|
|
129
130
|
description: source.description,
|
|
@@ -11,6 +11,7 @@ export const randomDeploymentVersion: MockFunction<DeploymentVersion, [Partial<D
|
|
|
11
11
|
createdBy: this.create('createdOrUpdatedBy'),
|
|
12
12
|
updated: this.create('date'),
|
|
13
13
|
updatedBy: this.create('createdOrUpdatedBy'),
|
|
14
|
+
lastActive: this.create('date'),
|
|
14
15
|
name: this.create('noun'),
|
|
15
16
|
versionInfo: {
|
|
16
17
|
type: 'vcs:github' as const,
|
|
@@ -18,6 +19,8 @@ export const randomDeploymentVersion: MockFunction<DeploymentVersion, [Partial<D
|
|
|
18
19
|
branch: this.create('string'),
|
|
19
20
|
url: this.create('url'),
|
|
20
21
|
repository: this.create('string'),
|
|
22
|
+
commitSha: this.create('string'),
|
|
23
|
+
message: this.create('string'),
|
|
21
24
|
},
|
|
22
25
|
tags: this.createMany('noun', this.create('number', [0, 5])),
|
|
23
26
|
labels: {},
|
|
@@ -8,6 +8,7 @@ export type IDeploymentVersion = {
|
|
|
8
8
|
createdBy: CreatedOrUpdatedBy | null,
|
|
9
9
|
updated: Date,
|
|
10
10
|
updatedBy: CreatedOrUpdatedBy | null,
|
|
11
|
+
lastActive: Date | null,
|
|
11
12
|
name: string,
|
|
12
13
|
deploymentId: string,
|
|
13
14
|
description: string | null,
|
|
@@ -32,6 +33,7 @@ export class DeploymentVersion implements IDeploymentVersion {
|
|
|
32
33
|
public readonly createdBy: CreatedOrUpdatedBy | null
|
|
33
34
|
public readonly updated: Date
|
|
34
35
|
public readonly updatedBy: CreatedOrUpdatedBy | null
|
|
36
|
+
public readonly lastActive: Date | null
|
|
35
37
|
public readonly name: string
|
|
36
38
|
public readonly description: string | null
|
|
37
39
|
public readonly versionInfo: DeploymentVersionInfo
|
|
@@ -53,6 +55,7 @@ export class DeploymentVersion implements IDeploymentVersion {
|
|
|
53
55
|
this.createdBy = deploymentVersion.createdBy
|
|
54
56
|
this.updated = deploymentVersion.updated
|
|
55
57
|
this.updatedBy = deploymentVersion.updatedBy
|
|
58
|
+
this.lastActive = deploymentVersion.lastActive
|
|
56
59
|
this.name = deploymentVersion.name
|
|
57
60
|
this.description = deploymentVersion.description
|
|
58
61
|
this.versionInfo = deploymentVersion.versionInfo
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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 = {
|
|
@@ -16,6 +18,7 @@ export type DeploymentVersionResponse = {
|
|
|
16
18
|
created_by: CreatedOrUpdatedByResponse | null,
|
|
17
19
|
updated: DateString,
|
|
18
20
|
updated_by: CreatedOrUpdatedByResponse | null,
|
|
21
|
+
last_active: DateString | null,
|
|
19
22
|
name: string,
|
|
20
23
|
deployment_id: string,
|
|
21
24
|
description: string | null,
|