@pulumi/slack 0.3.2-alpha.1673515113 → 0.3.2-alpha.1679087555
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/getConversation.d.ts +61 -9
- package/getConversation.js +43 -7
- package/getConversation.js.map +1 -1
- package/getUser.d.ts +37 -4
- package/getUser.js +39 -9
- package/getUser.js.map +1 -1
- package/getUsergroup.d.ts +35 -4
- package/getUsergroup.js +37 -9
- package/getUsergroup.js.map +1 -1
- package/index.d.ts +18 -6
- package/index.js +19 -29
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/usergroup.d.ts +1 -1
- package/usergroup.js +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/getConversation.d.ts
CHANGED
|
@@ -24,12 +24,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
* import * as pulumi from "@pulumi/pulumi";
|
|
25
25
|
* import * as slack from "@pulumi/slack";
|
|
26
26
|
*
|
|
27
|
-
* const test =
|
|
27
|
+
* const test = slack.getConversation({
|
|
28
28
|
* channelId: "my-channel",
|
|
29
|
-
* })
|
|
29
|
+
* });
|
|
30
|
+
* const test-name = slack.getConversation({
|
|
31
|
+
* name: "my-channel-name",
|
|
32
|
+
* });
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
32
|
-
export declare function getConversation(args
|
|
35
|
+
export declare function getConversation(args?: GetConversationArgs, opts?: pulumi.InvokeOptions): Promise<GetConversationResult>;
|
|
33
36
|
/**
|
|
34
37
|
* A collection of arguments for invoking getConversation.
|
|
35
38
|
*/
|
|
@@ -37,13 +40,21 @@ export interface GetConversationArgs {
|
|
|
37
40
|
/**
|
|
38
41
|
* The ID of the channel
|
|
39
42
|
*/
|
|
40
|
-
channelId
|
|
43
|
+
channelId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The conversation is privileged between two or more members
|
|
46
|
+
*/
|
|
47
|
+
isPrivate?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the public or private channel
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
41
52
|
}
|
|
42
53
|
/**
|
|
43
54
|
* A collection of values returned by getConversation.
|
|
44
55
|
*/
|
|
45
56
|
export interface GetConversationResult {
|
|
46
|
-
readonly channelId
|
|
57
|
+
readonly channelId?: string;
|
|
47
58
|
/**
|
|
48
59
|
* is a unix timestamp.
|
|
49
60
|
*/
|
|
@@ -78,7 +89,7 @@ export interface GetConversationResult {
|
|
|
78
89
|
/**
|
|
79
90
|
* means the conversation is privileged between two or more members.
|
|
80
91
|
*/
|
|
81
|
-
readonly isPrivate
|
|
92
|
+
readonly isPrivate?: boolean;
|
|
82
93
|
/**
|
|
83
94
|
* means the conversation is in some way shared between multiple workspaces.
|
|
84
95
|
*/
|
|
@@ -86,7 +97,7 @@ export interface GetConversationResult {
|
|
|
86
97
|
/**
|
|
87
98
|
* name of the public or private channel.
|
|
88
99
|
*/
|
|
89
|
-
readonly name
|
|
100
|
+
readonly name?: string;
|
|
90
101
|
/**
|
|
91
102
|
* purpose of the channel.
|
|
92
103
|
*/
|
|
@@ -96,7 +107,40 @@ export interface GetConversationResult {
|
|
|
96
107
|
*/
|
|
97
108
|
readonly topic: string;
|
|
98
109
|
}
|
|
99
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Use this data source to get information about a Slack conversation for use in other
|
|
112
|
+
* resources.
|
|
113
|
+
*
|
|
114
|
+
* ## Required scopes
|
|
115
|
+
*
|
|
116
|
+
* This resource requires the following scopes:
|
|
117
|
+
*
|
|
118
|
+
* - [channels:read](https://api.slack.com/scopes/channels:read) (public channels)
|
|
119
|
+
* - [groups:read](https://api.slack.com/scopes/groups:read) (private channels)
|
|
120
|
+
*
|
|
121
|
+
* The Slack API methods used by the resource are:
|
|
122
|
+
*
|
|
123
|
+
* - [conversations.info](https://api.slack.com/methods/conversations.info)
|
|
124
|
+
* - [conversations.members](https://api.slack.com/methods/conversations.members)
|
|
125
|
+
*
|
|
126
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
127
|
+
* the documentation for the methods above.
|
|
128
|
+
*
|
|
129
|
+
* ## Example Usage
|
|
130
|
+
*
|
|
131
|
+
* ```typescript
|
|
132
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
133
|
+
* import * as slack from "@pulumi/slack";
|
|
134
|
+
*
|
|
135
|
+
* const test = slack.getConversation({
|
|
136
|
+
* channelId: "my-channel",
|
|
137
|
+
* });
|
|
138
|
+
* const test-name = slack.getConversation({
|
|
139
|
+
* name: "my-channel-name",
|
|
140
|
+
* });
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
export declare function getConversationOutput(args?: GetConversationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConversationResult>;
|
|
100
144
|
/**
|
|
101
145
|
* A collection of arguments for invoking getConversation.
|
|
102
146
|
*/
|
|
@@ -104,5 +148,13 @@ export interface GetConversationOutputArgs {
|
|
|
104
148
|
/**
|
|
105
149
|
* The ID of the channel
|
|
106
150
|
*/
|
|
107
|
-
channelId
|
|
151
|
+
channelId?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The conversation is privileged between two or more members
|
|
154
|
+
*/
|
|
155
|
+
isPrivate?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* The name of the public or private channel
|
|
158
|
+
*/
|
|
159
|
+
name?: pulumi.Input<string>;
|
|
108
160
|
}
|
package/getConversation.js
CHANGED
|
@@ -30,23 +30,59 @@ const utilities = require("./utilities");
|
|
|
30
30
|
* import * as pulumi from "@pulumi/pulumi";
|
|
31
31
|
* import * as slack from "@pulumi/slack";
|
|
32
32
|
*
|
|
33
|
-
* const test =
|
|
33
|
+
* const test = slack.getConversation({
|
|
34
34
|
* channelId: "my-channel",
|
|
35
|
-
* })
|
|
35
|
+
* });
|
|
36
|
+
* const test-name = slack.getConversation({
|
|
37
|
+
* name: "my-channel-name",
|
|
38
|
+
* });
|
|
36
39
|
* ```
|
|
37
40
|
*/
|
|
38
41
|
function getConversation(args, opts) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
42
|
+
args = args || {};
|
|
43
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
43
44
|
return pulumi.runtime.invoke("slack:index/getConversation:getConversation", {
|
|
44
45
|
"channelId": args.channelId,
|
|
46
|
+
"isPrivate": args.isPrivate,
|
|
47
|
+
"name": args.name,
|
|
45
48
|
}, opts);
|
|
46
49
|
}
|
|
47
50
|
exports.getConversation = getConversation;
|
|
51
|
+
/**
|
|
52
|
+
* Use this data source to get information about a Slack conversation for use in other
|
|
53
|
+
* resources.
|
|
54
|
+
*
|
|
55
|
+
* ## Required scopes
|
|
56
|
+
*
|
|
57
|
+
* This resource requires the following scopes:
|
|
58
|
+
*
|
|
59
|
+
* - [channels:read](https://api.slack.com/scopes/channels:read) (public channels)
|
|
60
|
+
* - [groups:read](https://api.slack.com/scopes/groups:read) (private channels)
|
|
61
|
+
*
|
|
62
|
+
* The Slack API methods used by the resource are:
|
|
63
|
+
*
|
|
64
|
+
* - [conversations.info](https://api.slack.com/methods/conversations.info)
|
|
65
|
+
* - [conversations.members](https://api.slack.com/methods/conversations.members)
|
|
66
|
+
*
|
|
67
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
68
|
+
* the documentation for the methods above.
|
|
69
|
+
*
|
|
70
|
+
* ## Example Usage
|
|
71
|
+
*
|
|
72
|
+
* ```typescript
|
|
73
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
+
* import * as slack from "@pulumi/slack";
|
|
75
|
+
*
|
|
76
|
+
* const test = slack.getConversation({
|
|
77
|
+
* channelId: "my-channel",
|
|
78
|
+
* });
|
|
79
|
+
* const test-name = slack.getConversation({
|
|
80
|
+
* name: "my-channel-name",
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
48
84
|
function getConversationOutput(args, opts) {
|
|
49
|
-
return pulumi.output(args).apply(a => getConversation(a, opts));
|
|
85
|
+
return pulumi.output(args).apply((a) => getConversation(a, opts));
|
|
50
86
|
}
|
|
51
87
|
exports.getConversationOutput = getConversationOutput;
|
|
52
88
|
//# sourceMappingURL=getConversation.js.map
|
package/getConversation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConversation.js","sourceRoot":"","sources":["../getConversation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getConversation.js","sourceRoot":"","sources":["../getConversation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AA6ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
package/getUser.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
* import * as pulumi from "@pulumi/pulumi";
|
|
25
25
|
* import * as slack from "@pulumi/slack";
|
|
26
26
|
*
|
|
27
|
-
* const byName =
|
|
27
|
+
* const byName = slack.getUser({
|
|
28
28
|
* name: "my-user",
|
|
29
|
-
* })
|
|
30
|
-
* const byEmail =
|
|
29
|
+
* });
|
|
30
|
+
* const byEmail = slack.getUser({
|
|
31
31
|
* email: "my-user@example.com",
|
|
32
|
-
* })
|
|
32
|
+
* });
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
|
|
@@ -57,6 +57,39 @@ export interface GetUserResult {
|
|
|
57
57
|
readonly id: string;
|
|
58
58
|
readonly name?: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Use this data source to get information about a user for use in other
|
|
62
|
+
* resources.
|
|
63
|
+
*
|
|
64
|
+
* ## Required scopes
|
|
65
|
+
*
|
|
66
|
+
* This resource requires the following scopes:
|
|
67
|
+
*
|
|
68
|
+
* - [users:read](https://api.slack.com/scopes/users:read)
|
|
69
|
+
* - [users:read.email](https://api.slack.com/scopes/users:read.email)
|
|
70
|
+
*
|
|
71
|
+
* The Slack API methods used by the resource are:
|
|
72
|
+
*
|
|
73
|
+
* - [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)
|
|
74
|
+
* - [users.list](https://api.slack.com/methods/users.list)
|
|
75
|
+
*
|
|
76
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
77
|
+
* the documentation for the methods above.
|
|
78
|
+
*
|
|
79
|
+
* ## Example Usage
|
|
80
|
+
*
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
83
|
+
* import * as slack from "@pulumi/slack";
|
|
84
|
+
*
|
|
85
|
+
* const byName = slack.getUser({
|
|
86
|
+
* name: "my-user",
|
|
87
|
+
* });
|
|
88
|
+
* const byEmail = slack.getUser({
|
|
89
|
+
* email: "my-user@example.com",
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
60
93
|
export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
|
|
61
94
|
/**
|
|
62
95
|
* A collection of arguments for invoking getUser.
|
package/getUser.js
CHANGED
|
@@ -30,28 +30,58 @@ const utilities = require("./utilities");
|
|
|
30
30
|
* import * as pulumi from "@pulumi/pulumi";
|
|
31
31
|
* import * as slack from "@pulumi/slack";
|
|
32
32
|
*
|
|
33
|
-
* const byName =
|
|
33
|
+
* const byName = slack.getUser({
|
|
34
34
|
* name: "my-user",
|
|
35
|
-
* })
|
|
36
|
-
* const byEmail =
|
|
35
|
+
* });
|
|
36
|
+
* const byEmail = slack.getUser({
|
|
37
37
|
* email: "my-user@example.com",
|
|
38
|
-
* })
|
|
38
|
+
* });
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
function getUser(args, opts) {
|
|
42
42
|
args = args || {};
|
|
43
|
-
|
|
44
|
-
opts = {};
|
|
45
|
-
}
|
|
46
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
43
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
47
44
|
return pulumi.runtime.invoke("slack:index/getUser:getUser", {
|
|
48
45
|
"email": args.email,
|
|
49
46
|
"name": args.name,
|
|
50
47
|
}, opts);
|
|
51
48
|
}
|
|
52
49
|
exports.getUser = getUser;
|
|
50
|
+
/**
|
|
51
|
+
* Use this data source to get information about a user for use in other
|
|
52
|
+
* resources.
|
|
53
|
+
*
|
|
54
|
+
* ## Required scopes
|
|
55
|
+
*
|
|
56
|
+
* This resource requires the following scopes:
|
|
57
|
+
*
|
|
58
|
+
* - [users:read](https://api.slack.com/scopes/users:read)
|
|
59
|
+
* - [users:read.email](https://api.slack.com/scopes/users:read.email)
|
|
60
|
+
*
|
|
61
|
+
* The Slack API methods used by the resource are:
|
|
62
|
+
*
|
|
63
|
+
* - [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)
|
|
64
|
+
* - [users.list](https://api.slack.com/methods/users.list)
|
|
65
|
+
*
|
|
66
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
67
|
+
* the documentation for the methods above.
|
|
68
|
+
*
|
|
69
|
+
* ## Example Usage
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as slack from "@pulumi/slack";
|
|
74
|
+
*
|
|
75
|
+
* const byName = slack.getUser({
|
|
76
|
+
* name: "my-user",
|
|
77
|
+
* });
|
|
78
|
+
* const byEmail = slack.getUser({
|
|
79
|
+
* email: "my-user@example.com",
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
53
83
|
function getUserOutput(args, opts) {
|
|
54
|
-
return pulumi.output(args).apply(a => getUser(a, opts));
|
|
84
|
+
return pulumi.output(args).apply((a) => getUser(a, opts));
|
|
55
85
|
}
|
|
56
86
|
exports.getUserOutput = getUserOutput;
|
|
57
87
|
//# sourceMappingURL=getUser.js.map
|
package/getUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE;QACxD,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/getUsergroup.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
* import * as pulumi from "@pulumi/pulumi";
|
|
23
23
|
* import * as slack from "@pulumi/slack";
|
|
24
24
|
*
|
|
25
|
-
* const byName =
|
|
25
|
+
* const byName = slack.getUsergroup({
|
|
26
26
|
* name: "my-usergroup",
|
|
27
|
-
* })
|
|
28
|
-
* const byId =
|
|
27
|
+
* });
|
|
28
|
+
* const byId = slack.getUsergroup({
|
|
29
29
|
* usergroupId: "USERGROUP00",
|
|
30
|
-
* })
|
|
30
|
+
* });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export declare function getUsergroup(args?: GetUsergroupArgs, opts?: pulumi.InvokeOptions): Promise<GetUsergroupResult>;
|
|
@@ -72,6 +72,37 @@ export interface GetUsergroupResult {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly users: string[];
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Use this data source to get information about a usergroups for use in other
|
|
77
|
+
* resources. The data source returns enabled groups only.
|
|
78
|
+
*
|
|
79
|
+
* ## Required scopes
|
|
80
|
+
*
|
|
81
|
+
* This resource requires the following scopes:
|
|
82
|
+
*
|
|
83
|
+
* - [usergroups:read](https://api.slack.com/scopes/usergroups:read)
|
|
84
|
+
*
|
|
85
|
+
* The Slack API methods used by the resource are:
|
|
86
|
+
*
|
|
87
|
+
* - [usergroups.list](https://api.slack.com/methods/usergroups.list)
|
|
88
|
+
*
|
|
89
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
90
|
+
* the documentation for the methods above.
|
|
91
|
+
*
|
|
92
|
+
* ## Example Usage
|
|
93
|
+
*
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as slack from "@pulumi/slack";
|
|
97
|
+
*
|
|
98
|
+
* const byName = slack.getUsergroup({
|
|
99
|
+
* name: "my-usergroup",
|
|
100
|
+
* });
|
|
101
|
+
* const byId = slack.getUsergroup({
|
|
102
|
+
* usergroupId: "USERGROUP00",
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
75
106
|
export declare function getUsergroupOutput(args?: GetUsergroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUsergroupResult>;
|
|
76
107
|
/**
|
|
77
108
|
* A collection of arguments for invoking getUsergroup.
|
package/getUsergroup.js
CHANGED
|
@@ -28,28 +28,56 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
29
29
|
* import * as slack from "@pulumi/slack";
|
|
30
30
|
*
|
|
31
|
-
* const byName =
|
|
31
|
+
* const byName = slack.getUsergroup({
|
|
32
32
|
* name: "my-usergroup",
|
|
33
|
-
* })
|
|
34
|
-
* const byId =
|
|
33
|
+
* });
|
|
34
|
+
* const byId = slack.getUsergroup({
|
|
35
35
|
* usergroupId: "USERGROUP00",
|
|
36
|
-
* })
|
|
36
|
+
* });
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
function getUsergroup(args, opts) {
|
|
40
40
|
args = args || {};
|
|
41
|
-
|
|
42
|
-
opts = {};
|
|
43
|
-
}
|
|
44
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
41
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
45
42
|
return pulumi.runtime.invoke("slack:index/getUsergroup:getUsergroup", {
|
|
46
43
|
"name": args.name,
|
|
47
44
|
"usergroupId": args.usergroupId,
|
|
48
45
|
}, opts);
|
|
49
46
|
}
|
|
50
47
|
exports.getUsergroup = getUsergroup;
|
|
48
|
+
/**
|
|
49
|
+
* Use this data source to get information about a usergroups for use in other
|
|
50
|
+
* resources. The data source returns enabled groups only.
|
|
51
|
+
*
|
|
52
|
+
* ## Required scopes
|
|
53
|
+
*
|
|
54
|
+
* This resource requires the following scopes:
|
|
55
|
+
*
|
|
56
|
+
* - [usergroups:read](https://api.slack.com/scopes/usergroups:read)
|
|
57
|
+
*
|
|
58
|
+
* The Slack API methods used by the resource are:
|
|
59
|
+
*
|
|
60
|
+
* - [usergroups.list](https://api.slack.com/methods/usergroups.list)
|
|
61
|
+
*
|
|
62
|
+
* If you get `missingScope` errors while using this resource check the scopes against
|
|
63
|
+
* the documentation for the methods above.
|
|
64
|
+
*
|
|
65
|
+
* ## Example Usage
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as slack from "@pulumi/slack";
|
|
70
|
+
*
|
|
71
|
+
* const byName = slack.getUsergroup({
|
|
72
|
+
* name: "my-usergroup",
|
|
73
|
+
* });
|
|
74
|
+
* const byId = slack.getUsergroup({
|
|
75
|
+
* usergroupId: "USERGROUP00",
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
51
79
|
function getUsergroupOutput(args, opts) {
|
|
52
|
-
return pulumi.output(args).apply(a => getUsergroup(a, opts));
|
|
80
|
+
return pulumi.output(args).apply((a) => getUsergroup(a, opts));
|
|
53
81
|
}
|
|
54
82
|
exports.getUsergroupOutput = getUsergroupOutput;
|
|
55
83
|
//# sourceMappingURL=getUsergroup.js.map
|
package/getUsergroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUsergroup.js","sourceRoot":"","sources":["../getUsergroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getUsergroup.js","sourceRoot":"","sources":["../getUsergroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA4CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export { ConversationArgs, ConversationState } from "./conversation";
|
|
2
|
+
export type Conversation = import("./conversation").Conversation;
|
|
3
|
+
export declare const Conversation: typeof import("./conversation").Conversation;
|
|
4
|
+
export { GetConversationArgs, GetConversationResult, GetConversationOutputArgs } from "./getConversation";
|
|
5
|
+
export declare const getConversation: typeof import("./getConversation").getConversation;
|
|
6
|
+
export declare const getConversationOutput: typeof import("./getConversation").getConversationOutput;
|
|
7
|
+
export { GetUserArgs, GetUserResult, GetUserOutputArgs } from "./getUser";
|
|
8
|
+
export declare const getUser: typeof import("./getUser").getUser;
|
|
9
|
+
export declare const getUserOutput: typeof import("./getUser").getUserOutput;
|
|
10
|
+
export { GetUsergroupArgs, GetUsergroupResult, GetUsergroupOutputArgs } from "./getUsergroup";
|
|
11
|
+
export declare const getUsergroup: typeof import("./getUsergroup").getUsergroup;
|
|
12
|
+
export declare const getUsergroupOutput: typeof import("./getUsergroup").getUsergroupOutput;
|
|
13
|
+
export { ProviderArgs } from "./provider";
|
|
14
|
+
export type Provider = import("./provider").Provider;
|
|
15
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
16
|
+
export { UsergroupArgs, UsergroupState } from "./usergroup";
|
|
17
|
+
export type Usergroup = import("./usergroup").Usergroup;
|
|
18
|
+
export declare const Usergroup: typeof import("./usergroup").Usergroup;
|
|
7
19
|
import * as config from "./config";
|
|
8
20
|
export { config, };
|
package/index.js
CHANGED
|
@@ -1,45 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.config = void 0;
|
|
5
|
+
exports.config = exports.Usergroup = exports.Provider = exports.getUsergroupOutput = exports.getUsergroup = exports.getUserOutput = exports.getUser = exports.getConversationOutput = exports.getConversation = exports.Conversation = void 0;
|
|
20
6
|
const pulumi = require("@pulumi/pulumi");
|
|
21
7
|
const utilities = require("./utilities");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
8
|
+
exports.Conversation = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Conversation"], () => require("./conversation"));
|
|
10
|
+
exports.getConversation = null;
|
|
11
|
+
exports.getConversationOutput = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["getConversation", "getConversationOutput"], () => require("./getConversation"));
|
|
13
|
+
exports.getUser = null;
|
|
14
|
+
exports.getUserOutput = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["getUser", "getUserOutput"], () => require("./getUser"));
|
|
16
|
+
exports.getUsergroup = null;
|
|
17
|
+
exports.getUsergroupOutput = null;
|
|
18
|
+
utilities.lazyLoad(exports, ["getUsergroup", "getUsergroupOutput"], () => require("./getUsergroup"));
|
|
19
|
+
exports.Provider = null;
|
|
20
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
21
|
+
exports.Usergroup = null;
|
|
22
|
+
utilities.lazyLoad(exports, ["Usergroup"], () => require("./usergroup"));
|
|
29
23
|
// Export sub-modules:
|
|
30
24
|
const config = require("./config");
|
|
31
25
|
exports.config = config;
|
|
32
|
-
// Import resources to register:
|
|
33
|
-
const conversation_1 = require("./conversation");
|
|
34
|
-
const usergroup_1 = require("./usergroup");
|
|
35
26
|
const _module = {
|
|
36
27
|
version: utilities.getVersion(),
|
|
37
28
|
construct: (name, type, urn) => {
|
|
38
29
|
switch (type) {
|
|
39
30
|
case "slack:index/conversation:Conversation":
|
|
40
|
-
return new
|
|
31
|
+
return new exports.Conversation(name, undefined, { urn });
|
|
41
32
|
case "slack:index/usergroup:Usergroup":
|
|
42
|
-
return new
|
|
33
|
+
return new exports.Usergroup(name, undefined, { urn });
|
|
43
34
|
default:
|
|
44
35
|
throw new Error(`unknown resource type ${type}`);
|
|
45
36
|
}
|
|
@@ -47,14 +38,13 @@ const _module = {
|
|
|
47
38
|
};
|
|
48
39
|
pulumi.runtime.registerResourceModule("slack", "index/conversation", _module);
|
|
49
40
|
pulumi.runtime.registerResourceModule("slack", "index/usergroup", _module);
|
|
50
|
-
const provider_1 = require("./provider");
|
|
51
41
|
pulumi.runtime.registerResourcePackage("slack", {
|
|
52
42
|
version: utilities.getVersion(),
|
|
53
43
|
constructProvider: (name, type, urn) => {
|
|
54
44
|
if (type !== "pulumi:providers:slack") {
|
|
55
45
|
throw new Error(`unknown provider type ${type}`);
|
|
56
46
|
}
|
|
57
|
-
return new
|
|
47
|
+
return new exports.Provider(name, undefined, { urn });
|
|
58
48
|
},
|
|
59
49
|
});
|
|
60
50
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAGlE,QAAA,eAAe,GAAuD,IAAW,CAAC;AAClF,QAAA,qBAAqB,GAA6D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,EAAC,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAGhG,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGxE,QAAA,YAAY,GAAiD,IAAW,CAAC;AACzE,QAAA,kBAAkB,GAAuD,IAAW,CAAC;AAClG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,EAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAA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AK,wBAAwB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/slack",
|
|
3
|
-
"version": "v0.3.2-alpha.
|
|
3
|
+
"version": "v0.3.2-alpha.1679087555+b7c30f79",
|
|
4
4
|
"description": "A Pulumi package for managing Slack workspaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource slack v0.3.2-alpha.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource slack v0.3.2-alpha.1679087555+b7c30f79"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/slack",
|
|
3
|
-
"version": "v0.3.2-alpha.
|
|
3
|
+
"version": "v0.3.2-alpha.1679087555+b7c30f79",
|
|
4
4
|
"description": "A Pulumi package for managing Slack workspaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource slack v0.3.2-alpha.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource slack v0.3.2-alpha.1679087555+b7c30f79"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
package/usergroup.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
28
28
|
* import * as slack from "@pulumi/slack";
|
|
29
29
|
*
|
|
30
|
-
* const myGroup = new slack.Usergroup("
|
|
30
|
+
* const myGroup = new slack.Usergroup("myGroup", {
|
|
31
31
|
* channels: ["CHANNEL00"],
|
|
32
32
|
* description: "Test user group",
|
|
33
33
|
* handle: "test",
|
package/usergroup.js
CHANGED
|
@@ -33,7 +33,7 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
34
34
|
* import * as slack from "@pulumi/slack";
|
|
35
35
|
*
|
|
36
|
-
* const myGroup = new slack.Usergroup("
|
|
36
|
+
* const myGroup = new slack.Usergroup("myGroup", {
|
|
37
37
|
* channels: ["CHANNEL00"],
|
|
38
38
|
* description: "Test user group",
|
|
39
39
|
* handle: "test",
|
package/utilities.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
5
|
+
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
6
|
function getEnv(...vars) {
|
|
7
7
|
for (const v of vars) {
|
|
8
8
|
const value = process.env[v];
|
|
@@ -54,4 +54,16 @@ function resourceOptsDefaults() {
|
|
|
54
54
|
return { version: getVersion() };
|
|
55
55
|
}
|
|
56
56
|
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
/** @internal */
|
|
58
|
+
function lazyLoad(exports, props, loadModule) {
|
|
59
|
+
for (let property of props) {
|
|
60
|
+
Object.defineProperty(exports, property, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return loadModule()[property];
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.lazyLoad = lazyLoad;
|
|
57
69
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK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