From 3d2ff494c87a2ea79973d05b17478ffee08fbf96 Mon Sep 17 00:00:00 2001 From: Philippe Chevieux Date: Fri, 5 Apr 2024 11:09:32 +0200 Subject: [PATCH] feat(core): flag type and gql of inherited and calculated values of attributes --- apps/core/src/_types/value.ts | 2 ++ apps/core/src/app/core/valueApp.ts | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/apps/core/src/_types/value.ts b/apps/core/src/_types/value.ts index bfe857274..cff0da9a6 100644 --- a/apps/core/src/_types/value.ts +++ b/apps/core/src/_types/value.ts @@ -39,6 +39,8 @@ export interface IGenericValue { modified_by?: string; version?: IValueVersion; metadata?: IValueMetadata; + isInherited?: boolean; + isCalculated?: boolean; } export interface IStandardValue extends IGenericValue { diff --git a/apps/core/src/app/core/valueApp.ts b/apps/core/src/app/core/valueApp.ts index 08b7988df..33bdcec96 100644 --- a/apps/core/src/app/core/valueApp.ts +++ b/apps/core/src/app/core/valueApp.ts @@ -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 { @@ -120,7 +122,9 @@ export default function ({ created_by: Record, version: [ValueVersion], attribute: Attribute, - metadata: [ValueMetadata] + metadata: [ValueMetadata], + isInherited: Boolean, + isCalculated: Boolean } type saveValueBatchResult { @@ -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 { @@ -161,7 +167,9 @@ export default function ({ value: TreeNode, version: [ValueVersion], attribute: Attribute, - metadata: [ValueMetadata] + metadata: [ValueMetadata], + isInherited: Boolean, + isCalculated: Boolean } type DateRangeValue {