@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,72 @@
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 { EnterpriseScript, enterpriseScriptEntityToProperties } from "./EnterpriseScript.js";
17
+ import { Ok, Err } from "ts-results-es";
18
+ import { HttpError } from "../../common/HttpError.js";
19
+ import { isProblem } from "../../common/Problem.js";
20
+ import { duplicateScriptNameError, scriptNotFoundError } from "../../oss/scripts/ScriptErrors.js";
21
+ export const EnterpriseScriptsResource = (config) => {
22
+ const retrieve = (id, { signal } = {}) => config
23
+ .sonarV3Request(`scripts/${id}`, { signal })
24
+ .then((res) => res.json())
25
+ .then((entity) => Ok(new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config)))
26
+ .catch((e) => {
27
+ if (e instanceof HttpError && e.status === 404) {
28
+ return Err(scriptNotFoundError(id));
29
+ }
30
+ return Err(e);
31
+ });
32
+ const store = (properties) => {
33
+ const { query, ...rest } = properties;
34
+ return config
35
+ .sonarV3Request("scripts", {
36
+ body: JSON.stringify({
37
+ ...rest,
38
+ content: query.sql,
39
+ context: query.context,
40
+ }),
41
+ headers: {
42
+ "Content-Type": "application/json",
43
+ },
44
+ keepalive: true,
45
+ method: "POST",
46
+ })
47
+ .then((res) => res.json())
48
+ .then((entity) => Ok(new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config)))
49
+ .catch((e) => {
50
+ if (e instanceof HttpError && isProblem(e.body)) {
51
+ if (e.body.detail?.includes("Cannot reuse the same script name"))
52
+ return Err(duplicateScriptNameError(properties.name));
53
+ }
54
+ return Err(e);
55
+ });
56
+ };
57
+ return {
58
+ list() {
59
+ return {
60
+ async *data({ signal } = {}) {
61
+ yield* await config
62
+ .sonarV3Request("scripts?maxResults=1000", { signal })
63
+ .then((res) => res.json())
64
+ .then((response) => response.data.map((entity) => new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config)));
65
+ },
66
+ };
67
+ },
68
+ retrieve,
69
+ store,
70
+ };
71
+ };
72
+ //# sourceMappingURL=EnterpriseScriptsResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseScriptsResource.js","sourceRoot":"","sources":["../../../src/enterprise/scripts/EnterpriseScriptsResource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,gBAAgB,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAElG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAsC,EAAE,EAAE;IAClF,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,EAAE,MAAM,KAAkB,EAAE,EAAE,EAAE,CAC5D,MAAM;SACH,cAAc,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;SAC3C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SACzB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACf,EAAE,CAAC,IAAI,gBAAgB,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAC7E;SACA,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE;QACpB,IAAI,CAAC,YAAY,SAAS,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC/C,OAAO,GAAG,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IAEP,MAAM,KAAK,GAAG,CAAC,UAA0C,EAAE,EAAE;QAC3D,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC;QACtC,OAAO,MAAM;aACV,cAAc,CAAC,SAAS,EAAE;YACzB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,GAAG,IAAI;gBACP,OAAO,EAAE,KAAK,CAAC,GAAG;gBAClB,OAAO,EAAE,KAAK,CAAC,OAAO;aACvB,CAAC;YACF,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,MAAM;SACf,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACzB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACf,EAAE,CAAC,IAAI,gBAAgB,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAC7E;aACA,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE;YACpB,IAAI,CAAC,YAAY,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChD,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,mCAAmC,CAAC;oBAC9D,OAAO,GAAG,CAAC,wBAAwB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC1D,CAAC;YACD,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO;QACL,IAAI;YACF,OAAO;gBACL,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,KAAkB,EAAE;oBACtC,KAAK,CAAC,CAAC,MAAM,MAAM;yBAChB,cAAc,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC;yBACrD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;yBACzB,IAAI,CACH,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,IAAI,CAAC,GAAG,CACf,CAAC,MAAW,EAAE,EAAE,CACd,IAAI,gBAAgB,CAAC,kCAAkC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CACrD,CAC1B,CAAC;gBACN,CAAC;aACF,CAAC;QACJ,CAAC;QACD,QAAQ;QACR,KAAK;KACN,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 { ResourceConfig, SonarV3Config } from \"../../common/Config.ts\";\nimport { EnterpriseScript, enterpriseScriptEntityToProperties } from \"./EnterpriseScript.ts\";\nimport { Ok, Err } from \"ts-results-es\";\nimport { HttpError } from \"../../common/HttpError.ts\";\nimport { isProblem } from \"../../common/Problem.ts\";\nimport type { Query } from \"../../common/Query.ts\";\nimport type { SignalParam } from \"../../common/Params.ts\";\nimport { duplicateScriptNameError, scriptNotFoundError } from \"../../oss/scripts/ScriptErrors.ts\";\n\nexport const EnterpriseScriptsResource = (config: ResourceConfig & SonarV3Config) => {\n const retrieve = (id: string, { signal }: SignalParam = {}) =>\n config\n .sonarV3Request(`scripts/${id}`, { signal })\n .then((res) => res.json())\n .then((entity) =>\n Ok(new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config)),\n )\n .catch((e: unknown) => {\n if (e instanceof HttpError && e.status === 404) {\n return Err(scriptNotFoundError(id));\n }\n return Err(e);\n });\n\n const store = (properties: { name: string; query: Query }) => {\n const { query, ...rest } = properties;\n return config\n .sonarV3Request(\"scripts\", {\n body: JSON.stringify({\n ...rest,\n content: query.sql,\n context: query.context,\n }),\n headers: {\n \"Content-Type\": \"application/json\",\n },\n keepalive: true,\n method: \"POST\",\n })\n .then((res) => res.json())\n .then((entity) =>\n Ok(new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config)),\n )\n .catch((e: unknown) => {\n if (e instanceof HttpError && isProblem(e.body)) {\n if (e.body.detail?.includes(\"Cannot reuse the same script name\"))\n return Err(duplicateScriptNameError(properties.name));\n }\n return Err(e);\n });\n };\n\n return {\n list() {\n return {\n async *data({ signal }: SignalParam = {}) {\n yield* await config\n .sonarV3Request(\"scripts?maxResults=1000\", { signal })\n .then((res) => res.json())\n .then(\n (response) =>\n response.data.map(\n (entity: any) =>\n new EnterpriseScript(enterpriseScriptEntityToProperties(entity), config),\n ) as EnterpriseScript[],\n );\n },\n };\n },\n retrieve,\n store,\n };\n};\n"]}
@@ -0,0 +1,23 @@
1
+ import { Err, Ok } from "ts-results-es";
2
+ import type { V3Config } from "../../common/Config.ts";
3
+ import type { SignalParam } from "../../common/Params.ts";
4
+ import { User } from "../../oss/users/User.ts";
5
+ export declare class EnterpriseUser extends User {
6
+ #private;
7
+ constructor(properties: EnterpriseUserProperties, config: V3Config);
8
+ tokens({ signal }?: SignalParam): Promise<Err<any> | Ok<{
9
+ createdAt: Date;
10
+ expiresAt: Date;
11
+ id: string;
12
+ label: string;
13
+ }[]>>;
14
+ }
15
+ export declare const enterpriseUserEntityToProperties: (entity: any) => {
16
+ email: string;
17
+ familyName: string | null;
18
+ givenName: string | null;
19
+ id: string;
20
+ status: "ACTIVE" | "INACTIVE";
21
+ username: string;
22
+ };
23
+ export type EnterpriseUserProperties = ReturnType<typeof enterpriseUserEntityToProperties>;
@@ -0,0 +1,43 @@
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
+ import { User, userEntityToProperties } from "../../oss/users/User.js";
18
+ export class EnterpriseUser extends User {
19
+ #config;
20
+ constructor(properties, config) {
21
+ super(properties);
22
+ this.#config = config;
23
+ }
24
+ tokens({ signal } = {}) {
25
+ return this.#config
26
+ .v3Request(`user/${this.id}/token`, {
27
+ headers: { Accept: "application/json" },
28
+ signal,
29
+ })
30
+ .then((res) => res.json())
31
+ .then((response) => Ok(response.data.map((token) => ({
32
+ createdAt: new Date(token.createdAt),
33
+ expiresAt: new Date(token.expiresAt),
34
+ id: token.tid,
35
+ label: token.label,
36
+ }))))
37
+ .catch((e) => Err(e));
38
+ }
39
+ }
40
+ export const enterpriseUserEntityToProperties = (entity) => ({
41
+ ...userEntityToProperties(entity),
42
+ });
43
+ //# sourceMappingURL=EnterpriseUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseUser.js","sourceRoot":"","sources":["../../../src/enterprise/users/EnterpriseUser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAYvE,MAAM,OAAO,cAAe,SAAQ,IAAI;IACtC,OAAO,CAAW;IAElB,YAAY,UAAoC,EAAE,MAAgB;QAChE,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,MAAM,CAAC,EAAE,MAAM,KAAkB,EAAE;QACjC,OAAO,IAAI,CAAC,OAAO;aAChB,SAAS,CAAC,QAAQ,IAAI,CAAC,EAAE,QAAQ,EAAE;YAClC,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;YACvC,MAAM;SACP,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAiC,CAAC;aACxD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,EAAE,CACA,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC5B,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YACpC,SAAS,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YACpC,EAAE,EAAE,KAAK,CAAC,GAAG;YACb,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC,CACJ,CACF;aACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,MAAW,EAAE,EAAE,CAAC,CAAC;IAChE,GAAG,sBAAsB,CAAC,MAAM,CAAC;CAClC,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 { V3Config } from \"../../common/Config.ts\";\nimport type { SignalParam } from \"../../common/Params.ts\";\nimport { User, userEntityToProperties } from \"../../oss/users/User.ts\";\n\ntype UserTokensResponse = {\n data: {\n tid: string;\n uid: string;\n label: string;\n createdAt: string;\n expiresAt: string;\n }[];\n};\n\nexport class EnterpriseUser extends User {\n #config: V3Config;\n\n constructor(properties: EnterpriseUserProperties, config: V3Config) {\n super(properties);\n this.#config = config;\n }\n\n tokens({ signal }: SignalParam = {}) {\n return this.#config\n .v3Request(`user/${this.id}/token`, {\n headers: { Accept: \"application/json\" },\n signal,\n })\n .then((res) => res.json() as Promise<UserTokensResponse>)\n .then((response) =>\n Ok(\n response.data.map((token) => ({\n createdAt: new Date(token.createdAt),\n expiresAt: new Date(token.expiresAt),\n id: token.tid,\n label: token.label,\n })),\n ),\n )\n .catch((e) => Err(e));\n }\n}\n\nexport const enterpriseUserEntityToProperties = (entity: any) => ({\n ...userEntityToProperties(entity),\n});\n\nexport type EnterpriseUserProperties = ReturnType<typeof enterpriseUserEntityToProperties>;\n"]}
@@ -0,0 +1,11 @@
1
+ import { Err, Ok } from "ts-results-es";
2
+ import type { SonarV3Config, V3Config } from "../../common/Config.ts";
3
+ import { EnterpriseUser } from "./EnterpriseUser.ts";
4
+ export declare const EnterpriseUsersResource: (config: SonarV3Config & V3Config) => {
5
+ retrieveById: (id: string, { signal }?: {
6
+ signal?: AbortSignal;
7
+ }) => Promise<Err<unknown> | Ok<EnterpriseUser>>;
8
+ retrieveByName: (name: string, { signal }?: {
9
+ signal?: AbortSignal;
10
+ }) => Promise<Err<unknown> | Ok<EnterpriseUser>>;
11
+ };
@@ -0,0 +1,32 @@
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
+ import { EnterpriseUser, enterpriseUserEntityToProperties } from "./EnterpriseUser.js";
18
+ export const EnterpriseUsersResource = (config) => {
19
+ return {
20
+ retrieveById: (id, { signal } = {}) => config
21
+ .sonarV3Request(`user/${id}`, { signal })
22
+ .then((res) => res.json())
23
+ .then((entity) => Ok(new EnterpriseUser(enterpriseUserEntityToProperties(entity), config)))
24
+ .catch((e) => Err(e)),
25
+ retrieveByName: (name, { signal } = {}) => config
26
+ .sonarV3Request(`user/by-name/${name}`, { signal })
27
+ .then((res) => res.json())
28
+ .then((entity) => Ok(new EnterpriseUser(enterpriseUserEntityToProperties(entity), config)))
29
+ .catch((e) => Err(e)),
30
+ };
31
+ };
32
+ //# sourceMappingURL=EnterpriseUsersResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnterpriseUsersResource.js","sourceRoot":"","sources":["../../../src/enterprise/users/EnterpriseUsersResource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAEvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAgC,EAAE,EAAE;IAC1E,OAAO;QACL,YAAY,EAAE,CAAC,EAAU,EAAE,EAAE,MAAM,KAA+B,EAAE,EAAE,EAAE,CACtE,MAAM;aACH,cAAc,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;aACxC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACzB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,cAAc,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;aAC1F,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAClC,cAAc,EAAE,CAAC,IAAY,EAAE,EAAE,MAAM,KAA+B,EAAE,EAAE,EAAE,CAC1E,MAAM;aACH,cAAc,CAAC,gBAAgB,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;aAClD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACzB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,cAAc,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;aAC1F,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACnC,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 { Err, Ok } from \"ts-results-es\";\nimport type { SonarV3Config, V3Config } from \"../../common/Config.ts\";\nimport { EnterpriseUser, enterpriseUserEntityToProperties } from \"./EnterpriseUser.ts\";\n\nexport const EnterpriseUsersResource = (config: SonarV3Config & V3Config) => {\n return {\n retrieveById: (id: string, { signal }: { signal?: AbortSignal } = {}) =>\n config\n .sonarV3Request(`user/${id}`, { signal })\n .then((res) => res.json())\n .then((entity) => Ok(new EnterpriseUser(enterpriseUserEntityToProperties(entity), config)))\n .catch((e: unknown) => Err(e)),\n retrieveByName: (name: string, { signal }: { signal?: AbortSignal } = {}) =>\n config\n .sonarV3Request(`user/by-name/${name}`, { signal })\n .then((res) => res.json())\n .then((entity) => Ok(new EnterpriseUser(enterpriseUserEntityToProperties(entity), config)))\n .catch((e: unknown) => Err(e)),\n };\n};\n"]}
@@ -0,0 +1,43 @@
1
+ import type { SonarV3Config } from "../../../common/Config.ts";
2
+ import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
3
+ import { DatasetCatalogReference } from "../CatalogReferences/DatasetCatalogReference.ts";
4
+ export declare class DatasetCatalogObject {
5
+ readonly catalogReference: DatasetCatalogObjectProperties["catalogReference"];
6
+ readonly createdAt: DatasetCatalogObjectProperties["createdAt"];
7
+ readonly fields: DatasetCatalogObjectProperties["fields"];
8
+ readonly schemaOutdated: DatasetCatalogObjectProperties["schemaOutdated"];
9
+ readonly type: DatasetCatalogObjectProperties["type"];
10
+ constructor(properties: DatasetCatalogObjectProperties);
11
+ get name(): string;
12
+ /**
13
+ * @deprecated
14
+ */
15
+ get id(): string;
16
+ get path(): string[];
17
+ pathString: DatasetCatalogReference["pathString"];
18
+ }
19
+ type Field = {
20
+ isPartitioned: boolean;
21
+ isSorted: boolean;
22
+ name: string;
23
+ type: {
24
+ name: string;
25
+ };
26
+ };
27
+ export type DatasetEntity = {
28
+ id: string;
29
+ path: string[];
30
+ type: string;
31
+ createdAt: string;
32
+ fields: Field[];
33
+ schemaOutdated: boolean;
34
+ };
35
+ export declare const datasetEntityToProperties: (entity: DatasetEntity, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
36
+ readonly catalogReference: DatasetCatalogReference;
37
+ readonly createdAt: Date;
38
+ readonly fields: Field[];
39
+ readonly schemaOutdated: boolean;
40
+ readonly type: any;
41
+ };
42
+ export type DatasetCatalogObjectProperties = ReturnType<typeof datasetEntityToProperties>;
43
+ export {};
@@ -0,0 +1,56 @@
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 { DatasetCatalogReference, mappedType, } from "../CatalogReferences/DatasetCatalogReference.js";
17
+ export class DatasetCatalogObject {
18
+ catalogReference;
19
+ createdAt;
20
+ fields;
21
+ schemaOutdated;
22
+ type;
23
+ constructor(properties) {
24
+ this.catalogReference = properties.catalogReference;
25
+ this.createdAt = properties.createdAt;
26
+ this.fields = properties.fields;
27
+ this.schemaOutdated = properties.schemaOutdated;
28
+ this.type = properties.type;
29
+ this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
30
+ }
31
+ get name() {
32
+ return this.catalogReference.name;
33
+ }
34
+ /**
35
+ * @deprecated
36
+ */
37
+ get id() {
38
+ return this.catalogReference.id;
39
+ }
40
+ get path() {
41
+ return this.catalogReference.path;
42
+ }
43
+ pathString;
44
+ }
45
+ export const datasetEntityToProperties = (entity, config, retrieveByPath) => ({
46
+ catalogReference: new DatasetCatalogReference({
47
+ id: entity.id,
48
+ path: entity.path,
49
+ type: mappedType[entity.type],
50
+ }, retrieveByPath, config),
51
+ createdAt: new Date(entity.createdAt),
52
+ fields: entity.fields,
53
+ schemaOutdated: entity.schemaOutdated,
54
+ type: mappedType[entity.type],
55
+ });
56
+ //# sourceMappingURL=DatasetCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/DatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,uBAAuB,EACvB,UAAU,GACX,MAAM,iDAAiD,CAAC;AAEzD,MAAM,OAAO,oBAAoB;IACtB,gBAAgB,CAAqD;IACrE,SAAS,CAA8C;IACvD,MAAM,CAA2C;IACjD,cAAc,CAAmD;IACjE,IAAI,CAAyC;IAEtD,YAAY,UAA0C;QACpD,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,UAAU,CAAwC;CACnD;AAoBD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,MAAqB,EACrB,MAAqB,EACrB,cAA8B,EAC9B,EAAE,CACF,CAAC;IACC,gBAAgB,EAAE,IAAI,uBAAuB,CAC3C;QACE,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,IAAI,EAAG,UAAkB,CAAC,MAAM,CAAC,IAAI,CAAC;KACvC,EACD,cAAc,EACd,MAAM,CACP;IACD,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,cAAc,EAAE,MAAM,CAAC,cAAc;IACrC,IAAI,EAAG,UAAkB,CAAC,MAAM,CAAC,IAAI,CAAC;CACvC,CAAU,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 \"../CatalogReferences/BaseCatalogReference.ts\";\nimport {\n DatasetCatalogReference,\n mappedType,\n} from \"../CatalogReferences/DatasetCatalogReference.ts\";\n\nexport class DatasetCatalogObject {\n readonly catalogReference: DatasetCatalogObjectProperties[\"catalogReference\"];\n readonly createdAt: DatasetCatalogObjectProperties[\"createdAt\"];\n readonly fields: DatasetCatalogObjectProperties[\"fields\"];\n readonly schemaOutdated: DatasetCatalogObjectProperties[\"schemaOutdated\"];\n readonly type: DatasetCatalogObjectProperties[\"type\"];\n\n constructor(properties: DatasetCatalogObjectProperties) {\n this.catalogReference = properties.catalogReference;\n this.createdAt = properties.createdAt;\n this.fields = properties.fields;\n this.schemaOutdated = properties.schemaOutdated;\n this.type = properties.type;\n this.pathString = this.catalogReference.pathString.bind(this.catalogReference);\n }\n\n get name() {\n return this.catalogReference.name;\n }\n\n /**\n * @deprecated\n */\n get id() {\n return this.catalogReference.id;\n }\n\n get path() {\n return this.catalogReference.path;\n }\n\n pathString: DatasetCatalogReference[\"pathString\"];\n}\n\ntype Field = {\n isPartitioned: boolean;\n isSorted: boolean;\n name: string;\n type: {\n name: string;\n };\n};\n\nexport type DatasetEntity = {\n id: string;\n path: string[];\n type: string;\n createdAt: string;\n fields: Field[];\n schemaOutdated: boolean;\n};\n\nexport const datasetEntityToProperties = (\n entity: DatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) =>\n ({\n catalogReference: new DatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: (mappedType as any)[entity.type],\n },\n retrieveByPath,\n config,\n ),\n createdAt: new Date(entity.createdAt),\n fields: entity.fields,\n schemaOutdated: entity.schemaOutdated,\n type: (mappedType as any)[entity.type],\n }) as const;\n\nexport type DatasetCatalogObjectProperties = ReturnType<typeof datasetEntityToProperties>;\n"]}
@@ -0,0 +1,17 @@
1
+ import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
2
+ import { FileCatalogReference } from "../CatalogReferences/FileCatalogReference.ts";
3
+ export declare class FileCatalogObject {
4
+ readonly catalogReference: FileCatalogReference;
5
+ constructor(properties: any);
6
+ get name(): string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ get id(): string;
11
+ get path(): string[];
12
+ pathString: FileCatalogReference["pathString"];
13
+ /**
14
+ * @deprecated
15
+ */
16
+ static fromResource(properties: any, retrieveByPath: RetrieveByPath): FileCatalogObject;
17
+ }
@@ -0,0 +1,48 @@
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 "../CatalogReferences/FileCatalogReference.js";
17
+ export class FileCatalogObject {
18
+ catalogReference;
19
+ constructor(properties) {
20
+ this.catalogReference = properties.catalogReference;
21
+ this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
22
+ }
23
+ get name() {
24
+ return this.catalogReference.name;
25
+ }
26
+ /**
27
+ * @deprecated
28
+ */
29
+ get id() {
30
+ return this.catalogReference.id;
31
+ }
32
+ get path() {
33
+ return this.catalogReference.path;
34
+ }
35
+ pathString;
36
+ /**
37
+ * @deprecated
38
+ */
39
+ static fromResource(properties, retrieveByPath) {
40
+ return new FileCatalogObject({
41
+ catalogReference: new FileCatalogReference({
42
+ id: properties.id,
43
+ path: properties.path,
44
+ }, retrieveByPath),
45
+ });
46
+ }
47
+ }
48
+ //# sourceMappingURL=FileCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/FileCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEpF,MAAM,OAAO,iBAAiB;IACnB,gBAAgB,CAAuB;IAEhD,YAAY,UAAe;QACzB,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,UAAU,CAAqC;IAE/C;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAe,EAAE,cAA8B;QACjE,OAAO,IAAI,iBAAiB,CAAC;YAC3B,gBAAgB,EAAE,IAAI,oBAAoB,CACxC;gBACE,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;aACtB,EACD,cAAc,CACf;SACF,CAAC,CAAC;IACL,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 { RetrieveByPath } from \"../CatalogReferences/BaseCatalogReference.ts\";\nimport { FileCatalogReference } from \"../CatalogReferences/FileCatalogReference.ts\";\n\nexport class FileCatalogObject {\n readonly catalogReference: FileCatalogReference;\n\n constructor(properties: any) {\n this.catalogReference = properties.catalogReference;\n this.pathString = this.catalogReference.pathString.bind(this.catalogReference);\n }\n\n get name() {\n return this.catalogReference.name;\n }\n\n /**\n * @deprecated\n */\n get id() {\n return this.catalogReference.id;\n }\n\n get path() {\n return this.catalogReference.path;\n }\n\n pathString: FileCatalogReference[\"pathString\"];\n\n /**\n * @deprecated\n */\n static fromResource(properties: any, retrieveByPath: RetrieveByPath) {\n return new FileCatalogObject({\n catalogReference: new FileCatalogReference(\n {\n id: properties.id,\n path: properties.path,\n },\n retrieveByPath,\n ),\n });\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import type { SonarV3Config } from "../../../common/Config.ts";
2
+ import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
3
+ import { FolderCatalogReference } from "../CatalogReferences/FolderCatalogReference.ts";
4
+ export declare class FolderCatalogObject {
5
+ readonly catalogReference: FolderCatalogReference;
6
+ constructor(properties: {
7
+ catalogReference: FolderCatalogReference;
8
+ });
9
+ get name(): string;
10
+ /**
11
+ * @deprecated
12
+ */
13
+ get id(): string;
14
+ get path(): string[];
15
+ pathString: typeof this.catalogReference.pathString;
16
+ /**
17
+ * @deprecated
18
+ */
19
+ static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath): FolderCatalogObject;
20
+ }
@@ -0,0 +1,48 @@
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 { FolderCatalogReference } from "../CatalogReferences/FolderCatalogReference.js";
17
+ export class FolderCatalogObject {
18
+ catalogReference;
19
+ constructor(properties) {
20
+ this.catalogReference = properties.catalogReference;
21
+ this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
22
+ }
23
+ get name() {
24
+ return this.catalogReference.name;
25
+ }
26
+ /**
27
+ * @deprecated
28
+ */
29
+ get id() {
30
+ return this.catalogReference.id;
31
+ }
32
+ get path() {
33
+ return this.catalogReference.path;
34
+ }
35
+ pathString;
36
+ /**
37
+ * @deprecated
38
+ */
39
+ static fromResource(properties, config, retrieveByPath) {
40
+ return new FolderCatalogObject({
41
+ catalogReference: new FolderCatalogReference({
42
+ id: properties.id,
43
+ path: properties.path,
44
+ }, config, retrieveByPath),
45
+ });
46
+ }
47
+ }
48
+ //# sourceMappingURL=FolderCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/FolderCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAExF,MAAM,OAAO,mBAAmB;IACrB,gBAAgB,CAAyB;IAElD,YAAY,UAAwD;QAClE,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,UAAU,CAA0C;IAEpD;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAe,EAAE,MAAqB,EAAE,cAA8B;QACxF,OAAO,IAAI,mBAAmB,CAAC;YAC7B,gBAAgB,EAAE,IAAI,sBAAsB,CAC1C;gBACE,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;aACtB,EACD,MAAM,EACN,cAAc,CACf;SACF,CAAC,CAAC;IACL,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 { SonarV3Config } from \"../../../common/Config.ts\";\nimport type { RetrieveByPath } from \"../CatalogReferences/BaseCatalogReference.ts\";\nimport { FolderCatalogReference } from \"../CatalogReferences/FolderCatalogReference.ts\";\n\nexport class FolderCatalogObject {\n readonly catalogReference: FolderCatalogReference;\n\n constructor(properties: { catalogReference: FolderCatalogReference }) {\n this.catalogReference = properties.catalogReference;\n this.pathString = this.catalogReference.pathString.bind(this.catalogReference);\n }\n\n get name() {\n return this.catalogReference.name;\n }\n\n /**\n * @deprecated\n */\n get id() {\n return this.catalogReference.id;\n }\n\n get path() {\n return this.catalogReference.path;\n }\n\n pathString: typeof this.catalogReference.pathString;\n\n /**\n * @deprecated\n */\n static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath) {\n return new FolderCatalogObject({\n catalogReference: new FolderCatalogReference(\n {\n id: properties.id,\n path: properties.path,\n },\n config,\n retrieveByPath,\n ),\n });\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import type { FunctionCatalogReference } from "../CatalogReferences/FunctionCatalogReference.ts";
2
+ export declare class FunctionCatalogObject {
3
+ #private;
4
+ readonly catalogReference: FunctionCatalogReference;
5
+ readonly createdAt: Date;
6
+ readonly isScalar: boolean;
7
+ readonly lastModified: Date;
8
+ readonly returnType: string;
9
+ pathString: typeof this.catalogReference.pathString;
10
+ constructor(properties: any);
11
+ /**
12
+ * @deprecated
13
+ */
14
+ get id(): string;
15
+ get path(): string[];
16
+ get name(): string;
17
+ }
@@ -0,0 +1,47 @@
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 class FunctionCatalogObject {
17
+ catalogReference;
18
+ createdAt;
19
+ isScalar;
20
+ lastModified;
21
+ returnType;
22
+ // eslint-disable-next-line no-unused-private-class-members
23
+ #tag;
24
+ pathString;
25
+ constructor(properties) {
26
+ this.catalogReference = properties.catalogReference;
27
+ this.createdAt = properties.createdAt;
28
+ this.isScalar = properties.isScalar;
29
+ this.lastModified = properties.lastModified;
30
+ this.returnType = properties.returnType;
31
+ this.#tag = properties.tag;
32
+ this.pathString = properties.catalogReference.pathString.bind(this.catalogReference);
33
+ }
34
+ /**
35
+ * @deprecated
36
+ */
37
+ get id() {
38
+ return this.catalogReference.id;
39
+ }
40
+ get path() {
41
+ return this.catalogReference.path;
42
+ }
43
+ get name() {
44
+ return this.catalogReference.name;
45
+ }
46
+ }
47
+ //# sourceMappingURL=FunctionCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/FunctionCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,qBAAqB;IACvB,gBAAgB,CAA2B;IAC3C,SAAS,CAAO;IAChB,QAAQ,CAAU;IAClB,YAAY,CAAO;IACnB,UAAU,CAAS;IAC5B,2DAA2D;IAClD,IAAI,CAAS;IACtB,UAAU,CAA0C;IAEpD,YAAY,UAAe;QACzB,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,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 { FunctionCatalogReference } from \"../CatalogReferences/FunctionCatalogReference.ts\";\n\nexport class FunctionCatalogObject {\n readonly catalogReference: FunctionCatalogReference;\n readonly createdAt: Date;\n readonly isScalar: boolean;\n readonly lastModified: Date;\n readonly returnType: string;\n // eslint-disable-next-line no-unused-private-class-members\n readonly #tag: string;\n pathString: typeof this.catalogReference.pathString;\n\n constructor(properties: any) {\n this.catalogReference = properties.catalogReference;\n this.createdAt = properties.createdAt;\n this.isScalar = properties.isScalar;\n this.lastModified = properties.lastModified;\n this.returnType = properties.returnType;\n this.#tag = properties.tag;\n this.pathString = properties.catalogReference.pathString.bind(this.catalogReference);\n }\n\n /**\n * @deprecated\n */\n get id() {\n return this.catalogReference.id;\n }\n\n get path() {\n return this.catalogReference.path;\n }\n\n get name(): string {\n return this.catalogReference.name;\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import type { SonarV3Config } from "../../../common/Config.ts";
2
+ import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
3
+ import { HomeCatalogReference } from "../CatalogReferences/HomeCatalogReference.ts";
4
+ export declare class HomeCatalogObject {
5
+ readonly catalogReference: HomeCatalogReference;
6
+ constructor(properties: any);
7
+ get name(): string;
8
+ /**
9
+ * @deprecated
10
+ */
11
+ get id(): string;
12
+ get path(): string[];
13
+ pathString: HomeCatalogReference["pathString"];
14
+ /**
15
+ * @deprecated
16
+ */
17
+ static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath): HomeCatalogObject;
18
+ }
@@ -0,0 +1,48 @@
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 "../CatalogReferences/HomeCatalogReference.js";
17
+ export class HomeCatalogObject {
18
+ catalogReference;
19
+ constructor(properties) {
20
+ this.catalogReference = properties.catalogReference;
21
+ this.pathString = properties.catalogReference.pathString.bind(this.catalogReference);
22
+ }
23
+ get name() {
24
+ return this.catalogReference.name;
25
+ }
26
+ /**
27
+ * @deprecated
28
+ */
29
+ get id() {
30
+ return this.catalogReference.id;
31
+ }
32
+ get path() {
33
+ return this.catalogReference.path;
34
+ }
35
+ pathString;
36
+ /**
37
+ * @deprecated
38
+ */
39
+ static fromResource(properties, config, retrieveByPath) {
40
+ return new HomeCatalogObject({
41
+ catalogReference: new HomeCatalogReference({
42
+ id: properties.id,
43
+ path: [properties.name],
44
+ }, config, retrieveByPath),
45
+ });
46
+ }
47
+ }
48
+ //# sourceMappingURL=HomeCatalogObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HomeCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/HomeCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAEpF,MAAM,OAAO,iBAAiB;IACnB,gBAAgB,CAAuB;IAEhD,YAAY,UAAe;QACzB,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACvF,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAClC,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,UAAU,CAAqC;IAE/C;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAe,EAAE,MAAqB,EAAE,cAA8B;QACxF,OAAO,IAAI,iBAAiB,CAAC;YAC3B,gBAAgB,EAAE,IAAI,oBAAoB,CACxC;gBACE,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;aACxB,EACD,MAAM,EACN,cAAc,CACf;SACF,CAAC,CAAC;IACL,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 { SonarV3Config } from \"../../../common/Config.ts\";\nimport type { RetrieveByPath } from \"../CatalogReferences/BaseCatalogReference.ts\";\nimport { HomeCatalogReference } from \"../CatalogReferences/HomeCatalogReference.ts\";\n\nexport class HomeCatalogObject {\n readonly catalogReference: HomeCatalogReference;\n\n constructor(properties: any) {\n this.catalogReference = properties.catalogReference;\n this.pathString = properties.catalogReference.pathString.bind(this.catalogReference);\n }\n\n get name() {\n return this.catalogReference.name;\n }\n\n /**\n * @deprecated\n */\n get id() {\n return this.catalogReference.id;\n }\n\n get path() {\n return this.catalogReference.path;\n }\n\n pathString: HomeCatalogReference[\"pathString\"];\n\n /**\n * @deprecated\n */\n static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath) {\n return new HomeCatalogObject({\n catalogReference: new HomeCatalogReference(\n {\n id: properties.id,\n path: [properties.name],\n },\n config,\n retrieveByPath,\n ),\n });\n }\n}\n"]}