From 6dfb9ec412aaee34ea7a5fa7fce829da08d16838 Mon Sep 17 00:00:00 2001 From: EllaMartirosyan <34953077+EllaMartirosyan@users.noreply.github.com> Date: Thu, 28 Jul 2022 09:29:14 +0300 Subject: [PATCH] fix: integration with 3d (#140) --- src/models/layerMetadata/bestMetadata.ts | 10 ++++++---- src/models/layerMetadata/layerDEMMetadata.ts | 10 ++++++---- src/models/layerMetadata/layerMetadata.ts | 10 ++++++---- src/models/layerMetadata/quantizedMeshBestMetadata.ts | 10 ++++++---- src/models/layerMetadata/vectorBestMetadata.ts | 4 ++-- 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/models/layerMetadata/bestMetadata.ts b/src/models/layerMetadata/bestMetadata.ts index 7b54cad..0fd271f 100644 --- a/src/models/layerMetadata/bestMetadata.ts +++ b/src/models/layerMetadata/bestMetadata.ts @@ -198,7 +198,7 @@ export class BestMetadata implements IBestMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING, }) @graphql({ - nullable: true, + nullable: false, }) //#endregion public producerName: string | undefined = 'IDFMU'; @@ -401,7 +401,7 @@ export class BestMetadata implements IBestMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -432,7 +432,7 @@ export class BestMetadata implements IBestMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -457,7 +457,9 @@ export class BestMetadata implements IBestMetadata, IMetadataCommonModel { @tsTypes({ mappingType: TsTypes.STRING, }) - @graphql() + @graphql({ + nullable: true, + }) @fieldConfig({ category: FieldCategory.MAIN, infoMsgCode: ['info-general-tooltip.required'], diff --git a/src/models/layerMetadata/layerDEMMetadata.ts b/src/models/layerMetadata/layerDEMMetadata.ts index 1ff6de6..b718030 100644 --- a/src/models/layerMetadata/layerDEMMetadata.ts +++ b/src/models/layerMetadata/layerDEMMetadata.ts @@ -239,7 +239,7 @@ export class LayerDemMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -364,7 +364,7 @@ export class LayerDemMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -393,7 +393,7 @@ export class LayerDemMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -425,7 +425,9 @@ export class LayerDemMetadata implements ILayerMetadata, IMetadataCommonModel { @tsTypes({ mappingType: TsTypes.STRING, }) - @graphql() + @graphql({ + nullable: true, + }) @fieldConfig({ category: FieldCategory.MAIN, infoMsgCode: ['info-field-tooltip.productId.tooltip', 'info-general-tooltip.required'], diff --git a/src/models/layerMetadata/layerMetadata.ts b/src/models/layerMetadata/layerMetadata.ts index 18d9e79..0285711 100644 --- a/src/models/layerMetadata/layerMetadata.ts +++ b/src/models/layerMetadata/layerMetadata.ts @@ -216,7 +216,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -459,7 +459,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -494,7 +494,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -533,7 +533,9 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel { @tsTypes({ mappingType: TsTypes.STRING, }) - @graphql() + @graphql({ + nullable: true, + }) @fieldConfig({ category: FieldCategory.MAIN, infoMsgCode: ['info-field-tooltip.productId.tooltip', 'info-general-tooltip.required'], diff --git a/src/models/layerMetadata/quantizedMeshBestMetadata.ts b/src/models/layerMetadata/quantizedMeshBestMetadata.ts index e6c23b7..8e6be01 100644 --- a/src/models/layerMetadata/quantizedMeshBestMetadata.ts +++ b/src/models/layerMetadata/quantizedMeshBestMetadata.ts @@ -91,7 +91,9 @@ export class QuantizedMeshBestMetadata implements IQuantizedMeshBestMetadata, IM @tsTypes({ mappingType: TsTypes.STRING, }) - @graphql() + @graphql({ + nullable: true, + }) @fieldConfig({ category: FieldCategory.MAIN, isAutoGenerated: true, @@ -483,7 +485,7 @@ export class QuantizedMeshBestMetadata implements IQuantizedMeshBestMetadata, IM mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -676,7 +678,7 @@ export class QuantizedMeshBestMetadata implements IQuantizedMeshBestMetadata, IM mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -810,7 +812,7 @@ export class QuantizedMeshBestMetadata implements IQuantizedMeshBestMetadata, IM mappingType: TsTypes.STRING, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, diff --git a/src/models/layerMetadata/vectorBestMetadata.ts b/src/models/layerMetadata/vectorBestMetadata.ts index d619d38..97cddcc 100644 --- a/src/models/layerMetadata/vectorBestMetadata.ts +++ b/src/models/layerMetadata/vectorBestMetadata.ts @@ -210,7 +210,7 @@ export class VectorBestMetadata implements IVectorBestMetadata { mappingType: TsTypes.STRING, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL, @@ -324,7 +324,7 @@ export class VectorBestMetadata implements IVectorBestMetadata { mappingType: TsTypes.STRING_ARRAY, }) @graphql({ - nullable: true, + nullable: false, }) @fieldConfig({ category: FieldCategory.GENERAL,