@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.
- package/LICENSE +202 -0
- package/dist/cloud/arctic/ArcticCatalog.d.ts +34 -0
- package/dist/cloud/arctic/ArcticCatalog.js +46 -0
- package/dist/cloud/arctic/ArcticCatalog.js.map +1 -0
- package/dist/cloud/arctic/ArcticResource.d.ts +15 -0
- package/dist/cloud/arctic/ArcticResource.js +40 -0
- package/dist/cloud/arctic/ArcticResource.js.map +1 -0
- package/dist/cloud/credentials/fromAccessToken.d.ts +2 -0
- package/dist/cloud/credentials/fromAccessToken.js +19 -0
- package/dist/cloud/credentials/fromAccessToken.js.map +1 -0
- package/dist/cloud/credentials/fromRefreshToken.d.ts +5 -0
- package/dist/cloud/credentials/fromRefreshToken.js +47 -0
- package/dist/cloud/credentials/fromRefreshToken.js.map +1 -0
- package/dist/cloud/credentials/fromUsernamePassword.d.ts +2 -0
- package/dist/cloud/credentials/fromUsernamePassword.js +41 -0
- package/dist/cloud/credentials/fromUsernamePassword.js.map +1 -0
- package/dist/cloud/credentials/index.d.ts +4 -0
- package/dist/cloud/credentials/index.js +20 -0
- package/dist/cloud/credentials/index.js.map +1 -0
- package/dist/cloud/engines/Engine.d.ts +47 -0
- package/dist/cloud/engines/Engine.js +58 -0
- package/dist/cloud/engines/Engine.js.map +1 -0
- package/dist/cloud/engines/EnginesResource.d.ts +15 -0
- package/dist/cloud/engines/EnginesResource.js +42 -0
- package/dist/cloud/engines/EnginesResource.js.map +1 -0
- package/dist/cloud/engines/utils.d.ts +17 -0
- package/dist/cloud/engines/utils.js +59 -0
- package/dist/cloud/engines/utils.js.map +1 -0
- package/dist/cloud/index.d.ts +487 -0
- package/dist/cloud/index.js +47 -0
- package/dist/cloud/index.js.map +1 -0
- package/dist/cloud/interfaces.d.ts +13 -0
- package/dist/cloud/interfaces.js +18 -0
- package/dist/cloud/interfaces.js.map +1 -0
- package/dist/cloud/oauth/OAuthApplication.d.ts +26 -0
- package/dist/cloud/oauth/OAuthApplication.js +49 -0
- package/dist/cloud/oauth/OAuthApplication.js.map +1 -0
- package/dist/cloud/oauth/OAuthApplicationsResource.d.ts +15 -0
- package/dist/cloud/oauth/OAuthApplicationsResource.js +66 -0
- package/dist/cloud/oauth/OAuthApplicationsResource.js.map +1 -0
- package/dist/cloud/oauth/oauth.d.ts +32 -0
- package/dist/cloud/oauth/oauth.js +57 -0
- package/dist/cloud/oauth/oauth.js.map +1 -0
- package/dist/cloud/projects/Project.d.ts +49 -0
- package/dist/cloud/projects/Project.js +61 -0
- package/dist/cloud/projects/Project.js.map +1 -0
- package/dist/cloud/projects/ProjectsResource.d.ts +17 -0
- package/dist/cloud/projects/ProjectsResource.js +50 -0
- package/dist/cloud/projects/ProjectsResource.js.map +1 -0
- package/dist/cloud/projects/projectApiMethods.d.ts +9 -0
- package/dist/cloud/projects/projectApiMethods.js +43 -0
- package/dist/cloud/projects/projectApiMethods.js.map +1 -0
- package/dist/cloud/projects/utils.d.ts +2 -0
- package/dist/cloud/projects/utils.js +37 -0
- package/dist/cloud/projects/utils.js.map +1 -0
- package/dist/cloud/resources.d.ts +472 -0
- package/dist/cloud/resources.js +41 -0
- package/dist/cloud/resources.js.map +1 -0
- package/dist/cloud/users/CloudUser.d.ts +4 -0
- package/dist/cloud/users/CloudUser.js +27 -0
- package/dist/cloud/users/CloudUser.js.map +1 -0
- package/dist/cloud/users/CloudUsersResource.d.ts +13 -0
- package/dist/cloud/users/CloudUsersResource.js +37 -0
- package/dist/cloud/users/CloudUsersResource.js.map +1 -0
- package/dist/common/Config.d.ts +54 -0
- package/dist/common/Config.js +17 -0
- package/dist/common/Config.js.map +1 -0
- package/dist/common/CredentialProvider.d.ts +4 -0
- package/dist/common/CredentialProvider.js +17 -0
- package/dist/common/CredentialProvider.js.map +1 -0
- package/dist/common/HttpError.d.ts +21 -0
- package/dist/common/HttpError.js +74 -0
- package/dist/common/HttpError.js.map +1 -0
- package/dist/common/Params.d.ts +16 -0
- package/dist/common/Params.js +17 -0
- package/dist/common/Params.js.map +1 -0
- package/dist/common/Problem.d.ts +45 -0
- package/dist/common/Problem.js +37 -0
- package/dist/common/Problem.js.map +1 -0
- package/dist/common/Query.d.ts +6 -0
- package/dist/common/Query.js +30 -0
- package/dist/common/Query.js.map +1 -0
- package/dist/common/batch.d.ts +2 -0
- package/dist/common/batch.js +42 -0
- package/dist/common/batch.js.map +1 -0
- package/dist/common/createRequest.d.ts +6 -0
- package/dist/common/createRequest.js +71 -0
- package/dist/common/createRequest.js.map +1 -0
- package/dist/common/fromAbortable.d.ts +4 -0
- package/dist/common/fromAbortable.js +35 -0
- package/dist/common/fromAbortable.js.map +1 -0
- package/dist/common/problems.d.ts +9 -0
- package/dist/common/problems.js +25 -0
- package/dist/common/problems.js.map +1 -0
- package/dist/common/sharedExports.d.ts +5 -0
- package/dist/common/sharedExports.js +21 -0
- package/dist/common/sharedExports.js.map +1 -0
- package/dist/enterprise/Grantee.d.ts +9 -0
- package/dist/enterprise/Grantee.js +17 -0
- package/dist/enterprise/Grantee.js.map +1 -0
- package/dist/enterprise/Ownable.d.ts +7 -0
- package/dist/enterprise/Ownable.js +17 -0
- package/dist/enterprise/Ownable.js.map +1 -0
- package/dist/enterprise/catalog/CatalogLineage.d.ts +37 -0
- package/dist/enterprise/catalog/CatalogLineage.js +26 -0
- package/dist/enterprise/catalog/CatalogLineage.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.d.ts +39 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js +45 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.d.ts +6 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.js +22 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFileCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.d.ts +7 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.js +25 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFolderCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.d.ts +6 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.js +22 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseFunctionCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.d.ts +6 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.js +22 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseHomeCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.d.ts +46 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.js +44 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSourceCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.d.ts +6 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.js +22 -0
- package/dist/enterprise/catalog/CatalogObjects/EnterpriseSpaceCatalogObject.js.map +1 -0
- package/dist/enterprise/catalog/CatalogObjects/index.d.ts +10 -0
- package/dist/enterprise/catalog/CatalogObjects/index.js +17 -0
- package/dist/enterprise/catalog/CatalogObjects/index.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.d.ts +14 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.js +28 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseDatasetCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.d.ts +3 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.js +19 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFileCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.d.ts +12 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.js +28 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFolderCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.d.ts +3 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.js +19 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseFunctionCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.d.ts +3 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.js +19 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseHomeCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.d.ts +12 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.js +28 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSourceCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.d.ts +3 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.js +19 -0
- package/dist/enterprise/catalog/CatalogReferences/EnterpriseSpaceCatalogReference.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/index.d.ts +9 -0
- package/dist/enterprise/catalog/CatalogReferences/index.js +17 -0
- package/dist/enterprise/catalog/CatalogReferences/index.js.map +1 -0
- package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.d.ts +15 -0
- package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.js +30 -0
- package/dist/enterprise/catalog/CatalogReferences/retrieveCatalogGrants.js.map +1 -0
- package/dist/enterprise/catalog/EnterpriseCatalogResource.d.ts +10 -0
- package/dist/enterprise/catalog/EnterpriseCatalogResource.js +38 -0
- package/dist/enterprise/catalog/EnterpriseCatalogResource.js.map +1 -0
- package/dist/enterprise/catalog/catalogObjectFromEntity.d.ts +3 -0
- package/dist/enterprise/catalog/catalogObjectFromEntity.js +73 -0
- package/dist/enterprise/catalog/catalogObjectFromEntity.js.map +1 -0
- package/dist/enterprise/catalog/catalogReferenceFromProperties.d.ts +6 -0
- package/dist/enterprise/catalog/catalogReferenceFromProperties.js +46 -0
- package/dist/enterprise/catalog/catalogReferenceFromProperties.js.map +1 -0
- package/dist/enterprise/catalog/catalogRetrieve.d.ts +5 -0
- package/dist/enterprise/catalog/catalogRetrieve.js +119 -0
- package/dist/enterprise/catalog/catalogRetrieve.js.map +1 -0
- package/dist/enterprise/credentials/exchangePat.d.ts +12 -0
- package/dist/enterprise/credentials/exchangePat.js +55 -0
- package/dist/enterprise/credentials/exchangePat.js.map +1 -0
- package/dist/enterprise/credentials/fromPat.d.ts +2 -0
- package/dist/enterprise/credentials/fromPat.js +36 -0
- package/dist/enterprise/credentials/fromPat.js.map +1 -0
- package/dist/enterprise/credentials/index.d.ts +2 -0
- package/dist/enterprise/credentials/index.js +18 -0
- package/dist/enterprise/credentials/index.js.map +1 -0
- package/dist/enterprise/engines/Engine.d.ts +78 -0
- package/dist/enterprise/engines/Engine.js +75 -0
- package/dist/enterprise/engines/Engine.js.map +1 -0
- package/dist/enterprise/engines/EnginesResource.d.ts +10 -0
- package/dist/enterprise/engines/EnginesResource.js +34 -0
- package/dist/enterprise/engines/EnginesResource.js.map +1 -0
- package/dist/enterprise/index.d.ts +60 -0
- package/dist/enterprise/index.js +43 -0
- package/dist/enterprise/index.js.map +1 -0
- package/dist/enterprise/interfaces.d.ts +12 -0
- package/dist/enterprise/interfaces.js +18 -0
- package/dist/enterprise/interfaces.js.map +1 -0
- package/dist/enterprise/reflections/ReflectionSummary.d.ts +74 -0
- package/dist/enterprise/reflections/ReflectionSummary.js +82 -0
- package/dist/enterprise/reflections/ReflectionSummary.js.map +1 -0
- package/dist/enterprise/resources.d.ts +44 -0
- package/dist/enterprise/resources.js +36 -0
- package/dist/enterprise/resources.js.map +1 -0
- package/dist/enterprise/roles/Role.d.ts +23 -0
- package/dist/enterprise/roles/Role.js +38 -0
- package/dist/enterprise/roles/Role.js.map +1 -0
- package/dist/enterprise/roles/RolesResource.d.ts +8 -0
- package/dist/enterprise/roles/RolesResource.js +32 -0
- package/dist/enterprise/roles/RolesResource.js.map +1 -0
- package/dist/enterprise/scripts/EnterpriseScript.d.ts +46 -0
- package/dist/enterprise/scripts/EnterpriseScript.js +62 -0
- package/dist/enterprise/scripts/EnterpriseScript.js.map +1 -0
- package/dist/enterprise/scripts/EnterpriseScriptsResource.d.ts +15 -0
- package/dist/enterprise/scripts/EnterpriseScriptsResource.js +72 -0
- package/dist/enterprise/scripts/EnterpriseScriptsResource.js.map +1 -0
- package/dist/enterprise/users/EnterpriseUser.d.ts +23 -0
- package/dist/enterprise/users/EnterpriseUser.js +43 -0
- package/dist/enterprise/users/EnterpriseUser.js.map +1 -0
- package/dist/enterprise/users/EnterpriseUsersResource.d.ts +11 -0
- package/dist/enterprise/users/EnterpriseUsersResource.js +32 -0
- package/dist/enterprise/users/EnterpriseUsersResource.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.d.ts +43 -0
- package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.js +56 -0
- package/dist/oss/catalog/CatalogObjects/DatasetCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/FileCatalogObject.d.ts +17 -0
- package/dist/oss/catalog/CatalogObjects/FileCatalogObject.js +48 -0
- package/dist/oss/catalog/CatalogObjects/FileCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.d.ts +20 -0
- package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.js +48 -0
- package/dist/oss/catalog/CatalogObjects/FolderCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.d.ts +17 -0
- package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.js +47 -0
- package/dist/oss/catalog/CatalogObjects/FunctionCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.d.ts +18 -0
- package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.js +48 -0
- package/dist/oss/catalog/CatalogObjects/HomeCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.d.ts +60 -0
- package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.js +95 -0
- package/dist/oss/catalog/CatalogObjects/SourceCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.d.ts +19 -0
- package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.js +53 -0
- package/dist/oss/catalog/CatalogObjects/SpaceCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.d.ts +31 -0
- package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.js +58 -0
- package/dist/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/index.d.ts +10 -0
- package/dist/oss/catalog/CatalogObjects/index.js +17 -0
- package/dist/oss/catalog/CatalogObjects/index.js.map +1 -0
- package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.d.ts +11 -0
- package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.js +73 -0
- package/dist/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.d.ts +16 -0
- package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.js +34 -0
- package/dist/oss/catalog/CatalogReferences/BaseCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.d.ts +17 -0
- package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.js +39 -0
- package/dist/oss/catalog/CatalogReferences/DatasetCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/FileCatalogReference.d.ts +9 -0
- package/dist/oss/catalog/CatalogReferences/FileCatalogReference.js +28 -0
- package/dist/oss/catalog/CatalogReferences/FileCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.d.ts +22 -0
- package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.js +40 -0
- package/dist/oss/catalog/CatalogReferences/FolderCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.d.ts +9 -0
- package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.js +28 -0
- package/dist/oss/catalog/CatalogReferences/FunctionCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.d.ts +20 -0
- package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.js +38 -0
- package/dist/oss/catalog/CatalogReferences/HomeCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.d.ts +24 -0
- package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.js +61 -0
- package/dist/oss/catalog/CatalogReferences/SourceCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.d.ts +20 -0
- package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.js +38 -0
- package/dist/oss/catalog/CatalogReferences/SpaceCatalogReference.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/index.d.ts +9 -0
- package/dist/oss/catalog/CatalogReferences/index.js +17 -0
- package/dist/oss/catalog/CatalogReferences/index.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.d.ts +14 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.js +62 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogChildren.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.d.ts +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.js +42 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceEntityToProperties.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.d.ts +6 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.js +45 -0
- package/dist/oss/catalog/CatalogReferences/utils/catalogReferenceFromProperties.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/getTags.d.ts +5 -0
- package/dist/oss/catalog/CatalogReferences/utils/getTags.js +23 -0
- package/dist/oss/catalog/CatalogReferences/utils/getTags.js.map +1 -0
- package/dist/oss/catalog/CatalogReferences/utils/getWiki.d.ts +5 -0
- package/dist/oss/catalog/CatalogReferences/utils/getWiki.js +23 -0
- package/dist/oss/catalog/CatalogReferences/utils/getWiki.js.map +1 -0
- package/dist/oss/catalog/CatalogResource.d.ts +10 -0
- package/dist/oss/catalog/CatalogResource.js +38 -0
- package/dist/oss/catalog/CatalogResource.js.map +1 -0
- package/dist/oss/catalog/CatalogTags.d.ts +26 -0
- package/dist/oss/catalog/CatalogTags.js +60 -0
- package/dist/oss/catalog/CatalogTags.js.map +1 -0
- package/dist/oss/catalog/CatalogWiki.d.ts +26 -0
- package/dist/oss/catalog/CatalogWiki.js +60 -0
- package/dist/oss/catalog/CatalogWiki.js.map +1 -0
- package/dist/oss/catalog/VersionReference.d.ts +13 -0
- package/dist/oss/catalog/VersionReference.js +19 -0
- package/dist/oss/catalog/VersionReference.js.map +1 -0
- package/dist/oss/catalog/catalogErrors.d.ts +18 -0
- package/dist/oss/catalog/catalogErrors.js +36 -0
- package/dist/oss/catalog/catalogErrors.js.map +1 -0
- package/dist/oss/catalog/catalogRetrieve.d.ts +6 -0
- package/dist/oss/catalog/catalogRetrieve.js +119 -0
- package/dist/oss/catalog/catalogRetrieve.js.map +1 -0
- package/dist/oss/credentials/fromUsernamePassword.d.ts +2 -0
- package/dist/oss/credentials/fromUsernamePassword.js +41 -0
- package/dist/oss/credentials/fromUsernamePassword.js.map +1 -0
- package/dist/oss/credentials/index.d.ts +1 -0
- package/dist/oss/credentials/index.js +17 -0
- package/dist/oss/credentials/index.js.map +1 -0
- package/dist/oss/index.d.ts +55 -0
- package/dist/oss/index.js +42 -0
- package/dist/oss/index.js.map +1 -0
- package/dist/oss/interfaces.d.ts +8 -0
- package/dist/oss/interfaces.js +18 -0
- package/dist/oss/interfaces.js.map +1 -0
- package/dist/oss/jobs/Job.d.ts +71 -0
- package/dist/oss/jobs/Job.js +133 -0
- package/dist/oss/jobs/Job.js.map +1 -0
- package/dist/oss/jobs/JobsResource.d.ts +10 -0
- package/dist/oss/jobs/JobsResource.js +74 -0
- package/dist/oss/jobs/JobsResource.js.map +1 -0
- package/dist/oss/jobs/utils/JobResultsResponse.d.ts +85 -0
- package/dist/oss/jobs/utils/JobResultsResponse.js +17 -0
- package/dist/oss/jobs/utils/JobResultsResponse.js.map +1 -0
- package/dist/oss/jobs/utils/createArrayForFieldType.d.ts +2 -0
- package/dist/oss/jobs/utils/createArrayForFieldType.js +55 -0
- package/dist/oss/jobs/utils/createArrayForFieldType.js.map +1 -0
- package/dist/oss/jobs/utils/createColumnRecordFromSchema.d.ts +2 -0
- package/dist/oss/jobs/utils/createColumnRecordFromSchema.js +21 -0
- package/dist/oss/jobs/utils/createColumnRecordFromSchema.js.map +1 -0
- package/dist/oss/jobs/utils/mapRowData.d.ts +3 -0
- package/dist/oss/jobs/utils/mapRowData.js +46 -0
- package/dist/oss/jobs/utils/mapRowData.js.map +1 -0
- package/dist/oss/jobs/utils/mapRowsToColumns.d.ts +2 -0
- package/dist/oss/jobs/utils/mapRowsToColumns.js +27 -0
- package/dist/oss/jobs/utils/mapRowsToColumns.js.map +1 -0
- package/dist/oss/reflections/Reflection.d.ts +60 -0
- package/dist/oss/reflections/Reflection.js +41 -0
- package/dist/oss/reflections/Reflection.js.map +1 -0
- package/dist/oss/resources.d.ts +38 -0
- package/dist/oss/resources.js +30 -0
- package/dist/oss/resources.js.map +1 -0
- package/dist/oss/scripts/Script.d.ts +64 -0
- package/dist/oss/scripts/Script.js +94 -0
- package/dist/oss/scripts/Script.js.map +1 -0
- package/dist/oss/scripts/ScriptErrors.d.ts +19 -0
- package/dist/oss/scripts/ScriptErrors.js +37 -0
- package/dist/oss/scripts/ScriptErrors.js.map +1 -0
- package/dist/oss/scripts/ScriptsResource.d.ts +15 -0
- package/dist/oss/scripts/ScriptsResource.js +72 -0
- package/dist/oss/scripts/ScriptsResource.js.map +1 -0
- package/dist/oss/users/User.d.ts +30 -0
- package/dist/oss/users/User.js +60 -0
- package/dist/oss/users/User.js.map +1 -0
- package/dist/oss/users/UsersResource.d.ts +11 -0
- package/dist/oss/users/UsersResource.js +32 -0
- package/dist/oss/users/UsersResource.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "temporal-polyfill/global";
|
|
2
|
+
import type { SonarV3Config } from "../../../common/Config.ts";
|
|
3
|
+
import { SourceCatalogReference } from "../CatalogReferences/SourceCatalogReference.ts";
|
|
4
|
+
import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
|
|
5
|
+
export declare class SourceCatalogObject {
|
|
6
|
+
readonly acceleration: SourceCatalogObjectProperties["acceleration"];
|
|
7
|
+
readonly allowCrossSourceSelection: SourceCatalogObjectProperties["allowCrossSourceSelection"];
|
|
8
|
+
readonly catalogReference: SourceCatalogReference;
|
|
9
|
+
readonly config: SourceCatalogObjectProperties["config"];
|
|
10
|
+
readonly createdAt: SourceCatalogObjectProperties["createdAt"];
|
|
11
|
+
readonly disableMetadataValidityCheck: SourceCatalogObjectProperties["disableMetadataValidityCheck"];
|
|
12
|
+
readonly metadataPolicy: SourceCatalogObjectProperties["metadataPolicy"];
|
|
13
|
+
readonly sourceChangeState: SourceCatalogObjectProperties["sourceChangeState"];
|
|
14
|
+
readonly status: SourceCatalogObjectProperties["status"];
|
|
15
|
+
readonly type: SourceCatalogObjectProperties["type"];
|
|
16
|
+
protected readonly tag: string;
|
|
17
|
+
constructor(properties: SourceCatalogObjectProperties & {
|
|
18
|
+
catalogReference: SourceCatalogReference;
|
|
19
|
+
tag: string;
|
|
20
|
+
});
|
|
21
|
+
get name(): string;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
25
|
+
get id(): string;
|
|
26
|
+
get path(): string[];
|
|
27
|
+
get settled(): boolean;
|
|
28
|
+
pathString: SourceCatalogReference["pathString"];
|
|
29
|
+
}
|
|
30
|
+
export declare const sourceEntityToProperties: (entity: any, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
|
|
31
|
+
readonly acceleration: {
|
|
32
|
+
readonly activePolicyType: any;
|
|
33
|
+
readonly gracePeriod: Temporal.Duration;
|
|
34
|
+
readonly neverExpire: any;
|
|
35
|
+
readonly neverRefresh: any;
|
|
36
|
+
readonly refreshPeriod: Temporal.Duration;
|
|
37
|
+
readonly refreshSchedule: any;
|
|
38
|
+
};
|
|
39
|
+
readonly allowCrossSourceSelection: any;
|
|
40
|
+
readonly catalogReference: SourceCatalogReference;
|
|
41
|
+
readonly config: any;
|
|
42
|
+
readonly createdAt: Date;
|
|
43
|
+
readonly disableMetadataValidityCheck: any;
|
|
44
|
+
readonly id: any;
|
|
45
|
+
readonly metadataPolicy: {
|
|
46
|
+
readonly authTTL: Temporal.Duration;
|
|
47
|
+
readonly autoPromoteDatasets: any;
|
|
48
|
+
readonly datasetExpireAfter: Temporal.Duration;
|
|
49
|
+
readonly datasetRefreshAfter: Temporal.Duration;
|
|
50
|
+
readonly datasetUpdateMode: any;
|
|
51
|
+
readonly deleteUnavailableDatasets: any;
|
|
52
|
+
readonly namesRefresh: Temporal.Duration;
|
|
53
|
+
};
|
|
54
|
+
readonly name: any;
|
|
55
|
+
readonly sourceChangeState: any;
|
|
56
|
+
readonly status: any;
|
|
57
|
+
readonly tag: any;
|
|
58
|
+
readonly type: any;
|
|
59
|
+
};
|
|
60
|
+
export type SourceCatalogObjectProperties = ReturnType<typeof sourceEntityToProperties>;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 "temporal-polyfill/global";
|
|
17
|
+
import parseMilliseconds from "parse-ms";
|
|
18
|
+
import { SourceCatalogReference } from "../CatalogReferences/SourceCatalogReference.js";
|
|
19
|
+
export class SourceCatalogObject {
|
|
20
|
+
acceleration;
|
|
21
|
+
allowCrossSourceSelection;
|
|
22
|
+
catalogReference;
|
|
23
|
+
config;
|
|
24
|
+
createdAt;
|
|
25
|
+
disableMetadataValidityCheck;
|
|
26
|
+
metadataPolicy;
|
|
27
|
+
sourceChangeState;
|
|
28
|
+
status;
|
|
29
|
+
type;
|
|
30
|
+
tag;
|
|
31
|
+
constructor(properties) {
|
|
32
|
+
this.acceleration = properties.acceleration;
|
|
33
|
+
this.allowCrossSourceSelection = properties.allowCrossSourceSelection;
|
|
34
|
+
this.catalogReference = properties.catalogReference;
|
|
35
|
+
this.config = properties.config;
|
|
36
|
+
this.createdAt = properties.createdAt;
|
|
37
|
+
this.disableMetadataValidityCheck = properties.disableMetadataValidityCheck;
|
|
38
|
+
this.metadataPolicy = properties.metadataPolicy;
|
|
39
|
+
this.sourceChangeState = properties.sourceChangeState;
|
|
40
|
+
this.status = properties.status;
|
|
41
|
+
this.tag = properties.tag;
|
|
42
|
+
this.type = properties.type;
|
|
43
|
+
this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
|
|
44
|
+
}
|
|
45
|
+
get name() {
|
|
46
|
+
return this.catalogReference.name;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
get id() {
|
|
52
|
+
return this.catalogReference.id;
|
|
53
|
+
}
|
|
54
|
+
get path() {
|
|
55
|
+
return this.catalogReference.path;
|
|
56
|
+
}
|
|
57
|
+
get settled() {
|
|
58
|
+
return this.sourceChangeState === "NONE" || this.sourceChangeState === "UNSPECIFIED";
|
|
59
|
+
}
|
|
60
|
+
pathString;
|
|
61
|
+
}
|
|
62
|
+
export const sourceEntityToProperties = (entity, config, retrieveByPath) => ({
|
|
63
|
+
acceleration: {
|
|
64
|
+
activePolicyType: entity.accelerationActivePolicyType,
|
|
65
|
+
gracePeriod: Temporal.Duration.from(parseMilliseconds(entity.accelerationGracePeriodMs)),
|
|
66
|
+
neverExpire: entity.accelerationNeverExpire,
|
|
67
|
+
neverRefresh: entity.accelerationNeverRefresh,
|
|
68
|
+
refreshPeriod: Temporal.Duration.from(parseMilliseconds(entity.accelerationRefreshPeriodMs)),
|
|
69
|
+
refreshSchedule: entity.accelerationRefreshSchedule,
|
|
70
|
+
},
|
|
71
|
+
allowCrossSourceSelection: entity.allowCrossSourceSelection,
|
|
72
|
+
catalogReference: new SourceCatalogReference({
|
|
73
|
+
id: entity.id,
|
|
74
|
+
path: [entity.name],
|
|
75
|
+
}, config, retrieveByPath),
|
|
76
|
+
config: entity.config,
|
|
77
|
+
createdAt: new Date(entity.createdAt),
|
|
78
|
+
disableMetadataValidityCheck: entity.disableMetadataValidityCheck,
|
|
79
|
+
id: entity.id,
|
|
80
|
+
metadataPolicy: {
|
|
81
|
+
authTTL: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.authTTLMs)),
|
|
82
|
+
autoPromoteDatasets: entity.metadataPolicy.autoPromoteDatasets,
|
|
83
|
+
datasetExpireAfter: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.datasetExpireAfterMs)),
|
|
84
|
+
datasetRefreshAfter: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.datasetRefreshAfterMs)),
|
|
85
|
+
datasetUpdateMode: entity.metadataPolicy.datasetUpdateMode,
|
|
86
|
+
deleteUnavailableDatasets: entity.metadataPolicy.deleteUnavailableDatasets,
|
|
87
|
+
namesRefresh: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.namesRefreshMs)),
|
|
88
|
+
},
|
|
89
|
+
name: entity.name,
|
|
90
|
+
sourceChangeState: entity.sourceChangeState,
|
|
91
|
+
status: entity.state.status,
|
|
92
|
+
tag: entity.tag,
|
|
93
|
+
type: entity.type,
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=SourceCatalogObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/SourceCatalogObject.ts"],"names":[],"mappings":"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","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 \"temporal-polyfill/global\";\nimport parseMilliseconds from \"parse-ms\";\n\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\nimport { SourceCatalogReference } from \"../CatalogReferences/SourceCatalogReference.ts\";\nimport type { RetrieveByPath } from \"../CatalogReferences/BaseCatalogReference.ts\";\n\nexport class SourceCatalogObject {\n readonly acceleration: SourceCatalogObjectProperties[\"acceleration\"];\n readonly allowCrossSourceSelection: SourceCatalogObjectProperties[\"allowCrossSourceSelection\"];\n readonly catalogReference: SourceCatalogReference;\n readonly config: SourceCatalogObjectProperties[\"config\"];\n readonly createdAt: SourceCatalogObjectProperties[\"createdAt\"];\n readonly disableMetadataValidityCheck: SourceCatalogObjectProperties[\"disableMetadataValidityCheck\"];\n readonly metadataPolicy: SourceCatalogObjectProperties[\"metadataPolicy\"];\n readonly sourceChangeState: SourceCatalogObjectProperties[\"sourceChangeState\"];\n readonly status: SourceCatalogObjectProperties[\"status\"];\n readonly type: SourceCatalogObjectProperties[\"type\"];\n\n protected readonly tag: string;\n\n constructor(\n properties: SourceCatalogObjectProperties & {\n catalogReference: SourceCatalogReference;\n tag: string;\n },\n ) {\n this.acceleration = properties.acceleration;\n this.allowCrossSourceSelection = properties.allowCrossSourceSelection;\n this.catalogReference = properties.catalogReference;\n this.config = properties.config;\n this.createdAt = properties.createdAt;\n this.disableMetadataValidityCheck = properties.disableMetadataValidityCheck;\n this.metadataPolicy = properties.metadataPolicy;\n this.sourceChangeState = properties.sourceChangeState;\n this.status = properties.status;\n this.tag = properties.tag;\n this.type = properties.type;\n\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 get settled() {\n return this.sourceChangeState === \"NONE\" || this.sourceChangeState === \"UNSPECIFIED\";\n }\n\n pathString: SourceCatalogReference[\"pathString\"];\n}\n\nexport const sourceEntityToProperties = (\n entity: any,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) =>\n ({\n acceleration: {\n activePolicyType: entity.accelerationActivePolicyType,\n gracePeriod: Temporal.Duration.from(parseMilliseconds(entity.accelerationGracePeriodMs)),\n neverExpire: entity.accelerationNeverExpire,\n neverRefresh: entity.accelerationNeverRefresh,\n refreshPeriod: Temporal.Duration.from(parseMilliseconds(entity.accelerationRefreshPeriodMs)),\n refreshSchedule: entity.accelerationRefreshSchedule,\n },\n allowCrossSourceSelection: entity.allowCrossSourceSelection,\n catalogReference: new SourceCatalogReference(\n {\n id: entity.id,\n path: [entity.name],\n },\n config,\n retrieveByPath,\n ),\n config: entity.config,\n createdAt: new Date(entity.createdAt),\n disableMetadataValidityCheck: entity.disableMetadataValidityCheck,\n id: entity.id,\n metadataPolicy: {\n authTTL: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.authTTLMs)),\n autoPromoteDatasets: entity.metadataPolicy.autoPromoteDatasets,\n datasetExpireAfter: Temporal.Duration.from(\n parseMilliseconds(entity.metadataPolicy.datasetExpireAfterMs),\n ),\n datasetRefreshAfter: Temporal.Duration.from(\n parseMilliseconds(entity.metadataPolicy.datasetRefreshAfterMs),\n ),\n datasetUpdateMode: entity.metadataPolicy.datasetUpdateMode,\n deleteUnavailableDatasets: entity.metadataPolicy.deleteUnavailableDatasets,\n namesRefresh: Temporal.Duration.from(parseMilliseconds(entity.metadataPolicy.namesRefreshMs)),\n },\n name: entity.name,\n sourceChangeState: entity.sourceChangeState,\n status: entity.state.status,\n tag: entity.tag,\n type: entity.type,\n }) as const;\n\nexport type SourceCatalogObjectProperties = ReturnType<typeof sourceEntityToProperties>;\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SonarV3Config } from "../../../common/Config.ts";
|
|
2
|
+
import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
|
|
3
|
+
import { SpaceCatalogReference } from "../CatalogReferences/SpaceCatalogReference.ts";
|
|
4
|
+
export declare class SpaceCatalogObject {
|
|
5
|
+
readonly catalogReference: SpaceCatalogReference;
|
|
6
|
+
readonly createdAt: Date;
|
|
7
|
+
constructor(properties: any);
|
|
8
|
+
get name(): string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
get id(): string;
|
|
13
|
+
get path(): string[];
|
|
14
|
+
pathString: SpaceCatalogReference["pathString"];
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
18
|
+
static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath): SpaceCatalogObject;
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024-2025 Dremio Corporation
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { SpaceCatalogReference } from "../CatalogReferences/SpaceCatalogReference.js";
|
|
17
|
+
export class SpaceCatalogObject {
|
|
18
|
+
catalogReference;
|
|
19
|
+
createdAt;
|
|
20
|
+
constructor(properties) {
|
|
21
|
+
this.catalogReference = properties.catalogReference;
|
|
22
|
+
this.createdAt = properties.createdAt;
|
|
23
|
+
this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
|
|
24
|
+
}
|
|
25
|
+
get name() {
|
|
26
|
+
return this.catalogReference.name;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
31
|
+
get id() {
|
|
32
|
+
return this.catalogReference.id;
|
|
33
|
+
}
|
|
34
|
+
get path() {
|
|
35
|
+
return this.catalogReference.path;
|
|
36
|
+
}
|
|
37
|
+
pathString;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
41
|
+
static fromResource(properties, config, retrieveByPath) {
|
|
42
|
+
return new SpaceCatalogObject({
|
|
43
|
+
catalogReference: new SpaceCatalogReference({
|
|
44
|
+
id: properties.id,
|
|
45
|
+
path: [properties.name],
|
|
46
|
+
}, config, retrieveByPath),
|
|
47
|
+
createdAt: new Date(properties.createdAt),
|
|
48
|
+
id: properties.id,
|
|
49
|
+
name: properties.name,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=SpaceCatalogObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpaceCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/SpaceCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,OAAO,kBAAkB;IACpB,gBAAgB,CAAwB;IACxC,SAAS,CAAO;IAEzB,YAAY,UAAe;QACzB,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,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,CAAsC;IAEhD;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAe,EAAE,MAAqB,EAAE,cAA8B;QACxF,OAAO,IAAI,kBAAkB,CAAC;YAC5B,gBAAgB,EAAE,IAAI,qBAAqB,CACzC;gBACE,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;aACxB,EACD,MAAM,EACN,cAAc,CACf;YACD,SAAS,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACzC,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,IAAI,EAAE,UAAU,CAAC,IAAI;SACtB,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 { SpaceCatalogReference } from \"../CatalogReferences/SpaceCatalogReference.ts\";\n\nexport class SpaceCatalogObject {\n readonly catalogReference: SpaceCatalogReference;\n readonly createdAt: Date;\n\n constructor(properties: any) {\n this.catalogReference = properties.catalogReference;\n this.createdAt = properties.createdAt;\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: SpaceCatalogReference[\"pathString\"];\n\n /**\n * @deprecated\n */\n static fromResource(properties: any, config: SonarV3Config, retrieveByPath: RetrieveByPath) {\n return new SpaceCatalogObject({\n catalogReference: new SpaceCatalogReference(\n {\n id: properties.id,\n path: [properties.name],\n },\n config,\n retrieveByPath,\n ),\n createdAt: new Date(properties.createdAt),\n id: properties.id,\n name: properties.name,\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SonarV3Config } from "../../../common/Config.ts";
|
|
2
|
+
import type { RetrieveByPath } from "../CatalogReferences/BaseCatalogReference.ts";
|
|
3
|
+
import { DatasetCatalogReference } from "../CatalogReferences/DatasetCatalogReference.ts";
|
|
4
|
+
import type { CatalogReference } from "../CatalogReferences/index.ts";
|
|
5
|
+
export declare class VersionedDatasetCatalogObject {
|
|
6
|
+
readonly catalogReference: DatasetCatalogReference;
|
|
7
|
+
readonly fields: Field[];
|
|
8
|
+
readonly schemaOutdated: boolean;
|
|
9
|
+
readonly type: string;
|
|
10
|
+
constructor(properties: any);
|
|
11
|
+
get name(): string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
get id(): string;
|
|
16
|
+
get path(): string[];
|
|
17
|
+
pathString: CatalogReference["pathString"];
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
static fromResource(properties: any, retrieveByPath: RetrieveByPath, config: SonarV3Config): VersionedDatasetCatalogObject;
|
|
22
|
+
}
|
|
23
|
+
type Field = {
|
|
24
|
+
isPartitioned: boolean;
|
|
25
|
+
isSorted: boolean;
|
|
26
|
+
name: string;
|
|
27
|
+
type: {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
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 VersionedDatasetCatalogObject {
|
|
18
|
+
catalogReference;
|
|
19
|
+
fields;
|
|
20
|
+
schemaOutdated;
|
|
21
|
+
type;
|
|
22
|
+
constructor(properties) {
|
|
23
|
+
this.catalogReference = properties.catalogReference;
|
|
24
|
+
this.fields = properties.fields;
|
|
25
|
+
this.schemaOutdated = properties.schemaOutdated;
|
|
26
|
+
this.type = properties.type;
|
|
27
|
+
this.pathString = this.catalogReference.pathString.bind(this.catalogReference);
|
|
28
|
+
}
|
|
29
|
+
get name() {
|
|
30
|
+
return this.catalogReference.name;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
get id() {
|
|
36
|
+
return this.catalogReference.id;
|
|
37
|
+
}
|
|
38
|
+
get path() {
|
|
39
|
+
return this.catalogReference.path;
|
|
40
|
+
}
|
|
41
|
+
pathString;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
45
|
+
static fromResource(properties, retrieveByPath, config) {
|
|
46
|
+
return new VersionedDatasetCatalogObject({
|
|
47
|
+
catalogReference: new DatasetCatalogReference({
|
|
48
|
+
id: properties.id,
|
|
49
|
+
path: properties.path,
|
|
50
|
+
type: mappedType[properties.type],
|
|
51
|
+
}, retrieveByPath, config),
|
|
52
|
+
fields: properties.fields,
|
|
53
|
+
schemaOutdated: properties.schemaOutdated,
|
|
54
|
+
type: mappedType[properties.type],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=VersionedDatasetCatalogObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VersionedDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogObjects/VersionedDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,uBAAuB,EACvB,UAAU,GACX,MAAM,iDAAiD,CAAC;AAGzD,MAAM,OAAO,6BAA6B;IAC/B,gBAAgB,CAA0B;IAC1C,MAAM,CAAU;IAChB,cAAc,CAAU;IACxB,IAAI,CAAS;IAEtB,YAAY,UAAe;QACzB,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,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,CAAiC;IAE3C;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,UAAe,EAAE,cAA8B,EAAE,MAAqB;QACxF,OAAO,IAAI,6BAA6B,CAAC;YACvC,gBAAgB,EAAE,IAAI,uBAAuB,CAC3C;gBACE,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAG,UAAkB,CAAC,UAAU,CAAC,IAAI,CAAC;aAC3C,EACD,cAAc,EACd,MAAM,CACP;YACD,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,cAAc,EAAE,UAAU,CAAC,cAAc;YACzC,IAAI,EAAG,UAAkB,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3C,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 {\n DatasetCatalogReference,\n mappedType,\n} from \"../CatalogReferences/DatasetCatalogReference.ts\";\nimport type { CatalogReference } from \"../CatalogReferences/index.ts\";\n\nexport class VersionedDatasetCatalogObject {\n readonly catalogReference: DatasetCatalogReference;\n readonly fields: Field[];\n readonly schemaOutdated: boolean;\n readonly type: string;\n\n constructor(properties: any) {\n this.catalogReference = properties.catalogReference;\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: CatalogReference[\"pathString\"];\n\n /**\n * @deprecated\n */\n static fromResource(properties: any, retrieveByPath: RetrieveByPath, config: SonarV3Config) {\n return new VersionedDatasetCatalogObject({\n catalogReference: new DatasetCatalogReference(\n {\n id: properties.id,\n path: properties.path,\n type: (mappedType as any)[properties.type],\n },\n retrieveByPath,\n config,\n ),\n fields: properties.fields,\n schemaOutdated: properties.schemaOutdated,\n type: (mappedType as any)[properties.type],\n });\n }\n}\n\ntype Field = {\n isPartitioned: boolean;\n isSorted: boolean;\n name: string;\n type: {\n name: string;\n };\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DatasetCatalogObject } from "./DatasetCatalogObject.ts";
|
|
2
|
+
import type { FileCatalogObject } from "./FileCatalogObject.ts";
|
|
3
|
+
import type { FolderCatalogObject } from "./FolderCatalogObject.ts";
|
|
4
|
+
import type { FunctionCatalogObject } from "./FunctionCatalogObject.ts";
|
|
5
|
+
import type { HomeCatalogObject } from "./HomeCatalogObject.ts";
|
|
6
|
+
import type { SourceCatalogObject } from "./SourceCatalogObject.ts";
|
|
7
|
+
import type { SpaceCatalogObject } from "./SpaceCatalogObject.ts";
|
|
8
|
+
import type { VersionedDatasetCatalogObject } from "./VersionedDatasetCatalogObject.ts";
|
|
9
|
+
export type { DatasetCatalogObject, FileCatalogObject, FolderCatalogObject, FunctionCatalogObject, HomeCatalogObject, SourceCatalogObject, SpaceCatalogObject, VersionedDatasetCatalogObject, };
|
|
10
|
+
export type CatalogObject = DatasetCatalogObject | FileCatalogObject | FolderCatalogObject | FunctionCatalogObject | HomeCatalogObject | SourceCatalogObject | SpaceCatalogObject | 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/oss/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 { DatasetCatalogObject } from \"./DatasetCatalogObject.ts\";\nimport type { FileCatalogObject } from \"./FileCatalogObject.ts\";\nimport type { FolderCatalogObject } from \"./FolderCatalogObject.ts\";\nimport type { FunctionCatalogObject } from \"./FunctionCatalogObject.ts\";\nimport type { HomeCatalogObject } from \"./HomeCatalogObject.ts\";\nimport type { SourceCatalogObject } from \"./SourceCatalogObject.ts\";\nimport type { SpaceCatalogObject } from \"./SpaceCatalogObject.ts\";\nimport type { VersionedDatasetCatalogObject } from \"./VersionedDatasetCatalogObject.ts\";\n\nexport type {\n DatasetCatalogObject,\n FileCatalogObject,\n FolderCatalogObject,\n FunctionCatalogObject,\n HomeCatalogObject,\n SourceCatalogObject,\n SpaceCatalogObject,\n VersionedDatasetCatalogObject,\n};\n\nexport type CatalogObject =\n | DatasetCatalogObject\n | FileCatalogObject\n | FolderCatalogObject\n | FunctionCatalogObject\n | HomeCatalogObject\n | SourceCatalogObject\n | SpaceCatalogObject\n | VersionedDatasetCatalogObject;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SonarV3Config } from "../../../../common/Config.ts";
|
|
2
|
+
import { FunctionCatalogObject } from "../FunctionCatalogObject.ts";
|
|
3
|
+
import { DatasetCatalogObject } from "../DatasetCatalogObject.ts";
|
|
4
|
+
import { FileCatalogObject } from "../FileCatalogObject.ts";
|
|
5
|
+
import { FolderCatalogObject } from "../FolderCatalogObject.ts";
|
|
6
|
+
import { HomeCatalogObject } from "../HomeCatalogObject.ts";
|
|
7
|
+
import { SourceCatalogObject } from "../SourceCatalogObject.ts";
|
|
8
|
+
import { SpaceCatalogObject } from "../SpaceCatalogObject.ts";
|
|
9
|
+
import type { RetrieveByPath } from "../../CatalogReferences/BaseCatalogReference.ts";
|
|
10
|
+
import { VersionedDatasetCatalogObject } from "../VersionedDatasetCatalogObject.ts";
|
|
11
|
+
export declare const catalogObjectFromEntity: (config: SonarV3Config, retrieveByPath: RetrieveByPath) => (entity: any) => FileCatalogObject | DatasetCatalogObject | FolderCatalogObject | FunctionCatalogObject | HomeCatalogObject | SourceCatalogObject | SpaceCatalogObject | VersionedDatasetCatalogObject;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024-2025 Dremio Corporation
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { FunctionCatalogObject } from "../FunctionCatalogObject.js";
|
|
17
|
+
import { DatasetCatalogObject, datasetEntityToProperties } from "../DatasetCatalogObject.js";
|
|
18
|
+
import { FileCatalogObject } from "../FileCatalogObject.js";
|
|
19
|
+
import { FolderCatalogObject } from "../FolderCatalogObject.js";
|
|
20
|
+
import { HomeCatalogObject } from "../HomeCatalogObject.js";
|
|
21
|
+
import { SourceCatalogObject, sourceEntityToProperties } from "../SourceCatalogObject.js";
|
|
22
|
+
import { SpaceCatalogObject } from "../SpaceCatalogObject.js";
|
|
23
|
+
import { VersionedDatasetCatalogObject } from "../VersionedDatasetCatalogObject.js";
|
|
24
|
+
import { FunctionCatalogReference } from "../../CatalogReferences/FunctionCatalogReference.js";
|
|
25
|
+
export const catalogObjectFromEntity = (config, retrieveByPath) => (entity) => {
|
|
26
|
+
{
|
|
27
|
+
switch (entity.entityType) {
|
|
28
|
+
case "EnterpriseFolder":
|
|
29
|
+
case "folder":
|
|
30
|
+
return FolderCatalogObject.fromResource(entity, config, retrieveByPath);
|
|
31
|
+
case "EnterpriseDataset":
|
|
32
|
+
case "dataset": {
|
|
33
|
+
try {
|
|
34
|
+
JSON.parse(entity.id);
|
|
35
|
+
return VersionedDatasetCatalogObject.fromResource(entity, retrieveByPath, config);
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
// continue
|
|
39
|
+
}
|
|
40
|
+
return new DatasetCatalogObject(datasetEntityToProperties(entity, config, retrieveByPath));
|
|
41
|
+
}
|
|
42
|
+
case "EnterpriseSource":
|
|
43
|
+
case "source": {
|
|
44
|
+
return new SourceCatalogObject(sourceEntityToProperties(entity, config, retrieveByPath));
|
|
45
|
+
}
|
|
46
|
+
case "home":
|
|
47
|
+
return HomeCatalogObject.fromResource(entity, config, retrieveByPath);
|
|
48
|
+
case "EnterpriseSpace":
|
|
49
|
+
case "space":
|
|
50
|
+
return SpaceCatalogObject.fromResource(entity, config, retrieveByPath);
|
|
51
|
+
case "file":
|
|
52
|
+
return FileCatalogObject.fromResource(entity, retrieveByPath);
|
|
53
|
+
case "EnterpriseFunction":
|
|
54
|
+
case "function":
|
|
55
|
+
return new FunctionCatalogObject({
|
|
56
|
+
catalogReference: new FunctionCatalogReference({
|
|
57
|
+
id: entity.id,
|
|
58
|
+
path: entity.path,
|
|
59
|
+
}, retrieveByPath),
|
|
60
|
+
createdAt: new Date(entity.createdAt),
|
|
61
|
+
id: entity.id,
|
|
62
|
+
isScalar: entity.isScalar,
|
|
63
|
+
lastModified: new Date(entity.lastModified),
|
|
64
|
+
path: entity.path,
|
|
65
|
+
returnType: entity.returnType,
|
|
66
|
+
tag: entity.tag,
|
|
67
|
+
});
|
|
68
|
+
default:
|
|
69
|
+
throw new Error("Unexpected " + entity.entityType);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=catalogObjectFromEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalogObjectFromEntity.js","sourceRoot":"","sources":["../../../../../src/oss/catalog/CatalogObjects/utils/catalogObjectFromEntity.ts"],"names":[],"mappings":"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","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 { FunctionCatalogObject } from \"../FunctionCatalogObject.ts\";\n\nimport { DatasetCatalogObject, datasetEntityToProperties } from \"../DatasetCatalogObject.ts\";\nimport { FileCatalogObject } from \"../FileCatalogObject.ts\";\nimport { FolderCatalogObject } from \"../FolderCatalogObject.ts\";\nimport { HomeCatalogObject } from \"../HomeCatalogObject.ts\";\nimport { SourceCatalogObject, sourceEntityToProperties } from \"../SourceCatalogObject.ts\";\nimport { SpaceCatalogObject } from \"../SpaceCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../CatalogReferences/BaseCatalogReference.ts\";\nimport { VersionedDatasetCatalogObject } from \"../VersionedDatasetCatalogObject.ts\";\nimport { FunctionCatalogReference } from \"../../CatalogReferences/FunctionCatalogReference.ts\";\n\nexport const catalogObjectFromEntity =\n (config: SonarV3Config, retrieveByPath: RetrieveByPath) => (entity: any) => {\n {\n switch (entity.entityType) {\n case \"EnterpriseFolder\":\n case \"folder\":\n return FolderCatalogObject.fromResource(entity, config, retrieveByPath);\n case \"EnterpriseDataset\":\n case \"dataset\": {\n try {\n JSON.parse(entity.id);\n return VersionedDatasetCatalogObject.fromResource(\n entity,\n retrieveByPath as any,\n config,\n );\n } catch (e) {\n // continue\n }\n return new DatasetCatalogObject(\n datasetEntityToProperties(entity, config, retrieveByPath),\n );\n }\n case \"EnterpriseSource\":\n case \"source\": {\n return new SourceCatalogObject(sourceEntityToProperties(entity, config, retrieveByPath));\n }\n\n case \"home\":\n return HomeCatalogObject.fromResource(entity, config, retrieveByPath);\n case \"EnterpriseSpace\":\n case \"space\":\n return SpaceCatalogObject.fromResource(entity, config, retrieveByPath);\n case \"file\":\n return FileCatalogObject.fromResource(entity, retrieveByPath);\n case \"EnterpriseFunction\":\n case \"function\":\n return new FunctionCatalogObject({\n catalogReference: new FunctionCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n },\n retrieveByPath,\n ),\n createdAt: new Date(entity.createdAt),\n id: entity.id,\n isScalar: entity.isScalar,\n lastModified: new Date(entity.lastModified),\n path: entity.path,\n returnType: entity.returnType,\n tag: entity.tag,\n });\n default:\n throw new Error(\"Unexpected \" + entity.entityType);\n }\n }\n };\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Result } from "ts-results-es";
|
|
2
|
+
import type { CatalogObject } from "../CatalogObjects/index.ts";
|
|
3
|
+
export type RetrieveByPath = (path: string[]) => Promise<Result<CatalogObject, unknown>>;
|
|
4
|
+
export declare abstract class BaseCatalogReference {
|
|
5
|
+
readonly id: BaseCatalogReferenceProperties["id"];
|
|
6
|
+
readonly path: BaseCatalogReferenceProperties["path"];
|
|
7
|
+
abstract readonly type: string;
|
|
8
|
+
abstract catalogObject(): Promise<Result<CatalogObject, unknown>>;
|
|
9
|
+
constructor(properties: BaseCatalogReferenceProperties);
|
|
10
|
+
get name(): string;
|
|
11
|
+
pathString: (SEPARATOR?: string) => string;
|
|
12
|
+
}
|
|
13
|
+
export type BaseCatalogReferenceProperties = {
|
|
14
|
+
id: string;
|
|
15
|
+
path: string[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 BaseCatalogReference {
|
|
17
|
+
id;
|
|
18
|
+
path;
|
|
19
|
+
constructor(properties) {
|
|
20
|
+
this.id = properties.id;
|
|
21
|
+
this.path = properties.path;
|
|
22
|
+
}
|
|
23
|
+
get name() {
|
|
24
|
+
return this.path.at(-1);
|
|
25
|
+
}
|
|
26
|
+
pathString = pathString(() => this.path);
|
|
27
|
+
}
|
|
28
|
+
const requiresQuotes = /\W/;
|
|
29
|
+
const pathString = (getPath) => (SEPARATOR = ".") => {
|
|
30
|
+
return getPath()
|
|
31
|
+
.map((part) => (requiresQuotes.test(part) ? `"${part}"` : part))
|
|
32
|
+
.join(SEPARATOR);
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=BaseCatalogReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseCatalogReference.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogReferences/BaseCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,MAAM,OAAgB,oBAAoB;IAC/B,EAAE,CAAuC;IACzC,IAAI,CAAyC;IAItD,YAAY,UAA0C;QACpD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC;IAC3B,CAAC;IAED,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,MAAM,UAAU,GACd,CAAC,OAAuB,EAAE,EAAE,CAC5B,CAAC,YAAoB,GAAG,EAAU,EAAE;IAClC,OAAO,OAAO,EAAE;SACb,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SAC/D,IAAI,CAAC,SAAS,CAAC,CAAC;AACrB,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 { Result } from \"ts-results-es\";\nimport type { CatalogObject } from \"../CatalogObjects/index.ts\";\n\nexport type RetrieveByPath = (path: string[]) => Promise<Result<CatalogObject, unknown>>;\n\nexport abstract class BaseCatalogReference {\n readonly id: BaseCatalogReferenceProperties[\"id\"];\n readonly path: BaseCatalogReferenceProperties[\"path\"];\n abstract readonly type: string;\n abstract catalogObject(): Promise<Result<CatalogObject, unknown>>;\n\n constructor(properties: BaseCatalogReferenceProperties) {\n this.id = properties.id;\n this.path = properties.path;\n }\n\n get name() {\n return this.path.at(-1)!;\n }\n\n pathString = pathString(() => this.path);\n}\n\nconst requiresQuotes = /\\W/;\n\nconst pathString =\n (getPath: () => string[]) =>\n (SEPARATOR: string = \".\"): string => {\n return getPath()\n .map((part) => (requiresQuotes.test(part) ? `\"${part}\"` : part))\n .join(SEPARATOR);\n };\n\nexport type BaseCatalogReferenceProperties = { id: string; path: string[] };\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Result } from "ts-results-es";
|
|
2
|
+
import { BaseCatalogReference, type BaseCatalogReferenceProperties, type RetrieveByPath } from "./BaseCatalogReference.ts";
|
|
3
|
+
import type { DatasetCatalogObject } from "../CatalogObjects/DatasetCatalogObject.ts";
|
|
4
|
+
import type { SonarV3Config } from "../../../common/Config.ts";
|
|
5
|
+
export declare class DatasetCatalogReference extends BaseCatalogReference {
|
|
6
|
+
#private;
|
|
7
|
+
readonly type: `DATASET_${"DIRECT" | "PROMOTED" | "VIRTUAL"}`;
|
|
8
|
+
constructor(properties: BaseCatalogReferenceProperties & {
|
|
9
|
+
type: `DATASET_${"DIRECT" | "PROMOTED" | "VIRTUAL"}`;
|
|
10
|
+
}, retrieveByPath: RetrieveByPath, config: SonarV3Config);
|
|
11
|
+
catalogObject(): Promise<Result<DatasetCatalogObject, unknown>>;
|
|
12
|
+
tags(): Promise<import("ts-results-es").Err<unknown> | import("ts-results-es").Ok<import("../CatalogTags.ts").CatalogTags>>;
|
|
13
|
+
}
|
|
14
|
+
export declare const mappedType: {
|
|
15
|
+
readonly PHYSICAL_DATASET: "DATASET_PROMOTED";
|
|
16
|
+
readonly VIRTUAL_DATASET: "DATASET_VIRTUAL";
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { BaseCatalogReference, } from "./BaseCatalogReference.js";
|
|
17
|
+
import { getTags } from "./utils/getTags.js";
|
|
18
|
+
export class DatasetCatalogReference extends BaseCatalogReference {
|
|
19
|
+
type;
|
|
20
|
+
#retrieveByPath;
|
|
21
|
+
#config;
|
|
22
|
+
constructor(properties, retrieveByPath, config) {
|
|
23
|
+
super(properties);
|
|
24
|
+
this.type = properties.type;
|
|
25
|
+
this.#retrieveByPath = retrieveByPath;
|
|
26
|
+
this.#config = config;
|
|
27
|
+
}
|
|
28
|
+
catalogObject() {
|
|
29
|
+
return this.#retrieveByPath(this.path);
|
|
30
|
+
}
|
|
31
|
+
tags() {
|
|
32
|
+
return getTags(this.#config, this)();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export const mappedType = {
|
|
36
|
+
PHYSICAL_DATASET: "DATASET_PROMOTED",
|
|
37
|
+
VIRTUAL_DATASET: "DATASET_VIRTUAL",
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=DatasetCatalogReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetCatalogReference.js","sourceRoot":"","sources":["../../../../src/oss/catalog/CatalogReferences/DatasetCatalogReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,GAGrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,MAAM,OAAO,uBAAwB,SAAQ,oBAAoB;IACtD,IAAI,CAAiD;IAC9D,eAAe,CAAiB;IAChC,OAAO,CAAgB;IAEvB,YACE,UAEC,EACD,cAA8B,EAC9B,MAAqB;QAErB,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAmD,CAAC;IAC3F,CAAC;IAED,IAAI;QACF,OAAO,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;IACvC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;CAC1B,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 { Result } from \"ts-results-es\";\nimport {\n BaseCatalogReference,\n type BaseCatalogReferenceProperties,\n type RetrieveByPath,\n} from \"./BaseCatalogReference.ts\";\nimport type { DatasetCatalogObject } from \"../CatalogObjects/DatasetCatalogObject.ts\";\nimport { getTags } from \"./utils/getTags.ts\";\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\n\nexport class DatasetCatalogReference extends BaseCatalogReference {\n readonly type: `DATASET_${\"DIRECT\" | \"PROMOTED\" | \"VIRTUAL\"}`;\n #retrieveByPath: RetrieveByPath;\n #config: SonarV3Config;\n\n constructor(\n properties: BaseCatalogReferenceProperties & {\n type: `DATASET_${\"DIRECT\" | \"PROMOTED\" | \"VIRTUAL\"}`;\n },\n retrieveByPath: RetrieveByPath,\n config: SonarV3Config,\n ) {\n super(properties);\n this.type = properties.type;\n this.#retrieveByPath = retrieveByPath;\n this.#config = config;\n }\n\n catalogObject() {\n return this.#retrieveByPath(this.path) as Promise<Result<DatasetCatalogObject, unknown>>;\n }\n\n tags() {\n return getTags(this.#config, this)();\n }\n}\n\nexport const mappedType = {\n PHYSICAL_DATASET: \"DATASET_PROMOTED\",\n VIRTUAL_DATASET: \"DATASET_VIRTUAL\",\n} as const;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Result } from "ts-results-es";
|
|
2
|
+
import { BaseCatalogReference, type BaseCatalogReferenceProperties, type RetrieveByPath } from "./BaseCatalogReference.ts";
|
|
3
|
+
import type { FileCatalogObject } from "../CatalogObjects/FileCatalogObject.ts";
|
|
4
|
+
export declare class FileCatalogReference extends BaseCatalogReference {
|
|
5
|
+
#private;
|
|
6
|
+
readonly type = "FILE";
|
|
7
|
+
constructor(properties: BaseCatalogReferenceProperties, retrieveByPath: RetrieveByPath);
|
|
8
|
+
catalogObject(): Promise<Result<FileCatalogObject, unknown>>;
|
|
9
|
+
}
|