@osdk/generator 2.1.0-beta.9 → 2.1.0-rc.32

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 (499) hide show
  1. package/CHANGELOG.md +246 -0
  2. package/build/browser/GenerateContext/EnhanceCommon.js +0 -15
  3. package/build/browser/GenerateContext/EnhanceCommon.js.map +1 -1
  4. package/build/browser/GenerateContext/EnhancedAction.js +1 -1
  5. package/build/browser/GenerateContext/EnhancedAction.js.map +1 -1
  6. package/build/browser/GenerateContext/EnhancedBase.js +2 -7
  7. package/build/browser/GenerateContext/EnhancedBase.js.map +1 -1
  8. package/build/browser/GenerateContext/EnhancedInterfaceType.js +1 -1
  9. package/build/browser/GenerateContext/EnhancedInterfaceType.js.map +1 -1
  10. package/build/browser/GenerateContext/EnhancedObjectType.js +2 -2
  11. package/build/browser/GenerateContext/EnhancedObjectType.js.map +1 -1
  12. package/build/browser/GenerateContext/EnhancedOntologyDefinition.js +1 -8
  13. package/build/browser/GenerateContext/EnhancedOntologyDefinition.js.map +1 -1
  14. package/build/browser/GenerateContext/EnhancedQuery.js +2 -2
  15. package/build/browser/GenerateContext/EnhancedQuery.js.map +1 -1
  16. package/build/browser/GenerateContext/EnhancedSharedPropertyType.js +1 -1
  17. package/build/browser/GenerateContext/EnhancedSharedPropertyType.js.map +1 -1
  18. package/build/browser/GenerateContext/ForeignType.js +1 -1
  19. package/build/browser/GenerateContext/ForeignType.js.map +1 -1
  20. package/build/browser/GenerateContext/GenerateContext.js +0 -15
  21. package/build/browser/GenerateContext/GenerateContext.js.map +1 -1
  22. package/build/browser/GenerateContext/enhanceOntology.js +1 -0
  23. package/build/browser/GenerateContext/enhanceOntology.js.map +1 -1
  24. package/build/browser/MinimalFs.js +0 -15
  25. package/build/browser/MinimalFs.js.map +1 -1
  26. package/build/browser/WireOntologyDefinition.js +0 -15
  27. package/build/browser/WireOntologyDefinition.js.map +1 -1
  28. package/build/browser/generateClientSdkPackage.js +5 -3
  29. package/build/browser/generateClientSdkPackage.js.map +1 -1
  30. package/build/browser/generateClientSdkPackage.test.js +1 -0
  31. package/build/browser/generateClientSdkPackage.test.js.map +1 -1
  32. package/build/browser/index.js +1 -0
  33. package/build/browser/index.js.map +1 -1
  34. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js +1 -0
  35. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -1
  36. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js +1 -0
  37. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -1
  38. package/build/browser/shared/getObjectImports.js +1 -0
  39. package/build/browser/shared/getObjectImports.js.map +1 -1
  40. package/build/browser/shared/getObjectTypeApiNamesFromQuery.js +1 -0
  41. package/build/browser/shared/getObjectTypeApiNamesFromQuery.js.map +1 -1
  42. package/build/browser/shared/getObjectTypesFromQueryDataType.js +1 -0
  43. package/build/browser/shared/getObjectTypesFromQueryDataType.js.map +1 -1
  44. package/build/browser/shared/propertyJsdoc.js +1 -0
  45. package/build/browser/shared/propertyJsdoc.js.map +1 -1
  46. package/build/browser/shared/sanitizeMetadata.js +9 -0
  47. package/build/browser/shared/sanitizeMetadata.js.map +1 -1
  48. package/build/browser/shared/sanitizeMetadata.test.js +1 -0
  49. package/build/browser/shared/sanitizeMetadata.test.js.map +1 -1
  50. package/build/browser/util/InMemoryFs.js +1 -0
  51. package/build/browser/util/InMemoryFs.js.map +1 -1
  52. package/build/browser/util/commaSeparatedIdentifiers.js +1 -0
  53. package/build/browser/util/commaSeparatedIdentifiers.js.map +1 -1
  54. package/build/browser/util/commaSeparatedTypeIdentifiers.js +1 -0
  55. package/build/browser/util/commaSeparatedTypeIdentifiers.js.map +1 -1
  56. package/build/browser/util/deleteUndefineds.js +1 -0
  57. package/build/browser/util/deleteUndefineds.js.map +1 -1
  58. package/build/browser/util/reservedKeywords.js +1 -0
  59. package/build/browser/util/reservedKeywords.js.map +1 -1
  60. package/build/browser/util/stringUnionFrom.js +1 -0
  61. package/build/browser/util/stringUnionFrom.js.map +1 -1
  62. package/build/browser/util/stringify.js +16 -0
  63. package/build/browser/util/stringify.js.map +1 -1
  64. package/build/browser/util/test/TodoWireOntology.js +24 -5
  65. package/build/browser/util/test/TodoWireOntology.js.map +1 -1
  66. package/build/browser/util/test/compileThis.js +1 -0
  67. package/build/browser/util/test/compileThis.js.map +1 -1
  68. package/build/browser/util/test/createMockMinimalFiles.js +1 -0
  69. package/build/browser/util/test/createMockMinimalFiles.js.map +1 -1
  70. package/build/browser/util/test/formatTs.js +1 -0
  71. package/build/browser/util/test/formatTs.js.map +1 -1
  72. package/build/browser/util/verifyOutDir.js +1 -0
  73. package/build/browser/util/verifyOutDir.js.map +1 -1
  74. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +4 -1
  75. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -1
  76. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +10 -1
  77. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  78. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js +4 -1
  79. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -1
  80. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js +672 -628
  81. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -1
  82. package/build/browser/v2.0/generateMetadata.js +4 -1
  83. package/build/browser/v2.0/generateMetadata.js.map +1 -1
  84. package/build/browser/v2.0/generatePerActionDataFiles.js +30 -8
  85. package/build/browser/v2.0/generatePerActionDataFiles.js.map +1 -1
  86. package/build/browser/v2.0/generatePerActionDataFiles.test.js +1 -0
  87. package/build/browser/v2.0/generatePerActionDataFiles.test.js.map +1 -1
  88. package/build/browser/v2.0/generatePerInterfaceDataFiles.js +2 -0
  89. package/build/browser/v2.0/generatePerInterfaceDataFiles.js.map +1 -1
  90. package/build/browser/v2.0/generatePerObjectDataFiles.js +1 -0
  91. package/build/browser/v2.0/generatePerObjectDataFiles.js.map +1 -1
  92. package/build/browser/v2.0/generatePerQueryDataFiles.js +10 -4
  93. package/build/browser/v2.0/generatePerQueryDataFiles.js.map +1 -1
  94. package/build/browser/v2.0/generatePerQueryDataFiles.test.js +2 -0
  95. package/build/browser/v2.0/generatePerQueryDataFiles.test.js.map +1 -1
  96. package/build/browser/v2.0/generateRootIndexTsFile.js +3 -1
  97. package/build/browser/v2.0/generateRootIndexTsFile.js.map +1 -1
  98. package/build/browser/v2.0/getDescriptionIfPresent.js +1 -0
  99. package/build/browser/v2.0/getDescriptionIfPresent.js.map +1 -1
  100. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +13 -4
  101. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -1
  102. package/build/browser/validateWireOntologyAssumptions.js +1 -0
  103. package/build/browser/validateWireOntologyAssumptions.js.map +1 -1
  104. package/build/cjs/chunk-XOCES5YA.cjs +978 -0
  105. package/build/cjs/chunk-XOCES5YA.cjs.map +1 -0
  106. package/build/cjs/index.cjs +1392 -0
  107. package/build/cjs/index.cjs.map +1 -0
  108. package/build/cjs/index.d.cts +31 -0
  109. package/build/cjs/prompt-YMFYYBNJ.cjs +860 -0
  110. package/build/cjs/prompt-YMFYYBNJ.cjs.map +1 -0
  111. package/build/esm/GenerateContext/EnhanceCommon.js +0 -15
  112. package/build/esm/GenerateContext/EnhanceCommon.js.map +1 -1
  113. package/build/esm/GenerateContext/EnhancedAction.js +1 -1
  114. package/build/esm/GenerateContext/EnhancedAction.js.map +1 -1
  115. package/build/esm/GenerateContext/EnhancedBase.js +2 -7
  116. package/build/esm/GenerateContext/EnhancedBase.js.map +1 -1
  117. package/build/esm/GenerateContext/EnhancedInterfaceType.js +1 -1
  118. package/build/esm/GenerateContext/EnhancedInterfaceType.js.map +1 -1
  119. package/build/esm/GenerateContext/EnhancedObjectType.js +2 -2
  120. package/build/esm/GenerateContext/EnhancedObjectType.js.map +1 -1
  121. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js +1 -8
  122. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js.map +1 -1
  123. package/build/esm/GenerateContext/EnhancedQuery.js +2 -2
  124. package/build/esm/GenerateContext/EnhancedQuery.js.map +1 -1
  125. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js +1 -1
  126. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js.map +1 -1
  127. package/build/esm/GenerateContext/ForeignType.js +1 -1
  128. package/build/esm/GenerateContext/ForeignType.js.map +1 -1
  129. package/build/esm/GenerateContext/GenerateContext.js +0 -15
  130. package/build/esm/GenerateContext/GenerateContext.js.map +1 -1
  131. package/build/esm/GenerateContext/enhanceOntology.js +1 -0
  132. package/build/esm/GenerateContext/enhanceOntology.js.map +1 -1
  133. package/build/esm/MinimalFs.js +0 -15
  134. package/build/esm/MinimalFs.js.map +1 -1
  135. package/build/esm/WireOntologyDefinition.js +0 -15
  136. package/build/esm/WireOntologyDefinition.js.map +1 -1
  137. package/build/esm/generateClientSdkPackage.js +5 -3
  138. package/build/esm/generateClientSdkPackage.js.map +1 -1
  139. package/build/esm/generateClientSdkPackage.test.js +1 -0
  140. package/build/esm/generateClientSdkPackage.test.js.map +1 -1
  141. package/build/esm/index.js +1 -0
  142. package/build/esm/index.js.map +1 -1
  143. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js +1 -0
  144. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -1
  145. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js +1 -0
  146. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -1
  147. package/build/esm/shared/getObjectImports.js +1 -0
  148. package/build/esm/shared/getObjectImports.js.map +1 -1
  149. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js +1 -0
  150. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js.map +1 -1
  151. package/build/esm/shared/getObjectTypesFromQueryDataType.js +1 -0
  152. package/build/esm/shared/getObjectTypesFromQueryDataType.js.map +1 -1
  153. package/build/esm/shared/propertyJsdoc.js +1 -0
  154. package/build/esm/shared/propertyJsdoc.js.map +1 -1
  155. package/build/esm/shared/sanitizeMetadata.js +9 -0
  156. package/build/esm/shared/sanitizeMetadata.js.map +1 -1
  157. package/build/esm/shared/sanitizeMetadata.test.js +1 -0
  158. package/build/esm/shared/sanitizeMetadata.test.js.map +1 -1
  159. package/build/esm/util/InMemoryFs.js +1 -0
  160. package/build/esm/util/InMemoryFs.js.map +1 -1
  161. package/build/esm/util/commaSeparatedIdentifiers.js +1 -0
  162. package/build/esm/util/commaSeparatedIdentifiers.js.map +1 -1
  163. package/build/esm/util/commaSeparatedTypeIdentifiers.js +1 -0
  164. package/build/esm/util/commaSeparatedTypeIdentifiers.js.map +1 -1
  165. package/build/esm/util/deleteUndefineds.js +1 -0
  166. package/build/esm/util/deleteUndefineds.js.map +1 -1
  167. package/build/esm/util/reservedKeywords.js +1 -0
  168. package/build/esm/util/reservedKeywords.js.map +1 -1
  169. package/build/esm/util/stringUnionFrom.js +1 -0
  170. package/build/esm/util/stringUnionFrom.js.map +1 -1
  171. package/build/esm/util/stringify.js +16 -0
  172. package/build/esm/util/stringify.js.map +1 -1
  173. package/build/esm/util/test/TodoWireOntology.js +24 -5
  174. package/build/esm/util/test/TodoWireOntology.js.map +1 -1
  175. package/build/esm/util/test/compileThis.js +1 -0
  176. package/build/esm/util/test/compileThis.js.map +1 -1
  177. package/build/esm/util/test/createMockMinimalFiles.js +1 -0
  178. package/build/esm/util/test/createMockMinimalFiles.js.map +1 -1
  179. package/build/esm/util/test/formatTs.js +1 -0
  180. package/build/esm/util/test/formatTs.js.map +1 -1
  181. package/build/esm/util/verifyOutDir.js +1 -0
  182. package/build/esm/util/verifyOutDir.js.map +1 -1
  183. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +4 -1
  184. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -1
  185. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +10 -1
  186. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  187. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js +4 -1
  188. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -1
  189. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js +672 -628
  190. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -1
  191. package/build/esm/v2.0/generateMetadata.js +4 -1
  192. package/build/esm/v2.0/generateMetadata.js.map +1 -1
  193. package/build/esm/v2.0/generatePerActionDataFiles.js +30 -8
  194. package/build/esm/v2.0/generatePerActionDataFiles.js.map +1 -1
  195. package/build/esm/v2.0/generatePerActionDataFiles.test.js +1 -0
  196. package/build/esm/v2.0/generatePerActionDataFiles.test.js.map +1 -1
  197. package/build/esm/v2.0/generatePerInterfaceDataFiles.js +2 -0
  198. package/build/esm/v2.0/generatePerInterfaceDataFiles.js.map +1 -1
  199. package/build/esm/v2.0/generatePerObjectDataFiles.js +1 -0
  200. package/build/esm/v2.0/generatePerObjectDataFiles.js.map +1 -1
  201. package/build/esm/v2.0/generatePerQueryDataFiles.js +10 -4
  202. package/build/esm/v2.0/generatePerQueryDataFiles.js.map +1 -1
  203. package/build/esm/v2.0/generatePerQueryDataFiles.test.js +2 -0
  204. package/build/esm/v2.0/generatePerQueryDataFiles.test.js.map +1 -1
  205. package/build/esm/v2.0/generateRootIndexTsFile.js +3 -1
  206. package/build/esm/v2.0/generateRootIndexTsFile.js.map +1 -1
  207. package/build/esm/v2.0/getDescriptionIfPresent.js +1 -0
  208. package/build/esm/v2.0/getDescriptionIfPresent.js.map +1 -1
  209. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +13 -4
  210. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -1
  211. package/build/esm/validateWireOntologyAssumptions.js +1 -0
  212. package/build/esm/validateWireOntologyAssumptions.js.map +1 -1
  213. package/build/types/GenerateContext/EnhanceCommon.d.ts +6 -0
  214. package/build/types/GenerateContext/EnhanceCommon.d.ts.map +1 -0
  215. package/build/types/GenerateContext/EnhancedAction.d.ts +13 -0
  216. package/build/types/GenerateContext/EnhancedAction.d.ts.map +1 -0
  217. package/build/types/GenerateContext/EnhancedBase.d.ts +20 -0
  218. package/build/types/GenerateContext/EnhancedBase.d.ts.map +1 -0
  219. package/build/types/GenerateContext/EnhancedInterfaceType.d.ts +12 -0
  220. package/build/types/GenerateContext/EnhancedInterfaceType.d.ts.map +1 -0
  221. package/build/types/GenerateContext/EnhancedObjectType.d.ts +11 -0
  222. package/build/types/GenerateContext/EnhancedObjectType.d.ts.map +1 -0
  223. package/build/types/GenerateContext/EnhancedOntologyDefinition.d.ts +28 -0
  224. package/build/types/GenerateContext/EnhancedOntologyDefinition.d.ts.map +1 -0
  225. package/build/types/GenerateContext/EnhancedQuery.d.ts +13 -0
  226. package/build/types/GenerateContext/EnhancedQuery.d.ts.map +1 -0
  227. package/build/types/GenerateContext/EnhancedSharedPropertyType.d.ts +7 -0
  228. package/build/types/GenerateContext/EnhancedSharedPropertyType.d.ts.map +1 -0
  229. package/build/types/GenerateContext/ForeignType.d.ts +8 -0
  230. package/build/types/GenerateContext/ForeignType.d.ts.map +1 -0
  231. package/build/types/GenerateContext/GenerateContext.d.ts +13 -0
  232. package/build/types/GenerateContext/GenerateContext.d.ts.map +1 -0
  233. package/build/types/GenerateContext/enhanceOntology.d.ts +9 -0
  234. package/build/types/GenerateContext/enhanceOntology.d.ts.map +1 -0
  235. package/build/types/MinimalFs.d.ts +9 -0
  236. package/build/types/MinimalFs.d.ts.map +1 -0
  237. package/build/types/WireOntologyDefinition.d.ts +2 -0
  238. package/build/types/WireOntologyDefinition.d.ts.map +1 -0
  239. package/build/types/generateClientSdkPackage.d.ts +33 -0
  240. package/build/types/generateClientSdkPackage.d.ts.map +1 -0
  241. package/build/types/generateClientSdkPackage.test.d.ts +1 -0
  242. package/build/types/generateClientSdkPackage.test.d.ts.map +1 -0
  243. package/build/types/index.d.ts +4 -0
  244. package/build/types/index.d.ts.map +1 -0
  245. package/build/{browser → types}/shared/apiNamespaces/startsWithApiNamespace.d.ts +0 -1
  246. package/build/types/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +1 -0
  247. package/build/types/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +1 -0
  248. package/build/types/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +1 -0
  249. package/build/{browser → types}/shared/getObjectImports.d.ts +2 -2
  250. package/build/types/shared/getObjectImports.d.ts.map +1 -0
  251. package/build/{browser → types}/shared/getObjectTypeApiNamesFromQuery.d.ts +1 -2
  252. package/build/types/shared/getObjectTypeApiNamesFromQuery.d.ts.map +1 -0
  253. package/build/types/shared/getObjectTypesFromQueryDataType.d.ts +2 -0
  254. package/build/types/shared/getObjectTypesFromQueryDataType.d.ts.map +1 -0
  255. package/build/{browser → types}/shared/propertyJsdoc.d.ts +2 -3
  256. package/build/types/shared/propertyJsdoc.d.ts.map +1 -0
  257. package/build/types/shared/sanitizeMetadata.d.ts +1 -0
  258. package/build/types/shared/sanitizeMetadata.d.ts.map +1 -0
  259. package/build/types/shared/sanitizeMetadata.test.d.ts +1 -0
  260. package/build/types/shared/sanitizeMetadata.test.d.ts.map +1 -0
  261. package/build/{browser → types}/util/InMemoryFs.d.ts +2 -3
  262. package/build/types/util/InMemoryFs.d.ts.map +1 -0
  263. package/build/{browser → types}/util/commaSeparatedIdentifiers.d.ts +0 -1
  264. package/build/types/util/commaSeparatedIdentifiers.d.ts.map +1 -0
  265. package/build/{browser → types}/util/commaSeparatedTypeIdentifiers.d.ts +0 -1
  266. package/build/types/util/commaSeparatedTypeIdentifiers.d.ts.map +1 -0
  267. package/build/{browser → types}/util/deleteUndefineds.d.ts +0 -1
  268. package/build/types/util/deleteUndefineds.d.ts.map +1 -0
  269. package/build/{browser → types}/util/reservedKeywords.d.ts +0 -1
  270. package/build/types/util/reservedKeywords.d.ts.map +1 -0
  271. package/build/{browser → types}/util/stringUnionFrom.d.ts +0 -1
  272. package/build/types/util/stringUnionFrom.d.ts.map +1 -0
  273. package/build/types/util/stringify.d.ts +20 -0
  274. package/build/types/util/stringify.d.ts.map +1 -0
  275. package/build/types/util/test/TodoWireOntology.d.ts +2 -0
  276. package/build/types/util/test/TodoWireOntology.d.ts.map +1 -0
  277. package/build/{browser → types}/util/test/compileThis.d.ts +0 -1
  278. package/build/types/util/test/compileThis.d.ts.map +1 -0
  279. package/build/types/util/test/createMockMinimalFiles.d.ts +12 -0
  280. package/build/types/util/test/createMockMinimalFiles.d.ts.map +1 -0
  281. package/build/{browser → types}/util/test/formatTs.d.ts +0 -1
  282. package/build/types/util/test/formatTs.d.ts.map +1 -0
  283. package/build/types/util/verifyOutDir.d.ts +8 -0
  284. package/build/types/util/verifyOutDir.d.ts.map +1 -0
  285. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +1 -0
  286. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +1 -0
  287. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +1 -0
  288. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +1 -0
  289. package/build/{esm → types}/v2.0/generateClientSdkVersionTwoPointZero.d.ts +0 -1
  290. package/build/types/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +1 -0
  291. package/build/types/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +1 -0
  292. package/build/types/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +1 -0
  293. package/build/{browser → types}/v2.0/generateMetadata.d.ts +0 -1
  294. package/build/types/v2.0/generateMetadata.d.ts.map +1 -0
  295. package/build/types/v2.0/generatePerActionDataFiles.d.ts +2 -0
  296. package/build/types/v2.0/generatePerActionDataFiles.d.ts.map +1 -0
  297. package/build/types/v2.0/generatePerActionDataFiles.test.d.ts +1 -0
  298. package/build/types/v2.0/generatePerActionDataFiles.test.d.ts.map +1 -0
  299. package/build/types/v2.0/generatePerInterfaceDataFiles.d.ts +1 -0
  300. package/build/types/v2.0/generatePerInterfaceDataFiles.d.ts.map +1 -0
  301. package/build/{esm → types}/v2.0/generatePerObjectDataFiles.d.ts +0 -1
  302. package/build/types/v2.0/generatePerObjectDataFiles.d.ts.map +1 -0
  303. package/build/{browser → types}/v2.0/generatePerQueryDataFiles.d.ts +2 -3
  304. package/build/types/v2.0/generatePerQueryDataFiles.d.ts.map +1 -0
  305. package/build/types/v2.0/generatePerQueryDataFiles.test.d.ts +1 -0
  306. package/build/types/v2.0/generatePerQueryDataFiles.test.d.ts.map +1 -0
  307. package/build/{esm → types}/v2.0/generateRootIndexTsFile.d.ts +0 -1
  308. package/build/types/v2.0/generateRootIndexTsFile.d.ts.map +1 -0
  309. package/build/{browser → types}/v2.0/getDescriptionIfPresent.d.ts +0 -1
  310. package/build/types/v2.0/getDescriptionIfPresent.d.ts.map +1 -0
  311. package/build/{browser → types}/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts +4 -6
  312. package/build/types/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +1 -0
  313. package/build/{browser → types}/validateWireOntologyAssumptions.d.ts +0 -1
  314. package/build/types/validateWireOntologyAssumptions.d.ts.map +1 -0
  315. package/package.json +26 -12
  316. package/build/browser/GenerateContext/EnhanceCommon.d.ts +0 -7
  317. package/build/browser/GenerateContext/EnhanceCommon.d.ts.map +0 -1
  318. package/build/browser/GenerateContext/EnhancedAction.d.ts +0 -14
  319. package/build/browser/GenerateContext/EnhancedAction.d.ts.map +0 -1
  320. package/build/browser/GenerateContext/EnhancedBase.d.ts +0 -21
  321. package/build/browser/GenerateContext/EnhancedBase.d.ts.map +0 -1
  322. package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts +0 -13
  323. package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts.map +0 -1
  324. package/build/browser/GenerateContext/EnhancedObjectType.d.ts +0 -12
  325. package/build/browser/GenerateContext/EnhancedObjectType.d.ts.map +0 -1
  326. package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts +0 -27
  327. package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts.map +0 -1
  328. package/build/browser/GenerateContext/EnhancedQuery.d.ts +0 -14
  329. package/build/browser/GenerateContext/EnhancedQuery.d.ts.map +0 -1
  330. package/build/browser/GenerateContext/EnhancedSharedPropertyType.d.ts +0 -8
  331. package/build/browser/GenerateContext/EnhancedSharedPropertyType.d.ts.map +0 -1
  332. package/build/browser/GenerateContext/ForeignType.d.ts +0 -9
  333. package/build/browser/GenerateContext/ForeignType.d.ts.map +0 -1
  334. package/build/browser/GenerateContext/GenerateContext.d.ts +0 -14
  335. package/build/browser/GenerateContext/GenerateContext.d.ts.map +0 -1
  336. package/build/browser/GenerateContext/enhanceOntology.d.ts +0 -10
  337. package/build/browser/GenerateContext/enhanceOntology.d.ts.map +0 -1
  338. package/build/browser/MinimalFs.d.ts +0 -10
  339. package/build/browser/MinimalFs.d.ts.map +0 -1
  340. package/build/browser/WireOntologyDefinition.d.ts +0 -4
  341. package/build/browser/WireOntologyDefinition.d.ts.map +0 -1
  342. package/build/browser/generateClientSdkPackage.d.ts +0 -47
  343. package/build/browser/generateClientSdkPackage.d.ts.map +0 -1
  344. package/build/browser/generateClientSdkPackage.test.d.ts +0 -2
  345. package/build/browser/generateClientSdkPackage.test.d.ts.map +0 -1
  346. package/build/browser/index.d.ts +0 -5
  347. package/build/browser/index.d.ts.map +0 -1
  348. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +0 -1
  349. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +0 -2
  350. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +0 -1
  351. package/build/browser/shared/getObjectImports.d.ts.map +0 -1
  352. package/build/browser/shared/getObjectTypeApiNamesFromQuery.d.ts.map +0 -1
  353. package/build/browser/shared/getObjectTypesFromQueryDataType.d.ts +0 -3
  354. package/build/browser/shared/getObjectTypesFromQueryDataType.d.ts.map +0 -1
  355. package/build/browser/shared/propertyJsdoc.d.ts.map +0 -1
  356. package/build/browser/shared/sanitizeMetadata.d.ts +0 -2
  357. package/build/browser/shared/sanitizeMetadata.d.ts.map +0 -1
  358. package/build/browser/shared/sanitizeMetadata.test.d.ts +0 -2
  359. package/build/browser/shared/sanitizeMetadata.test.d.ts.map +0 -1
  360. package/build/browser/util/InMemoryFs.d.ts.map +0 -1
  361. package/build/browser/util/commaSeparatedIdentifiers.d.ts.map +0 -1
  362. package/build/browser/util/commaSeparatedTypeIdentifiers.d.ts.map +0 -1
  363. package/build/browser/util/deleteUndefineds.d.ts.map +0 -1
  364. package/build/browser/util/reservedKeywords.d.ts.map +0 -1
  365. package/build/browser/util/stringUnionFrom.d.ts.map +0 -1
  366. package/build/browser/util/stringify.d.ts +0 -20
  367. package/build/browser/util/stringify.d.ts.map +0 -1
  368. package/build/browser/util/test/TodoWireOntology.d.ts +0 -217
  369. package/build/browser/util/test/TodoWireOntology.d.ts.map +0 -1
  370. package/build/browser/util/test/compileThis.d.ts.map +0 -1
  371. package/build/browser/util/test/createMockMinimalFiles.d.ts +0 -13
  372. package/build/browser/util/test/createMockMinimalFiles.d.ts.map +0 -1
  373. package/build/browser/util/test/formatTs.d.ts.map +0 -1
  374. package/build/browser/util/verifyOutDir.d.ts +0 -9
  375. package/build/browser/util/verifyOutDir.d.ts.map +0 -1
  376. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +0 -2
  377. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +0 -1
  378. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +0 -2
  379. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +0 -1
  380. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts +0 -4
  381. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +0 -1
  382. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +0 -2
  383. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +0 -1
  384. package/build/browser/v2.0/generateMetadata.d.ts.map +0 -1
  385. package/build/browser/v2.0/generatePerActionDataFiles.d.ts +0 -3
  386. package/build/browser/v2.0/generatePerActionDataFiles.d.ts.map +0 -1
  387. package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts +0 -2
  388. package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts.map +0 -1
  389. package/build/browser/v2.0/generatePerInterfaceDataFiles.d.ts +0 -2
  390. package/build/browser/v2.0/generatePerInterfaceDataFiles.d.ts.map +0 -1
  391. package/build/browser/v2.0/generatePerObjectDataFiles.d.ts +0 -3
  392. package/build/browser/v2.0/generatePerObjectDataFiles.d.ts.map +0 -1
  393. package/build/browser/v2.0/generatePerQueryDataFiles.d.ts.map +0 -1
  394. package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts +0 -2
  395. package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts.map +0 -1
  396. package/build/browser/v2.0/generateRootIndexTsFile.d.ts +0 -3
  397. package/build/browser/v2.0/generateRootIndexTsFile.d.ts.map +0 -1
  398. package/build/browser/v2.0/getDescriptionIfPresent.d.ts.map +0 -1
  399. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +0 -1
  400. package/build/browser/validateWireOntologyAssumptions.d.ts.map +0 -1
  401. package/build/esm/GenerateContext/EnhanceCommon.d.ts +0 -7
  402. package/build/esm/GenerateContext/EnhanceCommon.d.ts.map +0 -1
  403. package/build/esm/GenerateContext/EnhancedAction.d.ts +0 -14
  404. package/build/esm/GenerateContext/EnhancedAction.d.ts.map +0 -1
  405. package/build/esm/GenerateContext/EnhancedBase.d.ts +0 -21
  406. package/build/esm/GenerateContext/EnhancedBase.d.ts.map +0 -1
  407. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts +0 -13
  408. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts.map +0 -1
  409. package/build/esm/GenerateContext/EnhancedObjectType.d.ts +0 -12
  410. package/build/esm/GenerateContext/EnhancedObjectType.d.ts.map +0 -1
  411. package/build/esm/GenerateContext/EnhancedOntologyDefinition.d.ts +0 -27
  412. package/build/esm/GenerateContext/EnhancedOntologyDefinition.d.ts.map +0 -1
  413. package/build/esm/GenerateContext/EnhancedQuery.d.ts +0 -14
  414. package/build/esm/GenerateContext/EnhancedQuery.d.ts.map +0 -1
  415. package/build/esm/GenerateContext/EnhancedSharedPropertyType.d.ts +0 -8
  416. package/build/esm/GenerateContext/EnhancedSharedPropertyType.d.ts.map +0 -1
  417. package/build/esm/GenerateContext/ForeignType.d.ts +0 -9
  418. package/build/esm/GenerateContext/ForeignType.d.ts.map +0 -1
  419. package/build/esm/GenerateContext/GenerateContext.d.ts +0 -14
  420. package/build/esm/GenerateContext/GenerateContext.d.ts.map +0 -1
  421. package/build/esm/GenerateContext/enhanceOntology.d.ts +0 -10
  422. package/build/esm/GenerateContext/enhanceOntology.d.ts.map +0 -1
  423. package/build/esm/MinimalFs.d.ts +0 -10
  424. package/build/esm/MinimalFs.d.ts.map +0 -1
  425. package/build/esm/WireOntologyDefinition.d.ts +0 -4
  426. package/build/esm/WireOntologyDefinition.d.ts.map +0 -1
  427. package/build/esm/generateClientSdkPackage.d.ts +0 -47
  428. package/build/esm/generateClientSdkPackage.d.ts.map +0 -1
  429. package/build/esm/generateClientSdkPackage.test.d.ts +0 -2
  430. package/build/esm/generateClientSdkPackage.test.d.ts.map +0 -1
  431. package/build/esm/index.d.ts +0 -5
  432. package/build/esm/index.d.ts.map +0 -1
  433. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.d.ts +0 -2
  434. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +0 -1
  435. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +0 -2
  436. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +0 -1
  437. package/build/esm/shared/getObjectImports.d.ts +0 -4
  438. package/build/esm/shared/getObjectImports.d.ts.map +0 -1
  439. package/build/esm/shared/getObjectTypeApiNamesFromQuery.d.ts +0 -4
  440. package/build/esm/shared/getObjectTypeApiNamesFromQuery.d.ts.map +0 -1
  441. package/build/esm/shared/getObjectTypesFromQueryDataType.d.ts +0 -3
  442. package/build/esm/shared/getObjectTypesFromQueryDataType.d.ts.map +0 -1
  443. package/build/esm/shared/propertyJsdoc.d.ts +0 -6
  444. package/build/esm/shared/propertyJsdoc.d.ts.map +0 -1
  445. package/build/esm/shared/sanitizeMetadata.d.ts +0 -2
  446. package/build/esm/shared/sanitizeMetadata.d.ts.map +0 -1
  447. package/build/esm/shared/sanitizeMetadata.test.d.ts +0 -2
  448. package/build/esm/shared/sanitizeMetadata.test.d.ts.map +0 -1
  449. package/build/esm/util/InMemoryFs.d.ts +0 -7
  450. package/build/esm/util/InMemoryFs.d.ts.map +0 -1
  451. package/build/esm/util/commaSeparatedIdentifiers.d.ts +0 -2
  452. package/build/esm/util/commaSeparatedIdentifiers.d.ts.map +0 -1
  453. package/build/esm/util/commaSeparatedTypeIdentifiers.d.ts +0 -2
  454. package/build/esm/util/commaSeparatedTypeIdentifiers.d.ts.map +0 -1
  455. package/build/esm/util/deleteUndefineds.d.ts +0 -2
  456. package/build/esm/util/deleteUndefineds.d.ts.map +0 -1
  457. package/build/esm/util/reservedKeywords.d.ts +0 -2
  458. package/build/esm/util/reservedKeywords.d.ts.map +0 -1
  459. package/build/esm/util/stringUnionFrom.d.ts +0 -2
  460. package/build/esm/util/stringUnionFrom.d.ts.map +0 -1
  461. package/build/esm/util/stringify.d.ts +0 -20
  462. package/build/esm/util/stringify.d.ts.map +0 -1
  463. package/build/esm/util/test/TodoWireOntology.d.ts +0 -217
  464. package/build/esm/util/test/TodoWireOntology.d.ts.map +0 -1
  465. package/build/esm/util/test/compileThis.d.ts +0 -3
  466. package/build/esm/util/test/compileThis.d.ts.map +0 -1
  467. package/build/esm/util/test/createMockMinimalFiles.d.ts +0 -13
  468. package/build/esm/util/test/createMockMinimalFiles.d.ts.map +0 -1
  469. package/build/esm/util/test/formatTs.d.ts +0 -2
  470. package/build/esm/util/test/formatTs.d.ts.map +0 -1
  471. package/build/esm/util/verifyOutDir.d.ts +0 -9
  472. package/build/esm/util/verifyOutDir.d.ts.map +0 -1
  473. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +0 -2
  474. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +0 -1
  475. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +0 -2
  476. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +0 -1
  477. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +0 -1
  478. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +0 -2
  479. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +0 -1
  480. package/build/esm/v2.0/generateMetadata.d.ts +0 -3
  481. package/build/esm/v2.0/generateMetadata.d.ts.map +0 -1
  482. package/build/esm/v2.0/generatePerActionDataFiles.d.ts +0 -3
  483. package/build/esm/v2.0/generatePerActionDataFiles.d.ts.map +0 -1
  484. package/build/esm/v2.0/generatePerActionDataFiles.test.d.ts +0 -2
  485. package/build/esm/v2.0/generatePerActionDataFiles.test.d.ts.map +0 -1
  486. package/build/esm/v2.0/generatePerInterfaceDataFiles.d.ts +0 -2
  487. package/build/esm/v2.0/generatePerInterfaceDataFiles.d.ts.map +0 -1
  488. package/build/esm/v2.0/generatePerObjectDataFiles.d.ts.map +0 -1
  489. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts +0 -9
  490. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts.map +0 -1
  491. package/build/esm/v2.0/generatePerQueryDataFiles.test.d.ts +0 -2
  492. package/build/esm/v2.0/generatePerQueryDataFiles.test.d.ts.map +0 -1
  493. package/build/esm/v2.0/generateRootIndexTsFile.d.ts.map +0 -1
  494. package/build/esm/v2.0/getDescriptionIfPresent.d.ts +0 -2
  495. package/build/esm/v2.0/getDescriptionIfPresent.d.ts.map +0 -1
  496. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts +0 -12
  497. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +0 -1
  498. package/build/esm/validateWireOntologyAssumptions.d.ts +0 -3
  499. package/build/esm/validateWireOntologyAssumptions.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,251 @@
1
1
  # @osdk/generator
2
2
 
3
+ ## 2.1.0-rc.32
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [55c05f2]
8
+ - @osdk/api@2.1.0-rc.32
9
+ - @osdk/generator-converters@2.1.0-rc.32
10
+
11
+ ## 2.1.0-beta.31
12
+
13
+ ### Minor Changes
14
+
15
+ - bb8b219: Use new external packages instead of the internal ones.
16
+ - ecd4aee: Fixing use of logging from client for unknown property types.
17
+ - ee6224b: Explicitly type aggregation types in queries.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [bb8b219]
22
+ - Updated dependencies [81b2fb2]
23
+ - Updated dependencies [ecd4aee]
24
+ - Updated dependencies [ee6224b]
25
+ - Updated dependencies [5fe2c8d]
26
+ - @osdk/generator-converters@2.1.0-beta.31
27
+ - @osdk/api@2.1.0-beta.31
28
+
29
+ ## 2.1.0-beta.30
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [966d408]
34
+ - Updated dependencies [f03e39f]
35
+ - Updated dependencies [1591f04]
36
+ - Updated dependencies [785f663]
37
+ - Updated dependencies [2d5e648]
38
+ - @osdk/generator-converters@2.1.0-beta.30
39
+ - @osdk/api@2.1.0-beta.30
40
+
41
+ ## 2.1.0-beta.29
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [f1145ff]
46
+ - @osdk/api@2.1.0-beta.29
47
+ - @osdk/generator-converters@2.1.0-beta.29
48
+
49
+ ## 2.1.0-beta.28
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [f446d0c]
54
+ - @osdk/api@2.1.0-beta.28
55
+ - @osdk/generator-converters@2.1.0-beta.28
56
+
57
+ ## 2.1.0-beta.27
58
+
59
+ ### Patch Changes
60
+
61
+ - @osdk/api@2.1.0-beta.27
62
+ - @osdk/generator-converters@2.1.0-beta.27
63
+
64
+ ## 2.1.0-beta.26
65
+
66
+ ### Minor Changes
67
+
68
+ - 44e62f6: Updating fetch for auth and other packages.
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [7865cb6]
73
+ - Updated dependencies [9c4efe6]
74
+ - Updated dependencies [44e62f6]
75
+ - Updated dependencies [f19da8e]
76
+ - @osdk/api@2.1.0-beta.26
77
+ - @osdk/generator-converters@2.1.0-beta.26
78
+
79
+ ## 2.1.0-beta.25
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [c80ca45]
84
+ - @osdk/generator-converters@2.1.0-beta.25
85
+ - @osdk/api@2.1.0-beta.25
86
+
87
+ ## 2.1.0-beta.24
88
+
89
+ ### Minor Changes
90
+
91
+ - 03f95eb: Add support for interface params in actions.
92
+ - c691c8b: Package now has experimental support for commonjs
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [03f95eb]
97
+ - Updated dependencies [c691c8b]
98
+ - Updated dependencies [3c9ac22]
99
+ - @osdk/generator-converters@2.1.0-beta.24
100
+ - @osdk/api@2.1.0-beta.24
101
+
102
+ ## 2.1.0-beta.23
103
+
104
+ ### Minor Changes
105
+
106
+ - d794c19: Adding support for struct action params.
107
+ - f0b519d: Upgrade to vitest 3 and vite 6
108
+ - 696c59c: Exposes $osdkMetadata from the root of generated packages for clients that want access to $osdkMetadata.extraUserAgent
109
+ - d665147: Update platform sdk deps
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies [d794c19]
114
+ - Updated dependencies [f0b519d]
115
+ - Updated dependencies [62c1d63]
116
+ - Updated dependencies [d665147]
117
+ - @osdk/generator-converters@2.1.0-beta.23
118
+ - @osdk/api@2.1.0-beta.23
119
+
120
+ ## 2.1.0-beta.22
121
+
122
+ ### Minor Changes
123
+
124
+ - c9da74c: Improves code quality by fixing linting errors
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [c9da74c]
129
+ - Updated dependencies [73fa373]
130
+ - @osdk/generator-converters@2.1.0-beta.22
131
+ - @osdk/api@2.1.0-beta.22
132
+
133
+ ## 2.1.0-beta.21
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [3ea2e79]
138
+ - Updated dependencies [656f975]
139
+ - Updated dependencies [f34b3d4]
140
+ - @osdk/api@2.1.0-beta.21
141
+ - @osdk/generator-converters@2.1.0-beta.21
142
+
143
+ ## 2.1.0-beta.20
144
+
145
+ ### Minor Changes
146
+
147
+ - 9d35a1f: Remove unused imports
148
+ - abfe4b3: Add support for reading struct properties.
149
+ - bf0e3b4: Ignore unknown property types.
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [9d35a1f]
154
+ - Updated dependencies [abfe4b3]
155
+ - Updated dependencies [c537e2d]
156
+ - Updated dependencies [bf0e3b4]
157
+ - @osdk/generator-converters@2.1.0-beta.20
158
+ - @osdk/api@2.1.0-beta.20
159
+
160
+ ## 2.1.0-beta.19
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [cddc196]
165
+ - @osdk/api@2.1.0-beta.19
166
+ - @osdk/generator-converters@2.1.0-beta.19
167
+
168
+ ## 2.1.0-beta.18
169
+
170
+ ### Patch Changes
171
+
172
+ - @osdk/api@2.1.0-beta.18
173
+ - @osdk/generator-converters@2.1.0-beta.18
174
+
175
+ ## 2.1.0-beta.17
176
+
177
+ ### Patch Changes
178
+
179
+ - @osdk/api@2.1.0-beta.17
180
+ - @osdk/generator-converters@2.1.0-beta.17
181
+
182
+ ## 2.1.0-beta.16
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [e5fe7c0]
187
+ - @osdk/api@2.1.0-beta.16
188
+ - @osdk/generator-converters@2.1.0-beta.16
189
+
190
+ ## 2.1.0-beta.15
191
+
192
+ ### Patch Changes
193
+
194
+ - @osdk/api@2.1.0-beta.15
195
+ - @osdk/generator-converters@2.1.0-beta.15
196
+
197
+ ## 2.1.0-beta.14
198
+
199
+ ### Minor Changes
200
+
201
+ - 91cfa3a: Fixing url parsing for client.
202
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [0a7c747]
207
+ - Updated dependencies [91cfa3a]
208
+ - Updated dependencies [0c56d21]
209
+ - Updated dependencies [6b6c8a1]
210
+ - @osdk/generator-converters@2.1.0-beta.14
211
+ - @osdk/api@2.1.0-beta.14
212
+
213
+ ## 2.1.0-beta.13
214
+
215
+ ### Patch Changes
216
+
217
+ - @osdk/api@2.1.0-beta.13
218
+ - @osdk/generator-converters@2.1.0-beta.13
219
+
220
+ ## 2.1.0-beta.12
221
+
222
+ ### Patch Changes
223
+
224
+ - @osdk/api@2.1.0-beta.12
225
+ - @osdk/generator-converters@2.1.0-beta.12
226
+
227
+ ## 2.1.0-beta.11
228
+
229
+ ### Minor Changes
230
+
231
+ - bc1761c: Update platform API dependencies.
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [bc1761c]
236
+ - Updated dependencies [9298f75]
237
+ - @osdk/generator-converters@2.1.0-beta.11
238
+ - @osdk/api@2.1.0-beta.11
239
+
240
+ ## 2.1.0-beta.10
241
+
242
+ ### Patch Changes
243
+
244
+ - Updated dependencies [11a05cc]
245
+ - Updated dependencies [11088aa]
246
+ - @osdk/api@2.1.0-beta.10
247
+ - @osdk/generator-converters@2.1.0-beta.10
248
+
3
249
  ## 2.1.0-beta.9
4
250
 
5
251
  ### Patch Changes
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=EnhanceCommon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnhanceCommon.js","names":[],"sources":["EnhanceCommon.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"EnhanceCommon.js","names":[],"sources":["EnhanceCommon.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { EnhancedOntologyDefinition } from \"./EnhancedOntologyDefinition.js\";\n\nexport interface EnhanceCommon {\n importExt: string;\n /** DO NOT USE THIS IN THE CONSTRUCTOR(S) */\n enhancedOntology: EnhancedOntologyDefinition;\n}\n"],"mappings":"","ignoreList":[]}
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { EnhancedBase } from "./EnhancedBase.js";
17
18
  export class EnhancedAction extends EnhancedBase {
18
- raw;
19
19
  constructor(common, raw) {
20
20
  super(common, raw, raw.apiName, "./ontology/actions");
21
21
  this.raw = raw;
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedAction.js","names":["EnhancedBase","EnhancedAction","raw","constructor","common","apiName","description","parameters","operations","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedAction.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedAction extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/actions\");\n this.raw = raw;\n }\n get description() {\n return this.raw.description;\n }\n get parameters() {\n return this.raw.parameters;\n }\n get operations() {\n return this.raw.operations;\n }\n get paramsIdentifier() {\n return `${this.shortApiName}.Params`;\n }\n get definitionIdentifier() {\n return `${this.shortApiName}.Definition`;\n }\n get definitionParamsIdentifier() {\n return `${this.shortApiName}.ParamsDefinition`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,cAAc,SAASD,YAAY,CAAC;EAC7CE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,oBAAoB,CAAC;IACrD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACA,IAAII,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACJ,GAAG,CAACI,WAAW;EAC/B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,GAAG,CAACK,UAAU;EAC9B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACN,GAAG,CAACM,UAAU;EAC9B;EACA,IAAIC,gBAAgBA,CAAA,EAAG;IACnB,OAAO,GAAG,IAAI,CAACC,YAAY,SAAS;EACxC;EACA,IAAIC,oBAAoBA,CAAA,EAAG;IACvB,OAAO,GAAG,IAAI,CAACD,YAAY,aAAa;EAC5C;EACA,IAAIE,0BAA0BA,CAAA,EAAG;IAC7B,OAAO,GAAG,IAAI,CAACF,YAAY,mBAAmB;EAClD;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedAction.js","names":["EnhancedBase","EnhancedAction","constructor","common","raw","apiName","description","parameters","operations","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedAction.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ActionTypeV2, LogicRule } from \"@osdk/foundry.ontologies\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\n\nexport class EnhancedAction extends EnhancedBase<ActionTypeV2> {\n constructor(common: EnhanceCommon, public raw: ActionTypeV2) {\n super(common, raw, raw.apiName, \"./ontology/actions\");\n }\n\n get description(): string | undefined {\n return this.raw.description;\n }\n\n get parameters(): ActionTypeV2[\"parameters\"] {\n return this.raw.parameters;\n }\n\n get operations(): LogicRule[] {\n return this.raw.operations;\n }\n\n get paramsIdentifier() {\n return `${this.shortApiName}.Params`;\n }\n\n get definitionIdentifier() {\n return `${this.shortApiName}.Definition`;\n }\n\n get definitionParamsIdentifier() {\n return `${this.shortApiName}.ParamsDefinition`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,mBAAmB;AAEhD,OAAO,MAAMC,cAAc,SAASD,YAAY,CAAe;EAC7DE,WAAWA,CAACC,MAAqB,EAASC,GAAiB,EAAE;IAC3D,KAAK,CAACD,MAAM,EAAEC,GAAG,EAAEA,GAAG,CAACC,OAAO,EAAE,oBAAoB,CAAC;IAAC,KADdD,GAAiB,GAAjBA,GAAiB;EAE3D;EAEA,IAAIE,WAAWA,CAAA,EAAuB;IACpC,OAAO,IAAI,CAACF,GAAG,CAACE,WAAW;EAC7B;EAEA,IAAIC,UAAUA,CAAA,EAA+B;IAC3C,OAAO,IAAI,CAACH,GAAG,CAACG,UAAU;EAC5B;EAEA,IAAIC,UAAUA,CAAA,EAAgB;IAC5B,OAAO,IAAI,CAACJ,GAAG,CAACI,UAAU;EAC5B;EAEA,IAAIC,gBAAgBA,CAAA,EAAG;IACrB,OAAO,GAAG,IAAI,CAACC,YAAY,SAAS;EACtC;EAEA,IAAIC,oBAAoBA,CAAA,EAAG;IACzB,OAAO,GAAG,IAAI,CAACD,YAAY,aAAa;EAC1C;EAEA,IAAIE,0BAA0BA,CAAA,EAAG;IAC/B,OAAO,GAAG,IAAI,CAACF,YAAY,mBAAmB;EAChD;AACF","ignoreList":[]}
@@ -13,18 +13,14 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import * as path from "node:path";
17
18
  export class AbstractImportable {
18
- _common;
19
- shortApiName;
20
- fullApiName;
21
- apiNamespace;
22
19
  /**
23
20
  * Either a path relative to the ourDir (e.g. "./ontology/objects/foo.js") or a normal
24
21
  * module import (e.g. "@something/foo")/
25
22
  */
26
- importPath;
27
- uniqueImportName;
23
+
28
24
  constructor(common, fullApiName, basePath, isLocal = true) {
29
25
  this._common = common;
30
26
  this.fullApiName = fullApiName;
@@ -49,7 +45,6 @@ export class AbstractImportable {
49
45
  };
50
46
  }
51
47
  export class EnhancedBase extends AbstractImportable {
52
- raw;
53
48
  constructor(common, raw, fullApiName, basePath) {
54
49
  super(common, fullApiName, basePath);
55
50
  this.raw = raw;
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedBase.js","names":["path","AbstractImportable","_common","shortApiName","fullApiName","apiNamespace","importPath","uniqueImportName","constructor","common","basePath","isLocal","extractNamespace","importExt","getImportPathRelTo","filePath","startsWith","result","relative","dirname","split","sep","join","EnhancedBase","raw","fqApiName","last","lastIndexOf","undefined","slice"],"sources":["EnhancedBase.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport * as path from \"node:path\";\nexport class AbstractImportable {\n _common;\n shortApiName;\n fullApiName;\n apiNamespace;\n /**\n * Either a path relative to the ourDir (e.g. \"./ontology/objects/foo.js\") or a normal\n * module import (e.g. \"@something/foo\")/\n */\n importPath;\n uniqueImportName;\n constructor(common, fullApiName, basePath, isLocal = true) {\n this._common = common;\n this.fullApiName = fullApiName;\n [this.apiNamespace, this.shortApiName] = extractNamespace(this.fullApiName);\n const { importExt } = common;\n this.importPath = isLocal\n ? `${basePath}/${this.shortApiName}${importExt}`\n : basePath;\n this.uniqueImportName = this.shortApiName;\n }\n getImportPathRelTo = (filePath) => {\n if (this.importPath.startsWith(\".\")) {\n const result = path.relative(path.dirname(filePath), this.importPath)\n .split(path.sep).join(\"/\");\n if (result.startsWith(\".\")) {\n return result;\n }\n else {\n return `./${result}`;\n }\n }\n else {\n return this.importPath;\n }\n };\n}\nexport class EnhancedBase extends AbstractImportable {\n raw;\n constructor(common, raw, fullApiName, basePath) {\n super(common, fullApiName, basePath);\n this.raw = raw;\n }\n}\nexport function extractNamespace(fqApiName) {\n const last = fqApiName.lastIndexOf(\".\");\n if (last === -1)\n return [undefined, fqApiName];\n return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,OAAO,MAAMC,kBAAkB,CAAC;EAC5BC,OAAO;EACPC,YAAY;EACZC,WAAW;EACXC,YAAY;EACZ;AACJ;AACA;AACA;EACIC,UAAU;EACVC,gBAAgB;EAChBC,WAAWA,CAACC,MAAM,EAAEL,WAAW,EAAEM,QAAQ,EAAEC,OAAO,GAAG,IAAI,EAAE;IACvD,IAAI,CAACT,OAAO,GAAGO,MAAM;IACrB,IAAI,CAACL,WAAW,GAAGA,WAAW;IAC9B,CAAC,IAAI,CAACC,YAAY,EAAE,IAAI,CAACF,YAAY,CAAC,GAAGS,gBAAgB,CAAC,IAAI,CAACR,WAAW,CAAC;IAC3E,MAAM;MAAES;IAAU,CAAC,GAAGJ,MAAM;IAC5B,IAAI,CAACH,UAAU,GAAGK,OAAO,GACnB,GAAGD,QAAQ,IAAI,IAAI,CAACP,YAAY,GAAGU,SAAS,EAAE,GAC9CH,QAAQ;IACd,IAAI,CAACH,gBAAgB,GAAG,IAAI,CAACJ,YAAY;EAC7C;EACAW,kBAAkB,GAAIC,QAAQ,IAAK;IAC/B,IAAI,IAAI,CAACT,UAAU,CAACU,UAAU,CAAC,GAAG,CAAC,EAAE;MACjC,MAAMC,MAAM,GAAGjB,IAAI,CAACkB,QAAQ,CAAClB,IAAI,CAACmB,OAAO,CAACJ,QAAQ,CAAC,EAAE,IAAI,CAACT,UAAU,CAAC,CAChEc,KAAK,CAACpB,IAAI,CAACqB,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;MAC9B,IAAIL,MAAM,CAACD,UAAU,CAAC,GAAG,CAAC,EAAE;QACxB,OAAOC,MAAM;MACjB,CAAC,MACI;QACD,OAAO,KAAKA,MAAM,EAAE;MACxB;IACJ,CAAC,MACI;MACD,OAAO,IAAI,CAACX,UAAU;IAC1B;EACJ,CAAC;AACL;AACA,OAAO,MAAMiB,YAAY,SAAStB,kBAAkB,CAAC;EACjDuB,GAAG;EACHhB,WAAWA,CAACC,MAAM,EAAEe,GAAG,EAAEpB,WAAW,EAAEM,QAAQ,EAAE;IAC5C,KAAK,CAACD,MAAM,EAAEL,WAAW,EAAEM,QAAQ,CAAC;IACpC,IAAI,CAACc,GAAG,GAAGA,GAAG;EAClB;AACJ;AACA,OAAO,SAASZ,gBAAgBA,CAACa,SAAS,EAAE;EACxC,MAAMC,IAAI,GAAGD,SAAS,CAACE,WAAW,CAAC,GAAG,CAAC;EACvC,IAAID,IAAI,KAAK,CAAC,CAAC,EACX,OAAO,CAACE,SAAS,EAAEH,SAAS,CAAC;EACjC,OAAO,CAACA,SAAS,CAACI,KAAK,CAAC,CAAC,EAAEH,IAAI,CAAC,EAAED,SAAS,CAACI,KAAK,CAACH,IAAI,GAAG,CAAC,CAAC,CAAC;AAChE","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedBase.js","names":["path","AbstractImportable","constructor","common","fullApiName","basePath","isLocal","_common","apiNamespace","shortApiName","extractNamespace","importExt","importPath","uniqueImportName","getImportPathRelTo","filePath","startsWith","result","relative","dirname","split","sep","join","EnhancedBase","raw","fqApiName","last","lastIndexOf","undefined","slice"],"sources":["EnhancedBase.ts"],"sourcesContent":["/*\n * Copyright 2024 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 * as path from \"node:path\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\n\nexport abstract class AbstractImportable {\n protected _common: EnhanceCommon;\n\n shortApiName: string;\n fullApiName: string;\n apiNamespace: string | undefined;\n\n /**\n * Either a path relative to the ourDir (e.g. \"./ontology/objects/foo.js\") or a normal\n * module import (e.g. \"@something/foo\")/\n */\n importPath: string;\n uniqueImportName: string;\n\n constructor(\n common: EnhanceCommon,\n fullApiName: string,\n basePath: string,\n isLocal: boolean = true,\n ) {\n this._common = common;\n this.fullApiName = fullApiName;\n\n [this.apiNamespace, this.shortApiName] = extractNamespace(\n this.fullApiName,\n );\n\n const { importExt } = common;\n\n this.importPath = isLocal\n ? `${basePath}/${this.shortApiName}${importExt}`\n : basePath;\n this.uniqueImportName = this.shortApiName;\n }\n\n getImportPathRelTo = (filePath: string): string => {\n if (this.importPath.startsWith(\".\")) {\n const result = path.relative(path.dirname(filePath), this.importPath)\n .split(path.sep).join(\"/\");\n\n if (result.startsWith(\".\")) {\n return result;\n } else {\n return `./${result}`;\n }\n } else {\n return this.importPath;\n }\n };\n}\n\nexport abstract class EnhancedBase<T> extends AbstractImportable {\n raw: T;\n\n constructor(\n common: EnhanceCommon,\n raw: T,\n fullApiName: string,\n basePath: string,\n ) {\n super(common, fullApiName, basePath);\n this.raw = raw;\n }\n}\n\nexport function extractNamespace(\n fqApiName: string,\n): [string | undefined, string] {\n const last = fqApiName.lastIndexOf(\".\");\n if (last === -1) return [undefined, fqApiName];\n return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,IAAI,MAAM,WAAW;AAGjC,OAAO,MAAeC,kBAAkB,CAAC;EAOvC;AACF;AACA;AACA;;EAIEC,WAAWA,CACTC,MAAqB,EACrBC,WAAmB,EACnBC,QAAgB,EAChBC,OAAgB,GAAG,IAAI,EACvB;IACA,IAAI,CAACC,OAAO,GAAGJ,MAAM;IACrB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAE9B,CAAC,IAAI,CAACI,YAAY,EAAE,IAAI,CAACC,YAAY,CAAC,GAAGC,gBAAgB,CACvD,IAAI,CAACN,WACP,CAAC;IAED,MAAM;MAAEO;IAAU,CAAC,GAAGR,MAAM;IAE5B,IAAI,CAACS,UAAU,GAAGN,OAAO,GACrB,GAAGD,QAAQ,IAAI,IAAI,CAACI,YAAY,GAAGE,SAAS,EAAE,GAC9CN,QAAQ;IACZ,IAAI,CAACQ,gBAAgB,GAAG,IAAI,CAACJ,YAAY;EAC3C;EAEAK,kBAAkB,GAAIC,QAAgB,IAAa;IACjD,IAAI,IAAI,CAACH,UAAU,CAACI,UAAU,CAAC,GAAG,CAAC,EAAE;MACnC,MAAMC,MAAM,GAAGjB,IAAI,CAACkB,QAAQ,CAAClB,IAAI,CAACmB,OAAO,CAACJ,QAAQ,CAAC,EAAE,IAAI,CAACH,UAAU,CAAC,CAClEQ,KAAK,CAACpB,IAAI,CAACqB,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;MAE5B,IAAIL,MAAM,CAACD,UAAU,CAAC,GAAG,CAAC,EAAE;QAC1B,OAAOC,MAAM;MACf,CAAC,MAAM;QACL,OAAO,KAAKA,MAAM,EAAE;MACtB;IACF,CAAC,MAAM;MACL,OAAO,IAAI,CAACL,UAAU;IACxB;EACF,CAAC;AACH;AAEA,OAAO,MAAeW,YAAY,SAAYtB,kBAAkB,CAAC;EAG/DC,WAAWA,CACTC,MAAqB,EACrBqB,GAAM,EACNpB,WAAmB,EACnBC,QAAgB,EAChB;IACA,KAAK,CAACF,MAAM,EAAEC,WAAW,EAAEC,QAAQ,CAAC;IACpC,IAAI,CAACmB,GAAG,GAAGA,GAAG;EAChB;AACF;AAEA,OAAO,SAASd,gBAAgBA,CAC9Be,SAAiB,EACa;EAC9B,MAAMC,IAAI,GAAGD,SAAS,CAACE,WAAW,CAAC,GAAG,CAAC;EACvC,IAAID,IAAI,KAAK,CAAC,CAAC,EAAE,OAAO,CAACE,SAAS,EAAEH,SAAS,CAAC;EAC9C,OAAO,CAACA,SAAS,CAACI,KAAK,CAAC,CAAC,EAAEH,IAAI,CAAC,EAAED,SAAS,CAACI,KAAK,CAACH,IAAI,GAAG,CAAC,CAAC,CAAC;AAC9D","ignoreList":[]}
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from "@osdk/generator-converters";
17
18
  import { deleteUndefineds } from "../util/deleteUndefineds.js";
18
19
  import { EnhancedBase } from "./EnhancedBase.js";
19
20
  export class EnhancedInterfaceType extends EnhancedBase {
20
- raw;
21
21
  constructor(common, raw) {
22
22
  super(common, raw, raw.apiName, "./ontology/interfaces");
23
23
  this.raw = raw;
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedInterfaceType.js","names":["__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","deleteUndefineds","EnhancedBase","EnhancedInterfaceType","raw","constructor","common","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","properties","getCleanedUpDefinition"],"sources":["EnhancedInterfaceType.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedInterfaceType extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/interfaces\");\n this.raw = raw;\n }\n getDefinitionIdentifier(v2) {\n return v2 ? this.shortApiName : `${this.shortApiName}Def`;\n }\n getImportedDefinitionIdentifier(v2) {\n return this.getDefinitionIdentifier(v2);\n }\n get properties() {\n return this.raw.properties;\n }\n getCleanedUpDefinition(v2) {\n return deleteUndefineds(__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(this.raw, v2));\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,mDAAmD,QAAQ,4BAA4B;AAChG,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,qBAAqB,SAASD,YAAY,CAAC;EACpDE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,uBAAuB,CAAC;IACxD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACAI,uBAAuBA,CAACC,EAAE,EAAE;IACxB,OAAOA,EAAE,GAAG,IAAI,CAACC,YAAY,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAC7D;EACAC,+BAA+BA,CAACF,EAAE,EAAE;IAChC,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EAC3C;EACA,IAAIG,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACR,GAAG,CAACQ,UAAU;EAC9B;EACAC,sBAAsBA,CAACJ,EAAE,EAAE;IACvB,OAAOR,gBAAgB,CAACD,mDAAmD,CAAC,IAAI,CAACI,GAAG,EAAEK,EAAE,CAAC,CAAC;EAC9F;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedInterfaceType.js","names":["__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","deleteUndefineds","EnhancedBase","EnhancedInterfaceType","constructor","common","raw","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","properties","getCleanedUpDefinition"],"sources":["EnhancedInterfaceType.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { InterfaceMetadata } from \"@osdk/api\";\nimport type { InterfaceType } from \"@osdk/foundry.ontologies\";\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\n\nexport class EnhancedInterfaceType extends EnhancedBase<InterfaceType> {\n constructor(common: EnhanceCommon, public raw: InterfaceType) {\n super(common, raw, raw.apiName, \"./ontology/interfaces\");\n }\n\n getDefinitionIdentifier(v2: boolean): string {\n return v2 ? this.shortApiName : `${this.shortApiName}Def`;\n }\n\n getImportedDefinitionIdentifier(v2: boolean): string {\n return this.getDefinitionIdentifier(v2);\n }\n\n get properties(): InterfaceType[\"properties\"] {\n return this.raw.properties;\n }\n\n getCleanedUpDefinition(v2: boolean): InterfaceMetadata {\n return deleteUndefineds(\n __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(\n this.raw,\n v2,\n ),\n );\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,mDAAmD,QAAQ,4BAA4B;AAChG,SAASC,gBAAgB,QAAQ,6BAA6B;AAE9D,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,OAAO,MAAMC,qBAAqB,SAASD,YAAY,CAAgB;EACrEE,WAAWA,CAACC,MAAqB,EAASC,GAAkB,EAAE;IAC5D,KAAK,CAACD,MAAM,EAAEC,GAAG,EAAEA,GAAG,CAACC,OAAO,EAAE,uBAAuB,CAAC;IAAC,KADjBD,GAAkB,GAAlBA,GAAkB;EAE5D;EAEAE,uBAAuBA,CAACC,EAAW,EAAU;IAC3C,OAAOA,EAAE,GAAG,IAAI,CAACC,YAAY,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAC3D;EAEAC,+BAA+BA,CAACF,EAAW,EAAU;IACnD,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EACzC;EAEA,IAAIG,UAAUA,CAAA,EAAgC;IAC5C,OAAO,IAAI,CAACN,GAAG,CAACM,UAAU;EAC5B;EAEAC,sBAAsBA,CAACJ,EAAW,EAAqB;IACrD,OAAOR,gBAAgB,CACrBD,mDAAmD,CACjD,IAAI,CAACM,GAAG,EACRG,EACF,CACF,CAAC;EACH;AACF","ignoreList":[]}
@@ -13,17 +13,17 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { wireObjectTypeFullMetadataToSdkObjectMetadata } from "@osdk/generator-converters";
17
18
  import { deleteUndefineds } from "../util/deleteUndefineds.js";
18
19
  import { EnhancedBase } from "./EnhancedBase.js";
19
20
  export class EnhancedObjectType extends EnhancedBase {
20
- raw;
21
21
  constructor(common, raw) {
22
22
  super(common, raw, raw.objectType.apiName, "./ontology/objects");
23
23
  this.raw = raw;
24
24
  }
25
25
  getDefinitionIdentifier(v2) {
26
- return v2 ? `${this.shortApiName}` : `${this.shortApiName}Def`;
26
+ return v2 ? this.shortApiName : `${this.shortApiName}Def`;
27
27
  }
28
28
  getImportedDefinitionIdentifier(v2) {
29
29
  return this.getDefinitionIdentifier(v2);
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedObjectType.js","names":["wireObjectTypeFullMetadataToSdkObjectMetadata","deleteUndefineds","EnhancedBase","EnhancedObjectType","raw","constructor","common","objectType","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","getCleanedUpDefinition"],"sources":["EnhancedObjectType.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedObjectType extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.objectType.apiName, \"./ontology/objects\");\n this.raw = raw;\n }\n getDefinitionIdentifier(v2) {\n return v2 ? `${this.shortApiName}` : `${this.shortApiName}Def`;\n }\n getImportedDefinitionIdentifier(v2) {\n return this.getDefinitionIdentifier(v2);\n }\n getCleanedUpDefinition(v2) {\n return deleteUndefineds(wireObjectTypeFullMetadataToSdkObjectMetadata(this.raw, v2));\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,6CAA6C,QAAQ,4BAA4B;AAC1F,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,kBAAkB,SAASD,YAAY,CAAC;EACjDE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,UAAU,CAACC,OAAO,EAAE,oBAAoB,CAAC;IAChE,IAAI,CAACJ,GAAG,GAAGA,GAAG;EAClB;EACAK,uBAAuBA,CAACC,EAAE,EAAE;IACxB,OAAOA,EAAE,GAAG,GAAG,IAAI,CAACC,YAAY,EAAE,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAClE;EACAC,+BAA+BA,CAACF,EAAE,EAAE;IAChC,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EAC3C;EACAG,sBAAsBA,CAACH,EAAE,EAAE;IACvB,OAAOT,gBAAgB,CAACD,6CAA6C,CAAC,IAAI,CAACI,GAAG,EAAEM,EAAE,CAAC,CAAC;EACxF;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedObjectType.js","names":["wireObjectTypeFullMetadataToSdkObjectMetadata","deleteUndefineds","EnhancedBase","EnhancedObjectType","constructor","common","raw","objectType","apiName","getDefinitionIdentifier","v2","shortApiName","getImportedDefinitionIdentifier","getCleanedUpDefinition"],"sources":["EnhancedObjectType.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ObjectMetadata } from \"@osdk/api\";\nimport type { ObjectTypeFullMetadata } from \"@osdk/foundry.ontologies\";\nimport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport { deleteUndefineds } from \"../util/deleteUndefineds.js\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\n\nexport class EnhancedObjectType extends EnhancedBase<ObjectTypeFullMetadata> {\n constructor(common: EnhanceCommon, public raw: ObjectTypeFullMetadata) {\n super(common, raw, raw.objectType.apiName, \"./ontology/objects\");\n }\n\n getDefinitionIdentifier(v2: boolean): string {\n return v2 ? this.shortApiName : `${this.shortApiName}Def`;\n }\n\n getImportedDefinitionIdentifier(v2: boolean): string {\n return this.getDefinitionIdentifier(v2);\n }\n\n getCleanedUpDefinition(v2: boolean): ObjectMetadata {\n return deleteUndefineds(\n wireObjectTypeFullMetadataToSdkObjectMetadata(\n this.raw,\n v2,\n ),\n );\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,6CAA6C,QAAQ,4BAA4B;AAC1F,SAASC,gBAAgB,QAAQ,6BAA6B;AAE9D,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,OAAO,MAAMC,kBAAkB,SAASD,YAAY,CAAyB;EAC3EE,WAAWA,CAACC,MAAqB,EAASC,GAA2B,EAAE;IACrE,KAAK,CAACD,MAAM,EAAEC,GAAG,EAAEA,GAAG,CAACC,UAAU,CAACC,OAAO,EAAE,oBAAoB,CAAC;IAAC,KADzBF,GAA2B,GAA3BA,GAA2B;EAErE;EAEAG,uBAAuBA,CAACC,EAAW,EAAU;IAC3C,OAAOA,EAAE,GAAG,IAAI,CAACC,YAAY,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAC3D;EAEAC,+BAA+BA,CAACF,EAAW,EAAU;IACnD,OAAO,IAAI,CAACD,uBAAuB,CAACC,EAAE,CAAC;EACzC;EAEAG,sBAAsBA,CAACH,EAAW,EAAkB;IAClD,OAAOT,gBAAgB,CACrBD,6CAA6C,CAC3C,IAAI,CAACM,GAAG,EACRI,EACF,CACF,CAAC;EACH;AACF","ignoreList":[]}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { EnhancedAction } from "./EnhancedAction.js";
17
18
  import { extractNamespace } from "./EnhancedBase.js";
18
19
  import { EnhancedInterfaceType } from "./EnhancedInterfaceType.js";
@@ -21,15 +22,7 @@ import { EnhancedQuery } from "./EnhancedQuery.js";
21
22
  import { EnhancedSharedPropertyType } from "./EnhancedSharedPropertyType.js";
22
23
  import { ForeignType } from "./ForeignType.js";
23
24
  export class EnhancedOntologyDefinition {
24
- ontology;
25
- objectTypes;
26
- actionTypes;
27
- queryTypes;
28
- interfaceTypes;
29
- sharedPropertyTypes;
30
25
  #foreignTypes = {};
31
- raw;
32
- common;
33
26
  constructor(raw, importExt, externalObjects, externalInterfaces, externalSpts) {
34
27
  this.common = {
35
28
  enhancedOntology: this,
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedOntologyDefinition.js","names":["EnhancedAction","extractNamespace","EnhancedInterfaceType","EnhancedObjectType","EnhancedQuery","EnhancedSharedPropertyType","ForeignType","EnhancedOntologyDefinition","ontology","objectTypes","actionTypes","queryTypes","interfaceTypes","sharedPropertyTypes","foreignTypes","raw","common","constructor","importExt","externalObjects","externalInterfaces","externalSpts","enhancedOntology","remap","createRequireType","type","fullApiName","ret","apiNamespace","shortApiName","Error","requireObjectType","requireInterfaceType","requireActionType","requireQueryType","requireSharedPropertyType","r","Constructor","externalMap","entries","v","Object","has","push","destPackage","fromEntries","sort","a","b","localeCompare"],"sources":["EnhancedOntologyDefinition.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { EnhancedAction } from \"./EnhancedAction.js\";\nimport { extractNamespace } from \"./EnhancedBase.js\";\nimport { EnhancedInterfaceType } from \"./EnhancedInterfaceType.js\";\nimport { EnhancedObjectType } from \"./EnhancedObjectType.js\";\nimport { EnhancedQuery } from \"./EnhancedQuery.js\";\nimport { EnhancedSharedPropertyType } from \"./EnhancedSharedPropertyType.js\";\nimport { ForeignType } from \"./ForeignType.js\";\nexport class EnhancedOntologyDefinition {\n ontology;\n objectTypes;\n actionTypes;\n queryTypes;\n interfaceTypes;\n sharedPropertyTypes;\n #foreignTypes = {};\n raw;\n common;\n constructor(raw, importExt, externalObjects, externalInterfaces, externalSpts) {\n this.common = {\n enhancedOntology: this,\n importExt,\n };\n this.raw = raw;\n this.ontology = raw.ontology;\n this.objectTypes = remap(raw.objectTypes, this.common, EnhancedObjectType, externalObjects);\n this.actionTypes = remap(raw.actionTypes, this.common, EnhancedAction);\n this.queryTypes = remap(raw.queryTypes, this.common, EnhancedQuery);\n this.interfaceTypes = remap(raw.interfaceTypes, this.common, EnhancedInterfaceType, externalInterfaces);\n this.sharedPropertyTypes = remap(raw.sharedPropertyTypes, this.common, EnhancedSharedPropertyType, externalSpts);\n }\n #createRequireType = (type) => {\n return (fullApiName, localOnly) => {\n const ret = this[type][fullApiName];\n if (!ret) {\n const [apiNamespace, shortApiName] = extractNamespace(fullApiName);\n throw new Error(`Unable to find ${type}: No entry for '${fullApiName}`);\n }\n return ret;\n };\n };\n requireObjectType = this.#createRequireType(\"objectTypes\");\n requireInterfaceType = this.#createRequireType(\"interfaceTypes\");\n requireActionType = this.#createRequireType(\"actionTypes\");\n requireQueryType = this.#createRequireType(\"queryTypes\");\n requireSharedPropertyType = this.#createRequireType(\"sharedPropertyTypes\");\n}\nfunction remap(r, common, Constructor, externalMap) {\n const entries = [];\n for (const [fullApiName, v] of Object.entries(r ?? {})) {\n if (externalMap?.has(fullApiName)) {\n // skip it, we handle it below\n }\n else {\n entries.push([fullApiName, new Constructor(common, v)]);\n }\n }\n if (externalMap) {\n for (const [fullApiName, destPackage] of externalMap) {\n const [apiNamespace, shortApiName] = extractNamespace(fullApiName);\n // I think this check should be required but the ontology manager / dev console doesn't enforce it right now\n // if (apiNamespace === undefined) {\n // throw new Error(\n // `Cannot reference an external type (${fullApiName}) that is missing a namespace`,\n // );\n // }\n entries.push([\n fullApiName,\n new ForeignType(common, apiNamespace, shortApiName, destPackage),\n ]);\n }\n }\n return Object.fromEntries(entries.sort((a, b) => a[0].localeCompare(b[0])));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,cAAc,QAAQ,qBAAqB;AACpD,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SAASC,qBAAqB,QAAQ,4BAA4B;AAClE,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,0BAA0B,QAAQ,iCAAiC;AAC5E,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,OAAO,MAAMC,0BAA0B,CAAC;EACpCC,QAAQ;EACRC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,cAAc;EACdC,mBAAmB;EACnB,CAACC,YAAY,GAAG,CAAC,CAAC;EAClBC,GAAG;EACHC,MAAM;EACNC,WAAWA,CAACF,GAAG,EAAEG,SAAS,EAAEC,eAAe,EAAEC,kBAAkB,EAAEC,YAAY,EAAE;IAC3E,IAAI,CAACL,MAAM,GAAG;MACVM,gBAAgB,EAAE,IAAI;MACtBJ;IACJ,CAAC;IACD,IAAI,CAACH,GAAG,GAAGA,GAAG;IACd,IAAI,CAACP,QAAQ,GAAGO,GAAG,CAACP,QAAQ;IAC5B,IAAI,CAACC,WAAW,GAAGc,KAAK,CAACR,GAAG,CAACN,WAAW,EAAE,IAAI,CAACO,MAAM,EAAEb,kBAAkB,EAAEgB,eAAe,CAAC;IAC3F,IAAI,CAACT,WAAW,GAAGa,KAAK,CAACR,GAAG,CAACL,WAAW,EAAE,IAAI,CAACM,MAAM,EAAEhB,cAAc,CAAC;IACtE,IAAI,CAACW,UAAU,GAAGY,KAAK,CAACR,GAAG,CAACJ,UAAU,EAAE,IAAI,CAACK,MAAM,EAAEZ,aAAa,CAAC;IACnE,IAAI,CAACQ,cAAc,GAAGW,KAAK,CAACR,GAAG,CAACH,cAAc,EAAE,IAAI,CAACI,MAAM,EAAEd,qBAAqB,EAAEkB,kBAAkB,CAAC;IACvG,IAAI,CAACP,mBAAmB,GAAGU,KAAK,CAACR,GAAG,CAACF,mBAAmB,EAAE,IAAI,CAACG,MAAM,EAAEX,0BAA0B,EAAEgB,YAAY,CAAC;EACpH;EACA,CAACG,iBAAiB,GAAIC,IAAI,IAAK;IAC3B,OAAQC,WAAW,IAAgB;MAC/B,MAAMC,GAAG,GAAG,IAAI,CAACF,IAAI,CAAC,CAACC,WAAW,CAAC;MACnC,IAAI,CAACC,GAAG,EAAE;QACN,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAG5B,gBAAgB,CAACyB,WAAW,CAAC;QAClE,MAAM,IAAII,KAAK,CAAC,kBAAkBL,IAAI,mBAAmBC,WAAW,EAAE,CAAC;MAC3E;MACA,OAAOC,GAAG;IACd,CAAC;EACL,CAAC;EACDI,iBAAiB,GAAG,IAAI,CAAC,CAACP,iBAAiB,CAAC,aAAa,CAAC;EAC1DQ,oBAAoB,GAAG,IAAI,CAAC,CAACR,iBAAiB,CAAC,gBAAgB,CAAC;EAChES,iBAAiB,GAAG,IAAI,CAAC,CAACT,iBAAiB,CAAC,aAAa,CAAC;EAC1DU,gBAAgB,GAAG,IAAI,CAAC,CAACV,iBAAiB,CAAC,YAAY,CAAC;EACxDW,yBAAyB,GAAG,IAAI,CAAC,CAACX,iBAAiB,CAAC,qBAAqB,CAAC;AAC9E;AACA,SAASD,KAAKA,CAACa,CAAC,EAAEpB,MAAM,EAAEqB,WAAW,EAAEC,WAAW,EAAE;EAChD,MAAMC,OAAO,GAAG,EAAE;EAClB,KAAK,MAAM,CAACb,WAAW,EAAEc,CAAC,CAAC,IAAIC,MAAM,CAACF,OAAO,CAACH,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;IACpD,KAAIE,WAAW,EAAEI,GAAG,CAAChB,WAAW,CAAC,EAG5B;MACDa,OAAO,CAACI,IAAI,CAAC,CAACjB,WAAW,EAAE,IAAIW,WAAW,CAACrB,MAAM,EAAEwB,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,CAJG;EAKR;EACA,IAAIF,WAAW,EAAE;IACb,KAAK,MAAM,CAACZ,WAAW,EAAEkB,WAAW,CAAC,IAAIN,WAAW,EAAE;MAClD,MAAM,CAACV,YAAY,EAAEC,YAAY,CAAC,GAAG5B,gBAAgB,CAACyB,WAAW,CAAC;MAClE;MACA;MACA;MACA;MACA;MACA;MACAa,OAAO,CAACI,IAAI,CAAC,CACTjB,WAAW,EACX,IAAIpB,WAAW,CAACU,MAAM,EAAEY,YAAY,EAAEC,YAAY,EAAEe,WAAW,CAAC,CACnE,CAAC;IACN;EACJ;EACA,OAAOH,MAAM,CAACI,WAAW,CAACN,OAAO,CAACO,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAAC,CAAC,CAAC,CAACE,aAAa,CAACD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedOntologyDefinition.js","names":["EnhancedAction","extractNamespace","EnhancedInterfaceType","EnhancedObjectType","EnhancedQuery","EnhancedSharedPropertyType","ForeignType","EnhancedOntologyDefinition","foreignTypes","constructor","raw","importExt","externalObjects","externalInterfaces","externalSpts","common","enhancedOntology","ontology","objectTypes","remap","actionTypes","queryTypes","interfaceTypes","sharedPropertyTypes","createRequireType","type","fullApiName","ret","apiNamespace","shortApiName","Error","requireObjectType","requireInterfaceType","requireActionType","requireQueryType","requireSharedPropertyType","r","Constructor","externalMap","entries","v","Object","has","push","destPackage","fromEntries","sort","a","b","localeCompare"],"sources":["EnhancedOntologyDefinition.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { OntologyV2 } from \"@osdk/foundry.ontologies\";\nimport type { WireOntologyDefinition } from \"../WireOntologyDefinition.js\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedAction } from \"./EnhancedAction.js\";\nimport { extractNamespace } from \"./EnhancedBase.js\";\nimport { EnhancedInterfaceType } from \"./EnhancedInterfaceType.js\";\nimport { EnhancedObjectType } from \"./EnhancedObjectType.js\";\nimport { EnhancedQuery } from \"./EnhancedQuery.js\";\nimport { EnhancedSharedPropertyType } from \"./EnhancedSharedPropertyType.js\";\nimport { ForeignType } from \"./ForeignType.js\";\n\ntype RequiredType<\n K extends\n | \"objectTypes\"\n | \"actionTypes\"\n | \"interfaceTypes\"\n | \"queryTypes\"\n | \"sharedPropertyTypes\",\n> = <\n L extends boolean = false,\n>(\n fullApiName: string,\n localOnly?: L,\n) => L extends true ? EnhancedOntologyDefinition[K][string] : ForeignType;\n\nexport class EnhancedOntologyDefinition {\n ontology: OntologyV2;\n objectTypes: Record<string, EnhancedObjectType | ForeignType>;\n actionTypes: Record<string, EnhancedAction>;\n queryTypes: Record<string, EnhancedQuery>;\n interfaceTypes: Record<\n string,\n EnhancedInterfaceType | ForeignType\n >;\n sharedPropertyTypes: Record<\n string,\n EnhancedSharedPropertyType | ForeignType\n >;\n #foreignTypes: Record<string, ForeignType> = {};\n\n raw: WireOntologyDefinition;\n common: EnhanceCommon;\n\n constructor(\n raw: WireOntologyDefinition,\n importExt: string,\n externalObjects?: Map<string, string>,\n externalInterfaces?: Map<string, string>,\n externalSpts?: Map<string, string>,\n ) {\n this.common = {\n enhancedOntology: this,\n importExt,\n };\n this.raw = raw;\n this.ontology = raw.ontology;\n this.objectTypes = remap(\n raw.objectTypes,\n this.common,\n EnhancedObjectType,\n externalObjects,\n );\n this.actionTypes = remap(\n raw.actionTypes,\n this.common,\n EnhancedAction,\n );\n this.queryTypes = remap(\n raw.queryTypes,\n this.common,\n EnhancedQuery,\n );\n this.interfaceTypes = remap(\n raw.interfaceTypes,\n this.common,\n EnhancedInterfaceType,\n externalInterfaces,\n );\n this.sharedPropertyTypes = remap(\n raw.sharedPropertyTypes,\n this.common,\n EnhancedSharedPropertyType,\n externalSpts,\n );\n }\n\n #createRequireType = <\n K extends\n | \"objectTypes\"\n | \"actionTypes\"\n | \"interfaceTypes\"\n | \"queryTypes\"\n | \"sharedPropertyTypes\",\n >(\n type: K & keyof this,\n ) => {\n return <L extends boolean = false>(\n fullApiName: string,\n localOnly?: L,\n ): L extends true ? this[K][string] : ForeignType => {\n const ret = this[type][fullApiName];\n if (!ret) {\n const [apiNamespace, shortApiName] = extractNamespace(fullApiName);\n\n throw new Error(\n `Unable to find ${type}: No entry for '${fullApiName}`,\n );\n }\n return ret as this[K][string] as L extends true ? this[K][string]\n : ForeignType;\n };\n };\n\n public requireObjectType: RequiredType<\"objectTypes\"> = this\n .#createRequireType(\"objectTypes\");\n public requireInterfaceType: RequiredType<\"interfaceTypes\"> = this\n .#createRequireType(\"interfaceTypes\");\n public requireActionType: RequiredType<\"actionTypes\"> = this\n .#createRequireType(\"actionTypes\");\n public requireQueryType: RequiredType<\"queryTypes\"> = this\n .#createRequireType(\"queryTypes\");\n public requireSharedPropertyType: RequiredType<\"sharedPropertyTypes\"> = this\n .#createRequireType(\n \"sharedPropertyTypes\",\n );\n}\n\nfunction remap<T, X>(\n r: Record<string, T>,\n common: EnhanceCommon,\n Constructor: { new(common: EnhanceCommon, og: T): X },\n): Record<string, X>;\nfunction remap<T, X>(\n r: Record<string, T>,\n common: EnhanceCommon,\n Constructor: { new(common: EnhanceCommon, original: T): X },\n externalMap?: Map<string, string>,\n): Record<string, X | ForeignType>;\nfunction remap<T, X, const Q extends Map<string, string> | undefined>(\n r: Record<string, T>,\n common: EnhanceCommon,\n Constructor: { new(common: EnhanceCommon, og: T): X },\n externalMap?: Q,\n): Record<string, X | ForeignType> {\n const entries: [string, X | ForeignType][] = [];\n\n for (const [fullApiName, v] of Object.entries(r ?? {})) {\n if (externalMap?.has(fullApiName)) {\n // skip it, we handle it below\n } else {\n entries.push([fullApiName, new Constructor(common, v)]);\n }\n }\n\n if (externalMap) {\n for (const [fullApiName, destPackage] of externalMap) {\n const [apiNamespace, shortApiName] = extractNamespace(fullApiName);\n // I think this check should be required but the ontology manager / dev console doesn't enforce it right now\n // if (apiNamespace === undefined) {\n // throw new Error(\n // `Cannot reference an external type (${fullApiName}) that is missing a namespace`,\n // );\n // }\n entries.push([\n fullApiName,\n new ForeignType(\n common,\n apiNamespace,\n shortApiName,\n destPackage,\n ),\n ]);\n }\n }\n\n return Object.fromEntries(\n entries.sort((a, b) => a[0].localeCompare(b[0])),\n );\n}\n"],"mappings":"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","ignoreList":[]}
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { EnhancedBase } from "./EnhancedBase.js";
17
18
  export class EnhancedQuery extends EnhancedBase {
18
- raw;
19
19
  constructor(common, raw) {
20
20
  super(common, raw, raw.apiName, "./ontology/queries");
21
21
  this.raw = raw;
@@ -33,7 +33,7 @@ export class EnhancedQuery extends EnhancedBase {
33
33
  return `${this.shortApiName}.Parameters`;
34
34
  }
35
35
  get definitionIdentifier() {
36
- return `${this.shortApiName}`;
36
+ return this.shortApiName;
37
37
  }
38
38
  get definitionParamsIdentifier() {
39
39
  return `${this.definitionIdentifier}$Params`;
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedQuery.js","names":["EnhancedBase","EnhancedQuery","raw","constructor","common","apiName","description","parameters","output","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedQuery.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedQuery extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/queries\");\n this.raw = raw;\n }\n get description() {\n return this.raw.description;\n }\n get parameters() {\n return this.raw.parameters;\n }\n get output() {\n return this.raw.output;\n }\n get paramsIdentifier() {\n return `${this.shortApiName}.Parameters`;\n }\n get definitionIdentifier() {\n return `${this.shortApiName}`;\n }\n get definitionParamsIdentifier() {\n return `${this.definitionIdentifier}$Params`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,aAAa,SAASD,YAAY,CAAC;EAC5CE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,oBAAoB,CAAC;IACrD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;EACA,IAAII,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACJ,GAAG,CAACI,WAAW;EAC/B;EACA,IAAIC,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,GAAG,CAACK,UAAU;EAC9B;EACA,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACN,GAAG,CAACM,MAAM;EAC1B;EACA,IAAIC,gBAAgBA,CAAA,EAAG;IACnB,OAAO,GAAG,IAAI,CAACC,YAAY,aAAa;EAC5C;EACA,IAAIC,oBAAoBA,CAAA,EAAG;IACvB,OAAO,GAAG,IAAI,CAACD,YAAY,EAAE;EACjC;EACA,IAAIE,0BAA0BA,CAAA,EAAG;IAC7B,OAAO,GAAG,IAAI,CAACD,oBAAoB,SAAS;EAChD;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedQuery.js","names":["EnhancedBase","EnhancedQuery","constructor","common","raw","apiName","description","parameters","output","paramsIdentifier","shortApiName","definitionIdentifier","definitionParamsIdentifier"],"sources":["EnhancedQuery.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { QueryDataType, QueryTypeV2 } from \"@osdk/foundry.ontologies\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\n\nexport class EnhancedQuery extends EnhancedBase<QueryTypeV2> {\n constructor(common: EnhanceCommon, public raw: QueryTypeV2) {\n super(common, raw, raw.apiName, \"./ontology/queries\");\n }\n\n get description(): string | undefined {\n return this.raw.description;\n }\n\n get parameters(): QueryTypeV2[\"parameters\"] {\n return this.raw.parameters;\n }\n\n get output(): QueryDataType {\n return this.raw.output;\n }\n\n get paramsIdentifier() {\n return `${this.shortApiName}.Parameters`;\n }\n\n get definitionIdentifier(): string {\n return this.shortApiName;\n }\n\n get definitionParamsIdentifier() {\n return `${this.definitionIdentifier}$Params`;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,mBAAmB;AAEhD,OAAO,MAAMC,aAAa,SAASD,YAAY,CAAc;EAC3DE,WAAWA,CAACC,MAAqB,EAASC,GAAgB,EAAE;IAC1D,KAAK,CAACD,MAAM,EAAEC,GAAG,EAAEA,GAAG,CAACC,OAAO,EAAE,oBAAoB,CAAC;IAAC,KADdD,GAAgB,GAAhBA,GAAgB;EAE1D;EAEA,IAAIE,WAAWA,CAAA,EAAuB;IACpC,OAAO,IAAI,CAACF,GAAG,CAACE,WAAW;EAC7B;EAEA,IAAIC,UAAUA,CAAA,EAA8B;IAC1C,OAAO,IAAI,CAACH,GAAG,CAACG,UAAU;EAC5B;EAEA,IAAIC,MAAMA,CAAA,EAAkB;IAC1B,OAAO,IAAI,CAACJ,GAAG,CAACI,MAAM;EACxB;EAEA,IAAIC,gBAAgBA,CAAA,EAAG;IACrB,OAAO,GAAG,IAAI,CAACC,YAAY,aAAa;EAC1C;EAEA,IAAIC,oBAAoBA,CAAA,EAAW;IACjC,OAAO,IAAI,CAACD,YAAY;EAC1B;EAEA,IAAIE,0BAA0BA,CAAA,EAAG;IAC/B,OAAO,GAAG,IAAI,CAACD,oBAAoB,SAAS;EAC9C;AACF","ignoreList":[]}
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { EnhancedBase } from "./EnhancedBase.js";
17
18
  export class EnhancedSharedPropertyType extends EnhancedBase {
18
- raw;
19
19
  constructor(common, raw) {
20
20
  super(common, raw, raw.apiName, "./ontology/interfaces");
21
21
  this.raw = raw;
@@ -1 +1 @@
1
- {"version":3,"file":"EnhancedSharedPropertyType.js","names":["EnhancedBase","EnhancedSharedPropertyType","raw","constructor","common","apiName"],"sources":["EnhancedSharedPropertyType.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { EnhancedBase } from \"./EnhancedBase.js\";\nexport class EnhancedSharedPropertyType extends EnhancedBase {\n raw;\n constructor(common, raw) {\n super(common, raw, raw.apiName, \"./ontology/interfaces\");\n this.raw = raw;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,QAAQ,mBAAmB;AAChD,OAAO,MAAMC,0BAA0B,SAASD,YAAY,CAAC;EACzDE,GAAG;EACHC,WAAWA,CAACC,MAAM,EAAEF,GAAG,EAAE;IACrB,KAAK,CAACE,MAAM,EAAEF,GAAG,EAAEA,GAAG,CAACG,OAAO,EAAE,uBAAuB,CAAC;IACxD,IAAI,CAACH,GAAG,GAAGA,GAAG;EAClB;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"EnhancedSharedPropertyType.js","names":["EnhancedBase","EnhancedSharedPropertyType","constructor","common","raw","apiName"],"sources":["EnhancedSharedPropertyType.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { SharedPropertyType } from \"@osdk/foundry.ontologies\";\nimport type { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { EnhancedBase } from \"./EnhancedBase.js\";\n\nexport class EnhancedSharedPropertyType\n extends EnhancedBase<SharedPropertyType>\n{\n constructor(common: EnhanceCommon, public raw: SharedPropertyType) {\n super(common, raw, raw.apiName, \"./ontology/interfaces\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,mBAAmB;AAEhD,OAAO,MAAMC,0BAA0B,SAC7BD,YAAY,CACtB;EACEE,WAAWA,CAACC,MAAqB,EAASC,GAAuB,EAAE;IACjE,KAAK,CAACD,MAAM,EAAEC,GAAG,EAAEA,GAAG,CAACC,OAAO,EAAE,uBAAuB,CAAC;IAAC,KADjBD,GAAuB,GAAvBA,GAAuB;EAEjE;AACF","ignoreList":[]}
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { AbstractImportable } from "./EnhancedBase.js";
17
18
  export class ForeignType extends AbstractImportable {
18
- _common;
19
19
  constructor(_common, apiNamespace, shortApiName, destinationPackage) {
20
20
  super(_common, apiNamespace ? `${apiNamespace}.${shortApiName}` : shortApiName, destinationPackage, false);
21
21
  this._common = _common;
@@ -1 +1 @@
1
- {"version":3,"file":"ForeignType.js","names":["AbstractImportable","ForeignType","_common","constructor","apiNamespace","shortApiName","destinationPackage","getImportedDefinitionIdentifier","replace","getDefinitionIdentifier","uniqueImportName"],"sources":["ForeignType.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { AbstractImportable } from \"./EnhancedBase.js\";\nexport class ForeignType extends AbstractImportable {\n _common;\n constructor(_common, apiNamespace, shortApiName, destinationPackage) {\n super(_common, apiNamespace ? `${apiNamespace}.${shortApiName}` : shortApiName, destinationPackage, false);\n this._common = _common;\n }\n getImportedDefinitionIdentifier(v2) {\n return `$Imported$${this.apiNamespace?.replace(/\\./g, \"$\")}$${this.shortApiName}`;\n }\n getDefinitionIdentifier(v2) {\n return this.uniqueImportName;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,kBAAkB,QAAQ,mBAAmB;AACtD,OAAO,MAAMC,WAAW,SAASD,kBAAkB,CAAC;EAChDE,OAAO;EACPC,WAAWA,CAACD,OAAO,EAAEE,YAAY,EAAEC,YAAY,EAAEC,kBAAkB,EAAE;IACjE,KAAK,CAACJ,OAAO,EAAEE,YAAY,GAAG,GAAGA,YAAY,IAAIC,YAAY,EAAE,GAAGA,YAAY,EAAEC,kBAAkB,EAAE,KAAK,CAAC;IAC1G,IAAI,CAACJ,OAAO,GAAGA,OAAO;EAC1B;EACAK,+BAA+BA,CAAA,EAAK;IAChC,OAAO,aAAa,IAAI,CAACH,YAAY,EAAEI,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,IAAI,CAACH,YAAY,EAAE;EACrF;EACAI,uBAAuBA,CAAA,EAAK;IACxB,OAAO,IAAI,CAACC,gBAAgB;EAChC;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"ForeignType.js","names":["AbstractImportable","ForeignType","constructor","_common","apiNamespace","shortApiName","destinationPackage","getImportedDefinitionIdentifier","replace","getDefinitionIdentifier","uniqueImportName"],"sources":["ForeignType.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { EnhanceCommon } from \"./EnhanceCommon.js\";\nimport { AbstractImportable } from \"./EnhancedBase.js\";\n\nexport class ForeignType extends AbstractImportable {\n constructor(\n public _common: EnhanceCommon,\n apiNamespace: string | undefined,\n shortApiName: string,\n destinationPackage: string,\n ) {\n super(\n _common,\n apiNamespace ? `${apiNamespace}.${shortApiName}` : shortApiName,\n destinationPackage,\n false,\n );\n }\n\n getImportedDefinitionIdentifier(v2: boolean) {\n return `$Imported$${\n this.apiNamespace?.replace(/\\./g, \"$\")\n }$${this.shortApiName}`;\n }\n\n getDefinitionIdentifier(v2: boolean): string {\n return this.uniqueImportName;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,kBAAkB,QAAQ,mBAAmB;AAEtD,OAAO,MAAMC,WAAW,SAASD,kBAAkB,CAAC;EAClDE,WAAWA,CACFC,OAAsB,EAC7BC,YAAgC,EAChCC,YAAoB,EACpBC,kBAA0B,EAC1B;IACA,KAAK,CACHH,OAAO,EACPC,YAAY,GAAG,GAAGA,YAAY,IAAIC,YAAY,EAAE,GAAGA,YAAY,EAC/DC,kBAAkB,EAClB,KACF,CAAC;IAAC,KAVKH,OAAsB,GAAtBA,OAAsB;EAW/B;EAEAI,+BAA+BA,CAAA,EAAc;IAC3C,OAAO,aACL,IAAI,CAACH,YAAY,EAAEI,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,IACpC,IAAI,CAACH,YAAY,EAAE;EACzB;EAEAI,uBAAuBA,CAAA,EAAsB;IAC3C,OAAO,IAAI,CAACC,gBAAgB;EAC9B;AACF","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=GenerateContext.js.map