@dremio/js-sdk 0.11.1 → 0.12.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/dist/cloud/index.d.ts +1 -0
- package/dist/cloud/interfaces.d.ts +2 -1
- package/dist/cloud/interfaces.js.map +1 -1
- package/dist/cloud/organizations/Organization.d.ts +13 -0
- package/dist/cloud/organizations/Organization.js +46 -0
- package/dist/cloud/organizations/Organization.js.map +1 -0
- package/dist/cloud/organizations/OrganizationsResource.d.ts +8 -0
- package/dist/cloud/organizations/OrganizationsResource.js +28 -0
- package/dist/cloud/organizations/OrganizationsResource.js.map +1 -0
- package/dist/cloud/organizations/organizationEntityToProperties.d.ts +34 -0
- package/dist/cloud/organizations/organizationEntityToProperties.js +27 -0
- package/dist/cloud/organizations/organizationEntityToProperties.js.map +1 -0
- package/dist/cloud/resources.d.ts +2 -0
- package/dist/cloud/resources.js +2 -0
- package/dist/cloud/resources.js.map +1 -1
- package/package.json +1 -1
package/dist/cloud/index.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export declare const Dremio: (config: Config) => {
|
|
|
180
180
|
updateExpire: boolean;
|
|
181
181
|
}>>;
|
|
182
182
|
oauthApplications: import("./oauth/OAuthApplicationsResource.ts").OAuthApplicationsResource;
|
|
183
|
+
organizations: import("./organizations/OrganizationsResource.ts").OrganizationsResource;
|
|
183
184
|
projects: import("./projects/ProjectsResource.ts").ProjectsResource;
|
|
184
185
|
roles: import("moize").Moized<(projectId: string) => import("../enterprise/roles/RolesResource.ts").RolesResource, Partial<{
|
|
185
186
|
isDeepEqual: boolean;
|
|
@@ -2,6 +2,7 @@ import type { ArcticCatalog } from "./arctic/ArcticCatalog.ts";
|
|
|
2
2
|
import type { CloudUser } from "./users/CloudUser.ts";
|
|
3
3
|
import type { Engine } from "./engines/Engine.ts";
|
|
4
4
|
import type { Project } from "./projects/Project.ts";
|
|
5
|
+
import type { Organization } from "./organizations/Organization.ts";
|
|
5
6
|
import type { Job, Reflection } from "../oss/interfaces.ts";
|
|
6
7
|
import type { EnterpriseScript } from "../enterprise/scripts/EnterpriseScript.ts";
|
|
7
8
|
import type { ReflectionSummary } from "../enterprise/reflections/ReflectionSummary.ts";
|
|
@@ -9,6 +10,6 @@ import type { Role } from "../enterprise/roles/Role.ts";
|
|
|
9
10
|
import type { BranchHeadVersionReference, BareCommitVersionReference, TagVersionReference, VersionReference } from "../oss/catalog/VersionReference.ts";
|
|
10
11
|
import type { JobResultsSchema } from "../oss/jobs/utils/JobResultsResponse.ts";
|
|
11
12
|
export type { ArcticCatalog, CloudUser, Engine, Project };
|
|
12
|
-
export type { Job, JobResultsSchema, Reflection, EnterpriseScript, ReflectionSummary, Role, BranchHeadVersionReference, BareCommitVersionReference, TagVersionReference, VersionReference, };
|
|
13
|
+
export type { Job, JobResultsSchema, Reflection, EnterpriseScript, ReflectionSummary, Role, BranchHeadVersionReference, BareCommitVersionReference, TagVersionReference, VersionReference, Organization, };
|
|
13
14
|
export * from "../enterprise/catalog/CatalogObjects/index.ts";
|
|
14
15
|
export * from "../enterprise/catalog/CatalogReferences/index.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/cloud/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/cloud/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,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 { ArcticCatalog } from \"./arctic/ArcticCatalog.ts\";\nimport type { CloudUser } from \"./users/CloudUser.ts\";\nimport type { Engine } from \"./engines/Engine.ts\";\nimport type { Project } from \"./projects/Project.ts\";\nimport type { Organization } from \"./organizations/Organization.ts\";\nimport type { Job, Reflection } from \"../oss/interfaces.ts\";\nimport type { EnterpriseScript } from \"../enterprise/scripts/EnterpriseScript.ts\";\nimport type { ReflectionSummary } from \"../enterprise/reflections/ReflectionSummary.ts\";\nimport type { Role } from \"../enterprise/roles/Role.ts\";\nimport type {\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n} from \"../oss/catalog/VersionReference.ts\";\nimport type { JobResultsSchema } from \"../oss/jobs/utils/JobResultsResponse.ts\";\n\nexport type { ArcticCatalog, CloudUser, Engine, Project };\nexport type {\n Job,\n JobResultsSchema,\n Reflection,\n EnterpriseScript,\n ReflectionSummary,\n Role,\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n Organization,\n};\nexport * from \"../enterprise/catalog/CatalogObjects/index.ts\";\nexport * from \"../enterprise/catalog/CatalogReferences/index.ts\";\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OrganizationProperties } from "./organizationEntityToProperties.ts";
|
|
2
|
+
export declare class Organization implements OrganizationProperties {
|
|
3
|
+
createdAt: OrganizationProperties["createdAt"];
|
|
4
|
+
createdBy: OrganizationProperties["createdBy"];
|
|
5
|
+
defaultProjectId: OrganizationProperties["defaultProjectId"];
|
|
6
|
+
id: OrganizationProperties["id"];
|
|
7
|
+
modifiedAt: OrganizationProperties["modifiedAt"];
|
|
8
|
+
modifiedBy: OrganizationProperties["modifiedBy"];
|
|
9
|
+
name: OrganizationProperties["name"];
|
|
10
|
+
state: OrganizationProperties["state"];
|
|
11
|
+
constructor(properties: OrganizationProperties);
|
|
12
|
+
get settled(): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 Organization {
|
|
17
|
+
createdAt;
|
|
18
|
+
createdBy;
|
|
19
|
+
defaultProjectId;
|
|
20
|
+
id;
|
|
21
|
+
modifiedAt;
|
|
22
|
+
modifiedBy;
|
|
23
|
+
name;
|
|
24
|
+
state;
|
|
25
|
+
constructor(properties) {
|
|
26
|
+
this.createdAt = properties.createdAt;
|
|
27
|
+
this.createdBy = properties.createdBy;
|
|
28
|
+
this.defaultProjectId = properties.defaultProjectId;
|
|
29
|
+
this.id = properties.id;
|
|
30
|
+
this.modifiedAt = properties.modifiedAt;
|
|
31
|
+
this.modifiedBy = properties.modifiedBy;
|
|
32
|
+
this.name = properties.name;
|
|
33
|
+
this.state = properties.state;
|
|
34
|
+
}
|
|
35
|
+
get settled() {
|
|
36
|
+
switch (this.state) {
|
|
37
|
+
case "ACTIVE":
|
|
38
|
+
case "DELETED":
|
|
39
|
+
case "FAILED":
|
|
40
|
+
case "INVALID":
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../../src/cloud/organizations/Organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAO,YAAY;IACvB,SAAS,CAAsC;IAC/C,SAAS,CAAsC;IAC/C,gBAAgB,CAA6C;IAC7D,EAAE,CAA+B;IACjC,UAAU,CAAuC;IACjD,UAAU,CAAuC;IACjD,IAAI,CAAiC;IACrC,KAAK,CAAkC;IAEvC,YAAY,UAAkC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,IAAI,OAAO;QACT,QAAQ,IAAI,CAAC,KAAK,EAAE,CAAC;YACnB,KAAK,QAAQ,CAAC;YACd,KAAK,SAAS,CAAC;YACf,KAAK,QAAQ,CAAC;YACd,KAAK,SAAS;gBACZ,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,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 { OrganizationProperties } from \"./organizationEntityToProperties.ts\";\n\nexport class Organization implements OrganizationProperties {\n createdAt: OrganizationProperties[\"createdAt\"];\n createdBy: OrganizationProperties[\"createdBy\"];\n defaultProjectId: OrganizationProperties[\"defaultProjectId\"];\n id: OrganizationProperties[\"id\"];\n modifiedAt: OrganizationProperties[\"modifiedAt\"];\n modifiedBy: OrganizationProperties[\"modifiedBy\"];\n name: OrganizationProperties[\"name\"];\n state: OrganizationProperties[\"state\"];\n\n constructor(properties: OrganizationProperties) {\n this.createdAt = properties.createdAt;\n this.createdBy = properties.createdBy;\n this.defaultProjectId = properties.defaultProjectId;\n this.id = properties.id;\n this.modifiedAt = properties.modifiedAt;\n this.modifiedBy = properties.modifiedBy;\n this.name = properties.name;\n this.state = properties.state;\n }\n\n get settled() {\n switch (this.state) {\n case \"ACTIVE\":\n case \"DELETED\":\n case \"FAILED\":\n case \"INVALID\":\n return true;\n }\n return false;\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ResourceConfig, V3Config } from "../../common/Config.ts";
|
|
2
|
+
import { Organization } from "./Organization.ts";
|
|
3
|
+
import { type OrganizationEntity } from "./organizationEntityToProperties.ts";
|
|
4
|
+
export declare class OrganizationsResource {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: ResourceConfig & V3Config);
|
|
7
|
+
_organizationFromEntity(entity: OrganizationEntity): Organization;
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Organization } from "./Organization.js";
|
|
17
|
+
import { organizationEntityToProperties, } from "./organizationEntityToProperties.js";
|
|
18
|
+
export class OrganizationsResource {
|
|
19
|
+
// eslint-disable-next-line no-unused-private-class-members
|
|
20
|
+
#config;
|
|
21
|
+
constructor(config) {
|
|
22
|
+
this.#config = config;
|
|
23
|
+
}
|
|
24
|
+
_organizationFromEntity(entity) {
|
|
25
|
+
return new Organization(organizationEntityToProperties(entity));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=OrganizationsResource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationsResource.js","sourceRoot":"","sources":["../../../src/cloud/organizations/OrganizationsResource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,8BAA8B,GAE/B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,OAAO,qBAAqB;IAChC,2DAA2D;IAClD,OAAO,CAA4B;IAE5C,YAAY,MAAiC;QAC3C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED,uBAAuB,CAAC,MAA0B;QAChD,OAAO,IAAI,YAAY,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,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 { ResourceConfig, V3Config } from \"../../common/Config.ts\";\nimport { Organization } from \"./Organization.ts\";\nimport {\n organizationEntityToProperties,\n type OrganizationEntity,\n} from \"./organizationEntityToProperties.ts\";\n\nexport class OrganizationsResource {\n // eslint-disable-next-line no-unused-private-class-members\n readonly #config: ResourceConfig & V3Config;\n\n constructor(config: ResourceConfig & V3Config) {\n this.#config = config;\n }\n\n _organizationFromEntity(entity: OrganizationEntity) {\n return new Organization(organizationEntityToProperties(entity));\n }\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
|
+
export declare const organizationEntityToProperties: (entity: OrganizationEntity) => {
|
|
3
|
+
createdAt: Temporal.Instant;
|
|
4
|
+
createdBy: string;
|
|
5
|
+
defaultProjectId: string;
|
|
6
|
+
id: string;
|
|
7
|
+
modifiedAt: Temporal.Instant;
|
|
8
|
+
modifiedBy: string;
|
|
9
|
+
name: string;
|
|
10
|
+
state: "ACTIVE" | "FAILED" | "INVALID" | "DELETED" | "CFT_STARTED" | "CFT_COMPLETE" | "COMMISSIONING" | "MARK_ROLLBACK" | "FIRST_CLOUD_ADDED" | "ROLLBACK_COMPLETED" | "CFT_FINISH_TIMEOUT";
|
|
11
|
+
};
|
|
12
|
+
export type OrganizationProperties = ReturnType<typeof organizationEntityToProperties>;
|
|
13
|
+
export type OrganizationEntity = {
|
|
14
|
+
auditDestinationCloudType: "AWS" | "AZURE";
|
|
15
|
+
auditDestinationCredentials: {
|
|
16
|
+
accessKeyId: string;
|
|
17
|
+
secretAccessKey: string;
|
|
18
|
+
type: "ACCESS_KEY" | "AZURE_ACTIVE_DIRECTORY" | "IAM_ROLE";
|
|
19
|
+
};
|
|
20
|
+
auditDestinationPath: string;
|
|
21
|
+
cloudTags: {
|
|
22
|
+
key: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
createdAt: string;
|
|
26
|
+
createdBy: string;
|
|
27
|
+
defaultProjectId: string;
|
|
28
|
+
id: string;
|
|
29
|
+
isCreatedWithCFT: boolean;
|
|
30
|
+
modifiedAt: string;
|
|
31
|
+
modifiedBy: string;
|
|
32
|
+
name: string;
|
|
33
|
+
state: "ACTIVE" | "FAILED" | "DELETED" | "INVALID" | "CFT_STARTED" | "CFT_COMPLETE" | "COMMISSIONING" | "MARK_ROLLBACK" | "FIRST_CLOUD_ADDED" | "ROLLBACK_COMPLETED" | "CFT_FINISH_TIMEOUT";
|
|
34
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 } from "temporal-polyfill";
|
|
17
|
+
export const organizationEntityToProperties = (entity) => ({
|
|
18
|
+
createdAt: Temporal.Instant.from(entity.createdAt),
|
|
19
|
+
createdBy: entity.createdBy,
|
|
20
|
+
defaultProjectId: entity.defaultProjectId,
|
|
21
|
+
id: entity.id,
|
|
22
|
+
modifiedAt: Temporal.Instant.from(entity.modifiedAt),
|
|
23
|
+
modifiedBy: entity.modifiedBy,
|
|
24
|
+
name: entity.name,
|
|
25
|
+
state: entity.state,
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=organizationEntityToProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationEntityToProperties.js","sourceRoot":"","sources":["../../../src/cloud/organizations/organizationEntityToProperties.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,MAA0B,EAAE,EAAE,CAAC,CAAC;IAC7E,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAClD,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;IACzC,EAAE,EAAE,MAAM,CAAC,EAAE;IACb,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC,UAAU;IAC7B,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,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 { Temporal } from \"temporal-polyfill\";\n\nexport const organizationEntityToProperties = (entity: OrganizationEntity) => ({\n createdAt: Temporal.Instant.from(entity.createdAt),\n createdBy: entity.createdBy,\n defaultProjectId: entity.defaultProjectId,\n id: entity.id,\n modifiedAt: Temporal.Instant.from(entity.modifiedAt),\n modifiedBy: entity.modifiedBy,\n name: entity.name,\n state: entity.state,\n});\n\nexport type OrganizationProperties = ReturnType<typeof organizationEntityToProperties>;\n\nexport type OrganizationEntity = {\n auditDestinationCloudType: \"AWS\" | \"AZURE\";\n auditDestinationCredentials: {\n accessKeyId: string;\n secretAccessKey: string;\n type: \"ACCESS_KEY\" | \"AZURE_ACTIVE_DIRECTORY\" | \"IAM_ROLE\";\n };\n auditDestinationPath: string;\n cloudTags: { key: string; value: string }[];\n createdAt: string;\n createdBy: string;\n defaultProjectId: string;\n id: string;\n isCreatedWithCFT: boolean;\n modifiedAt: string;\n modifiedBy: string;\n name: string;\n state:\n | \"ACTIVE\"\n | \"FAILED\"\n | \"DELETED\"\n | \"INVALID\"\n | \"CFT_STARTED\"\n | \"CFT_COMPLETE\"\n | \"COMMISSIONING\"\n | \"MARK_ROLLBACK\"\n | \"FIRST_CLOUD_ADDED\"\n | \"ROLLBACK_COMPLETED\"\n | \"CFT_FINISH_TIMEOUT\";\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import { JobsResource } from "../oss/jobs/JobsResource.ts";
|
|
|
10
10
|
import moize from "moize";
|
|
11
11
|
import { OAuthApplicationsResource } from "./oauth/OAuthApplicationsResource.ts";
|
|
12
12
|
import { AiResource } from "./ai/AiResource.ts";
|
|
13
|
+
import { OrganizationsResource } from "./organizations/OrganizationsResource.ts";
|
|
13
14
|
/**
|
|
14
15
|
* @internal
|
|
15
16
|
* @hidden
|
|
@@ -181,6 +182,7 @@ export declare const Resources: (config: (projectId?: string) => ResourceConfig
|
|
|
181
182
|
updateExpire: boolean;
|
|
182
183
|
}>>;
|
|
183
184
|
oauthApplications: OAuthApplicationsResource;
|
|
185
|
+
organizations: OrganizationsResource;
|
|
184
186
|
projects: ProjectsResource;
|
|
185
187
|
roles: moize.Moized<(projectId: string) => RolesResource, Partial<{
|
|
186
188
|
isDeepEqual: boolean;
|
package/dist/cloud/resources.js
CHANGED
|
@@ -24,6 +24,7 @@ import { JobsResource } from "../oss/jobs/JobsResource.js";
|
|
|
24
24
|
import moize from "moize";
|
|
25
25
|
import { OAuthApplicationsResource } from "./oauth/OAuthApplicationsResource.js";
|
|
26
26
|
import { AiResource } from "./ai/AiResource.js";
|
|
27
|
+
import { OrganizationsResource } from "./organizations/OrganizationsResource.js";
|
|
27
28
|
/**
|
|
28
29
|
* @internal
|
|
29
30
|
* @hidden
|
|
@@ -35,6 +36,7 @@ export const Resources = (config) => ({
|
|
|
35
36
|
engines: moize.default((projectId) => new EnginesResource(config(projectId))),
|
|
36
37
|
jobs: moize.default((projectId) => new JobsResource(config(projectId))),
|
|
37
38
|
oauthApplications: new OAuthApplicationsResource(config()),
|
|
39
|
+
organizations: new OrganizationsResource(config()),
|
|
38
40
|
projects: new ProjectsResource(config()),
|
|
39
41
|
roles: moize.default((projectId) => new RolesResource(config(projectId))),
|
|
40
42
|
scripts: moize.default((projectId) => new EnterpriseScriptsResource(config(projectId))),
|
|
@@ -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;
|
|
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"]}
|