Closed severinbeauvais closed 1 year ago
Sorry about the large list of reviewers, but this is a small (but possibly significant) change that I think you should know about, since you are touching, or have recently touched, this repo. Thx.
For some reason, TS and eslint are happy with this code, but the build process isn't. I'm trying to resolve this. Don't merge yet.
Update: fixed. See comments below.
For some reason, TS and eslint are happy with this code, but the build process isn't. I'm trying to resolve this. Don't merge yet.
It seems the build process doesn't want to mix enum-strings with pure-strings, so I did this and it's happy with it:
// Namerequest-only entity types
enum Other {
SO = 'SO',
XUL = 'XUL',
RLC = 'RLC',
XLP = 'XLP',
XLL = 'XLL',
XSO = 'XSO',
INFO = 'INFO'
}
/** Enum for Entity Type codes. */
export enum EntityType {
// BC Entity Types:
BC = CorpTypeCd.BC_COMPANY,
...
SO = Other.SO,
In other words, the EntityType enum takes values from other enums, instead of a mix of enum/string.
I have tested this locally and it works fine.
LGTM!
Issue #: bcgov/entity#16634
Description of changes:
Commit 1:
Commit 2:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namerequest license (Apache 2.0).