Skip to content

Commit

Permalink
Add and update names in schema (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHinck authored Dec 14, 2023
1 parent 69081dc commit 038f9c1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
12 changes: 10 additions & 2 deletions packages/cue/bh/ad/ad.cue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ DomainSID: types.#StringEnum & {
Sensitive: types.#StringEnum & {
symbol: "Sensitive"
schema: "ad"
name: "Marked sensitive"
name: "Marked Sensitive"
representation: "sensitive"
}

Expand Down Expand Up @@ -321,6 +321,13 @@ SamAccountName: types.#StringEnum & {
representation: "samaccountname"
}

HomeDirectory: types.#StringEnum & {
symbol: "HomeDirectory"
schema: "ad"
name: "Home Directory"
representation: "homedirectory"
}

CertificateMappingMethodsRaw: types.#StringEnum & {
symbol: "CertificateMappingMethodsRaw"
schema: "ad"
Expand Down Expand Up @@ -531,7 +538,8 @@ Properties: [
NoSecurityExtension,
RenewalPeriod,
ValidityPeriod,
OID
OID,
HomeDirectory
]

// Kinds
Expand Down
11 changes: 9 additions & 2 deletions packages/go/graphschema/ad/ad.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/javascript/bh-shared-ui/src/graphSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export enum ActiveDirectoryKindProperties {
RenewalPeriod = 'renewalperiod',
ValidityPeriod = 'validityperiod',
OID = 'oid',
HomeDirectory = 'homedirectory',
}
export function ActiveDirectoryKindPropertiesToDisplay(value: ActiveDirectoryKindProperties): string | undefined {
switch (value) {
Expand Down Expand Up @@ -354,7 +355,7 @@ export function ActiveDirectoryKindPropertiesToDisplay(value: ActiveDirectoryKin
case ActiveDirectoryKindProperties.DomainSID:
return 'Domain SID';
case ActiveDirectoryKindProperties.Sensitive:
return 'Marked sensitive';
return 'Marked Sensitive';
case ActiveDirectoryKindProperties.HighValue:
return 'High Value';
case ActiveDirectoryKindProperties.BlocksInheritance:
Expand Down Expand Up @@ -443,6 +444,8 @@ export function ActiveDirectoryKindPropertiesToDisplay(value: ActiveDirectoryKin
return 'Validity Period';
case ActiveDirectoryKindProperties.OID:
return 'OID';
case ActiveDirectoryKindProperties.HomeDirectory:
return 'Home Directory';
default:
return undefined;
}
Expand Down

0 comments on commit 038f9c1

Please sign in to comment.