@osdk/generator 2.1.0-beta.3 → 2.1.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/CHANGELOG.md +293 -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 +1 -1
  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 +1 -1
  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 +3 -2
  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 +8 -6
  75. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -1
  76. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +22 -20
  77. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  78. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js +7 -3
  79. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -1
  80. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js +572 -557
  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 +33 -10
  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 +6 -3
  89. package/build/browser/v2.0/generatePerInterfaceDataFiles.js.map +1 -1
  90. package/build/browser/v2.0/generatePerObjectDataFiles.js +2 -1
  91. package/build/browser/v2.0/generatePerObjectDataFiles.js.map +1 -1
  92. package/build/browser/v2.0/generatePerQueryDataFiles.js +6 -5
  93. package/build/browser/v2.0/generatePerQueryDataFiles.js.map +1 -1
  94. package/build/browser/v2.0/generatePerQueryDataFiles.test.js +9 -8
  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 +23 -10
  101. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -1
  102. package/build/browser/validateWireOntologyAssumptions.js +3 -2
  103. package/build/browser/validateWireOntologyAssumptions.js.map +1 -1
  104. package/build/cjs/index.cjs +1384 -0
  105. package/build/cjs/index.cjs.map +1 -0
  106. package/build/cjs/index.d.cts +31 -0
  107. package/build/esm/GenerateContext/EnhanceCommon.js +0 -15
  108. package/build/esm/GenerateContext/EnhanceCommon.js.map +1 -1
  109. package/build/esm/GenerateContext/EnhancedAction.js +1 -1
  110. package/build/esm/GenerateContext/EnhancedAction.js.map +1 -1
  111. package/build/esm/GenerateContext/EnhancedBase.js +2 -7
  112. package/build/esm/GenerateContext/EnhancedBase.js.map +1 -1
  113. package/build/esm/GenerateContext/EnhancedInterfaceType.js +1 -1
  114. package/build/esm/GenerateContext/EnhancedInterfaceType.js.map +1 -1
  115. package/build/esm/GenerateContext/EnhancedObjectType.js +1 -1
  116. package/build/esm/GenerateContext/EnhancedObjectType.js.map +1 -1
  117. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js +1 -8
  118. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js.map +1 -1
  119. package/build/esm/GenerateContext/EnhancedQuery.js +1 -1
  120. package/build/esm/GenerateContext/EnhancedQuery.js.map +1 -1
  121. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js +1 -1
  122. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js.map +1 -1
  123. package/build/esm/GenerateContext/ForeignType.js +1 -1
  124. package/build/esm/GenerateContext/ForeignType.js.map +1 -1
  125. package/build/esm/GenerateContext/GenerateContext.js +0 -15
  126. package/build/esm/GenerateContext/GenerateContext.js.map +1 -1
  127. package/build/esm/GenerateContext/enhanceOntology.js +1 -0
  128. package/build/esm/GenerateContext/enhanceOntology.js.map +1 -1
  129. package/build/esm/MinimalFs.js +0 -15
  130. package/build/esm/MinimalFs.js.map +1 -1
  131. package/build/esm/WireOntologyDefinition.js +0 -15
  132. package/build/esm/WireOntologyDefinition.js.map +1 -1
  133. package/build/esm/generateClientSdkPackage.js +5 -3
  134. package/build/esm/generateClientSdkPackage.js.map +1 -1
  135. package/build/esm/generateClientSdkPackage.test.js +3 -2
  136. package/build/esm/generateClientSdkPackage.test.js.map +1 -1
  137. package/build/esm/index.js +1 -0
  138. package/build/esm/index.js.map +1 -1
  139. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js +1 -0
  140. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -1
  141. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js +1 -0
  142. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -1
  143. package/build/esm/shared/getObjectImports.js +1 -0
  144. package/build/esm/shared/getObjectImports.js.map +1 -1
  145. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js +1 -0
  146. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js.map +1 -1
  147. package/build/esm/shared/getObjectTypesFromQueryDataType.js +1 -0
  148. package/build/esm/shared/getObjectTypesFromQueryDataType.js.map +1 -1
  149. package/build/esm/shared/propertyJsdoc.js +1 -0
  150. package/build/esm/shared/propertyJsdoc.js.map +1 -1
  151. package/build/esm/shared/sanitizeMetadata.js +9 -0
  152. package/build/esm/shared/sanitizeMetadata.js.map +1 -1
  153. package/build/esm/shared/sanitizeMetadata.test.js +1 -0
  154. package/build/esm/shared/sanitizeMetadata.test.js.map +1 -1
  155. package/build/esm/util/InMemoryFs.js +1 -0
  156. package/build/esm/util/InMemoryFs.js.map +1 -1
  157. package/build/esm/util/commaSeparatedIdentifiers.js +1 -0
  158. package/build/esm/util/commaSeparatedIdentifiers.js.map +1 -1
  159. package/build/esm/util/commaSeparatedTypeIdentifiers.js +1 -0
  160. package/build/esm/util/commaSeparatedTypeIdentifiers.js.map +1 -1
  161. package/build/esm/util/deleteUndefineds.js +1 -0
  162. package/build/esm/util/deleteUndefineds.js.map +1 -1
  163. package/build/esm/util/reservedKeywords.js +1 -0
  164. package/build/esm/util/reservedKeywords.js.map +1 -1
  165. package/build/esm/util/stringUnionFrom.js +1 -0
  166. package/build/esm/util/stringUnionFrom.js.map +1 -1
  167. package/build/esm/util/stringify.js +16 -0
  168. package/build/esm/util/stringify.js.map +1 -1
  169. package/build/esm/util/test/TodoWireOntology.js +24 -5
  170. package/build/esm/util/test/TodoWireOntology.js.map +1 -1
  171. package/build/esm/util/test/compileThis.js +1 -0
  172. package/build/esm/util/test/compileThis.js.map +1 -1
  173. package/build/esm/util/test/createMockMinimalFiles.js +1 -0
  174. package/build/esm/util/test/createMockMinimalFiles.js.map +1 -1
  175. package/build/esm/util/test/formatTs.js +1 -0
  176. package/build/esm/util/test/formatTs.js.map +1 -1
  177. package/build/esm/util/verifyOutDir.js +1 -0
  178. package/build/esm/util/verifyOutDir.js.map +1 -1
  179. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +8 -6
  180. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -1
  181. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +22 -20
  182. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  183. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js +7 -3
  184. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -1
  185. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js +572 -557
  186. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -1
  187. package/build/esm/v2.0/generateMetadata.js +4 -1
  188. package/build/esm/v2.0/generateMetadata.js.map +1 -1
  189. package/build/esm/v2.0/generatePerActionDataFiles.js +33 -10
  190. package/build/esm/v2.0/generatePerActionDataFiles.js.map +1 -1
  191. package/build/esm/v2.0/generatePerActionDataFiles.test.js +1 -0
  192. package/build/esm/v2.0/generatePerActionDataFiles.test.js.map +1 -1
  193. package/build/esm/v2.0/generatePerInterfaceDataFiles.js +6 -3
  194. package/build/esm/v2.0/generatePerInterfaceDataFiles.js.map +1 -1
  195. package/build/esm/v2.0/generatePerObjectDataFiles.js +2 -1
  196. package/build/esm/v2.0/generatePerObjectDataFiles.js.map +1 -1
  197. package/build/esm/v2.0/generatePerQueryDataFiles.js +6 -5
  198. package/build/esm/v2.0/generatePerQueryDataFiles.js.map +1 -1
  199. package/build/esm/v2.0/generatePerQueryDataFiles.test.js +9 -8
  200. package/build/esm/v2.0/generatePerQueryDataFiles.test.js.map +1 -1
  201. package/build/esm/v2.0/generateRootIndexTsFile.js +3 -1
  202. package/build/esm/v2.0/generateRootIndexTsFile.js.map +1 -1
  203. package/build/esm/v2.0/getDescriptionIfPresent.js +1 -0
  204. package/build/esm/v2.0/getDescriptionIfPresent.js.map +1 -1
  205. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +23 -10
  206. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -1
  207. package/build/esm/validateWireOntologyAssumptions.js +3 -2
  208. package/build/esm/validateWireOntologyAssumptions.js.map +1 -1
  209. package/build/types/GenerateContext/EnhanceCommon.d.ts +6 -0
  210. package/build/types/GenerateContext/EnhancedAction.d.ts +13 -0
  211. package/build/types/GenerateContext/EnhancedBase.d.ts +20 -0
  212. package/build/types/GenerateContext/EnhancedInterfaceType.d.ts +12 -0
  213. package/build/{esm → types}/GenerateContext/EnhancedObjectType.d.ts +5 -6
  214. package/build/types/GenerateContext/EnhancedOntologyDefinition.d.ts +28 -0
  215. package/build/types/GenerateContext/EnhancedQuery.d.ts +13 -0
  216. package/build/{browser → types}/GenerateContext/EnhancedSharedPropertyType.d.ts +2 -3
  217. package/build/types/GenerateContext/ForeignType.d.ts +8 -0
  218. package/build/types/GenerateContext/GenerateContext.d.ts +13 -0
  219. package/build/types/GenerateContext/enhanceOntology.d.ts +9 -0
  220. package/build/types/MinimalFs.d.ts +7 -0
  221. package/build/{browser → types}/WireOntologyDefinition.d.ts +1 -3
  222. package/build/types/generateClientSdkPackage.d.ts +31 -0
  223. package/build/types/generateClientSdkPackage.test.d.ts +1 -0
  224. package/build/types/index.d.ts +4 -0
  225. package/build/{browser → types}/shared/apiNamespaces/startsWithApiNamespace.d.ts +0 -1
  226. package/build/types/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +1 -0
  227. package/build/{browser → types}/shared/getObjectImports.d.ts +2 -2
  228. package/build/{browser → types}/shared/getObjectTypeApiNamesFromQuery.d.ts +0 -1
  229. package/build/{browser → types}/shared/getObjectTypesFromQueryDataType.d.ts +0 -1
  230. package/build/{browser → types}/shared/propertyJsdoc.d.ts +2 -3
  231. package/build/types/shared/sanitizeMetadata.d.ts +1 -0
  232. package/build/types/shared/sanitizeMetadata.test.d.ts +1 -0
  233. package/build/{browser → types}/util/InMemoryFs.d.ts +2 -3
  234. package/build/{browser → types}/util/commaSeparatedIdentifiers.d.ts +0 -1
  235. package/build/{browser → types}/util/commaSeparatedTypeIdentifiers.d.ts +0 -1
  236. package/build/{browser → types}/util/deleteUndefineds.d.ts +0 -1
  237. package/build/{browser → types}/util/reservedKeywords.d.ts +0 -1
  238. package/build/{browser → types}/util/stringUnionFrom.d.ts +0 -1
  239. package/build/types/util/stringify.d.ts +20 -0
  240. package/build/types/util/test/TodoWireOntology.d.ts +2 -0
  241. package/build/{browser → types}/util/test/compileThis.d.ts +0 -1
  242. package/build/types/util/test/createMockMinimalFiles.d.ts +10 -0
  243. package/build/{browser → types}/util/test/formatTs.d.ts +0 -1
  244. package/build/types/util/verifyOutDir.d.ts +8 -0
  245. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +1 -0
  246. package/build/types/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +1 -0
  247. package/build/{esm → types}/v2.0/generateClientSdkVersionTwoPointZero.d.ts +1 -2
  248. package/build/types/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +1 -0
  249. package/build/{browser → types}/v2.0/generateMetadata.d.ts +0 -1
  250. package/build/{esm → types}/v2.0/generatePerActionDataFiles.d.ts +1 -2
  251. package/build/types/v2.0/generatePerActionDataFiles.test.d.ts +1 -0
  252. package/build/types/v2.0/generatePerInterfaceDataFiles.d.ts +1 -0
  253. package/build/{esm → types}/v2.0/generatePerObjectDataFiles.d.ts +0 -1
  254. package/build/{browser → types}/v2.0/generatePerQueryDataFiles.d.ts +2 -5
  255. package/build/types/v2.0/generatePerQueryDataFiles.test.d.ts +1 -0
  256. package/build/{esm → types}/v2.0/generateRootIndexTsFile.d.ts +0 -1
  257. package/build/{browser → types}/v2.0/getDescriptionIfPresent.d.ts +0 -1
  258. package/build/{browser → types}/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts +4 -6
  259. package/build/{browser → types}/validateWireOntologyAssumptions.d.ts +0 -1
  260. package/package.json +29 -13
  261. package/build/browser/GenerateContext/EnhanceCommon.d.ts +0 -7
  262. package/build/browser/GenerateContext/EnhanceCommon.d.ts.map +0 -1
  263. package/build/browser/GenerateContext/EnhancedAction.d.ts +0 -14
  264. package/build/browser/GenerateContext/EnhancedAction.d.ts.map +0 -1
  265. package/build/browser/GenerateContext/EnhancedBase.d.ts +0 -21
  266. package/build/browser/GenerateContext/EnhancedBase.d.ts.map +0 -1
  267. package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts +0 -13
  268. package/build/browser/GenerateContext/EnhancedInterfaceType.d.ts.map +0 -1
  269. package/build/browser/GenerateContext/EnhancedObjectType.d.ts +0 -12
  270. package/build/browser/GenerateContext/EnhancedObjectType.d.ts.map +0 -1
  271. package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts +0 -27
  272. package/build/browser/GenerateContext/EnhancedOntologyDefinition.d.ts.map +0 -1
  273. package/build/browser/GenerateContext/EnhancedQuery.d.ts +0 -14
  274. package/build/browser/GenerateContext/EnhancedQuery.d.ts.map +0 -1
  275. package/build/browser/GenerateContext/EnhancedSharedPropertyType.d.ts.map +0 -1
  276. package/build/browser/GenerateContext/ForeignType.d.ts +0 -9
  277. package/build/browser/GenerateContext/ForeignType.d.ts.map +0 -1
  278. package/build/browser/GenerateContext/GenerateContext.d.ts +0 -13
  279. package/build/browser/GenerateContext/GenerateContext.d.ts.map +0 -1
  280. package/build/browser/GenerateContext/enhanceOntology.d.ts +0 -10
  281. package/build/browser/GenerateContext/enhanceOntology.d.ts.map +0 -1
  282. package/build/browser/MinimalFs.d.ts +0 -10
  283. package/build/browser/MinimalFs.d.ts.map +0 -1
  284. package/build/browser/WireOntologyDefinition.d.ts.map +0 -1
  285. package/build/browser/generateClientSdkPackage.d.ts +0 -47
  286. package/build/browser/generateClientSdkPackage.d.ts.map +0 -1
  287. package/build/browser/generateClientSdkPackage.test.d.ts +0 -2
  288. package/build/browser/generateClientSdkPackage.test.d.ts.map +0 -1
  289. package/build/browser/index.d.ts +0 -5
  290. package/build/browser/index.d.ts.map +0 -1
  291. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +0 -1
  292. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +0 -2
  293. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +0 -1
  294. package/build/browser/shared/getObjectImports.d.ts.map +0 -1
  295. package/build/browser/shared/getObjectTypeApiNamesFromQuery.d.ts.map +0 -1
  296. package/build/browser/shared/getObjectTypesFromQueryDataType.d.ts.map +0 -1
  297. package/build/browser/shared/propertyJsdoc.d.ts.map +0 -1
  298. package/build/browser/shared/sanitizeMetadata.d.ts +0 -2
  299. package/build/browser/shared/sanitizeMetadata.d.ts.map +0 -1
  300. package/build/browser/shared/sanitizeMetadata.test.d.ts +0 -2
  301. package/build/browser/shared/sanitizeMetadata.test.d.ts.map +0 -1
  302. package/build/browser/util/InMemoryFs.d.ts.map +0 -1
  303. package/build/browser/util/commaSeparatedIdentifiers.d.ts.map +0 -1
  304. package/build/browser/util/commaSeparatedTypeIdentifiers.d.ts.map +0 -1
  305. package/build/browser/util/deleteUndefineds.d.ts.map +0 -1
  306. package/build/browser/util/reservedKeywords.d.ts.map +0 -1
  307. package/build/browser/util/stringUnionFrom.d.ts.map +0 -1
  308. package/build/browser/util/stringify.d.ts +0 -20
  309. package/build/browser/util/stringify.d.ts.map +0 -1
  310. package/build/browser/util/test/TodoWireOntology.d.ts +0 -217
  311. package/build/browser/util/test/TodoWireOntology.d.ts.map +0 -1
  312. package/build/browser/util/test/compileThis.d.ts.map +0 -1
  313. package/build/browser/util/test/createMockMinimalFiles.d.ts +0 -13
  314. package/build/browser/util/test/createMockMinimalFiles.d.ts.map +0 -1
  315. package/build/browser/util/test/formatTs.d.ts.map +0 -1
  316. package/build/browser/util/verifyOutDir.d.ts +0 -9
  317. package/build/browser/util/verifyOutDir.d.ts.map +0 -1
  318. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +0 -2
  319. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +0 -1
  320. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +0 -2
  321. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +0 -1
  322. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts +0 -4
  323. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +0 -1
  324. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +0 -2
  325. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +0 -1
  326. package/build/browser/v2.0/generateMetadata.d.ts.map +0 -1
  327. package/build/browser/v2.0/generatePerActionDataFiles.d.ts +0 -3
  328. package/build/browser/v2.0/generatePerActionDataFiles.d.ts.map +0 -1
  329. package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts +0 -2
  330. package/build/browser/v2.0/generatePerActionDataFiles.test.d.ts.map +0 -1
  331. package/build/browser/v2.0/generatePerInterfaceDataFiles.d.ts +0 -2
  332. package/build/browser/v2.0/generatePerInterfaceDataFiles.d.ts.map +0 -1
  333. package/build/browser/v2.0/generatePerObjectDataFiles.d.ts +0 -3
  334. package/build/browser/v2.0/generatePerObjectDataFiles.d.ts.map +0 -1
  335. package/build/browser/v2.0/generatePerQueryDataFiles.d.ts.map +0 -1
  336. package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts +0 -2
  337. package/build/browser/v2.0/generatePerQueryDataFiles.test.d.ts.map +0 -1
  338. package/build/browser/v2.0/generateRootIndexTsFile.d.ts +0 -3
  339. package/build/browser/v2.0/generateRootIndexTsFile.d.ts.map +0 -1
  340. package/build/browser/v2.0/getDescriptionIfPresent.d.ts.map +0 -1
  341. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +0 -1
  342. package/build/browser/validateWireOntologyAssumptions.d.ts.map +0 -1
  343. package/build/esm/GenerateContext/EnhanceCommon.d.ts +0 -7
  344. package/build/esm/GenerateContext/EnhanceCommon.d.ts.map +0 -1
  345. package/build/esm/GenerateContext/EnhancedAction.d.ts +0 -14
  346. package/build/esm/GenerateContext/EnhancedAction.d.ts.map +0 -1
  347. package/build/esm/GenerateContext/EnhancedBase.d.ts +0 -21
  348. package/build/esm/GenerateContext/EnhancedBase.d.ts.map +0 -1
  349. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts +0 -13
  350. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts.map +0 -1
  351. package/build/esm/GenerateContext/EnhancedObjectType.d.ts.map +0 -1
  352. package/build/esm/GenerateContext/EnhancedOntologyDefinition.d.ts +0 -27
  353. package/build/esm/GenerateContext/EnhancedOntologyDefinition.d.ts.map +0 -1
  354. package/build/esm/GenerateContext/EnhancedQuery.d.ts +0 -14
  355. package/build/esm/GenerateContext/EnhancedQuery.d.ts.map +0 -1
  356. package/build/esm/GenerateContext/EnhancedSharedPropertyType.d.ts +0 -8
  357. package/build/esm/GenerateContext/EnhancedSharedPropertyType.d.ts.map +0 -1
  358. package/build/esm/GenerateContext/ForeignType.d.ts +0 -9
  359. package/build/esm/GenerateContext/ForeignType.d.ts.map +0 -1
  360. package/build/esm/GenerateContext/GenerateContext.d.ts +0 -13
  361. package/build/esm/GenerateContext/GenerateContext.d.ts.map +0 -1
  362. package/build/esm/GenerateContext/enhanceOntology.d.ts +0 -10
  363. package/build/esm/GenerateContext/enhanceOntology.d.ts.map +0 -1
  364. package/build/esm/MinimalFs.d.ts +0 -10
  365. package/build/esm/MinimalFs.d.ts.map +0 -1
  366. package/build/esm/WireOntologyDefinition.d.ts +0 -4
  367. package/build/esm/WireOntologyDefinition.d.ts.map +0 -1
  368. package/build/esm/generateClientSdkPackage.d.ts +0 -47
  369. package/build/esm/generateClientSdkPackage.d.ts.map +0 -1
  370. package/build/esm/generateClientSdkPackage.test.d.ts +0 -2
  371. package/build/esm/generateClientSdkPackage.test.d.ts.map +0 -1
  372. package/build/esm/index.d.ts +0 -5
  373. package/build/esm/index.d.ts.map +0 -1
  374. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.d.ts +0 -2
  375. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +0 -1
  376. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.d.ts +0 -2
  377. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +0 -1
  378. package/build/esm/shared/getObjectImports.d.ts +0 -4
  379. package/build/esm/shared/getObjectImports.d.ts.map +0 -1
  380. package/build/esm/shared/getObjectTypeApiNamesFromQuery.d.ts +0 -4
  381. package/build/esm/shared/getObjectTypeApiNamesFromQuery.d.ts.map +0 -1
  382. package/build/esm/shared/getObjectTypesFromQueryDataType.d.ts +0 -3
  383. package/build/esm/shared/getObjectTypesFromQueryDataType.d.ts.map +0 -1
  384. package/build/esm/shared/propertyJsdoc.d.ts +0 -6
  385. package/build/esm/shared/propertyJsdoc.d.ts.map +0 -1
  386. package/build/esm/shared/sanitizeMetadata.d.ts +0 -2
  387. package/build/esm/shared/sanitizeMetadata.d.ts.map +0 -1
  388. package/build/esm/shared/sanitizeMetadata.test.d.ts +0 -2
  389. package/build/esm/shared/sanitizeMetadata.test.d.ts.map +0 -1
  390. package/build/esm/util/InMemoryFs.d.ts +0 -7
  391. package/build/esm/util/InMemoryFs.d.ts.map +0 -1
  392. package/build/esm/util/commaSeparatedIdentifiers.d.ts +0 -2
  393. package/build/esm/util/commaSeparatedIdentifiers.d.ts.map +0 -1
  394. package/build/esm/util/commaSeparatedTypeIdentifiers.d.ts +0 -2
  395. package/build/esm/util/commaSeparatedTypeIdentifiers.d.ts.map +0 -1
  396. package/build/esm/util/deleteUndefineds.d.ts +0 -2
  397. package/build/esm/util/deleteUndefineds.d.ts.map +0 -1
  398. package/build/esm/util/reservedKeywords.d.ts +0 -2
  399. package/build/esm/util/reservedKeywords.d.ts.map +0 -1
  400. package/build/esm/util/stringUnionFrom.d.ts +0 -2
  401. package/build/esm/util/stringUnionFrom.d.ts.map +0 -1
  402. package/build/esm/util/stringify.d.ts +0 -20
  403. package/build/esm/util/stringify.d.ts.map +0 -1
  404. package/build/esm/util/test/TodoWireOntology.d.ts +0 -217
  405. package/build/esm/util/test/TodoWireOntology.d.ts.map +0 -1
  406. package/build/esm/util/test/compileThis.d.ts +0 -3
  407. package/build/esm/util/test/compileThis.d.ts.map +0 -1
  408. package/build/esm/util/test/createMockMinimalFiles.d.ts +0 -13
  409. package/build/esm/util/test/createMockMinimalFiles.d.ts.map +0 -1
  410. package/build/esm/util/test/formatTs.d.ts +0 -2
  411. package/build/esm/util/test/formatTs.d.ts.map +0 -1
  412. package/build/esm/util/verifyOutDir.d.ts +0 -9
  413. package/build/esm/util/verifyOutDir.d.ts.map +0 -1
  414. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +0 -2
  415. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +0 -1
  416. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts +0 -2
  417. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +0 -1
  418. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +0 -1
  419. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +0 -2
  420. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +0 -1
  421. package/build/esm/v2.0/generateMetadata.d.ts +0 -3
  422. package/build/esm/v2.0/generateMetadata.d.ts.map +0 -1
  423. package/build/esm/v2.0/generatePerActionDataFiles.d.ts.map +0 -1
  424. package/build/esm/v2.0/generatePerActionDataFiles.test.d.ts +0 -2
  425. package/build/esm/v2.0/generatePerActionDataFiles.test.d.ts.map +0 -1
  426. package/build/esm/v2.0/generatePerInterfaceDataFiles.d.ts +0 -2
  427. package/build/esm/v2.0/generatePerInterfaceDataFiles.d.ts.map +0 -1
  428. package/build/esm/v2.0/generatePerObjectDataFiles.d.ts.map +0 -1
  429. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts +0 -9
  430. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts.map +0 -1
  431. package/build/esm/v2.0/generatePerQueryDataFiles.test.d.ts +0 -2
  432. package/build/esm/v2.0/generatePerQueryDataFiles.test.d.ts.map +0 -1
  433. package/build/esm/v2.0/generateRootIndexTsFile.d.ts.map +0 -1
  434. package/build/esm/v2.0/getDescriptionIfPresent.d.ts +0 -2
  435. package/build/esm/v2.0/getDescriptionIfPresent.d.ts.map +0 -1
  436. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts +0 -12
  437. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +0 -1
  438. package/build/esm/validateWireOntologyAssumptions.d.ts +0 -3
  439. package/build/esm/validateWireOntologyAssumptions.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,298 @@
1
1
  # @osdk/generator
2
2
 
3
+ ## 2.1.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [966d408]
8
+ - Updated dependencies [f03e39f]
9
+ - Updated dependencies [1591f04]
10
+ - Updated dependencies [785f663]
11
+ - Updated dependencies [2d5e648]
12
+ - @osdk/generator-converters@2.1.0-beta.30
13
+ - @osdk/api@2.1.0-beta.30
14
+
15
+ ## 2.1.0-beta.29
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [f1145ff]
20
+ - @osdk/api@2.1.0-beta.29
21
+ - @osdk/generator-converters@2.1.0-beta.29
22
+
23
+ ## 2.1.0-beta.28
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [f446d0c]
28
+ - @osdk/api@2.1.0-beta.28
29
+ - @osdk/generator-converters@2.1.0-beta.28
30
+
31
+ ## 2.1.0-beta.27
32
+
33
+ ### Patch Changes
34
+
35
+ - @osdk/api@2.1.0-beta.27
36
+ - @osdk/generator-converters@2.1.0-beta.27
37
+
38
+ ## 2.1.0-beta.26
39
+
40
+ ### Minor Changes
41
+
42
+ - 44e62f6: Updating fetch for auth and other packages.
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [7865cb6]
47
+ - Updated dependencies [9c4efe6]
48
+ - Updated dependencies [44e62f6]
49
+ - Updated dependencies [f19da8e]
50
+ - @osdk/api@2.1.0-beta.26
51
+ - @osdk/generator-converters@2.1.0-beta.26
52
+
53
+ ## 2.1.0-beta.25
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [c80ca45]
58
+ - @osdk/generator-converters@2.1.0-beta.25
59
+ - @osdk/api@2.1.0-beta.25
60
+
61
+ ## 2.1.0-beta.24
62
+
63
+ ### Minor Changes
64
+
65
+ - 03f95eb: Add support for interface params in actions.
66
+ - c691c8b: Package now has experimental support for commonjs
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [03f95eb]
71
+ - Updated dependencies [c691c8b]
72
+ - Updated dependencies [3c9ac22]
73
+ - @osdk/generator-converters@2.1.0-beta.24
74
+ - @osdk/api@2.1.0-beta.24
75
+
76
+ ## 2.1.0-beta.23
77
+
78
+ ### Minor Changes
79
+
80
+ - d794c19: Adding support for struct action params.
81
+ - f0b519d: Upgrade to vitest 3 and vite 6
82
+ - 696c59c: Exposes $osdkMetadata from the root of generated packages for clients that want access to $osdkMetadata.extraUserAgent
83
+ - d665147: Update platform sdk deps
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [d794c19]
88
+ - Updated dependencies [f0b519d]
89
+ - Updated dependencies [62c1d63]
90
+ - Updated dependencies [d665147]
91
+ - @osdk/generator-converters@2.1.0-beta.23
92
+ - @osdk/api@2.1.0-beta.23
93
+
94
+ ## 2.1.0-beta.22
95
+
96
+ ### Minor Changes
97
+
98
+ - c9da74c: Improves code quality by fixing linting errors
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [c9da74c]
103
+ - Updated dependencies [73fa373]
104
+ - @osdk/generator-converters@2.1.0-beta.22
105
+ - @osdk/api@2.1.0-beta.22
106
+
107
+ ## 2.1.0-beta.21
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [3ea2e79]
112
+ - Updated dependencies [656f975]
113
+ - Updated dependencies [f34b3d4]
114
+ - @osdk/api@2.1.0-beta.21
115
+ - @osdk/generator-converters@2.1.0-beta.21
116
+
117
+ ## 2.1.0-beta.20
118
+
119
+ ### Minor Changes
120
+
121
+ - 9d35a1f: Remove unused imports
122
+ - abfe4b3: Add support for reading struct properties.
123
+ - bf0e3b4: Ignore unknown property types.
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [9d35a1f]
128
+ - Updated dependencies [abfe4b3]
129
+ - Updated dependencies [c537e2d]
130
+ - Updated dependencies [bf0e3b4]
131
+ - @osdk/generator-converters@2.1.0-beta.20
132
+ - @osdk/api@2.1.0-beta.20
133
+
134
+ ## 2.1.0-beta.19
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [cddc196]
139
+ - @osdk/api@2.1.0-beta.19
140
+ - @osdk/generator-converters@2.1.0-beta.19
141
+
142
+ ## 2.1.0-beta.18
143
+
144
+ ### Patch Changes
145
+
146
+ - @osdk/api@2.1.0-beta.18
147
+ - @osdk/generator-converters@2.1.0-beta.18
148
+
149
+ ## 2.1.0-beta.17
150
+
151
+ ### Patch Changes
152
+
153
+ - @osdk/api@2.1.0-beta.17
154
+ - @osdk/generator-converters@2.1.0-beta.17
155
+
156
+ ## 2.1.0-beta.16
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [e5fe7c0]
161
+ - @osdk/api@2.1.0-beta.16
162
+ - @osdk/generator-converters@2.1.0-beta.16
163
+
164
+ ## 2.1.0-beta.15
165
+
166
+ ### Patch Changes
167
+
168
+ - @osdk/api@2.1.0-beta.15
169
+ - @osdk/generator-converters@2.1.0-beta.15
170
+
171
+ ## 2.1.0-beta.14
172
+
173
+ ### Minor Changes
174
+
175
+ - 91cfa3a: Fixing url parsing for client.
176
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [0a7c747]
181
+ - Updated dependencies [91cfa3a]
182
+ - Updated dependencies [0c56d21]
183
+ - Updated dependencies [6b6c8a1]
184
+ - @osdk/generator-converters@2.1.0-beta.14
185
+ - @osdk/api@2.1.0-beta.14
186
+
187
+ ## 2.1.0-beta.13
188
+
189
+ ### Patch Changes
190
+
191
+ - @osdk/api@2.1.0-beta.13
192
+ - @osdk/generator-converters@2.1.0-beta.13
193
+
194
+ ## 2.1.0-beta.12
195
+
196
+ ### Patch Changes
197
+
198
+ - @osdk/api@2.1.0-beta.12
199
+ - @osdk/generator-converters@2.1.0-beta.12
200
+
201
+ ## 2.1.0-beta.11
202
+
203
+ ### Minor Changes
204
+
205
+ - bc1761c: Update platform API dependencies.
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [bc1761c]
210
+ - Updated dependencies [9298f75]
211
+ - @osdk/generator-converters@2.1.0-beta.11
212
+ - @osdk/api@2.1.0-beta.11
213
+
214
+ ## 2.1.0-beta.10
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [11a05cc]
219
+ - Updated dependencies [11088aa]
220
+ - @osdk/api@2.1.0-beta.10
221
+ - @osdk/generator-converters@2.1.0-beta.10
222
+
223
+ ## 2.1.0-beta.9
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [acbfab9]
228
+ - @osdk/api@2.1.0-beta.9
229
+ - @osdk/generator-converters@2.1.0-beta.9
230
+
231
+ ## 2.1.0-beta.8
232
+
233
+ ### Minor Changes
234
+
235
+ - 71dfb4c: Now export all api shapes from client, so use that dependency instead.
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [9f3807c]
240
+ - @osdk/api@2.1.0-beta.8
241
+ - @osdk/generator-converters@2.1.0-beta.8
242
+
243
+ ## 2.1.0-beta.7
244
+
245
+ ### Minor Changes
246
+
247
+ - 9018dc2: Updating platform api dependencies.
248
+
249
+ ### Patch Changes
250
+
251
+ - Updated dependencies [27866a8]
252
+ - Updated dependencies [9018dc2]
253
+ - Updated dependencies [31e7d70]
254
+ - @osdk/api@2.1.0-beta.7
255
+ - @osdk/generator-converters@2.1.0-beta.7
256
+
257
+ ## 2.1.0-beta.6
258
+
259
+ ### Minor Changes
260
+
261
+ - 25fd9f0: Updating package.json to have better entry points to support react native bundlers.
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [25fd9f0]
266
+ - Updated dependencies [1a89f23]
267
+ - Updated dependencies [1b2e8c9]
268
+ - @osdk/api@2.1.0-beta.6
269
+ - @osdk/generator-converters@2.1.0-beta.6
270
+
271
+ ## 2.1.0-beta.5
272
+
273
+ ### Minor Changes
274
+
275
+ - 027db73: Fixes generation for interfaces with no properties
276
+
277
+ ### Patch Changes
278
+
279
+ - @osdk/api@2.1.0-beta.5
280
+ - @osdk/generator-converters@2.1.0-beta.5
281
+
282
+ ## 2.1.0-beta.4
283
+
284
+ ### Minor Changes
285
+
286
+ - 0dc40b0: Remove experimental non null for now.
287
+
288
+ ### Patch Changes
289
+
290
+ - Updated dependencies [0dc40b0]
291
+ - Updated dependencies [1dc0228]
292
+ - Updated dependencies [d3b3f35]
293
+ - @osdk/api@2.1.0-beta.4
294
+ - @osdk/generator-converters@2.1.0-beta.4
295
+
3
296
  ## 2.1.0-beta.3
4
297
 
5
298
  ### Minor 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/internal.foundry.core\";\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 { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport type { InterfaceType } from \"@osdk/internal.foundry.core\";\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;;AAGA,SAASA,mDAAmD,QAAQ,4BAA4B;AAEhG,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,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 { 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;
@@ -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 { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport type { ObjectTypeFullMetadata } from \"@osdk/internal.foundry.core\";\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;;AAGA,SAASA,6CAA6C,QAAQ,4BAA4B;AAE1F,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,GAAG,IAAI,CAACC,YAAY,EAAE,GAAG,GAAG,IAAI,CAACA,YAAY,KAAK;EAChE;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":"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","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/internal.foundry.core\";\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;
@@ -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/internal.foundry.core\";\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() {\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,EAAG;IACzB,OAAO,GAAG,IAAI,CAACD,YAAY,EAAE;EAC/B;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/internal.foundry.core\";\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;