-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use backend-types properly, and fix minor lint errors (#366)
- Loading branch information
1 parent
3101f0c
commit a0db6b8
Showing
40 changed files
with
477 additions
and
387 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
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,18 +1,27 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using Core.DomainModels; | ||
|
||
namespace Api.Projects; | ||
|
||
public record EngagementPerCustomerReadModel(int CustomerId, string CustomerName, | ||
List<EngagementReadModel> Engagements); | ||
public record EngagementPerCustomerReadModel( | ||
[property: Required] int CustomerId, | ||
[property: Required] string CustomerName, | ||
[property: Required] List<EngagementReadModel> Engagements); | ||
|
||
public record EngagementReadModel(int EngagementId, string EngagementName, EngagementState ProjectState, | ||
bool IsBillable); | ||
public record EngagementReadModel( | ||
[property: Required] int EngagementId, | ||
[property: Required] string EngagementName, | ||
[property: Required] EngagementState BookingType, | ||
[property: Required] bool IsBillable); | ||
|
||
public record EngagementWriteModel(EngagementState ProjectState, | ||
public record EngagementWriteModel(List<int> ConsultantIds, EngagementState BookingType, | ||
bool IsBillable, string ProjectName, string CustomerName); | ||
|
||
public record ProjectWithCustomerModel(string ProjectName, string CustomerName, EngagementState ProjectState, | ||
bool IsBillable); | ||
public record ProjectWithCustomerModel( | ||
[property: Required] string ProjectName, | ||
[property: Required] string CustomerName, | ||
[property: Required] EngagementState BookingType, | ||
[property: Required] bool IsBillable); | ||
|
||
public record UpdateProjectWriteModel(int EngagementId, EngagementState ProjectState, int StartYear, int StartWeek, | ||
int WeekSpan); |
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.