@contrail/types
Advanced tools
Comparing version 3.0.75-alpha.0 to 3.0.75-alpha.1
import { Type, TypeProperty } from '../'; | ||
export interface CollectionDataMappedPropertiesBySlug { | ||
'item': { | ||
item: { | ||
[propertySlug: string]: TypeProperty; | ||
@@ -23,5 +23,5 @@ }; | ||
static buildCollectionDataTypePropertiesBySlugMap(typeMap: { | ||
'item': Type; | ||
item: Type; | ||
'project-item': Type; | ||
}): Promise<CollectionDataMappedPropertiesBySlug>; | ||
}): CollectionDataMappedPropertiesBySlug; | ||
} |
@@ -16,3 +16,3 @@ "use strict"; | ||
} | ||
const typeProperties = await EntityFormulaProcessor.buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties); | ||
const typeProperties = EntityFormulaProcessor.buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties); | ||
if (enableDebugLogs) { | ||
@@ -27,5 +27,5 @@ console.log(`Formula Processing - ${type.typePath} - ${entity.id} - Processing ${typeProperties.length} formulas.`); | ||
} | ||
static async buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties) { | ||
static buildTypePropertiesForFormulas(entity, type, collectionDataMappedTypeProperties) { | ||
const allTypeProperties = type?.typeProperties ?? []; | ||
const isProcessingItemAndProjectItemMappedType = COLLECTION_DATA_TYPE_ROOT_SLUGS.some(typeRoot => type.typePath?.startsWith(typeRoot)); | ||
const isProcessingItemAndProjectItemMappedType = COLLECTION_DATA_TYPE_ROOT_SLUGS.some((typeRoot) => type.typePath?.startsWith(typeRoot)); | ||
if (!isProcessingItemAndProjectItemMappedType) { | ||
@@ -64,3 +64,3 @@ return allTypeProperties; | ||
} | ||
static async buildCollectionDataTypePropertiesBySlugMap(typeMap) { | ||
static buildCollectionDataTypePropertiesBySlugMap(typeMap) { | ||
const itemType = typeMap['item']; | ||
@@ -71,3 +71,3 @@ const itemPropertiesBySlug = _.keyBy(itemType.typeProperties, 'slug'); | ||
return { | ||
'item': itemPropertiesBySlug, | ||
item: itemPropertiesBySlug, | ||
'project-item': projectItemPropertiesBySlug, | ||
@@ -74,0 +74,0 @@ }; |
{ | ||
"name": "@contrail/types", | ||
"version": "3.0.75-alpha.0", | ||
"version": "3.0.75-alpha.1", | ||
"description": "Types Utility module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88283