@c-rex/services 0.3.0-build.29 → 0.3.0-build.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/read-models/index.d.mts +5 -105
- package/dist/read-models/index.d.ts +5 -105
- package/dist/read-models/metadata-presentation-config.d.mts +69 -0
- package/dist/read-models/metadata-presentation-config.d.ts +69 -0
- package/dist/read-models/metadata-presentation-config.js +227 -0
- package/dist/read-models/metadata-presentation-config.js.map +1 -0
- package/dist/read-models/metadata-presentation-config.mjs +202 -0
- package/dist/read-models/metadata-presentation-config.mjs.map +1 -0
- package/dist/read-models/metadata-view-profile.d.mts +41 -0
- package/dist/read-models/metadata-view-profile.d.ts +41 -0
- package/dist/read-models/metadata-view-profile.js +313 -0
- package/dist/read-models/metadata-view-profile.js.map +1 -0
- package/dist/read-models/metadata-view-profile.mjs +284 -0
- package/dist/read-models/metadata-view-profile.mjs.map +1 -0
- package/package.json +14 -2
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,9 @@ import * as _c_rex_interfaces from '@c-rex/interfaces';
|
|
|
2
2
|
export { administrativeMetadataGetAllClientService, administrativeMetadataGetByIdClientService, afterUsesGetAllClientService, afterUsesGetByIdClientService, categoriesGetAllClientService, categoriesGetByIdClientService, collectionsGetAllClientService, collectionsGetByIdClientService, componentsGetAllClientService, componentsGetByIdClientService, conceptsGetAllClientService, conceptsGetByIdClientService, conformitiesGetAllClientService, conformitiesGetByIdClientService, consumablesGetAllClientService, consumablesGetByIdClientService, contentLifeCycleStatusGetAllClientService, contentLifeCycleStatusGetByIdClientService, designAndRealizationsGetAllClientService, designAndRealizationsGetByIdClientService, directoryNodeTypesGetAllClientService, directoryNodeTypesGetByIdClientService, directoryNodesGetAllClientService, directoryNodesGetByIdClientService, documentTypesGetAllClientService, documentTypesGetByIdClientService, documentationMetadataGetAllClientService, documentationMetadataGetByIdClientService, documentsGetAllClientService, documentsGetByIdClientService, documentsLanguagesClientService, domainEntitiesGetAllClientService, domainEntitiesGetByIdClientService, downTimesGetAllClientService, downTimesGetByIdClientService, eventsGetAllClientService, eventsGetByIdClientService, formalitiesGetAllClientService, formalitiesGetByIdClientService, formsGetAllClientService, formsGetByIdClientService, fragmentsGetAllClientService, fragmentsGetByIdClientService, fragmentsLanguagesClientService, functionalMetadatasGetAllClientService, functionalMetadatasGetByIdClientService, functionalitiesGetAllClientService, functionalitiesGetByIdClientService, groupsGetAllClientService, groupsGetByIdClientService, hardwareToolsGetAllClientService, hardwareToolsGetByIdClientService, identitiesGetAllClientService, identitiesGetByIdClientService, identityDomainsGetAllClientService, identityDomainsGetByIdClientService, individualsGetAllClientService, individualsGetByIdClientService, informationObjectsGetAllClientService, informationObjectsGetByIdClientService, informationSubjectsGetAllClientService, informationSubjectsGetByIdClientService, informationTypesGetAllClientService, informationTypesGetByIdClientService, informationUnitsGetAllClientService, informationUnitsGetByIdClientService, informationUnitsLanguagesClientService, learningsGetAllClientService, learningsGetByIdClientService, locationsGetAllClientService, locationsGetByIdClientService, lubricantsGetAllClientService, lubricantsGetByIdClientService, maintenanceIntervalsGetAllClientService, maintenanceIntervalsGetByIdClientService, operatingSuppliesGetAllClientService, operatingSuppliesGetByIdClientService, organizationsGetAllClientService, organizationsGetByIdClientService, packagesCreateClientAppClientService, packagesGetAllClientService, packagesGetByIdClientService, packagesLanguagesClientService, partiesGetAllClientService, partiesGetByIdClientService, planningTimesGetAllClientService, planningTimesGetByIdClientService, processesGetAllClientService, processesGetByIdClientService, productFeaturesGetAllClientService, productFeaturesGetByIdClientService, productFunctionsGetAllClientService, productFunctionsGetByIdClientService, productLifeCyclePhasesGetAllClientService, productLifeCyclePhasesGetByIdClientService, productMetadataGetAllClientService, productMetadataGetByIdClientService, productPropertiesGetAllClientService, productPropertiesGetByIdClientService, productVariantsGetAllClientService, productVariantsGetByIdClientService, puttingToUsesGetAllClientService, puttingToUsesGetByIdClientService, qualificationsGetAllClientService, qualificationsGetByIdClientService, referencesGetAllClientService, referencesGetByIdClientService, renditionsGetAllClientService, renditionsGetByIdClientService, renditionsGetWithBinaryWithBinaryPathClientService, resourcesDownloadResourceClientService, resourcesDownloadResourceWithBinaryPathClientService, resourcesGetPackageClientService, resourcesGetSubjectFromPackageClientService, resourcesViewResourceClientService, resourcesViewResourceWithBinaryPathClientService, rolesGetAllClientService, rolesGetByIdClientService, safetiesGetAllClientService, safetiesGetByIdClientService, searchGetAllClientService, setupTimesGetAllClientService, setupTimesGetByIdClientService, skillLevelsGetAllClientService, skillLevelsGetByIdClientService, sparQLExecuteSparQlClientService, sparePartsGetAllClientService, sparePartsGetByIdClientService, suppliesGetAllClientService, suppliesGetByIdClientService, tasksGetAllClientService, tasksGetByIdClientService, technicalDataGetAllClientService, technicalDataGetByIdClientService, technicalOverviewsGetAllClientService, technicalOverviewsGetByIdClientService, topicTypesGetAllClientService, topicTypesGetByIdClientService, topicsGetAllClientService, topicsGetByIdClientService, topicsLanguagesClientService, troubleShootingsGetAllClientService, troubleShootingsGetByIdClientService, usesGetAllClientService, usesGetByIdClientService, vCardsGetAllClientService, vCardsGetByIdClientService, warningMessagesGetAllClientService, warningMessagesGetByIdClientService, workingTimesGetAllClientService, workingTimesGetByIdClientService } from './generated/client-requests.mjs';
|
|
3
3
|
export { administrativeMetadataGetAllServer, administrativeMetadataGetByIdServer, afterUsesGetAllServer, afterUsesGetByIdServer, categoriesGetAllServer, categoriesGetByIdServer, collectionsGetAllServer, collectionsGetByIdServer, componentsGetAllServer, componentsGetByIdServer, conceptsGetAllServer, conceptsGetByIdServer, conformitiesGetAllServer, conformitiesGetByIdServer, consumablesGetAllServer, consumablesGetByIdServer, contentLifeCycleStatusGetAllServer, contentLifeCycleStatusGetByIdServer, designAndRealizationsGetAllServer, designAndRealizationsGetByIdServer, directoryNodeTypesGetAllServer, directoryNodeTypesGetByIdServer, directoryNodesGetAllServer, directoryNodesGetByIdServer, documentTypesGetAllServer, documentTypesGetByIdServer, documentationMetadataGetAllServer, documentationMetadataGetByIdServer, documentsGetAllServer, documentsGetByIdServer, documentsLanguagesServer, domainEntitiesGetAllServer, domainEntitiesGetByIdServer, downTimesGetAllServer, downTimesGetByIdServer, eventsGetAllServer, eventsGetByIdServer, formalitiesGetAllServer, formalitiesGetByIdServer, formsGetAllServer, formsGetByIdServer, fragmentsGetAllServer, fragmentsGetByIdServer, fragmentsLanguagesServer, functionalMetadatasGetAllServer, functionalMetadatasGetByIdServer, functionalitiesGetAllServer, functionalitiesGetByIdServer, groupsGetAllServer, groupsGetByIdServer, hardwareToolsGetAllServer, hardwareToolsGetByIdServer, identitiesGetAllServer, identitiesGetByIdServer, identityDomainsGetAllServer, identityDomainsGetByIdServer, individualsGetAllServer, individualsGetByIdServer, informationObjectsGetAllServer, informationObjectsGetByIdServer, informationSubjectsGetAllServer, informationSubjectsGetByIdServer, informationTypesGetAllServer, informationTypesGetByIdServer, informationUnitsGetAllServer, informationUnitsGetByIdServer, informationUnitsLanguagesServer, learningsGetAllServer, learningsGetByIdServer, locationsGetAllServer, locationsGetByIdServer, lubricantsGetAllServer, lubricantsGetByIdServer, maintenanceIntervalsGetAllServer, maintenanceIntervalsGetByIdServer, operatingSuppliesGetAllServer, operatingSuppliesGetByIdServer, organizationsGetAllServer, organizationsGetByIdServer, packagesCreateClientAppServer, packagesGetAllServer, packagesGetByIdServer, packagesLanguagesServer, partiesGetAllServer, partiesGetByIdServer, planningTimesGetAllServer, planningTimesGetByIdServer, processesGetAllServer, processesGetByIdServer, productFeaturesGetAllServer, productFeaturesGetByIdServer, productFunctionsGetAllServer, productFunctionsGetByIdServer, productLifeCyclePhasesGetAllServer, productLifeCyclePhasesGetByIdServer, productMetadataGetAllServer, productMetadataGetByIdServer, productPropertiesGetAllServer, productPropertiesGetByIdServer, productVariantsGetAllServer, productVariantsGetByIdServer, puttingToUsesGetAllServer, puttingToUsesGetByIdServer, qualificationsGetAllServer, qualificationsGetByIdServer, referencesGetAllServer, referencesGetByIdServer, renditionsGetAllServer, renditionsGetByIdServer, renditionsGetWithBinaryWithBinaryPathServer, resourcesDownloadResourceServer, resourcesDownloadResourceWithBinaryPathServer, resourcesGetPackageServer, resourcesGetSubjectFromPackageServer, resourcesViewResourceServer, resourcesViewResourceWithBinaryPathServer, rolesGetAllServer, rolesGetByIdServer, safetiesGetAllServer, safetiesGetByIdServer, searchGetAllServer, setupTimesGetAllServer, setupTimesGetByIdServer, skillLevelsGetAllServer, skillLevelsGetByIdServer, sparQLExecuteSparQlServer, sparePartsGetAllServer, sparePartsGetByIdServer, suppliesGetAllServer, suppliesGetByIdServer, tasksGetAllServer, tasksGetByIdServer, technicalDataGetAllServer, technicalDataGetByIdServer, technicalOverviewsGetAllServer, technicalOverviewsGetByIdServer, topicTypesGetAllServer, topicTypesGetByIdServer, topicsGetAllServer, topicsGetByIdServer, topicsLanguagesServer, troubleShootingsGetAllServer, troubleShootingsGetByIdServer, usesGetAllServer, usesGetByIdServer, vCardsGetAllServer, vCardsGetByIdServer, warningMessagesGetAllServer, warningMessagesGetByIdServer, workingTimesGetAllServer, workingTimesGetByIdServer } from './generated/server-requests.mjs';
|
|
4
4
|
export { BaseVCardProfile, ContactEntry, DEFAULT_LOGO_SRC, IndividualProfile, OrganizationProfile, ResolvedSocialLink, VCardProfile, buildTelephoneEntries, decodeEncodedVcardId, getIndividualProfileById, getIndividualsProfiles, getOrganizationBranding, getOrganizationProfile, getOrganizationProfileById, getOrganizationsProfiles, getServerConfig, getVCardProfileById, getVCardProfiles, mapVCardEntityToBaseProfile, normalizeEmail, normalizeHref, resolveLogoSource, resolveSocialProviderLabel, resolveTypedSocialLinks, resolveUiLanguage } from './vcard/index.mjs';
|
|
5
|
-
export { AvailableLanguageVersion,
|
|
5
|
+
export { AvailableLanguageVersion, MetadataDisplayRow, MetadataFacetLabelOptions, MetadataFacetLabelOverride, MetadataFacetLabelOverrides, MetadataPresentationPropertyKey, PartiesResult, PartyNode, READMODEL_CACHE_POLICY, TaxonomyEntityRef, TaxonomyNode, TaxonomyResult, getApplicableForTypes, getAvailableLanguagesByVersionOf, getComponents, getContentLifeCycleStatus, getDocumentTypes, getFunctionalMetadata, getInformationSubjects, getMetadataDisplayRows, getMetadataFacetLabelOverrides, getMetadataPropertyResolvers, getParties, getPlanningTimes, getProductFeatures, getProductLifeCyclePhases, getProductMetadata, getProductVariants, getQualifications, getSupplies, getTopicTypes } from './read-models/index.mjs';
|
|
6
|
+
export { FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, InformationUnitPropertyKey, MetadataDisplaySectionStrategy, MetadataPropertyPresentationConfig, MetadataValueKind } from './read-models/metadata-presentation-config.mjs';
|
|
7
|
+
export { METADATA_VIEW_PROFILES, MetadataViewProfile, MetadataViewProfileId, resolveFacetTags, resolveMetadataDisplayProperties } from './read-models/metadata-view-profile.mjs';
|
|
6
8
|
|
|
7
9
|
type IdParam = {
|
|
8
10
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import * as _c_rex_interfaces from '@c-rex/interfaces';
|
|
|
2
2
|
export { administrativeMetadataGetAllClientService, administrativeMetadataGetByIdClientService, afterUsesGetAllClientService, afterUsesGetByIdClientService, categoriesGetAllClientService, categoriesGetByIdClientService, collectionsGetAllClientService, collectionsGetByIdClientService, componentsGetAllClientService, componentsGetByIdClientService, conceptsGetAllClientService, conceptsGetByIdClientService, conformitiesGetAllClientService, conformitiesGetByIdClientService, consumablesGetAllClientService, consumablesGetByIdClientService, contentLifeCycleStatusGetAllClientService, contentLifeCycleStatusGetByIdClientService, designAndRealizationsGetAllClientService, designAndRealizationsGetByIdClientService, directoryNodeTypesGetAllClientService, directoryNodeTypesGetByIdClientService, directoryNodesGetAllClientService, directoryNodesGetByIdClientService, documentTypesGetAllClientService, documentTypesGetByIdClientService, documentationMetadataGetAllClientService, documentationMetadataGetByIdClientService, documentsGetAllClientService, documentsGetByIdClientService, documentsLanguagesClientService, domainEntitiesGetAllClientService, domainEntitiesGetByIdClientService, downTimesGetAllClientService, downTimesGetByIdClientService, eventsGetAllClientService, eventsGetByIdClientService, formalitiesGetAllClientService, formalitiesGetByIdClientService, formsGetAllClientService, formsGetByIdClientService, fragmentsGetAllClientService, fragmentsGetByIdClientService, fragmentsLanguagesClientService, functionalMetadatasGetAllClientService, functionalMetadatasGetByIdClientService, functionalitiesGetAllClientService, functionalitiesGetByIdClientService, groupsGetAllClientService, groupsGetByIdClientService, hardwareToolsGetAllClientService, hardwareToolsGetByIdClientService, identitiesGetAllClientService, identitiesGetByIdClientService, identityDomainsGetAllClientService, identityDomainsGetByIdClientService, individualsGetAllClientService, individualsGetByIdClientService, informationObjectsGetAllClientService, informationObjectsGetByIdClientService, informationSubjectsGetAllClientService, informationSubjectsGetByIdClientService, informationTypesGetAllClientService, informationTypesGetByIdClientService, informationUnitsGetAllClientService, informationUnitsGetByIdClientService, informationUnitsLanguagesClientService, learningsGetAllClientService, learningsGetByIdClientService, locationsGetAllClientService, locationsGetByIdClientService, lubricantsGetAllClientService, lubricantsGetByIdClientService, maintenanceIntervalsGetAllClientService, maintenanceIntervalsGetByIdClientService, operatingSuppliesGetAllClientService, operatingSuppliesGetByIdClientService, organizationsGetAllClientService, organizationsGetByIdClientService, packagesCreateClientAppClientService, packagesGetAllClientService, packagesGetByIdClientService, packagesLanguagesClientService, partiesGetAllClientService, partiesGetByIdClientService, planningTimesGetAllClientService, planningTimesGetByIdClientService, processesGetAllClientService, processesGetByIdClientService, productFeaturesGetAllClientService, productFeaturesGetByIdClientService, productFunctionsGetAllClientService, productFunctionsGetByIdClientService, productLifeCyclePhasesGetAllClientService, productLifeCyclePhasesGetByIdClientService, productMetadataGetAllClientService, productMetadataGetByIdClientService, productPropertiesGetAllClientService, productPropertiesGetByIdClientService, productVariantsGetAllClientService, productVariantsGetByIdClientService, puttingToUsesGetAllClientService, puttingToUsesGetByIdClientService, qualificationsGetAllClientService, qualificationsGetByIdClientService, referencesGetAllClientService, referencesGetByIdClientService, renditionsGetAllClientService, renditionsGetByIdClientService, renditionsGetWithBinaryWithBinaryPathClientService, resourcesDownloadResourceClientService, resourcesDownloadResourceWithBinaryPathClientService, resourcesGetPackageClientService, resourcesGetSubjectFromPackageClientService, resourcesViewResourceClientService, resourcesViewResourceWithBinaryPathClientService, rolesGetAllClientService, rolesGetByIdClientService, safetiesGetAllClientService, safetiesGetByIdClientService, searchGetAllClientService, setupTimesGetAllClientService, setupTimesGetByIdClientService, skillLevelsGetAllClientService, skillLevelsGetByIdClientService, sparQLExecuteSparQlClientService, sparePartsGetAllClientService, sparePartsGetByIdClientService, suppliesGetAllClientService, suppliesGetByIdClientService, tasksGetAllClientService, tasksGetByIdClientService, technicalDataGetAllClientService, technicalDataGetByIdClientService, technicalOverviewsGetAllClientService, technicalOverviewsGetByIdClientService, topicTypesGetAllClientService, topicTypesGetByIdClientService, topicsGetAllClientService, topicsGetByIdClientService, topicsLanguagesClientService, troubleShootingsGetAllClientService, troubleShootingsGetByIdClientService, usesGetAllClientService, usesGetByIdClientService, vCardsGetAllClientService, vCardsGetByIdClientService, warningMessagesGetAllClientService, warningMessagesGetByIdClientService, workingTimesGetAllClientService, workingTimesGetByIdClientService } from './generated/client-requests.js';
|
|
3
3
|
export { administrativeMetadataGetAllServer, administrativeMetadataGetByIdServer, afterUsesGetAllServer, afterUsesGetByIdServer, categoriesGetAllServer, categoriesGetByIdServer, collectionsGetAllServer, collectionsGetByIdServer, componentsGetAllServer, componentsGetByIdServer, conceptsGetAllServer, conceptsGetByIdServer, conformitiesGetAllServer, conformitiesGetByIdServer, consumablesGetAllServer, consumablesGetByIdServer, contentLifeCycleStatusGetAllServer, contentLifeCycleStatusGetByIdServer, designAndRealizationsGetAllServer, designAndRealizationsGetByIdServer, directoryNodeTypesGetAllServer, directoryNodeTypesGetByIdServer, directoryNodesGetAllServer, directoryNodesGetByIdServer, documentTypesGetAllServer, documentTypesGetByIdServer, documentationMetadataGetAllServer, documentationMetadataGetByIdServer, documentsGetAllServer, documentsGetByIdServer, documentsLanguagesServer, domainEntitiesGetAllServer, domainEntitiesGetByIdServer, downTimesGetAllServer, downTimesGetByIdServer, eventsGetAllServer, eventsGetByIdServer, formalitiesGetAllServer, formalitiesGetByIdServer, formsGetAllServer, formsGetByIdServer, fragmentsGetAllServer, fragmentsGetByIdServer, fragmentsLanguagesServer, functionalMetadatasGetAllServer, functionalMetadatasGetByIdServer, functionalitiesGetAllServer, functionalitiesGetByIdServer, groupsGetAllServer, groupsGetByIdServer, hardwareToolsGetAllServer, hardwareToolsGetByIdServer, identitiesGetAllServer, identitiesGetByIdServer, identityDomainsGetAllServer, identityDomainsGetByIdServer, individualsGetAllServer, individualsGetByIdServer, informationObjectsGetAllServer, informationObjectsGetByIdServer, informationSubjectsGetAllServer, informationSubjectsGetByIdServer, informationTypesGetAllServer, informationTypesGetByIdServer, informationUnitsGetAllServer, informationUnitsGetByIdServer, informationUnitsLanguagesServer, learningsGetAllServer, learningsGetByIdServer, locationsGetAllServer, locationsGetByIdServer, lubricantsGetAllServer, lubricantsGetByIdServer, maintenanceIntervalsGetAllServer, maintenanceIntervalsGetByIdServer, operatingSuppliesGetAllServer, operatingSuppliesGetByIdServer, organizationsGetAllServer, organizationsGetByIdServer, packagesCreateClientAppServer, packagesGetAllServer, packagesGetByIdServer, packagesLanguagesServer, partiesGetAllServer, partiesGetByIdServer, planningTimesGetAllServer, planningTimesGetByIdServer, processesGetAllServer, processesGetByIdServer, productFeaturesGetAllServer, productFeaturesGetByIdServer, productFunctionsGetAllServer, productFunctionsGetByIdServer, productLifeCyclePhasesGetAllServer, productLifeCyclePhasesGetByIdServer, productMetadataGetAllServer, productMetadataGetByIdServer, productPropertiesGetAllServer, productPropertiesGetByIdServer, productVariantsGetAllServer, productVariantsGetByIdServer, puttingToUsesGetAllServer, puttingToUsesGetByIdServer, qualificationsGetAllServer, qualificationsGetByIdServer, referencesGetAllServer, referencesGetByIdServer, renditionsGetAllServer, renditionsGetByIdServer, renditionsGetWithBinaryWithBinaryPathServer, resourcesDownloadResourceServer, resourcesDownloadResourceWithBinaryPathServer, resourcesGetPackageServer, resourcesGetSubjectFromPackageServer, resourcesViewResourceServer, resourcesViewResourceWithBinaryPathServer, rolesGetAllServer, rolesGetByIdServer, safetiesGetAllServer, safetiesGetByIdServer, searchGetAllServer, setupTimesGetAllServer, setupTimesGetByIdServer, skillLevelsGetAllServer, skillLevelsGetByIdServer, sparQLExecuteSparQlServer, sparePartsGetAllServer, sparePartsGetByIdServer, suppliesGetAllServer, suppliesGetByIdServer, tasksGetAllServer, tasksGetByIdServer, technicalDataGetAllServer, technicalDataGetByIdServer, technicalOverviewsGetAllServer, technicalOverviewsGetByIdServer, topicTypesGetAllServer, topicTypesGetByIdServer, topicsGetAllServer, topicsGetByIdServer, topicsLanguagesServer, troubleShootingsGetAllServer, troubleShootingsGetByIdServer, usesGetAllServer, usesGetByIdServer, vCardsGetAllServer, vCardsGetByIdServer, warningMessagesGetAllServer, warningMessagesGetByIdServer, workingTimesGetAllServer, workingTimesGetByIdServer } from './generated/server-requests.js';
|
|
4
4
|
export { BaseVCardProfile, ContactEntry, DEFAULT_LOGO_SRC, IndividualProfile, OrganizationProfile, ResolvedSocialLink, VCardProfile, buildTelephoneEntries, decodeEncodedVcardId, getIndividualProfileById, getIndividualsProfiles, getOrganizationBranding, getOrganizationProfile, getOrganizationProfileById, getOrganizationsProfiles, getServerConfig, getVCardProfileById, getVCardProfiles, mapVCardEntityToBaseProfile, normalizeEmail, normalizeHref, resolveLogoSource, resolveSocialProviderLabel, resolveTypedSocialLinks, resolveUiLanguage } from './vcard/index.js';
|
|
5
|
-
export { AvailableLanguageVersion,
|
|
5
|
+
export { AvailableLanguageVersion, MetadataDisplayRow, MetadataFacetLabelOptions, MetadataFacetLabelOverride, MetadataFacetLabelOverrides, MetadataPresentationPropertyKey, PartiesResult, PartyNode, READMODEL_CACHE_POLICY, TaxonomyEntityRef, TaxonomyNode, TaxonomyResult, getApplicableForTypes, getAvailableLanguagesByVersionOf, getComponents, getContentLifeCycleStatus, getDocumentTypes, getFunctionalMetadata, getInformationSubjects, getMetadataDisplayRows, getMetadataFacetLabelOverrides, getMetadataPropertyResolvers, getParties, getPlanningTimes, getProductFeatures, getProductLifeCyclePhases, getProductMetadata, getProductVariants, getQualifications, getSupplies, getTopicTypes } from './read-models/index.js';
|
|
6
|
+
export { FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, InformationUnitPropertyKey, MetadataDisplaySectionStrategy, MetadataPropertyPresentationConfig, MetadataValueKind } from './read-models/metadata-presentation-config.js';
|
|
7
|
+
export { METADATA_VIEW_PROFILES, MetadataViewProfile, MetadataViewProfileId, resolveFacetTags, resolveMetadataDisplayProperties } from './read-models/metadata-view-profile.js';
|
|
6
8
|
|
|
7
9
|
type IdParam = {
|
|
8
10
|
id: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { InformationTypesGetAllQueryParams, ContentLifeCycleStatusGetAllQueryParams, FunctionalMetadatasGetAllQueryParams, PlanningTimesGetAllQueryParams, ProductFeaturesGetAllQueryParams, ProductLifeCyclePhasesGetAllQueryParams, ProductMetadataGetAllQueryParams, ProductVariantsGetAllQueryParams, QualificationsGetAllQueryParams, SuppliesGetAllQueryParams, TopicTypesGetAllQueryParams,
|
|
1
|
+
import { InformationTypesGetAllQueryParams, ContentLifeCycleStatusGetAllQueryParams, FunctionalMetadatasGetAllQueryParams, PlanningTimesGetAllQueryParams, ProductFeaturesGetAllQueryParams, ProductLifeCyclePhasesGetAllQueryParams, ProductMetadataGetAllQueryParams, ProductVariantsGetAllQueryParams, QualificationsGetAllQueryParams, SuppliesGetAllQueryParams, TopicTypesGetAllQueryParams, RenditionModel, InformationUnitModel } from '@c-rex/interfaces';
|
|
2
|
+
import { InformationUnitPropertyKey } from './metadata-presentation-config.mjs';
|
|
3
|
+
export { FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, MetadataDisplaySectionStrategy, MetadataPropertyPresentationConfig, MetadataValueKind } from './metadata-presentation-config.mjs';
|
|
4
|
+
export { METADATA_VIEW_PROFILES, MetadataViewProfile, MetadataViewProfileId, resolveFacetTags, resolveMetadataDisplayProperties } from './metadata-view-profile.mjs';
|
|
2
5
|
|
|
3
6
|
type TaxonomyEntityRef = {
|
|
4
7
|
id: string;
|
|
@@ -67,72 +70,6 @@ declare const getQualifications: (query?: Partial<QualificationsGetAllQueryParam
|
|
|
67
70
|
declare const getSupplies: (query?: Partial<SuppliesGetAllQueryParams>) => Promise<TaxonomyResult>;
|
|
68
71
|
declare const getMetadataPropertyResolvers: () => Record<MetadataPropertyKey, () => Promise<TaxonomyResult | PartiesResult>>;
|
|
69
72
|
|
|
70
|
-
type InformationUnitPropertyKey = keyof InformationUnitModel;
|
|
71
|
-
/**
|
|
72
|
-
* Describes the raw shape of a metadata property value in InformationUnitModel.
|
|
73
|
-
* This drives generic rendering/grouping logic without coupling to one concrete UI control.
|
|
74
|
-
*/
|
|
75
|
-
type MetadataValueKind =
|
|
76
|
-
/** Primitive scalar (string/number/date-like value). */
|
|
77
|
-
"scalar"
|
|
78
|
-
/** Array of localized literals ({ language, value }). */
|
|
79
|
-
| "literalArray"
|
|
80
|
-
/** Array of primitive strings. */
|
|
81
|
-
| "stringArray"
|
|
82
|
-
/** Single ObjectRef relation. */
|
|
83
|
-
| "objectRef"
|
|
84
|
-
/** Multiple ObjectRef relations. */
|
|
85
|
-
| "objectRefArray"
|
|
86
|
-
/** Array of API resource links. */
|
|
87
|
-
| "resourceLinkArray"
|
|
88
|
-
/** Array of rendition entries. */
|
|
89
|
-
| "renditionArray";
|
|
90
|
-
/**
|
|
91
|
-
* Defines how facet search sections are derived for one metadata property.
|
|
92
|
-
*/
|
|
93
|
-
type FacetSectionStrategy = "none" | "class" | "partyRole";
|
|
94
|
-
/**
|
|
95
|
-
* Defines how generic metadata display sections are derived (property grid, card metadata, etc.).
|
|
96
|
-
* Name is intentionally control-agnostic and not tied to InformationUnitMetadataGrid.
|
|
97
|
-
*/
|
|
98
|
-
type MetadataDisplaySectionStrategy = "none" | "class" | "partyRole";
|
|
99
|
-
/**
|
|
100
|
-
* Central presentation contract for one InformationUnit metadata property.
|
|
101
|
-
* - facet: behavior for facet search grouping.
|
|
102
|
-
* - metadataDisplay: behavior for generic metadata rendering components.
|
|
103
|
-
*/
|
|
104
|
-
type MetadataPropertyPresentationConfig = {
|
|
105
|
-
/** Raw value shape from API model. */
|
|
106
|
-
valueKind: MetadataValueKind;
|
|
107
|
-
facet: {
|
|
108
|
-
/** If false, property is not used as facet dimension. */
|
|
109
|
-
supported: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* How facet sections are built:
|
|
112
|
-
* - "none": keep the property as one flat facet group (no additional taxonomy section split).
|
|
113
|
-
* - "class": split entries by their class label.
|
|
114
|
-
* - "partyRole": split entries by party role label.
|
|
115
|
-
*/
|
|
116
|
-
sectionStrategy: FacetSectionStrategy;
|
|
117
|
-
};
|
|
118
|
-
metadataDisplay: {
|
|
119
|
-
/** If false, property is not rendered in generic metadata displays. */
|
|
120
|
-
supported: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* How metadata sections are built in generic displays:
|
|
123
|
-
* - "none": keep one property row/group.
|
|
124
|
-
* - "class": split/group by class label.
|
|
125
|
-
* - "partyRole": split/group by party role label.
|
|
126
|
-
*/
|
|
127
|
-
sectionStrategy: MetadataDisplaySectionStrategy;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Central presentation rules for all InformationUnitModel properties.
|
|
132
|
-
* This is the single source of truth for facet grouping and generic metadata display behavior.
|
|
133
|
-
*/
|
|
134
|
-
declare const INFORMATION_UNIT_PROPERTY_PRESENTATION: Record<InformationUnitPropertyKey, MetadataPropertyPresentationConfig>;
|
|
135
|
-
|
|
136
73
|
type MetadataPresentationPropertyKey = InformationUnitPropertyKey;
|
|
137
74
|
/**
|
|
138
75
|
* UI-facing label override for one facet value (usually referenced by shortId).
|
|
@@ -195,43 +132,6 @@ type AvailableLanguageVersion = {
|
|
|
195
132
|
};
|
|
196
133
|
declare const getAvailableLanguagesByVersionOf: (versionOfShortId?: string | null) => Promise<AvailableLanguageVersion[]>;
|
|
197
134
|
|
|
198
|
-
type MetadataViewProfileId = "default-search" | "information-unit-search" | "default-metadata-display";
|
|
199
|
-
type MetadataViewProfile = {
|
|
200
|
-
id: MetadataViewProfileId;
|
|
201
|
-
facet?: {
|
|
202
|
-
includeProperties?: InformationUnitPropertyKey[];
|
|
203
|
-
excludeProperties?: InformationUnitPropertyKey[];
|
|
204
|
-
includeZeroHits?: boolean;
|
|
205
|
-
extraTags?: string[];
|
|
206
|
-
};
|
|
207
|
-
metadataDisplay?: {
|
|
208
|
-
includeProperties?: InformationUnitPropertyKey[];
|
|
209
|
-
excludeProperties?: InformationUnitPropertyKey[];
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
declare const METADATA_VIEW_PROFILES: Record<MetadataViewProfileId, MetadataViewProfile>;
|
|
213
|
-
type ResolveFacetTagsOptions = {
|
|
214
|
-
profileId?: MetadataViewProfileId;
|
|
215
|
-
includeProperties?: string[];
|
|
216
|
-
excludeProperties?: string[];
|
|
217
|
-
extraTags?: string[];
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* Resolves API tag keys for facet requests from one central profile definition.
|
|
221
|
-
* Use this instead of hardcoded page-level tag arrays.
|
|
222
|
-
*/
|
|
223
|
-
declare const resolveFacetTags: (options?: ResolveFacetTagsOptions) => string[];
|
|
224
|
-
type ResolveMetadataDisplayPropertiesOptions = {
|
|
225
|
-
profileId?: MetadataViewProfileId;
|
|
226
|
-
includeProperties?: string[];
|
|
227
|
-
excludeProperties?: string[];
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Resolves the effective metadata properties used by generic metadata displays.
|
|
231
|
-
* Supports profile-level defaults and usage-specific include/exclude narrowing.
|
|
232
|
-
*/
|
|
233
|
-
declare const resolveMetadataDisplayProperties: (options?: ResolveMetadataDisplayPropertiesOptions) => InformationUnitPropertyKey[];
|
|
234
|
-
|
|
235
135
|
/**
|
|
236
136
|
* Central read-model cache policy (seconds).
|
|
237
137
|
* Values can be overridden per environment to tune cache windows by top-level domain.
|
|
@@ -242,4 +142,4 @@ declare const READMODEL_CACHE_POLICY: {
|
|
|
242
142
|
readonly requestsRevalidateSeconds: number;
|
|
243
143
|
};
|
|
244
144
|
|
|
245
|
-
export { type AvailableLanguageVersion,
|
|
145
|
+
export { type AvailableLanguageVersion, InformationUnitPropertyKey, type MetadataDisplayRow, type MetadataFacetLabelOptions, type MetadataFacetLabelOverride, type MetadataFacetLabelOverrides, type MetadataPresentationPropertyKey, type PartiesResult, type PartyNode, READMODEL_CACHE_POLICY, type TaxonomyEntityRef, type TaxonomyNode, type TaxonomyResult, getApplicableForTypes, getAvailableLanguagesByVersionOf, getComponents, getContentLifeCycleStatus, getDocumentTypes, getFunctionalMetadata, getInformationSubjects, getMetadataDisplayRows, getMetadataFacetLabelOverrides, getMetadataPropertyResolvers, getParties, getPlanningTimes, getProductFeatures, getProductLifeCyclePhases, getProductMetadata, getProductVariants, getQualifications, getSupplies, getTopicTypes };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { InformationTypesGetAllQueryParams, ContentLifeCycleStatusGetAllQueryParams, FunctionalMetadatasGetAllQueryParams, PlanningTimesGetAllQueryParams, ProductFeaturesGetAllQueryParams, ProductLifeCyclePhasesGetAllQueryParams, ProductMetadataGetAllQueryParams, ProductVariantsGetAllQueryParams, QualificationsGetAllQueryParams, SuppliesGetAllQueryParams, TopicTypesGetAllQueryParams,
|
|
1
|
+
import { InformationTypesGetAllQueryParams, ContentLifeCycleStatusGetAllQueryParams, FunctionalMetadatasGetAllQueryParams, PlanningTimesGetAllQueryParams, ProductFeaturesGetAllQueryParams, ProductLifeCyclePhasesGetAllQueryParams, ProductMetadataGetAllQueryParams, ProductVariantsGetAllQueryParams, QualificationsGetAllQueryParams, SuppliesGetAllQueryParams, TopicTypesGetAllQueryParams, RenditionModel, InformationUnitModel } from '@c-rex/interfaces';
|
|
2
|
+
import { InformationUnitPropertyKey } from './metadata-presentation-config.js';
|
|
3
|
+
export { FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, MetadataDisplaySectionStrategy, MetadataPropertyPresentationConfig, MetadataValueKind } from './metadata-presentation-config.js';
|
|
4
|
+
export { METADATA_VIEW_PROFILES, MetadataViewProfile, MetadataViewProfileId, resolveFacetTags, resolveMetadataDisplayProperties } from './metadata-view-profile.js';
|
|
2
5
|
|
|
3
6
|
type TaxonomyEntityRef = {
|
|
4
7
|
id: string;
|
|
@@ -67,72 +70,6 @@ declare const getQualifications: (query?: Partial<QualificationsGetAllQueryParam
|
|
|
67
70
|
declare const getSupplies: (query?: Partial<SuppliesGetAllQueryParams>) => Promise<TaxonomyResult>;
|
|
68
71
|
declare const getMetadataPropertyResolvers: () => Record<MetadataPropertyKey, () => Promise<TaxonomyResult | PartiesResult>>;
|
|
69
72
|
|
|
70
|
-
type InformationUnitPropertyKey = keyof InformationUnitModel;
|
|
71
|
-
/**
|
|
72
|
-
* Describes the raw shape of a metadata property value in InformationUnitModel.
|
|
73
|
-
* This drives generic rendering/grouping logic without coupling to one concrete UI control.
|
|
74
|
-
*/
|
|
75
|
-
type MetadataValueKind =
|
|
76
|
-
/** Primitive scalar (string/number/date-like value). */
|
|
77
|
-
"scalar"
|
|
78
|
-
/** Array of localized literals ({ language, value }). */
|
|
79
|
-
| "literalArray"
|
|
80
|
-
/** Array of primitive strings. */
|
|
81
|
-
| "stringArray"
|
|
82
|
-
/** Single ObjectRef relation. */
|
|
83
|
-
| "objectRef"
|
|
84
|
-
/** Multiple ObjectRef relations. */
|
|
85
|
-
| "objectRefArray"
|
|
86
|
-
/** Array of API resource links. */
|
|
87
|
-
| "resourceLinkArray"
|
|
88
|
-
/** Array of rendition entries. */
|
|
89
|
-
| "renditionArray";
|
|
90
|
-
/**
|
|
91
|
-
* Defines how facet search sections are derived for one metadata property.
|
|
92
|
-
*/
|
|
93
|
-
type FacetSectionStrategy = "none" | "class" | "partyRole";
|
|
94
|
-
/**
|
|
95
|
-
* Defines how generic metadata display sections are derived (property grid, card metadata, etc.).
|
|
96
|
-
* Name is intentionally control-agnostic and not tied to InformationUnitMetadataGrid.
|
|
97
|
-
*/
|
|
98
|
-
type MetadataDisplaySectionStrategy = "none" | "class" | "partyRole";
|
|
99
|
-
/**
|
|
100
|
-
* Central presentation contract for one InformationUnit metadata property.
|
|
101
|
-
* - facet: behavior for facet search grouping.
|
|
102
|
-
* - metadataDisplay: behavior for generic metadata rendering components.
|
|
103
|
-
*/
|
|
104
|
-
type MetadataPropertyPresentationConfig = {
|
|
105
|
-
/** Raw value shape from API model. */
|
|
106
|
-
valueKind: MetadataValueKind;
|
|
107
|
-
facet: {
|
|
108
|
-
/** If false, property is not used as facet dimension. */
|
|
109
|
-
supported: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* How facet sections are built:
|
|
112
|
-
* - "none": keep the property as one flat facet group (no additional taxonomy section split).
|
|
113
|
-
* - "class": split entries by their class label.
|
|
114
|
-
* - "partyRole": split entries by party role label.
|
|
115
|
-
*/
|
|
116
|
-
sectionStrategy: FacetSectionStrategy;
|
|
117
|
-
};
|
|
118
|
-
metadataDisplay: {
|
|
119
|
-
/** If false, property is not rendered in generic metadata displays. */
|
|
120
|
-
supported: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* How metadata sections are built in generic displays:
|
|
123
|
-
* - "none": keep one property row/group.
|
|
124
|
-
* - "class": split/group by class label.
|
|
125
|
-
* - "partyRole": split/group by party role label.
|
|
126
|
-
*/
|
|
127
|
-
sectionStrategy: MetadataDisplaySectionStrategy;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Central presentation rules for all InformationUnitModel properties.
|
|
132
|
-
* This is the single source of truth for facet grouping and generic metadata display behavior.
|
|
133
|
-
*/
|
|
134
|
-
declare const INFORMATION_UNIT_PROPERTY_PRESENTATION: Record<InformationUnitPropertyKey, MetadataPropertyPresentationConfig>;
|
|
135
|
-
|
|
136
73
|
type MetadataPresentationPropertyKey = InformationUnitPropertyKey;
|
|
137
74
|
/**
|
|
138
75
|
* UI-facing label override for one facet value (usually referenced by shortId).
|
|
@@ -195,43 +132,6 @@ type AvailableLanguageVersion = {
|
|
|
195
132
|
};
|
|
196
133
|
declare const getAvailableLanguagesByVersionOf: (versionOfShortId?: string | null) => Promise<AvailableLanguageVersion[]>;
|
|
197
134
|
|
|
198
|
-
type MetadataViewProfileId = "default-search" | "information-unit-search" | "default-metadata-display";
|
|
199
|
-
type MetadataViewProfile = {
|
|
200
|
-
id: MetadataViewProfileId;
|
|
201
|
-
facet?: {
|
|
202
|
-
includeProperties?: InformationUnitPropertyKey[];
|
|
203
|
-
excludeProperties?: InformationUnitPropertyKey[];
|
|
204
|
-
includeZeroHits?: boolean;
|
|
205
|
-
extraTags?: string[];
|
|
206
|
-
};
|
|
207
|
-
metadataDisplay?: {
|
|
208
|
-
includeProperties?: InformationUnitPropertyKey[];
|
|
209
|
-
excludeProperties?: InformationUnitPropertyKey[];
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
declare const METADATA_VIEW_PROFILES: Record<MetadataViewProfileId, MetadataViewProfile>;
|
|
213
|
-
type ResolveFacetTagsOptions = {
|
|
214
|
-
profileId?: MetadataViewProfileId;
|
|
215
|
-
includeProperties?: string[];
|
|
216
|
-
excludeProperties?: string[];
|
|
217
|
-
extraTags?: string[];
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* Resolves API tag keys for facet requests from one central profile definition.
|
|
221
|
-
* Use this instead of hardcoded page-level tag arrays.
|
|
222
|
-
*/
|
|
223
|
-
declare const resolveFacetTags: (options?: ResolveFacetTagsOptions) => string[];
|
|
224
|
-
type ResolveMetadataDisplayPropertiesOptions = {
|
|
225
|
-
profileId?: MetadataViewProfileId;
|
|
226
|
-
includeProperties?: string[];
|
|
227
|
-
excludeProperties?: string[];
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Resolves the effective metadata properties used by generic metadata displays.
|
|
231
|
-
* Supports profile-level defaults and usage-specific include/exclude narrowing.
|
|
232
|
-
*/
|
|
233
|
-
declare const resolveMetadataDisplayProperties: (options?: ResolveMetadataDisplayPropertiesOptions) => InformationUnitPropertyKey[];
|
|
234
|
-
|
|
235
135
|
/**
|
|
236
136
|
* Central read-model cache policy (seconds).
|
|
237
137
|
* Values can be overridden per environment to tune cache windows by top-level domain.
|
|
@@ -242,4 +142,4 @@ declare const READMODEL_CACHE_POLICY: {
|
|
|
242
142
|
readonly requestsRevalidateSeconds: number;
|
|
243
143
|
};
|
|
244
144
|
|
|
245
|
-
export { type AvailableLanguageVersion,
|
|
145
|
+
export { type AvailableLanguageVersion, InformationUnitPropertyKey, type MetadataDisplayRow, type MetadataFacetLabelOptions, type MetadataFacetLabelOverride, type MetadataFacetLabelOverrides, type MetadataPresentationPropertyKey, type PartiesResult, type PartyNode, READMODEL_CACHE_POLICY, type TaxonomyEntityRef, type TaxonomyNode, type TaxonomyResult, getApplicableForTypes, getAvailableLanguagesByVersionOf, getComponents, getContentLifeCycleStatus, getDocumentTypes, getFunctionalMetadata, getInformationSubjects, getMetadataDisplayRows, getMetadataFacetLabelOverrides, getMetadataPropertyResolvers, getParties, getPlanningTimes, getProductFeatures, getProductLifeCyclePhases, getProductMetadata, getProductVariants, getQualifications, getSupplies, getTopicTypes };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { InformationUnitModel } from '@c-rex/interfaces';
|
|
2
|
+
|
|
3
|
+
type InformationUnitPropertyKey = keyof InformationUnitModel;
|
|
4
|
+
/**
|
|
5
|
+
* Describes the raw shape of a metadata property value in InformationUnitModel.
|
|
6
|
+
* This drives generic rendering/grouping logic without coupling to one concrete UI control.
|
|
7
|
+
*/
|
|
8
|
+
type MetadataValueKind =
|
|
9
|
+
/** Primitive scalar (string/number/date-like value). */
|
|
10
|
+
"scalar"
|
|
11
|
+
/** Array of localized literals ({ language, value }). */
|
|
12
|
+
| "literalArray"
|
|
13
|
+
/** Array of primitive strings. */
|
|
14
|
+
| "stringArray"
|
|
15
|
+
/** Single ObjectRef relation. */
|
|
16
|
+
| "objectRef"
|
|
17
|
+
/** Multiple ObjectRef relations. */
|
|
18
|
+
| "objectRefArray"
|
|
19
|
+
/** Array of API resource links. */
|
|
20
|
+
| "resourceLinkArray"
|
|
21
|
+
/** Array of rendition entries. */
|
|
22
|
+
| "renditionArray";
|
|
23
|
+
/**
|
|
24
|
+
* Defines how facet search sections are derived for one metadata property.
|
|
25
|
+
*/
|
|
26
|
+
type FacetSectionStrategy = "none" | "class" | "partyRole";
|
|
27
|
+
/**
|
|
28
|
+
* Defines how generic metadata display sections are derived (property grid, card metadata, etc.).
|
|
29
|
+
* Name is intentionally control-agnostic and not tied to InformationUnitMetadataGrid.
|
|
30
|
+
*/
|
|
31
|
+
type MetadataDisplaySectionStrategy = "none" | "class" | "partyRole";
|
|
32
|
+
/**
|
|
33
|
+
* Central presentation contract for one InformationUnit metadata property.
|
|
34
|
+
* - facet: behavior for facet search grouping.
|
|
35
|
+
* - metadataDisplay: behavior for generic metadata rendering components.
|
|
36
|
+
*/
|
|
37
|
+
type MetadataPropertyPresentationConfig = {
|
|
38
|
+
/** Raw value shape from API model. */
|
|
39
|
+
valueKind: MetadataValueKind;
|
|
40
|
+
facet: {
|
|
41
|
+
/** If false, property is not used as facet dimension. */
|
|
42
|
+
supported: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* How facet sections are built:
|
|
45
|
+
* - "none": keep the property as one flat facet group (no additional taxonomy section split).
|
|
46
|
+
* - "class": split entries by their class label.
|
|
47
|
+
* - "partyRole": split entries by party role label.
|
|
48
|
+
*/
|
|
49
|
+
sectionStrategy: FacetSectionStrategy;
|
|
50
|
+
};
|
|
51
|
+
metadataDisplay: {
|
|
52
|
+
/** If false, property is not rendered in generic metadata displays. */
|
|
53
|
+
supported: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* How metadata sections are built in generic displays:
|
|
56
|
+
* - "none": keep one property row/group.
|
|
57
|
+
* - "class": split/group by class label.
|
|
58
|
+
* - "partyRole": split/group by party role label.
|
|
59
|
+
*/
|
|
60
|
+
sectionStrategy: MetadataDisplaySectionStrategy;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Central presentation rules for all InformationUnitModel properties.
|
|
65
|
+
* This is the single source of truth for facet grouping and generic metadata display behavior.
|
|
66
|
+
*/
|
|
67
|
+
declare const INFORMATION_UNIT_PROPERTY_PRESENTATION: Record<InformationUnitPropertyKey, MetadataPropertyPresentationConfig>;
|
|
68
|
+
|
|
69
|
+
export { type FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, type InformationUnitPropertyKey, type MetadataDisplaySectionStrategy, type MetadataPropertyPresentationConfig, type MetadataValueKind };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { InformationUnitModel } from '@c-rex/interfaces';
|
|
2
|
+
|
|
3
|
+
type InformationUnitPropertyKey = keyof InformationUnitModel;
|
|
4
|
+
/**
|
|
5
|
+
* Describes the raw shape of a metadata property value in InformationUnitModel.
|
|
6
|
+
* This drives generic rendering/grouping logic without coupling to one concrete UI control.
|
|
7
|
+
*/
|
|
8
|
+
type MetadataValueKind =
|
|
9
|
+
/** Primitive scalar (string/number/date-like value). */
|
|
10
|
+
"scalar"
|
|
11
|
+
/** Array of localized literals ({ language, value }). */
|
|
12
|
+
| "literalArray"
|
|
13
|
+
/** Array of primitive strings. */
|
|
14
|
+
| "stringArray"
|
|
15
|
+
/** Single ObjectRef relation. */
|
|
16
|
+
| "objectRef"
|
|
17
|
+
/** Multiple ObjectRef relations. */
|
|
18
|
+
| "objectRefArray"
|
|
19
|
+
/** Array of API resource links. */
|
|
20
|
+
| "resourceLinkArray"
|
|
21
|
+
/** Array of rendition entries. */
|
|
22
|
+
| "renditionArray";
|
|
23
|
+
/**
|
|
24
|
+
* Defines how facet search sections are derived for one metadata property.
|
|
25
|
+
*/
|
|
26
|
+
type FacetSectionStrategy = "none" | "class" | "partyRole";
|
|
27
|
+
/**
|
|
28
|
+
* Defines how generic metadata display sections are derived (property grid, card metadata, etc.).
|
|
29
|
+
* Name is intentionally control-agnostic and not tied to InformationUnitMetadataGrid.
|
|
30
|
+
*/
|
|
31
|
+
type MetadataDisplaySectionStrategy = "none" | "class" | "partyRole";
|
|
32
|
+
/**
|
|
33
|
+
* Central presentation contract for one InformationUnit metadata property.
|
|
34
|
+
* - facet: behavior for facet search grouping.
|
|
35
|
+
* - metadataDisplay: behavior for generic metadata rendering components.
|
|
36
|
+
*/
|
|
37
|
+
type MetadataPropertyPresentationConfig = {
|
|
38
|
+
/** Raw value shape from API model. */
|
|
39
|
+
valueKind: MetadataValueKind;
|
|
40
|
+
facet: {
|
|
41
|
+
/** If false, property is not used as facet dimension. */
|
|
42
|
+
supported: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* How facet sections are built:
|
|
45
|
+
* - "none": keep the property as one flat facet group (no additional taxonomy section split).
|
|
46
|
+
* - "class": split entries by their class label.
|
|
47
|
+
* - "partyRole": split entries by party role label.
|
|
48
|
+
*/
|
|
49
|
+
sectionStrategy: FacetSectionStrategy;
|
|
50
|
+
};
|
|
51
|
+
metadataDisplay: {
|
|
52
|
+
/** If false, property is not rendered in generic metadata displays. */
|
|
53
|
+
supported: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* How metadata sections are built in generic displays:
|
|
56
|
+
* - "none": keep one property row/group.
|
|
57
|
+
* - "class": split/group by class label.
|
|
58
|
+
* - "partyRole": split/group by party role label.
|
|
59
|
+
*/
|
|
60
|
+
sectionStrategy: MetadataDisplaySectionStrategy;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Central presentation rules for all InformationUnitModel properties.
|
|
65
|
+
* This is the single source of truth for facet grouping and generic metadata display behavior.
|
|
66
|
+
*/
|
|
67
|
+
declare const INFORMATION_UNIT_PROPERTY_PRESENTATION: Record<InformationUnitPropertyKey, MetadataPropertyPresentationConfig>;
|
|
68
|
+
|
|
69
|
+
export { type FacetSectionStrategy, INFORMATION_UNIT_PROPERTY_PRESENTATION, type InformationUnitPropertyKey, type MetadataDisplaySectionStrategy, type MetadataPropertyPresentationConfig, type MetadataValueKind };
|