@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,21 @@
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 { HttpError } from "../common/HttpError.js";
17
+ export { HttpError };
18
+ export * from "./CredentialProvider.js";
19
+ export * from "./Problem.js";
20
+ export * from "./Query.js";
21
+ //# sourceMappingURL=sharedExports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedExports.js","sourceRoot":"","sources":["../../src/common/sharedExports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,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 { HttpError } from \"../common/HttpError.ts\";\nexport { HttpError };\nexport * from \"./CredentialProvider.ts\";\nexport * from \"./Problem.ts\";\nexport * from \"./Query.ts\";\n"]}
@@ -0,0 +1,9 @@
1
+ export type RoleGrantee = {
2
+ id: string;
3
+ type: "ROLE";
4
+ };
5
+ export type UserGrantee = {
6
+ id: string;
7
+ type: "USER";
8
+ };
9
+ export type Grantee = RoleGrantee | UserGrantee;
@@ -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=Grantee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grantee.js","sourceRoot":"","sources":["../../src/enterprise/Grantee.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\nexport type RoleGrantee = {\n id: string;\n type: \"ROLE\";\n};\n\nexport type UserGrantee = {\n id: string;\n type: \"USER\";\n};\n\nexport type Grantee = RoleGrantee | UserGrantee;\n"]}
@@ -0,0 +1,7 @@
1
+ import type { Grantee } from "./Grantee.ts";
2
+ /**
3
+ * A trait that indicates an object has transferrable ownership
4
+ */
5
+ export type Ownable = {
6
+ owner: Grantee;
7
+ };
@@ -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=Ownable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ownable.js","sourceRoot":"","sources":["../../src/enterprise/Ownable.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 { Grantee } from \"./Grantee.ts\";\n\n/**\n * A trait that indicates an object has transferrable ownership\n */\nexport type Ownable = {\n owner: Grantee;\n};\n"]}
@@ -0,0 +1,37 @@
1
+ import type { SonarV3Config } from "../../common/Config.ts";
2
+ import type { RetrieveByPath } from "../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
3
+ import { EnterpriseSourceCatalogReference } from "./CatalogReferences/EnterpriseSourceCatalogReference.ts";
4
+ export declare class CatalogLineage {
5
+ readonly sources: CatalogLineageProperties["sources"];
6
+ constructor(properties: CatalogLineageProperties);
7
+ }
8
+ export declare const catalogLineageEntityToProperties: (entity: {
9
+ sources: {
10
+ id: string;
11
+ path: string[];
12
+ tag: string;
13
+ type: "CONTAINER";
14
+ containerType: "SOURCE";
15
+ createdAt: string;
16
+ }[];
17
+ parents: {
18
+ id: string;
19
+ path: string[];
20
+ tag: string;
21
+ type: string;
22
+ datasetType: string;
23
+ createdAt: string;
24
+ }[];
25
+ children: {
26
+ id: string;
27
+ path: string[];
28
+ tag: string;
29
+ type: string;
30
+ datasetType: string;
31
+ createdAt: string;
32
+ }[];
33
+ }, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
34
+ sources: EnterpriseSourceCatalogReference[];
35
+ };
36
+ type CatalogLineageProperties = ReturnType<typeof catalogLineageEntityToProperties>;
37
+ export {};
@@ -0,0 +1,26 @@
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 { EnterpriseSourceCatalogReference } from "./CatalogReferences/EnterpriseSourceCatalogReference.js";
17
+ export class CatalogLineage {
18
+ sources;
19
+ constructor(properties) {
20
+ this.sources = properties.sources;
21
+ }
22
+ }
23
+ export const catalogLineageEntityToProperties = (entity, config, retrieveByPath) => ({
24
+ sources: entity.sources.map((sourceEntity) => new EnterpriseSourceCatalogReference({ id: sourceEntity.id, path: sourceEntity.path }, config, retrieveByPath)),
25
+ });
26
+ //# sourceMappingURL=CatalogLineage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogLineage.js","sourceRoot":"","sources":["../../../src/enterprise/catalog/CatalogLineage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAE3G,MAAM,OAAO,cAAc;IAChB,OAAO,CAAsC;IAEtD,YAAY,UAAoC;QAC9C,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACpC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,MAyBC,EACD,MAAqB,EACrB,cAA8B,EAC9B,EAAE,CAAC,CAAC;IACJ,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CACzB,CAAC,YAAY,EAAE,EAAE,CACf,IAAI,gCAAgC,CAClC,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE,EAChD,MAAM,EACN,cAAc,CACf,CACJ;CACF,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 { RetrieveByPath } from \"../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport { EnterpriseSourceCatalogReference } from \"./CatalogReferences/EnterpriseSourceCatalogReference.ts\";\n\nexport class CatalogLineage {\n readonly sources: CatalogLineageProperties[\"sources\"];\n\n constructor(properties: CatalogLineageProperties) {\n this.sources = properties.sources;\n }\n}\n\nexport const catalogLineageEntityToProperties = (\n entity: {\n sources: {\n id: string;\n path: string[];\n tag: string;\n type: \"CONTAINER\";\n containerType: \"SOURCE\";\n createdAt: string;\n }[];\n parents: {\n id: string;\n path: string[];\n tag: string;\n type: string;\n datasetType: string;\n createdAt: string;\n }[];\n children: {\n id: string;\n path: string[];\n tag: string;\n type: string;\n datasetType: string;\n createdAt: string;\n }[];\n },\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => ({\n sources: entity.sources.map(\n (sourceEntity) =>\n new EnterpriseSourceCatalogReference(\n { id: sourceEntity.id, path: sourceEntity.path },\n config,\n retrieveByPath,\n ),\n ),\n});\n\ntype CatalogLineageProperties = ReturnType<typeof catalogLineageEntityToProperties>;\n"]}
@@ -0,0 +1,39 @@
1
+ import type { SonarV3Config } from "../../../common/Config.ts";
2
+ import { DatasetCatalogObject, type DatasetEntity } from "../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts";
3
+ import type { RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
4
+ import type { Grantee } from "../../Grantee.ts";
5
+ import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.ts";
6
+ export declare class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
7
+ catalogReference: EnterpriseDatasetCatalogReference;
8
+ readonly owner?: Grantee;
9
+ constructor(properties: EnterpriseDatasetCatalogObjectProperties);
10
+ grants(): Promise<import("ts-results-es").Result<import("../CatalogReferences/retrieveCatalogGrants.ts").CatalogGrants<"DELETE" | "ALTER" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE">, unknown>>;
11
+ }
12
+ export type EnterpriseDatasetCatalogObjectProperties = ReturnType<typeof enterpriseDatasetEntityToProperties> & {
13
+ owner?: Grantee;
14
+ };
15
+ type EnterpriseDatasetEntity = DatasetEntity & {
16
+ owner?: {
17
+ ownerId: string;
18
+ ownerType: "ROLE" | "USER";
19
+ };
20
+ };
21
+ export declare const enterpriseDatasetEntityToProperties: (entity: EnterpriseDatasetEntity, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
22
+ catalogReference: EnterpriseDatasetCatalogReference;
23
+ owner: {
24
+ id: string;
25
+ type: "ROLE" | "USER";
26
+ } | undefined;
27
+ createdAt: Date;
28
+ fields: {
29
+ isPartitioned: boolean;
30
+ isSorted: boolean;
31
+ name: string;
32
+ type: {
33
+ name: string;
34
+ };
35
+ }[];
36
+ schemaOutdated: boolean;
37
+ type: any;
38
+ };
39
+ export {};
@@ -0,0 +1,45 @@
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 { DatasetCatalogObject, datasetEntityToProperties, } from "../../../oss/catalog/CatalogObjects/DatasetCatalogObject.js";
17
+ import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.js";
18
+ export class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
19
+ owner;
20
+ constructor(properties) {
21
+ super(properties);
22
+ this.owner = properties.owner;
23
+ }
24
+ grants() {
25
+ return this.catalogReference.grants();
26
+ }
27
+ }
28
+ export const enterpriseDatasetEntityToProperties = (entity, config, retrieveByPath) => {
29
+ const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);
30
+ return {
31
+ ...datasetProperties,
32
+ catalogReference: new EnterpriseDatasetCatalogReference({
33
+ id: entity.id,
34
+ path: entity.path,
35
+ type: datasetProperties.type,
36
+ }, config, retrieveByPath),
37
+ owner: entity.owner
38
+ ? {
39
+ id: entity.owner.ownerId,
40
+ type: entity.owner.ownerType,
41
+ }
42
+ : undefined,
43
+ };
44
+ };
45
+ //# sourceMappingURL=EnterpriseDatasetCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,6DAA6D,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAE9G,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IAE7D,KAAK,CAAW;IAEzB,YAAY,UAAoD;QAC9D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAUD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAA+B,EAC/B,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACpF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,iCAAiC,CACrD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;KACd,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 {\n DatasetCatalogObject,\n datasetEntityToProperties,\n type DatasetEntity,\n} from \"../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\n\nimport { EnterpriseDatasetCatalogReference } from \"../CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\n\nexport class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {\n declare catalogReference: EnterpriseDatasetCatalogReference;\n readonly owner?: Grantee;\n\n constructor(properties: EnterpriseDatasetCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport type EnterpriseDatasetCatalogObjectProperties = ReturnType<\n typeof enterpriseDatasetEntityToProperties\n> & { owner?: Grantee };\n\ntype EnterpriseDatasetEntity = DatasetEntity & {\n owner?: { ownerId: string; ownerType: \"ROLE\" | \"USER\" };\n};\n\nexport const enterpriseDatasetEntityToProperties = (\n entity: EnterpriseDatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseDatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: datasetProperties.type,\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n };\n};\n"]}
@@ -0,0 +1,6 @@
1
+ import { FileCatalogObject } from "../../../oss/catalog/CatalogObjects/FileCatalogObject.ts";
2
+ import type { EnterpriseFileCatalogReference } from "../CatalogReferences/EnterpriseFileCatalogReference.ts";
3
+ export declare class EnterpriseFileCatalogObject extends FileCatalogObject {
4
+ catalogReference: EnterpriseFileCatalogReference;
5
+ constructor(properties: any);
6
+ }
@@ -0,0 +1,22 @@
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 { FileCatalogObject } from "../../../oss/catalog/CatalogObjects/FileCatalogObject.js";
17
+ export class EnterpriseFileCatalogObject extends FileCatalogObject {
18
+ constructor(properties) {
19
+ super(properties);
20
+ }
21
+ }
22
+ //# sourceMappingURL=EnterpriseFileCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFileCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAG7F,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAGhE,YAAY,UAAe;QACzB,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,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 { FileCatalogObject } from \"../../../oss/catalog/CatalogObjects/FileCatalogObject.ts\";\nimport type { EnterpriseFileCatalogReference } from \"../CatalogReferences/EnterpriseFileCatalogReference.ts\";\n\nexport class EnterpriseFileCatalogObject extends FileCatalogObject {\n declare catalogReference: EnterpriseFileCatalogReference;\n\n constructor(properties: any) {\n super(properties);\n }\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import { FolderCatalogObject } from "../../../oss/catalog/CatalogObjects/FolderCatalogObject.ts";
2
+ import type { EnterpriseFolderCatalogReference } from "../CatalogReferences/EnterpriseFolderCatalogReference.ts";
3
+ export declare class EnterpriseFolderCatalogObject extends FolderCatalogObject {
4
+ catalogReference: EnterpriseFolderCatalogReference;
5
+ constructor(properties: any);
6
+ grants(): Promise<import("ts-results-es").Result<import("../CatalogReferences/retrieveCatalogGrants.ts").CatalogGrants<"DELETE" | "ALTER" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE" | "ALTER REFLECTION" | "DROP" | "VIEW REFLECTION">, unknown>>;
7
+ }
@@ -0,0 +1,25 @@
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 { FolderCatalogObject } from "../../../oss/catalog/CatalogObjects/FolderCatalogObject.js";
17
+ export class EnterpriseFolderCatalogObject extends FolderCatalogObject {
18
+ constructor(properties) {
19
+ super(properties);
20
+ }
21
+ grants() {
22
+ return this.catalogReference.grants();
23
+ }
24
+ }
25
+ //# sourceMappingURL=EnterpriseFolderCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFolderCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAGjG,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAGpE,YAAY,UAAe;QACzB,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,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 { FolderCatalogObject } from \"../../../oss/catalog/CatalogObjects/FolderCatalogObject.ts\";\nimport type { EnterpriseFolderCatalogReference } from \"../CatalogReferences/EnterpriseFolderCatalogReference.ts\";\n\nexport class EnterpriseFolderCatalogObject extends FolderCatalogObject {\n declare catalogReference: EnterpriseFolderCatalogReference;\n\n constructor(properties: any) {\n super(properties);\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { FunctionCatalogObject } from "../../../oss/catalog/CatalogObjects/FunctionCatalogObject.ts";
2
+ import type { EnterpriseFunctionCatalogReference } from "../CatalogReferences/EnterpriseFunctionCatalogReference.ts";
3
+ export declare class EnterpriseFunctionCatalogObject extends FunctionCatalogObject {
4
+ catalogReference: EnterpriseFunctionCatalogReference;
5
+ constructor(properties: any);
6
+ }
@@ -0,0 +1,22 @@
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 { FunctionCatalogObject } from "../../../oss/catalog/CatalogObjects/FunctionCatalogObject.js";
17
+ export class EnterpriseFunctionCatalogObject extends FunctionCatalogObject {
18
+ constructor(properties) {
19
+ super(properties);
20
+ }
21
+ }
22
+ //# sourceMappingURL=EnterpriseFunctionCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseFunctionCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAGrG,MAAM,OAAO,+BAAgC,SAAQ,qBAAqB;IAGxE,YAAY,UAAe;QACzB,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,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 { FunctionCatalogObject } from \"../../../oss/catalog/CatalogObjects/FunctionCatalogObject.ts\";\nimport type { EnterpriseFunctionCatalogReference } from \"../CatalogReferences/EnterpriseFunctionCatalogReference.ts\";\n\nexport class EnterpriseFunctionCatalogObject extends FunctionCatalogObject {\n declare catalogReference: EnterpriseFunctionCatalogReference;\n\n constructor(properties: any) {\n super(properties);\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { HomeCatalogObject } from "../../../oss/catalog/CatalogObjects/HomeCatalogObject.ts";
2
+ import type { EnterpriseHomeCatalogReference } from "../CatalogReferences/EnterpriseHomeCatalogReference.ts";
3
+ export declare class EnterpriseHomeCatalogObject extends HomeCatalogObject {
4
+ catalogReference: EnterpriseHomeCatalogReference;
5
+ constructor(properties: any);
6
+ }
@@ -0,0 +1,22 @@
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 { HomeCatalogObject } from "../../../oss/catalog/CatalogObjects/HomeCatalogObject.js";
17
+ export class EnterpriseHomeCatalogObject extends HomeCatalogObject {
18
+ constructor(properties) {
19
+ super(properties);
20
+ }
21
+ }
22
+ //# sourceMappingURL=EnterpriseHomeCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseHomeCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAG7F,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAGhE,YAAY,UAAe;QACzB,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,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 { HomeCatalogObject } from \"../../../oss/catalog/CatalogObjects/HomeCatalogObject.ts\";\nimport type { EnterpriseHomeCatalogReference } from \"../CatalogReferences/EnterpriseHomeCatalogReference.ts\";\n\nexport class EnterpriseHomeCatalogObject extends HomeCatalogObject {\n declare catalogReference: EnterpriseHomeCatalogReference;\n\n constructor(properties: any) {\n super(properties);\n }\n}\n"]}
@@ -0,0 +1,46 @@
1
+ import type { SonarV3Config } from "../../../common/Config.ts";
2
+ import { SourceCatalogObject } from "../../../oss/catalog/CatalogObjects/SourceCatalogObject.ts";
3
+ import type { RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
4
+ import type { Grantee } from "../../Grantee.ts";
5
+ import { EnterpriseSourceCatalogReference } from "../CatalogReferences/EnterpriseSourceCatalogReference.js";
6
+ export declare class EnterpriseSourceCatalogObject extends SourceCatalogObject {
7
+ catalogReference: EnterpriseSourceCatalogReference;
8
+ readonly owner?: Grantee;
9
+ constructor(properties: EnterpriseSourceCatalogObjectProperties);
10
+ grants(): Promise<import("ts-results-es").Result<import("../CatalogReferences/retrieveCatalogGrants.ts").CatalogGrants<"DELETE" | "ALTER" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE" | "ALTER REFLECTION" | "DROP" | "VIEW REFLECTION" | "CREATE TABLE" | "EXTERNAL QUERY" | "MODIFY">, unknown>>;
11
+ }
12
+ export declare const enterpriseSourceEntityToProperties: (entity: any, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
13
+ catalogReference: EnterpriseSourceCatalogReference;
14
+ owner: {
15
+ id: any;
16
+ type: any;
17
+ } | undefined;
18
+ acceleration: {
19
+ readonly activePolicyType: any;
20
+ readonly gracePeriod: Temporal.Duration;
21
+ readonly neverExpire: any;
22
+ readonly neverRefresh: any;
23
+ readonly refreshPeriod: Temporal.Duration;
24
+ readonly refreshSchedule: any;
25
+ };
26
+ allowCrossSourceSelection: any;
27
+ config: any;
28
+ createdAt: Date;
29
+ disableMetadataValidityCheck: any;
30
+ id: any;
31
+ metadataPolicy: {
32
+ readonly authTTL: Temporal.Duration;
33
+ readonly autoPromoteDatasets: any;
34
+ readonly datasetExpireAfter: Temporal.Duration;
35
+ readonly datasetRefreshAfter: Temporal.Duration;
36
+ readonly datasetUpdateMode: any;
37
+ readonly deleteUnavailableDatasets: any;
38
+ readonly namesRefresh: Temporal.Duration;
39
+ };
40
+ name: any;
41
+ sourceChangeState: any;
42
+ status: any;
43
+ tag: any;
44
+ type: any;
45
+ };
46
+ export type EnterpriseSourceCatalogObjectProperties = ReturnType<typeof enterpriseSourceEntityToProperties>;
@@ -0,0 +1,44 @@
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 { SourceCatalogObject, sourceEntityToProperties, } from "../../../oss/catalog/CatalogObjects/SourceCatalogObject.js";
17
+ import { EnterpriseSourceCatalogReference } from "../CatalogReferences/EnterpriseSourceCatalogReference.js";
18
+ export class EnterpriseSourceCatalogObject extends SourceCatalogObject {
19
+ owner;
20
+ constructor(properties) {
21
+ super(properties);
22
+ this.owner = properties.owner;
23
+ }
24
+ grants() {
25
+ return this.catalogReference.grants();
26
+ }
27
+ }
28
+ export const enterpriseSourceEntityToProperties = (entity, config, retrieveByPath) => {
29
+ const datasetProperties = sourceEntityToProperties(entity, config, retrieveByPath);
30
+ return {
31
+ ...datasetProperties,
32
+ catalogReference: new EnterpriseSourceCatalogReference({
33
+ id: entity.id,
34
+ path: [entity.name], // Note: Currently the backend does not return a path, derive it from the name
35
+ }, config, retrieveByPath),
36
+ owner: entity.owner
37
+ ? {
38
+ id: entity.owner.ownerId,
39
+ type: entity.owner.ownerType,
40
+ }
41
+ : undefined,
42
+ };
43
+ };
44
+ //# sourceMappingURL=EnterpriseSourceCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseSourceCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,4DAA4D,CAAC;AAGpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAE5G,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAE3D,KAAK,CAAW;IAEzB,YAAY,UAAmD;QAC7D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,MAAW,EACX,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACnF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,gCAAgC,CACpD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,8EAA8E;SACpG,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;KACd,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 {\n SourceCatalogObject,\n sourceEntityToProperties,\n} from \"../../../oss/catalog/CatalogObjects/SourceCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\nimport { EnterpriseSourceCatalogReference } from \"../CatalogReferences/EnterpriseSourceCatalogReference.js\";\n\nexport class EnterpriseSourceCatalogObject extends SourceCatalogObject {\n declare catalogReference: EnterpriseSourceCatalogReference;\n readonly owner?: Grantee;\n\n constructor(properties: EnterpriseSourceCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport const enterpriseSourceEntityToProperties = (\n entity: any,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = sourceEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseSourceCatalogReference(\n {\n id: entity.id,\n path: [entity.name], // Note: Currently the backend does not return a path, derive it from the name\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n };\n};\n\nexport type EnterpriseSourceCatalogObjectProperties = ReturnType<\n typeof enterpriseSourceEntityToProperties\n>;\n"]}
@@ -0,0 +1,6 @@
1
+ import { SpaceCatalogObject } from "../../../oss/catalog/CatalogObjects/SpaceCatalogObject.ts";
2
+ import type { EnterpriseSpaceCatalogReference } from "../CatalogReferences/EnterpriseSpaceCatalogReference.ts";
3
+ export declare class EnterpriseSpaceCatalogObject extends SpaceCatalogObject {
4
+ catalogReference: EnterpriseSpaceCatalogReference;
5
+ constructor(properties: any);
6
+ }
@@ -0,0 +1,22 @@
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 { SpaceCatalogObject } from "../../../oss/catalog/CatalogObjects/SpaceCatalogObject.js";
17
+ export class EnterpriseSpaceCatalogObject extends SpaceCatalogObject {
18
+ constructor(properties) {
19
+ super(properties);
20
+ }
21
+ }
22
+ //# sourceMappingURL=EnterpriseSpaceCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseSpaceCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAG/F,MAAM,OAAO,4BAA6B,SAAQ,kBAAkB;IAGlE,YAAY,UAAe;QACzB,KAAK,CAAC,UAAU,CAAC,CAAC;IACpB,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 { SpaceCatalogObject } from \"../../../oss/catalog/CatalogObjects/SpaceCatalogObject.ts\";\nimport type { EnterpriseSpaceCatalogReference } from \"../CatalogReferences/EnterpriseSpaceCatalogReference.ts\";\n\nexport class EnterpriseSpaceCatalogObject extends SpaceCatalogObject {\n declare catalogReference: EnterpriseSpaceCatalogReference;\n\n constructor(properties: any) {\n super(properties);\n }\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import type { VersionedDatasetCatalogObject } from "../../../oss/interfaces.ts";
2
+ import type { EnterpriseDatasetCatalogObject } from "./EnterpriseDatasetCatalogObject.ts";
3
+ import type { EnterpriseFileCatalogObject } from "./EnterpriseFileCatalogObject.ts";
4
+ import type { EnterpriseFolderCatalogObject } from "./EnterpriseFolderCatalogObject.ts";
5
+ import type { EnterpriseFunctionCatalogObject } from "./EnterpriseFunctionCatalogObject.ts";
6
+ import type { EnterpriseHomeCatalogObject } from "./EnterpriseHomeCatalogObject.ts";
7
+ import type { EnterpriseSourceCatalogObject } from "./EnterpriseSourceCatalogObject.ts";
8
+ import type { EnterpriseSpaceCatalogObject } from "./EnterpriseSpaceCatalogObject.ts";
9
+ export type { EnterpriseDatasetCatalogObject, EnterpriseFileCatalogObject, EnterpriseFolderCatalogObject, EnterpriseFunctionCatalogObject, EnterpriseHomeCatalogObject, EnterpriseSourceCatalogObject, EnterpriseSpaceCatalogObject, };
10
+ export type EnterpriseCatalogObject = EnterpriseDatasetCatalogObject | EnterpriseFileCatalogObject | EnterpriseFolderCatalogObject | EnterpriseFunctionCatalogObject | EnterpriseHomeCatalogObject | EnterpriseSourceCatalogObject | EnterpriseSpaceCatalogObject | VersionedDatasetCatalogObject;
@@ -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/CatalogObjects/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 { VersionedDatasetCatalogObject } from \"../../../oss/interfaces.ts\";\nimport type { EnterpriseDatasetCatalogObject } from \"./EnterpriseDatasetCatalogObject.ts\";\nimport type { EnterpriseFileCatalogObject } from \"./EnterpriseFileCatalogObject.ts\";\nimport type { EnterpriseFolderCatalogObject } from \"./EnterpriseFolderCatalogObject.ts\";\nimport type { EnterpriseFunctionCatalogObject } from \"./EnterpriseFunctionCatalogObject.ts\";\nimport type { EnterpriseHomeCatalogObject } from \"./EnterpriseHomeCatalogObject.ts\";\nimport type { EnterpriseSourceCatalogObject } from \"./EnterpriseSourceCatalogObject.ts\";\nimport type { EnterpriseSpaceCatalogObject } from \"./EnterpriseSpaceCatalogObject.ts\";\n\nexport type {\n EnterpriseDatasetCatalogObject,\n EnterpriseFileCatalogObject,\n EnterpriseFolderCatalogObject,\n EnterpriseFunctionCatalogObject,\n EnterpriseHomeCatalogObject,\n EnterpriseSourceCatalogObject,\n EnterpriseSpaceCatalogObject,\n};\n\nexport type EnterpriseCatalogObject =\n | EnterpriseDatasetCatalogObject\n | EnterpriseFileCatalogObject\n | EnterpriseFolderCatalogObject\n | EnterpriseFunctionCatalogObject\n | EnterpriseHomeCatalogObject\n | EnterpriseSourceCatalogObject\n | EnterpriseSpaceCatalogObject\n | VersionedDatasetCatalogObject;\n"]}
@@ -0,0 +1,14 @@
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 { DatasetCatalogReference } from "../../../oss/catalog/CatalogReferences/DatasetCatalogReference.ts";
5
+ import type { BaseCatalogReferenceProperties, RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
6
+ type DatasetAvailablePrivileges = "ALTER" | "DELETE" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE";
7
+ export declare class EnterpriseDatasetCatalogReference extends DatasetCatalogReference {
8
+ #private;
9
+ constructor(properties: BaseCatalogReferenceProperties & {
10
+ type: "DATASET_DIRECT" | "DATASET_PROMOTED" | "DATASET_VIRTUAL";
11
+ }, config: SonarV3Config, retrieveByPath: RetrieveByPath);
12
+ grants(): Promise<Result<CatalogGrants<DatasetAvailablePrivileges>, unknown>>;
13
+ }
14
+ export {};