@dremio/js-sdk 0.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 (359) hide show
  1. package/LICENSE +202 -0
  2. package/dist/cloud/arctic/ArcticCatalog.d.ts +34 -0
  3. package/dist/cloud/arctic/ArcticCatalog.js +46 -0
  4. package/dist/cloud/arctic/ArcticCatalog.js.map +1 -0
  5. package/dist/cloud/arctic/ArcticResource.d.ts +15 -0
  6. package/dist/cloud/arctic/ArcticResource.js +40 -0
  7. package/dist/cloud/arctic/ArcticResource.js.map +1 -0
  8. package/dist/cloud/credentials/fromAccessToken.d.ts +2 -0
  9. package/dist/cloud/credentials/fromAccessToken.js +19 -0
  10. package/dist/cloud/credentials/fromAccessToken.js.map +1 -0
  11. package/dist/cloud/credentials/fromRefreshToken.d.ts +5 -0
  12. package/dist/cloud/credentials/fromRefreshToken.js +47 -0
  13. package/dist/cloud/credentials/fromRefreshToken.js.map +1 -0
  14. package/dist/cloud/credentials/fromUsernamePassword.d.ts +2 -0
  15. package/dist/cloud/credentials/fromUsernamePassword.js +41 -0
  16. package/dist/cloud/credentials/fromUsernamePassword.js.map +1 -0
  17. package/dist/cloud/credentials/index.d.ts +4 -0
  18. package/dist/cloud/credentials/index.js +20 -0
  19. package/dist/cloud/credentials/index.js.map +1 -0
  20. package/dist/cloud/engines/Engine.d.ts +47 -0
  21. package/dist/cloud/engines/Engine.js +58 -0
  22. package/dist/cloud/engines/Engine.js.map +1 -0
  23. package/dist/cloud/engines/EnginesResource.d.ts +15 -0
  24. package/dist/cloud/engines/EnginesResource.js +42 -0
  25. package/dist/cloud/engines/EnginesResource.js.map +1 -0
  26. package/dist/cloud/engines/utils.d.ts +17 -0
  27. package/dist/cloud/engines/utils.js +59 -0
  28. package/dist/cloud/engines/utils.js.map +1 -0
  29. package/dist/cloud/index.d.ts +487 -0
  30. package/dist/cloud/index.js +47 -0
  31. package/dist/cloud/index.js.map +1 -0
  32. package/dist/cloud/interfaces.d.ts +13 -0
  33. package/dist/cloud/interfaces.js +18 -0
  34. package/dist/cloud/interfaces.js.map +1 -0
  35. package/dist/cloud/oauth/OAuthApplication.d.ts +26 -0
  36. package/dist/cloud/oauth/OAuthApplication.js +49 -0
  37. package/dist/cloud/oauth/OAuthApplication.js.map +1 -0
  38. package/dist/cloud/oauth/OAuthApplicationsResource.d.ts +15 -0
  39. package/dist/cloud/oauth/OAuthApplicationsResource.js +66 -0
  40. package/dist/cloud/oauth/OAuthApplicationsResource.js.map +1 -0
  41. package/dist/cloud/oauth/oauth.d.ts +32 -0
  42. package/dist/cloud/oauth/oauth.js +57 -0
  43. package/dist/cloud/oauth/oauth.js.map +1 -0
  44. package/dist/cloud/projects/Project.d.ts +49 -0
  45. package/dist/cloud/projects/Project.js +61 -0
  46. package/dist/cloud/projects/Project.js.map +1 -0
  47. package/dist/cloud/projects/ProjectsResource.d.ts +17 -0
  48. package/dist/cloud/projects/ProjectsResource.js +50 -0
  49. package/dist/cloud/projects/ProjectsResource.js.map +1 -0
  50. package/dist/cloud/projects/projectApiMethods.d.ts +9 -0
  51. package/dist/cloud/projects/projectApiMethods.js +43 -0
  52. package/dist/cloud/projects/projectApiMethods.js.map +1 -0
  53. package/dist/cloud/projects/utils.d.ts +2 -0
  54. package/dist/cloud/projects/utils.js +37 -0
  55. package/dist/cloud/projects/utils.js.map +1 -0
  56. package/dist/cloud/resources.d.ts +472 -0
  57. package/dist/cloud/resources.js +41 -0
  58. package/dist/cloud/resources.js.map +1 -0
  59. package/dist/cloud/users/CloudUser.d.ts +4 -0
  60. package/dist/cloud/users/CloudUser.js +27 -0
  61. package/dist/cloud/users/CloudUser.js.map +1 -0
  62. package/dist/cloud/users/CloudUsersResource.d.ts +13 -0
  63. package/dist/cloud/users/CloudUsersResource.js +37 -0
  64. package/dist/cloud/users/CloudUsersResource.js.map +1 -0
  65. package/dist/common/Config.d.ts +54 -0
  66. package/dist/common/Config.js +17 -0
  67. package/dist/common/Config.js.map +1 -0
  68. package/dist/common/CredentialProvider.d.ts +4 -0
  69. package/dist/common/CredentialProvider.js +17 -0
  70. package/dist/common/CredentialProvider.js.map +1 -0
  71. package/dist/common/HttpError.d.ts +21 -0
  72. package/dist/common/HttpError.js +74 -0
  73. package/dist/common/HttpError.js.map +1 -0
  74. package/dist/common/Params.d.ts +16 -0
  75. package/dist/common/Params.js +17 -0
  76. package/dist/common/Params.js.map +1 -0
  77. package/dist/common/Problem.d.ts +45 -0
  78. package/dist/common/Problem.js +37 -0
  79. package/dist/common/Problem.js.map +1 -0
  80. package/dist/common/Query.d.ts +6 -0
  81. package/dist/common/Query.js +30 -0
  82. package/dist/common/Query.js.map +1 -0
  83. package/dist/common/batch.d.ts +2 -0
  84. package/dist/common/batch.js +42 -0
  85. package/dist/common/batch.js.map +1 -0
  86. package/dist/common/createRequest.d.ts +6 -0
  87. package/dist/common/createRequest.js +71 -0
  88. package/dist/common/createRequest.js.map +1 -0
  89. package/dist/common/fromAbortable.d.ts +4 -0
  90. package/dist/common/fromAbortable.js +35 -0
  91. package/dist/common/fromAbortable.js.map +1 -0
  92. package/dist/common/problems.d.ts +9 -0
  93. package/dist/common/problems.js +25 -0
  94. package/dist/common/problems.js.map +1 -0
  95. package/dist/common/sharedExports.d.ts +5 -0
  96. package/dist/common/sharedExports.js +21 -0
  97. package/dist/common/sharedExports.js.map +1 -0
  98. package/dist/enterprise/Grantee.d.ts +9 -0
  99. package/dist/enterprise/Grantee.js +17 -0
  100. package/dist/enterprise/Grantee.js.map +1 -0
  101. package/dist/enterprise/Ownable.d.ts +7 -0
  102. package/dist/enterprise/Ownable.js +17 -0
  103. package/dist/enterprise/Ownable.js.map +1 -0
  104. package/dist/enterprise/catalog/CatalogLineage.d.ts +37 -0
  105. package/dist/enterprise/catalog/CatalogLineage.js +26 -0
  106. package/dist/enterprise/catalog/CatalogLineage.js.map +1 -0
  107. package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.d.ts +39 -0
  108. package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js +45 -0
  109. package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js.map +1 -0
  110. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.d.ts +6 -0
  111. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.js +22 -0
  112. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.js.map +1 -0
  113. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.d.ts +7 -0
  114. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.js +25 -0
  115. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.js.map +1 -0
  116. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.d.ts +6 -0
  117. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.js +22 -0
  118. package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.js.map +1 -0
  119. package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.d.ts +6 -0
  120. package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.js +22 -0
  121. package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.js.map +1 -0
  122. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.d.ts +46 -0
  123. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.js +44 -0
  124. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.js.map +1 -0
  125. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.d.ts +6 -0
  126. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.js +22 -0
  127. package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.js.map +1 -0
  128. package/dist/enterprise/catalog/CatalogObjects/index.d.ts +10 -0
  129. package/dist/enterprise/catalog/CatalogObjects/index.js +17 -0
  130. package/dist/enterprise/catalog/CatalogObjects/index.js.map +1 -0
  131. package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.d.ts +14 -0
  132. package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.js +28 -0
  133. package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.js.map +1 -0
  134. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.d.ts +3 -0
  135. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.js +19 -0
  136. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.js.map +1 -0
  137. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.d.ts +12 -0
  138. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.js +28 -0
  139. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.js.map +1 -0
  140. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.d.ts +3 -0
  141. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.js +19 -0
  142. package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.js.map +1 -0
  143. package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.d.ts +3 -0
  144. package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.js +19 -0
  145. package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.js.map +1 -0
  146. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.d.ts +12 -0
  147. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.js +28 -0
  148. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.js.map +1 -0
  149. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.d.ts +3 -0
  150. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.js +19 -0
  151. package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.js.map +1 -0
  152. package/dist/enterprise/catalog/CatalogReferences/index.d.ts +9 -0
  153. package/dist/enterprise/catalog/CatalogReferences/index.js +17 -0
  154. package/dist/enterprise/catalog/CatalogReferences/index.js.map +1 -0
  155. package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.d.ts +15 -0
  156. package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.js +30 -0
  157. package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.js.map +1 -0
  158. package/dist/enterprise/catalog/EnterpriseCatalogResource.d.ts +10 -0
  159. package/dist/enterprise/catalog/EnterpriseCatalogResource.js +38 -0
  160. package/dist/enterprise/catalog/EnterpriseCatalogResource.js.map +1 -0
  161. package/dist/enterprise/catalog/catalogObjectFromEntity.d.ts +3 -0
  162. package/dist/enterprise/catalog/catalogObjectFromEntity.js +73 -0
  163. package/dist/enterprise/catalog/catalogObjectFromEntity.js.map +1 -0
  164. package/dist/enterprise/catalog/catalogReferenceFromProperties.d.ts +6 -0
  165. package/dist/enterprise/catalog/catalogReferenceFromProperties.js +46 -0
  166. package/dist/enterprise/catalog/catalogReferenceFromProperties.js.map +1 -0
  167. package/dist/enterprise/catalog/catalogRetrieve.d.ts +5 -0
  168. package/dist/enterprise/catalog/catalogRetrieve.js +119 -0
  169. package/dist/enterprise/catalog/catalogRetrieve.js.map +1 -0
  170. package/dist/enterprise/credentials/exchangePat.d.ts +12 -0
  171. package/dist/enterprise/credentials/exchangePat.js +55 -0
  172. package/dist/enterprise/credentials/exchangePat.js.map +1 -0
  173. package/dist/enterprise/credentials/fromPat.d.ts +2 -0
  174. package/dist/enterprise/credentials/fromPat.js +36 -0
  175. package/dist/enterprise/credentials/fromPat.js.map +1 -0
  176. package/dist/enterprise/credentials/index.d.ts +2 -0
  177. package/dist/enterprise/credentials/index.js +18 -0
  178. package/dist/enterprise/credentials/index.js.map +1 -0
  179. package/dist/enterprise/engines/Engine.d.ts +78 -0
  180. package/dist/enterprise/engines/Engine.js +75 -0
  181. package/dist/enterprise/engines/Engine.js.map +1 -0
  182. package/dist/enterprise/engines/EnginesResource.d.ts +10 -0
  183. package/dist/enterprise/engines/EnginesResource.js +34 -0
  184. package/dist/enterprise/engines/EnginesResource.js.map +1 -0
  185. package/dist/enterprise/index.d.ts +60 -0
  186. package/dist/enterprise/index.js +43 -0
  187. package/dist/enterprise/index.js.map +1 -0
  188. package/dist/enterprise/interfaces.d.ts +12 -0
  189. package/dist/enterprise/interfaces.js +18 -0
  190. package/dist/enterprise/interfaces.js.map +1 -0
  191. package/dist/enterprise/reflections/ReflectionSummary.d.ts +74 -0
  192. package/dist/enterprise/reflections/ReflectionSummary.js +82 -0
  193. package/dist/enterprise/reflections/ReflectionSummary.js.map +1 -0
  194. package/dist/enterprise/resources.d.ts +44 -0
  195. package/dist/enterprise/resources.js +36 -0
  196. package/dist/enterprise/resources.js.map +1 -0
  197. package/dist/enterprise/roles/Role.d.ts +23 -0
  198. package/dist/enterprise/roles/Role.js +38 -0
  199. package/dist/enterprise/roles/Role.js.map +1 -0
  200. package/dist/enterprise/roles/RolesResource.d.ts +8 -0
  201. package/dist/enterprise/roles/RolesResource.js +32 -0
  202. package/dist/enterprise/roles/RolesResource.js.map +1 -0
  203. package/dist/enterprise/scripts/EnterpriseScript.d.ts +46 -0
  204. package/dist/enterprise/scripts/EnterpriseScript.js +62 -0
  205. package/dist/enterprise/scripts/EnterpriseScript.js.map +1 -0
  206. package/dist/enterprise/scripts/EnterpriseScriptsResource.d.ts +15 -0
  207. package/dist/enterprise/scripts/EnterpriseScriptsResource.js +72 -0
  208. package/dist/enterprise/scripts/EnterpriseScriptsResource.js.map +1 -0
  209. package/dist/enterprise/users/EnterpriseUser.d.ts +23 -0
  210. package/dist/enterprise/users/EnterpriseUser.js +43 -0
  211. package/dist/enterprise/users/EnterpriseUser.js.map +1 -0
  212. package/dist/enterprise/users/EnterpriseUsersResource.d.ts +11 -0
  213. package/dist/enterprise/users/EnterpriseUsersResource.js +32 -0
  214. package/dist/enterprise/users/EnterpriseUsersResource.js.map +1 -0
  215. package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.d.ts +43 -0
  216. package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.js +56 -0
  217. package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.js.map +1 -0
  218. package/dist/oss/catalog/CatalogObjects/FileCatalogObject.d.ts +17 -0
  219. package/dist/oss/catalog/CatalogObjects/FileCatalogObject.js +48 -0
  220. package/dist/oss/catalog/CatalogObjects/FileCatalogObject.js.map +1 -0
  221. package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.d.ts +20 -0
  222. package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.js +48 -0
  223. package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.js.map +1 -0
  224. package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.d.ts +17 -0
  225. package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.js +47 -0
  226. package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.js.map +1 -0
  227. package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.d.ts +18 -0
  228. package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.js +48 -0
  229. package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.js.map +1 -0
  230. package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.d.ts +60 -0
  231. package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.js +95 -0
  232. package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.js.map +1 -0
  233. package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.d.ts +19 -0
  234. package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.js +53 -0
  235. package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.js.map +1 -0
  236. package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.d.ts +31 -0
  237. package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.js +58 -0
  238. package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.js.map +1 -0
  239. package/dist/oss/catalog/CatalogObjects/index.d.ts +10 -0
  240. package/dist/oss/catalog/CatalogObjects/index.js +17 -0
  241. package/dist/oss/catalog/CatalogObjects/index.js.map +1 -0
  242. package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.d.ts +11 -0
  243. package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.js +73 -0
  244. package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.js.map +1 -0
  245. package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.d.ts +16 -0
  246. package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.js +34 -0
  247. package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.js.map +1 -0
  248. package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.d.ts +17 -0
  249. package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.js +39 -0
  250. package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.js.map +1 -0
  251. package/dist/oss/catalog/CatalogReferences/FileCatalogReference.d.ts +9 -0
  252. package/dist/oss/catalog/CatalogReferences/FileCatalogReference.js +28 -0
  253. package/dist/oss/catalog/CatalogReferences/FileCatalogReference.js.map +1 -0
  254. package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.d.ts +22 -0
  255. package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.js +40 -0
  256. package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.js.map +1 -0
  257. package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.d.ts +9 -0
  258. package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.js +28 -0
  259. package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.js.map +1 -0
  260. package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.d.ts +20 -0
  261. package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.js +38 -0
  262. package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.js.map +1 -0
  263. package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.d.ts +24 -0
  264. package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.js +61 -0
  265. package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.js.map +1 -0
  266. package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.d.ts +20 -0
  267. package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.js +38 -0
  268. package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.js.map +1 -0
  269. package/dist/oss/catalog/CatalogReferences/index.d.ts +9 -0
  270. package/dist/oss/catalog/CatalogReferences/index.js +17 -0
  271. package/dist/oss/catalog/CatalogReferences/index.js.map +1 -0
  272. package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.d.ts +14 -0
  273. package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.js +62 -0
  274. package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.js.map +1 -0
  275. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.d.ts +1 -0
  276. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.js +42 -0
  277. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.js.map +1 -0
  278. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.d.ts +6 -0
  279. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.js +45 -0
  280. package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.js.map +1 -0
  281. package/dist/oss/catalog/CatalogReferences/utils/getTags.d.ts +5 -0
  282. package/dist/oss/catalog/CatalogReferences/utils/getTags.js +23 -0
  283. package/dist/oss/catalog/CatalogReferences/utils/getTags.js.map +1 -0
  284. package/dist/oss/catalog/CatalogReferences/utils/getWiki.d.ts +5 -0
  285. package/dist/oss/catalog/CatalogReferences/utils/getWiki.js +23 -0
  286. package/dist/oss/catalog/CatalogReferences/utils/getWiki.js.map +1 -0
  287. package/dist/oss/catalog/CatalogResource.d.ts +10 -0
  288. package/dist/oss/catalog/CatalogResource.js +38 -0
  289. package/dist/oss/catalog/CatalogResource.js.map +1 -0
  290. package/dist/oss/catalog/CatalogTags.d.ts +26 -0
  291. package/dist/oss/catalog/CatalogTags.js +60 -0
  292. package/dist/oss/catalog/CatalogTags.js.map +1 -0
  293. package/dist/oss/catalog/CatalogWiki.d.ts +26 -0
  294. package/dist/oss/catalog/CatalogWiki.js +60 -0
  295. package/dist/oss/catalog/CatalogWiki.js.map +1 -0
  296. package/dist/oss/catalog/VersionReference.d.ts +13 -0
  297. package/dist/oss/catalog/VersionReference.js +19 -0
  298. package/dist/oss/catalog/VersionReference.js.map +1 -0
  299. package/dist/oss/catalog/catalogErrors.d.ts +18 -0
  300. package/dist/oss/catalog/catalogErrors.js +36 -0
  301. package/dist/oss/catalog/catalogErrors.js.map +1 -0
  302. package/dist/oss/catalog/catalogRetrieve.d.ts +6 -0
  303. package/dist/oss/catalog/catalogRetrieve.js +119 -0
  304. package/dist/oss/catalog/catalogRetrieve.js.map +1 -0
  305. package/dist/oss/credentials/fromUsernamePassword.d.ts +2 -0
  306. package/dist/oss/credentials/fromUsernamePassword.js +41 -0
  307. package/dist/oss/credentials/fromUsernamePassword.js.map +1 -0
  308. package/dist/oss/credentials/index.d.ts +1 -0
  309. package/dist/oss/credentials/index.js +17 -0
  310. package/dist/oss/credentials/index.js.map +1 -0
  311. package/dist/oss/index.d.ts +55 -0
  312. package/dist/oss/index.js +42 -0
  313. package/dist/oss/index.js.map +1 -0
  314. package/dist/oss/interfaces.d.ts +8 -0
  315. package/dist/oss/interfaces.js +18 -0
  316. package/dist/oss/interfaces.js.map +1 -0
  317. package/dist/oss/jobs/Job.d.ts +71 -0
  318. package/dist/oss/jobs/Job.js +133 -0
  319. package/dist/oss/jobs/Job.js.map +1 -0
  320. package/dist/oss/jobs/JobsResource.d.ts +10 -0
  321. package/dist/oss/jobs/JobsResource.js +74 -0
  322. package/dist/oss/jobs/JobsResource.js.map +1 -0
  323. package/dist/oss/jobs/utils/JobResultsResponse.d.ts +85 -0
  324. package/dist/oss/jobs/utils/JobResultsResponse.js +17 -0
  325. package/dist/oss/jobs/utils/JobResultsResponse.js.map +1 -0
  326. package/dist/oss/jobs/utils/createArrayForFieldType.d.ts +2 -0
  327. package/dist/oss/jobs/utils/createArrayForFieldType.js +55 -0
  328. package/dist/oss/jobs/utils/createArrayForFieldType.js.map +1 -0
  329. package/dist/oss/jobs/utils/createColumnRecordFromSchema.d.ts +2 -0
  330. package/dist/oss/jobs/utils/createColumnRecordFromSchema.js +21 -0
  331. package/dist/oss/jobs/utils/createColumnRecordFromSchema.js.map +1 -0
  332. package/dist/oss/jobs/utils/mapRowData.d.ts +3 -0
  333. package/dist/oss/jobs/utils/mapRowData.js +46 -0
  334. package/dist/oss/jobs/utils/mapRowData.js.map +1 -0
  335. package/dist/oss/jobs/utils/mapRowsToColumns.d.ts +2 -0
  336. package/dist/oss/jobs/utils/mapRowsToColumns.js +27 -0
  337. package/dist/oss/jobs/utils/mapRowsToColumns.js.map +1 -0
  338. package/dist/oss/reflections/Reflection.d.ts +60 -0
  339. package/dist/oss/reflections/Reflection.js +41 -0
  340. package/dist/oss/reflections/Reflection.js.map +1 -0
  341. package/dist/oss/resources.d.ts +38 -0
  342. package/dist/oss/resources.js +30 -0
  343. package/dist/oss/resources.js.map +1 -0
  344. package/dist/oss/scripts/Script.d.ts +64 -0
  345. package/dist/oss/scripts/Script.js +94 -0
  346. package/dist/oss/scripts/Script.js.map +1 -0
  347. package/dist/oss/scripts/ScriptErrors.d.ts +19 -0
  348. package/dist/oss/scripts/ScriptErrors.js +37 -0
  349. package/dist/oss/scripts/ScriptErrors.js.map +1 -0
  350. package/dist/oss/scripts/ScriptsResource.d.ts +15 -0
  351. package/dist/oss/scripts/ScriptsResource.js +72 -0
  352. package/dist/oss/scripts/ScriptsResource.js.map +1 -0
  353. package/dist/oss/users/User.d.ts +30 -0
  354. package/dist/oss/users/User.js +60 -0
  355. package/dist/oss/users/User.js.map +1 -0
  356. package/dist/oss/users/UsersResource.d.ts +11 -0
  357. package/dist/oss/users/UsersResource.js +32 -0
  358. package/dist/oss/users/UsersResource.js.map +1 -0
  359. package/package.json +70 -0
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { retrieveCatalogGrants } from "./retrieveCatalogGrants.js";
17
+ import { DatasetCatalogReference } from "../../../oss/catalog/CatalogReferences/DatasetCatalogReference.js";
18
+ export class EnterpriseDatasetCatalogReference extends DatasetCatalogReference {
19
+ #config;
20
+ constructor(properties, config, retrieveByPath) {
21
+ super(properties, retrieveByPath, config);
22
+ this.#config = config;
23
+ }
24
+ async grants() {
25
+ return retrieveCatalogGrants(this.#config)(this);
26
+ }
27
+ }
28
+ //# sourceMappingURL=EnterpriseDatasetCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseDatasetCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,qBAAqB,EAAsB,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mEAAmE,CAAC;AAgB5G,MAAM,OAAO,iCAAkC,SAAQ,uBAAuB;IAC5E,OAAO,CAAgB;IACvB,YACE,UAEC,EACD,MAAqB,EACrB,cAA8B;QAE9B,KAAK,CAAC,UAAU,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,MAAM;QACV,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAE9C,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { Result } from \"ts-results-es\";\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\n\nimport { retrieveCatalogGrants, type CatalogGrants } from \"./retrieveCatalogGrants.ts\";\nimport { DatasetCatalogReference } from \"../../../oss/catalog/CatalogReferences/DatasetCatalogReference.ts\";\nimport type {\n BaseCatalogReferenceProperties,\n RetrieveByPath,\n} from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\n\ntype DatasetAvailablePrivileges =\n | \"ALTER\"\n | \"DELETE\"\n | \"INSERT\"\n | \"MANAGE GRANTS\"\n | \"OWNERSHIP\"\n | \"SELECT\"\n | \"TRUNCATE\"\n | \"UPDATE\";\n\nexport class EnterpriseDatasetCatalogReference extends DatasetCatalogReference {\n #config: SonarV3Config;\n constructor(\n properties: BaseCatalogReferenceProperties & {\n type: \"DATASET_DIRECT\" | \"DATASET_PROMOTED\" | \"DATASET_VIRTUAL\";\n },\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n ) {\n super(properties, retrieveByPath, config);\n this.#config = config;\n }\n\n async grants() {\n return retrieveCatalogGrants(this.#config)(this) as Promise<\n Result<CatalogGrants<DatasetAvailablePrivileges>, unknown>\n >;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import { FileCatalogReference } from "../../../oss/catalog/CatalogReferences/FileCatalogReference.ts";
2
+ export declare class EnterpriseFileCatalogReference extends FileCatalogReference {
3
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { FileCatalogReference } from "../../../oss/catalog/CatalogReferences/FileCatalogReference.js";
17
+ export class EnterpriseFileCatalogReference extends FileCatalogReference {
18
+ }
19
+ //# sourceMappingURL=EnterpriseFileCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFileCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAEtG,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;CAAG","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { FileCatalogReference } from \"../../../oss/catalog/CatalogReferences/FileCatalogReference.ts\";\n\nexport class EnterpriseFileCatalogReference extends FileCatalogReference {}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { Result } from "ts-results-es";
2
+ import type { SonarV3Config } from "../../../common/Config.ts";
3
+ import { type CatalogGrants } from "./retrieveCatalogGrants.ts";
4
+ import { FolderCatalogReference } from "../../../oss/catalog/CatalogReferences/FolderCatalogReference.ts";
5
+ import type { BaseCatalogReferenceProperties, RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
6
+ type FolderAvailablePrivileges = "ALTER" | "ALTER REFLECTION" | "DELETE" | "DROP" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE" | "VIEW REFLECTION";
7
+ export declare class EnterpriseFolderCatalogReference extends FolderCatalogReference {
8
+ #private;
9
+ constructor(properties: BaseCatalogReferenceProperties, config: SonarV3Config, retrieveByPath: RetrieveByPath);
10
+ grants(): Promise<Result<CatalogGrants<FolderAvailablePrivileges>, unknown>>;
11
+ }
12
+ export {};
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { retrieveCatalogGrants } from "./retrieveCatalogGrants.js";
17
+ import { FolderCatalogReference } from "../../../oss/catalog/CatalogReferences/FolderCatalogReference.js";
18
+ export class EnterpriseFolderCatalogReference extends FolderCatalogReference {
19
+ #config;
20
+ constructor(properties, config, retrieveByPath) {
21
+ super(properties, config, retrieveByPath);
22
+ this.#config = config;
23
+ }
24
+ async grants() {
25
+ return retrieveCatalogGrants(this.#config)(this);
26
+ }
27
+ }
28
+ //# sourceMappingURL=EnterpriseFolderCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFolderCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,qBAAqB,EAAsB,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAmB1G,MAAM,OAAO,gCAAiC,SAAQ,sBAAsB;IAC1E,OAAO,CAAgB;IAEvB,YACE,UAA0C,EAC1C,MAAqB,EACrB,cAA8B;QAE9B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,MAAM;QACV,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAE9C,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { Result } from \"ts-results-es\";\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\n\nimport { retrieveCatalogGrants, type CatalogGrants } from \"./retrieveCatalogGrants.ts\";\nimport { FolderCatalogReference } from \"../../../oss/catalog/CatalogReferences/FolderCatalogReference.ts\";\nimport type {\n BaseCatalogReferenceProperties,\n RetrieveByPath,\n} from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\n\ntype FolderAvailablePrivileges =\n | \"ALTER\"\n | \"ALTER REFLECTION\"\n | \"DELETE\"\n | \"DROP\"\n | \"INSERT\"\n | \"MANAGE GRANTS\"\n | \"OWNERSHIP\"\n | \"SELECT\"\n | \"TRUNCATE\"\n | \"UPDATE\"\n | \"VIEW REFLECTION\";\n\nexport class EnterpriseFolderCatalogReference extends FolderCatalogReference {\n #config: SonarV3Config;\n\n constructor(\n properties: BaseCatalogReferenceProperties,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n ) {\n super(properties, config, retrieveByPath);\n this.#config = config;\n }\n\n async grants() {\n return retrieveCatalogGrants(this.#config)(this) as Promise<\n Result<CatalogGrants<FolderAvailablePrivileges>, unknown>\n >;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import { FunctionCatalogReference } from "../../../oss/catalog/CatalogReferences/FunctionCatalogReference.ts";
2
+ export declare class EnterpriseFunctionCatalogReference extends FunctionCatalogReference {
3
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { FunctionCatalogReference } from "../../../oss/catalog/CatalogReferences/FunctionCatalogReference.js";
17
+ export class EnterpriseFunctionCatalogReference extends FunctionCatalogReference {
18
+ }
19
+ //# sourceMappingURL=EnterpriseFunctionCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFunctionCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,oEAAoE,CAAC;AAE9G,MAAM,OAAO,kCAAmC,SAAQ,wBAAwB;CAAG","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { FunctionCatalogReference } from \"../../../oss/catalog/CatalogReferences/FunctionCatalogReference.ts\";\n\nexport class EnterpriseFunctionCatalogReference extends FunctionCatalogReference {}\n"]}
@@ -0,0 +1,3 @@
1
+ import { HomeCatalogReference } from "../../../oss/catalog/CatalogReferences/HomeCatalogReference.ts";
2
+ export declare class EnterpriseHomeCatalogReference extends HomeCatalogReference {
3
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { HomeCatalogReference } from "../../../oss/catalog/CatalogReferences/HomeCatalogReference.js";
17
+ export class EnterpriseHomeCatalogReference extends HomeCatalogReference {
18
+ }
19
+ //# sourceMappingURL=EnterpriseHomeCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseHomeCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAEtG,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;CAAG","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { HomeCatalogReference } from \"../../../oss/catalog/CatalogReferences/HomeCatalogReference.ts\";\n\nexport class EnterpriseHomeCatalogReference extends HomeCatalogReference {}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { Result } from "ts-results-es";
2
+ import type { SonarV3Config } from "../../../common/Config.ts";
3
+ import { type CatalogGrants } from "./retrieveCatalogGrants.ts";
4
+ import { SourceCatalogReference } from "../../../oss/catalog/CatalogReferences/SourceCatalogReference.ts";
5
+ import type { BaseCatalogReferenceProperties, RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
6
+ type SourceAvailablePrivileges = "ALTER" | "ALTER REFLECTION" | "CREATE TABLE" | "DELETE" | "DROP" | "EXTERNAL QUERY" | "INSERT" | "MODIFY" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE" | "VIEW REFLECTION";
7
+ export declare class EnterpriseSourceCatalogReference extends SourceCatalogReference {
8
+ #private;
9
+ constructor(properties: BaseCatalogReferenceProperties, config: SonarV3Config, retrieveByPath: RetrieveByPath);
10
+ grants(): Promise<Result<CatalogGrants<SourceAvailablePrivileges>, unknown>>;
11
+ }
12
+ export {};
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { retrieveCatalogGrants } from "./retrieveCatalogGrants.js";
17
+ import { SourceCatalogReference } from "../../../oss/catalog/CatalogReferences/SourceCatalogReference.js";
18
+ export class EnterpriseSourceCatalogReference extends SourceCatalogReference {
19
+ #config;
20
+ constructor(properties, config, retrieveByPath) {
21
+ super(properties, config, retrieveByPath);
22
+ this.#config = config;
23
+ }
24
+ async grants() {
25
+ return retrieveCatalogGrants(this.#config)(this);
26
+ }
27
+ }
28
+ //# sourceMappingURL=EnterpriseSourceCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseSourceCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,qBAAqB,EAAsB,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAsB1G,MAAM,OAAO,gCAAiC,SAAQ,sBAAsB;IAC1E,OAAO,CAAgB;IAEvB,YACE,UAA0C,EAC1C,MAAqB,EACrB,cAA8B;QAE9B,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,MAAM;QACV,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAE9C,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { Result } from \"ts-results-es\";\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\n\nimport { retrieveCatalogGrants, type CatalogGrants } from \"./retrieveCatalogGrants.ts\";\nimport { SourceCatalogReference } from \"../../../oss/catalog/CatalogReferences/SourceCatalogReference.ts\";\nimport type {\n BaseCatalogReferenceProperties,\n RetrieveByPath,\n} from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\n\ntype SourceAvailablePrivileges =\n | \"ALTER\"\n | \"ALTER REFLECTION\"\n | \"CREATE TABLE\"\n | \"DELETE\"\n | \"DROP\"\n | \"EXTERNAL QUERY\"\n | \"INSERT\"\n | \"MODIFY\"\n | \"MANAGE GRANTS\"\n | \"OWNERSHIP\"\n | \"SELECT\"\n | \"TRUNCATE\"\n | \"UPDATE\"\n | \"VIEW REFLECTION\";\n\nexport class EnterpriseSourceCatalogReference extends SourceCatalogReference {\n #config: SonarV3Config;\n\n constructor(\n properties: BaseCatalogReferenceProperties,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n ) {\n super(properties, config, retrieveByPath);\n this.#config = config;\n }\n\n async grants() {\n return retrieveCatalogGrants(this.#config)(this) as Promise<\n Result<CatalogGrants<SourceAvailablePrivileges>, unknown>\n >;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import { SpaceCatalogReference } from "../../../oss/catalog/CatalogReferences/SpaceCatalogReference.ts";
2
+ export declare class EnterpriseSpaceCatalogReference extends SpaceCatalogReference {
3
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { SpaceCatalogReference } from "../../../oss/catalog/CatalogReferences/SpaceCatalogReference.js";
17
+ export class EnterpriseSpaceCatalogReference extends SpaceCatalogReference {
18
+ }
19
+ //# sourceMappingURL=EnterpriseSpaceCatalogReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseSpaceCatalogReference.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AAExG,MAAM,OAAO,+BAAgC,SAAQ,qBAAqB;CAAG","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { SpaceCatalogReference } from \"../../../oss/catalog/CatalogReferences/SpaceCatalogReference.ts\";\n\nexport class EnterpriseSpaceCatalogReference extends SpaceCatalogReference {}\n"]}
@@ -0,0 +1,9 @@
1
+ import type { EnterpriseDatasetCatalogReference } from "./EnterpriseDatasetCatalogReference.ts";
2
+ import type { EnterpriseFileCatalogReference } from "./EnterpriseFileCatalogReference.ts";
3
+ import type { EnterpriseFolderCatalogReference } from "./EnterpriseFolderCatalogReference.ts";
4
+ import type { EnterpriseFunctionCatalogReference } from "./EnterpriseFunctionCatalogReference.ts";
5
+ import type { EnterpriseHomeCatalogReference } from "./EnterpriseHomeCatalogReference.ts";
6
+ import type { EnterpriseSourceCatalogReference } from "./EnterpriseSourceCatalogReference.ts";
7
+ import type { EnterpriseSpaceCatalogReference } from "./EnterpriseSpaceCatalogReference.ts";
8
+ export type { EnterpriseDatasetCatalogReference, EnterpriseFileCatalogReference, EnterpriseFolderCatalogReference, EnterpriseFunctionCatalogReference, EnterpriseHomeCatalogReference, EnterpriseSourceCatalogReference, EnterpriseSpaceCatalogReference, };
9
+ export type EnterpriseCatalogReference = EnterpriseDatasetCatalogReference | EnterpriseFileCatalogReference | EnterpriseFolderCatalogReference | EnterpriseFunctionCatalogReference | EnterpriseHomeCatalogReference | EnterpriseSourceCatalogReference | EnterpriseSpaceCatalogReference;
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 {};
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { EnterpriseDatasetCatalogReference } from \"./EnterpriseDatasetCatalogReference.ts\";\nimport type { EnterpriseFileCatalogReference } from \"./EnterpriseFileCatalogReference.ts\";\nimport type { EnterpriseFolderCatalogReference } from \"./EnterpriseFolderCatalogReference.ts\";\nimport type { EnterpriseFunctionCatalogReference } from \"./EnterpriseFunctionCatalogReference.ts\";\nimport type { EnterpriseHomeCatalogReference } from \"./EnterpriseHomeCatalogReference.ts\";\nimport type { EnterpriseSourceCatalogReference } from \"./EnterpriseSourceCatalogReference.ts\";\nimport type { EnterpriseSpaceCatalogReference } from \"./EnterpriseSpaceCatalogReference.ts\";\n\nexport type {\n EnterpriseDatasetCatalogReference,\n EnterpriseFileCatalogReference,\n EnterpriseFolderCatalogReference,\n EnterpriseFunctionCatalogReference,\n EnterpriseHomeCatalogReference,\n EnterpriseSourceCatalogReference,\n EnterpriseSpaceCatalogReference,\n};\n\nexport type EnterpriseCatalogReference =\n | EnterpriseDatasetCatalogReference\n | EnterpriseFileCatalogReference\n | EnterpriseFolderCatalogReference\n | EnterpriseFunctionCatalogReference\n | EnterpriseHomeCatalogReference\n | EnterpriseSourceCatalogReference\n | EnterpriseSpaceCatalogReference;\n"]}
@@ -0,0 +1,15 @@
1
+ import { Err, Ok } from "ts-results-es";
2
+ import type { SonarV3Config } from "../../../common/Config.ts";
3
+ import type { Grantee } from "../../Grantee.ts";
4
+ import type { CatalogReference } from "../../../oss/catalog/CatalogReferences/index.ts";
5
+ export type CatalogGrants<A extends string> = {
6
+ availablePrivileges: A[];
7
+ grants: {
8
+ grantee: Grantee;
9
+ privileges: A[];
10
+ }[];
11
+ };
12
+ export declare const retrieveCatalogGrants: (config: SonarV3Config) => (catalogReference: CatalogReference) => Promise<Err<any> | Ok<{
13
+ availablePrivileges: any;
14
+ grants: any;
15
+ }>>;
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { Err, Ok } from "ts-results-es";
17
+ export const retrieveCatalogGrants = (config) => (catalogReference) => {
18
+ return config
19
+ .sonarV3Request(`catalog/${catalogReference.id}/grants`)
20
+ .then((res) => res.json())
21
+ .then((entity) => Ok({
22
+ availablePrivileges: entity.availablePrivileges,
23
+ grants: entity.grants.map((grantEntity) => ({
24
+ grantee: { id: grantEntity.id, type: grantEntity.granteeType },
25
+ privileges: grantEntity.privileges,
26
+ })),
27
+ }))
28
+ .catch((e) => Err(e));
29
+ };
30
+ //# sourceMappingURL=retrieveCatalogGrants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieveCatalogGrants.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAaxC,MAAM,CAAC,MAAM,qBAAqB,GAChC,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC,gBAAkC,EAAE,EAAE;IAChE,OAAO,MAAM;SACV,cAAc,CAAC,WAAW,gBAAgB,CAAC,EAAE,SAAS,CAAC;SACvD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SACzB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACf,EAAE,CAAC;QACD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;QAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,WAAgB,EAAE,EAAE,CAAC,CAAC;YAC/C,OAAO,EAAE,EAAE,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,WAAW,EAAE;YAC9D,UAAU,EAAE,WAAW,CAAC,UAAU;SACnC,CAAC,CAAC;KAC4B,CAAC,CACnC;SACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { Err, Ok } from \"ts-results-es\";\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\nimport type { CatalogReference } from \"../../../oss/catalog/CatalogReferences/index.ts\";\n\nexport type CatalogGrants<A extends string> = {\n availablePrivileges: A[];\n grants: {\n grantee: Grantee;\n privileges: A[];\n }[];\n};\n\nexport const retrieveCatalogGrants =\n (config: SonarV3Config) => (catalogReference: CatalogReference) => {\n return config\n .sonarV3Request(`catalog/${catalogReference.id}/grants`)\n .then((res) => res.json())\n .then((entity) =>\n Ok({\n availablePrivileges: entity.availablePrivileges,\n grants: entity.grants.map((grantEntity: any) => ({\n grantee: { id: grantEntity.id, type: grantEntity.granteeType },\n privileges: grantEntity.privileges,\n })),\n } satisfies CatalogGrants<string>),\n )\n .catch((e) => Err(e));\n };\n"]}
@@ -0,0 +1,10 @@
1
+ import type { SonarV3Config } from "../../common/Config.ts";
2
+ import type { EnterpriseFunctionCatalogReference, EnterpriseHomeCatalogReference, EnterpriseSourceCatalogReference, EnterpriseSpaceCatalogReference } from "./CatalogReferences/index.ts";
3
+ export declare const EnterpriseCatalogResource: (config: SonarV3Config) => {
4
+ _catalogReferenceFromEntity: (entity: unknown) => import("./CatalogReferences/index.ts").EnterpriseCatalogReference;
5
+ list: () => {
6
+ data(): AsyncGenerator<EnterpriseFunctionCatalogReference | EnterpriseHomeCatalogReference | EnterpriseSourceCatalogReference | EnterpriseSpaceCatalogReference, void, unknown>;
7
+ };
8
+ retrieve: (key: string) => Promise<import("ts-results-es").Result<import("./CatalogObjects/index.ts").EnterpriseCatalogObject, unknown>>;
9
+ retrieveByPath: (key: string[]) => Promise<import("ts-results-es").Result<import("./CatalogObjects/index.ts").EnterpriseCatalogObject, unknown>>;
10
+ };
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { catalogReferenceEntityToProperties } from "../../oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.js";
17
+ import { catalogReferenceFromProperties } from "./catalogReferenceFromProperties.js";
18
+ import { baseRetrieve, baseRetrieveByPath } from "./catalogRetrieve.js";
19
+ export const EnterpriseCatalogResource = (config) => {
20
+ const retrieve = baseRetrieve(config);
21
+ const retrieveByPath = baseRetrieveByPath(config);
22
+ return {
23
+ _catalogReferenceFromEntity: (entity) => catalogReferenceFromProperties(catalogReferenceEntityToProperties(entity), config, retrieveByPath),
24
+ list: () => {
25
+ return {
26
+ async *data() {
27
+ yield* await config
28
+ .sonarV3Request("catalog")
29
+ .then((res) => res.json())
30
+ .then((response) => response.data.map((entity) => catalogReferenceFromProperties(catalogReferenceEntityToProperties(entity), config, retrieveByPath)));
31
+ },
32
+ };
33
+ },
34
+ retrieve,
35
+ retrieveByPath,
36
+ };
37
+ };
38
+ //# sourceMappingURL=EnterpriseCatalogResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseCatalogResource.js","sourceRoot":"","sources":["../../../src/enterprise/catalog/EnterpriseCatalogResource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,kCAAkC,EAAE,MAAM,iFAAiF,CAAC;AACrI,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAOrF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAExE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAqB,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,cAAc,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAElD,OAAO;QACL,2BAA2B,EAAE,CAAC,MAAe,EAAE,EAAE,CAC/C,8BAA8B,CAC5B,kCAAkC,CAAC,MAAM,CAAC,EAC1C,MAAM,EACN,cAAc,CACf;QACH,IAAI,EAAE,GAAG,EAAE;YACT,OAAO;gBACL,KAAK,CAAC,CAAC,IAAI;oBACT,KAAK,CAAC,CAAC,MAAM,MAAM;yBAChB,cAAc,CAAC,SAAS,CAAC;yBACzB,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;yBACzB,IAAI,CAAC,CAAC,QAA6B,EAAE,EAAE,CACtC,QAAQ,CAAC,IAAI,CAAC,GAAG,CACf,CAAC,MAAe,EAAE,EAAE,CAClB,8BAA8B,CAC5B,kCAAkC,CAAC,MAAM,CAAC,EAC1C,MAAM,EACN,cAAc,CAKmB,CACtC,CACF,CAAC;gBACN,CAAC;aACF,CAAC;QACJ,CAAC;QACD,QAAQ;QACR,cAAc;KACf,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { SonarV3Config } from \"../../common/Config.ts\";\nimport { catalogReferenceEntityToProperties } from \"../../oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.ts\";\nimport { catalogReferenceFromProperties } from \"./catalogReferenceFromProperties.ts\";\nimport type {\n EnterpriseFunctionCatalogReference,\n EnterpriseHomeCatalogReference,\n EnterpriseSourceCatalogReference,\n EnterpriseSpaceCatalogReference,\n} from \"./CatalogReferences/index.ts\";\nimport { baseRetrieve, baseRetrieveByPath } from \"./catalogRetrieve.ts\";\n\nexport const EnterpriseCatalogResource = (config: SonarV3Config) => {\n const retrieve = baseRetrieve(config);\n const retrieveByPath = baseRetrieveByPath(config);\n\n return {\n _catalogReferenceFromEntity: (entity: unknown) =>\n catalogReferenceFromProperties(\n catalogReferenceEntityToProperties(entity),\n config,\n retrieveByPath,\n ),\n list: () => {\n return {\n async *data() {\n yield* await config\n .sonarV3Request(\"catalog\")\n .then((res) => res.json())\n .then((response: { data: unknown[] }) =>\n response.data.map(\n (entity: unknown) =>\n catalogReferenceFromProperties(\n catalogReferenceEntityToProperties(entity),\n config,\n retrieveByPath,\n ) as\n | EnterpriseFunctionCatalogReference\n | EnterpriseHomeCatalogReference\n | EnterpriseSourceCatalogReference\n | EnterpriseSpaceCatalogReference,\n ),\n );\n },\n };\n },\n retrieve,\n retrieveByPath,\n };\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import type { SonarV3Config } from "../../common/Config.ts";
2
+ import type { EnterpriseCatalogObject } from "../interfaces.ts";
3
+ export declare const catalogObjectFromEntity: (config: SonarV3Config, retrieveByPath: any) => (entity: any) => EnterpriseCatalogObject;
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 { VersionedDatasetCatalogObject } from "../../oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.js";
17
+ import { FunctionCatalogReference } from "../../oss/catalog/CatalogReferences/FunctionCatalogReference.js";
18
+ import { EnterpriseDatasetCatalogObject, enterpriseDatasetEntityToProperties, } from "./CatalogObjects/EnterpriseDatasetCatalogObject.js";
19
+ import { EnterpriseFileCatalogObject } from "./CatalogObjects/EnterpriseFileCatalogObject.js";
20
+ import { EnterpriseFolderCatalogObject } from "./CatalogObjects/EnterpriseFolderCatalogObject.js";
21
+ import { EnterpriseFunctionCatalogObject } from "./CatalogObjects/EnterpriseFunctionCatalogObject.js";
22
+ import { EnterpriseHomeCatalogObject } from "./CatalogObjects/EnterpriseHomeCatalogObject.js";
23
+ import { EnterpriseSourceCatalogObject, enterpriseSourceEntityToProperties, } from "./CatalogObjects/EnterpriseSourceCatalogObject.js";
24
+ import { EnterpriseSpaceCatalogObject } from "./CatalogObjects/EnterpriseSpaceCatalogObject.js";
25
+ export const catalogObjectFromEntity = (config, retrieveByPath) => (entity) => {
26
+ {
27
+ switch (entity.entityType) {
28
+ case "EnterpriseFolder":
29
+ case "folder":
30
+ return EnterpriseFolderCatalogObject.fromResource(entity, config, retrieveByPath);
31
+ case "EnterpriseDataset":
32
+ case "dataset": {
33
+ try {
34
+ JSON.parse(entity.id);
35
+ return VersionedDatasetCatalogObject.fromResource(entity, retrieveByPath, config);
36
+ }
37
+ catch (e) {
38
+ // continue
39
+ }
40
+ return new EnterpriseDatasetCatalogObject(enterpriseDatasetEntityToProperties(entity, config, retrieveByPath));
41
+ }
42
+ case "EnterpriseSource":
43
+ case "source": {
44
+ return new EnterpriseSourceCatalogObject(enterpriseSourceEntityToProperties(entity, config, retrieveByPath));
45
+ }
46
+ case "home":
47
+ return EnterpriseHomeCatalogObject.fromResource(entity, config, retrieveByPath);
48
+ case "EnterpriseSpace":
49
+ case "space":
50
+ return EnterpriseSpaceCatalogObject.fromResource(entity, config, retrieveByPath);
51
+ case "file":
52
+ return EnterpriseFileCatalogObject.fromResource(entity, retrieveByPath);
53
+ case "EnterpriseFunction":
54
+ case "function":
55
+ return new EnterpriseFunctionCatalogObject({
56
+ catalogReference: new FunctionCatalogReference({
57
+ id: entity.id,
58
+ path: entity.path,
59
+ }, retrieveByPath),
60
+ createdAt: new Date(entity.createdAt),
61
+ id: entity.id,
62
+ isScalar: entity.isScalar,
63
+ lastModified: new Date(entity.lastModified),
64
+ path: entity.path,
65
+ returnType: entity.returnType,
66
+ tag: entity.tag,
67
+ });
68
+ default:
69
+ throw new Error("Unexpected " + entity.entityType);
70
+ }
71
+ }
72
+ };
73
+ //# sourceMappingURL=catalogObjectFromEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogObjectFromEntity.js","sourceRoot":"","sources":["../../../src/enterprise/catalog/catalogObjectFromEntity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,6BAA6B,EAAE,MAAM,mEAAmE,CAAC;AAClH,OAAO,EAAE,wBAAwB,EAAE,MAAM,iEAAiE,CAAC;AAE3G,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,GACpC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAEhG,MAAM,CAAC,MAAM,uBAAuB,GAClC,CAAC,MAAqB,EAAE,cAAmB,EAAE,EAAE,CAC/C,CAAC,MAAW,EAA2B,EAAE;IACvC,CAAC;QACC,QAAQ,MAAM,CAAC,UAAU,EAAE,CAAC;YAC1B,KAAK,kBAAkB,CAAC;YACxB,KAAK,QAAQ;gBACX,OAAO,6BAA6B,CAAC,YAAY,CAC/C,MAAM,EACN,MAAM,EACN,cAAc,CACkB,CAAC;YACrC,KAAK,mBAAmB,CAAC;YACzB,KAAK,SAAS,CAAC,CAAC,CAAC;gBACf,IAAI,CAAC;oBACH,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBACtB,OAAO,6BAA6B,CAAC,YAAY,CAC/C,MAAM,EACN,cAAc,EACd,MAAM,CACA,CAAC;gBACX,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,WAAW;gBACb,CAAC;gBACD,OAAO,IAAI,8BAA8B,CACvC,mCAAmC,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CACpE,CAAC;YACJ,CAAC;YACD,KAAK,kBAAkB,CAAC;YACxB,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACd,OAAO,IAAI,6BAA6B,CACtC,kCAAkC,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CACnE,CAAC;YACJ,CAAC;YAED,KAAK,MAAM;gBACT,OAAO,2BAA2B,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;YAClF,KAAK,iBAAiB,CAAC;YACvB,KAAK,OAAO;gBACV,OAAO,4BAA4B,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;YACnF,KAAK,MAAM;gBACT,OAAO,2BAA2B,CAAC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;YAC1E,KAAK,oBAAoB,CAAC;YAC1B,KAAK,UAAU;gBACb,OAAO,IAAI,+BAA+B,CAAC;oBACzC,gBAAgB,EAAE,IAAI,wBAAwB,CAC5C;wBACE,EAAE,EAAE,MAAM,CAAC,EAAE;wBACb,IAAI,EAAE,MAAM,CAAC,IAAI;qBAClB,EACD,cAAc,CACf;oBACD,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;oBACrC,EAAE,EAAE,MAAM,CAAC,EAAE;oBACb,QAAQ,EAAE,MAAM,CAAC,QAAQ;oBACzB,YAAY,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;oBAC3C,IAAI,EAAE,MAAM,CAAC,IAAI;oBACjB,UAAU,EAAE,MAAM,CAAC,UAAU;oBAC7B,GAAG,EAAE,MAAM,CAAC,GAAG;iBAChB,CAAC,CAAC;YACL;gBACE,MAAM,IAAI,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { SonarV3Config } from \"../../common/Config.ts\";\nimport { VersionedDatasetCatalogObject } from \"../../oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.ts\";\nimport { FunctionCatalogReference } from \"../../oss/catalog/CatalogReferences/FunctionCatalogReference.ts\";\nimport type { EnterpriseCatalogObject } from \"../interfaces.ts\";\nimport {\n EnterpriseDatasetCatalogObject,\n enterpriseDatasetEntityToProperties,\n} from \"./CatalogObjects/EnterpriseDatasetCatalogObject.ts\";\nimport { EnterpriseFileCatalogObject } from \"./CatalogObjects/EnterpriseFileCatalogObject.ts\";\nimport { EnterpriseFolderCatalogObject } from \"./CatalogObjects/EnterpriseFolderCatalogObject.ts\";\nimport { EnterpriseFunctionCatalogObject } from \"./CatalogObjects/EnterpriseFunctionCatalogObject.ts\";\nimport { EnterpriseHomeCatalogObject } from \"./CatalogObjects/EnterpriseHomeCatalogObject.ts\";\nimport {\n EnterpriseSourceCatalogObject,\n enterpriseSourceEntityToProperties,\n} from \"./CatalogObjects/EnterpriseSourceCatalogObject.ts\";\nimport { EnterpriseSpaceCatalogObject } from \"./CatalogObjects/EnterpriseSpaceCatalogObject.ts\";\n\nexport const catalogObjectFromEntity =\n (config: SonarV3Config, retrieveByPath: any) =>\n (entity: any): EnterpriseCatalogObject => {\n {\n switch (entity.entityType) {\n case \"EnterpriseFolder\":\n case \"folder\":\n return EnterpriseFolderCatalogObject.fromResource(\n entity,\n config,\n retrieveByPath,\n ) as EnterpriseFolderCatalogObject;\n case \"EnterpriseDataset\":\n case \"dataset\": {\n try {\n JSON.parse(entity.id);\n return VersionedDatasetCatalogObject.fromResource(\n entity,\n retrieveByPath,\n config,\n ) as any;\n } catch (e) {\n // continue\n }\n return new EnterpriseDatasetCatalogObject(\n enterpriseDatasetEntityToProperties(entity, config, retrieveByPath),\n );\n }\n case \"EnterpriseSource\":\n case \"source\": {\n return new EnterpriseSourceCatalogObject(\n enterpriseSourceEntityToProperties(entity, config, retrieveByPath),\n );\n }\n\n case \"home\":\n return EnterpriseHomeCatalogObject.fromResource(entity, config, retrieveByPath);\n case \"EnterpriseSpace\":\n case \"space\":\n return EnterpriseSpaceCatalogObject.fromResource(entity, config, retrieveByPath);\n case \"file\":\n return EnterpriseFileCatalogObject.fromResource(entity, retrieveByPath);\n case \"EnterpriseFunction\":\n case \"function\":\n return new EnterpriseFunctionCatalogObject({\n catalogReference: new FunctionCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n },\n retrieveByPath,\n ),\n createdAt: new Date(entity.createdAt),\n id: entity.id,\n isScalar: entity.isScalar,\n lastModified: new Date(entity.lastModified),\n path: entity.path,\n returnType: entity.returnType,\n tag: entity.tag,\n });\n default:\n throw new Error(\"Unexpected \" + entity.entityType);\n }\n }\n };\n"]}
@@ -0,0 +1,6 @@
1
+ import type { SonarV3Config } from "../../common/Config.ts";
2
+ import type { BaseCatalogReferenceProperties, RetrieveByPath } from "../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
3
+ import { type EnterpriseCatalogReference } from "./CatalogReferences/index.ts";
4
+ export declare const catalogReferenceFromProperties: (properties: BaseCatalogReferenceProperties & {
5
+ type: string;
6
+ }, config: SonarV3Config, retrieveByPath: RetrieveByPath) => EnterpriseCatalogReference;
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (C) 2024-2025 Dremio Corporation
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 {} from "./CatalogReferences/index.js";
17
+ import { EnterpriseDatasetCatalogReference } from "./CatalogReferences/EnterpriseDatasetCatalogReference.js";
18
+ import { EnterpriseFileCatalogReference } from "./CatalogReferences/EnterpriseFileCatalogReference.js";
19
+ import { EnterpriseFolderCatalogReference } from "./CatalogReferences/EnterpriseFolderCatalogReference.js";
20
+ import { EnterpriseFunctionCatalogReference } from "./CatalogReferences/EnterpriseFunctionCatalogReference.js";
21
+ import { EnterpriseHomeCatalogReference } from "./CatalogReferences/EnterpriseHomeCatalogReference.js";
22
+ import { EnterpriseSourceCatalogReference } from "./CatalogReferences/EnterpriseSourceCatalogReference.js";
23
+ import { EnterpriseSpaceCatalogReference } from "./CatalogReferences/EnterpriseSpaceCatalogReference.js";
24
+ export const catalogReferenceFromProperties = (properties, config, retrieveByPath) => {
25
+ switch (properties.type) {
26
+ case "DATASET_DIRECT":
27
+ case "DATASET_PROMOTED":
28
+ case "DATASET_VIRTUAL":
29
+ return new EnterpriseDatasetCatalogReference(properties, config, retrieveByPath);
30
+ case "FILE":
31
+ return new EnterpriseFileCatalogReference(properties, retrieveByPath);
32
+ case "FOLDER":
33
+ return new EnterpriseFolderCatalogReference(properties, config, retrieveByPath);
34
+ case "FUNCTION":
35
+ return new EnterpriseFunctionCatalogReference(properties, retrieveByPath);
36
+ case "HOME":
37
+ return new EnterpriseHomeCatalogReference(properties, config, retrieveByPath);
38
+ case "SOURCE":
39
+ return new EnterpriseSourceCatalogReference(properties, config, retrieveByPath);
40
+ case "SPACE":
41
+ return new EnterpriseSpaceCatalogReference(properties, config, retrieveByPath);
42
+ default:
43
+ throw new Error("Unknown catalogReference type: " + properties.type);
44
+ }
45
+ };
46
+ //# sourceMappingURL=catalogReferenceFromProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogReferenceFromProperties.js","sourceRoot":"","sources":["../../../src/enterprise/catalog/catalogReferenceFromProperties.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAmC,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,0DAA0D,CAAC;AAC7G,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AACvG,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EAAE,kCAAkC,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAC;AACvG,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AAEzG,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,UAA6D,EAC7D,MAAqB,EACrB,cAA8B,EACF,EAAE;IAC9B,QAAQ,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,KAAK,gBAAgB,CAAC;QACtB,KAAK,kBAAkB,CAAC;QACxB,KAAK,iBAAiB;YACpB,OAAO,IAAI,iCAAiC,CAAC,UAAiB,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAC1F,KAAK,MAAM;YACT,OAAO,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACxE,KAAK,QAAQ;YACX,OAAO,IAAI,gCAAgC,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAClF,KAAK,UAAU;YACb,OAAO,IAAI,kCAAkC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5E,KAAK,MAAM;YACT,OAAO,IAAI,8BAA8B,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAChF,KAAK,QAAQ;YACX,OAAO,IAAI,gCAAgC,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAClF,KAAK,OAAO;YACV,OAAO,IAAI,+BAA+B,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QACjF;YACE,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\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 { SonarV3Config } from \"../../common/Config.ts\";\nimport type {\n BaseCatalogReferenceProperties,\n RetrieveByPath,\n} from \"../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport { type EnterpriseCatalogReference } from \"./CatalogReferences/index.ts\";\nimport { EnterpriseDatasetCatalogReference } from \"./CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\nimport { EnterpriseFileCatalogReference } from \"./CatalogReferences/EnterpriseFileCatalogReference.ts\";\nimport { EnterpriseFolderCatalogReference } from \"./CatalogReferences/EnterpriseFolderCatalogReference.ts\";\nimport { EnterpriseFunctionCatalogReference } from \"./CatalogReferences/EnterpriseFunctionCatalogReference.ts\";\nimport { EnterpriseHomeCatalogReference } from \"./CatalogReferences/EnterpriseHomeCatalogReference.ts\";\nimport { EnterpriseSourceCatalogReference } from \"./CatalogReferences/EnterpriseSourceCatalogReference.ts\";\nimport { EnterpriseSpaceCatalogReference } from \"./CatalogReferences/EnterpriseSpaceCatalogReference.ts\";\n\nexport const catalogReferenceFromProperties = (\n properties: BaseCatalogReferenceProperties & { type: string },\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n): EnterpriseCatalogReference => {\n switch (properties.type) {\n case \"DATASET_DIRECT\":\n case \"DATASET_PROMOTED\":\n case \"DATASET_VIRTUAL\":\n return new EnterpriseDatasetCatalogReference(properties as any, config, retrieveByPath);\n case \"FILE\":\n return new EnterpriseFileCatalogReference(properties, retrieveByPath);\n case \"FOLDER\":\n return new EnterpriseFolderCatalogReference(properties, config, retrieveByPath);\n case \"FUNCTION\":\n return new EnterpriseFunctionCatalogReference(properties, retrieveByPath);\n case \"HOME\":\n return new EnterpriseHomeCatalogReference(properties, config, retrieveByPath);\n case \"SOURCE\":\n return new EnterpriseSourceCatalogReference(properties, config, retrieveByPath);\n case \"SPACE\":\n return new EnterpriseSpaceCatalogReference(properties, config, retrieveByPath);\n default:\n throw new Error(\"Unknown catalogReference type: \" + properties.type);\n }\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import { type Result } from "ts-results-es";
2
+ import type { SonarV3Config } from "../../common/Config.ts";
3
+ import type { EnterpriseCatalogObject } from "./CatalogObjects/index.ts";
4
+ export declare const baseRetrieve: (config: SonarV3Config) => (key: string) => Promise<Result<EnterpriseCatalogObject, unknown>>;
5
+ export declare const baseRetrieveByPath: (config: SonarV3Config) => (key: string[]) => Promise<Result<EnterpriseCatalogObject, unknown>>;