@osdk/generator 2.1.0-beta.9 → 2.1.0

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 +350 -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,355 @@
1
1
  # @osdk/generator
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d794c19: Adding support for struct action params.
8
+ - 0dc40b0: Switch to OSDK.Instance
9
+ - 25fd9f0: Updating package.json to have better entry points to support react native bundlers.
10
+ - f0b519d: Upgrade to vitest 3 and vite 6
11
+ - 1812118: Add geotime support for OSDK.
12
+ - bc1761c: Update platform API dependencies.
13
+ - bb8b219: Use new external packages instead of the internal ones.
14
+ - 44e62f6: Updating fetch for auth and other packages.
15
+ - 03f95eb: Add support for interface params in actions.
16
+ - 91cfa3a: Fixing url parsing for client.
17
+ - 9d35a1f: Remove unused imports
18
+ - c691c8b: Package now has experimental support for commonjs
19
+ - 749cf69: Remove experimental non null for now.
20
+ - 027db73: Fixes generation for interfaces with no properties
21
+ - c9da74c: Improves code quality by fixing linting errors
22
+ - abfe4b3: Add support for reading struct properties.
23
+ - ecd4aee: Fixing use of logging from client for unknown property types.
24
+ - a5a0ea4: Namespaced object sets in actions no longer generate wrong
25
+ - ee6224b: Explicitly type aggregation types in queries.
26
+ - 696c59c: Exposes $osdkMetadata from the root of generated packages for clients that want access to $osdkMetadata.extraUserAgent
27
+ - 9018dc2: Updating platform api dependencies.
28
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
29
+ - 518972b: Queries that have structs now represent the struct shape instead of Record<string, any>
30
+ - bf0e3b4: Ignore unknown property types.
31
+ - 09eaf24: Update to latest platform sdks
32
+ - 71dfb4c: Now export all api shapes from client, so use that dependency instead.
33
+ - d665147: Update platform sdk deps
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [966d408]
38
+ - Updated dependencies [cddc196]
39
+ - Updated dependencies [d794c19]
40
+ - Updated dependencies [05febf4]
41
+ - Updated dependencies [55c05f2]
42
+ - Updated dependencies [0dc40b0]
43
+ - Updated dependencies [25fd9f0]
44
+ - Updated dependencies [11a05cc]
45
+ - Updated dependencies [7865cb6]
46
+ - Updated dependencies [9c4efe6]
47
+ - Updated dependencies [0a7c747]
48
+ - Updated dependencies [f0b519d]
49
+ - Updated dependencies [3ea2e79]
50
+ - Updated dependencies [1812118]
51
+ - Updated dependencies [bc1761c]
52
+ - Updated dependencies [656f975]
53
+ - Updated dependencies [f1145ff]
54
+ - Updated dependencies [f446d0c]
55
+ - Updated dependencies [c80ca45]
56
+ - Updated dependencies [bb8b219]
57
+ - Updated dependencies [44e62f6]
58
+ - Updated dependencies [03f95eb]
59
+ - Updated dependencies [91cfa3a]
60
+ - Updated dependencies [1a89f23]
61
+ - Updated dependencies [9d35a1f]
62
+ - Updated dependencies [c691c8b]
63
+ - Updated dependencies [749cf69]
64
+ - Updated dependencies [f03e39f]
65
+ - Updated dependencies [11088aa]
66
+ - Updated dependencies [72c1905]
67
+ - Updated dependencies [9298f75]
68
+ - Updated dependencies [f34b3d4]
69
+ - Updated dependencies [acbfab9]
70
+ - Updated dependencies [c9da74c]
71
+ - Updated dependencies [62c1d63]
72
+ - Updated dependencies [3c9ac22]
73
+ - Updated dependencies [1591f04]
74
+ - Updated dependencies [03e1941]
75
+ - Updated dependencies [abfe4b3]
76
+ - Updated dependencies [b79becf]
77
+ - Updated dependencies [27866a8]
78
+ - Updated dependencies [e5fe7c0]
79
+ - Updated dependencies [1b2e8c9]
80
+ - Updated dependencies [81b2fb2]
81
+ - Updated dependencies [9f3807c]
82
+ - Updated dependencies [ecd4aee]
83
+ - Updated dependencies [0c56d21]
84
+ - Updated dependencies [e548b9b]
85
+ - Updated dependencies [ee6224b]
86
+ - Updated dependencies [1dc0228]
87
+ - Updated dependencies [6c60414]
88
+ - Updated dependencies [5fe2c8d]
89
+ - Updated dependencies [7d777eb]
90
+ - Updated dependencies [d3b3f35]
91
+ - Updated dependencies [c682504]
92
+ - Updated dependencies [785f663]
93
+ - Updated dependencies [9018dc2]
94
+ - Updated dependencies [6b6c8a1]
95
+ - Updated dependencies [c537e2d]
96
+ - Updated dependencies [73fa373]
97
+ - Updated dependencies [bf0e3b4]
98
+ - Updated dependencies [8e6a5f4]
99
+ - Updated dependencies [09eaf24]
100
+ - Updated dependencies [2d5e648]
101
+ - Updated dependencies [31e7d70]
102
+ - Updated dependencies [d665147]
103
+ - Updated dependencies [f19da8e]
104
+ - @osdk/generator-converters@2.1.0
105
+ - @osdk/api@2.1.0
106
+
107
+ ## 2.1.0-rc.32
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [55c05f2]
112
+ - @osdk/api@2.1.0-rc.32
113
+ - @osdk/generator-converters@2.1.0-rc.32
114
+
115
+ ## 2.1.0-beta.31
116
+
117
+ ### Minor Changes
118
+
119
+ - bb8b219: Use new external packages instead of the internal ones.
120
+ - ecd4aee: Fixing use of logging from client for unknown property types.
121
+ - ee6224b: Explicitly type aggregation types in queries.
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [bb8b219]
126
+ - Updated dependencies [81b2fb2]
127
+ - Updated dependencies [ecd4aee]
128
+ - Updated dependencies [ee6224b]
129
+ - Updated dependencies [5fe2c8d]
130
+ - @osdk/generator-converters@2.1.0-beta.31
131
+ - @osdk/api@2.1.0-beta.31
132
+
133
+ ## 2.1.0-beta.30
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [966d408]
138
+ - Updated dependencies [f03e39f]
139
+ - Updated dependencies [1591f04]
140
+ - Updated dependencies [785f663]
141
+ - Updated dependencies [2d5e648]
142
+ - @osdk/generator-converters@2.1.0-beta.30
143
+ - @osdk/api@2.1.0-beta.30
144
+
145
+ ## 2.1.0-beta.29
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [f1145ff]
150
+ - @osdk/api@2.1.0-beta.29
151
+ - @osdk/generator-converters@2.1.0-beta.29
152
+
153
+ ## 2.1.0-beta.28
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies [f446d0c]
158
+ - @osdk/api@2.1.0-beta.28
159
+ - @osdk/generator-converters@2.1.0-beta.28
160
+
161
+ ## 2.1.0-beta.27
162
+
163
+ ### Patch Changes
164
+
165
+ - @osdk/api@2.1.0-beta.27
166
+ - @osdk/generator-converters@2.1.0-beta.27
167
+
168
+ ## 2.1.0-beta.26
169
+
170
+ ### Minor Changes
171
+
172
+ - 44e62f6: Updating fetch for auth and other packages.
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [7865cb6]
177
+ - Updated dependencies [9c4efe6]
178
+ - Updated dependencies [44e62f6]
179
+ - Updated dependencies [f19da8e]
180
+ - @osdk/api@2.1.0-beta.26
181
+ - @osdk/generator-converters@2.1.0-beta.26
182
+
183
+ ## 2.1.0-beta.25
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [c80ca45]
188
+ - @osdk/generator-converters@2.1.0-beta.25
189
+ - @osdk/api@2.1.0-beta.25
190
+
191
+ ## 2.1.0-beta.24
192
+
193
+ ### Minor Changes
194
+
195
+ - 03f95eb: Add support for interface params in actions.
196
+ - c691c8b: Package now has experimental support for commonjs
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [03f95eb]
201
+ - Updated dependencies [c691c8b]
202
+ - Updated dependencies [3c9ac22]
203
+ - @osdk/generator-converters@2.1.0-beta.24
204
+ - @osdk/api@2.1.0-beta.24
205
+
206
+ ## 2.1.0-beta.23
207
+
208
+ ### Minor Changes
209
+
210
+ - d794c19: Adding support for struct action params.
211
+ - f0b519d: Upgrade to vitest 3 and vite 6
212
+ - 696c59c: Exposes $osdkMetadata from the root of generated packages for clients that want access to $osdkMetadata.extraUserAgent
213
+ - d665147: Update platform sdk deps
214
+
215
+ ### Patch Changes
216
+
217
+ - Updated dependencies [d794c19]
218
+ - Updated dependencies [f0b519d]
219
+ - Updated dependencies [62c1d63]
220
+ - Updated dependencies [d665147]
221
+ - @osdk/generator-converters@2.1.0-beta.23
222
+ - @osdk/api@2.1.0-beta.23
223
+
224
+ ## 2.1.0-beta.22
225
+
226
+ ### Minor Changes
227
+
228
+ - c9da74c: Improves code quality by fixing linting errors
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [c9da74c]
233
+ - Updated dependencies [73fa373]
234
+ - @osdk/generator-converters@2.1.0-beta.22
235
+ - @osdk/api@2.1.0-beta.22
236
+
237
+ ## 2.1.0-beta.21
238
+
239
+ ### Patch Changes
240
+
241
+ - Updated dependencies [3ea2e79]
242
+ - Updated dependencies [656f975]
243
+ - Updated dependencies [f34b3d4]
244
+ - @osdk/api@2.1.0-beta.21
245
+ - @osdk/generator-converters@2.1.0-beta.21
246
+
247
+ ## 2.1.0-beta.20
248
+
249
+ ### Minor Changes
250
+
251
+ - 9d35a1f: Remove unused imports
252
+ - abfe4b3: Add support for reading struct properties.
253
+ - bf0e3b4: Ignore unknown property types.
254
+
255
+ ### Patch Changes
256
+
257
+ - Updated dependencies [9d35a1f]
258
+ - Updated dependencies [abfe4b3]
259
+ - Updated dependencies [c537e2d]
260
+ - Updated dependencies [bf0e3b4]
261
+ - @osdk/generator-converters@2.1.0-beta.20
262
+ - @osdk/api@2.1.0-beta.20
263
+
264
+ ## 2.1.0-beta.19
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [cddc196]
269
+ - @osdk/api@2.1.0-beta.19
270
+ - @osdk/generator-converters@2.1.0-beta.19
271
+
272
+ ## 2.1.0-beta.18
273
+
274
+ ### Patch Changes
275
+
276
+ - @osdk/api@2.1.0-beta.18
277
+ - @osdk/generator-converters@2.1.0-beta.18
278
+
279
+ ## 2.1.0-beta.17
280
+
281
+ ### Patch Changes
282
+
283
+ - @osdk/api@2.1.0-beta.17
284
+ - @osdk/generator-converters@2.1.0-beta.17
285
+
286
+ ## 2.1.0-beta.16
287
+
288
+ ### Patch Changes
289
+
290
+ - Updated dependencies [e5fe7c0]
291
+ - @osdk/api@2.1.0-beta.16
292
+ - @osdk/generator-converters@2.1.0-beta.16
293
+
294
+ ## 2.1.0-beta.15
295
+
296
+ ### Patch Changes
297
+
298
+ - @osdk/api@2.1.0-beta.15
299
+ - @osdk/generator-converters@2.1.0-beta.15
300
+
301
+ ## 2.1.0-beta.14
302
+
303
+ ### Minor Changes
304
+
305
+ - 91cfa3a: Fixing url parsing for client.
306
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [0a7c747]
311
+ - Updated dependencies [91cfa3a]
312
+ - Updated dependencies [0c56d21]
313
+ - Updated dependencies [6b6c8a1]
314
+ - @osdk/generator-converters@2.1.0-beta.14
315
+ - @osdk/api@2.1.0-beta.14
316
+
317
+ ## 2.1.0-beta.13
318
+
319
+ ### Patch Changes
320
+
321
+ - @osdk/api@2.1.0-beta.13
322
+ - @osdk/generator-converters@2.1.0-beta.13
323
+
324
+ ## 2.1.0-beta.12
325
+
326
+ ### Patch Changes
327
+
328
+ - @osdk/api@2.1.0-beta.12
329
+ - @osdk/generator-converters@2.1.0-beta.12
330
+
331
+ ## 2.1.0-beta.11
332
+
333
+ ### Minor Changes
334
+
335
+ - bc1761c: Update platform API dependencies.
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies [bc1761c]
340
+ - Updated dependencies [9298f75]
341
+ - @osdk/generator-converters@2.1.0-beta.11
342
+ - @osdk/api@2.1.0-beta.11
343
+
344
+ ## 2.1.0-beta.10
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies [11a05cc]
349
+ - Updated dependencies [11088aa]
350
+ - @osdk/api@2.1.0-beta.10
351
+ - @osdk/generator-converters@2.1.0-beta.10
352
+
3
353
  ## 2.1.0-beta.9
4
354
 
5
355
  ### 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":"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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/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`;