@dremio/js-sdk 0.16.0 → 0.16.1

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.
@@ -10,9 +10,11 @@ export declare const Dremio: (config: Config) => {
10
10
  } | undefined;
11
11
  origin: string;
12
12
  request: import("../common/Config.ts").RequestFn;
13
+ sonarV2Request: (path: string, init?: RequestInit) => import("ts-results-es").AsyncResult<Response, import("../common/HttpError.ts").HttpError>;
13
14
  sonarV3Request: (path: string, init?: RequestInit) => import("ts-results-es").AsyncResult<Response, import("../common/HttpError.ts").HttpError>;
14
15
  v3Request: (path: string, init?: RequestInit) => import("ts-results-es").AsyncResult<Response, import("../common/HttpError.ts").HttpError>;
15
16
  };
17
+ _sonarV2Request: (projectId: string) => (path: string, init?: RequestInit) => import("ts-results-es").AsyncResult<Response, import("../common/HttpError.ts").HttpError>;
16
18
  _sonarV3Request: (projectId: string) => (path: string, init?: RequestInit) => import("ts-results-es").AsyncResult<Response, import("../common/HttpError.ts").HttpError>;
17
19
  ai: import("./ai/AiResource.ts").AiResource;
18
20
  arctic: import("moize").Moized<(projectId: string) => import("./arctic/ArcticResource.ts").ArcticResource, Partial<{
@@ -264,6 +266,47 @@ export declare const Dremio: (config: Config) => {
264
266
  updateCacheForKey: import("moize").UpdateCacheForKey;
265
267
  updateExpire: boolean;
266
268
  }>>;
269
+ sql: import("moize").Moized<(projectId: string) => import("../oss/sql/SqlResource.ts").SqlResource, Partial<{
270
+ isDeepEqual: boolean;
271
+ isPromise: boolean;
272
+ isReact: boolean;
273
+ isSerialized: boolean;
274
+ isShallowEqual: boolean;
275
+ matchesArg: import("moize").IsEqual;
276
+ matchesKey: import("moize").IsMatchingKey;
277
+ maxAge: number;
278
+ maxArgs: number;
279
+ maxSize: number;
280
+ onCacheAdd: import("moize").OnCacheOperation<(projectId: string) => import("../oss/sql/SqlResource.ts").SqlResource>;
281
+ onCacheChange: import("moize").OnCacheOperation<(projectId: string) => import("../oss/sql/SqlResource.ts").SqlResource>;
282
+ onCacheHit: import("moize").OnCacheOperation<(projectId: string) => import("../oss/sql/SqlResource.ts").SqlResource>;
283
+ onExpire: import("moize").OnExpire;
284
+ profileName: string;
285
+ serializer: import("moize").Serialize;
286
+ transformArgs: import("moize").TransformKey;
287
+ updateCacheForKey: import("moize").UpdateCacheForKey;
288
+ updateExpire: boolean;
289
+ }> & Partial<{
290
+ isDeepEqual: boolean;
291
+ isPromise: boolean;
292
+ isReact: boolean;
293
+ isSerialized: boolean;
294
+ isShallowEqual: boolean;
295
+ matchesArg: import("moize").IsEqual;
296
+ matchesKey: import("moize").IsMatchingKey;
297
+ maxAge: number;
298
+ maxArgs: number;
299
+ maxSize: number;
300
+ onCacheAdd: import("moize").OnCacheOperation<import("moize").Moizeable>;
301
+ onCacheChange: import("moize").OnCacheOperation<import("moize").Moizeable>;
302
+ onCacheHit: import("moize").OnCacheOperation<import("moize").Moizeable>;
303
+ onExpire: import("moize").OnExpire;
304
+ profileName: string;
305
+ serializer: import("moize").Serialize;
306
+ transformArgs: import("moize").TransformKey;
307
+ updateCacheForKey: import("moize").UpdateCacheForKey;
308
+ updateExpire: boolean;
309
+ }>>;
267
310
  users: import("moize").Moized<(projectId: string) => import("./users/CloudUsersResource.ts").CloudUsersResource, Partial<{
268
311
  isDeepEqual: boolean;
269
312
  isPromise: boolean;
@@ -21,6 +21,12 @@ const getSonarResourceConfig = (config) => (projectId) => {
21
21
  logger: config.logger,
22
22
  origin: config.origin,
23
23
  request,
24
+ sonarV2Request: (path, init) => {
25
+ if (!projectId) {
26
+ throw new Error("projectId is required");
27
+ }
28
+ return request(new URL(`/ui/projects/${projectId}/${path}`, config.origin.replace("api", "app")).toString(), init);
29
+ },
24
30
  sonarV3Request: (path, init) => {
25
31
  if (!projectId) {
26
32
  throw new Error("projectId is required");
@@ -36,6 +42,7 @@ export const Dremio = (config) => {
36
42
  ...Resources(sonarResourceConfig),
37
43
  _request: createRequest(config),
38
44
  _sonarResourceConfig: sonarResourceConfig,
45
+ _sonarV2Request: (projectId) => sonarResourceConfig(projectId).sonarV2Request,
39
46
  _sonarV3Request: (projectId) => sonarResourceConfig(projectId).sonarV3Request,
40
47
  };
41
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cloud/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,sBAAsB,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,SAAkB,EAAE,EAAE;IACxE,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,OAAO;QACP,cAAc,EAAE,CAAC,IAAY,EAAE,IAAkB,EAAE,EAAE;YACnD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,CAAC;YACD,OAAO,OAAO,CAAC,gBAAgB,SAAS,IAAI,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;QAC5D,CAAC;QACD,SAAS,EAAE,CAAC,IAAY,EAAE,IAAkB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,IAAI,CAAC;KAC1B,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAAc,EAAE,EAAE;IACvC,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC3D,OAAO;QACL,GAAG,SAAS,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC;QAC/B,oBAAoB,EAAE,mBAAmB;QACzC,eAAe,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,cAAc;KACtF,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,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 { createRequest } from \"../common/createRequest.ts\";\nimport type { Config, ResourceConfig, SonarV3Config, V3Config } from \"../common/Config.ts\";\nimport { Resources } from \"./resources.ts\";\n\nconst getSonarResourceConfig = (config: Config) => (projectId?: string) => {\n const request = createRequest(config);\n return {\n logger: config.logger,\n origin: config.origin,\n request,\n sonarV3Request: (path: string, init?: RequestInit) => {\n if (!projectId) {\n throw new Error(\"projectId is required\");\n }\n return request(`/v0/projects/${projectId}/${path}`, init);\n },\n v3Request: (path: string, init?: RequestInit) => request(`/v0/${path}`, init),\n } satisfies ResourceConfig & SonarV3Config & V3Config;\n};\n\nexport const Dremio = (config: Config) => {\n const sonarResourceConfig = getSonarResourceConfig(config);\n return {\n ...Resources(sonarResourceConfig),\n _request: createRequest(config),\n _sonarResourceConfig: sonarResourceConfig,\n _sonarV3Request: (projectId: string) => sonarResourceConfig(projectId).sonarV3Request,\n };\n};\n\nexport * from \"../common/sharedExports.ts\";\nexport * from \"./credentials/index.ts\";\nexport * from \"./interfaces.ts\";\nexport * from \"./oauth/oauth.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cloud/index.ts"],"names":[],"mappings":"AAAA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GAAG,SAAS,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC;QAC/B,oBAAoB,EAAE,mBAAmB;QACzC,eAAe,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,cAAc;QACrF,eAAe,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,cAAc;KACtF,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,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 { createRequest } from \"../common/createRequest.ts\";\nimport type {\n Config,\n ResourceConfig,\n SonarV2Config,\n SonarV3Config,\n V3Config,\n} from \"../common/Config.ts\";\nimport { Resources } from \"./resources.ts\";\n\nconst getSonarResourceConfig = (config: Config) => (projectId?: string) => {\n const request = createRequest(config);\n return {\n logger: config.logger,\n origin: config.origin,\n request,\n sonarV2Request: (path: string, init?: RequestInit) => {\n if (!projectId) {\n throw new Error(\"projectId is required\");\n }\n return request(\n new URL(\n `/ui/projects/${projectId}/${path}`,\n config.origin.replace(\"api\", \"app\"),\n ).toString(),\n init,\n );\n },\n sonarV3Request: (path: string, init?: RequestInit) => {\n if (!projectId) {\n throw new Error(\"projectId is required\");\n }\n return request(`/v0/projects/${projectId}/${path}`, init);\n },\n v3Request: (path: string, init?: RequestInit) => request(`/v0/${path}`, init),\n } satisfies ResourceConfig & SonarV2Config & SonarV3Config & V3Config;\n};\n\nexport const Dremio = (config: Config) => {\n const sonarResourceConfig = getSonarResourceConfig(config);\n return {\n ...Resources(sonarResourceConfig),\n _request: createRequest(config),\n _sonarResourceConfig: sonarResourceConfig,\n _sonarV2Request: (projectId: string) => sonarResourceConfig(projectId).sonarV2Request,\n _sonarV3Request: (projectId: string) => sonarResourceConfig(projectId).sonarV3Request,\n };\n};\n\nexport * from \"../common/sharedExports.ts\";\nexport * from \"./credentials/index.ts\";\nexport * from \"./interfaces.ts\";\nexport * from \"./oauth/oauth.ts\";\n"]}
@@ -1,4 +1,4 @@
1
- import type { ResourceConfig, SonarV3Config, V3Config } from "../common/Config.ts";
1
+ import type { ResourceConfig, SonarV2Config, SonarV3Config, V3Config } from "../common/Config.ts";
2
2
  import { ArcticResource } from "./arctic/ArcticResource.ts";
3
3
  import { EnterpriseCatalogResource } from "../enterprise/catalog/EnterpriseCatalogResource.ts";
4
4
  import { RolesResource } from "../enterprise/roles/RolesResource.ts";
@@ -11,11 +11,12 @@ import moize from "moize";
11
11
  import { OAuthApplicationsResource } from "./oauth/OAuthApplicationsResource.ts";
12
12
  import { AiResource } from "./ai/AiResource.ts";
13
13
  import { OrganizationsResource } from "./organizations/OrganizationsResource.ts";
14
+ import { SqlResource } from "../oss/sql/SqlResource.ts";
14
15
  /**
15
16
  * @internal
16
17
  * @hidden
17
18
  */
18
- export declare const Resources: (config: (projectId?: string) => ResourceConfig & SonarV3Config & V3Config) => {
19
+ export declare const Resources: (config: (projectId?: string) => ResourceConfig & SonarV2Config & SonarV3Config & V3Config) => {
19
20
  ai: AiResource;
20
21
  arctic: moize.Moized<(projectId: string) => ArcticResource, Partial<{
21
22
  isDeepEqual: boolean;
@@ -266,6 +267,47 @@ export declare const Resources: (config: (projectId?: string) => ResourceConfig
266
267
  updateCacheForKey: moize.UpdateCacheForKey;
267
268
  updateExpire: boolean;
268
269
  }>>;
270
+ sql: moize.Moized<(projectId: string) => SqlResource, Partial<{
271
+ isDeepEqual: boolean;
272
+ isPromise: boolean;
273
+ isReact: boolean;
274
+ isSerialized: boolean;
275
+ isShallowEqual: boolean;
276
+ matchesArg: moize.IsEqual;
277
+ matchesKey: moize.IsMatchingKey;
278
+ maxAge: number;
279
+ maxArgs: number;
280
+ maxSize: number;
281
+ onCacheAdd: moize.OnCacheOperation<(projectId: string) => SqlResource>;
282
+ onCacheChange: moize.OnCacheOperation<(projectId: string) => SqlResource>;
283
+ onCacheHit: moize.OnCacheOperation<(projectId: string) => SqlResource>;
284
+ onExpire: moize.OnExpire;
285
+ profileName: string;
286
+ serializer: moize.Serialize;
287
+ transformArgs: moize.TransformKey;
288
+ updateCacheForKey: moize.UpdateCacheForKey;
289
+ updateExpire: boolean;
290
+ }> & Partial<{
291
+ isDeepEqual: boolean;
292
+ isPromise: boolean;
293
+ isReact: boolean;
294
+ isSerialized: boolean;
295
+ isShallowEqual: boolean;
296
+ matchesArg: moize.IsEqual;
297
+ matchesKey: moize.IsMatchingKey;
298
+ maxAge: number;
299
+ maxArgs: number;
300
+ maxSize: number;
301
+ onCacheAdd: moize.OnCacheOperation<moize.Moizeable>;
302
+ onCacheChange: moize.OnCacheOperation<moize.Moizeable>;
303
+ onCacheHit: moize.OnCacheOperation<moize.Moizeable>;
304
+ onExpire: moize.OnExpire;
305
+ profileName: string;
306
+ serializer: moize.Serialize;
307
+ transformArgs: moize.TransformKey;
308
+ updateCacheForKey: moize.UpdateCacheForKey;
309
+ updateExpire: boolean;
310
+ }>>;
269
311
  users: moize.Moized<(projectId: string) => CloudUsersResource, Partial<{
270
312
  isDeepEqual: boolean;
271
313
  isPromise: boolean;
@@ -25,6 +25,7 @@ import moize from "moize";
25
25
  import { OAuthApplicationsResource } from "./oauth/OAuthApplicationsResource.js";
26
26
  import { AiResource } from "./ai/AiResource.js";
27
27
  import { OrganizationsResource } from "./organizations/OrganizationsResource.js";
28
+ import { SqlResource } from "../oss/sql/SqlResource.js";
28
29
  /**
29
30
  * @internal
30
31
  * @hidden
@@ -40,6 +41,7 @@ export const Resources = (config) => ({
40
41
  projects: new ProjectsResource(config()),
41
42
  roles: moize.default((projectId) => new RolesResource(config(projectId))),
42
43
  scripts: moize.default((projectId) => new EnterpriseScriptsResource(config(projectId))),
44
+ sql: moize.default((projectId) => new SqlResource(config(projectId))),
43
45
  users: moize.default((projectId) => new CloudUsersResource(config(projectId))),
44
46
  });
45
47
  //# sourceMappingURL=resources.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/cloud/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,MAAyE,EACzE,EAAE,CAAC,CAAC;IACJ,EAAE,EAAE,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IACnF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/F,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IACrF,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,IAAI,yBAAyB,CAAC,MAAM,EAAE,CAAC;IAC1D,aAAa,EAAE,IAAI,qBAAqB,CAAC,MAAM,EAAE,CAAC;IAClD,QAAQ,EAAE,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IACjF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/F,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;CACvF,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, V3Config } from \"../common/Config.ts\";\nimport { ArcticResource } from \"./arctic/ArcticResource.ts\";\nimport { EnterpriseCatalogResource } from \"../enterprise/catalog/EnterpriseCatalogResource.ts\";\nimport { RolesResource } from \"../enterprise/roles/RolesResource.ts\";\nimport { EnterpriseScriptsResource } from \"../enterprise/scripts/EnterpriseScriptsResource.ts\";\nimport { EnginesResource } from \"./engines/EnginesResource.ts\";\nimport { ProjectsResource } from \"./projects/ProjectsResource.ts\";\nimport { CloudUsersResource } from \"./users/CloudUsersResource.ts\";\nimport { JobsResource } from \"../oss/jobs/JobsResource.ts\";\nimport moize from \"moize\";\nimport { OAuthApplicationsResource } from \"./oauth/OAuthApplicationsResource.ts\";\nimport { AiResource } from \"./ai/AiResource.ts\";\nimport { OrganizationsResource } from \"./organizations/OrganizationsResource.ts\";\n\n/**\n * @internal\n * @hidden\n */\nexport const Resources = (\n config: (projectId?: string) => ResourceConfig & SonarV3Config & V3Config,\n) => ({\n ai: new AiResource(config()),\n arctic: moize.default((projectId: string) => new ArcticResource(config(projectId))),\n catalog: moize.default((projectId: string) => new EnterpriseCatalogResource(config(projectId))),\n engines: moize.default((projectId: string) => new EnginesResource(config(projectId))),\n jobs: moize.default((projectId: string) => new JobsResource(config(projectId))),\n oauthApplications: new OAuthApplicationsResource(config()),\n organizations: new OrganizationsResource(config()),\n projects: new ProjectsResource(config()),\n roles: moize.default((projectId: string) => new RolesResource(config(projectId))),\n scripts: moize.default((projectId: string) => new EnterpriseScriptsResource(config(projectId))),\n users: moize.default((projectId: string) => new CloudUsersResource(config(projectId))),\n});\n"]}
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/cloud/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,cAAc,EA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,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,IAAI,yBAAyB,CAAC,MAAM,EAAE,CAAC;IAC1D,aAAa,EAAE,IAAI,qBAAqB,CAAC,MAAM,EAAE,CAAC;IAClD,QAAQ,EAAE,IAAI,gBAAgB,CAAC,MAAM,EAAE,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IACjF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,yBAAyB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/F,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7E,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;CACvF,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, SonarV2Config, SonarV3Config, V3Config } from \"../common/Config.ts\";\nimport { ArcticResource } from \"./arctic/ArcticResource.ts\";\nimport { EnterpriseCatalogResource } from \"../enterprise/catalog/EnterpriseCatalogResource.ts\";\nimport { RolesResource } from \"../enterprise/roles/RolesResource.ts\";\nimport { EnterpriseScriptsResource } from \"../enterprise/scripts/EnterpriseScriptsResource.ts\";\nimport { EnginesResource } from \"./engines/EnginesResource.ts\";\nimport { ProjectsResource } from \"./projects/ProjectsResource.ts\";\nimport { CloudUsersResource } from \"./users/CloudUsersResource.ts\";\nimport { JobsResource } from \"../oss/jobs/JobsResource.ts\";\nimport moize from \"moize\";\nimport { OAuthApplicationsResource } from \"./oauth/OAuthApplicationsResource.ts\";\nimport { AiResource } from \"./ai/AiResource.ts\";\nimport { OrganizationsResource } from \"./organizations/OrganizationsResource.ts\";\nimport { SqlResource } from \"../oss/sql/SqlResource.ts\";\n\n/**\n * @internal\n * @hidden\n */\nexport const Resources = (\n config: (projectId?: string) => ResourceConfig & SonarV2Config & SonarV3Config & V3Config,\n) => ({\n ai: new AiResource(config()),\n arctic: moize.default((projectId: string) => new ArcticResource(config(projectId))),\n catalog: moize.default((projectId: string) => new EnterpriseCatalogResource(config(projectId))),\n engines: moize.default((projectId: string) => new EnginesResource(config(projectId))),\n jobs: moize.default((projectId: string) => new JobsResource(config(projectId))),\n oauthApplications: new OAuthApplicationsResource(config()),\n organizations: new OrganizationsResource(config()),\n projects: new ProjectsResource(config()),\n roles: moize.default((projectId: string) => new RolesResource(config(projectId))),\n scripts: moize.default((projectId: string) => new EnterpriseScriptsResource(config(projectId))),\n sql: moize.default((projectId: string) => new SqlResource(config(projectId))),\n users: moize.default((projectId: string) => new CloudUsersResource(config(projectId))),\n});\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dremio/js-sdk",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "JavaScript library for the Dremio API",
5
5
  "keywords": [
6
6
  "dremio",