-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add package details * feat: view released package details * feat: view released package details 2 * feat: improve details display * fix: vertex.id
- Loading branch information
Showing
56 changed files
with
1,197 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
// Shared DTO: Copy in back-end and front-end should be identical | ||
|
||
export class CollectionSearchResult<T> { | ||
data!: T[]; | ||
import { VertexRestDto } from '../../persistence/dto/vertex-rest.dto'; | ||
import { CollectionDtoUnion } from '../../persistence/dto/collection-dto-union.type'; | ||
import { GraphDirectedRestCombo } from '../../persistence/dto/collection-combo-rest.dto'; | ||
|
||
export class CollectionSearchResult< | ||
T extends CollectionDtoUnion[keyof CollectionDtoUnion], | ||
> { | ||
data!: CollectionCombo<T>[]; | ||
meta!: { | ||
total: number; | ||
}; | ||
} | ||
|
||
export class CollectionCombo< | ||
T extends CollectionDtoUnion[keyof CollectionDtoUnion], | ||
> { | ||
type!: 'vertex'; | ||
collection!: T; | ||
vertex!: VertexRestDto; | ||
upstream!: GraphDirectedRestCombo[]; | ||
downstream!: GraphDirectedRestCombo[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Type } from 'class-transformer'; | ||
import { IsInt, IsOptional, IsString } from 'class-validator'; | ||
|
||
export class PackageBuildSearchQuery { | ||
@IsOptional() | ||
@IsString() | ||
@Type(() => String) | ||
serviceId?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Type(() => String) | ||
vertexId?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Type(() => String) | ||
sort?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@Type(() => String) | ||
dir?: string; | ||
|
||
@IsInt() | ||
@Type(() => Number) | ||
offset: number; | ||
|
||
@IsInt() | ||
@Type(() => Number) | ||
limit: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export class PackageRestDto { | ||
id?: string; | ||
architecture?: string; | ||
buildGuid?: string; | ||
buildNumber?: number; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.