-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PSP-4089 FT-REG: Property Info - When getting a Land Parcel Type that…
… is not defined by PIMS, on edit mode, should display the default option as "Unknown" (#4032) * Update api models * Lint fixes * Set property type to UNKNOWN for disabled code values
- Loading branch information
Showing
7 changed files
with
69 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Pims.Api.Models.CodeTypes | ||
{ | ||
[JsonConverter(typeof(JsonStringEnumMemberConverter))] | ||
public enum PropertyTypes | ||
{ | ||
[EnumMember(Value = "CROWNFSRVD")] | ||
CROWNFSRVD, | ||
|
||
[EnumMember(Value = "CROWNFUSRVD")] | ||
CROWNFUSRVD, | ||
|
||
[EnumMember(Value = "CROWNPSRVD")] | ||
CROWNPSRVD, | ||
|
||
[EnumMember(Value = "CROWNPUSRVD")] | ||
CROWNPUSRVD, | ||
|
||
[EnumMember(Value = "HWYROAD")] | ||
HWYROAD, | ||
|
||
[EnumMember(Value = "PARKS")] | ||
PARKS, | ||
|
||
[EnumMember(Value = "RESERVE")] | ||
RESERVE, | ||
|
||
[EnumMember(Value = "STRATACP")] | ||
STRATACP, | ||
|
||
[EnumMember(Value = "TITLED")] | ||
TITLED, | ||
|
||
[EnumMember(Value = "UNKNOWN")] | ||
UNKNOWN, | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
source/frontend/src/models/api/generated/ApiGen_CodeTypes_PropertyTypes.ts
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,16 @@ | ||
/** | ||
* File autogenerated by TsGenerator. | ||
* Do not manually modify, changes made to this file will be lost when this file is regenerated. | ||
*/ | ||
export enum ApiGen_CodeTypes_PropertyTypes { | ||
CROWNFSRVD = 'CROWNFSRVD', | ||
CROWNFUSRVD = 'CROWNFUSRVD', | ||
CROWNPSRVD = 'CROWNPSRVD', | ||
CROWNPUSRVD = 'CROWNPUSRVD', | ||
HWYROAD = 'HWYROAD', | ||
PARKS = 'PARKS', | ||
RESERVE = 'RESERVE', | ||
STRATACP = 'STRATACP', | ||
TITLED = 'TITLED', | ||
UNKNOWN = 'UNKNOWN', | ||
} |
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