Skip to content

Commit

Permalink
PLTCONN-2932: Extract common schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fangming-ning-sp committed Apr 27, 2023
1 parent 9ea55c4 commit 45303f5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/commands/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,25 @@ export type CommandState = {
[key: string]: any
}

/**
* The common schema
*/
export type Schema = {
displayAttribute: string
identityAttribute: string
attributes: SchemaAttribute[]
}

/**
* Account schema
*/
export type AccountSchema = { groupAttribute: string } & EntitlementSchema
export type AccountSchema = Schema & {
groupAttribute: string
}

/**
* Entitlement schema
*/
export type EntitlementSchema = {
export type EntitlementSchema = Schema & {
type: string
displayAttribute: string
identityAttribute: string
attributes: SchemaAttribute[]
}

0 comments on commit 45303f5

Please sign in to comment.