@osdk/maker-experimental 0.6.0-beta.2 → 0.6.0-beta.3
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/CHANGELOG.md +14 -0
- package/bin/maker-experimental.mjs +6 -0
- package/build/browser/api/defineOntologyV2.js +35 -0
- package/build/browser/api/defineOntologyV2.js.map +1 -0
- package/build/browser/cli/main.js +120 -0
- package/build/browser/cli/main.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/BlockGeneratorResult.js +2 -0
- package/build/browser/cli/marketplaceSerialization/BlockGeneratorResult.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/CodeBlockSetSpec.js +2 -0
- package/build/browser/cli/marketplaceSerialization/CodeBlockSetSpec.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/CodeBlockSpec.js +53 -0
- package/build/browser/cli/marketplaceSerialization/CodeBlockSpec.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/StoreManifestEntry.js +2 -0
- package/build/browser/cli/marketplaceSerialization/StoreManifestEntry.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/index.js +2 -0
- package/build/browser/cli/marketplaceSerialization/index.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/specGenerators.js +70 -0
- package/build/browser/cli/marketplaceSerialization/specGenerators.js.map +1 -0
- package/build/browser/cli/marketplaceSerialization/supportingTypes.js +2 -0
- package/build/browser/cli/marketplaceSerialization/supportingTypes.js.map +1 -0
- package/build/browser/conversion/toConjure/distributeTypeHelper.js +23 -0
- package/build/browser/conversion/toConjure/distributeTypeHelper.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionHelpers.js +469 -0
- package/build/browser/conversion/toMarketplace/convertActionHelpers.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js +96 -0
- package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionParameters.js +81 -0
- package/build/browser/conversion/toMarketplace/convertActionParameters.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionSections.js +45 -0
- package/build/browser/conversion/toMarketplace/convertActionSections.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +160 -0
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertActionVisibility.js +41 -0
- package/build/browser/conversion/toMarketplace/convertActionVisibility.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertCardinality.js +23 -0
- package/build/browser/conversion/toMarketplace/convertCardinality.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertConditionDefinition.js +88 -0
- package/build/browser/conversion/toMarketplace/convertConditionDefinition.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertDataConstraintToDataConstraints.js +26 -0
- package/build/browser/conversion/toMarketplace/convertDataConstraintToDataConstraints.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +352 -0
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertInterface.js +75 -0
- package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +62 -0
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertLink.js +247 -0
- package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js +76 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js +42 -0
- package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertObject.js +262 -0
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +59 -0
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertOntologyDefinition.js +29 -0
- package/build/browser/conversion/toMarketplace/convertOntologyDefinition.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js +236 -0
- package/build/browser/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertOntologyToValueTypeIr.js +24 -0
- package/build/browser/conversion/toMarketplace/convertOntologyToValueTypeIr.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js +35 -0
- package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertSpt.js +65 -0
- package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertValueType.js +20 -0
- package/build/browser/conversion/toMarketplace/convertValueType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertValueTypeDataConstraints.js +30 -0
- package/build/browser/conversion/toMarketplace/convertValueTypeDataConstraints.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertValueTypesToIr.js +34 -0
- package/build/browser/conversion/toMarketplace/convertValueTypesToIr.js.map +1 -0
- package/build/browser/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js +83 -0
- package/build/browser/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js.map +1 -0
- package/build/browser/conversion/toMarketplace/getFormContentOrdering.js +39 -0
- package/build/browser/conversion/toMarketplace/getFormContentOrdering.js.map +1 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +146 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +156 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js +442 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js +562 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js +513 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js +274 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js +425 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js.map +1 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js +677 -0
- package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js.map +1 -0
- package/build/browser/conversion/toMarketplace/typeVisitors.js +615 -0
- package/build/browser/conversion/toMarketplace/typeVisitors.js.map +1 -0
- package/build/browser/index.js +2 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/util/generateRid.js +476 -0
- package/build/browser/util/generateRid.js.map +1 -0
- package/build/cjs/ActionTypeShapeExtractor-5IVLHAPH.cjs +395 -0
- package/build/cjs/ActionTypeShapeExtractor-5IVLHAPH.cjs.map +1 -0
- package/build/cjs/chunk-AWYOBJ25.cjs +440 -0
- package/build/cjs/chunk-AWYOBJ25.cjs.map +1 -0
- package/build/cjs/index.cjs +3965 -2663
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +103 -1
- package/build/esm/api/defineOntologyV2.js +35 -0
- package/build/esm/api/defineOntologyV2.js.map +1 -0
- package/build/esm/cli/main.js +120 -0
- package/build/esm/cli/main.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/BlockGeneratorResult.js +2 -0
- package/build/esm/cli/marketplaceSerialization/BlockGeneratorResult.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/CodeBlockSetSpec.js +2 -0
- package/build/esm/cli/marketplaceSerialization/CodeBlockSetSpec.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/CodeBlockSpec.js +53 -0
- package/build/esm/cli/marketplaceSerialization/CodeBlockSpec.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/StoreManifestEntry.js +2 -0
- package/build/esm/cli/marketplaceSerialization/StoreManifestEntry.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/index.js +2 -0
- package/build/esm/cli/marketplaceSerialization/index.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/specGenerators.js +70 -0
- package/build/esm/cli/marketplaceSerialization/specGenerators.js.map +1 -0
- package/build/esm/cli/marketplaceSerialization/supportingTypes.js +2 -0
- package/build/esm/cli/marketplaceSerialization/supportingTypes.js.map +1 -0
- package/build/esm/conversion/toConjure/distributeTypeHelper.js +23 -0
- package/build/esm/conversion/toConjure/distributeTypeHelper.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionHelpers.js +469 -0
- package/build/esm/conversion/toMarketplace/convertActionHelpers.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js +96 -0
- package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionParameters.js +81 -0
- package/build/esm/conversion/toMarketplace/convertActionParameters.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionSections.js +45 -0
- package/build/esm/conversion/toMarketplace/convertActionSections.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +160 -0
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertActionVisibility.js +41 -0
- package/build/esm/conversion/toMarketplace/convertActionVisibility.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertCardinality.js +23 -0
- package/build/esm/conversion/toMarketplace/convertCardinality.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertConditionDefinition.js +88 -0
- package/build/esm/conversion/toMarketplace/convertConditionDefinition.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertDataConstraintToDataConstraints.js +26 -0
- package/build/esm/conversion/toMarketplace/convertDataConstraintToDataConstraints.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +352 -0
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertInterface.js +75 -0
- package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +62 -0
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertLink.js +247 -0
- package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js +76 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js +42 -0
- package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertObject.js +262 -0
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +59 -0
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertOntologyDefinition.js +29 -0
- package/build/esm/conversion/toMarketplace/convertOntologyDefinition.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js +236 -0
- package/build/esm/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertOntologyToValueTypeIr.js +24 -0
- package/build/esm/conversion/toMarketplace/convertOntologyToValueTypeIr.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js +35 -0
- package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertSpt.js +65 -0
- package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertValueType.js +20 -0
- package/build/esm/conversion/toMarketplace/convertValueType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertValueTypeDataConstraints.js +30 -0
- package/build/esm/conversion/toMarketplace/convertValueTypeDataConstraints.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertValueTypesToIr.js +34 -0
- package/build/esm/conversion/toMarketplace/convertValueTypesToIr.js.map +1 -0
- package/build/esm/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js +83 -0
- package/build/esm/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js.map +1 -0
- package/build/esm/conversion/toMarketplace/getFormContentOrdering.js +39 -0
- package/build/esm/conversion/toMarketplace/getFormContentOrdering.js.map +1 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +146 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +156 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js +442 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js +562 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js +513 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js +274 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js +425 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js.map +1 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js +677 -0
- package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js.map +1 -0
- package/build/esm/conversion/toMarketplace/typeVisitors.js +615 -0
- package/build/esm/conversion/toMarketplace/typeVisitors.js.map +1 -0
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/util/generateRid.js +476 -0
- package/build/esm/util/generateRid.js.map +1 -0
- package/build/types/api/defineOntologyV2.d.ts +3 -0
- package/build/types/api/defineOntologyV2.d.ts.map +1 -0
- package/build/types/cli/main.d.ts +1 -0
- package/build/types/cli/main.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/BlockGeneratorResult.d.ts +69 -0
- package/build/types/cli/marketplaceSerialization/BlockGeneratorResult.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/CodeBlockSetSpec.d.ts +60 -0
- package/build/types/cli/marketplaceSerialization/CodeBlockSetSpec.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/CodeBlockSpec.d.ts +48 -0
- package/build/types/cli/marketplaceSerialization/CodeBlockSpec.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/StoreManifestEntry.d.ts +13 -0
- package/build/types/cli/marketplaceSerialization/StoreManifestEntry.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/index.d.ts +11 -0
- package/build/types/cli/marketplaceSerialization/index.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/specGenerators.d.ts +10 -0
- package/build/types/cli/marketplaceSerialization/specGenerators.d.ts.map +1 -0
- package/build/types/cli/marketplaceSerialization/supportingTypes.d.ts +31 -0
- package/build/types/cli/marketplaceSerialization/supportingTypes.d.ts.map +1 -0
- package/build/types/conversion/toConjure/distributeTypeHelper.d.ts +3 -0
- package/build/types/conversion/toConjure/distributeTypeHelper.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionHelpers.d.ts +7 -0
- package/build/types/conversion/toMarketplace/convertActionHelpers.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionParameters.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertActionParameters.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionSections.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertActionSections.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionValidation.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertActionValidation.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionVisibility.d.ts +2 -0
- package/build/types/conversion/toMarketplace/convertActionVisibility.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertCardinality.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertCardinality.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertDataConstraintToDataConstraints.d.ts +2 -0
- package/build/types/conversion/toMarketplace/convertDataConstraintToDataConstraints.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertInterface.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts +9 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertNullabilityToDataConstraint.d.ts +6 -0
- package/build/types/conversion/toMarketplace/convertNullabilityToDataConstraint.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertObject.d.ts +10 -0
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertOntologyDefinition.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertOntologyDefinition.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertOntologyToValueTypeIr.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertOntologyToValueTypeIr.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertSpt.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertValueType.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertValueType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertValueTypeDataConstraints.d.ts +2 -0
- package/build/types/conversion/toMarketplace/convertValueTypeDataConstraints.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertValueTypesToIr.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertValueTypesToIr.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.d.ts +2 -0
- package/build/types/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/getFormContentOrdering.d.ts +3 -0
- package/build/types/conversion/toMarketplace/getFormContentOrdering.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +4 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts +4 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.d.ts +13 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.d.ts +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.d.ts +11 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.d.ts +43 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.d.ts +28 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.d.ts +1 -0
- package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/typeVisitors.d.ts +17 -0
- package/build/types/conversion/toMarketplace/typeVisitors.d.ts.map +1 -0
- package/build/types/index.d.ts +3 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/util/generateRid.d.ts +216 -0
- package/build/types/util/generateRid.d.ts.map +1 -0
- package/package.json +10 -4
- package/build/cjs/chunk-ZPP374PZ.cjs +0 -17
- package/build/cjs/chunk-ZPP374PZ.cjs.map +0 -1
- package/build/cjs/prompt-VSXFWPU4.cjs +0 -955
- package/build/cjs/prompt-VSXFWPU4.cjs.map +0 -1
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// ParameterRid is defined in ontology-metadata but may not be re-exported through the main API
|
|
18
|
+
|
|
19
|
+
import { createHash } from "crypto";
|
|
20
|
+
import { toBlockShapeId } from "../cli/marketplaceSerialization/CodeBlockSpec.js";
|
|
21
|
+
|
|
22
|
+
// Given a unique key generates a rid deterministically (from a lock file eventually)
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Placeholder interface for OntologyRidGenerator
|
|
26
|
+
* This should be filled in with actual implementation
|
|
27
|
+
*/
|
|
28
|
+
// Types for datasource locators
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Simple BiMap interface (placeholder)
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* BlockShapes container for input and output shapes
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* ReadableId generator functions matching Java's ReadableIdGenerator
|
|
40
|
+
*/
|
|
41
|
+
export class ReadableIdGenerator {
|
|
42
|
+
static get(arg1, arg2) {
|
|
43
|
+
if (arg2 !== undefined) {
|
|
44
|
+
// Interface link type
|
|
45
|
+
return `interface-link-type-${arg1}-${arg2}`;
|
|
46
|
+
}
|
|
47
|
+
// Single argument - check context to determine type
|
|
48
|
+
// This will be called from specific methods
|
|
49
|
+
return arg1;
|
|
50
|
+
}
|
|
51
|
+
static getForInterface(interfaceTypeApiName) {
|
|
52
|
+
return `interface-${interfaceTypeApiName}`;
|
|
53
|
+
}
|
|
54
|
+
static getForObjectType(objectTypeApiName) {
|
|
55
|
+
return `object-type-${objectTypeApiName}`;
|
|
56
|
+
}
|
|
57
|
+
static getForStream(streamName) {
|
|
58
|
+
return `stream-datasource-${streamName}`;
|
|
59
|
+
}
|
|
60
|
+
static getForStreamColumn(streamName, columnName) {
|
|
61
|
+
return `stream-datasource-column-${streamName}-${columnName}`;
|
|
62
|
+
}
|
|
63
|
+
static getForTimeSeriesSync(timeSeriesSyncName) {
|
|
64
|
+
return `time-series-sync-${timeSeriesSyncName}`;
|
|
65
|
+
}
|
|
66
|
+
static getForDataSet(dataSetName) {
|
|
67
|
+
return `dataset-datasource-${dataSetName}`;
|
|
68
|
+
}
|
|
69
|
+
static getForDataSetColumn(dataSetName, columnName) {
|
|
70
|
+
return `dataset-datasource-column-${dataSetName}-${columnName}`;
|
|
71
|
+
}
|
|
72
|
+
static getForMediaSetView(mediaSetViewName) {
|
|
73
|
+
return `media-set-view-${mediaSetViewName}`;
|
|
74
|
+
}
|
|
75
|
+
static getForRestrictedView(restrictedViewName) {
|
|
76
|
+
return `restricted-view-datasource-${restrictedViewName}`;
|
|
77
|
+
}
|
|
78
|
+
static getForRestrictedViewColumn(restrictedViewName, columnName) {
|
|
79
|
+
return `restricted-view-datasource-column-${restrictedViewName}-${columnName}`;
|
|
80
|
+
}
|
|
81
|
+
static getForLinkType(linkTypeId) {
|
|
82
|
+
return `link-type-${linkTypeId}`;
|
|
83
|
+
}
|
|
84
|
+
static getForGeotimeSeriesIntegration(name) {
|
|
85
|
+
return `geotime-series-integration-${name}`;
|
|
86
|
+
}
|
|
87
|
+
static getForActionType(actionTypeApiName) {
|
|
88
|
+
return `action-type-${actionTypeApiName}`;
|
|
89
|
+
}
|
|
90
|
+
static getForParameter(actionName, parameterId) {
|
|
91
|
+
return `action-${actionName}-parameter-${parameterId}`;
|
|
92
|
+
}
|
|
93
|
+
static getForGroup(groupId) {
|
|
94
|
+
return `group-${groupId}`;
|
|
95
|
+
}
|
|
96
|
+
static getForProducedValueType(valueTypeApiName, version) {
|
|
97
|
+
return `produced-value-type-${valueTypeApiName}-${version}`;
|
|
98
|
+
}
|
|
99
|
+
static getForConsumedValueType(valueTypeApiName, version) {
|
|
100
|
+
return `consumed-value-type-${valueTypeApiName}-${version}`;
|
|
101
|
+
}
|
|
102
|
+
static getForSpt(fieldApiName) {
|
|
103
|
+
return `shared-property-type-${fieldApiName}`;
|
|
104
|
+
}
|
|
105
|
+
static getForObjectProperty(objectTypeApiName, fieldApiName) {
|
|
106
|
+
return `${objectTypeApiName}-property-type-${fieldApiName}`;
|
|
107
|
+
}
|
|
108
|
+
static getForInterfaceProperty(interfaceTypeApiName, interfacePropertyTypeApiName) {
|
|
109
|
+
return `interface-property-type-${interfaceTypeApiName}-${interfacePropertyTypeApiName}`;
|
|
110
|
+
}
|
|
111
|
+
static getForInterfaceLinkType(interfaceApiName, interfaceLinkTypeApiName) {
|
|
112
|
+
return `interface-link-type-${interfaceApiName}-${interfaceLinkTypeApiName}`;
|
|
113
|
+
}
|
|
114
|
+
static getForMarking(markingId, supportedMarkingsType) {
|
|
115
|
+
return `marking-${markingId}-${supportedMarkingsType}`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class BiMapImpl {
|
|
119
|
+
static create() {
|
|
120
|
+
return new BiMapImpl(new Map(), new Map());
|
|
121
|
+
}
|
|
122
|
+
constructor(forward, backward) {
|
|
123
|
+
this.forward = forward;
|
|
124
|
+
this.backward = backward;
|
|
125
|
+
}
|
|
126
|
+
asMap() {
|
|
127
|
+
return this.forward;
|
|
128
|
+
}
|
|
129
|
+
get(key) {
|
|
130
|
+
return this.forward.get(key);
|
|
131
|
+
}
|
|
132
|
+
put(key, value) {
|
|
133
|
+
this.forward.set(key, value);
|
|
134
|
+
this.backward.set(value, key);
|
|
135
|
+
}
|
|
136
|
+
inverse() {
|
|
137
|
+
return new BiMapImpl(this.backward, this.forward);
|
|
138
|
+
}
|
|
139
|
+
entries() {
|
|
140
|
+
return this.forward.entries();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export class OntologyRidGeneratorImpl {
|
|
144
|
+
constructor(randomnessUuid) {
|
|
145
|
+
this.randomnessUuid = randomnessUuid;
|
|
146
|
+
this.geotimeSeriesIntegrationRids = BiMapImpl.create();
|
|
147
|
+
this.interfaceLinkTypeRids = BiMapImpl.create();
|
|
148
|
+
this.interfacePropertyTypeRids = BiMapImpl.create();
|
|
149
|
+
this.interfaceRids = BiMapImpl.create();
|
|
150
|
+
this.actionTypeRids = BiMapImpl.create();
|
|
151
|
+
this.parameterRids = new Map();
|
|
152
|
+
this.sharedPropertyTypeRids = BiMapImpl.create();
|
|
153
|
+
this.consumedValueTypeReferences = BiMapImpl.create();
|
|
154
|
+
this.producedValueTypeReferences = new Map();
|
|
155
|
+
this.objectTypeRids = BiMapImpl.create();
|
|
156
|
+
this.datasourceLocators = BiMapImpl.create();
|
|
157
|
+
this.filesDatasourceLocators = BiMapImpl.create();
|
|
158
|
+
this.columnShapes = BiMapImpl.create();
|
|
159
|
+
this.propertyTypeRids = BiMapImpl.create();
|
|
160
|
+
this.timeSeriesSyncs = BiMapImpl.create();
|
|
161
|
+
this.linkTypeRids = BiMapImpl.create();
|
|
162
|
+
this.groupIds = BiMapImpl.create();
|
|
163
|
+
this.objectTypeIds = BiMapImpl.create();
|
|
164
|
+
}
|
|
165
|
+
hashString(input) {
|
|
166
|
+
const stringToHash = this.randomnessUuid ? `${input}-${this.randomnessUuid}` : input;
|
|
167
|
+
return createHash("sha256").update(stringToHash, "utf8").digest("hex");
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Generic RID generation for types without specific generators
|
|
171
|
+
generateRid(key) {
|
|
172
|
+
return `ri.ontology-metadata.temp.${this.hashString(key)}`;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Datasource RID matching Java's RidUtils.getDatasourceRidFromName format
|
|
176
|
+
generateDatasourceRid(datasourceName) {
|
|
177
|
+
return `ri.ontology.main.datasource.${toBlockShapeId(datasourceName, this.randomnessUuid)}`;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Validation rule RID matching Java's format
|
|
181
|
+
generateValidationRuleRid(actionTypeApiName, index) {
|
|
182
|
+
return `ri.ontology-metadata.temp.validation-rule.${this.hashString(`${actionTypeApiName}.${index}`)}`;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Section RID matching Java's format: ri.ontology-metadata.temp.section.{hash(sectionId)}
|
|
186
|
+
generateSectionRid(sectionId) {
|
|
187
|
+
return `ri.ontology-metadata.temp.section.${this.hashString(sectionId)}`;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Property security group RID matching Java's format
|
|
191
|
+
generatePropertySecurityGroupRid(groupName) {
|
|
192
|
+
return `ri.ontology-metadata.temp.property-security-group.${this.hashString(groupName)}`;
|
|
193
|
+
}
|
|
194
|
+
getActionTypeRids() {
|
|
195
|
+
return this.actionTypeRids;
|
|
196
|
+
}
|
|
197
|
+
getParameterRidAndIds() {
|
|
198
|
+
return this.parameterRids;
|
|
199
|
+
}
|
|
200
|
+
getInterfaceRids() {
|
|
201
|
+
return this.interfaceRids;
|
|
202
|
+
}
|
|
203
|
+
getSharedPropertyTypeRids() {
|
|
204
|
+
return this.sharedPropertyTypeRids;
|
|
205
|
+
}
|
|
206
|
+
getInterfaceLinkTypeRids() {
|
|
207
|
+
return this.interfaceLinkTypeRids;
|
|
208
|
+
}
|
|
209
|
+
getInterfacePropertyTypeRids() {
|
|
210
|
+
return this.interfacePropertyTypeRids;
|
|
211
|
+
}
|
|
212
|
+
getPropertyTypeRids() {
|
|
213
|
+
return this.propertyTypeRids;
|
|
214
|
+
}
|
|
215
|
+
getDatasourceLocators() {
|
|
216
|
+
return this.datasourceLocators;
|
|
217
|
+
}
|
|
218
|
+
getFilesDatasourceLocators() {
|
|
219
|
+
return this.filesDatasourceLocators;
|
|
220
|
+
}
|
|
221
|
+
getGeotimeSeriesIntegrationRids() {
|
|
222
|
+
return this.geotimeSeriesIntegrationRids;
|
|
223
|
+
}
|
|
224
|
+
getTimeSeriesSyncs() {
|
|
225
|
+
return this.timeSeriesSyncs;
|
|
226
|
+
}
|
|
227
|
+
getColumnShapes() {
|
|
228
|
+
return this.columnShapes;
|
|
229
|
+
}
|
|
230
|
+
getObjectTypeRids() {
|
|
231
|
+
return this.objectTypeRids;
|
|
232
|
+
}
|
|
233
|
+
getLinkTypeRids() {
|
|
234
|
+
return this.linkTypeRids;
|
|
235
|
+
}
|
|
236
|
+
getGroupIds() {
|
|
237
|
+
return this.groupIds;
|
|
238
|
+
}
|
|
239
|
+
getConsumedValueTypeReferences() {
|
|
240
|
+
return this.consumedValueTypeReferences;
|
|
241
|
+
}
|
|
242
|
+
getProducedValueTypeReferences() {
|
|
243
|
+
return this.producedValueTypeReferences;
|
|
244
|
+
}
|
|
245
|
+
valueTypeMappingForReference(valueTypeReference) {
|
|
246
|
+
const input = this.consumedValueTypeReferences.inverse().get(valueTypeReference);
|
|
247
|
+
const output = this.producedValueTypeReferences.get(valueTypeReference);
|
|
248
|
+
if (!input || !output) {
|
|
249
|
+
throw new Error(`Missing readable ID for value type reference`);
|
|
250
|
+
}
|
|
251
|
+
return {
|
|
252
|
+
input,
|
|
253
|
+
output
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Interface types
|
|
258
|
+
generateRidForInterface(apiName) {
|
|
259
|
+
const rid = `ri.ontology-metadata.temp.interface-type.${this.hashString(apiName)}`;
|
|
260
|
+
this.interfaceRids.put(ReadableIdGenerator.getForInterface(apiName), rid);
|
|
261
|
+
return rid;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// Interface Link Types
|
|
265
|
+
generateRidForInterfaceLinkType(apiName, interfaceTypeApiName) {
|
|
266
|
+
const readableId = ReadableIdGenerator.getForInterfaceLinkType(interfaceTypeApiName, apiName);
|
|
267
|
+
const rid = `ri.ontology-metadata.temp.interface-link-type.${this.hashString(readableId)}`;
|
|
268
|
+
this.interfaceLinkTypeRids.put(readableId, rid);
|
|
269
|
+
return rid;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// Object Types
|
|
273
|
+
generateRidForObjectType(apiName) {
|
|
274
|
+
const rid = `ri.ontology-metadata.temp.object-type.${this.hashString(apiName)}`;
|
|
275
|
+
this.objectTypeRids.put(ReadableIdGenerator.getForObjectType(apiName), rid);
|
|
276
|
+
return rid;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Value Types
|
|
280
|
+
generateRidForValueType(apiName, version) {
|
|
281
|
+
const rid = `ri.ontology-metadata.temp.value-type.${this.hashString(apiName)}`;
|
|
282
|
+
// Generate UUID from version string (matching Java's UUID.nameUUIDFromBytes)
|
|
283
|
+
const versionHash = createHash("md5").update(version, "utf8").digest("hex");
|
|
284
|
+
const versionAsUuid = `${versionHash.slice(0, 8)}-${versionHash.slice(8, 12)}-${versionHash.slice(12, 16)}-${versionHash.slice(16, 20)}-${versionHash.slice(20, 32)}`;
|
|
285
|
+
const valueTypeReference = {
|
|
286
|
+
rid,
|
|
287
|
+
versionId: versionAsUuid
|
|
288
|
+
};
|
|
289
|
+
this.consumedValueTypeReferences.put(ReadableIdGenerator.getForConsumedValueType(apiName, version), valueTypeReference);
|
|
290
|
+
this.producedValueTypeReferences.set(valueTypeReference, ReadableIdGenerator.getForProducedValueType(apiName, version));
|
|
291
|
+
return valueTypeReference;
|
|
292
|
+
}
|
|
293
|
+
generateRidForTimeSeriesSync(name) {
|
|
294
|
+
const rid = `ri.ontology-metadata.temp.time-series-sync.${this.hashString(name)}`;
|
|
295
|
+
this.timeSeriesSyncs.put(ReadableIdGenerator.getForTimeSeriesSync(name), rid);
|
|
296
|
+
return rid;
|
|
297
|
+
}
|
|
298
|
+
generateRidForLinkType(linkTypeId) {
|
|
299
|
+
const rid = `ri.ontology-metadata.temp.link-type.${this.hashString(linkTypeId)}`;
|
|
300
|
+
this.linkTypeRids.put(ReadableIdGenerator.getForLinkType(linkTypeId), rid);
|
|
301
|
+
return rid;
|
|
302
|
+
}
|
|
303
|
+
generateRidForGeotimeSeriesIntegration(name) {
|
|
304
|
+
const rid = `ri.ontology-metadata.temp.geotime-series-integration.${this.hashString(name)}`;
|
|
305
|
+
this.geotimeSeriesIntegrationRids.put(ReadableIdGenerator.getForGeotimeSeriesIntegration(name), rid);
|
|
306
|
+
return rid;
|
|
307
|
+
}
|
|
308
|
+
generateRidForActionType(apiName) {
|
|
309
|
+
const rid = `ri.ontology-metadata.temp.action-type.${this.hashString(apiName)}`;
|
|
310
|
+
this.actionTypeRids.put(ReadableIdGenerator.getForActionType(apiName), rid);
|
|
311
|
+
return rid;
|
|
312
|
+
}
|
|
313
|
+
generateRidForParameter(actionTypeApiName, parameterId) {
|
|
314
|
+
const rid = `ri.ontology-metadata.temp.parameter.${this.hashString(actionTypeApiName + "." + parameterId)}`;
|
|
315
|
+
let innerMap = this.parameterRids.get(actionTypeApiName);
|
|
316
|
+
if (!innerMap) {
|
|
317
|
+
innerMap = BiMapImpl.create();
|
|
318
|
+
this.parameterRids.set(actionTypeApiName, innerMap);
|
|
319
|
+
}
|
|
320
|
+
innerMap.put(ReadableIdGenerator.getForParameter(actionTypeApiName, parameterId), {
|
|
321
|
+
rid,
|
|
322
|
+
id: parameterId
|
|
323
|
+
});
|
|
324
|
+
return rid;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Shared Property Types
|
|
328
|
+
generateSptRid(apiName) {
|
|
329
|
+
const rid = `ri.ontology-metadata.temp.shared-property-type.${this.hashString(apiName)}`;
|
|
330
|
+
this.sharedPropertyTypeRids.put(ReadableIdGenerator.getForSpt(apiName), rid);
|
|
331
|
+
return rid;
|
|
332
|
+
}
|
|
333
|
+
generatePropertyRid(apiName, objectTypeApiName) {
|
|
334
|
+
const rid = `ri.ontology-metadata.temp.property-type.${this.hashString(objectTypeApiName + "." + apiName)}`;
|
|
335
|
+
this.propertyTypeRids.put(ReadableIdGenerator.getForObjectProperty(objectTypeApiName, apiName), rid);
|
|
336
|
+
return rid;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Interface Property Types
|
|
340
|
+
generateInterfacePropertyTypeRid(apiName, interfaceTypeApiName) {
|
|
341
|
+
const rid = `ri.ontology-metadata.temp.interface-property-type.${this.hashString(interfaceTypeApiName + "." + apiName)}`;
|
|
342
|
+
this.interfacePropertyTypeRids.put(ReadableIdGenerator.getForInterfaceProperty(interfaceTypeApiName, apiName), rid);
|
|
343
|
+
return rid;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Struct Field RIDs
|
|
347
|
+
generateStructFieldRid(propertyApiName, apiName) {
|
|
348
|
+
const rid = `ri.ontology-metadata.temp.struct-field.${this.hashString(propertyApiName + "." + apiName)}`;
|
|
349
|
+
return rid;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// Datasource locator methods
|
|
353
|
+
generateLocator(dataSetName, columnNames) {
|
|
354
|
+
const datasetRid = `ri.ontology-metadata.temp.dataset.${this.hashString(dataSetName)}`;
|
|
355
|
+
const branchId = "main";
|
|
356
|
+
|
|
357
|
+
// Register column shapes
|
|
358
|
+
columnNames.forEach(name => {
|
|
359
|
+
this.columnShapes.put(ReadableIdGenerator.getForDataSetColumn(dataSetName, name), {
|
|
360
|
+
datasource: {
|
|
361
|
+
type: "dataset",
|
|
362
|
+
dataset: {
|
|
363
|
+
rid: datasetRid,
|
|
364
|
+
branch: branchId
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
name: name
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
// Register datasource locator
|
|
372
|
+
this.datasourceLocators.put(ReadableIdGenerator.getForDataSet(dataSetName), {
|
|
373
|
+
type: "dataset",
|
|
374
|
+
dataset: {
|
|
375
|
+
rid: datasetRid,
|
|
376
|
+
branch: branchId
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
return {
|
|
380
|
+
rid: datasetRid,
|
|
381
|
+
branchId
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
generateStreamLocator(streamName, columnNames) {
|
|
385
|
+
const streamLocatorRid = `ri.ontology-metadata.temp.stream-datasource.${this.hashString(streamName)}`;
|
|
386
|
+
const branchId = "main";
|
|
387
|
+
const marketplaceLocator = {
|
|
388
|
+
type: "stream",
|
|
389
|
+
stream: {
|
|
390
|
+
rid: streamLocatorRid,
|
|
391
|
+
branch: branchId
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
// Register column shapes
|
|
396
|
+
columnNames.forEach(name => {
|
|
397
|
+
this.columnShapes.put(ReadableIdGenerator.getForStreamColumn(streamName, name), {
|
|
398
|
+
datasource: marketplaceLocator,
|
|
399
|
+
name: name
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
// Register datasource locator
|
|
404
|
+
this.datasourceLocators.put(ReadableIdGenerator.getForStream(streamName), marketplaceLocator);
|
|
405
|
+
return {
|
|
406
|
+
streamLocatorRid,
|
|
407
|
+
branchId
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
generateRestrictedViewLocator(restrictedViewName, columnNames) {
|
|
411
|
+
const restrictedViewRid = `ri.ontology-metadata.temp.restricted-view.${this.hashString(restrictedViewName)}`;
|
|
412
|
+
|
|
413
|
+
// Register column shapes
|
|
414
|
+
columnNames.forEach(name => {
|
|
415
|
+
this.columnShapes.put(ReadableIdGenerator.getForRestrictedViewColumn(restrictedViewName, name), {
|
|
416
|
+
datasource: {
|
|
417
|
+
type: "restrictedView",
|
|
418
|
+
restrictedView: {
|
|
419
|
+
rid: restrictedViewRid
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
name: name
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
// Register datasource locator
|
|
427
|
+
this.datasourceLocators.put(ReadableIdGenerator.getForRestrictedView(restrictedViewName), {
|
|
428
|
+
type: "restrictedView",
|
|
429
|
+
restrictedView: {
|
|
430
|
+
rid: restrictedViewRid
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
return {
|
|
434
|
+
rid: restrictedViewRid
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
generateMediaSetViewLocator(mediaSetViewName) {
|
|
438
|
+
const mediaSetRid = `ri.ontology-metadata.temp.media-set.${this.hashString(mediaSetViewName)}`;
|
|
439
|
+
const mediaSetBranchRid = `ri.ontology-metadata.temp.media-set-branch.${this.hashString(mediaSetViewName)}`;
|
|
440
|
+
const mediaSetViewRid = `ri.ontology-metadata.temp.media-set-view.${this.hashString(mediaSetViewName)}`;
|
|
441
|
+
|
|
442
|
+
// Register files datasource locator
|
|
443
|
+
this.filesDatasourceLocators.put(ReadableIdGenerator.getForMediaSetView(mediaSetViewName), {
|
|
444
|
+
type: "mediaSet",
|
|
445
|
+
mediaSet: {
|
|
446
|
+
rid: mediaSetRid,
|
|
447
|
+
branch: "master" // matches OntologyMetadataConstants.ONTOLOGY_DATASET_BRANCH_ID
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
return {
|
|
451
|
+
mediaSetRid,
|
|
452
|
+
mediaSetViewRid,
|
|
453
|
+
mediaSetBranchRid
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
toBlockInternalId(readableId) {
|
|
457
|
+
const id = toBlockShapeId(readableId, this.randomnessUuid);
|
|
458
|
+
return id;
|
|
459
|
+
}
|
|
460
|
+
getObjectTypeIds() {
|
|
461
|
+
return this.objectTypeIds;
|
|
462
|
+
}
|
|
463
|
+
generateObjectTypeId(objectTypeApiName) {
|
|
464
|
+
const readableId = ReadableIdGenerator.getForObjectType(objectTypeApiName);
|
|
465
|
+
const maybeLastId = this.objectTypeIds.get(readableId);
|
|
466
|
+
if (maybeLastId) {
|
|
467
|
+
return maybeLastId;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// Match Java: apiName.replace(".", "-").toLowerCase()
|
|
471
|
+
const objectTypeId = objectTypeApiName.replace(/\./g, "-").toLowerCase();
|
|
472
|
+
this.objectTypeIds.put(readableId, objectTypeId);
|
|
473
|
+
return objectTypeId;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
//# sourceMappingURL=generateRid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateRid.js","names":["createHash","toBlockShapeId","ReadableIdGenerator","get","arg1","arg2","undefined","getForInterface","interfaceTypeApiName","getForObjectType","objectTypeApiName","getForStream","streamName","getForStreamColumn","columnName","getForTimeSeriesSync","timeSeriesSyncName","getForDataSet","dataSetName","getForDataSetColumn","getForMediaSetView","mediaSetViewName","getForRestrictedView","restrictedViewName","getForRestrictedViewColumn","getForLinkType","linkTypeId","getForGeotimeSeriesIntegration","name","getForActionType","actionTypeApiName","getForParameter","actionName","parameterId","getForGroup","groupId","getForProducedValueType","valueTypeApiName","version","getForConsumedValueType","getForSpt","fieldApiName","getForObjectProperty","getForInterfaceProperty","interfacePropertyTypeApiName","getForInterfaceLinkType","interfaceApiName","interfaceLinkTypeApiName","getForMarking","markingId","supportedMarkingsType","BiMapImpl","create","Map","constructor","forward","backward","asMap","key","put","value","set","inverse","entries","OntologyRidGeneratorImpl","randomnessUuid","geotimeSeriesIntegrationRids","interfaceLinkTypeRids","interfacePropertyTypeRids","interfaceRids","actionTypeRids","parameterRids","sharedPropertyTypeRids","consumedValueTypeReferences","producedValueTypeReferences","objectTypeRids","datasourceLocators","filesDatasourceLocators","columnShapes","propertyTypeRids","timeSeriesSyncs","linkTypeRids","groupIds","objectTypeIds","hashString","input","stringToHash","update","digest","generateRid","generateDatasourceRid","datasourceName","generateValidationRuleRid","index","generateSectionRid","sectionId","generatePropertySecurityGroupRid","groupName","getActionTypeRids","getParameterRidAndIds","getInterfaceRids","getSharedPropertyTypeRids","getInterfaceLinkTypeRids","getInterfacePropertyTypeRids","getPropertyTypeRids","getDatasourceLocators","getFilesDatasourceLocators","getGeotimeSeriesIntegrationRids","getTimeSeriesSyncs","getColumnShapes","getObjectTypeRids","getLinkTypeRids","getGroupIds","getConsumedValueTypeReferences","getProducedValueTypeReferences","valueTypeMappingForReference","valueTypeReference","output","Error","generateRidForInterface","apiName","rid","generateRidForInterfaceLinkType","readableId","generateRidForObjectType","generateRidForValueType","versionHash","versionAsUuid","slice","versionId","generateRidForTimeSeriesSync","generateRidForLinkType","generateRidForGeotimeSeriesIntegration","generateRidForActionType","generateRidForParameter","innerMap","id","generateSptRid","generatePropertyRid","generateInterfacePropertyTypeRid","generateStructFieldRid","propertyApiName","generateLocator","columnNames","datasetRid","branchId","forEach","datasource","type","dataset","branch","generateStreamLocator","streamLocatorRid","marketplaceLocator","stream","generateRestrictedViewLocator","restrictedViewRid","restrictedView","generateMediaSetViewLocator","mediaSetRid","mediaSetBranchRid","mediaSetViewRid","mediaSet","toBlockInternalId","getObjectTypeIds","generateObjectTypeId","maybeLastId","objectTypeId","replace","toLowerCase"],"sources":["generateRid.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ValueTypeReference } from \"@osdk/client.unstable\";\nimport type {\n ActionTypeRid,\n DatasourceLocator,\n FilesDatasourceLocator,\n GeotimeSeriesIntegrationRid,\n GroupId,\n InputShape,\n InputShapeMetadata,\n InterfaceLinkTypeRid,\n InterfacePropertyTypeRid,\n InterfaceTypeRid,\n LinkTypeRid,\n ObjectTypeRid,\n OutputShape,\n PropertyTypeRid,\n ResolvedDatasourceColumnShape,\n SharedPropertyTypeRid,\n StructFieldRid,\n TimeSeriesSyncRid,\n} from \"@osdk/client.unstable/api\";\n// ParameterRid is defined in ontology-metadata but may not be re-exported through the main API\ntype ParameterRid = string;\nimport { createHash } from \"crypto\";\nimport { toBlockShapeId } from \"../cli/marketplaceSerialization/CodeBlockSpec.js\";\n\n// Given a unique key generates a rid deterministically (from a lock file eventually)\nexport type ReadableId = string & { __brand: \"ReadableId\" };\n\n/**\n * Placeholder interface for OntologyRidGenerator\n * This should be filled in with actual implementation\n */\n// Types for datasource locators\nexport interface DatasetDatasourceLocator {\n rid: string;\n branchId: string;\n}\n\nexport interface StreamLocator {\n streamLocatorRid: string;\n branchId: string;\n}\n\nexport interface RestrictedViewLocator {\n rid: string;\n}\n\nexport interface MediaSetViewLocator {\n mediaSetRid: string;\n mediaSetViewRid: string;\n mediaSetBranchRid: string;\n}\n\nexport interface OntologyRidGenerator {\n getActionTypeRids(): BiMap<ReadableId, ActionTypeRid>;\n getParameterRidAndIds(): Map<string, BiMap<ReadableId, ParameterRidAndId>>;\n getInterfaceRids(): BiMap<ReadableId, InterfaceTypeRid>;\n getSharedPropertyTypeRids(): BiMap<ReadableId, SharedPropertyTypeRid>;\n getInterfaceLinkTypeRids(): BiMap<ReadableId, InterfaceLinkTypeRid>;\n getInterfacePropertyTypeRids(): BiMap<ReadableId, InterfacePropertyTypeRid>;\n getPropertyTypeRids(): BiMap<ReadableId, PropertyTypeRid>;\n getDatasourceLocators(): BiMap<ReadableId, DatasourceLocator>;\n getFilesDatasourceLocators(): BiMap<ReadableId, FilesDatasourceLocator>;\n getGeotimeSeriesIntegrationRids(): BiMap<\n ReadableId,\n GeotimeSeriesIntegrationRid\n >;\n getTimeSeriesSyncs(): BiMap<ReadableId, TimeSeriesSyncRid>;\n getColumnShapes(): BiMap<ReadableId, ResolvedDatasourceColumnShape>;\n getObjectTypeRids(): BiMap<ReadableId, ObjectTypeRid>;\n getLinkTypeRids(): BiMap<ReadableId, LinkTypeRid>;\n getGroupIds(): BiMap<ReadableId, GroupId>;\n getConsumedValueTypeReferences(): BiMap<ReadableId, ValueTypeReference>;\n getProducedValueTypeReferences(): Map<ValueTypeReference, ReadableId>;\n valueTypeMappingForReference(valueTypeReference: ValueTypeReference): {\n input: ReadableId;\n output: ReadableId;\n };\n hashString(input: string): string;\n // Generic RID generation for types without specific generators (datasources, sections, etc.)\n generateRid(key: string): string;\n generateDatasourceRid(datasourceName: string): string;\n generateValidationRuleRid(actionTypeApiName: string, index: number): string;\n generateSectionRid(sectionId: string): string;\n generatePropertySecurityGroupRid(groupName: string): string;\n generateRidForInterface(apiName: string): InterfaceTypeRid;\n generateRidForInterfaceLinkType(\n apiName: string,\n interfaceTypeApiName: string,\n ): InterfaceLinkTypeRid;\n generateRidForObjectType(apiName: string): ObjectTypeRid;\n generateRidForValueType(apiName: string, version: string): ValueTypeReference;\n generateRidForTimeSeriesSync(name: string): TimeSeriesSyncRid;\n generateRidForLinkType(linkTypeId: string): LinkTypeRid;\n generateRidForGeotimeSeriesIntegration(\n name: string,\n ): GeotimeSeriesIntegrationRid;\n generateRidForActionType(apiName: string): ActionTypeRid;\n generateRidForParameter(\n actionTypeApiName: string,\n parameterId: string,\n ): ParameterRid;\n generateSptRid(apiName: string): SharedPropertyTypeRid;\n generatePropertyRid(\n apiName: string,\n objectTypeApiName: string,\n ): PropertyTypeRid;\n generateInterfacePropertyTypeRid(\n apiName: string,\n interfaceTypeApiName: string,\n ): InterfacePropertyTypeRid;\n generateStructFieldRid(\n propertyApiName: string,\n apiName: string,\n ): StructFieldRid;\n // Datasource locator methods\n generateLocator(\n dataSetName: string,\n columnNames: Set<string>,\n ): DatasetDatasourceLocator;\n generateStreamLocator(\n streamName: string,\n columnNames: Set<string>,\n ): StreamLocator;\n generateRestrictedViewLocator(\n restrictedViewName: string,\n columnNames: Set<string>,\n ): RestrictedViewLocator;\n generateMediaSetViewLocator(mediaSetViewName: string): MediaSetViewLocator;\n toBlockInternalId(readableId: ReadableId): string;\n generateObjectTypeId(objectTypeApiName: string): string;\n getObjectTypeIds(): BiMap<ReadableId, string>;\n}\n\nexport interface ParameterRidAndId {\n rid: ParameterRid;\n id: string;\n}\n\n/**\n * Simple BiMap interface (placeholder)\n */\nexport interface BiMap<K, V> {\n get(key: K): V | undefined;\n put(key: K, value: V): void;\n asMap(): Map<K, V>;\n inverse(): BiMap<V, K>;\n entries(): IterableIterator<[K, V]>;\n}\n\n/**\n * BlockShapes container for input and output shapes\n */\nexport interface BlockShapes {\n inputShapes: Map<ReadableId, InputShape>;\n outputShapes: Map<ReadableId, OutputShape>;\n inputShapeMetadata: Map<ReadableId, InputShapeMetadata>;\n}\n\n/**\n * ReadableId generator functions matching Java's ReadableIdGenerator\n */\nexport class ReadableIdGenerator {\n static get(interfaceTypeApiName: string): ReadableId;\n static get(\n interfaceApiName: string,\n interfaceLinkTypeApiName: string,\n ): ReadableId;\n static get(arg1: string, arg2?: string): ReadableId {\n if (arg2 !== undefined) {\n // Interface link type\n return `interface-link-type-${arg1}-${arg2}` as ReadableId;\n }\n // Single argument - check context to determine type\n // This will be called from specific methods\n return arg1 as ReadableId;\n }\n\n static getForInterface(interfaceTypeApiName: string): ReadableId {\n return `interface-${interfaceTypeApiName}` as ReadableId;\n }\n\n static getForObjectType(objectTypeApiName: string): ReadableId {\n return `object-type-${objectTypeApiName}` as ReadableId;\n }\n\n static getForStream(streamName: string): ReadableId {\n return `stream-datasource-${streamName}` as ReadableId;\n }\n\n static getForStreamColumn(\n streamName: string,\n columnName: string,\n ): ReadableId {\n return `stream-datasource-column-${streamName}-${columnName}` as ReadableId;\n }\n\n static getForTimeSeriesSync(timeSeriesSyncName: string): ReadableId {\n return `time-series-sync-${timeSeriesSyncName}` as ReadableId;\n }\n\n static getForDataSet(dataSetName: string): ReadableId {\n return `dataset-datasource-${dataSetName}` as ReadableId;\n }\n\n static getForDataSetColumn(\n dataSetName: string,\n columnName: string,\n ): ReadableId {\n return `dataset-datasource-column-${dataSetName}-${columnName}` as ReadableId;\n }\n\n static getForMediaSetView(mediaSetViewName: string): ReadableId {\n return `media-set-view-${mediaSetViewName}` as ReadableId;\n }\n\n static getForRestrictedView(restrictedViewName: string): ReadableId {\n return `restricted-view-datasource-${restrictedViewName}` as ReadableId;\n }\n\n static getForRestrictedViewColumn(\n restrictedViewName: string,\n columnName: string,\n ): ReadableId {\n return `restricted-view-datasource-column-${restrictedViewName}-${columnName}` as ReadableId;\n }\n\n static getForLinkType(linkTypeId: string): ReadableId {\n return `link-type-${linkTypeId}` as ReadableId;\n }\n\n static getForGeotimeSeriesIntegration(name: string): ReadableId {\n return `geotime-series-integration-${name}` as ReadableId;\n }\n\n static getForActionType(actionTypeApiName: string): ReadableId {\n return `action-type-${actionTypeApiName}` as ReadableId;\n }\n\n static getForParameter(actionName: string, parameterId: string): ReadableId {\n return `action-${actionName}-parameter-${parameterId}` as ReadableId;\n }\n\n static getForGroup(groupId: string): ReadableId {\n return `group-${groupId}` as ReadableId;\n }\n\n static getForProducedValueType(\n valueTypeApiName: string,\n version: string,\n ): ReadableId {\n return `produced-value-type-${valueTypeApiName}-${version}` as ReadableId;\n }\n\n static getForConsumedValueType(\n valueTypeApiName: string,\n version: string,\n ): ReadableId {\n return `consumed-value-type-${valueTypeApiName}-${version}` as ReadableId;\n }\n\n static getForSpt(fieldApiName: string): ReadableId {\n return `shared-property-type-${fieldApiName}` as ReadableId;\n }\n\n static getForObjectProperty(\n objectTypeApiName: string,\n fieldApiName: string,\n ): ReadableId {\n return `${objectTypeApiName}-property-type-${fieldApiName}` as ReadableId;\n }\n\n static getForInterfaceProperty(\n interfaceTypeApiName: string,\n interfacePropertyTypeApiName: string,\n ): ReadableId {\n return `interface-property-type-${interfaceTypeApiName}-${interfacePropertyTypeApiName}` as ReadableId;\n }\n\n static getForInterfaceLinkType(\n interfaceApiName: string,\n interfaceLinkTypeApiName: string,\n ): ReadableId {\n return `interface-link-type-${interfaceApiName}-${interfaceLinkTypeApiName}` as ReadableId;\n }\n\n static getForMarking(\n markingId: string,\n supportedMarkingsType: \"CBAC\" | \"MANDATORY\",\n ): ReadableId {\n return `marking-${markingId}-${supportedMarkingsType}` as ReadableId;\n }\n}\n\nexport class BiMapImpl<K, V> implements BiMap<K, V> {\n forward: Map<K, V>;\n backward: Map<V, K>;\n public static create<K, V>(): BiMap<K, V> {\n return new BiMapImpl(new Map<K, V>(), new Map<V, K>());\n }\n\n private constructor(forward: Map<K, V>, backward: Map<V, K>) {\n this.forward = forward;\n this.backward = backward;\n }\n asMap(): Map<K, V> {\n return this.forward;\n }\n\n get(key: K): V | undefined {\n return this.forward.get(key);\n }\n\n put(key: K, value: V): void {\n this.forward.set(key, value);\n this.backward.set(value, key);\n }\n\n inverse(): BiMap<V, K> {\n return new BiMapImpl(this.backward, this.forward);\n }\n entries(): IterableIterator<[K, V]> {\n return this.forward.entries();\n }\n}\n\nexport class OntologyRidGeneratorImpl implements OntologyRidGenerator {\n private readonly actionTypeRids: BiMap<ReadableId, ActionTypeRid>;\n private readonly parameterRids: Map<\n string,\n BiMap<ReadableId, ParameterRidAndId>\n >;\n private readonly interfaceRids: BiMap<ReadableId, InterfaceTypeRid>;\n private readonly sharedPropertyTypeRids: BiMap<\n ReadableId,\n SharedPropertyTypeRid\n >;\n private readonly interfaceLinkTypeRids: BiMap<\n ReadableId,\n InterfaceLinkTypeRid\n >;\n private readonly interfacePropertyTypeRids: BiMap<\n ReadableId,\n InterfacePropertyTypeRid\n >;\n private readonly geotimeSeriesIntegrationRids: BiMap<\n ReadableId,\n GeotimeSeriesIntegrationRid\n >;\n private readonly objectTypeRids: BiMap<ReadableId, ObjectTypeRid>;\n private readonly propertyTypeRids: BiMap<ReadableId, PropertyTypeRid>;\n private readonly consumedValueTypeReferences: BiMap<\n ReadableId,\n ValueTypeReference\n >;\n private readonly producedValueTypeReferences: Map<\n ValueTypeReference,\n ReadableId\n >;\n private readonly datasourceLocators: BiMap<ReadableId, DatasourceLocator>;\n private readonly filesDatasourceLocators: BiMap<\n ReadableId,\n FilesDatasourceLocator\n >;\n private readonly timeSeriesSyncs: BiMap<ReadableId, TimeSeriesSyncRid>;\n private readonly columnShapes: BiMap<\n ReadableId,\n ResolvedDatasourceColumnShape\n >;\n private readonly linkTypeRids: BiMap<ReadableId, LinkTypeRid>;\n private readonly groupIds: BiMap<ReadableId, GroupId>;\n private readonly objectTypeIds: BiMap<ReadableId, string>;\n private readonly randomnessUuid?: string;\n\n constructor(randomnessUuid?: string) {\n this.randomnessUuid = randomnessUuid;\n this.geotimeSeriesIntegrationRids = BiMapImpl.create();\n this.interfaceLinkTypeRids = BiMapImpl.create();\n this.interfacePropertyTypeRids = BiMapImpl.create();\n this.interfaceRids = BiMapImpl.create();\n this.actionTypeRids = BiMapImpl.create();\n this.parameterRids = new Map();\n this.sharedPropertyTypeRids = BiMapImpl.create();\n this.consumedValueTypeReferences = BiMapImpl.create();\n this.producedValueTypeReferences = new Map();\n this.objectTypeRids = BiMapImpl.create();\n this.datasourceLocators = BiMapImpl.create();\n this.filesDatasourceLocators = BiMapImpl.create();\n this.columnShapes = BiMapImpl.create();\n this.propertyTypeRids = BiMapImpl.create();\n this.timeSeriesSyncs = BiMapImpl.create();\n this.linkTypeRids = BiMapImpl.create();\n this.groupIds = BiMapImpl.create();\n this.objectTypeIds = BiMapImpl.create();\n }\n\n hashString(input: string): string {\n const stringToHash = this.randomnessUuid\n ? `${input}-${this.randomnessUuid}`\n : input;\n return createHash(\"sha256\").update(stringToHash, \"utf8\").digest(\"hex\");\n }\n\n // Generic RID generation for types without specific generators\n generateRid(key: string): string {\n return `ri.ontology-metadata.temp.${this.hashString(key)}`;\n }\n\n // Datasource RID matching Java's RidUtils.getDatasourceRidFromName format\n generateDatasourceRid(datasourceName: string): string {\n return `ri.ontology.main.datasource.${\n toBlockShapeId(datasourceName, this.randomnessUuid)\n }`;\n }\n\n // Validation rule RID matching Java's format\n generateValidationRuleRid(actionTypeApiName: string, index: number): string {\n return `ri.ontology-metadata.temp.validation-rule.${\n this.hashString(`${actionTypeApiName}.${index}`)\n }`;\n }\n\n // Section RID matching Java's format: ri.ontology-metadata.temp.section.{hash(sectionId)}\n generateSectionRid(sectionId: string): string {\n return `ri.ontology-metadata.temp.section.${this.hashString(sectionId)}`;\n }\n\n // Property security group RID matching Java's format\n generatePropertySecurityGroupRid(groupName: string): string {\n return `ri.ontology-metadata.temp.property-security-group.${\n this.hashString(groupName)\n }`;\n }\n\n getActionTypeRids(): BiMap<ReadableId, ActionTypeRid> {\n return this.actionTypeRids;\n }\n\n getParameterRidAndIds(): Map<string, BiMap<ReadableId, ParameterRidAndId>> {\n return this.parameterRids;\n }\n\n getInterfaceRids(): BiMap<ReadableId, InterfaceTypeRid> {\n return this.interfaceRids;\n }\n\n getSharedPropertyTypeRids(): BiMap<ReadableId, SharedPropertyTypeRid> {\n return this.sharedPropertyTypeRids;\n }\n\n getInterfaceLinkTypeRids(): BiMap<ReadableId, InterfaceLinkTypeRid> {\n return this.interfaceLinkTypeRids;\n }\n\n getInterfacePropertyTypeRids(): BiMap<ReadableId, InterfacePropertyTypeRid> {\n return this.interfacePropertyTypeRids;\n }\n\n getPropertyTypeRids(): BiMap<ReadableId, PropertyTypeRid> {\n return this.propertyTypeRids;\n }\n\n getDatasourceLocators(): BiMap<ReadableId, DatasourceLocator> {\n return this.datasourceLocators;\n }\n\n getFilesDatasourceLocators(): BiMap<ReadableId, FilesDatasourceLocator> {\n return this.filesDatasourceLocators;\n }\n\n getGeotimeSeriesIntegrationRids(): BiMap<\n ReadableId,\n GeotimeSeriesIntegrationRid\n > {\n return this.geotimeSeriesIntegrationRids;\n }\n\n getTimeSeriesSyncs(): BiMap<ReadableId, TimeSeriesSyncRid> {\n return this.timeSeriesSyncs;\n }\n\n getColumnShapes(): BiMap<ReadableId, ResolvedDatasourceColumnShape> {\n return this.columnShapes;\n }\n\n getObjectTypeRids(): BiMap<ReadableId, ObjectTypeRid> {\n return this.objectTypeRids;\n }\n\n getLinkTypeRids(): BiMap<ReadableId, LinkTypeRid> {\n return this.linkTypeRids;\n }\n\n getGroupIds(): BiMap<ReadableId, GroupId> {\n return this.groupIds;\n }\n\n getConsumedValueTypeReferences(): BiMap<ReadableId, ValueTypeReference> {\n return this.consumedValueTypeReferences;\n }\n\n getProducedValueTypeReferences(): Map<ValueTypeReference, ReadableId> {\n return this.producedValueTypeReferences;\n }\n\n valueTypeMappingForReference(valueTypeReference: ValueTypeReference): {\n input: ReadableId;\n output: ReadableId;\n } {\n const input = this.consumedValueTypeReferences.inverse().get(\n valueTypeReference,\n );\n const output = this.producedValueTypeReferences.get(valueTypeReference);\n\n if (!input || !output) {\n throw new Error(`Missing readable ID for value type reference`);\n }\n\n return { input, output };\n }\n\n // Interface types\n generateRidForInterface(apiName: string): InterfaceTypeRid {\n const rid = `ri.ontology-metadata.temp.interface-type.${\n this.hashString(apiName)\n }` as InterfaceTypeRid;\n this.interfaceRids.put(ReadableIdGenerator.getForInterface(apiName), rid);\n return rid;\n }\n\n // Interface Link Types\n generateRidForInterfaceLinkType(\n apiName: string,\n interfaceTypeApiName: string,\n ): InterfaceLinkTypeRid {\n const readableId = ReadableIdGenerator.getForInterfaceLinkType(\n interfaceTypeApiName,\n apiName,\n );\n const rid = `ri.ontology-metadata.temp.interface-link-type.${\n this.hashString(readableId)\n }` as InterfaceLinkTypeRid;\n this.interfaceLinkTypeRids.put(readableId, rid);\n return rid;\n }\n\n // Object Types\n generateRidForObjectType(apiName: string): ObjectTypeRid {\n const rid = `ri.ontology-metadata.temp.object-type.${\n this.hashString(apiName)\n }` as ObjectTypeRid;\n this.objectTypeRids.put(ReadableIdGenerator.getForObjectType(apiName), rid);\n return rid;\n }\n\n // Value Types\n generateRidForValueType(\n apiName: string,\n version: string,\n ): ValueTypeReference {\n const rid = `ri.ontology-metadata.temp.value-type.${\n this.hashString(apiName)\n }`;\n // Generate UUID from version string (matching Java's UUID.nameUUIDFromBytes)\n const versionHash = createHash(\"md5\").update(version, \"utf8\").digest(\"hex\");\n const versionAsUuid = `${versionHash.slice(0, 8)}-${\n versionHash.slice(8, 12)\n }-${versionHash.slice(12, 16)}-${versionHash.slice(16, 20)}-${\n versionHash.slice(20, 32)\n }`;\n\n const valueTypeReference: ValueTypeReference = {\n rid,\n versionId: versionAsUuid,\n } as ValueTypeReference;\n\n this.consumedValueTypeReferences.put(\n ReadableIdGenerator.getForConsumedValueType(apiName, version),\n valueTypeReference,\n );\n this.producedValueTypeReferences.set(\n valueTypeReference,\n ReadableIdGenerator.getForProducedValueType(apiName, version),\n );\n return valueTypeReference;\n }\n\n generateRidForTimeSeriesSync(name: string): TimeSeriesSyncRid {\n const rid = `ri.ontology-metadata.temp.time-series-sync.${\n this.hashString(name)\n }` as TimeSeriesSyncRid;\n this.timeSeriesSyncs.put(\n ReadableIdGenerator.getForTimeSeriesSync(name),\n rid,\n );\n return rid;\n }\n\n generateRidForLinkType(linkTypeId: string): LinkTypeRid {\n const rid = `ri.ontology-metadata.temp.link-type.${\n this.hashString(linkTypeId)\n }` as LinkTypeRid;\n this.linkTypeRids.put(ReadableIdGenerator.getForLinkType(linkTypeId), rid);\n return rid;\n }\n\n generateRidForGeotimeSeriesIntegration(\n name: string,\n ): GeotimeSeriesIntegrationRid {\n const rid = `ri.ontology-metadata.temp.geotime-series-integration.${\n this.hashString(name)\n }` as GeotimeSeriesIntegrationRid;\n this.geotimeSeriesIntegrationRids.put(\n ReadableIdGenerator.getForGeotimeSeriesIntegration(name),\n rid,\n );\n return rid;\n }\n\n generateRidForActionType(apiName: string): ActionTypeRid {\n const rid = `ri.ontology-metadata.temp.action-type.${\n this.hashString(apiName)\n }` as ActionTypeRid;\n this.actionTypeRids.put(ReadableIdGenerator.getForActionType(apiName), rid);\n return rid;\n }\n\n generateRidForParameter(\n actionTypeApiName: string,\n parameterId: string,\n ): ParameterRid {\n const rid = `ri.ontology-metadata.temp.parameter.${\n this.hashString(actionTypeApiName + \".\" + parameterId)\n }` as ParameterRid;\n\n let innerMap = this.parameterRids.get(actionTypeApiName);\n if (!innerMap) {\n innerMap = BiMapImpl.create();\n this.parameterRids.set(actionTypeApiName, innerMap);\n }\n\n innerMap.put(\n ReadableIdGenerator.getForParameter(actionTypeApiName, parameterId),\n { rid, id: parameterId },\n );\n return rid;\n }\n\n // Shared Property Types\n generateSptRid(apiName: string): SharedPropertyTypeRid {\n const rid = `ri.ontology-metadata.temp.shared-property-type.${\n this.hashString(apiName)\n }` as SharedPropertyTypeRid;\n this.sharedPropertyTypeRids.put(\n ReadableIdGenerator.getForSpt(apiName),\n rid,\n );\n return rid;\n }\n\n generatePropertyRid(\n apiName: string,\n objectTypeApiName: string,\n ): PropertyTypeRid {\n const rid = `ri.ontology-metadata.temp.property-type.${\n this.hashString(objectTypeApiName + \".\" + apiName)\n }` as PropertyTypeRid;\n this.propertyTypeRids.put(\n ReadableIdGenerator.getForObjectProperty(objectTypeApiName, apiName),\n rid,\n );\n return rid;\n }\n\n // Interface Property Types\n generateInterfacePropertyTypeRid(\n apiName: string,\n interfaceTypeApiName: string,\n ): InterfacePropertyTypeRid {\n const rid = `ri.ontology-metadata.temp.interface-property-type.${\n this.hashString(interfaceTypeApiName + \".\" + apiName)\n }` as InterfacePropertyTypeRid;\n this.interfacePropertyTypeRids.put(\n ReadableIdGenerator.getForInterfaceProperty(\n interfaceTypeApiName,\n apiName,\n ),\n rid,\n );\n return rid;\n }\n\n // Struct Field RIDs\n generateStructFieldRid(\n propertyApiName: string,\n apiName: string,\n ): StructFieldRid {\n const rid = `ri.ontology-metadata.temp.struct-field.${\n this.hashString(propertyApiName + \".\" + apiName)\n }` as StructFieldRid;\n return rid;\n }\n\n // Datasource locator methods\n generateLocator(\n dataSetName: string,\n columnNames: Set<string>,\n ): DatasetDatasourceLocator {\n const datasetRid = `ri.ontology-metadata.temp.dataset.${\n this.hashString(dataSetName)\n }`;\n const branchId = \"main\";\n\n // Register column shapes\n columnNames.forEach(name => {\n this.columnShapes.put(\n ReadableIdGenerator.getForDataSetColumn(dataSetName, name),\n {\n datasource: {\n type: \"dataset\",\n dataset: { rid: datasetRid, branch: branchId },\n } as DatasourceLocator,\n name: name,\n } as ResolvedDatasourceColumnShape,\n );\n });\n\n // Register datasource locator\n this.datasourceLocators.put(\n ReadableIdGenerator.getForDataSet(dataSetName),\n {\n type: \"dataset\",\n dataset: { rid: datasetRid, branch: branchId },\n } as DatasourceLocator,\n );\n\n return { rid: datasetRid, branchId };\n }\n\n generateStreamLocator(\n streamName: string,\n columnNames: Set<string>,\n ): StreamLocator {\n const streamLocatorRid = `ri.ontology-metadata.temp.stream-datasource.${\n this.hashString(streamName)\n }`;\n const branchId = \"main\";\n\n const locator: StreamLocator = {\n streamLocatorRid,\n branchId,\n };\n\n const marketplaceLocator: DatasourceLocator = {\n type: \"stream\",\n stream: {\n rid: streamLocatorRid,\n branch: branchId,\n },\n } as DatasourceLocator;\n\n // Register column shapes\n columnNames.forEach(name => {\n this.columnShapes.put(\n ReadableIdGenerator.getForStreamColumn(streamName, name),\n {\n datasource: marketplaceLocator,\n name: name,\n } as ResolvedDatasourceColumnShape,\n );\n });\n\n // Register datasource locator\n this.datasourceLocators.put(\n ReadableIdGenerator.getForStream(streamName),\n marketplaceLocator,\n );\n\n return locator;\n }\n\n generateRestrictedViewLocator(\n restrictedViewName: string,\n columnNames: Set<string>,\n ): RestrictedViewLocator {\n const restrictedViewRid = `ri.ontology-metadata.temp.restricted-view.${\n this.hashString(restrictedViewName)\n }`;\n\n // Register column shapes\n columnNames.forEach(name => {\n this.columnShapes.put(\n ReadableIdGenerator.getForRestrictedViewColumn(\n restrictedViewName,\n name,\n ),\n {\n datasource: {\n type: \"restrictedView\",\n restrictedView: { rid: restrictedViewRid },\n } as DatasourceLocator,\n name: name,\n } as ResolvedDatasourceColumnShape,\n );\n });\n\n // Register datasource locator\n this.datasourceLocators.put(\n ReadableIdGenerator.getForRestrictedView(restrictedViewName),\n {\n type: \"restrictedView\",\n restrictedView: { rid: restrictedViewRid },\n } as DatasourceLocator,\n );\n\n return { rid: restrictedViewRid };\n }\n\n generateMediaSetViewLocator(mediaSetViewName: string): MediaSetViewLocator {\n const mediaSetRid = `ri.ontology-metadata.temp.media-set.${\n this.hashString(mediaSetViewName)\n }`;\n const mediaSetBranchRid = `ri.ontology-metadata.temp.media-set-branch.${\n this.hashString(mediaSetViewName)\n }`;\n const mediaSetViewRid = `ri.ontology-metadata.temp.media-set-view.${\n this.hashString(mediaSetViewName)\n }`;\n\n // Register files datasource locator\n this.filesDatasourceLocators.put(\n ReadableIdGenerator.getForMediaSetView(mediaSetViewName),\n {\n type: \"mediaSet\",\n mediaSet: {\n rid: mediaSetRid,\n branch: \"master\", // matches OntologyMetadataConstants.ONTOLOGY_DATASET_BRANCH_ID\n },\n } as FilesDatasourceLocator,\n );\n\n return {\n mediaSetRid,\n mediaSetViewRid,\n mediaSetBranchRid,\n };\n }\n\n toBlockInternalId(readableId: ReadableId): string {\n const id = toBlockShapeId(readableId, this.randomnessUuid);\n return id;\n }\n\n getObjectTypeIds(): BiMap<ReadableId, string> {\n return this.objectTypeIds;\n }\n\n generateObjectTypeId(objectTypeApiName: string): string {\n const readableId = ReadableIdGenerator.getForObjectType(objectTypeApiName);\n const maybeLastId = this.objectTypeIds.get(readableId);\n if (maybeLastId) {\n return maybeLastId;\n }\n\n // Match Java: apiName.replace(\".\", \"-\").toLowerCase()\n const objectTypeId = objectTypeApiName.replace(/\\./g, \"-\").toLowerCase();\n this.objectTypeIds.put(readableId, objectTypeId);\n return objectTypeId;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAuBA;;AAEA,SAASA,UAAU,QAAQ,QAAQ;AACnC,SAASC,cAAc,QAAQ,kDAAkD;;AAEjF;;AAGA;AACA;AACA;AACA;AACA;;AA2GA;AACA;AACA;;AASA;AACA;AACA;;AAOA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,CAAC;EAM/B,OAAOC,GAAGA,CAACC,IAAY,EAAEC,IAAa,EAAc;IAClD,IAAIA,IAAI,KAAKC,SAAS,EAAE;MACtB;MACA,OAAO,uBAAuBF,IAAI,IAAIC,IAAI,EAAE;IAC9C;IACA;IACA;IACA,OAAOD,IAAI;EACb;EAEA,OAAOG,eAAeA,CAACC,oBAA4B,EAAc;IAC/D,OAAO,aAAaA,oBAAoB,EAAE;EAC5C;EAEA,OAAOC,gBAAgBA,CAACC,iBAAyB,EAAc;IAC7D,OAAO,eAAeA,iBAAiB,EAAE;EAC3C;EAEA,OAAOC,YAAYA,CAACC,UAAkB,EAAc;IAClD,OAAO,qBAAqBA,UAAU,EAAE;EAC1C;EAEA,OAAOC,kBAAkBA,CACvBD,UAAkB,EAClBE,UAAkB,EACN;IACZ,OAAO,4BAA4BF,UAAU,IAAIE,UAAU,EAAE;EAC/D;EAEA,OAAOC,oBAAoBA,CAACC,kBAA0B,EAAc;IAClE,OAAO,oBAAoBA,kBAAkB,EAAE;EACjD;EAEA,OAAOC,aAAaA,CAACC,WAAmB,EAAc;IACpD,OAAO,sBAAsB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