@osdk/generator 2.0.0-beta.8 → 2.0.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 (328) hide show
  1. package/CHANGELOG.md +212 -0
  2. package/build/{cjs/GenerateContext/EnhanceCommon.d.cts → browser/GenerateContext/EnhanceCommon.d.ts} +1 -1
  3. package/build/browser/GenerateContext/EnhanceCommon.js +17 -0
  4. package/build/browser/GenerateContext/EnhanceCommon.js.map +1 -0
  5. package/build/{cjs/GenerateContext/EnhancedAction.d.cts → browser/GenerateContext/EnhancedAction.d.ts} +2 -2
  6. package/build/browser/GenerateContext/EnhancedAction.js +42 -0
  7. package/build/browser/GenerateContext/EnhancedAction.js.map +1 -0
  8. package/build/{cjs/GenerateContext/EnhancedBase.d.cts → browser/GenerateContext/EnhancedBase.d.ts} +1 -1
  9. package/build/{cjs → browser}/GenerateContext/EnhancedBase.d.ts.map +1 -1
  10. package/build/browser/GenerateContext/EnhancedBase.js +72 -0
  11. package/build/browser/GenerateContext/EnhancedBase.js.map +1 -0
  12. package/build/{cjs/GenerateContext/EnhancedInterfaceType.d.cts → browser/GenerateContext/EnhancedInterfaceType.d.ts} +4 -4
  13. package/build/{cjs → browser}/GenerateContext/EnhancedInterfaceType.d.ts.map +1 -1
  14. package/build/browser/GenerateContext/EnhancedInterfaceType.js +38 -0
  15. package/build/browser/GenerateContext/EnhancedInterfaceType.js.map +1 -0
  16. package/build/{cjs/GenerateContext/EnhancedObjectType.d.cts → browser/GenerateContext/EnhancedObjectType.d.ts} +4 -4
  17. package/build/browser/GenerateContext/EnhancedObjectType.d.ts.map +1 -0
  18. package/build/browser/GenerateContext/EnhancedObjectType.js +35 -0
  19. package/build/browser/GenerateContext/EnhancedObjectType.js.map +1 -0
  20. package/build/{cjs/GenerateContext/EnhancedOntologyDefinition.d.cts → browser/GenerateContext/EnhancedOntologyDefinition.d.ts} +8 -8
  21. package/build/browser/GenerateContext/EnhancedOntologyDefinition.js +77 -0
  22. package/build/browser/GenerateContext/EnhancedOntologyDefinition.js.map +1 -0
  23. package/build/{cjs/GenerateContext/EnhancedQuery.d.cts → browser/GenerateContext/EnhancedQuery.d.ts} +2 -2
  24. package/build/browser/GenerateContext/EnhancedQuery.js +42 -0
  25. package/build/browser/GenerateContext/EnhancedQuery.js.map +1 -0
  26. package/build/{cjs/GenerateContext/EnhancedSharedPropertyType.d.cts → browser/GenerateContext/EnhancedSharedPropertyType.d.ts} +2 -2
  27. package/build/browser/GenerateContext/EnhancedSharedPropertyType.js +24 -0
  28. package/build/browser/GenerateContext/EnhancedSharedPropertyType.js.map +1 -0
  29. package/build/{cjs/GenerateContext/ForeignType.d.cts → browser/GenerateContext/ForeignType.d.ts} +2 -2
  30. package/build/browser/GenerateContext/ForeignType.js +36 -0
  31. package/build/browser/GenerateContext/ForeignType.js.map +1 -0
  32. package/build/{cjs/GenerateContext/GenerateContext.d.cts → browser/GenerateContext/GenerateContext.d.ts} +3 -3
  33. package/build/browser/GenerateContext/GenerateContext.js +17 -0
  34. package/build/browser/GenerateContext/GenerateContext.js.map +1 -0
  35. package/build/{cjs/GenerateContext/enhanceOntology.d.cts → browser/GenerateContext/enhanceOntology.d.ts} +2 -2
  36. package/build/browser/GenerateContext/enhanceOntology.js +20 -0
  37. package/build/browser/GenerateContext/enhanceOntology.js.map +1 -0
  38. package/build/browser/MinimalFs.js +17 -0
  39. package/build/browser/MinimalFs.js.map +1 -0
  40. package/build/browser/WireOntologyDefinition.js +17 -0
  41. package/build/browser/WireOntologyDefinition.js.map +1 -0
  42. package/build/{cjs/generateClientSdkPackage.d.cts → browser/generateClientSdkPackage.d.ts} +3 -8
  43. package/build/{cjs → browser}/generateClientSdkPackage.d.ts.map +1 -1
  44. package/build/browser/generateClientSdkPackage.js +126 -0
  45. package/build/browser/generateClientSdkPackage.js.map +1 -0
  46. package/build/browser/generateClientSdkPackage.test.js +67 -0
  47. package/build/browser/generateClientSdkPackage.test.js.map +1 -0
  48. package/build/{cjs/index.d.cts → browser/index.d.ts} +4 -4
  49. package/build/browser/index.js +17 -1553
  50. package/build/browser/index.js.map +1 -1
  51. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js +23 -0
  52. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -0
  53. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js +46 -0
  54. package/build/browser/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -0
  55. package/build/{cjs/shared/getObjectImports.d.cts → browser/shared/getObjectImports.d.ts} +2 -2
  56. package/build/browser/shared/getObjectImports.js +24 -0
  57. package/build/browser/shared/getObjectImports.js.map +1 -0
  58. package/build/{cjs/shared/getObjectTypeApiNamesFromQuery.d.cts → browser/shared/getObjectTypeApiNamesFromQuery.d.ts} +1 -1
  59. package/build/browser/shared/getObjectTypeApiNamesFromQuery.js +27 -0
  60. package/build/browser/shared/getObjectTypeApiNamesFromQuery.js.map +1 -0
  61. package/build/browser/shared/getObjectTypesFromQueryDataType.js +57 -0
  62. package/build/browser/shared/getObjectTypesFromQueryDataType.js.map +1 -0
  63. package/build/browser/shared/propertyJsdoc.d.ts +6 -0
  64. package/build/browser/shared/propertyJsdoc.d.ts.map +1 -0
  65. package/build/browser/shared/propertyJsdoc.js +38 -0
  66. package/build/browser/shared/propertyJsdoc.js.map +1 -0
  67. package/build/browser/shared/sanitizeMetadata.js +33 -0
  68. package/build/browser/shared/sanitizeMetadata.js.map +1 -0
  69. package/build/browser/shared/sanitizeMetadata.test.js +44 -0
  70. package/build/browser/shared/sanitizeMetadata.test.js.map +1 -0
  71. package/build/{cjs/util/InMemoryFs.d.cts → browser/util/InMemoryFs.d.ts} +1 -1
  72. package/build/browser/util/InMemoryFs.js +30 -0
  73. package/build/browser/util/InMemoryFs.js.map +1 -0
  74. package/build/browser/util/commaSeparatedIdentifiers.js +25 -0
  75. package/build/browser/util/commaSeparatedIdentifiers.js.map +1 -0
  76. package/build/browser/util/commaSeparatedTypeIdentifiers.js +19 -0
  77. package/build/browser/util/commaSeparatedTypeIdentifiers.js.map +1 -0
  78. package/build/browser/util/deleteUndefineds.js +19 -0
  79. package/build/browser/util/deleteUndefineds.js.map +1 -0
  80. package/build/browser/util/reservedKeywords.js +21 -0
  81. package/build/browser/util/reservedKeywords.js.map +1 -0
  82. package/build/browser/util/stringUnionFrom.js +23 -0
  83. package/build/browser/util/stringUnionFrom.js.map +1 -0
  84. package/build/browser/util/stringify.js +36 -0
  85. package/build/browser/util/stringify.js.map +1 -0
  86. package/build/browser/util/test/TodoWireOntology.js +232 -0
  87. package/build/browser/util/test/TodoWireOntology.js.map +1 -0
  88. package/build/browser/util/test/compileThis.js +41 -0
  89. package/build/browser/util/test/compileThis.js.map +1 -0
  90. package/build/{cjs/util/test/createMockMinimalFiles.d.cts → browser/util/test/createMockMinimalFiles.d.ts} +1 -1
  91. package/build/browser/util/test/createMockMinimalFiles.js +37 -0
  92. package/build/browser/util/test/createMockMinimalFiles.js.map +1 -0
  93. package/build/browser/util/test/formatTs.js +32 -0
  94. package/build/browser/util/test/formatTs.js.map +1 -0
  95. package/build/{cjs/util/verifyOutDir.d.cts → browser/util/verifyOutDir.d.ts} +1 -1
  96. package/build/browser/util/verifyOutDir.js +35 -0
  97. package/build/browser/util/verifyOutDir.js.map +1 -0
  98. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +114 -0
  99. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -0
  100. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +273 -0
  101. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -0
  102. package/build/{cjs/v2.0/generateClientSdkVersionTwoPointZero.d.cts → browser/v2.0/generateClientSdkVersionTwoPointZero.d.ts} +2 -2
  103. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js +119 -0
  104. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -0
  105. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js +1939 -0
  106. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -0
  107. package/build/{cjs/v2.0/generateMetadata.d.cts → browser/v2.0/generateMetadata.d.ts} +1 -1
  108. package/build/browser/v2.0/generateMetadata.js +35 -0
  109. package/build/browser/v2.0/generateMetadata.js.map +1 -0
  110. package/build/{cjs/v2.0/generatePerActionDataFiles.d.cts → browser/v2.0/generatePerActionDataFiles.d.ts} +1 -1
  111. package/build/{cjs → browser}/v2.0/generatePerActionDataFiles.d.ts.map +1 -1
  112. package/build/browser/v2.0/generatePerActionDataFiles.js +240 -0
  113. package/build/browser/v2.0/generatePerActionDataFiles.js.map +1 -0
  114. package/build/browser/v2.0/generatePerActionDataFiles.test.js +51 -0
  115. package/build/browser/v2.0/generatePerActionDataFiles.test.js.map +1 -0
  116. package/build/{cjs/v2.0/generatePerQueryDataFiles.d.cts → browser/v2.0/generatePerQueryDataFiles.d.ts} +3 -3
  117. package/build/{cjs → browser}/v2.0/generatePerQueryDataFiles.d.ts.map +1 -1
  118. package/build/browser/v2.0/generatePerQueryDataFiles.js +192 -0
  119. package/build/browser/v2.0/generatePerQueryDataFiles.js.map +1 -0
  120. package/build/browser/v2.0/generatePerQueryDataFiles.test.js +195 -0
  121. package/build/browser/v2.0/generatePerQueryDataFiles.test.js.map +1 -0
  122. package/build/browser/v2.0/getDescriptionIfPresent.js +24 -0
  123. package/build/browser/v2.0/getDescriptionIfPresent.js.map +1 -0
  124. package/build/{cjs/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.cts → browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts} +3 -3
  125. package/build/{cjs → browser}/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +1 -1
  126. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +205 -0
  127. package/build/browser/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -0
  128. package/build/{cjs/validateWireOntologyAssumptions.d.cts → browser/validateWireOntologyAssumptions.d.ts} +1 -1
  129. package/build/browser/validateWireOntologyAssumptions.js +33 -0
  130. package/build/browser/validateWireOntologyAssumptions.js.map +1 -0
  131. package/build/esm/GenerateContext/EnhanceCommon.js +17 -0
  132. package/build/esm/GenerateContext/EnhanceCommon.js.map +1 -0
  133. package/build/esm/GenerateContext/EnhancedAction.js +42 -0
  134. package/build/esm/GenerateContext/EnhancedAction.js.map +1 -0
  135. package/build/esm/GenerateContext/EnhancedBase.d.ts.map +1 -1
  136. package/build/esm/GenerateContext/EnhancedBase.js +72 -0
  137. package/build/esm/GenerateContext/EnhancedBase.js.map +1 -0
  138. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts +2 -2
  139. package/build/esm/GenerateContext/EnhancedInterfaceType.d.ts.map +1 -1
  140. package/build/esm/GenerateContext/EnhancedInterfaceType.js +38 -0
  141. package/build/esm/GenerateContext/EnhancedInterfaceType.js.map +1 -0
  142. package/build/esm/GenerateContext/EnhancedObjectType.d.ts +2 -2
  143. package/build/esm/GenerateContext/EnhancedObjectType.d.ts.map +1 -1
  144. package/build/esm/GenerateContext/EnhancedObjectType.js +35 -0
  145. package/build/esm/GenerateContext/EnhancedObjectType.js.map +1 -0
  146. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js +77 -0
  147. package/build/esm/GenerateContext/EnhancedOntologyDefinition.js.map +1 -0
  148. package/build/esm/GenerateContext/EnhancedQuery.js +42 -0
  149. package/build/esm/GenerateContext/EnhancedQuery.js.map +1 -0
  150. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js +24 -0
  151. package/build/esm/GenerateContext/EnhancedSharedPropertyType.js.map +1 -0
  152. package/build/esm/GenerateContext/ForeignType.js +36 -0
  153. package/build/esm/GenerateContext/ForeignType.js.map +1 -0
  154. package/build/esm/GenerateContext/GenerateContext.js +17 -0
  155. package/build/esm/GenerateContext/GenerateContext.js.map +1 -0
  156. package/build/esm/GenerateContext/enhanceOntology.js +20 -0
  157. package/build/esm/GenerateContext/enhanceOntology.js.map +1 -0
  158. package/build/esm/MinimalFs.js +17 -0
  159. package/build/esm/MinimalFs.js.map +1 -0
  160. package/build/esm/WireOntologyDefinition.js +17 -0
  161. package/build/esm/WireOntologyDefinition.js.map +1 -0
  162. package/build/esm/generateClientSdkPackage.d.ts +1 -6
  163. package/build/esm/generateClientSdkPackage.d.ts.map +1 -1
  164. package/build/esm/generateClientSdkPackage.js +126 -0
  165. package/build/esm/generateClientSdkPackage.js.map +1 -0
  166. package/build/esm/generateClientSdkPackage.test.js +67 -0
  167. package/build/esm/generateClientSdkPackage.test.js.map +1 -0
  168. package/build/esm/index.js +17 -1553
  169. package/build/esm/index.js.map +1 -1
  170. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js +23 -0
  171. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.js.map +1 -0
  172. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js +46 -0
  173. package/build/esm/shared/apiNamespaces/startsWithApiNamespace.test.js.map +1 -0
  174. package/build/esm/shared/getObjectImports.js +24 -0
  175. package/build/esm/shared/getObjectImports.js.map +1 -0
  176. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js +27 -0
  177. package/build/esm/shared/getObjectTypeApiNamesFromQuery.js.map +1 -0
  178. package/build/esm/shared/getObjectTypesFromQueryDataType.js +57 -0
  179. package/build/esm/shared/getObjectTypesFromQueryDataType.js.map +1 -0
  180. package/build/esm/shared/propertyJsdoc.d.ts +2 -2
  181. package/build/esm/shared/propertyJsdoc.d.ts.map +1 -1
  182. package/build/esm/shared/propertyJsdoc.js +38 -0
  183. package/build/esm/shared/propertyJsdoc.js.map +1 -0
  184. package/build/esm/shared/sanitizeMetadata.js +33 -0
  185. package/build/esm/shared/sanitizeMetadata.js.map +1 -0
  186. package/build/esm/shared/sanitizeMetadata.test.js +44 -0
  187. package/build/esm/shared/sanitizeMetadata.test.js.map +1 -0
  188. package/build/esm/util/InMemoryFs.js +30 -0
  189. package/build/esm/util/InMemoryFs.js.map +1 -0
  190. package/build/esm/util/commaSeparatedIdentifiers.js +25 -0
  191. package/build/esm/util/commaSeparatedIdentifiers.js.map +1 -0
  192. package/build/esm/util/commaSeparatedTypeIdentifiers.js +19 -0
  193. package/build/esm/util/commaSeparatedTypeIdentifiers.js.map +1 -0
  194. package/build/esm/util/deleteUndefineds.js +19 -0
  195. package/build/esm/util/deleteUndefineds.js.map +1 -0
  196. package/build/esm/util/reservedKeywords.js +21 -0
  197. package/build/esm/util/reservedKeywords.js.map +1 -0
  198. package/build/esm/util/stringUnionFrom.js +23 -0
  199. package/build/esm/util/stringUnionFrom.js.map +1 -0
  200. package/build/esm/util/stringify.js +36 -0
  201. package/build/esm/util/stringify.js.map +1 -0
  202. package/build/esm/util/test/TodoWireOntology.js +232 -0
  203. package/build/esm/util/test/TodoWireOntology.js.map +1 -0
  204. package/build/esm/util/test/compileThis.js +41 -0
  205. package/build/esm/util/test/compileThis.js.map +1 -0
  206. package/build/esm/util/test/createMockMinimalFiles.js +37 -0
  207. package/build/esm/util/test/createMockMinimalFiles.js.map +1 -0
  208. package/build/esm/util/test/formatTs.js +32 -0
  209. package/build/esm/util/test/formatTs.js.map +1 -0
  210. package/build/esm/util/verifyOutDir.js +35 -0
  211. package/build/esm/util/verifyOutDir.js.map +1 -0
  212. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js +114 -0
  213. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.js.map +1 -0
  214. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +273 -0
  215. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -0
  216. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js +119 -0
  217. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.js.map +1 -0
  218. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js +1939 -0
  219. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -0
  220. package/build/esm/v2.0/generateMetadata.js +35 -0
  221. package/build/esm/v2.0/generateMetadata.js.map +1 -0
  222. package/build/esm/v2.0/generatePerActionDataFiles.d.ts.map +1 -1
  223. package/build/esm/v2.0/generatePerActionDataFiles.js +240 -0
  224. package/build/esm/v2.0/generatePerActionDataFiles.js.map +1 -0
  225. package/build/esm/v2.0/generatePerActionDataFiles.test.js +51 -0
  226. package/build/esm/v2.0/generatePerActionDataFiles.test.js.map +1 -0
  227. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts +1 -1
  228. package/build/esm/v2.0/generatePerQueryDataFiles.d.ts.map +1 -1
  229. package/build/esm/v2.0/generatePerQueryDataFiles.js +192 -0
  230. package/build/esm/v2.0/generatePerQueryDataFiles.js.map +1 -0
  231. package/build/esm/v2.0/generatePerQueryDataFiles.test.js +195 -0
  232. package/build/esm/v2.0/generatePerQueryDataFiles.test.js.map +1 -0
  233. package/build/esm/v2.0/getDescriptionIfPresent.js +24 -0
  234. package/build/esm/v2.0/getDescriptionIfPresent.js.map +1 -0
  235. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.d.ts.map +1 -1
  236. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js +205 -0
  237. package/build/esm/v2.0/wireObjectTypeV2ToSdkObjectConstV2.js.map +1 -0
  238. package/build/esm/validateWireOntologyAssumptions.js +33 -0
  239. package/build/esm/validateWireOntologyAssumptions.js.map +1 -0
  240. package/package.json +9 -14
  241. package/build/cjs/GenerateContext/EnhancedObjectType.d.ts.map +0 -1
  242. package/build/cjs/index.cjs +0 -1582
  243. package/build/cjs/index.cjs.map +0 -1
  244. package/build/cjs/shared/getEditedEntities.d.cts +0 -7
  245. package/build/cjs/shared/getEditedEntities.d.ts.map +0 -1
  246. package/build/cjs/shared/isNullableQueryDataType.d.cts +0 -3
  247. package/build/cjs/shared/isNullableQueryDataType.d.ts.map +0 -1
  248. package/build/cjs/shared/propertyJsdoc.d.cts +0 -6
  249. package/build/cjs/shared/propertyJsdoc.d.ts.map +0 -1
  250. package/build/cjs/shared/wireActionTypeV2ToSdkActionDefinition.d.cts +0 -4
  251. package/build/cjs/shared/wireActionTypeV2ToSdkActionDefinition.d.ts.map +0 -1
  252. package/build/cjs/shared/wireQueryDataTypeToQueryDataTypeDefinition.d.cts +0 -4
  253. package/build/cjs/shared/wireQueryDataTypeToQueryDataTypeDefinition.d.ts.map +0 -1
  254. package/build/cjs/shared/wireQueryTypeV2ToSdkQueryDefinition.d.cts +0 -12
  255. package/build/cjs/shared/wireQueryTypeV2ToSdkQueryDefinition.d.ts.map +0 -1
  256. package/build/esm/shared/getEditedEntities.d.ts +0 -7
  257. package/build/esm/shared/getEditedEntities.d.ts.map +0 -1
  258. package/build/esm/shared/isNullableQueryDataType.d.ts +0 -3
  259. package/build/esm/shared/isNullableQueryDataType.d.ts.map +0 -1
  260. package/build/esm/shared/wireActionTypeV2ToSdkActionDefinition.d.ts +0 -4
  261. package/build/esm/shared/wireActionTypeV2ToSdkActionDefinition.d.ts.map +0 -1
  262. package/build/esm/shared/wireQueryDataTypeToQueryDataTypeDefinition.d.ts +0 -4
  263. package/build/esm/shared/wireQueryDataTypeToQueryDataTypeDefinition.d.ts.map +0 -1
  264. package/build/esm/shared/wireQueryTypeV2ToSdkQueryDefinition.d.ts +0 -12
  265. package/build/esm/shared/wireQueryTypeV2ToSdkQueryDefinition.d.ts.map +0 -1
  266. /package/build/{cjs → browser}/GenerateContext/EnhanceCommon.d.ts.map +0 -0
  267. /package/build/{cjs → browser}/GenerateContext/EnhancedAction.d.ts.map +0 -0
  268. /package/build/{cjs → browser}/GenerateContext/EnhancedOntologyDefinition.d.ts.map +0 -0
  269. /package/build/{cjs → browser}/GenerateContext/EnhancedQuery.d.ts.map +0 -0
  270. /package/build/{cjs → browser}/GenerateContext/EnhancedSharedPropertyType.d.ts.map +0 -0
  271. /package/build/{cjs → browser}/GenerateContext/ForeignType.d.ts.map +0 -0
  272. /package/build/{cjs → browser}/GenerateContext/GenerateContext.d.ts.map +0 -0
  273. /package/build/{cjs → browser}/GenerateContext/enhanceOntology.d.ts.map +0 -0
  274. /package/build/{cjs/MinimalFs.d.cts → browser/MinimalFs.d.ts} +0 -0
  275. /package/build/{cjs → browser}/MinimalFs.d.ts.map +0 -0
  276. /package/build/{cjs/WireOntologyDefinition.d.cts → browser/WireOntologyDefinition.d.ts} +0 -0
  277. /package/build/{cjs → browser}/WireOntologyDefinition.d.ts.map +0 -0
  278. /package/build/{cjs/generateClientSdkPackage.test.d.cts → browser/generateClientSdkPackage.test.d.ts} +0 -0
  279. /package/build/{cjs → browser}/generateClientSdkPackage.test.d.ts.map +0 -0
  280. /package/build/{cjs → browser}/index.d.ts.map +0 -0
  281. /package/build/{cjs/shared/apiNamespaces/startsWithApiNamespace.d.cts → browser/shared/apiNamespaces/startsWithApiNamespace.d.ts} +0 -0
  282. /package/build/{cjs → browser}/shared/apiNamespaces/startsWithApiNamespace.d.ts.map +0 -0
  283. /package/build/{cjs/shared/apiNamespaces/startsWithApiNamespace.test.d.cts → browser/shared/apiNamespaces/startsWithApiNamespace.test.d.ts} +0 -0
  284. /package/build/{cjs → browser}/shared/apiNamespaces/startsWithApiNamespace.test.d.ts.map +0 -0
  285. /package/build/{cjs → browser}/shared/getObjectImports.d.ts.map +0 -0
  286. /package/build/{cjs → browser}/shared/getObjectTypeApiNamesFromQuery.d.ts.map +0 -0
  287. /package/build/{cjs/shared/getObjectTypesFromQueryDataType.d.cts → browser/shared/getObjectTypesFromQueryDataType.d.ts} +0 -0
  288. /package/build/{cjs → browser}/shared/getObjectTypesFromQueryDataType.d.ts.map +0 -0
  289. /package/build/{cjs/shared/sanitizeMetadata.d.cts → browser/shared/sanitizeMetadata.d.ts} +0 -0
  290. /package/build/{cjs → browser}/shared/sanitizeMetadata.d.ts.map +0 -0
  291. /package/build/{cjs/shared/sanitizeMetadata.test.d.cts → browser/shared/sanitizeMetadata.test.d.ts} +0 -0
  292. /package/build/{cjs → browser}/shared/sanitizeMetadata.test.d.ts.map +0 -0
  293. /package/build/{cjs → browser}/util/InMemoryFs.d.ts.map +0 -0
  294. /package/build/{cjs/util/commaSeparatedIdentifiers.d.cts → browser/util/commaSeparatedIdentifiers.d.ts} +0 -0
  295. /package/build/{cjs → browser}/util/commaSeparatedIdentifiers.d.ts.map +0 -0
  296. /package/build/{cjs/util/commaSeparatedTypeIdentifiers.d.cts → browser/util/commaSeparatedTypeIdentifiers.d.ts} +0 -0
  297. /package/build/{cjs → browser}/util/commaSeparatedTypeIdentifiers.d.ts.map +0 -0
  298. /package/build/{cjs/util/deleteUndefineds.d.cts → browser/util/deleteUndefineds.d.ts} +0 -0
  299. /package/build/{cjs → browser}/util/deleteUndefineds.d.ts.map +0 -0
  300. /package/build/{cjs/util/reservedKeywords.d.cts → browser/util/reservedKeywords.d.ts} +0 -0
  301. /package/build/{cjs → browser}/util/reservedKeywords.d.ts.map +0 -0
  302. /package/build/{cjs/util/stringUnionFrom.d.cts → browser/util/stringUnionFrom.d.ts} +0 -0
  303. /package/build/{cjs → browser}/util/stringUnionFrom.d.ts.map +0 -0
  304. /package/build/{cjs/util/stringify.d.cts → browser/util/stringify.d.ts} +0 -0
  305. /package/build/{cjs → browser}/util/stringify.d.ts.map +0 -0
  306. /package/build/{cjs/util/test/TodoWireOntology.d.cts → browser/util/test/TodoWireOntology.d.ts} +0 -0
  307. /package/build/{cjs → browser}/util/test/TodoWireOntology.d.ts.map +0 -0
  308. /package/build/{cjs/util/test/compileThis.d.cts → browser/util/test/compileThis.d.ts} +0 -0
  309. /package/build/{cjs → browser}/util/test/compileThis.d.ts.map +0 -0
  310. /package/build/{cjs → browser}/util/test/createMockMinimalFiles.d.ts.map +0 -0
  311. /package/build/{cjs/util/test/formatTs.d.cts → browser/util/test/formatTs.d.ts} +0 -0
  312. /package/build/{cjs → browser}/util/test/formatTs.d.ts.map +0 -0
  313. /package/build/{cjs → browser}/util/verifyOutDir.d.ts.map +0 -0
  314. /package/build/{cjs/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.cts → browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts} +0 -0
  315. /package/build/{cjs → browser}/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts.map +0 -0
  316. /package/build/{cjs/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.cts → browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts} +0 -0
  317. /package/build/{cjs → browser}/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.d.ts.map +0 -0
  318. /package/build/{cjs → browser}/v2.0/generateClientSdkVersionTwoPointZero.d.ts.map +0 -0
  319. /package/build/{cjs/v2.0/generateClientSdkVersionTwoPointZero.test.d.cts → browser/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts} +0 -0
  320. /package/build/{cjs → browser}/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts.map +0 -0
  321. /package/build/{cjs → browser}/v2.0/generateMetadata.d.ts.map +0 -0
  322. /package/build/{cjs/v2.0/generatePerActionDataFiles.test.d.cts → browser/v2.0/generatePerActionDataFiles.test.d.ts} +0 -0
  323. /package/build/{cjs → browser}/v2.0/generatePerActionDataFiles.test.d.ts.map +0 -0
  324. /package/build/{cjs/v2.0/generatePerQueryDataFiles.test.d.cts → browser/v2.0/generatePerQueryDataFiles.test.d.ts} +0 -0
  325. /package/build/{cjs → browser}/v2.0/generatePerQueryDataFiles.test.d.ts.map +0 -0
  326. /package/build/{cjs/v2.0/getDescriptionIfPresent.d.cts → browser/v2.0/getDescriptionIfPresent.d.ts} +0 -0
  327. /package/build/{cjs → browser}/v2.0/getDescriptionIfPresent.d.ts.map +0 -0
  328. /package/build/{cjs → browser}/validateWireOntologyAssumptions.d.ts.map +0 -0
@@ -0,0 +1,38 @@
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
+ export function propertyJsdoc(property, {
17
+ isInherited,
18
+ apiName
19
+ }) {
20
+ let ret = `/**\n`;
21
+ const renderDisplayName = property.displayName && property.displayName !== apiName;
22
+ if (isInherited || renderDisplayName || property.description) {
23
+ if (isInherited) {
24
+ ret += ` * (inherited from parent)\n`;
25
+ }
26
+ if (renderDisplayName) {
27
+ ret += ` * display name: '${property.displayName}'${property.description ? "," : ""}\n`;
28
+ }
29
+ if (property.description) {
30
+ ret += ` * description: ${property.description}\n`;
31
+ }
32
+ } else {
33
+ ret += ` * (no ontology metadata)\n`;
34
+ }
35
+ ret += ` */\n`;
36
+ return ret;
37
+ }
38
+ //# sourceMappingURL=propertyJsdoc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertyJsdoc.js","names":["propertyJsdoc","property","isInherited","apiName","ret","renderDisplayName","displayName","description"],"sources":["propertyJsdoc.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 function propertyJsdoc(property, { isInherited, apiName }) {\n let ret = `/**\\n`;\n const renderDisplayName = property.displayName\n && property.displayName !== apiName;\n if (isInherited || renderDisplayName || property.description) {\n if (isInherited) {\n ret += ` * (inherited from parent)\\n`;\n }\n if (renderDisplayName) {\n ret += ` * display name: '${property.displayName}'${property.description ? \",\" : \"\"}\\n`;\n }\n if (property.description) {\n ret += ` * description: ${property.description}\\n`;\n }\n }\n else {\n ret += ` * (no ontology metadata)\\n`;\n }\n ret += ` */\\n`;\n return ret;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,aAAaA,CAACC,QAAQ,EAAE;EAAEC,WAAW;EAAEC;AAAQ,CAAC,EAAE;EAC9D,IAAIC,GAAG,GAAG,OAAO;EACjB,MAAMC,iBAAiB,GAAGJ,QAAQ,CAACK,WAAW,IACvCL,QAAQ,CAACK,WAAW,KAAKH,OAAO;EACvC,IAAID,WAAW,IAAIG,iBAAiB,IAAIJ,QAAQ,CAACM,WAAW,EAAE;IAC1D,IAAIL,WAAW,EAAE;MACbE,GAAG,IAAI,8BAA8B;IACzC;IACA,IAAIC,iBAAiB,EAAE;MACnBD,GAAG,IAAI,uBAAuBH,QAAQ,CAACK,WAAW,IAAIL,QAAQ,CAACM,WAAW,GAAG,GAAG,GAAG,EAAE,IAAI;IAC7F;IACA,IAAIN,QAAQ,CAACM,WAAW,EAAE;MACtBH,GAAG,IAAI,qBAAqBH,QAAQ,CAACM,WAAW,IAAI;IACxD;EACJ,CAAC,MACI;IACDH,GAAG,IAAI,6BAA6B;EACxC;EACAA,GAAG,IAAI,OAAO;EACd,OAAOA,GAAG;AACd","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @internal
18
+ */
19
+ export function sanitizeMetadata(ontology) {
20
+ return {
21
+ ...ontology,
22
+ actionTypes: Object.fromEntries(Object.values(ontology.actionTypes).map(actionType => {
23
+ return [camelize(actionType.apiName), {
24
+ ...actionType,
25
+ apiName: camelize(actionType.apiName)
26
+ }];
27
+ }))
28
+ };
29
+ }
30
+ function camelize(name) {
31
+ return name.replace(/-./g, segment => segment[1].toUpperCase());
32
+ }
33
+ //# sourceMappingURL=sanitizeMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeMetadata.js","names":["sanitizeMetadata","ontology","actionTypes","Object","fromEntries","values","map","actionType","camelize","apiName","name","replace","segment","toUpperCase"],"sources":["sanitizeMetadata.js"],"sourcesContent":["/*\n * Copyright 2023 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/**\n * @internal\n */\nexport function sanitizeMetadata(ontology) {\n return {\n ...ontology,\n actionTypes: Object.fromEntries(Object.values(ontology.actionTypes).map(actionType => {\n return [camelize(actionType.apiName), {\n ...actionType,\n apiName: camelize(actionType.apiName),\n }];\n })),\n };\n}\nfunction camelize(name) {\n return name.replace(/-./g, segment => segment[1].toUpperCase());\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAACC,QAAQ,EAAE;EACvC,OAAO;IACH,GAAGA,QAAQ;IACXC,WAAW,EAAEC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,MAAM,CAACJ,QAAQ,CAACC,WAAW,CAAC,CAACI,GAAG,CAACC,UAAU,IAAI;MAClF,OAAO,CAACC,QAAQ,CAACD,UAAU,CAACE,OAAO,CAAC,EAAE;QAC9B,GAAGF,UAAU;QACbE,OAAO,EAAED,QAAQ,CAACD,UAAU,CAACE,OAAO;MACxC,CAAC,CAAC;IACV,CAAC,CAAC;EACN,CAAC;AACL;AACA,SAASD,QAAQA,CAACE,IAAI,EAAE;EACpB,OAAOA,IAAI,CAACC,OAAO,CAAC,KAAK,EAAEC,OAAO,IAAIA,OAAO,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,CAAC;AACnE","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright 2023 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
+ import { describe, expect, it } from "vitest";
17
+ import { sanitizeMetadata } from "./sanitizeMetadata.js";
18
+ describe(sanitizeMetadata, () => {
19
+ it("sanitized action apiNames", () => {
20
+ const sanitizedOntology = sanitizeMetadata({
21
+ objectTypes: {},
22
+ actionTypes: {
23
+ "kebab-case": {
24
+ apiName: "kebab-case",
25
+ operations: [],
26
+ parameters: {},
27
+ status: "ACTIVE",
28
+ rid: "ri.a.b.c.d"
29
+ }
30
+ },
31
+ ontology: {
32
+ rid: "ri.a.b.c.d",
33
+ apiName: "ontology",
34
+ displayName: "",
35
+ description: ""
36
+ },
37
+ queryTypes: {},
38
+ interfaceTypes: {},
39
+ sharedPropertyTypes: {}
40
+ });
41
+ expect(sanitizedOntology.actionTypes["kebabCase"].apiName).toEqual("kebabCase");
42
+ });
43
+ });
44
+ //# sourceMappingURL=sanitizeMetadata.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeMetadata.test.js","names":["describe","expect","it","sanitizeMetadata","sanitizedOntology","objectTypes","actionTypes","apiName","operations","parameters","status","rid","ontology","displayName","description","queryTypes","interfaceTypes","sharedPropertyTypes","toEqual"],"sources":["sanitizeMetadata.test.js"],"sourcesContent":["/*\n * Copyright 2023 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 { describe, expect, it } from \"vitest\";\nimport { sanitizeMetadata } from \"./sanitizeMetadata.js\";\ndescribe(sanitizeMetadata, () => {\n it(\"sanitized action apiNames\", () => {\n const sanitizedOntology = sanitizeMetadata({\n objectTypes: {},\n actionTypes: {\n \"kebab-case\": {\n apiName: \"kebab-case\",\n operations: [],\n parameters: {},\n status: \"ACTIVE\",\n rid: \"ri.a.b.c.d\",\n },\n },\n ontology: {\n rid: \"ri.a.b.c.d\",\n apiName: \"ontology\",\n displayName: \"\",\n description: \"\",\n },\n queryTypes: {},\n interfaceTypes: {},\n sharedPropertyTypes: {},\n });\n expect(sanitizedOntology.actionTypes[\"kebabCase\"].apiName).toEqual(\"kebabCase\");\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,gBAAgB,QAAQ,uBAAuB;AACxDH,QAAQ,CAACG,gBAAgB,EAAE,MAAM;EAC7BD,EAAE,CAAC,2BAA2B,EAAE,MAAM;IAClC,MAAME,iBAAiB,GAAGD,gBAAgB,CAAC;MACvCE,WAAW,EAAE,CAAC,CAAC;MACfC,WAAW,EAAE;QACT,YAAY,EAAE;UACVC,OAAO,EAAE,YAAY;UACrBC,UAAU,EAAE,EAAE;UACdC,UAAU,EAAE,CAAC,CAAC;UACdC,MAAM,EAAE,QAAQ;UAChBC,GAAG,EAAE;QACT;MACJ,CAAC;MACDC,QAAQ,EAAE;QACND,GAAG,EAAE,YAAY;QACjBJ,OAAO,EAAE,UAAU;QACnBM,WAAW,EAAE,EAAE;QACfC,WAAW,EAAE;MACjB,CAAC;MACDC,UAAU,EAAE,CAAC,CAAC;MACdC,cAAc,EAAE,CAAC,CAAC;MAClBC,mBAAmB,EAAE,CAAC;IAC1B,CAAC,CAAC;IACFhB,MAAM,CAACG,iBAAiB,CAACE,WAAW,CAAC,WAAW,CAAC,CAACC,OAAO,CAAC,CAACW,OAAO,CAAC,WAAW,CAAC;EACnF,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { type MinimalFs } from "../MinimalFs.cjs";
1
+ import { type MinimalFs } from "../MinimalFs.js";
2
2
  export interface InMemoryFs extends MinimalFs {
3
3
  getFiles(): Record<string, string>;
4
4
  getFile(path: string): string;
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2023 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
+ export function createInMemoryFs() {
17
+ const files = {};
18
+ return {
19
+ writeFile: async (path, contents) => {
20
+ files[path] = contents;
21
+ },
22
+ mkdir: async () => {},
23
+ getFiles: () => files,
24
+ getFile: path => files[path],
25
+ readdir: async () => {
26
+ throw new Error("not implemented");
27
+ }
28
+ };
29
+ }
30
+ //# sourceMappingURL=InMemoryFs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InMemoryFs.js","names":["createInMemoryFs","files","writeFile","path","contents","mkdir","getFiles","getFile","readdir","Error"],"sources":["InMemoryFs.js"],"sourcesContent":["/*\n * Copyright 2023 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 function createInMemoryFs() {\n const files = {};\n return {\n writeFile: async (path, contents) => {\n files[path] = contents;\n },\n mkdir: async (path, options) => {\n },\n getFiles: () => files,\n getFile: (path) => files[path],\n readdir: async (path) => {\n throw new Error(\"not implemented\");\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAAA,EAAG;EAC/B,MAAMC,KAAK,GAAG,CAAC,CAAC;EAChB,OAAO;IACHC,SAAS,EAAE,MAAAA,CAAOC,IAAI,EAAEC,QAAQ,KAAK;MACjCH,KAAK,CAACE,IAAI,CAAC,GAAGC,QAAQ;IAC1B,CAAC;IACDC,KAAK,EAAE,MAAAA,CAAA,KAAyB,CAChC,CAAC;IACDC,QAAQ,EAAEA,CAAA,KAAML,KAAK;IACrBM,OAAO,EAAGJ,IAAI,IAAKF,KAAK,CAACE,IAAI,CAAC;IAC9BK,OAAO,EAAE,MAAAA,CAAA,KAAgB;MACrB,MAAM,IAAIC,KAAK,CAAC,iBAAiB,CAAC;IACtC;EACJ,CAAC;AACL","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright 2023 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
+ export function commaSeparatedIdentifiers(identifiers, alternateNames) {
17
+ return identifiers.map(i => {
18
+ const alt = alternateNames?.get(i);
19
+ if (alt) {
20
+ return `${i}: ${alt}`;
21
+ }
22
+ return i;
23
+ }).join(",");
24
+ }
25
+ //# sourceMappingURL=commaSeparatedIdentifiers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commaSeparatedIdentifiers.js","names":["commaSeparatedIdentifiers","identifiers","alternateNames","map","i","alt","get","join"],"sources":["commaSeparatedIdentifiers.js"],"sourcesContent":["/*\n * Copyright 2023 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 function commaSeparatedIdentifiers(identifiers, alternateNames) {\n return identifiers.map(i => {\n const alt = alternateNames?.get(i);\n if (alt) {\n return `${i}: ${alt}`;\n }\n return i;\n }).join(\",\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,yBAAyBA,CAACC,WAAW,EAAEC,cAAc,EAAE;EACnE,OAAOD,WAAW,CAACE,GAAG,CAACC,CAAC,IAAI;IACxB,MAAMC,GAAG,GAAGH,cAAc,EAAEI,GAAG,CAACF,CAAC,CAAC;IAClC,IAAIC,GAAG,EAAE;MACL,OAAO,GAAGD,CAAC,KAAKC,GAAG,EAAE;IACzB;IACA,OAAOD,CAAC;EACZ,CAAC,CAAC,CAACG,IAAI,CAAC,GAAG,CAAC;AAChB","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2023 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
+ export function commaSeparatedTypeIdentifiers(identifiers, altNames) {
17
+ return identifiers.map(i => `${i}: typeof ${altNames?.get(i) ?? i}`).join(",");
18
+ }
19
+ //# sourceMappingURL=commaSeparatedTypeIdentifiers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commaSeparatedTypeIdentifiers.js","names":["commaSeparatedTypeIdentifiers","identifiers","altNames","map","i","get","join"],"sources":["commaSeparatedTypeIdentifiers.js"],"sourcesContent":["/*\n * Copyright 2023 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 function commaSeparatedTypeIdentifiers(identifiers, altNames) {\n return identifiers.map(i => `${i}: typeof ${altNames?.get(i) ?? i}`).join(\",\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,6BAA6BA,CAACC,WAAW,EAAEC,QAAQ,EAAE;EACjE,OAAOD,WAAW,CAACE,GAAG,CAACC,CAAC,IAAI,GAAGA,CAAC,YAAYF,QAAQ,EAAEG,GAAG,CAACD,CAAC,CAAC,IAAIA,CAAC,EAAE,CAAC,CAACE,IAAI,CAAC,GAAG,CAAC;AAClF","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2023 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
+ export function deleteUndefineds(obj) {
17
+ return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));
18
+ }
19
+ //# sourceMappingURL=deleteUndefineds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteUndefineds.js","names":["deleteUndefineds","obj","Object","fromEntries","entries","filter","value","undefined"],"sources":["deleteUndefineds.js"],"sourcesContent":["/*\n * Copyright 2023 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 function deleteUndefineds(obj) {\n return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAACC,GAAG,EAAE;EAClC,OAAOC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,OAAO,CAACH,GAAG,CAAC,CAACI,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAKA,KAAK,KAAKC,SAAS,CAAC,CAAC;AAC7F","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright 2023 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
+ // This must match the reservedKeywords definition in packages/legacy-client
17
+ const reservedKeywords = new Set(["break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "enum", "export", "extends", "false", "finally", "for", "function", "if", "import", "in", "instanceof", "new", "null", "return", "super", "switch", "this", "throw", "true", "try", "typeof", "var", "void", "while", "with", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"]);
18
+ export function isReservedKeyword(name) {
19
+ return reservedKeywords.has(name);
20
+ }
21
+ //# sourceMappingURL=reservedKeywords.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reservedKeywords.js","names":["reservedKeywords","Set","isReservedKeyword","name","has"],"sources":["reservedKeywords.js"],"sourcesContent":["/*\n * Copyright 2023 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// This must match the reservedKeywords definition in packages/legacy-client\nconst reservedKeywords = new Set([\n \"break\",\n \"case\",\n \"catch\",\n \"class\",\n \"const\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"delete\",\n \"do\",\n \"else\",\n \"enum\",\n \"export\",\n \"extends\",\n \"false\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"import\",\n \"in\",\n \"instanceof\",\n \"new\",\n \"null\",\n \"return\",\n \"super\",\n \"switch\",\n \"this\",\n \"throw\",\n \"true\",\n \"try\",\n \"typeof\",\n \"var\",\n \"void\",\n \"while\",\n \"with\",\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\",\n]);\nexport function isReservedKeyword(name) {\n return reservedKeywords.has(name);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,gBAAgB,GAAG,IAAIC,GAAG,CAAC,CAC7B,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,YAAY,EACZ,WAAW,EACX,KAAK,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,CACV,CAAC;AACF,OAAO,SAASC,iBAAiBA,CAACC,IAAI,EAAE;EACpC,OAAOH,gBAAgB,CAACI,GAAG,CAACD,IAAI,CAAC;AACrC","ignoreList":[]}
@@ -0,0 +1,23 @@
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
+ export function stringUnionFrom(values) {
17
+ if (values.length === 0) {
18
+ return "never";
19
+ } else {
20
+ return values.map(v => `"${v}"`).join("|");
21
+ }
22
+ }
23
+ //# sourceMappingURL=stringUnionFrom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringUnionFrom.js","names":["stringUnionFrom","values","length","map","v","join"],"sources":["stringUnionFrom.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 function stringUnionFrom(values) {\n if (values.length === 0) {\n return \"never\";\n }\n else {\n return values.map(v => `\"${v}\"`).join(\"|\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAACC,MAAM,EAAE;EACpC,IAAIA,MAAM,CAACC,MAAM,KAAK,CAAC,EAAE;IACrB,OAAO,OAAO;EAClB,CAAC,MACI;IACD,OAAOD,MAAM,CAACE,GAAG,CAACC,CAAC,IAAI,IAAIA,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EAC9C;AACJ","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2023 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
+ const defaultCustomizer = (value, defaultValueFormatter, key, defaultKeyFormatter) => {
17
+ return [defaultKeyFormatter(key), defaultValueFormatter(value)];
18
+ };
19
+ export function stringify(obj, customizer = {}, separator = ",\n") {
20
+ const defaultKeyFormatter = key => `${JSON.stringify(key)}`;
21
+ const entries = [];
22
+ const sortedKeys = Object.keys(obj).sort((a, b) => a.localeCompare(b));
23
+ for (const key of sortedKeys) {
24
+ const value = obj[key];
25
+ const res = (customizer[key] ?? customizer["*"] ?? defaultCustomizer)(value, value => JSON.stringify(value, null, 2), key, defaultKeyFormatter);
26
+ if (res) {
27
+ if (typeof res === "string") {
28
+ entries.push(`${defaultKeyFormatter(key)}: ${res}`);
29
+ } else {
30
+ entries.push(`${res[0]}: ${res[1]}`);
31
+ }
32
+ }
33
+ }
34
+ return entries.join(separator);
35
+ }
36
+ //# sourceMappingURL=stringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringify.js","names":["defaultCustomizer","value","defaultValueFormatter","key","defaultKeyFormatter","stringify","obj","customizer","separator","JSON","entries","sortedKeys","Object","keys","sort","a","b","localeCompare","res","push","join"],"sources":["stringify.js"],"sourcesContent":["/*\n * Copyright 2023 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 */\nconst defaultCustomizer = (value, defaultValueFormatter, key, defaultKeyFormatter) => {\n return [defaultKeyFormatter(key), defaultValueFormatter(value)];\n};\nexport function stringify(obj, customizer = {}, separator = \",\\n\") {\n const defaultKeyFormatter = (key) => `${JSON.stringify(key)}`;\n const entries = [];\n const sortedKeys = Object.keys(obj).sort((a, b) => a.localeCompare(b));\n for (const key of sortedKeys) {\n const value = obj[key];\n const res = (customizer[key] ?? customizer[\"*\"] ?? defaultCustomizer)(value, (value) => JSON.stringify(value, null, 2), key, defaultKeyFormatter);\n if (res) {\n if (typeof res === \"string\") {\n entries.push(`${defaultKeyFormatter(key)}: ${res}`);\n }\n else {\n entries.push(`${res[0]}: ${res[1]}`);\n }\n }\n }\n return entries.join(separator);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,iBAAiB,GAAGA,CAACC,KAAK,EAAEC,qBAAqB,EAAEC,GAAG,EAAEC,mBAAmB,KAAK;EAClF,OAAO,CAACA,mBAAmB,CAACD,GAAG,CAAC,EAAED,qBAAqB,CAACD,KAAK,CAAC,CAAC;AACnE,CAAC;AACD,OAAO,SAASI,SAASA,CAACC,GAAG,EAAEC,UAAU,GAAG,CAAC,CAAC,EAAEC,SAAS,GAAG,KAAK,EAAE;EAC/D,MAAMJ,mBAAmB,GAAID,GAAG,IAAK,GAAGM,IAAI,CAACJ,SAAS,CAACF,GAAG,CAAC,EAAE;EAC7D,MAAMO,OAAO,GAAG,EAAE;EAClB,MAAMC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACP,GAAG,CAAC,CAACQ,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACE,aAAa,CAACD,CAAC,CAAC,CAAC;EACtE,KAAK,MAAMb,GAAG,IAAIQ,UAAU,EAAE;IAC1B,MAAMV,KAAK,GAAGK,GAAG,CAACH,GAAG,CAAC;IACtB,MAAMe,GAAG,GAAG,CAACX,UAAU,CAACJ,GAAG,CAAC,IAAII,UAAU,CAAC,GAAG,CAAC,IAAIP,iBAAiB,EAAEC,KAAK,EAAGA,KAAK,IAAKQ,IAAI,CAACJ,SAAS,CAACJ,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,EAAEE,GAAG,EAAEC,mBAAmB,CAAC;IACjJ,IAAIc,GAAG,EAAE;MACL,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;QACzBR,OAAO,CAACS,IAAI,CAAC,GAAGf,mBAAmB,CAACD,GAAG,CAAC,KAAKe,GAAG,EAAE,CAAC;MACvD,CAAC,MACI;QACDR,OAAO,CAACS,IAAI,CAAC,GAAGD,GAAG,CAAC,CAAC,CAAC,KAAKA,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;MACxC;IACJ;EACJ;EACA,OAAOR,OAAO,CAACU,IAAI,CAACZ,SAAS,CAAC;AAClC","ignoreList":[]}
@@ -0,0 +1,232 @@
1
+ /*
2
+ * Copyright 2023 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
+ export const TodoWireOntology = {
17
+ ontology: {
18
+ rid: "ridHere",
19
+ apiName: "OntologyApiName",
20
+ displayName: "",
21
+ description: ""
22
+ },
23
+ actionTypes: {
24
+ "markTodoCompleted": {
25
+ apiName: "markTodoCompleted",
26
+ description: "An action which takes different types of parameters",
27
+ parameters: {
28
+ object: {
29
+ description: "A Todo to mark completed",
30
+ dataType: {
31
+ type: "object",
32
+ objectApiName: "Todo",
33
+ objectTypeApiName: "Todo"
34
+ },
35
+ required: false
36
+ }
37
+ },
38
+ rid: "ri.ontology.main.action-type.9f84017d-cf17-4fa8-84c3-8e01e5d594f2",
39
+ operations: [{
40
+ type: "modifyObject",
41
+ objectTypeApiName: "Todo"
42
+ }],
43
+ status: "ACTIVE"
44
+ },
45
+ "deleteTodos": {
46
+ apiName: "deleteTodos",
47
+ description: "An action which takes in an array of objects",
48
+ parameters: {
49
+ object: {
50
+ description: "Todo(s) to be deleted",
51
+ "dataType": {
52
+ "type": "array",
53
+ "subType": {
54
+ "type": "object",
55
+ "objectApiName": "Todo",
56
+ "objectTypeApiName": "Todo"
57
+ }
58
+ },
59
+ required: false
60
+ }
61
+ },
62
+ rid: "ri.ontology.main.action-type.8f94017d-cf17-4fa8-84c3-8e01e5d594f2",
63
+ operations: [{
64
+ type: "deleteObject",
65
+ objectTypeApiName: "Todo"
66
+ }],
67
+ status: "ACTIVE"
68
+ }
69
+ },
70
+ objectTypes: {
71
+ Todo: {
72
+ objectType: {
73
+ apiName: "Todo",
74
+ primaryKey: "id",
75
+ displayName: "AwesomeTodoDisplayname",
76
+ pluralDisplayName: "AwesomeTodoDisplayNames",
77
+ icon: {
78
+ type: "blueprint",
79
+ name: "document",
80
+ color: "blue"
81
+ },
82
+ description: "Its a todo item.",
83
+ titleProperty: "body",
84
+ properties: {
85
+ id: {
86
+ dataType: {
87
+ type: "integer"
88
+ }
89
+ },
90
+ body: {
91
+ dataType: {
92
+ type: "string"
93
+ },
94
+ description: "The text of the todo",
95
+ displayName: "Body"
96
+ },
97
+ complete: {
98
+ dataType: {
99
+ type: "boolean"
100
+ }
101
+ }
102
+ },
103
+ status: "ACTIVE",
104
+ rid: "ridForTodo"
105
+ },
106
+ linkTypes: [{
107
+ apiName: "Assignee",
108
+ cardinality: "ONE",
109
+ displayName: "Assignee",
110
+ objectTypeApiName: "Person",
111
+ status: "ACTIVE",
112
+ foreignKeyPropertyApiName: "email",
113
+ linkTypeRid: ""
114
+ }],
115
+ implementsInterfaces: ["SomeInterface"],
116
+ implementsInterfaces2: {
117
+ "SomeInterface": {
118
+ properties: {
119
+ "SomeProperty": "body"
120
+ }
121
+ }
122
+ },
123
+ sharedPropertyTypeMapping: {}
124
+ },
125
+ Person: {
126
+ objectType: {
127
+ apiName: "Person",
128
+ primaryKey: "email",
129
+ displayName: "Person",
130
+ pluralDisplayName: "Persons",
131
+ icon: {
132
+ type: "blueprint",
133
+ name: "document",
134
+ color: "blue"
135
+ },
136
+ description: "A person",
137
+ titleProperty: "email",
138
+ properties: {
139
+ email: {
140
+ dataType: {
141
+ type: "string"
142
+ }
143
+ }
144
+ },
145
+ rid: "ridForPerson",
146
+ status: "ACTIVE"
147
+ },
148
+ linkTypes: [{
149
+ apiName: "Todos",
150
+ cardinality: "MANY",
151
+ displayName: "Todos",
152
+ objectTypeApiName: "Todo",
153
+ status: "ACTIVE",
154
+ foreignKeyPropertyApiName: "id",
155
+ linkTypeRid: ""
156
+ }],
157
+ implementsInterfaces: [],
158
+ implementsInterfaces2: {},
159
+ sharedPropertyTypeMapping: {}
160
+ }
161
+ },
162
+ queryTypes: {
163
+ "getCount": {
164
+ apiName: "getCount",
165
+ output: {
166
+ type: "integer"
167
+ },
168
+ parameters: {
169
+ completed: {
170
+ dataType: {
171
+ type: "boolean"
172
+ }
173
+ }
174
+ },
175
+ rid: "rid.query.1",
176
+ version: "0"
177
+ },
178
+ "returnsTodo": {
179
+ apiName: "returnsTodo",
180
+ output: {
181
+ type: "object",
182
+ objectApiName: "Todo",
183
+ objectTypeApiName: "Todo"
184
+ },
185
+ parameters: {
186
+ someTodo: {
187
+ description: "Random desc so we test jsdoc",
188
+ dataType: {
189
+ type: "object",
190
+ objectApiName: "Todo",
191
+ objectTypeApiName: "Todo"
192
+ }
193
+ }
194
+ },
195
+ rid: "rid.query.2",
196
+ version: "0"
197
+ }
198
+ },
199
+ interfaceTypes: {
200
+ SomeInterface: {
201
+ apiName: "SomeInterface",
202
+ description: "Some interface",
203
+ properties: {
204
+ "SomeProperty": {
205
+ apiName: "SomeProperty",
206
+ description: "Some property",
207
+ displayName: "Sum Property",
208
+ dataType: {
209
+ type: "string"
210
+ },
211
+ rid: "idk2"
212
+ }
213
+ },
214
+ rid: "idk",
215
+ displayName: "Sum Interface",
216
+ extendsInterfaces: [],
217
+ links: {}
218
+ }
219
+ },
220
+ sharedPropertyTypes: {
221
+ SomeProperty: {
222
+ apiName: "SomeProperty",
223
+ description: "Some property",
224
+ displayName: "Sum Property",
225
+ dataType: {
226
+ type: "string"
227
+ },
228
+ rid: "idk2"
229
+ }
230
+ }
231
+ };
232
+ //# sourceMappingURL=TodoWireOntology.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TodoWireOntology.js","names":["TodoWireOntology","ontology","rid","apiName","displayName","description","actionTypes","parameters","object","dataType","type","objectApiName","objectTypeApiName","required","operations","status","objectTypes","Todo","objectType","primaryKey","pluralDisplayName","icon","name","color","titleProperty","properties","id","body","complete","linkTypes","cardinality","foreignKeyPropertyApiName","linkTypeRid","implementsInterfaces","implementsInterfaces2","sharedPropertyTypeMapping","Person","email","queryTypes","output","completed","version","someTodo","interfaceTypes","SomeInterface","extendsInterfaces","links","sharedPropertyTypes","SomeProperty"],"sources":["TodoWireOntology.js"],"sourcesContent":["/*\n * Copyright 2023 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 const TodoWireOntology = {\n ontology: {\n rid: \"ridHere\",\n apiName: \"OntologyApiName\",\n displayName: \"\",\n description: \"\",\n },\n actionTypes: {\n \"markTodoCompleted\": {\n apiName: \"markTodoCompleted\",\n description: \"An action which takes different types of parameters\",\n parameters: {\n object: {\n description: \"A Todo to mark completed\",\n dataType: {\n type: \"object\",\n objectApiName: \"Todo\",\n objectTypeApiName: \"Todo\",\n },\n required: false,\n },\n },\n rid: \"ri.ontology.main.action-type.9f84017d-cf17-4fa8-84c3-8e01e5d594f2\",\n operations: [{\n type: \"modifyObject\",\n objectTypeApiName: \"Todo\",\n }],\n status: \"ACTIVE\",\n },\n \"deleteTodos\": {\n apiName: \"deleteTodos\",\n description: \"An action which takes in an array of objects\",\n parameters: {\n object: {\n description: \"Todo(s) to be deleted\",\n \"dataType\": {\n \"type\": \"array\",\n \"subType\": {\n \"type\": \"object\",\n \"objectApiName\": \"Todo\",\n \"objectTypeApiName\": \"Todo\",\n },\n },\n required: false,\n },\n },\n rid: \"ri.ontology.main.action-type.8f94017d-cf17-4fa8-84c3-8e01e5d594f2\",\n operations: [{\n type: \"deleteObject\",\n objectTypeApiName: \"Todo\",\n }],\n status: \"ACTIVE\",\n },\n },\n objectTypes: {\n Todo: {\n objectType: {\n apiName: \"Todo\",\n primaryKey: \"id\",\n displayName: \"AwesomeTodoDisplayname\",\n pluralDisplayName: \"AwesomeTodoDisplayNames\",\n icon: { type: \"blueprint\", name: \"document\", color: \"blue\" },\n description: \"Its a todo item.\",\n titleProperty: \"body\",\n properties: {\n id: {\n dataType: {\n type: \"integer\",\n },\n },\n body: {\n dataType: {\n type: \"string\",\n },\n description: \"The text of the todo\",\n displayName: \"Body\",\n },\n complete: {\n dataType: {\n type: \"boolean\",\n },\n },\n },\n status: \"ACTIVE\",\n rid: \"ridForTodo\",\n },\n linkTypes: [{\n apiName: \"Assignee\",\n cardinality: \"ONE\",\n displayName: \"Assignee\",\n objectTypeApiName: \"Person\",\n status: \"ACTIVE\",\n foreignKeyPropertyApiName: \"email\",\n linkTypeRid: \"\",\n }],\n implementsInterfaces: [\"SomeInterface\"],\n implementsInterfaces2: {\n \"SomeInterface\": {\n properties: {\n \"SomeProperty\": \"body\",\n },\n },\n },\n sharedPropertyTypeMapping: {},\n },\n Person: {\n objectType: {\n apiName: \"Person\",\n primaryKey: \"email\",\n displayName: \"Person\",\n pluralDisplayName: \"Persons\",\n icon: { type: \"blueprint\", name: \"document\", color: \"blue\" },\n description: \"A person\",\n titleProperty: \"email\",\n properties: {\n email: {\n dataType: {\n type: \"string\",\n },\n },\n },\n rid: \"ridForPerson\",\n status: \"ACTIVE\",\n },\n linkTypes: [{\n apiName: \"Todos\",\n cardinality: \"MANY\",\n displayName: \"Todos\",\n objectTypeApiName: \"Todo\",\n status: \"ACTIVE\",\n foreignKeyPropertyApiName: \"id\",\n linkTypeRid: \"\",\n }],\n implementsInterfaces: [],\n implementsInterfaces2: {},\n sharedPropertyTypeMapping: {},\n },\n },\n queryTypes: {\n \"getCount\": {\n apiName: \"getCount\",\n output: {\n type: \"integer\",\n },\n parameters: {\n completed: { dataType: { type: \"boolean\" } },\n },\n rid: \"rid.query.1\",\n version: \"0\",\n },\n \"returnsTodo\": {\n apiName: \"returnsTodo\",\n output: {\n type: \"object\",\n objectApiName: \"Todo\",\n objectTypeApiName: \"Todo\",\n },\n parameters: {\n someTodo: {\n description: \"Random desc so we test jsdoc\",\n dataType: {\n type: \"object\",\n objectApiName: \"Todo\",\n objectTypeApiName: \"Todo\",\n },\n },\n },\n rid: \"rid.query.2\",\n version: \"0\",\n },\n },\n interfaceTypes: {\n SomeInterface: {\n apiName: \"SomeInterface\",\n description: \"Some interface\",\n properties: {\n \"SomeProperty\": {\n apiName: \"SomeProperty\",\n description: \"Some property\",\n displayName: \"Sum Property\",\n dataType: {\n type: \"string\",\n },\n rid: \"idk2\",\n },\n },\n rid: \"idk\",\n displayName: \"Sum Interface\",\n extendsInterfaces: [],\n links: {},\n },\n },\n sharedPropertyTypes: {\n SomeProperty: {\n apiName: \"SomeProperty\",\n description: \"Some property\",\n displayName: \"Sum Property\",\n dataType: {\n type: \"string\",\n },\n rid: \"idk2\",\n },\n },\n};\n"],"mappings":"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","ignoreList":[]}