@dremio/js-sdk 0.57.1 → 0.59.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.
@@ -3,9 +3,14 @@ import { DatasetCatalogObject, type DatasetEntity } from "../../../oss/catalog/C
3
3
  import type { RetrieveByPath } from "../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts";
4
4
  import type { Grantee } from "../../Grantee.ts";
5
5
  import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.ts";
6
+ export type VizAttributes = {
7
+ name?: string;
8
+ spec?: string;
9
+ };
6
10
  export declare class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
7
11
  catalogReference: EnterpriseDatasetCatalogReference;
8
12
  readonly owner?: Grantee;
13
+ readonly vizAttributes?: VizAttributes;
9
14
  constructor(properties: EnterpriseDatasetCatalogObjectProperties);
10
15
  grants(): Promise<import("ts-results-es").Result<import("../CatalogReferences/retrieveCatalogGrants.ts").CatalogGrants<"DELETE" | "ALTER" | "INSERT" | "MANAGE GRANTS" | "OWNERSHIP" | "SELECT" | "TRUNCATE" | "UPDATE">, unknown>>;
11
16
  }
@@ -17,6 +22,7 @@ type EnterpriseDatasetEntity = DatasetEntity & {
17
22
  ownerId: string;
18
23
  ownerType: "ROLE" | "USER";
19
24
  };
25
+ vizAttributes?: VizAttributes;
20
26
  };
21
27
  export declare const enterpriseDatasetEntityToProperties: (entity: EnterpriseDatasetEntity, config: SonarV3Config, retrieveByPath: RetrieveByPath) => {
22
28
  catalogReference: EnterpriseDatasetCatalogReference;
@@ -24,6 +30,7 @@ export declare const enterpriseDatasetEntityToProperties: (entity: EnterpriseDat
24
30
  id: string;
25
31
  type: "ROLE" | "USER";
26
32
  } | undefined;
33
+ vizAttributes: VizAttributes | undefined;
27
34
  createdAt: Date;
28
35
  datasetVersion: string | undefined;
29
36
  fields: {
@@ -17,9 +17,11 @@ import { DatasetCatalogObject, datasetEntityToProperties, } from "../../../oss/c
17
17
  import { EnterpriseDatasetCatalogReference } from "../CatalogReferences/EnterpriseDatasetCatalogReference.js";
18
18
  export class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {
19
19
  owner;
20
+ vizAttributes;
20
21
  constructor(properties) {
21
22
  super(properties);
22
23
  this.owner = properties.owner;
24
+ this.vizAttributes = properties.vizAttributes;
23
25
  }
24
26
  grants() {
25
27
  return this.catalogReference.grants();
@@ -40,6 +42,7 @@ export const enterpriseDatasetEntityToProperties = (entity, config, retrieveByPa
40
42
  type: entity.owner.ownerType,
41
43
  }
42
44
  : undefined,
45
+ vizAttributes: entity.vizAttributes,
43
46
  };
44
47
  };
45
48
  //# sourceMappingURL=EnterpriseDatasetCatalogObject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnterpriseDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,6DAA6D,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAE9G,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IAE7D,KAAK,CAAW;IAEzB,YAAY,UAAoD;QAC9D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAUD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAA+B,EAC/B,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACpF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,iCAAiC,CACrD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\nimport {\n DatasetCatalogObject,\n datasetEntityToProperties,\n type DatasetEntity,\n} from \"../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\n\nimport { EnterpriseDatasetCatalogReference } from \"../CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\n\nexport class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {\n declare catalogReference: EnterpriseDatasetCatalogReference;\n readonly owner?: Grantee;\n\n constructor(properties: EnterpriseDatasetCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport type EnterpriseDatasetCatalogObjectProperties = ReturnType<\n typeof enterpriseDatasetEntityToProperties\n> & { owner?: Grantee };\n\ntype EnterpriseDatasetEntity = DatasetEntity & {\n owner?: { ownerId: string; ownerType: \"ROLE\" | \"USER\" };\n};\n\nexport const enterpriseDatasetEntityToProperties = (\n entity: EnterpriseDatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseDatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: datasetProperties.type,\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n };\n};\n"]}
1
+ {"version":3,"file":"EnterpriseDatasetCatalogObject.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,6DAA6D,CAAC;AAIrE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAO9G,MAAM,OAAO,8BAA+B,SAAQ,oBAAoB;IAE7D,KAAK,CAAW;IAChB,aAAa,CAAiB;IAEvC,YAAY,UAAoD;QAC9D,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;IAChD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;CACF;AAWD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,MAA+B,EAC/B,MAAqB,EACrB,cAA8B,EAC9B,EAAE;IACF,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACpF,OAAO;QACL,GAAG,iBAAiB;QACpB,gBAAgB,EAAE,IAAI,iCAAiC,CACrD;YACE,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,EACD,MAAM,EACN,cAAc,CACf;QACD,KAAK,EAAE,MAAM,CAAC,KAAK;YACjB,CAAC,CAAC;gBACE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBACxB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS;aAC7B;YACH,CAAC,CAAC,SAAS;QACb,aAAa,EAAE,MAAM,CAAC,aAAa;KACpC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { SonarV3Config } from \"../../../common/Config.ts\";\nimport {\n DatasetCatalogObject,\n datasetEntityToProperties,\n type DatasetEntity,\n} from \"../../../oss/catalog/CatalogObjects/DatasetCatalogObject.ts\";\nimport type { RetrieveByPath } from \"../../../oss/catalog/CatalogReferences/BaseCatalogReference.ts\";\nimport type { Grantee } from \"../../Grantee.ts\";\n\nimport { EnterpriseDatasetCatalogReference } from \"../CatalogReferences/EnterpriseDatasetCatalogReference.ts\";\n\nexport type VizAttributes = {\n name?: string;\n spec?: string;\n};\n\nexport class EnterpriseDatasetCatalogObject extends DatasetCatalogObject {\n declare catalogReference: EnterpriseDatasetCatalogReference;\n readonly owner?: Grantee;\n readonly vizAttributes?: VizAttributes;\n\n constructor(properties: EnterpriseDatasetCatalogObjectProperties) {\n super(properties);\n this.owner = properties.owner;\n this.vizAttributes = properties.vizAttributes;\n }\n\n grants() {\n return this.catalogReference.grants();\n }\n}\n\nexport type EnterpriseDatasetCatalogObjectProperties = ReturnType<\n typeof enterpriseDatasetEntityToProperties\n> & { owner?: Grantee };\n\ntype EnterpriseDatasetEntity = DatasetEntity & {\n owner?: { ownerId: string; ownerType: \"ROLE\" | \"USER\" };\n vizAttributes?: VizAttributes;\n};\n\nexport const enterpriseDatasetEntityToProperties = (\n entity: EnterpriseDatasetEntity,\n config: SonarV3Config,\n retrieveByPath: RetrieveByPath,\n) => {\n const datasetProperties = datasetEntityToProperties(entity, config, retrieveByPath);\n return {\n ...datasetProperties,\n catalogReference: new EnterpriseDatasetCatalogReference(\n {\n id: entity.id,\n path: entity.path,\n type: datasetProperties.type,\n },\n config,\n retrieveByPath,\n ),\n owner: entity.owner\n ? {\n id: entity.owner.ownerId,\n type: entity.owner.ownerType,\n }\n : undefined,\n vizAttributes: entity.vizAttributes,\n };\n};\n"]}
@@ -4718,9 +4718,11 @@ var DremioCloud = (() => {
4718
4718
  // dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js
4719
4719
  var EnterpriseDatasetCatalogObject = class extends DatasetCatalogObject {
4720
4720
  owner;
4721
+ vizAttributes;
4721
4722
  constructor(properties) {
4722
4723
  super(properties);
4723
4724
  this.owner = properties.owner;
4725
+ this.vizAttributes = properties.vizAttributes;
4724
4726
  }
4725
4727
  grants() {
4726
4728
  return this.catalogReference.grants();
@@ -4738,7 +4740,8 @@ var DremioCloud = (() => {
4738
4740
  owner: entity.owner ? {
4739
4741
  id: entity.owner.ownerId,
4740
4742
  type: entity.owner.ownerType
4741
- } : void 0
4743
+ } : void 0,
4744
+ vizAttributes: entity.vizAttributes
4742
4745
  };
4743
4746
  };
4744
4747
 
@@ -4708,9 +4708,11 @@ var DremioEnterprise = (() => {
4708
4708
  // dist/enterprise/catalog/CatalogObjects/EnterpriseDatasetCatalogObject.js
4709
4709
  var EnterpriseDatasetCatalogObject = class extends DatasetCatalogObject {
4710
4710
  owner;
4711
+ vizAttributes;
4711
4712
  constructor(properties) {
4712
4713
  super(properties);
4713
4714
  this.owner = properties.owner;
4715
+ this.vizAttributes = properties.vizAttributes;
4714
4716
  }
4715
4717
  grants() {
4716
4718
  return this.catalogReference.grants();
@@ -4728,7 +4730,8 @@ var DremioEnterprise = (() => {
4728
4730
  owner: entity.owner ? {
4729
4731
  id: entity.owner.ownerId,
4730
4732
  type: entity.owner.ownerType
4731
- } : void 0
4733
+ } : void 0,
4734
+ vizAttributes: entity.vizAttributes
4732
4735
  };
4733
4736
  };
4734
4737
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dremio/js-sdk",
3
- "version": "0.57.1",
3
+ "version": "0.59.0",
4
4
  "description": "JavaScript library for the Dremio API",
5
5
  "keywords": [
6
6
  "dremio",