Skip to content

Commit

Permalink
feat(core): flag type and gql of inherited and calculated values of a…
Browse files Browse the repository at this point in the history
…ttributes
  • Loading branch information
philippechevieux committed Apr 5, 2024
1 parent 461c300 commit 3d2ff49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/core/src/_types/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export interface IGenericValue {
modified_by?: string;
version?: IValueVersion;
metadata?: IValueMetadata;
isInherited?: boolean;
isCalculated?: boolean;
}

export interface IStandardValue extends IGenericValue {
Expand Down
16 changes: 12 additions & 4 deletions apps/core/src/app/core/valueApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export default function ({
created_by: Record,
version: [ValueVersion],
attribute: Attribute,
metadata: [ValueMetadata]
metadata: [ValueMetadata],
isInherited: Boolean,
isCalculated: Boolean
}
type Value implements GenericValue {
Expand All @@ -120,7 +122,9 @@ export default function ({
created_by: Record,
version: [ValueVersion],
attribute: Attribute,
metadata: [ValueMetadata]
metadata: [ValueMetadata],
isInherited: Boolean,
isCalculated: Boolean
}
type saveValueBatchResult {
Expand Down Expand Up @@ -149,7 +153,9 @@ export default function ({
created_by: Record,
version: [ValueVersion],
attribute: Attribute,
metadata: [ValueMetadata]
metadata: [ValueMetadata],
isInherited: Boolean,
isCalculated: Boolean
}
type TreeValue implements GenericValue {
Expand All @@ -161,7 +167,9 @@ export default function ({
value: TreeNode,
version: [ValueVersion],
attribute: Attribute,
metadata: [ValueMetadata]
metadata: [ValueMetadata],
isInherited: Boolean,
isCalculated: Boolean
}
type DateRangeValue {
Expand Down

0 comments on commit 3d2ff49

Please sign in to comment.