@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,425 @@
|
|
|
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
|
+
import { typeToConcreteDataType, typeToMarketplaceBaseType, typeToMarketplaceObjectPropertyType } from "../typeVisitors.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Helper to create LocalizedTitleAndDescription with empty localizations
|
|
21
|
+
*/
|
|
22
|
+
function createLocalizedAbout(fallbackTitle, fallbackDescription) {
|
|
23
|
+
return {
|
|
24
|
+
fallbackTitle,
|
|
25
|
+
fallbackDescription,
|
|
26
|
+
localizedTitle: {},
|
|
27
|
+
localizedDescription: {}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* TypeScript port of Java's ObjectTypeShapeExtractor class
|
|
33
|
+
*/
|
|
34
|
+
export class ObjectTypeShapeExtractor {
|
|
35
|
+
constructor(randomnessKey) {
|
|
36
|
+
this.randomnessKey = randomnessKey;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Extract shapes from an ObjectType
|
|
41
|
+
*/
|
|
42
|
+
extract(objectReadableId, objectType, ridGenerator) {
|
|
43
|
+
// BiMap inverse() returns BiMap<V,K> so we convert to Map<K,V>
|
|
44
|
+
const propertyReadableIdsByRid = ridGenerator.getPropertyTypeRids().inverse();
|
|
45
|
+
const readableIdsForSptRid = ridGenerator.getSharedPropertyTypeRids().inverse();
|
|
46
|
+
|
|
47
|
+
// Build property output shapes
|
|
48
|
+
const propertyOutputShapeMap = new Map();
|
|
49
|
+
for (const [propertyRid, propertyType] of Object.entries(objectType.objectType.propertyTypes)) {
|
|
50
|
+
const readableId = propertyReadableIdsByRid.get(propertyRid);
|
|
51
|
+
if (readableId) {
|
|
52
|
+
propertyOutputShapeMap.set(readableId, this.getShapeForProperty(objectReadableId, propertyType, readableIdsForSptRid.asMap(), ridGenerator));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const datasourcesByReadableId = ridGenerator.getDatasourceLocators().asMap();
|
|
56
|
+
const filesDatasourcesByReadableId = ridGenerator.getFilesDatasourceLocators();
|
|
57
|
+
const geotimeSeriesIntegrationRidByReadableId = new Map(Array.from(ridGenerator.getGeotimeSeriesIntegrationRids().entries()));
|
|
58
|
+
const timeSeriesSyncRidByReadableId = ridGenerator.getTimeSeriesSyncs();
|
|
59
|
+
const propertyTypes = new Map();
|
|
60
|
+
for (const [rid, propertyType] of Object.entries(objectType.objectType.propertyTypes)) {
|
|
61
|
+
propertyTypes.set(rid, propertyType.type);
|
|
62
|
+
}
|
|
63
|
+
const columnShapes = ridGenerator.getColumnShapes().asMap();
|
|
64
|
+
|
|
65
|
+
// Build object type output shape
|
|
66
|
+
const objectTypeOutputShape = {
|
|
67
|
+
about: createLocalizedAbout(objectType.objectType.displayMetadata.displayName, objectType.objectType.displayMetadata.description ?? ""),
|
|
68
|
+
editsSupport: objectType.entityMetadata?.arePatchesEnabled ? "EDITS_ENABLED" : "EDITS_DISABLED",
|
|
69
|
+
objectsBackendVersion: "V2",
|
|
70
|
+
propertyTypes: Array.from(propertyOutputShapeMap.keys()).map(val => ridGenerator.toBlockInternalId(val))
|
|
71
|
+
};
|
|
72
|
+
const blockShapes = {
|
|
73
|
+
inputShapes: new Map(),
|
|
74
|
+
outputShapes: new Map(),
|
|
75
|
+
inputShapeMetadata: new Map()
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// Add property output shapes
|
|
79
|
+
for (const [readableId, propertyShape] of Array.from(propertyOutputShapeMap.entries())) {
|
|
80
|
+
blockShapes.outputShapes.set(readableId, {
|
|
81
|
+
type: "property",
|
|
82
|
+
property: propertyShape
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Add object type output shape
|
|
87
|
+
blockShapes.outputShapes.set(objectReadableId, {
|
|
88
|
+
type: "objectType",
|
|
89
|
+
objectType: objectTypeOutputShape
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// Extract shapes from datasources
|
|
93
|
+
for (const ds of objectType.datasources) {
|
|
94
|
+
const dsShapes = this.getShapesFromDatasource(ds, datasourcesByReadableId, filesDatasourcesByReadableId, geotimeSeriesIntegrationRidByReadableId, propertyTypes, propertyReadableIdsByRid.asMap(), propertyOutputShapeMap, timeSeriesSyncRidByReadableId, columnShapes, ridGenerator);
|
|
95
|
+
for (const [id, shape] of Array.from(dsShapes.entries())) {
|
|
96
|
+
blockShapes.inputShapes.set(id, shape);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Extract value type input shapes if present
|
|
101
|
+
for (const propertyType of Object.values(objectType.objectType.propertyTypes)) {
|
|
102
|
+
this.extractValueTypeInputShapeIfPresent(propertyType.valueType, propertyType.displayMetadata.displayName, propertyType.type, blockShapes, ridGenerator);
|
|
103
|
+
}
|
|
104
|
+
return blockShapes;
|
|
105
|
+
}
|
|
106
|
+
getShapeForProperty(objectBlockShapeId, propertyType, readableIdsForSptRid, ridGenerator) {
|
|
107
|
+
const shape = {
|
|
108
|
+
about: createLocalizedAbout(propertyType.displayMetadata.displayName, propertyType.displayMetadata.description ?? ""),
|
|
109
|
+
type: this.convertPropertyTypeToMarketplaceType(propertyType.type),
|
|
110
|
+
objectType: ridGenerator.toBlockInternalId(objectBlockShapeId)
|
|
111
|
+
};
|
|
112
|
+
if (propertyType.sharedPropertyTypeRid) {
|
|
113
|
+
const sptReadableId = readableIdsForSptRid.get(propertyType.sharedPropertyTypeRid);
|
|
114
|
+
if (sptReadableId) {
|
|
115
|
+
shape.sharedPropertyType = ridGenerator.toBlockInternalId(sptReadableId);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return shape;
|
|
119
|
+
}
|
|
120
|
+
getShapesFromDatasource(datasource, datasourcesByReadableId, filesDatasourcesByReadableId, geotimeSeriesIntegrationRidByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, timeSeriesSyncRidByReadableId, columnReadableIds, ridGenerator) {
|
|
121
|
+
const dsDefinition = datasource.datasource;
|
|
122
|
+
switch (dsDefinition.type) {
|
|
123
|
+
case "dataset":
|
|
124
|
+
return new Map();
|
|
125
|
+
// Not implemented in original
|
|
126
|
+
case "datasetV2":
|
|
127
|
+
return this.getShapesFromDataset(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.datasetV2.datasetRid, dsDefinition.datasetV2.branchId, dsDefinition.datasetV2.propertyMapping, ridGenerator);
|
|
128
|
+
case "datasetV3":
|
|
129
|
+
return this.getShapesFromDataset(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.datasetV3.datasetRid, dsDefinition.datasetV3.branchId, dsDefinition.datasetV3.propertyMapping, ridGenerator);
|
|
130
|
+
case "derived":
|
|
131
|
+
return new Map();
|
|
132
|
+
// Empty per original
|
|
133
|
+
case "direct":
|
|
134
|
+
return new Map();
|
|
135
|
+
case "editsOnly":
|
|
136
|
+
return new Map();
|
|
137
|
+
case "geotimeSeries":
|
|
138
|
+
return this.getShapesFromGeotimeSeriesIntegration(geotimeSeriesIntegrationRidByReadableId, dsDefinition.geotimeSeries.geotimeSeriesIntegrationRid);
|
|
139
|
+
case "media":
|
|
140
|
+
return new Map();
|
|
141
|
+
case "mediaSetView":
|
|
142
|
+
return this.getShapesFromMediaSetView(filesDatasourcesByReadableId, dsDefinition.mediaSetView.mediaSetViewLocator);
|
|
143
|
+
case "restrictedStream":
|
|
144
|
+
return new Map();
|
|
145
|
+
case "restrictedView":
|
|
146
|
+
return new Map();
|
|
147
|
+
case "restrictedViewV2":
|
|
148
|
+
return this.getShapesFromRestrictedView(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.restrictedViewV2.restrictedViewRid, dsDefinition.restrictedViewV2.propertyMapping, ridGenerator);
|
|
149
|
+
case "stream":
|
|
150
|
+
return this.getShapesFromStream(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.stream.streamLocator.streamLocatorRid, dsDefinition.stream.streamLocator.branchId, dsDefinition.stream.propertyMapping, ridGenerator);
|
|
151
|
+
case "streamV2":
|
|
152
|
+
return this.getShapesFromStream(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.streamV2.streamLocator.streamLocatorRid, dsDefinition.streamV2.streamLocator.branchId, dsDefinition.streamV2.propertyMapping, ridGenerator);
|
|
153
|
+
case "streamV3":
|
|
154
|
+
const mapping = new Map();
|
|
155
|
+
for (const [rid, info] of Object.entries(dsDefinition.streamV3.propertyMapping)) {
|
|
156
|
+
mapping.set(rid, this.getColumnNameFromPropertyTypeMappingInfo(info));
|
|
157
|
+
}
|
|
158
|
+
return this.getShapesFromStream(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, dsDefinition.streamV3.streamLocator.streamLocatorRid, dsDefinition.streamV3.streamLocator.branchId, mapping, ridGenerator);
|
|
159
|
+
case "table":
|
|
160
|
+
return new Map();
|
|
161
|
+
case "timeSeries":
|
|
162
|
+
return this.getShapesFromTimeSeriesSync(timeSeriesSyncRidByReadableId, propertyTypes, dsDefinition.timeSeries.properties, dsDefinition.timeSeries.timeSeriesSyncRid);
|
|
163
|
+
default:
|
|
164
|
+
return new Map();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
getShapesFromGeotimeSeriesIntegration(geotimeSeriesIntegrationRidByReadableId, geotimeSeriesIntegrationRid) {
|
|
168
|
+
let readableId;
|
|
169
|
+
for (const [id, rid] of geotimeSeriesIntegrationRidByReadableId.entries()) {
|
|
170
|
+
if (rid === geotimeSeriesIntegrationRid) {
|
|
171
|
+
readableId = id;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
if (!readableId) return new Map();
|
|
176
|
+
const shape = {
|
|
177
|
+
about: createLocalizedAbout(readableId, "")
|
|
178
|
+
};
|
|
179
|
+
return new Map([[readableId, {
|
|
180
|
+
type: "geotimeSeriesIntegration",
|
|
181
|
+
geotimeSeriesIntegration: shape
|
|
182
|
+
}]]);
|
|
183
|
+
}
|
|
184
|
+
getShapesFromMediaSetView(filesDatasourcesByReadableId, mediaSetViewLocator // MediaSetViewLocator from OMS types
|
|
185
|
+
) {
|
|
186
|
+
// Find the matching files datasource by comparing mediaSetRid
|
|
187
|
+
let readableId;
|
|
188
|
+
for (const [id, locator] of filesDatasourcesByReadableId.entries()) {
|
|
189
|
+
if (locator.type === "mediaSet" && locator.mediaSet.rid === mediaSetViewLocator.mediaSetRid) {
|
|
190
|
+
readableId = id;
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (!readableId) return new Map();
|
|
195
|
+
const shape = {
|
|
196
|
+
about: createLocalizedAbout(readableId, ""),
|
|
197
|
+
supportedTypes: [{
|
|
198
|
+
type: "mediaSet",
|
|
199
|
+
mediaSet: {
|
|
200
|
+
pathPolicy: {
|
|
201
|
+
type: "any",
|
|
202
|
+
any: {}
|
|
203
|
+
},
|
|
204
|
+
mediaSchema: {
|
|
205
|
+
type: "any",
|
|
206
|
+
any: {}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}]
|
|
210
|
+
};
|
|
211
|
+
return new Map([[readableId, {
|
|
212
|
+
type: "filesDatasource",
|
|
213
|
+
filesDatasource: shape
|
|
214
|
+
}]]);
|
|
215
|
+
}
|
|
216
|
+
getShapesFromTimeSeriesSync(timeSeriesSyncRidByReadableId, propertyTypes, propertyTypeRids, timeSeriesSyncRid) {
|
|
217
|
+
const readableId = timeSeriesSyncRidByReadableId.inverse().get(timeSeriesSyncRid);
|
|
218
|
+
if (!readableId) return new Map();
|
|
219
|
+
const timeSeriesSyncTypes = new Set(propertyTypeRids.map(rid => {
|
|
220
|
+
const type = propertyTypes.get(rid);
|
|
221
|
+
return type ? this.getTimeSeriesSyncType(type) : undefined;
|
|
222
|
+
}).filter(t => t !== undefined));
|
|
223
|
+
if (timeSeriesSyncTypes.size !== 1) {
|
|
224
|
+
throw new Error("Invalid time series types");
|
|
225
|
+
}
|
|
226
|
+
const syncType = Array.from(timeSeriesSyncTypes)[0];
|
|
227
|
+
const shape = {
|
|
228
|
+
about: createLocalizedAbout(readableId, ""),
|
|
229
|
+
type: syncType
|
|
230
|
+
};
|
|
231
|
+
return new Map([[readableId, {
|
|
232
|
+
type: "timeSeriesSync",
|
|
233
|
+
timeSeriesSync: shape
|
|
234
|
+
}]]);
|
|
235
|
+
}
|
|
236
|
+
getShapesFromStream(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, streamLocatorRid, branchId, propertyMapping, ridGenerator) {
|
|
237
|
+
const streamLocator = {
|
|
238
|
+
type: "stream",
|
|
239
|
+
stream: {
|
|
240
|
+
rid: streamLocatorRid,
|
|
241
|
+
branch: branchId
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
let datasourceReadableId;
|
|
245
|
+
for (const [id, loc] of datasourcesByReadableId.entries()) {
|
|
246
|
+
if (loc.type === "stream" && loc.stream.rid === streamLocator.stream.rid) {
|
|
247
|
+
datasourceReadableId = id;
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (!datasourceReadableId) return new Map();
|
|
252
|
+
const propertyMappingMap = propertyMapping instanceof Map ? propertyMapping : new Map(Object.entries(propertyMapping));
|
|
253
|
+
const columnShapes = this.getColumnShapes(streamLocator, columnReadableIds, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, datasourceReadableId, propertyMappingMap, ridGenerator, val => typeof val === "string" ? val : val);
|
|
254
|
+
const datasourceInputShape = {
|
|
255
|
+
about: createLocalizedAbout(datasourceReadableId, ""),
|
|
256
|
+
supportedTypes: ["STREAM"],
|
|
257
|
+
schema: Array.from(columnShapes.keys()).map(id => ridGenerator.toBlockInternalId(id))
|
|
258
|
+
};
|
|
259
|
+
const result = new Map([[datasourceReadableId, {
|
|
260
|
+
type: "tabularDatasource",
|
|
261
|
+
tabularDatasource: datasourceInputShape
|
|
262
|
+
}]]);
|
|
263
|
+
for (const [id, colShape] of columnShapes.entries()) {
|
|
264
|
+
result.set(id, {
|
|
265
|
+
type: "datasourceColumn",
|
|
266
|
+
datasourceColumn: colShape
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
return result;
|
|
270
|
+
}
|
|
271
|
+
getShapesFromDataset(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, datasetRid, branchId, propertyMapping, ridGenerator) {
|
|
272
|
+
const datasourceLocator = {
|
|
273
|
+
type: "dataset",
|
|
274
|
+
dataset: {
|
|
275
|
+
rid: datasetRid,
|
|
276
|
+
branch: branchId
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
let datasourceReadableId;
|
|
280
|
+
for (const [id, loc] of datasourcesByReadableId.entries()) {
|
|
281
|
+
if (loc.type === "dataset" && loc.dataset.rid === datasourceLocator.dataset.rid) {
|
|
282
|
+
datasourceReadableId = id;
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
if (!datasourceReadableId) return new Map();
|
|
287
|
+
const propertyMappingMap = new Map(Object.entries(propertyMapping));
|
|
288
|
+
const columnShapes = this.getColumnShapes(datasourceLocator, columnReadableIds, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, datasourceReadableId, propertyMappingMap, ridGenerator, val => {
|
|
289
|
+
if (val.type === "column") return val.column;
|
|
290
|
+
if (val.type === "struct") return val.struct.column;
|
|
291
|
+
throw new Error("Error extracting column shapes");
|
|
292
|
+
});
|
|
293
|
+
const datasourceInputShape = {
|
|
294
|
+
about: createLocalizedAbout(datasourceReadableId, ""),
|
|
295
|
+
supportedTypes: ["DATASET", "RESTRICTED_VIEW"],
|
|
296
|
+
schema: Array.from(columnShapes.keys()).map(id => ridGenerator.toBlockInternalId(id))
|
|
297
|
+
};
|
|
298
|
+
const result = new Map([[datasourceReadableId, {
|
|
299
|
+
type: "tabularDatasource",
|
|
300
|
+
tabularDatasource: datasourceInputShape
|
|
301
|
+
}]]);
|
|
302
|
+
for (const [id, colShape] of Array.from(columnShapes.entries())) {
|
|
303
|
+
result.set(id, {
|
|
304
|
+
type: "datasourceColumn",
|
|
305
|
+
datasourceColumn: colShape
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return result;
|
|
309
|
+
}
|
|
310
|
+
getShapesFromRestrictedView(datasourcesByReadableId, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, columnReadableIds, restrictedViewRid, propertyMapping, ridGenerator) {
|
|
311
|
+
const datasourceLocator = {
|
|
312
|
+
type: "restrictedView",
|
|
313
|
+
restrictedView: {
|
|
314
|
+
rid: restrictedViewRid
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
let datasourceReadableId;
|
|
318
|
+
for (const [id, loc] of datasourcesByReadableId.entries()) {
|
|
319
|
+
if (loc.type === "restrictedView" && loc.restrictedView.rid === datasourceLocator.restrictedView.rid) {
|
|
320
|
+
datasourceReadableId = id;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
if (!datasourceReadableId) return new Map();
|
|
325
|
+
const propertyMappingMap = new Map(Object.entries(propertyMapping));
|
|
326
|
+
const columnShapes = this.getColumnShapes(datasourceLocator, columnReadableIds, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, datasourceReadableId, propertyMappingMap, ridGenerator, val => {
|
|
327
|
+
if (val.type === "column") return val.column;
|
|
328
|
+
if (val.type === "struct") return val.struct.column;
|
|
329
|
+
throw new Error("Error extracting column shapes");
|
|
330
|
+
});
|
|
331
|
+
const datasourceInputShape = {
|
|
332
|
+
about: createLocalizedAbout(datasourceReadableId, ""),
|
|
333
|
+
supportedTypes: ["RESTRICTED_VIEW"],
|
|
334
|
+
schema: Array.from(columnShapes.keys()).map(id => ridGenerator.toBlockInternalId(id))
|
|
335
|
+
};
|
|
336
|
+
const result = new Map([[datasourceReadableId, {
|
|
337
|
+
type: "tabularDatasource",
|
|
338
|
+
tabularDatasource: datasourceInputShape
|
|
339
|
+
}]]);
|
|
340
|
+
for (const [id, colShape] of Array.from(columnShapes.entries())) {
|
|
341
|
+
result.set(id, {
|
|
342
|
+
type: "datasourceColumn",
|
|
343
|
+
datasourceColumn: colShape
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
return result;
|
|
347
|
+
}
|
|
348
|
+
getColumnShapes(datasourceLocator, columnReadableIds, propertyTypes, propertyReadableIdsByRid, propertyOutputShapeMap, datasourceReadableId, columns, ridGenerator, columnNameGetter) {
|
|
349
|
+
const result = new Map();
|
|
350
|
+
for (const [propertyTypeRid, value] of Array.from(columns.entries())) {
|
|
351
|
+
const propertyReadableId = propertyReadableIdsByRid.get(propertyTypeRid);
|
|
352
|
+
if (!propertyReadableId) continue;
|
|
353
|
+
const propertyOutputShape = propertyOutputShapeMap.get(propertyReadableId);
|
|
354
|
+
if (!propertyOutputShape) continue;
|
|
355
|
+
const resolvedShape = {
|
|
356
|
+
datasource: datasourceLocator,
|
|
357
|
+
name: columnNameGetter(value)
|
|
358
|
+
};
|
|
359
|
+
let columnReadableId;
|
|
360
|
+
for (const [id, shape] of columnReadableIds.entries()) {
|
|
361
|
+
if (shape.name === resolvedShape.name && this.datasourceLocatorsMatch(shape.datasource, resolvedShape.datasource)) {
|
|
362
|
+
columnReadableId = id;
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (!columnReadableId) continue;
|
|
367
|
+
const propertyType = propertyTypes.get(propertyTypeRid);
|
|
368
|
+
if (!propertyType) continue;
|
|
369
|
+
const columnShape = {
|
|
370
|
+
about: createLocalizedAbout(propertyOutputShape.about.fallbackTitle, ""),
|
|
371
|
+
type: {
|
|
372
|
+
type: "concrete",
|
|
373
|
+
concrete: this.typeToConcreteDataType(propertyType)
|
|
374
|
+
},
|
|
375
|
+
datasource: ridGenerator.toBlockInternalId(datasourceReadableId),
|
|
376
|
+
typeclasses: []
|
|
377
|
+
};
|
|
378
|
+
result.set(columnReadableId, columnShape);
|
|
379
|
+
}
|
|
380
|
+
return result;
|
|
381
|
+
}
|
|
382
|
+
getColumnNameFromPropertyTypeMappingInfo(info) {
|
|
383
|
+
if (info.type === "column") return info.column;
|
|
384
|
+
if (info.type === "struct") return info.struct.column;
|
|
385
|
+
throw new Error("Edits not supported yet");
|
|
386
|
+
}
|
|
387
|
+
extractValueTypeInputShapeIfPresent(valueTypeReference, displayName, type, blockShapes, ridGenerator) {
|
|
388
|
+
if (!valueTypeReference) return;
|
|
389
|
+
const valueTypeInput = {
|
|
390
|
+
type: "valueType",
|
|
391
|
+
valueType: {
|
|
392
|
+
about: createLocalizedAbout(`Value Type Input for ${displayName}`, ""),
|
|
393
|
+
baseType: typeToMarketplaceBaseType(type)
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
const mappingEntry = ridGenerator.valueTypeMappingForReference(valueTypeReference);
|
|
397
|
+
blockShapes.inputShapes.set(mappingEntry.input, valueTypeInput);
|
|
398
|
+
}
|
|
399
|
+
getTimeSeriesSyncType(type) {
|
|
400
|
+
if (type.type !== "experimentalTimeDependentV1") return undefined;
|
|
401
|
+
const metadata = type.experimentalTimeDependentV1.seriesValueMetadata;
|
|
402
|
+
const isNumeric = metadata.type === "numeric";
|
|
403
|
+
return isNumeric ? "NUMERIC" : "CATEGORICAL";
|
|
404
|
+
}
|
|
405
|
+
convertPropertyTypeToMarketplaceType(type) {
|
|
406
|
+
return typeToMarketplaceObjectPropertyType(type);
|
|
407
|
+
}
|
|
408
|
+
typeToConcreteDataType(type) {
|
|
409
|
+
return typeToConcreteDataType(type);
|
|
410
|
+
}
|
|
411
|
+
datasourceLocatorsMatch(a, b) {
|
|
412
|
+
if (a.type !== b.type) return false;
|
|
413
|
+
switch (a.type) {
|
|
414
|
+
case "dataset":
|
|
415
|
+
return b.type === "dataset" && a.dataset.rid === b.dataset.rid && a.dataset.branch === b.dataset.branch;
|
|
416
|
+
case "stream":
|
|
417
|
+
return b.type === "stream" && a.stream.rid === b.stream.rid && a.stream.branch === b.stream.branch;
|
|
418
|
+
case "restrictedView":
|
|
419
|
+
return b.type === "restrictedView" && a.restrictedView.rid === b.restrictedView.rid;
|
|
420
|
+
default:
|
|
421
|
+
return false;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
//# sourceMappingURL=ObjectTypeShapeExtractor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectTypeShapeExtractor.js","names":["typeToConcreteDataType","typeToMarketplaceBaseType","typeToMarketplaceObjectPropertyType","createLocalizedAbout","fallbackTitle","fallbackDescription","localizedTitle","localizedDescription","ObjectTypeShapeExtractor","constructor","randomnessKey","extract","objectReadableId","objectType","ridGenerator","propertyReadableIdsByRid","getPropertyTypeRids","inverse","readableIdsForSptRid","getSharedPropertyTypeRids","propertyOutputShapeMap","Map","propertyRid","propertyType","Object","entries","propertyTypes","readableId","get","set","getShapeForProperty","asMap","datasourcesByReadableId","getDatasourceLocators","filesDatasourcesByReadableId","getFilesDatasourceLocators","geotimeSeriesIntegrationRidByReadableId","Array","from","getGeotimeSeriesIntegrationRids","timeSeriesSyncRidByReadableId","getTimeSeriesSyncs","rid","type","columnShapes","getColumnShapes","objectTypeOutputShape","about","displayMetadata","displayName","description","editsSupport","entityMetadata","arePatchesEnabled","objectsBackendVersion","keys","map","val","toBlockInternalId","blockShapes","inputShapes","outputShapes","inputShapeMetadata","propertyShape","property","ds","datasources","dsShapes","getShapesFromDatasource","id","shape","values","extractValueTypeInputShapeIfPresent","valueType","objectBlockShapeId","convertPropertyTypeToMarketplaceType","sharedPropertyTypeRid","sptReadableId","sharedPropertyType","datasource","columnReadableIds","dsDefinition","getShapesFromDataset","datasetV2","datasetRid","branchId","propertyMapping","datasetV3","getShapesFromGeotimeSeriesIntegration","geotimeSeries","geotimeSeriesIntegrationRid","getShapesFromMediaSetView","mediaSetView","mediaSetViewLocator","getShapesFromRestrictedView","restrictedViewV2","restrictedViewRid","getShapesFromStream","stream","streamLocator","streamLocatorRid","streamV2","mapping","info","streamV3","getColumnNameFromPropertyTypeMappingInfo","getShapesFromTimeSeriesSync","timeSeries","properties","timeSeriesSyncRid","geotimeSeriesIntegration","locator","mediaSet","mediaSetRid","supportedTypes","pathPolicy","any","mediaSchema","filesDatasource","propertyTypeRids","timeSeriesSyncTypes","Set","getTimeSeriesSyncType","undefined","filter","t","size","Error","syncType","timeSeriesSync","branch","datasourceReadableId","loc","propertyMappingMap","datasourceInputShape","schema","result","tabularDatasource","colShape","datasourceColumn","datasourceLocator","dataset","column","struct","restrictedView","columns","columnNameGetter","propertyTypeRid","value","propertyReadableId","propertyOutputShape","resolvedShape","name","columnReadableId","datasourceLocatorsMatch","columnShape","concrete","typeclasses","valueTypeReference","valueTypeInput","baseType","mappingEntry","valueTypeMappingForReference","input","metadata","experimentalTimeDependentV1","seriesValueMetadata","isNumeric","a","b"],"sources":["ObjectTypeShapeExtractor.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 {\n BranchId,\n ColumnName,\n DatasetRid,\n GeotimeSeriesIntegrationRid,\n MediaSetViewLocator,\n ObjectTypeBlockDataV2,\n ObjectTypeDatasource,\n PropertyType,\n PropertyTypeMappingInfo,\n PropertyTypeRid,\n RestrictedViewRid,\n SharedPropertyTypeRid,\n StreamLocatorRid,\n TimeSeriesSyncRid,\n Type,\n} from \"@osdk/client.unstable\";\nimport type {\n DatasourceColumnShape,\n DatasourceLocator,\n FilesDatasourceInputShape,\n FilesDatasourceLocator,\n GeotimeSeriesIntegrationShape,\n InputShape,\n LocalizedTitleAndDescription,\n ObjectTypeOutputShape,\n PropertyOutputShape,\n ResolvedDatasourceColumnShape,\n StreamLocator,\n TabularDatasourceInputShape,\n TimeSeriesSyncShape,\n TimeSeriesSyncType,\n Void,\n} from \"@osdk/client.unstable/api\";\nimport type {\n BiMap,\n BlockShapes,\n OntologyRidGenerator,\n ReadableId,\n} from \"../../../util/generateRid.js\";\nimport {\n typeToConcreteDataType,\n typeToMarketplaceBaseType,\n typeToMarketplaceObjectPropertyType,\n} from \"../typeVisitors.js\";\n\n/**\n * Helper to create LocalizedTitleAndDescription with empty localizations\n */\nfunction createLocalizedAbout(\n fallbackTitle: string,\n fallbackDescription: string,\n): LocalizedTitleAndDescription {\n return {\n fallbackTitle,\n fallbackDescription,\n localizedTitle: {},\n localizedDescription: {},\n };\n}\n\n/**\n * TypeScript port of Java's ObjectTypeShapeExtractor class\n */\nexport class ObjectTypeShapeExtractor {\n private readonly randomnessKey?: string;\n\n constructor(randomnessKey?: string) {\n this.randomnessKey = randomnessKey;\n }\n\n /**\n * Extract shapes from an ObjectType\n */\n extract(\n objectReadableId: ReadableId,\n objectType: ObjectTypeBlockDataV2,\n ridGenerator: OntologyRidGenerator,\n ): BlockShapes {\n // BiMap inverse() returns BiMap<V,K> so we convert to Map<K,V>\n const propertyReadableIdsByRid = ridGenerator.getPropertyTypeRids()\n .inverse();\n\n const readableIdsForSptRid = ridGenerator.getSharedPropertyTypeRids()\n .inverse();\n\n // Build property output shapes\n const propertyOutputShapeMap = new Map<ReadableId, PropertyOutputShape>();\n for (\n const [propertyRid, propertyType] of Object.entries(\n objectType.objectType.propertyTypes,\n )\n ) {\n const readableId = propertyReadableIdsByRid.get(\n propertyRid,\n );\n if (readableId) {\n propertyOutputShapeMap.set(\n readableId,\n this.getShapeForProperty(\n objectReadableId,\n propertyType,\n readableIdsForSptRid.asMap(),\n ridGenerator,\n ),\n );\n }\n }\n\n const datasourcesByReadableId = ridGenerator.getDatasourceLocators()\n .asMap();\n const filesDatasourcesByReadableId = ridGenerator\n .getFilesDatasourceLocators();\n const geotimeSeriesIntegrationRidByReadableId = new Map<\n ReadableId,\n GeotimeSeriesIntegrationRid\n >(\n Array.from(\n ridGenerator.getGeotimeSeriesIntegrationRids().entries(),\n ),\n );\n const timeSeriesSyncRidByReadableId = ridGenerator.getTimeSeriesSyncs();\n\n const propertyTypes = new Map<PropertyTypeRid, Type>();\n for (\n const [rid, propertyType] of Object.entries(\n objectType.objectType.propertyTypes,\n )\n ) {\n propertyTypes.set(rid as PropertyTypeRid, propertyType.type);\n }\n\n const columnShapes = ridGenerator.getColumnShapes().asMap();\n\n // Build object type output shape\n const objectTypeOutputShape: ObjectTypeOutputShape = {\n about: createLocalizedAbout(\n objectType.objectType.displayMetadata.displayName,\n objectType.objectType.displayMetadata.description ?? \"\",\n ),\n editsSupport: objectType.entityMetadata?.arePatchesEnabled\n ? \"EDITS_ENABLED\"\n : \"EDITS_DISABLED\",\n objectsBackendVersion: \"V2\",\n propertyTypes: Array.from(propertyOutputShapeMap.keys()).map(val =>\n ridGenerator.toBlockInternalId(val)\n ),\n };\n\n const blockShapes: BlockShapes = {\n inputShapes: new Map(),\n outputShapes: new Map(),\n inputShapeMetadata: new Map(),\n };\n\n // Add property output shapes\n for (\n const [readableId, propertyShape] of Array.from(\n propertyOutputShapeMap.entries(),\n )\n ) {\n blockShapes.outputShapes.set(readableId, {\n type: \"property\",\n property: propertyShape,\n });\n }\n\n // Add object type output shape\n blockShapes.outputShapes.set(objectReadableId, {\n type: \"objectType\",\n objectType: objectTypeOutputShape,\n });\n\n // Extract shapes from datasources\n for (const ds of objectType.datasources) {\n const dsShapes = this.getShapesFromDatasource(\n ds,\n datasourcesByReadableId,\n filesDatasourcesByReadableId,\n geotimeSeriesIntegrationRidByReadableId,\n propertyTypes,\n propertyReadableIdsByRid.asMap(),\n propertyOutputShapeMap,\n timeSeriesSyncRidByReadableId,\n columnShapes,\n ridGenerator,\n );\n for (const [id, shape] of Array.from(dsShapes.entries())) {\n blockShapes.inputShapes.set(id, shape);\n }\n }\n\n // Extract value type input shapes if present\n for (\n const propertyType of Object.values(objectType.objectType.propertyTypes)\n ) {\n this.extractValueTypeInputShapeIfPresent(\n propertyType.valueType,\n propertyType.displayMetadata.displayName,\n propertyType.type,\n blockShapes,\n ridGenerator,\n );\n }\n\n return blockShapes;\n }\n\n private getShapeForProperty(\n objectBlockShapeId: ReadableId,\n propertyType: PropertyType,\n readableIdsForSptRid: Map<SharedPropertyTypeRid, ReadableId>,\n ridGenerator: OntologyRidGenerator,\n ): PropertyOutputShape {\n const shape: PropertyOutputShape = {\n about: createLocalizedAbout(\n propertyType.displayMetadata.displayName,\n propertyType.displayMetadata.description ?? \"\",\n ),\n type: this.convertPropertyTypeToMarketplaceType(propertyType.type),\n objectType: ridGenerator.toBlockInternalId(objectBlockShapeId),\n };\n\n if (propertyType.sharedPropertyTypeRid) {\n const sptReadableId = readableIdsForSptRid.get(\n propertyType.sharedPropertyTypeRid,\n );\n if (sptReadableId) {\n shape.sharedPropertyType = ridGenerator.toBlockInternalId(\n sptReadableId,\n );\n }\n }\n\n return shape;\n }\n\n private getShapesFromDatasource(\n datasource: ObjectTypeDatasource,\n datasourcesByReadableId: Map<ReadableId, DatasourceLocator>,\n filesDatasourcesByReadableId: BiMap<ReadableId, FilesDatasourceLocator>,\n geotimeSeriesIntegrationRidByReadableId: Map<\n ReadableId,\n GeotimeSeriesIntegrationRid\n >,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyReadableIdsByRid: Map<PropertyTypeRid, ReadableId>,\n propertyOutputShapeMap: Map<ReadableId, PropertyOutputShape>,\n timeSeriesSyncRidByReadableId: BiMap<ReadableId, TimeSeriesSyncRid>,\n columnReadableIds: Map<ReadableId, ResolvedDatasourceColumnShape>,\n ridGenerator: OntologyRidGenerator,\n ): Map<ReadableId, InputShape> {\n const dsDefinition = datasource.datasource;\n\n switch (dsDefinition.type) {\n case \"dataset\":\n return new Map(); // Not implemented in original\n case \"datasetV2\":\n return this.getShapesFromDataset(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.datasetV2.datasetRid,\n dsDefinition.datasetV2.branchId,\n dsDefinition.datasetV2.propertyMapping,\n ridGenerator,\n );\n case \"datasetV3\":\n return this.getShapesFromDataset(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.datasetV3.datasetRid,\n dsDefinition.datasetV3.branchId,\n dsDefinition.datasetV3.propertyMapping,\n ridGenerator,\n );\n case \"derived\":\n return new Map(); // Empty per original\n case \"direct\":\n return new Map();\n case \"editsOnly\":\n return new Map();\n case \"geotimeSeries\":\n return this.getShapesFromGeotimeSeriesIntegration(\n geotimeSeriesIntegrationRidByReadableId,\n dsDefinition.geotimeSeries.geotimeSeriesIntegrationRid,\n );\n case \"media\":\n return new Map();\n case \"mediaSetView\":\n return this.getShapesFromMediaSetView(\n filesDatasourcesByReadableId,\n dsDefinition.mediaSetView.mediaSetViewLocator,\n );\n case \"restrictedStream\":\n return new Map();\n case \"restrictedView\":\n return new Map();\n case \"restrictedViewV2\":\n return this.getShapesFromRestrictedView(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.restrictedViewV2.restrictedViewRid,\n dsDefinition.restrictedViewV2.propertyMapping,\n ridGenerator,\n );\n case \"stream\":\n return this.getShapesFromStream(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.stream.streamLocator.streamLocatorRid,\n dsDefinition.stream.streamLocator.branchId,\n dsDefinition.stream.propertyMapping,\n ridGenerator,\n );\n case \"streamV2\":\n return this.getShapesFromStream(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.streamV2.streamLocator.streamLocatorRid,\n dsDefinition.streamV2.streamLocator.branchId,\n dsDefinition.streamV2.propertyMapping,\n ridGenerator,\n );\n case \"streamV3\":\n const mapping = new Map<PropertyTypeRid, ColumnName>();\n for (\n const [rid, info] of Object.entries(\n dsDefinition.streamV3.propertyMapping,\n )\n ) {\n mapping.set(\n rid as PropertyTypeRid,\n this.getColumnNameFromPropertyTypeMappingInfo(info),\n );\n }\n return this.getShapesFromStream(\n datasourcesByReadableId,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n columnReadableIds,\n dsDefinition.streamV3.streamLocator.streamLocatorRid,\n dsDefinition.streamV3.streamLocator.branchId,\n mapping,\n ridGenerator,\n );\n case \"table\":\n return new Map();\n case \"timeSeries\":\n return this.getShapesFromTimeSeriesSync(\n timeSeriesSyncRidByReadableId,\n propertyTypes,\n dsDefinition.timeSeries.properties,\n dsDefinition.timeSeries.timeSeriesSyncRid,\n );\n default:\n return new Map();\n }\n }\n\n private getShapesFromGeotimeSeriesIntegration(\n geotimeSeriesIntegrationRidByReadableId: Map<\n ReadableId,\n GeotimeSeriesIntegrationRid\n >,\n geotimeSeriesIntegrationRid: GeotimeSeriesIntegrationRid,\n ): Map<ReadableId, InputShape> {\n let readableId: ReadableId | undefined;\n for (\n const [id, rid] of geotimeSeriesIntegrationRidByReadableId.entries()\n ) {\n if (rid === geotimeSeriesIntegrationRid) {\n readableId = id;\n break;\n }\n }\n if (!readableId) return new Map();\n\n const shape: GeotimeSeriesIntegrationShape = {\n about: createLocalizedAbout(readableId, \"\"),\n };\n\n return new Map([[readableId, {\n type: \"geotimeSeriesIntegration\",\n geotimeSeriesIntegration: shape,\n }]]);\n }\n\n private getShapesFromMediaSetView(\n filesDatasourcesByReadableId: BiMap<ReadableId, FilesDatasourceLocator>,\n mediaSetViewLocator: MediaSetViewLocator, // MediaSetViewLocator from OMS types\n ): Map<ReadableId, InputShape> {\n // Find the matching files datasource by comparing mediaSetRid\n let readableId: ReadableId | undefined;\n for (const [id, locator] of filesDatasourcesByReadableId.entries()) {\n if (\n locator.type === \"mediaSet\"\n && locator.mediaSet.rid === mediaSetViewLocator.mediaSetRid\n ) {\n readableId = id;\n break;\n }\n }\n\n if (!readableId) return new Map();\n\n const shape: FilesDatasourceInputShape = {\n about: createLocalizedAbout(readableId, \"\"),\n supportedTypes: [\n {\n type: \"mediaSet\",\n mediaSet: {\n pathPolicy: { type: \"any\", any: {} as Void },\n mediaSchema: { type: \"any\", any: {} as Void },\n },\n },\n ],\n };\n\n return new Map([[readableId, {\n type: \"filesDatasource\",\n filesDatasource: shape,\n }]]);\n }\n\n private getShapesFromTimeSeriesSync(\n timeSeriesSyncRidByReadableId: BiMap<ReadableId, TimeSeriesSyncRid>,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyTypeRids: Array<PropertyTypeRid>,\n timeSeriesSyncRid: TimeSeriesSyncRid,\n ): Map<ReadableId, InputShape> {\n const readableId: ReadableId | undefined = timeSeriesSyncRidByReadableId\n .inverse().get(timeSeriesSyncRid);\n\n if (!readableId) return new Map();\n\n const timeSeriesSyncTypes = new Set(\n propertyTypeRids.map(rid => {\n const type = propertyTypes.get(rid);\n return type ? this.getTimeSeriesSyncType(type) : undefined;\n }).filter((t): t is TimeSeriesSyncType => t !== undefined),\n );\n\n if (timeSeriesSyncTypes.size !== 1) {\n throw new Error(\"Invalid time series types\");\n }\n\n const syncType = Array.from(timeSeriesSyncTypes)[0];\n const shape: TimeSeriesSyncShape = {\n about: createLocalizedAbout(readableId, \"\"),\n type: syncType,\n };\n\n return new Map([[readableId, {\n type: \"timeSeriesSync\",\n timeSeriesSync: shape,\n }]]);\n }\n\n private getShapesFromStream<T>(\n datasourcesByReadableId: Map<ReadableId, DatasourceLocator>,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyReadableIdsByRid: Map<PropertyTypeRid, ReadableId>,\n propertyOutputShapeMap: Map<ReadableId, PropertyOutputShape>,\n columnReadableIds: Map<ReadableId, ResolvedDatasourceColumnShape>,\n streamLocatorRid: StreamLocatorRid,\n branchId: BranchId,\n propertyMapping: Map<PropertyTypeRid, T> | Record<string, T>,\n ridGenerator: OntologyRidGenerator,\n ): Map<ReadableId, InputShape> {\n const streamLocator: DatasourceLocator = {\n type: \"stream\",\n stream: {\n rid: streamLocatorRid,\n branch: branchId,\n } as StreamLocator,\n };\n\n let datasourceReadableId: ReadableId | undefined;\n for (const [id, loc] of datasourcesByReadableId.entries()) {\n if (\n loc.type === \"stream\" && loc.stream.rid === streamLocator.stream.rid\n ) {\n datasourceReadableId = id;\n break;\n }\n }\n if (!datasourceReadableId) return new Map();\n\n const propertyMappingMap = propertyMapping instanceof Map\n ? propertyMapping\n : new Map(Object.entries(propertyMapping) as Array<[PropertyTypeRid, T]>);\n\n const columnShapes = this.getColumnShapes(\n streamLocator,\n columnReadableIds,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n datasourceReadableId,\n propertyMappingMap,\n ridGenerator,\n (val: T) => (typeof val === \"string\" ? val : (val as any)),\n );\n\n const datasourceInputShape: TabularDatasourceInputShape = {\n about: createLocalizedAbout(datasourceReadableId, \"\"),\n supportedTypes: [\"STREAM\"],\n schema: Array.from(columnShapes.keys()).map(id =>\n ridGenerator.toBlockInternalId(id)\n ),\n };\n\n const result = new Map<ReadableId, InputShape>([\n [datasourceReadableId, {\n type: \"tabularDatasource\",\n tabularDatasource: datasourceInputShape,\n }],\n ]);\n\n for (const [id, colShape] of columnShapes.entries()) {\n result.set(id, { type: \"datasourceColumn\", datasourceColumn: colShape });\n }\n\n return result;\n }\n\n private getShapesFromDataset(\n datasourcesByReadableId: Map<ReadableId, DatasourceLocator>,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyReadableIdsByRid: Map<PropertyTypeRid, ReadableId>,\n propertyOutputShapeMap: Map<ReadableId, PropertyOutputShape>,\n columnReadableIds: Map<ReadableId, ResolvedDatasourceColumnShape>,\n datasetRid: DatasetRid,\n branchId: BranchId,\n propertyMapping: Record<ReadableId, PropertyTypeMappingInfo>,\n ridGenerator: OntologyRidGenerator,\n ): Map<ReadableId, InputShape> {\n const datasourceLocator: DatasourceLocator = {\n type: \"dataset\",\n dataset: {\n rid: datasetRid,\n branch: branchId,\n },\n };\n\n let datasourceReadableId: ReadableId | undefined;\n for (const [id, loc] of datasourcesByReadableId.entries()) {\n if (\n loc.type === \"dataset\"\n && loc.dataset.rid === datasourceLocator.dataset.rid\n ) {\n datasourceReadableId = id;\n break;\n }\n }\n if (!datasourceReadableId) return new Map();\n\n const propertyMappingMap = new Map(\n Object.entries(propertyMapping) as Array<\n [PropertyTypeRid, PropertyTypeMappingInfo]\n >,\n );\n\n const columnShapes = this.getColumnShapes(\n datasourceLocator,\n columnReadableIds,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n datasourceReadableId,\n propertyMappingMap,\n ridGenerator,\n (val: PropertyTypeMappingInfo) => {\n if (val.type === \"column\") return val.column;\n if (val.type === \"struct\") return val.struct.column;\n throw new Error(\"Error extracting column shapes\");\n },\n );\n\n const datasourceInputShape: TabularDatasourceInputShape = {\n about: createLocalizedAbout(datasourceReadableId, \"\"),\n supportedTypes: [\"DATASET\", \"RESTRICTED_VIEW\"],\n schema: Array.from(columnShapes.keys()).map(id =>\n ridGenerator.toBlockInternalId(id)\n ),\n };\n\n const result = new Map<ReadableId, InputShape>([\n [datasourceReadableId, {\n type: \"tabularDatasource\",\n tabularDatasource: datasourceInputShape,\n }],\n ]);\n\n for (const [id, colShape] of Array.from(columnShapes.entries())) {\n result.set(id, { type: \"datasourceColumn\", datasourceColumn: colShape });\n }\n\n return result;\n }\n\n private getShapesFromRestrictedView(\n datasourcesByReadableId: Map<ReadableId, DatasourceLocator>,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyReadableIdsByRid: Map<PropertyTypeRid, ReadableId>,\n propertyOutputShapeMap: Map<ReadableId, PropertyOutputShape>,\n columnReadableIds: Map<ReadableId, ResolvedDatasourceColumnShape>,\n restrictedViewRid: RestrictedViewRid,\n propertyMapping: Record<ReadableId, PropertyTypeMappingInfo>,\n ridGenerator: OntologyRidGenerator,\n ): Map<ReadableId, InputShape> {\n const datasourceLocator: DatasourceLocator = {\n type: \"restrictedView\",\n restrictedView: {\n rid: restrictedViewRid,\n },\n };\n\n let datasourceReadableId: ReadableId | undefined;\n for (const [id, loc] of datasourcesByReadableId.entries()) {\n if (\n loc.type === \"restrictedView\"\n && loc.restrictedView.rid === datasourceLocator.restrictedView.rid\n ) {\n datasourceReadableId = id;\n break;\n }\n }\n if (!datasourceReadableId) return new Map();\n\n const propertyMappingMap = new Map(\n Object.entries(propertyMapping) as Array<\n [PropertyTypeRid, PropertyTypeMappingInfo]\n >,\n );\n\n const columnShapes = this.getColumnShapes(\n datasourceLocator,\n columnReadableIds,\n propertyTypes,\n propertyReadableIdsByRid,\n propertyOutputShapeMap,\n datasourceReadableId,\n propertyMappingMap,\n ridGenerator,\n (val: PropertyTypeMappingInfo) => {\n if (val.type === \"column\") return val.column;\n if (val.type === \"struct\") return val.struct.column;\n throw new Error(\"Error extracting column shapes\");\n },\n );\n\n const datasourceInputShape: TabularDatasourceInputShape = {\n about: createLocalizedAbout(datasourceReadableId, \"\"),\n supportedTypes: [\"RESTRICTED_VIEW\"],\n schema: Array.from(columnShapes.keys()).map(id =>\n ridGenerator.toBlockInternalId(id)\n ),\n };\n\n const result = new Map<ReadableId, InputShape>([\n [datasourceReadableId, {\n type: \"tabularDatasource\",\n tabularDatasource: datasourceInputShape,\n }],\n ]);\n\n for (const [id, colShape] of Array.from(columnShapes.entries())) {\n result.set(id, { type: \"datasourceColumn\", datasourceColumn: colShape });\n }\n\n return result;\n }\n\n private getColumnShapes<T>(\n datasourceLocator: DatasourceLocator,\n columnReadableIds: Map<ReadableId, ResolvedDatasourceColumnShape>,\n propertyTypes: Map<PropertyTypeRid, Type>,\n propertyReadableIdsByRid: Map<PropertyTypeRid, ReadableId>,\n propertyOutputShapeMap: Map<ReadableId, PropertyOutputShape>,\n datasourceReadableId: ReadableId,\n columns: Map<PropertyTypeRid, T>,\n ridGenerator: OntologyRidGenerator,\n columnNameGetter: (val: T) => string,\n ): Map<ReadableId, DatasourceColumnShape> {\n const result = new Map<ReadableId, DatasourceColumnShape>();\n\n for (const [propertyTypeRid, value] of Array.from(columns.entries())) {\n const propertyReadableId = propertyReadableIdsByRid.get(propertyTypeRid);\n if (!propertyReadableId) continue;\n\n const propertyOutputShape = propertyOutputShapeMap.get(\n propertyReadableId,\n );\n if (!propertyOutputShape) continue;\n\n const resolvedShape: ResolvedDatasourceColumnShape = {\n datasource: datasourceLocator,\n name: columnNameGetter(value),\n };\n\n let columnReadableId: ReadableId | undefined;\n for (const [id, shape] of columnReadableIds.entries()) {\n if (\n shape.name === resolvedShape.name\n && this.datasourceLocatorsMatch(\n shape.datasource,\n resolvedShape.datasource,\n )\n ) {\n columnReadableId = id;\n break;\n }\n }\n if (!columnReadableId) continue;\n\n const propertyType = propertyTypes.get(propertyTypeRid);\n if (!propertyType) continue;\n\n const columnShape: DatasourceColumnShape = {\n about: createLocalizedAbout(\n propertyOutputShape.about.fallbackTitle,\n \"\",\n ),\n type: {\n type: \"concrete\",\n concrete: this.typeToConcreteDataType(propertyType),\n },\n datasource: ridGenerator.toBlockInternalId(datasourceReadableId),\n typeclasses: [],\n };\n\n result.set(columnReadableId, columnShape);\n }\n\n return result;\n }\n\n private getColumnNameFromPropertyTypeMappingInfo(\n info: PropertyTypeMappingInfo,\n ): ColumnName {\n if (info.type === \"column\") return info.column;\n if (info.type === \"struct\") return info.struct.column;\n throw new Error(\"Edits not supported yet\");\n }\n\n private extractValueTypeInputShapeIfPresent(\n valueTypeReference: any,\n displayName: string,\n type: Type,\n blockShapes: BlockShapes,\n ridGenerator: OntologyRidGenerator,\n ): void {\n if (!valueTypeReference) return;\n\n const valueTypeInput: InputShape = {\n type: \"valueType\",\n valueType: {\n about: createLocalizedAbout(`Value Type Input for ${displayName}`, \"\"),\n baseType: typeToMarketplaceBaseType(type),\n },\n };\n\n const mappingEntry = ridGenerator.valueTypeMappingForReference(\n valueTypeReference,\n );\n blockShapes.inputShapes.set(mappingEntry.input, valueTypeInput);\n }\n\n private getTimeSeriesSyncType(type: Type): TimeSeriesSyncType | undefined {\n if (type.type !== \"experimentalTimeDependentV1\") return undefined;\n\n const metadata = type.experimentalTimeDependentV1.seriesValueMetadata;\n const isNumeric = metadata.type === \"numeric\";\n\n return isNumeric ? \"NUMERIC\" : \"CATEGORICAL\";\n }\n\n private convertPropertyTypeToMarketplaceType(type: Type): any {\n return typeToMarketplaceObjectPropertyType(type);\n }\n\n private typeToConcreteDataType(type: Type): any {\n return typeToConcreteDataType(type);\n }\n\n private datasourceLocatorsMatch(\n a: DatasourceLocator,\n b: DatasourceLocator,\n ): boolean {\n if (a.type !== b.type) return false;\n\n switch (a.type) {\n case \"dataset\":\n return b.type === \"dataset\"\n && a.dataset.rid === b.dataset.rid\n && a.dataset.branch === b.dataset.branch;\n case \"stream\":\n return b.type === \"stream\"\n && a.stream.rid === b.stream.rid\n && a.stream.branch === b.stream.branch;\n case \"restrictedView\":\n return b.type === \"restrictedView\"\n && a.restrictedView.rid === b.restrictedView.rid;\n default:\n return false;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA0CA,SACEA,sBAAsB,EACtBC,yBAAyB,EACzBC,mCAAmC,QAC9B,oBAAoB;;AAE3B;AACA;AACA;AACA,SAASC,oBAAoBA,CAC3BC,aAAqB,EACrBC,mBAA2B,EACG;EAC9B,OAAO;IACLD,aAAa;IACbC,mBAAmB;IACnBC,cAAc,EAAE,CAAC,CAAC;IAClBC,oBAAoB,EAAE,CAAC;EACzB,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,CAAC;EAGpCC,WAAWA,CAACC,aAAsB,EAAE;IAClC,IAAI,CAACA,aAAa,GAAGA,aAAa;EACpC;;EAEA;AACF;AACA;EACEC,OAAOA,CACLC,gBAA4B,EAC5BC,UAAiC,EACjCC,YAAkC,EACrB;IACb;IACA,MAAMC,wBAAwB,GAAGD,YAAY,CAACE,mBAAmB,CAAC,CAAC,CAChEC,OAAO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