@ryan-pip/pulumi_astronomer 0.2.8 → 1.2.3-alpha.4
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/agentToken.d.ts +96 -0
- package/agentToken.d.ts.map +1 -0
- package/agentToken.js +88 -0
- package/agentToken.js.map +1 -0
- package/alert.d.ts +190 -0
- package/alert.d.ts.map +1 -0
- package/alert.js +121 -0
- package/alert.js.map +1 -0
- package/apiToken.d.ts +7 -0
- package/apiToken.d.ts.map +1 -0
- package/apiToken.js +50 -27
- package/apiToken.js.map +1 -1
- package/cluster.d.ts +76 -50
- package/cluster.d.ts.map +1 -0
- package/cluster.js +76 -88
- package/cluster.js.map +1 -1
- package/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +1 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +28 -6
- package/config/vars.js.map +1 -1
- package/customRole.d.ts +162 -0
- package/customRole.d.ts.map +1 -0
- package/customRole.js +125 -0
- package/customRole.js.map +1 -0
- package/deployment.d.ts +50 -16
- package/deployment.d.ts.map +1 -0
- package/deployment.js +114 -87
- package/deployment.js.map +1 -1
- package/getAlert.d.ts +118 -0
- package/getAlert.d.ts.map +1 -0
- package/getAlert.js +75 -0
- package/getAlert.js.map +1 -0
- package/getAlerts.d.ts +102 -0
- package/getAlerts.d.ts.map +1 -0
- package/getAlerts.js +117 -0
- package/getAlerts.js.map +1 -0
- package/getApiToken.d.ts +3 -2
- package/getApiToken.d.ts.map +1 -0
- package/getApiToken.js +28 -5
- package/getApiToken.js.map +1 -1
- package/getApiTokens.d.ts +3 -2
- package/getApiTokens.d.ts.map +1 -0
- package/getApiTokens.js +28 -5
- package/getApiTokens.js.map +1 -1
- package/getCluster.d.ts +28 -3
- package/getCluster.d.ts.map +1 -0
- package/getCluster.js +28 -5
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +12 -2
- package/getClusterOptions.d.ts.map +1 -0
- package/getClusterOptions.js +28 -5
- package/getClusterOptions.js.map +1 -1
- package/getClusters.d.ts +12 -2
- package/getClusters.d.ts.map +1 -0
- package/getClusters.js +28 -5
- package/getClusters.js.map +1 -1
- package/getCustomRole.d.ts +98 -0
- package/getCustomRole.d.ts.map +1 -0
- package/getCustomRole.js +75 -0
- package/getCustomRole.js.map +1 -0
- package/getDeployment.d.ts +10 -5
- package/getDeployment.d.ts.map +1 -0
- package/getDeployment.js +28 -5
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +6 -5
- package/getDeploymentOptions.d.ts.map +1 -0
- package/getDeploymentOptions.js +28 -5
- package/getDeploymentOptions.js.map +1 -1
- package/getDeployments.d.ts +3 -2
- package/getDeployments.d.ts.map +1 -0
- package/getDeployments.js +28 -5
- package/getDeployments.js.map +1 -1
- package/getNotificationChannel.d.ts +114 -0
- package/getNotificationChannel.d.ts.map +1 -0
- package/getNotificationChannel.js +75 -0
- package/getNotificationChannel.js.map +1 -0
- package/getNotificationChannels.d.ts +50 -0
- package/getNotificationChannels.d.ts.map +1 -0
- package/getNotificationChannels.js +65 -0
- package/getNotificationChannels.js.map +1 -0
- package/getOrganization.d.ts +3 -2
- package/getOrganization.d.ts.map +1 -0
- package/getOrganization.js +28 -5
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +11 -2
- package/getTeam.d.ts.map +1 -0
- package/getTeam.js +28 -5
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +27 -18
- package/getTeams.d.ts.map +1 -0
- package/getTeams.js +52 -21
- package/getTeams.js.map +1 -1
- package/getUser.d.ts +7 -2
- package/getUser.d.ts.map +1 -0
- package/getUser.js +28 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +27 -18
- package/getUsers.d.ts.map +1 -0
- package/getUsers.js +52 -21
- package/getUsers.js.map +1 -1
- package/getWorkspace.d.ts +3 -2
- package/getWorkspace.d.ts.map +1 -0
- package/getWorkspace.js +28 -5
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +39 -30
- package/getWorkspaces.d.ts.map +1 -0
- package/getWorkspaces.js +64 -33
- package/getWorkspaces.js.map +1 -1
- package/hybridClusterWorkspaceAuthorization.d.ts +1 -19
- package/hybridClusterWorkspaceAuthorization.d.ts.map +1 -0
- package/hybridClusterWorkspaceAuthorization.js +34 -30
- package/hybridClusterWorkspaceAuthorization.js.map +1 -1
- package/index.d.ts +32 -3
- package/index.d.ts.map +1 -0
- package/index.js +76 -9
- package/index.js.map +1 -1
- package/notificationChannel.d.ts +170 -0
- package/notificationChannel.d.ts.map +1 -0
- package/notificationChannel.js +111 -0
- package/notificationChannel.js.map +1 -0
- package/package.json +4 -3
- package/provider.d.ts +18 -3
- package/provider.d.ts.map +1 -0
- package/provider.js +39 -12
- package/provider.js.map +1 -1
- package/team.d.ts +20 -7
- package/team.d.ts.map +1 -0
- package/team.js +51 -26
- package/team.js.map +1 -1
- package/teamMembership.d.ts +66 -0
- package/teamMembership.d.ts.map +1 -0
- package/teamMembership.js +85 -0
- package/teamMembership.js.map +1 -0
- package/teamRoles.d.ts +20 -7
- package/teamRoles.d.ts.map +1 -0
- package/teamRoles.js +42 -17
- package/teamRoles.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +26 -3
- package/types/index.js.map +1 -1
- package/types/input.d.ts +316 -3
- package/types/input.d.ts.map +1 -0
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +944 -11
- package/types/output.d.ts.map +1 -0
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/userInvite.d.ts +2 -1
- package/userInvite.d.ts.map +1 -0
- package/userInvite.js +41 -18
- package/userInvite.js.map +1 -1
- package/userRoles.d.ts +20 -7
- package/userRoles.d.ts.map +1 -0
- package/userRoles.js +42 -17
- package/userRoles.js.map +1 -1
- package/utilities.d.ts +1 -4
- package/utilities.d.ts.map +1 -0
- package/utilities.js +43 -30
- package/utilities.js.map +1 -1
- package/workspace.d.ts +1 -16
- package/workspace.d.ts.map +1 -0
- package/workspace.js +41 -34
- package/workspace.js.map +1 -1
- package/package.json.bak +0 -29
package/team.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.Team = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
|
-
*
|
|
32
|
+
* Creates and manages a team and its members. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
|
|
10
33
|
*/
|
|
11
34
|
class Team extends pulumi.CustomResource {
|
|
12
35
|
/**
|
|
@@ -19,8 +42,10 @@ class Team extends pulumi.CustomResource {
|
|
|
19
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
43
|
*/
|
|
21
44
|
static get(name, id, state, opts) {
|
|
22
|
-
return new Team(name, state,
|
|
45
|
+
return new Team(name, state, { ...opts, id: id });
|
|
23
46
|
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'astronomer:index/team:Team';
|
|
24
49
|
/**
|
|
25
50
|
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
26
51
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -36,30 +61,32 @@ class Team extends pulumi.CustomResource {
|
|
|
36
61
|
opts = opts || {};
|
|
37
62
|
if (opts.id) {
|
|
38
63
|
const state = argsOrState;
|
|
39
|
-
resourceInputs["createdAt"] = state
|
|
40
|
-
resourceInputs["createdBy"] = state
|
|
41
|
-
resourceInputs["
|
|
42
|
-
resourceInputs["
|
|
43
|
-
resourceInputs["
|
|
44
|
-
resourceInputs["
|
|
45
|
-
resourceInputs["
|
|
46
|
-
resourceInputs["
|
|
47
|
-
resourceInputs["
|
|
48
|
-
resourceInputs["
|
|
49
|
-
resourceInputs["
|
|
50
|
-
resourceInputs["
|
|
64
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
65
|
+
resourceInputs["createdBy"] = state?.createdBy;
|
|
66
|
+
resourceInputs["dagRoles"] = state?.dagRoles;
|
|
67
|
+
resourceInputs["deploymentRoles"] = state?.deploymentRoles;
|
|
68
|
+
resourceInputs["description"] = state?.description;
|
|
69
|
+
resourceInputs["isIdpManaged"] = state?.isIdpManaged;
|
|
70
|
+
resourceInputs["memberIds"] = state?.memberIds;
|
|
71
|
+
resourceInputs["name"] = state?.name;
|
|
72
|
+
resourceInputs["organizationRole"] = state?.organizationRole;
|
|
73
|
+
resourceInputs["rolesCount"] = state?.rolesCount;
|
|
74
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
75
|
+
resourceInputs["updatedBy"] = state?.updatedBy;
|
|
76
|
+
resourceInputs["workspaceRoles"] = state?.workspaceRoles;
|
|
51
77
|
}
|
|
52
78
|
else {
|
|
53
79
|
const args = argsOrState;
|
|
54
|
-
if (
|
|
80
|
+
if (args?.organizationRole === undefined && !opts.urn) {
|
|
55
81
|
throw new Error("Missing required property 'organizationRole'");
|
|
56
82
|
}
|
|
57
|
-
resourceInputs["
|
|
58
|
-
resourceInputs["
|
|
59
|
-
resourceInputs["
|
|
60
|
-
resourceInputs["
|
|
61
|
-
resourceInputs["
|
|
62
|
-
resourceInputs["
|
|
83
|
+
resourceInputs["dagRoles"] = args?.dagRoles;
|
|
84
|
+
resourceInputs["deploymentRoles"] = args?.deploymentRoles;
|
|
85
|
+
resourceInputs["description"] = args?.description;
|
|
86
|
+
resourceInputs["memberIds"] = args?.memberIds;
|
|
87
|
+
resourceInputs["name"] = args?.name;
|
|
88
|
+
resourceInputs["organizationRole"] = args?.organizationRole;
|
|
89
|
+
resourceInputs["workspaceRoles"] = args?.workspaceRoles;
|
|
63
90
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
64
91
|
resourceInputs["createdBy"] = undefined /*out*/;
|
|
65
92
|
resourceInputs["isIdpManaged"] = undefined /*out*/;
|
|
@@ -72,6 +99,4 @@ class Team extends pulumi.CustomResource {
|
|
|
72
99
|
}
|
|
73
100
|
}
|
|
74
101
|
exports.Team = Team;
|
|
75
|
-
/** @internal */
|
|
76
|
-
Team.__pulumiType = 'astronomer:index/team:Team';
|
|
77
102
|
//# sourceMappingURL=team.js.map
|
package/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,4BAA4B,CAAC;IAEnE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QA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I,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAhIL,oBAiIC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a single user's membership in an Astro team. Use this resource instead of the `memberIds` attribute on `astronomer.Team` when you need to manage memberships independently or across multiple state files.
|
|
4
|
+
*
|
|
5
|
+
* **Conflict note:** Do not use both `astro_team.member_ids` and `astronomer.TeamMembership` for the same team. Both write to the same API state and will conflict on apply.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TeamMembership extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param state Any extra arguments used during the lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamMembershipState, opts?: pulumi.CustomResourceOptions): TeamMembership;
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if the given object is an instance of TeamMembership. This is designed to work even
|
|
20
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
21
|
+
*/
|
|
22
|
+
static isInstance(obj: any): obj is TeamMembership;
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the team
|
|
25
|
+
*/
|
|
26
|
+
readonly teamId: pulumi.Output<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the user to add to the team
|
|
29
|
+
*/
|
|
30
|
+
readonly userId: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a TeamMembership resource with the given unique name, arguments, and options.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resource.
|
|
35
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string, args: TeamMembershipArgs, opts?: pulumi.CustomResourceOptions);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Input properties used for looking up and filtering TeamMembership resources.
|
|
42
|
+
*/
|
|
43
|
+
export interface TeamMembershipState {
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the team
|
|
46
|
+
*/
|
|
47
|
+
teamId?: pulumi.Input<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the user to add to the team
|
|
50
|
+
*/
|
|
51
|
+
userId?: pulumi.Input<string>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The set of arguments for constructing a TeamMembership resource.
|
|
55
|
+
*/
|
|
56
|
+
export interface TeamMembershipArgs {
|
|
57
|
+
/**
|
|
58
|
+
* The ID of the team
|
|
59
|
+
*/
|
|
60
|
+
teamId: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The ID of the user to add to the team
|
|
63
|
+
*/
|
|
64
|
+
userId: pulumi.Input<string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
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TeamMembership = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manages a single user's membership in an Astro team. Use this resource instead of the `memberIds` attribute on `astronomer.Team` when you need to manage memberships independently or across multiple state files.
|
|
33
|
+
*
|
|
34
|
+
* **Conflict note:** Do not use both `astro_team.member_ids` and `astronomer.TeamMembership` for the same team. Both write to the same API state and will conflict on apply.
|
|
35
|
+
*/
|
|
36
|
+
class TeamMembership extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing TeamMembership resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new TeamMembership(name, state, { ...opts, id: id });
|
|
48
|
+
}
|
|
49
|
+
/** @internal */
|
|
50
|
+
static __pulumiType = 'astronomer:index/teamMembership:TeamMembership';
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of TeamMembership. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj) {
|
|
56
|
+
if (obj === undefined || obj === null) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return obj['__pulumiType'] === TeamMembership.__pulumiType;
|
|
60
|
+
}
|
|
61
|
+
constructor(name, argsOrState, opts) {
|
|
62
|
+
let resourceInputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (opts.id) {
|
|
65
|
+
const state = argsOrState;
|
|
66
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
67
|
+
resourceInputs["userId"] = state?.userId;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
const args = argsOrState;
|
|
71
|
+
if (args?.teamId === undefined && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'teamId'");
|
|
73
|
+
}
|
|
74
|
+
if (args?.userId === undefined && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'userId'");
|
|
76
|
+
}
|
|
77
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
78
|
+
resourceInputs["userId"] = args?.userId;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(TeamMembership.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.TeamMembership = TeamMembership;
|
|
85
|
+
//# sourceMappingURL=teamMembership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;GAIG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gDAAgD,CAAC;IAEvF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAjEL,wCAkEC"}
|
package/teamRoles.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Manages organization, workspace, deployment, and DAG roles for an existing team. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
|
|
6
6
|
*/
|
|
7
7
|
export declare class TeamRoles extends pulumi.CustomResource {
|
|
8
8
|
/**
|
|
@@ -21,7 +21,11 @@ export declare class TeamRoles extends pulumi.CustomResource {
|
|
|
21
21
|
*/
|
|
22
22
|
static isInstance(obj: any): obj is TeamRoles;
|
|
23
23
|
/**
|
|
24
|
-
* The roles to assign to the
|
|
24
|
+
* The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
|
|
25
|
+
*/
|
|
26
|
+
readonly dagRoles: pulumi.Output<outputs.TeamRolesDagRole[] | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
|
|
25
29
|
*/
|
|
26
30
|
readonly deploymentRoles: pulumi.Output<outputs.TeamRolesDeploymentRole[] | undefined>;
|
|
27
31
|
/**
|
|
@@ -33,7 +37,7 @@ export declare class TeamRoles extends pulumi.CustomResource {
|
|
|
33
37
|
*/
|
|
34
38
|
readonly teamId: pulumi.Output<string>;
|
|
35
39
|
/**
|
|
36
|
-
* The roles to assign to the workspaces
|
|
40
|
+
* The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
|
|
37
41
|
*/
|
|
38
42
|
readonly workspaceRoles: pulumi.Output<outputs.TeamRolesWorkspaceRole[] | undefined>;
|
|
39
43
|
/**
|
|
@@ -50,7 +54,11 @@ export declare class TeamRoles extends pulumi.CustomResource {
|
|
|
50
54
|
*/
|
|
51
55
|
export interface TeamRolesState {
|
|
52
56
|
/**
|
|
53
|
-
* The roles to assign to the
|
|
57
|
+
* The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
|
|
58
|
+
*/
|
|
59
|
+
dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDagRole>[]>;
|
|
60
|
+
/**
|
|
61
|
+
* The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
|
|
54
62
|
*/
|
|
55
63
|
deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
|
|
56
64
|
/**
|
|
@@ -62,7 +70,7 @@ export interface TeamRolesState {
|
|
|
62
70
|
*/
|
|
63
71
|
teamId?: pulumi.Input<string>;
|
|
64
72
|
/**
|
|
65
|
-
* The roles to assign to the workspaces
|
|
73
|
+
* The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
|
|
66
74
|
*/
|
|
67
75
|
workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
|
|
68
76
|
}
|
|
@@ -71,7 +79,11 @@ export interface TeamRolesState {
|
|
|
71
79
|
*/
|
|
72
80
|
export interface TeamRolesArgs {
|
|
73
81
|
/**
|
|
74
|
-
* The roles to assign to the
|
|
82
|
+
* The DAG roles to assign to the team. Each role grants permissions to a specific DAG or DAGs with a specific tag within a deployment. Each deployment referenced in `dagRoles` must also have a corresponding entry in `deploymentRoles` (e.g. with `DEPLOYMENT_ACCESSOR` role).
|
|
83
|
+
*/
|
|
84
|
+
dagRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDagRole>[]>;
|
|
85
|
+
/**
|
|
86
|
+
* The roles to assign to the deployments. Each `deploymentId` must belong to a workspace that also appears in `workspaceRoles`. Required for any deployment referenced in `dagRoles`.
|
|
75
87
|
*/
|
|
76
88
|
deploymentRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesDeploymentRole>[]>;
|
|
77
89
|
/**
|
|
@@ -83,7 +95,8 @@ export interface TeamRolesArgs {
|
|
|
83
95
|
*/
|
|
84
96
|
teamId: pulumi.Input<string>;
|
|
85
97
|
/**
|
|
86
|
-
* The roles to assign to the workspaces
|
|
98
|
+
* The roles to assign to the workspaces. When you set `deploymentRoles` or `dagRoles`, include each deployment's parent workspace here (any workspace role), so Terraform state matches the API.
|
|
87
99
|
*/
|
|
88
100
|
workspaceRoles?: pulumi.Input<pulumi.Input<inputs.TeamRolesWorkspaceRole>[]>;
|
|
89
101
|
}
|
|
102
|
+
//# sourceMappingURL=teamRoles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamRoles.d.ts","sourceRoot":"","sources":["../teamRoles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GAEG;AACH,qBAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,SAAS;IAOpI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS;IAOpD;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,SAAS,CAAC,CAAC;IACxF;;OAEG;IACH,SAAwB,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,uBAAuB,EAAE,GAAG,SAAS,CAAC,CAAC;IACtG;;OAEG;IACH,SAAwB,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChE;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,sBA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CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;CAChF"}
|
package/teamRoles.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.TeamRoles = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
|
-
*
|
|
32
|
+
* Manages organization, workspace, deployment, and DAG roles for an existing team. Astro permissions are hierarchical (organization, workspace, deployment, then DAG). Declare roles at each applicable parent scope as well as nested scopes, not only at the leaf, so Terraform state matches the API.
|
|
10
33
|
*/
|
|
11
34
|
class TeamRoles extends pulumi.CustomResource {
|
|
12
35
|
/**
|
|
@@ -19,8 +42,10 @@ class TeamRoles extends pulumi.CustomResource {
|
|
|
19
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
43
|
*/
|
|
21
44
|
static get(name, id, state, opts) {
|
|
22
|
-
return new TeamRoles(name, state,
|
|
45
|
+
return new TeamRoles(name, state, { ...opts, id: id });
|
|
23
46
|
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'astronomer:index/teamRoles:TeamRoles';
|
|
24
49
|
/**
|
|
25
50
|
* Returns true if the given object is an instance of TeamRoles. This is designed to work even
|
|
26
51
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -36,29 +61,29 @@ class TeamRoles extends pulumi.CustomResource {
|
|
|
36
61
|
opts = opts || {};
|
|
37
62
|
if (opts.id) {
|
|
38
63
|
const state = argsOrState;
|
|
39
|
-
resourceInputs["
|
|
40
|
-
resourceInputs["
|
|
41
|
-
resourceInputs["
|
|
42
|
-
resourceInputs["
|
|
64
|
+
resourceInputs["dagRoles"] = state?.dagRoles;
|
|
65
|
+
resourceInputs["deploymentRoles"] = state?.deploymentRoles;
|
|
66
|
+
resourceInputs["organizationRole"] = state?.organizationRole;
|
|
67
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
68
|
+
resourceInputs["workspaceRoles"] = state?.workspaceRoles;
|
|
43
69
|
}
|
|
44
70
|
else {
|
|
45
71
|
const args = argsOrState;
|
|
46
|
-
if (
|
|
72
|
+
if (args?.organizationRole === undefined && !opts.urn) {
|
|
47
73
|
throw new Error("Missing required property 'organizationRole'");
|
|
48
74
|
}
|
|
49
|
-
if (
|
|
75
|
+
if (args?.teamId === undefined && !opts.urn) {
|
|
50
76
|
throw new Error("Missing required property 'teamId'");
|
|
51
77
|
}
|
|
52
|
-
resourceInputs["
|
|
53
|
-
resourceInputs["
|
|
54
|
-
resourceInputs["
|
|
55
|
-
resourceInputs["
|
|
78
|
+
resourceInputs["dagRoles"] = args?.dagRoles;
|
|
79
|
+
resourceInputs["deploymentRoles"] = args?.deploymentRoles;
|
|
80
|
+
resourceInputs["organizationRole"] = args?.organizationRole;
|
|
81
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
82
|
+
resourceInputs["workspaceRoles"] = args?.workspaceRoles;
|
|
56
83
|
}
|
|
57
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
85
|
super(TeamRoles.__pulumiType, name, resourceInputs, opts);
|
|
59
86
|
}
|
|
60
87
|
}
|
|
61
88
|
exports.TeamRoles = TeamRoles;
|
|
62
|
-
/** @internal */
|
|
63
|
-
TeamRoles.__pulumiType = 'astronomer:index/teamRoles:TeamRoles';
|
|
64
89
|
//# sourceMappingURL=teamRoles.js.map
|
package/teamRoles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRoles.js","sourceRoot":"","sources":["../teamRoles.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"teamRoles.js","sourceRoot":"","sources":["../teamRoles.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO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G,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAnFL,8BAoFC"}
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACH,KAAK,EACL,MAAM,GACT,CAAC"}
|
package/types/index.js
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.output = exports.input = void 0;
|
|
6
29
|
// Export sub-modules:
|
|
7
|
-
const input = require("./input");
|
|
30
|
+
const input = __importStar(require("./input"));
|
|
8
31
|
exports.input = input;
|
|
9
|
-
const output = require("./output");
|
|
32
|
+
const output = __importStar(require("./output"));
|
|
10
33
|
exports.output = output;
|
|
11
34
|
//# sourceMappingURL=index.js.map
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjF,sBAAsB;AACtB,+CAAiC;AAI7B,sBAAK;AAHT,iDAAmC;AAI/B,wBAAM"}
|