@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.
Files changed (302) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/maker-experimental.mjs +6 -0
  3. package/build/browser/api/defineOntologyV2.js +35 -0
  4. package/build/browser/api/defineOntologyV2.js.map +1 -0
  5. package/build/browser/cli/main.js +120 -0
  6. package/build/browser/cli/main.js.map +1 -0
  7. package/build/browser/cli/marketplaceSerialization/BlockGeneratorResult.js +2 -0
  8. package/build/browser/cli/marketplaceSerialization/BlockGeneratorResult.js.map +1 -0
  9. package/build/browser/cli/marketplaceSerialization/CodeBlockSetSpec.js +2 -0
  10. package/build/browser/cli/marketplaceSerialization/CodeBlockSetSpec.js.map +1 -0
  11. package/build/browser/cli/marketplaceSerialization/CodeBlockSpec.js +53 -0
  12. package/build/browser/cli/marketplaceSerialization/CodeBlockSpec.js.map +1 -0
  13. package/build/browser/cli/marketplaceSerialization/StoreManifestEntry.js +2 -0
  14. package/build/browser/cli/marketplaceSerialization/StoreManifestEntry.js.map +1 -0
  15. package/build/browser/cli/marketplaceSerialization/index.js +2 -0
  16. package/build/browser/cli/marketplaceSerialization/index.js.map +1 -0
  17. package/build/browser/cli/marketplaceSerialization/specGenerators.js +70 -0
  18. package/build/browser/cli/marketplaceSerialization/specGenerators.js.map +1 -0
  19. package/build/browser/cli/marketplaceSerialization/supportingTypes.js +2 -0
  20. package/build/browser/cli/marketplaceSerialization/supportingTypes.js.map +1 -0
  21. package/build/browser/conversion/toConjure/distributeTypeHelper.js +23 -0
  22. package/build/browser/conversion/toConjure/distributeTypeHelper.js.map +1 -0
  23. package/build/browser/conversion/toMarketplace/convertActionHelpers.js +469 -0
  24. package/build/browser/conversion/toMarketplace/convertActionHelpers.js.map +1 -0
  25. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js +96 -0
  26. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -0
  27. package/build/browser/conversion/toMarketplace/convertActionParameters.js +81 -0
  28. package/build/browser/conversion/toMarketplace/convertActionParameters.js.map +1 -0
  29. package/build/browser/conversion/toMarketplace/convertActionSections.js +45 -0
  30. package/build/browser/conversion/toMarketplace/convertActionSections.js.map +1 -0
  31. package/build/browser/conversion/toMarketplace/convertActionValidation.js +160 -0
  32. package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -0
  33. package/build/browser/conversion/toMarketplace/convertActionVisibility.js +41 -0
  34. package/build/browser/conversion/toMarketplace/convertActionVisibility.js.map +1 -0
  35. package/build/browser/conversion/toMarketplace/convertCardinality.js +23 -0
  36. package/build/browser/conversion/toMarketplace/convertCardinality.js.map +1 -0
  37. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js +88 -0
  38. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js.map +1 -0
  39. package/build/browser/conversion/toMarketplace/convertDataConstraintToDataConstraints.js +26 -0
  40. package/build/browser/conversion/toMarketplace/convertDataConstraintToDataConstraints.js.map +1 -0
  41. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +352 -0
  42. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -0
  43. package/build/browser/conversion/toMarketplace/convertInterface.js +75 -0
  44. package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -0
  45. package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +62 -0
  46. package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
  47. package/build/browser/conversion/toMarketplace/convertLink.js +247 -0
  48. package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -0
  49. package/build/browser/conversion/toMarketplace/convertMappingValue.js +76 -0
  50. package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -0
  51. package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js +42 -0
  52. package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -0
  53. package/build/browser/conversion/toMarketplace/convertObject.js +262 -0
  54. package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -0
  55. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +59 -0
  56. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -0
  57. package/build/browser/conversion/toMarketplace/convertOntologyDefinition.js +29 -0
  58. package/build/browser/conversion/toMarketplace/convertOntologyDefinition.js.map +1 -0
  59. package/build/browser/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js +236 -0
  60. package/build/browser/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js.map +1 -0
  61. package/build/browser/conversion/toMarketplace/convertOntologyToValueTypeIr.js +24 -0
  62. package/build/browser/conversion/toMarketplace/convertOntologyToValueTypeIr.js.map +1 -0
  63. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js +35 -0
  64. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -0
  65. package/build/browser/conversion/toMarketplace/convertSpt.js +65 -0
  66. package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -0
  67. package/build/browser/conversion/toMarketplace/convertValueType.js +20 -0
  68. package/build/browser/conversion/toMarketplace/convertValueType.js.map +1 -0
  69. package/build/browser/conversion/toMarketplace/convertValueTypeDataConstraints.js +30 -0
  70. package/build/browser/conversion/toMarketplace/convertValueTypeDataConstraints.js.map +1 -0
  71. package/build/browser/conversion/toMarketplace/convertValueTypesToIr.js +34 -0
  72. package/build/browser/conversion/toMarketplace/convertValueTypesToIr.js.map +1 -0
  73. package/build/browser/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js +83 -0
  74. package/build/browser/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js.map +1 -0
  75. package/build/browser/conversion/toMarketplace/getFormContentOrdering.js +39 -0
  76. package/build/browser/conversion/toMarketplace/getFormContentOrdering.js.map +1 -0
  77. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +146 -0
  78. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
  79. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +156 -0
  80. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -0
  81. package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js +442 -0
  82. package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js.map +1 -0
  83. package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js +562 -0
  84. package/build/browser/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js.map +1 -0
  85. package/build/browser/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js +513 -0
  86. package/build/browser/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js.map +1 -0
  87. package/build/browser/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js +274 -0
  88. package/build/browser/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js.map +1 -0
  89. package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js +425 -0
  90. package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js.map +1 -0
  91. package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js +677 -0
  92. package/build/browser/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js.map +1 -0
  93. package/build/browser/conversion/toMarketplace/typeVisitors.js +615 -0
  94. package/build/browser/conversion/toMarketplace/typeVisitors.js.map +1 -0
  95. package/build/browser/index.js +2 -0
  96. package/build/browser/index.js.map +1 -1
  97. package/build/browser/util/generateRid.js +476 -0
  98. package/build/browser/util/generateRid.js.map +1 -0
  99. package/build/cjs/ActionTypeShapeExtractor-5IVLHAPH.cjs +395 -0
  100. package/build/cjs/ActionTypeShapeExtractor-5IVLHAPH.cjs.map +1 -0
  101. package/build/cjs/chunk-AWYOBJ25.cjs +440 -0
  102. package/build/cjs/chunk-AWYOBJ25.cjs.map +1 -0
  103. package/build/cjs/index.cjs +3965 -2663
  104. package/build/cjs/index.cjs.map +1 -1
  105. package/build/cjs/index.d.cts +103 -1
  106. package/build/esm/api/defineOntologyV2.js +35 -0
  107. package/build/esm/api/defineOntologyV2.js.map +1 -0
  108. package/build/esm/cli/main.js +120 -0
  109. package/build/esm/cli/main.js.map +1 -0
  110. package/build/esm/cli/marketplaceSerialization/BlockGeneratorResult.js +2 -0
  111. package/build/esm/cli/marketplaceSerialization/BlockGeneratorResult.js.map +1 -0
  112. package/build/esm/cli/marketplaceSerialization/CodeBlockSetSpec.js +2 -0
  113. package/build/esm/cli/marketplaceSerialization/CodeBlockSetSpec.js.map +1 -0
  114. package/build/esm/cli/marketplaceSerialization/CodeBlockSpec.js +53 -0
  115. package/build/esm/cli/marketplaceSerialization/CodeBlockSpec.js.map +1 -0
  116. package/build/esm/cli/marketplaceSerialization/StoreManifestEntry.js +2 -0
  117. package/build/esm/cli/marketplaceSerialization/StoreManifestEntry.js.map +1 -0
  118. package/build/esm/cli/marketplaceSerialization/index.js +2 -0
  119. package/build/esm/cli/marketplaceSerialization/index.js.map +1 -0
  120. package/build/esm/cli/marketplaceSerialization/specGenerators.js +70 -0
  121. package/build/esm/cli/marketplaceSerialization/specGenerators.js.map +1 -0
  122. package/build/esm/cli/marketplaceSerialization/supportingTypes.js +2 -0
  123. package/build/esm/cli/marketplaceSerialization/supportingTypes.js.map +1 -0
  124. package/build/esm/conversion/toConjure/distributeTypeHelper.js +23 -0
  125. package/build/esm/conversion/toConjure/distributeTypeHelper.js.map +1 -0
  126. package/build/esm/conversion/toMarketplace/convertActionHelpers.js +469 -0
  127. package/build/esm/conversion/toMarketplace/convertActionHelpers.js.map +1 -0
  128. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js +96 -0
  129. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -0
  130. package/build/esm/conversion/toMarketplace/convertActionParameters.js +81 -0
  131. package/build/esm/conversion/toMarketplace/convertActionParameters.js.map +1 -0
  132. package/build/esm/conversion/toMarketplace/convertActionSections.js +45 -0
  133. package/build/esm/conversion/toMarketplace/convertActionSections.js.map +1 -0
  134. package/build/esm/conversion/toMarketplace/convertActionValidation.js +160 -0
  135. package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -0
  136. package/build/esm/conversion/toMarketplace/convertActionVisibility.js +41 -0
  137. package/build/esm/conversion/toMarketplace/convertActionVisibility.js.map +1 -0
  138. package/build/esm/conversion/toMarketplace/convertCardinality.js +23 -0
  139. package/build/esm/conversion/toMarketplace/convertCardinality.js.map +1 -0
  140. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js +88 -0
  141. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js.map +1 -0
  142. package/build/esm/conversion/toMarketplace/convertDataConstraintToDataConstraints.js +26 -0
  143. package/build/esm/conversion/toMarketplace/convertDataConstraintToDataConstraints.js.map +1 -0
  144. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +352 -0
  145. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -0
  146. package/build/esm/conversion/toMarketplace/convertInterface.js +75 -0
  147. package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -0
  148. package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +62 -0
  149. package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
  150. package/build/esm/conversion/toMarketplace/convertLink.js +247 -0
  151. package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -0
  152. package/build/esm/conversion/toMarketplace/convertMappingValue.js +76 -0
  153. package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -0
  154. package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js +42 -0
  155. package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -0
  156. package/build/esm/conversion/toMarketplace/convertObject.js +262 -0
  157. package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -0
  158. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +59 -0
  159. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -0
  160. package/build/esm/conversion/toMarketplace/convertOntologyDefinition.js +29 -0
  161. package/build/esm/conversion/toMarketplace/convertOntologyDefinition.js.map +1 -0
  162. package/build/esm/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js +236 -0
  163. package/build/esm/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.js.map +1 -0
  164. package/build/esm/conversion/toMarketplace/convertOntologyToValueTypeIr.js +24 -0
  165. package/build/esm/conversion/toMarketplace/convertOntologyToValueTypeIr.js.map +1 -0
  166. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js +35 -0
  167. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -0
  168. package/build/esm/conversion/toMarketplace/convertSpt.js +65 -0
  169. package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -0
  170. package/build/esm/conversion/toMarketplace/convertValueType.js +20 -0
  171. package/build/esm/conversion/toMarketplace/convertValueType.js.map +1 -0
  172. package/build/esm/conversion/toMarketplace/convertValueTypeDataConstraints.js +30 -0
  173. package/build/esm/conversion/toMarketplace/convertValueTypeDataConstraints.js.map +1 -0
  174. package/build/esm/conversion/toMarketplace/convertValueTypesToIr.js +34 -0
  175. package/build/esm/conversion/toMarketplace/convertValueTypesToIr.js.map +1 -0
  176. package/build/esm/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js +83 -0
  177. package/build/esm/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.js.map +1 -0
  178. package/build/esm/conversion/toMarketplace/getFormContentOrdering.js +39 -0
  179. package/build/esm/conversion/toMarketplace/getFormContentOrdering.js.map +1 -0
  180. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +146 -0
  181. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
  182. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +156 -0
  183. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -0
  184. package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js +442 -0
  185. package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.js.map +1 -0
  186. package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js +562 -0
  187. package/build/esm/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.js.map +1 -0
  188. package/build/esm/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js +513 -0
  189. package/build/esm/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.js.map +1 -0
  190. package/build/esm/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js +274 -0
  191. package/build/esm/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.js.map +1 -0
  192. package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js +425 -0
  193. package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.js.map +1 -0
  194. package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js +677 -0
  195. package/build/esm/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.js.map +1 -0
  196. package/build/esm/conversion/toMarketplace/typeVisitors.js +615 -0
  197. package/build/esm/conversion/toMarketplace/typeVisitors.js.map +1 -0
  198. package/build/esm/index.js +2 -0
  199. package/build/esm/index.js.map +1 -1
  200. package/build/esm/util/generateRid.js +476 -0
  201. package/build/esm/util/generateRid.js.map +1 -0
  202. package/build/types/api/defineOntologyV2.d.ts +3 -0
  203. package/build/types/api/defineOntologyV2.d.ts.map +1 -0
  204. package/build/types/cli/main.d.ts +1 -0
  205. package/build/types/cli/main.d.ts.map +1 -0
  206. package/build/types/cli/marketplaceSerialization/BlockGeneratorResult.d.ts +69 -0
  207. package/build/types/cli/marketplaceSerialization/BlockGeneratorResult.d.ts.map +1 -0
  208. package/build/types/cli/marketplaceSerialization/CodeBlockSetSpec.d.ts +60 -0
  209. package/build/types/cli/marketplaceSerialization/CodeBlockSetSpec.d.ts.map +1 -0
  210. package/build/types/cli/marketplaceSerialization/CodeBlockSpec.d.ts +48 -0
  211. package/build/types/cli/marketplaceSerialization/CodeBlockSpec.d.ts.map +1 -0
  212. package/build/types/cli/marketplaceSerialization/StoreManifestEntry.d.ts +13 -0
  213. package/build/types/cli/marketplaceSerialization/StoreManifestEntry.d.ts.map +1 -0
  214. package/build/types/cli/marketplaceSerialization/index.d.ts +11 -0
  215. package/build/types/cli/marketplaceSerialization/index.d.ts.map +1 -0
  216. package/build/types/cli/marketplaceSerialization/specGenerators.d.ts +10 -0
  217. package/build/types/cli/marketplaceSerialization/specGenerators.d.ts.map +1 -0
  218. package/build/types/cli/marketplaceSerialization/supportingTypes.d.ts +31 -0
  219. package/build/types/cli/marketplaceSerialization/supportingTypes.d.ts.map +1 -0
  220. package/build/types/conversion/toConjure/distributeTypeHelper.d.ts +3 -0
  221. package/build/types/conversion/toConjure/distributeTypeHelper.d.ts.map +1 -0
  222. package/build/types/conversion/toMarketplace/convertActionHelpers.d.ts +7 -0
  223. package/build/types/conversion/toMarketplace/convertActionHelpers.d.ts.map +1 -0
  224. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts +4 -0
  225. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts.map +1 -0
  226. package/build/types/conversion/toMarketplace/convertActionParameters.d.ts +4 -0
  227. package/build/types/conversion/toMarketplace/convertActionParameters.d.ts.map +1 -0
  228. package/build/types/conversion/toMarketplace/convertActionSections.d.ts +4 -0
  229. package/build/types/conversion/toMarketplace/convertActionSections.d.ts.map +1 -0
  230. package/build/types/conversion/toMarketplace/convertActionValidation.d.ts +4 -0
  231. package/build/types/conversion/toMarketplace/convertActionValidation.d.ts.map +1 -0
  232. package/build/types/conversion/toMarketplace/convertActionVisibility.d.ts +2 -0
  233. package/build/types/conversion/toMarketplace/convertActionVisibility.d.ts.map +1 -0
  234. package/build/types/conversion/toMarketplace/convertCardinality.d.ts +3 -0
  235. package/build/types/conversion/toMarketplace/convertCardinality.d.ts.map +1 -0
  236. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts +3 -0
  237. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts.map +1 -0
  238. package/build/types/conversion/toMarketplace/convertDataConstraintToDataConstraints.d.ts +2 -0
  239. package/build/types/conversion/toMarketplace/convertDataConstraintToDataConstraints.d.ts.map +1 -0
  240. package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts +4 -0
  241. package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -0
  242. package/build/types/conversion/toMarketplace/convertInterface.d.ts +4 -0
  243. package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -0
  244. package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +4 -0
  245. package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
  246. package/build/types/conversion/toMarketplace/convertLink.d.ts +9 -0
  247. package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -0
  248. package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +4 -0
  249. package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -0
  250. package/build/types/conversion/toMarketplace/convertNullabilityToDataConstraint.d.ts +6 -0
  251. package/build/types/conversion/toMarketplace/convertNullabilityToDataConstraint.d.ts.map +1 -0
  252. package/build/types/conversion/toMarketplace/convertObject.d.ts +10 -0
  253. package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -0
  254. package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts +4 -0
  255. package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts.map +1 -0
  256. package/build/types/conversion/toMarketplace/convertOntologyDefinition.d.ts +4 -0
  257. package/build/types/conversion/toMarketplace/convertOntologyDefinition.d.ts.map +1 -0
  258. package/build/types/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.d.ts +4 -0
  259. package/build/types/conversion/toMarketplace/convertOntologyDefinitionToWireBlockData.d.ts.map +1 -0
  260. package/build/types/conversion/toMarketplace/convertOntologyToValueTypeIr.d.ts +3 -0
  261. package/build/types/conversion/toMarketplace/convertOntologyToValueTypeIr.d.ts.map +1 -0
  262. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts +3 -0
  263. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts.map +1 -0
  264. package/build/types/conversion/toMarketplace/convertSpt.d.ts +4 -0
  265. package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -0
  266. package/build/types/conversion/toMarketplace/convertValueType.d.ts +4 -0
  267. package/build/types/conversion/toMarketplace/convertValueType.d.ts.map +1 -0
  268. package/build/types/conversion/toMarketplace/convertValueTypeDataConstraints.d.ts +2 -0
  269. package/build/types/conversion/toMarketplace/convertValueTypeDataConstraints.d.ts.map +1 -0
  270. package/build/types/conversion/toMarketplace/convertValueTypesToIr.d.ts +3 -0
  271. package/build/types/conversion/toMarketplace/convertValueTypesToIr.d.ts.map +1 -0
  272. package/build/types/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.d.ts +2 -0
  273. package/build/types/conversion/toMarketplace/dataConstraintToPropertyTypeDataConstraint.d.ts.map +1 -0
  274. package/build/types/conversion/toMarketplace/getFormContentOrdering.d.ts +3 -0
  275. package/build/types/conversion/toMarketplace/getFormContentOrdering.d.ts.map +1 -0
  276. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +4 -0
  277. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
  278. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts +4 -0
  279. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts.map +1 -0
  280. package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.d.ts +13 -0
  281. package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.d.ts.map +1 -0
  282. package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.d.ts +1 -0
  283. package/build/types/conversion/toMarketplace/shapeExtractors/ActionTypeShapeExtractor.test.d.ts.map +1 -0
  284. package/build/types/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.d.ts +11 -0
  285. package/build/types/conversion/toMarketplace/shapeExtractors/IrShapeExtractor.d.ts.map +1 -0
  286. package/build/types/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.d.ts +43 -0
  287. package/build/types/conversion/toMarketplace/shapeExtractors/LinkTypeShapeExtractor.d.ts.map +1 -0
  288. package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.d.ts +28 -0
  289. package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.d.ts.map +1 -0
  290. package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.d.ts +1 -0
  291. package/build/types/conversion/toMarketplace/shapeExtractors/ObjectTypeShapeExtractor.test.d.ts.map +1 -0
  292. package/build/types/conversion/toMarketplace/typeVisitors.d.ts +17 -0
  293. package/build/types/conversion/toMarketplace/typeVisitors.d.ts.map +1 -0
  294. package/build/types/index.d.ts +3 -0
  295. package/build/types/index.d.ts.map +1 -1
  296. package/build/types/util/generateRid.d.ts +216 -0
  297. package/build/types/util/generateRid.d.ts.map +1 -0
  298. package/package.json +10 -4
  299. package/build/cjs/chunk-ZPP374PZ.cjs +0 -17
  300. package/build/cjs/chunk-ZPP374PZ.cjs.map +0 -1
  301. package/build/cjs/prompt-VSXFWPU4.cjs +0 -955
  302. package/build/cjs/prompt-VSXFWPU4.cjs.map +0 -1
@@ -0,0 +1,442 @@
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 { ReadableIdGenerator } from "../../../util/generateRid.js";
18
+
19
+ /**
20
+ * Helper to create LocalizedTitleAndDescription with empty localizations
21
+ */
22
+ function createLocalizedAbout(fallbackTitle, fallbackDescription) {
23
+ return {
24
+ fallbackTitle,
25
+ fallbackDescription: fallbackDescription ?? "",
26
+ localizedTitle: {},
27
+ localizedDescription: {}
28
+ };
29
+ }
30
+
31
+ /**
32
+ * Converts OntologyIR BaseParameterType to marketplace BaseParameterType.
33
+ * Matches the Java BaseParameterTypeConverter visitor pattern.
34
+ */
35
+ class BaseParameterTypeConverter {
36
+ constructor(objectTypeIds, interfaceTypes) {
37
+ this.objectTypeIds = objectTypeIds ?? {};
38
+ this.interfaceTypes = interfaceTypes ?? {};
39
+ }
40
+ convert(parameterType) {
41
+ const pt = parameterType;
42
+ const t = pt.type;
43
+ switch (t) {
44
+ // Simple types - return {type: "name", name: {}}
45
+ case "boolean":
46
+ return {
47
+ type: "boolean",
48
+ boolean: {}
49
+ };
50
+ case "booleanList":
51
+ return {
52
+ type: "booleanList",
53
+ booleanList: {}
54
+ };
55
+ case "integer":
56
+ return {
57
+ type: "integer",
58
+ integer: {}
59
+ };
60
+ case "integerList":
61
+ return {
62
+ type: "integerList",
63
+ integerList: {}
64
+ };
65
+ case "long":
66
+ return {
67
+ type: "long",
68
+ long: {}
69
+ };
70
+ case "longList":
71
+ return {
72
+ type: "longList",
73
+ longList: {}
74
+ };
75
+ case "double":
76
+ return {
77
+ type: "double",
78
+ double: {}
79
+ };
80
+ case "doubleList":
81
+ return {
82
+ type: "doubleList",
83
+ doubleList: {}
84
+ };
85
+ case "string":
86
+ return {
87
+ type: "string",
88
+ string: {}
89
+ };
90
+ case "stringList":
91
+ return {
92
+ type: "stringList",
93
+ stringList: {}
94
+ };
95
+ case "decimal":
96
+ {
97
+ const dec = pt.decimal;
98
+ return {
99
+ type: "decimal",
100
+ decimal: {
101
+ precision: dec?.precision,
102
+ scale: dec?.scale
103
+ }
104
+ };
105
+ }
106
+ case "decimalList":
107
+ {
108
+ const dec = pt.decimalList;
109
+ return {
110
+ type: "decimalList",
111
+ decimalList: {
112
+ precision: dec?.precision,
113
+ scale: dec?.scale
114
+ }
115
+ };
116
+ }
117
+ case "geohash":
118
+ return {
119
+ type: "geohash",
120
+ geohash: {}
121
+ };
122
+ case "geohashList":
123
+ return {
124
+ type: "geohashList",
125
+ geohashList: {}
126
+ };
127
+ case "geoshape":
128
+ return {
129
+ type: "geoshape",
130
+ geoshape: {}
131
+ };
132
+ case "geoshapeList":
133
+ return {
134
+ type: "geoshapeList",
135
+ geoshapeList: {}
136
+ };
137
+ case "timeSeriesReference":
138
+ return {
139
+ type: "timeSeriesReference",
140
+ timeSeriesReference: {}
141
+ };
142
+ case "timestamp":
143
+ return {
144
+ type: "timestamp",
145
+ timestamp: {}
146
+ };
147
+ case "timestampList":
148
+ return {
149
+ type: "timestampList",
150
+ timestampList: {}
151
+ };
152
+ case "date":
153
+ return {
154
+ type: "date",
155
+ date: {}
156
+ };
157
+ case "dateList":
158
+ return {
159
+ type: "dateList",
160
+ dateList: {}
161
+ };
162
+ case "attachment":
163
+ return {
164
+ type: "attachment",
165
+ attachment: {}
166
+ };
167
+ case "attachmentList":
168
+ return {
169
+ type: "attachmentList",
170
+ attachmentList: {}
171
+ };
172
+ case "marking":
173
+ return {
174
+ type: "marking",
175
+ marking: {}
176
+ };
177
+ case "markingList":
178
+ return {
179
+ type: "markingList",
180
+ markingList: {}
181
+ };
182
+ case "mediaReference":
183
+ return {
184
+ type: "mediaReference",
185
+ mediaReference: {}
186
+ };
187
+ case "objectTypeReference":
188
+ return {
189
+ type: "objectTypeReference",
190
+ objectTypeReference: {}
191
+ };
192
+ case "geotimeSeriesReference":
193
+ return {
194
+ type: "geotimeSeriesReference",
195
+ geotimeSeriesReference: {}
196
+ };
197
+ case "geotimeSeriesReferenceList":
198
+ return {
199
+ type: "geotimeSeriesReferenceList",
200
+ geotimeSeriesReferenceList: {}
201
+ };
202
+
203
+ // Object reference types - need to look up objectTypeId in knownIdentifiers
204
+ case "objectReference":
205
+ {
206
+ const objRef = pt.objectReference;
207
+ const blockId = objRef ? this.objectTypeIds[objRef.objectTypeId] : undefined;
208
+ return {
209
+ type: "objectReference",
210
+ objectReference: {
211
+ objectTypeId: blockId ?? ""
212
+ }
213
+ };
214
+ }
215
+ case "objectReferenceList":
216
+ {
217
+ const objRef = pt.objectReferenceList;
218
+ const blockId = objRef ? this.objectTypeIds[objRef.objectTypeId] : undefined;
219
+ return {
220
+ type: "objectReferenceList",
221
+ objectReferenceList: {
222
+ objectTypeId: blockId ?? ""
223
+ }
224
+ };
225
+ }
226
+ case "objectSetRid":
227
+ {
228
+ const objRef = pt.objectSetRid;
229
+ const blockId = objRef ? this.objectTypeIds[objRef.objectTypeId] : undefined;
230
+ return {
231
+ type: "objectSetRid",
232
+ objectSetRid: {
233
+ objectTypeId: blockId ?? ""
234
+ }
235
+ };
236
+ }
237
+
238
+ // Interface reference types - need to look up interfaceTypeRid in knownIdentifiers
239
+ case "interfaceReference":
240
+ {
241
+ const ifRef = pt.interfaceReference;
242
+ const blockId = ifRef ? this.interfaceTypes[ifRef.interfaceTypeRid] : undefined;
243
+ return {
244
+ type: "interfaceReference",
245
+ interfaceReference: {
246
+ interfaceTypeRid: blockId ?? ""
247
+ }
248
+ };
249
+ }
250
+ case "interfaceReferenceList":
251
+ {
252
+ const ifRef = pt.interfaceReferenceList;
253
+ const blockId = ifRef ? this.interfaceTypes[ifRef.interfaceTypeRid] : undefined;
254
+ return {
255
+ type: "interfaceReferenceList",
256
+ interfaceReferenceList: {
257
+ interfaceTypeRid: blockId ?? ""
258
+ }
259
+ };
260
+ }
261
+ case "interfaceObjectSetRid":
262
+ {
263
+ const ifRef = pt.interfaceObjectSetRid;
264
+ const blockId = ifRef ? this.interfaceTypes[ifRef.interfaceTypeRid] : undefined;
265
+ return {
266
+ type: "interfaceObjectSetRid",
267
+ interfaceObjectSetRid: {
268
+ interfaceTypeRid: blockId ?? ""
269
+ }
270
+ };
271
+ }
272
+
273
+ // Struct types
274
+ case "struct":
275
+ {
276
+ const structType = pt.struct;
277
+ const convertedFields = {};
278
+ if (structType?.structFieldTypes) {
279
+ for (const [fieldName, fieldType] of Object.entries(structType.structFieldTypes)) {
280
+ convertedFields[fieldName] = this.convertStructField(fieldType);
281
+ }
282
+ }
283
+ return {
284
+ type: "struct",
285
+ struct: {
286
+ structFieldTypes: convertedFields
287
+ }
288
+ };
289
+ }
290
+ case "structList":
291
+ {
292
+ const structType = pt.structList;
293
+ const convertedFields = {};
294
+ if (structType?.structFieldTypes) {
295
+ for (const [fieldName, fieldType] of Object.entries(structType.structFieldTypes)) {
296
+ convertedFields[fieldName] = this.convertStructField(fieldType);
297
+ }
298
+ }
299
+ // Java converts structList to struct (not structList)
300
+ return {
301
+ type: "struct",
302
+ struct: {
303
+ structFieldTypes: convertedFields
304
+ }
305
+ };
306
+ }
307
+ default:
308
+ throw new Error(`Unknown BaseParameterType: ${t}`);
309
+ }
310
+ }
311
+ convertStructField(fieldType) {
312
+ const t = fieldType.type;
313
+ switch (t) {
314
+ case "boolean":
315
+ return {
316
+ type: "boolean",
317
+ boolean: {}
318
+ };
319
+ case "integer":
320
+ return {
321
+ type: "integer",
322
+ integer: {}
323
+ };
324
+ case "long":
325
+ return {
326
+ type: "long",
327
+ long: {}
328
+ };
329
+ case "double":
330
+ return {
331
+ type: "double",
332
+ double: {}
333
+ };
334
+ case "string":
335
+ return {
336
+ type: "string",
337
+ string: {}
338
+ };
339
+ case "date":
340
+ return {
341
+ type: "date",
342
+ date: {}
343
+ };
344
+ case "timestamp":
345
+ return {
346
+ type: "timestamp",
347
+ timestamp: {}
348
+ };
349
+ case "geohash":
350
+ return {
351
+ type: "geohash",
352
+ geohash: {}
353
+ };
354
+ case "objectReference":
355
+ {
356
+ const objRef = fieldType.objectReference;
357
+ const blockId = objRef ? this.objectTypeIds[objRef.objectTypeId] : undefined;
358
+ return {
359
+ type: "objectReference",
360
+ objectReference: {
361
+ objectTypeId: blockId ?? ""
362
+ }
363
+ };
364
+ }
365
+ default:
366
+ throw new Error(`Unknown struct field BaseParameterType: ${t}`);
367
+ }
368
+ }
369
+ }
370
+
371
+ /**
372
+ * Extracts action type shapes from an ActionTypeBlockDataV2
373
+ */
374
+ export class ActionTypeShapeExtractor {
375
+ /**
376
+ * Extract action type shapes from block data
377
+ */
378
+ extract(actionType, ridGenerator, knownIdentifiers) {
379
+ const actionApiName = actionType.actionType.metadata.apiName;
380
+ const actionReadableId = ReadableIdGenerator.getForActionType(actionApiName);
381
+
382
+ // Verify this readable ID exists in the rid generator
383
+ const actionTypeRid = ridGenerator.getActionTypeRids().get(actionReadableId);
384
+ if (!actionTypeRid) {
385
+ return {
386
+ inputShapes: new Map(),
387
+ outputShapes: new Map(),
388
+ inputShapeMetadata: new Map()
389
+ };
390
+ }
391
+
392
+ // Build action type shape
393
+ const actionOutputShape = {
394
+ about: createLocalizedAbout(actionType.actionType.metadata.displayMetadata.displayName, actionType.actionType.metadata.displayMetadata.description),
395
+ parameters: {},
396
+ // Legacy field, kept empty
397
+ parametersV2: Object.entries(actionType.parameterIds ?? {}).map(([_key, parameterId]) => {
398
+ const paramReadableId = this.getParameterReadableId(actionApiName, parameterId);
399
+ return this.toBlockInternalId(paramReadableId, ridGenerator);
400
+ })
401
+ };
402
+ const baseParameterTypeConverter = new BaseParameterTypeConverter(knownIdentifiers.objectTypeIds, knownIdentifiers.interfaceTypes);
403
+
404
+ // Build parameter output shapes
405
+ const allOutputShapes = new Map();
406
+
407
+ // Add parameter shapes
408
+ const parameters = actionType.actionType.metadata.parameters;
409
+ if (parameters) {
410
+ for (const [parameterId, parameter] of Object.entries(parameters)) {
411
+ const paramReadableId = this.getParameterReadableId(actionApiName, parameterId);
412
+ const parameterShape = {
413
+ about: createLocalizedAbout(parameter.displayMetadata.displayName, parameter.displayMetadata.description),
414
+ type: baseParameterTypeConverter.convert(parameter.type),
415
+ actionType: this.toBlockInternalId(actionReadableId, ridGenerator)
416
+ };
417
+ allOutputShapes.set(paramReadableId, {
418
+ type: "actionParameter",
419
+ actionParameter: parameterShape
420
+ });
421
+ }
422
+ }
423
+
424
+ // Add the action type shape itself
425
+ allOutputShapes.set(actionReadableId, {
426
+ type: "action",
427
+ action: actionOutputShape
428
+ });
429
+ return {
430
+ inputShapes: new Map(),
431
+ outputShapes: allOutputShapes,
432
+ inputShapeMetadata: new Map()
433
+ };
434
+ }
435
+ getParameterReadableId(actionApiName, parameterId) {
436
+ return `action-${actionApiName}-parameter-${parameterId}`;
437
+ }
438
+ toBlockInternalId(readableId, ridGenerator) {
439
+ return ridGenerator.toBlockInternalId(readableId);
440
+ }
441
+ }
442
+ //# sourceMappingURL=ActionTypeShapeExtractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionTypeShapeExtractor.js","names":["ReadableIdGenerator","createLocalizedAbout","fallbackTitle","fallbackDescription","localizedTitle","localizedDescription","BaseParameterTypeConverter","constructor","objectTypeIds","interfaceTypes","convert","parameterType","pt","t","type","boolean","booleanList","integer","integerList","long","longList","double","doubleList","string","stringList","dec","decimal","precision","scale","decimalList","geohash","geohashList","geoshape","geoshapeList","timeSeriesReference","timestamp","timestampList","date","dateList","attachment","attachmentList","marking","markingList","mediaReference","objectTypeReference","geotimeSeriesReference","geotimeSeriesReferenceList","objRef","objectReference","blockId","objectTypeId","undefined","objectReferenceList","objectSetRid","ifRef","interfaceReference","interfaceTypeRid","interfaceReferenceList","interfaceObjectSetRid","structType","struct","convertedFields","structFieldTypes","fieldName","fieldType","Object","entries","convertStructField","structList","Error","ActionTypeShapeExtractor","extract","actionType","ridGenerator","knownIdentifiers","actionApiName","metadata","apiName","actionReadableId","getForActionType","actionTypeRid","getActionTypeRids","get","inputShapes","Map","outputShapes","inputShapeMetadata","actionOutputShape","about","displayMetadata","displayName","description","parameters","parametersV2","parameterIds","map","_key","parameterId","paramReadableId","getParameterReadableId","toBlockInternalId","baseParameterTypeConverter","allOutputShapes","parameter","parameterShape","set","actionParameter","action","readableId"],"sources":["ActionTypeShapeExtractor.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 ActionType,\n ActionTypeBlockDataV2,\n KnownMarketplaceIdentifiers,\n} from \"@osdk/client.unstable\";\nimport type {\n ActionTypeParameterShape,\n ActionTypeShape,\n BaseParameterType,\n LocalizedTitleAndDescription,\n OutputShape,\n} from \"@osdk/client.unstable/api\";\nimport {\n type BlockShapes,\n type OntologyRidGenerator,\n type ReadableId,\n ReadableIdGenerator,\n} from \"../../../util/generateRid.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: fallbackDescription ?? \"\",\n localizedTitle: {},\n localizedDescription: {},\n };\n}\n\n/**\n * Converts OntologyIR BaseParameterType to marketplace BaseParameterType.\n * Matches the Java BaseParameterTypeConverter visitor pattern.\n */\nclass BaseParameterTypeConverter {\n private readonly objectTypeIds: Record<string, string>;\n private readonly interfaceTypes: Record<string, string>;\n\n constructor(\n objectTypeIds?: Record<string, string>,\n interfaceTypes?: Record<string, string>,\n ) {\n this.objectTypeIds = objectTypeIds ?? {};\n this.interfaceTypes = interfaceTypes ?? {};\n }\n\n convert(parameterType: { type: string }): BaseParameterType {\n const pt = parameterType as Record<string, unknown> & { type: string };\n const t = pt.type;\n switch (t) {\n // Simple types - return {type: \"name\", name: {}}\n case \"boolean\":\n return { type: \"boolean\", boolean: {} } as BaseParameterType;\n case \"booleanList\":\n return { type: \"booleanList\", booleanList: {} } as BaseParameterType;\n case \"integer\":\n return { type: \"integer\", integer: {} } as BaseParameterType;\n case \"integerList\":\n return { type: \"integerList\", integerList: {} } as BaseParameterType;\n case \"long\":\n return { type: \"long\", long: {} } as BaseParameterType;\n case \"longList\":\n return { type: \"longList\", longList: {} } as BaseParameterType;\n case \"double\":\n return { type: \"double\", double: {} } as BaseParameterType;\n case \"doubleList\":\n return { type: \"doubleList\", doubleList: {} } as BaseParameterType;\n case \"string\":\n return { type: \"string\", string: {} } as BaseParameterType;\n case \"stringList\":\n return { type: \"stringList\", stringList: {} } as BaseParameterType;\n case \"decimal\": {\n const dec = pt.decimal as\n | { precision?: number; scale?: number }\n | undefined;\n return {\n type: \"decimal\",\n decimal: { precision: dec?.precision, scale: dec?.scale },\n } as BaseParameterType;\n }\n case \"decimalList\": {\n const dec = pt.decimalList as\n | { precision?: number; scale?: number }\n | undefined;\n return {\n type: \"decimalList\",\n decimalList: { precision: dec?.precision, scale: dec?.scale },\n } as BaseParameterType;\n }\n case \"geohash\":\n return { type: \"geohash\", geohash: {} } as BaseParameterType;\n case \"geohashList\":\n return { type: \"geohashList\", geohashList: {} } as BaseParameterType;\n case \"geoshape\":\n return { type: \"geoshape\", geoshape: {} } as BaseParameterType;\n case \"geoshapeList\":\n return { type: \"geoshapeList\", geoshapeList: {} } as BaseParameterType;\n case \"timeSeriesReference\":\n return {\n type: \"timeSeriesReference\",\n timeSeriesReference: {},\n } as BaseParameterType;\n case \"timestamp\":\n return { type: \"timestamp\", timestamp: {} } as BaseParameterType;\n case \"timestampList\":\n return {\n type: \"timestampList\",\n timestampList: {},\n } as BaseParameterType;\n case \"date\":\n return { type: \"date\", date: {} } as BaseParameterType;\n case \"dateList\":\n return { type: \"dateList\", dateList: {} } as BaseParameterType;\n case \"attachment\":\n return { type: \"attachment\", attachment: {} } as BaseParameterType;\n case \"attachmentList\":\n return {\n type: \"attachmentList\",\n attachmentList: {},\n } as BaseParameterType;\n case \"marking\":\n return { type: \"marking\", marking: {} } as BaseParameterType;\n case \"markingList\":\n return { type: \"markingList\", markingList: {} } as BaseParameterType;\n case \"mediaReference\":\n return {\n type: \"mediaReference\",\n mediaReference: {},\n } as BaseParameterType;\n case \"objectTypeReference\":\n return {\n type: \"objectTypeReference\",\n objectTypeReference: {},\n } as BaseParameterType;\n case \"geotimeSeriesReference\":\n return {\n type: \"geotimeSeriesReference\",\n geotimeSeriesReference: {},\n } as BaseParameterType;\n case \"geotimeSeriesReferenceList\":\n return {\n type: \"geotimeSeriesReferenceList\",\n geotimeSeriesReferenceList: {},\n } as BaseParameterType;\n\n // Object reference types - need to look up objectTypeId in knownIdentifiers\n case \"objectReference\": {\n const objRef = pt.objectReference as\n | { objectTypeId: string }\n | undefined;\n const blockId = objRef\n ? this.objectTypeIds[objRef.objectTypeId]\n : undefined;\n return {\n type: \"objectReference\",\n objectReference: { objectTypeId: blockId ?? \"\" },\n } as BaseParameterType;\n }\n case \"objectReferenceList\": {\n const objRef = pt.objectReferenceList as\n | { objectTypeId: string }\n | undefined;\n const blockId = objRef\n ? this.objectTypeIds[objRef.objectTypeId]\n : undefined;\n return {\n type: \"objectReferenceList\",\n objectReferenceList: { objectTypeId: blockId ?? \"\" },\n } as BaseParameterType;\n }\n case \"objectSetRid\": {\n const objRef = pt.objectSetRid as { objectTypeId: string } | undefined;\n const blockId = objRef\n ? this.objectTypeIds[objRef.objectTypeId]\n : undefined;\n return {\n type: \"objectSetRid\",\n objectSetRid: { objectTypeId: blockId ?? \"\" },\n } as BaseParameterType;\n }\n\n // Interface reference types - need to look up interfaceTypeRid in knownIdentifiers\n case \"interfaceReference\": {\n const ifRef = pt.interfaceReference as\n | { interfaceTypeRid: string }\n | undefined;\n const blockId = ifRef\n ? this.interfaceTypes[ifRef.interfaceTypeRid]\n : undefined;\n return {\n type: \"interfaceReference\",\n interfaceReference: { interfaceTypeRid: blockId ?? \"\" },\n } as BaseParameterType;\n }\n case \"interfaceReferenceList\": {\n const ifRef = pt.interfaceReferenceList as\n | { interfaceTypeRid: string }\n | undefined;\n const blockId = ifRef\n ? this.interfaceTypes[ifRef.interfaceTypeRid]\n : undefined;\n return {\n type: \"interfaceReferenceList\",\n interfaceReferenceList: { interfaceTypeRid: blockId ?? \"\" },\n } as BaseParameterType;\n }\n case \"interfaceObjectSetRid\": {\n const ifRef = pt.interfaceObjectSetRid as\n | { interfaceTypeRid: string }\n | undefined;\n const blockId = ifRef\n ? this.interfaceTypes[ifRef.interfaceTypeRid]\n : undefined;\n return {\n type: \"interfaceObjectSetRid\",\n interfaceObjectSetRid: { interfaceTypeRid: blockId ?? \"\" },\n } as BaseParameterType;\n }\n\n // Struct types\n case \"struct\": {\n const structType = pt.struct as {\n structFieldTypes?: Record<\n string,\n { type: string; [key: string]: unknown }\n >;\n } | undefined;\n const convertedFields: Record<string, unknown> = {};\n if (structType?.structFieldTypes) {\n for (\n const [fieldName, fieldType] of Object.entries(\n structType.structFieldTypes,\n )\n ) {\n convertedFields[fieldName] = this.convertStructField(fieldType);\n }\n }\n return {\n type: \"struct\",\n struct: { structFieldTypes: convertedFields },\n } as BaseParameterType;\n }\n case \"structList\": {\n const structType = pt.structList as {\n structFieldTypes?: Record<\n string,\n { type: string; [key: string]: unknown }\n >;\n } | undefined;\n const convertedFields: Record<string, unknown> = {};\n if (structType?.structFieldTypes) {\n for (\n const [fieldName, fieldType] of Object.entries(\n structType.structFieldTypes,\n )\n ) {\n convertedFields[fieldName] = this.convertStructField(fieldType);\n }\n }\n // Java converts structList to struct (not structList)\n return {\n type: \"struct\",\n struct: { structFieldTypes: convertedFields },\n } as BaseParameterType;\n }\n\n default:\n throw new Error(`Unknown BaseParameterType: ${t}`);\n }\n }\n\n private convertStructField(\n fieldType: { type: string; [key: string]: unknown },\n ): unknown {\n const t = fieldType.type;\n switch (t) {\n case \"boolean\":\n return { type: \"boolean\", boolean: {} };\n case \"integer\":\n return { type: \"integer\", integer: {} };\n case \"long\":\n return { type: \"long\", long: {} };\n case \"double\":\n return { type: \"double\", double: {} };\n case \"string\":\n return { type: \"string\", string: {} };\n case \"date\":\n return { type: \"date\", date: {} };\n case \"timestamp\":\n return { type: \"timestamp\", timestamp: {} };\n case \"geohash\":\n return { type: \"geohash\", geohash: {} };\n case \"objectReference\": {\n const objRef = fieldType.objectReference as\n | { objectTypeId: string }\n | undefined;\n const blockId = objRef\n ? this.objectTypeIds[objRef.objectTypeId]\n : undefined;\n return {\n type: \"objectReference\",\n objectReference: { objectTypeId: blockId ?? \"\" },\n };\n }\n default:\n throw new Error(`Unknown struct field BaseParameterType: ${t}`);\n }\n }\n}\n\n/**\n * Extracts action type shapes from an ActionTypeBlockDataV2\n */\nexport class ActionTypeShapeExtractor {\n /**\n * Extract action type shapes from block data\n */\n extract(\n actionType: ActionTypeBlockDataV2,\n ridGenerator: OntologyRidGenerator,\n knownIdentifiers: KnownMarketplaceIdentifiers,\n ): BlockShapes {\n const actionApiName =\n (actionType.actionType as ActionType).metadata.apiName;\n const actionReadableId = ReadableIdGenerator.getForActionType(\n actionApiName,\n );\n\n // Verify this readable ID exists in the rid generator\n const actionTypeRid = ridGenerator.getActionTypeRids().get(\n actionReadableId,\n );\n if (!actionTypeRid) {\n return {\n inputShapes: new Map(),\n outputShapes: new Map(),\n inputShapeMetadata: new Map(),\n };\n }\n\n // Build action type shape\n const actionOutputShape: ActionTypeShape = {\n about: createLocalizedAbout(\n (actionType.actionType as ActionType).metadata.displayMetadata\n .displayName,\n (actionType.actionType as ActionType).metadata.displayMetadata\n .description,\n ),\n parameters: {}, // Legacy field, kept empty\n parametersV2: Object.entries(actionType.parameterIds ?? {}).map(\n ([_key, parameterId]) => {\n const paramReadableId = this.getParameterReadableId(\n actionApiName,\n parameterId,\n );\n return this.toBlockInternalId(paramReadableId, ridGenerator);\n },\n ),\n };\n\n const baseParameterTypeConverter = new BaseParameterTypeConverter(\n knownIdentifiers.objectTypeIds,\n knownIdentifiers.interfaceTypes,\n );\n\n // Build parameter output shapes\n const allOutputShapes = new Map<ReadableId, OutputShape>();\n\n // Add parameter shapes\n const parameters =\n (actionType.actionType as ActionType).metadata.parameters;\n if (parameters) {\n for (const [parameterId, parameter] of Object.entries(parameters)) {\n const paramReadableId = this.getParameterReadableId(\n actionApiName,\n parameterId,\n );\n\n const parameterShape: ActionTypeParameterShape = {\n about: createLocalizedAbout(\n parameter.displayMetadata.displayName,\n parameter.displayMetadata.description,\n ),\n type: baseParameterTypeConverter.convert(parameter.type),\n actionType: this.toBlockInternalId(actionReadableId, ridGenerator),\n };\n\n allOutputShapes.set(paramReadableId, {\n type: \"actionParameter\",\n actionParameter: parameterShape,\n });\n }\n }\n\n // Add the action type shape itself\n allOutputShapes.set(actionReadableId, {\n type: \"action\",\n action: actionOutputShape,\n });\n\n return {\n inputShapes: new Map(),\n outputShapes: allOutputShapes,\n inputShapeMetadata: new Map(),\n };\n }\n\n private getParameterReadableId(\n actionApiName: string,\n parameterId: string,\n ): ReadableId {\n return `action-${actionApiName}-parameter-${parameterId}` as ReadableId;\n }\n\n private toBlockInternalId(\n readableId: ReadableId,\n ridGenerator: OntologyRidGenerator,\n ): string {\n return ridGenerator.toBlockInternalId(readableId);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA,SAIEA,mBAAmB,QACd,8BAA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