@pulumi/slack 0.0.1-alpha.1647888073

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../conversation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA4FnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,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AAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAoIC;AAtHG,gBAAgB;AACO,yBAAY,GAAG,uCAAuC,CAAC"}
@@ -0,0 +1,108 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to get information about a Slack conversation for use in other
4
+ * resources.
5
+ *
6
+ * ## Required scopes
7
+ *
8
+ * This resource requires the following scopes:
9
+ *
10
+ * - [channels:read](https://api.slack.com/scopes/channels:read) (public channels)
11
+ * - [groups:read](https://api.slack.com/scopes/groups:read) (private channels)
12
+ *
13
+ * The Slack API methods used by the resource are:
14
+ *
15
+ * - [conversations.info](https://api.slack.com/methods/conversations.info)
16
+ * - [conversations.members](https://api.slack.com/methods/conversations.members)
17
+ *
18
+ * If you get `missingScope` errors while using this resource check the scopes against
19
+ * the documentation for the methods above.
20
+ *
21
+ * ## Example Usage
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as slack from "@pulumi/slack";
26
+ *
27
+ * const test = pulumi.output(slack.getConversation({
28
+ * channelId: "my-channel",
29
+ * }));
30
+ * ```
31
+ */
32
+ export declare function getConversation(args: GetConversationArgs, opts?: pulumi.InvokeOptions): Promise<GetConversationResult>;
33
+ /**
34
+ * A collection of arguments for invoking getConversation.
35
+ */
36
+ export interface GetConversationArgs {
37
+ /**
38
+ * The ID of the channel
39
+ */
40
+ channelId: string;
41
+ }
42
+ /**
43
+ * A collection of values returned by getConversation.
44
+ */
45
+ export interface GetConversationResult {
46
+ readonly channelId: string;
47
+ /**
48
+ * is a unix timestamp.
49
+ */
50
+ readonly created: number;
51
+ /**
52
+ * is the user ID of the member that created this channel.
53
+ */
54
+ readonly creator: string;
55
+ /**
56
+ * The provider-assigned unique ID for this managed resource.
57
+ */
58
+ readonly id: string;
59
+ /**
60
+ * indicates a conversation is archived. Frozen in time.
61
+ */
62
+ readonly isArchived: boolean;
63
+ /**
64
+ * represents this conversation as being part of a Shared Channel
65
+ * with a remote organization.
66
+ */
67
+ readonly isExtShared: boolean;
68
+ /**
69
+ * will be true if this channel is the "general" channel that includes
70
+ * all regular team members.
71
+ */
72
+ readonly isGeneral: boolean;
73
+ /**
74
+ * explains whether this shared channel is shared between Enterprise
75
+ * Grid workspaces within the same organization.
76
+ */
77
+ readonly isOrgShared: boolean;
78
+ /**
79
+ * means the conversation is privileged between two or more members.
80
+ */
81
+ readonly isPrivate: boolean;
82
+ /**
83
+ * means the conversation is in some way shared between multiple workspaces.
84
+ */
85
+ readonly isShared: boolean;
86
+ /**
87
+ * name of the public or private channel.
88
+ */
89
+ readonly name: string;
90
+ /**
91
+ * purpose of the channel.
92
+ */
93
+ readonly purpose: string;
94
+ /**
95
+ * topic for the channel.
96
+ */
97
+ readonly topic: string;
98
+ }
99
+ export declare function getConversationOutput(args: GetConversationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetConversationResult>;
100
+ /**
101
+ * A collection of arguments for invoking getConversation.
102
+ */
103
+ export interface GetConversationOutputArgs {
104
+ /**
105
+ * The ID of the channel
106
+ */
107
+ channelId: pulumi.Input<string>;
108
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getConversationOutput = exports.getConversation = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to get information about a Slack conversation for use in other
10
+ * resources.
11
+ *
12
+ * ## Required scopes
13
+ *
14
+ * This resource requires the following scopes:
15
+ *
16
+ * - [channels:read](https://api.slack.com/scopes/channels:read) (public channels)
17
+ * - [groups:read](https://api.slack.com/scopes/groups:read) (private channels)
18
+ *
19
+ * The Slack API methods used by the resource are:
20
+ *
21
+ * - [conversations.info](https://api.slack.com/methods/conversations.info)
22
+ * - [conversations.members](https://api.slack.com/methods/conversations.members)
23
+ *
24
+ * If you get `missingScope` errors while using this resource check the scopes against
25
+ * the documentation for the methods above.
26
+ *
27
+ * ## Example Usage
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as slack from "@pulumi/slack";
32
+ *
33
+ * const test = pulumi.output(slack.getConversation({
34
+ * channelId: "my-channel",
35
+ * }));
36
+ * ```
37
+ */
38
+ function getConversation(args, opts) {
39
+ if (!opts) {
40
+ opts = {};
41
+ }
42
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
43
+ return pulumi.runtime.invoke("slack:index/getConversation:getConversation", {
44
+ "channelId": args.channelId,
45
+ }, opts);
46
+ }
47
+ exports.getConversation = getConversation;
48
+ function getConversationOutput(args, opts) {
49
+ return pulumi.output(args).apply(a => getConversation(a, opts));
50
+ }
51
+ exports.getConversationOutput = getConversationOutput;
52
+ //# sourceMappingURL=getConversation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConversation.js","sourceRoot":"","sources":["../getConversation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AAsED,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
package/getUser.d.ts ADDED
@@ -0,0 +1,73 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to get information about a user for use in other
4
+ * resources.
5
+ *
6
+ * ## Required scopes
7
+ *
8
+ * This resource requires the following scopes:
9
+ *
10
+ * - [users:read](https://api.slack.com/scopes/users:read)
11
+ * - [users:read.email](https://api.slack.com/scopes/users:read.email)
12
+ *
13
+ * The Slack API methods used by the resource are:
14
+ *
15
+ * - [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)
16
+ * - [users.list](https://api.slack.com/methods/users.list)
17
+ *
18
+ * If you get `missingScope` errors while using this resource check the scopes against
19
+ * the documentation for the methods above.
20
+ *
21
+ * ## Example Usage
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as slack from "@pulumi/slack";
26
+ *
27
+ * const byName = pulumi.output(slack.getUser({
28
+ * name: "my-user",
29
+ * }));
30
+ * const byEmail = pulumi.output(slack.getUser({
31
+ * email: "my-user@example.com",
32
+ * }));
33
+ * ```
34
+ */
35
+ export declare function getUser(args?: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
36
+ /**
37
+ * A collection of arguments for invoking getUser.
38
+ */
39
+ export interface GetUserArgs {
40
+ /**
41
+ * The email of the user
42
+ */
43
+ email?: string;
44
+ /**
45
+ * The name of the user
46
+ */
47
+ name?: string;
48
+ }
49
+ /**
50
+ * A collection of values returned by getUser.
51
+ */
52
+ export interface GetUserResult {
53
+ readonly email?: string;
54
+ /**
55
+ * The provider-assigned unique ID for this managed resource.
56
+ */
57
+ readonly id: string;
58
+ readonly name?: string;
59
+ }
60
+ export declare function getUserOutput(args?: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
61
+ /**
62
+ * A collection of arguments for invoking getUser.
63
+ */
64
+ export interface GetUserOutputArgs {
65
+ /**
66
+ * The email of the user
67
+ */
68
+ email?: pulumi.Input<string>;
69
+ /**
70
+ * The name of the user
71
+ */
72
+ name?: pulumi.Input<string>;
73
+ }
package/getUser.js ADDED
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getUserOutput = exports.getUser = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to get information about a user for use in other
10
+ * resources.
11
+ *
12
+ * ## Required scopes
13
+ *
14
+ * This resource requires the following scopes:
15
+ *
16
+ * - [users:read](https://api.slack.com/scopes/users:read)
17
+ * - [users:read.email](https://api.slack.com/scopes/users:read.email)
18
+ *
19
+ * The Slack API methods used by the resource are:
20
+ *
21
+ * - [users.lookupByEmail](https://api.slack.com/methods/users.lookupByEmail)
22
+ * - [users.list](https://api.slack.com/methods/users.list)
23
+ *
24
+ * If you get `missingScope` errors while using this resource check the scopes against
25
+ * the documentation for the methods above.
26
+ *
27
+ * ## Example Usage
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as slack from "@pulumi/slack";
32
+ *
33
+ * const byName = pulumi.output(slack.getUser({
34
+ * name: "my-user",
35
+ * }));
36
+ * const byEmail = pulumi.output(slack.getUser({
37
+ * email: "my-user@example.com",
38
+ * }));
39
+ * ```
40
+ */
41
+ function getUser(args, opts) {
42
+ args = args || {};
43
+ if (!opts) {
44
+ opts = {};
45
+ }
46
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
47
+ return pulumi.runtime.invoke("slack:index/getUser:getUser", {
48
+ "email": args.email,
49
+ "name": args.name,
50
+ }, opts);
51
+ }
52
+ exports.getUser = getUser;
53
+ function getUserOutput(args, opts) {
54
+ return pulumi.output(args).apply(a => getUser(a, opts));
55
+ }
56
+ exports.getUserOutput = getUserOutput;
57
+ //# sourceMappingURL=getUser.js.map
package/getUser.js.map ADDED
@@ -0,0 +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;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,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;AAXD,0BAWC;AA4BD,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3D,CAAC;AAFD,sCAEC"}
@@ -0,0 +1,88 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to get information about a usergroups for use in other
4
+ * resources. The data source returns enabled groups only.
5
+ *
6
+ * ## Required scopes
7
+ *
8
+ * This resource requires the following scopes:
9
+ *
10
+ * - [usergroups:read](https://api.slack.com/scopes/usergroups:read)
11
+ *
12
+ * The Slack API methods used by the resource are:
13
+ *
14
+ * - [usergroups.list](https://api.slack.com/methods/usergroups.list)
15
+ *
16
+ * If you get `missingScope` errors while using this resource check the scopes against
17
+ * the documentation for the methods above.
18
+ *
19
+ * ## Example Usage
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as slack from "@pulumi/slack";
24
+ *
25
+ * const byName = pulumi.output(slack.getUsergroup({
26
+ * name: "my-usergroup",
27
+ * }));
28
+ * const byId = pulumi.output(slack.getUsergroup({
29
+ * usergroupId: "USERGROUP00",
30
+ * }));
31
+ * ```
32
+ */
33
+ export declare function getUsergroup(args?: GetUsergroupArgs, opts?: pulumi.InvokeOptions): Promise<GetUsergroupResult>;
34
+ /**
35
+ * A collection of arguments for invoking getUsergroup.
36
+ */
37
+ export interface GetUsergroupArgs {
38
+ /**
39
+ * The name of the usergroup
40
+ */
41
+ name?: string;
42
+ /**
43
+ * The id of the usergroup
44
+ */
45
+ usergroupId?: string;
46
+ }
47
+ /**
48
+ * A collection of values returned by getUsergroup.
49
+ */
50
+ export interface GetUsergroupResult {
51
+ /**
52
+ * The channel IDs for which the User Group uses as a default.
53
+ */
54
+ readonly channels: string[];
55
+ /**
56
+ * The short description of the User Group.
57
+ */
58
+ readonly description: string;
59
+ /**
60
+ * The mention handle.
61
+ */
62
+ readonly handle: string;
63
+ /**
64
+ * The provider-assigned unique ID for this managed resource.
65
+ */
66
+ readonly id: string;
67
+ readonly name?: string;
68
+ readonly usergroupId?: string;
69
+ /**
70
+ * The user IDs that represent the entire list of users for the
71
+ * User Group.
72
+ */
73
+ readonly users: string[];
74
+ }
75
+ export declare function getUsergroupOutput(args?: GetUsergroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUsergroupResult>;
76
+ /**
77
+ * A collection of arguments for invoking getUsergroup.
78
+ */
79
+ export interface GetUsergroupOutputArgs {
80
+ /**
81
+ * The name of the usergroup
82
+ */
83
+ name?: pulumi.Input<string>;
84
+ /**
85
+ * The id of the usergroup
86
+ */
87
+ usergroupId?: pulumi.Input<string>;
88
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getUsergroupOutput = exports.getUsergroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to get information about a usergroups for use in other
10
+ * resources. The data source returns enabled groups only.
11
+ *
12
+ * ## Required scopes
13
+ *
14
+ * This resource requires the following scopes:
15
+ *
16
+ * - [usergroups:read](https://api.slack.com/scopes/usergroups:read)
17
+ *
18
+ * The Slack API methods used by the resource are:
19
+ *
20
+ * - [usergroups.list](https://api.slack.com/methods/usergroups.list)
21
+ *
22
+ * If you get `missingScope` errors while using this resource check the scopes against
23
+ * the documentation for the methods above.
24
+ *
25
+ * ## Example Usage
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as slack from "@pulumi/slack";
30
+ *
31
+ * const byName = pulumi.output(slack.getUsergroup({
32
+ * name: "my-usergroup",
33
+ * }));
34
+ * const byId = pulumi.output(slack.getUsergroup({
35
+ * usergroupId: "USERGROUP00",
36
+ * }));
37
+ * ```
38
+ */
39
+ function getUsergroup(args, opts) {
40
+ args = args || {};
41
+ if (!opts) {
42
+ opts = {};
43
+ }
44
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
45
+ return pulumi.runtime.invoke("slack:index/getUsergroup:getUsergroup", {
46
+ "name": args.name,
47
+ "usergroupId": args.usergroupId,
48
+ }, opts);
49
+ }
50
+ exports.getUsergroup = getUsergroup;
51
+ function getUsergroupOutput(args, opts) {
52
+ return pulumi.output(args).apply(a => getUsergroup(a, opts));
53
+ }
54
+ exports.getUsergroupOutput = getUsergroupOutput;
55
+ //# sourceMappingURL=getUsergroup.js.map
@@ -0,0 +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;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,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;AAXD,oCAWC;AA6CD,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export * from "./conversation";
2
+ export * from "./getConversation";
3
+ export * from "./getUser";
4
+ export * from "./getUsergroup";
5
+ export * from "./provider";
6
+ export * from "./usergroup";
7
+ import * as config from "./config";
8
+ export { config, };
package/index.js ADDED
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.config = void 0;
20
+ const pulumi = require("@pulumi/pulumi");
21
+ const utilities = require("./utilities");
22
+ // Export members:
23
+ __exportStar(require("./conversation"), exports);
24
+ __exportStar(require("./getConversation"), exports);
25
+ __exportStar(require("./getUser"), exports);
26
+ __exportStar(require("./getUsergroup"), exports);
27
+ __exportStar(require("./provider"), exports);
28
+ __exportStar(require("./usergroup"), exports);
29
+ // Export sub-modules:
30
+ const config = require("./config");
31
+ exports.config = config;
32
+ // Import resources to register:
33
+ const conversation_1 = require("./conversation");
34
+ const usergroup_1 = require("./usergroup");
35
+ const _module = {
36
+ version: utilities.getVersion(),
37
+ construct: (name, type, urn) => {
38
+ switch (type) {
39
+ case "slack:index/conversation:Conversation":
40
+ return new conversation_1.Conversation(name, undefined, { urn });
41
+ case "slack:index/usergroup:Usergroup":
42
+ return new usergroup_1.Usergroup(name, undefined, { urn });
43
+ default:
44
+ throw new Error(`unknown resource type ${type}`);
45
+ }
46
+ },
47
+ };
48
+ pulumi.runtime.registerResourceModule("slack", "index/conversation", _module);
49
+ pulumi.runtime.registerResourceModule("slack", "index/usergroup", _module);
50
+ const provider_1 = require("./provider");
51
+ pulumi.runtime.registerResourcePackage("slack", {
52
+ version: utilities.getVersion(),
53
+ constructProvider: (name, type, urn) => {
54
+ if (type !== "pulumi:providers:slack") {
55
+ throw new Error(`unknown provider type ${type}`);
56
+ }
57
+ return new provider_1.Provider(name, undefined, { urn });
58
+ },
59
+ });
60
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,iDAA+B;AAC/B,oDAAkC;AAClC,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,8CAA4B;AAE5B,sBAAsB;AACtB,mCAAmC;AAG/B,wBAAM;AAGV,gCAAgC;AAChC,iDAA8C;AAC9C,2CAAwC;AAExC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,uCAAuC;gBACxC,OAAO,IAAI,2BAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D,KAAK,iCAAiC;gBAClC,OAAO,IAAI,qBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AAE1E,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,EAAE;IAC5C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,wBAAwB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@pulumi/slack",
3
+ "version": "v0.0.1-alpha.1647888073+6c0a84cd",
4
+ "description": "A Pulumi package for managing Slack workspaces.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "slack",
8
+ "category/utility"
9
+ ],
10
+ "homepage": "https://www.pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-slack",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource slack v0.0.1-alpha.1647888073+6c0a84cd"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true
27
+ }
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@pulumi/slack",
3
+ "version": "${VERSION}",
4
+ "description": "A Pulumi package for managing Slack workspaces.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "slack",
8
+ "category/utility"
9
+ ],
10
+ "homepage": "https://www.pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-slack",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource slack ${VERSION}"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true
27
+ }
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@pulumi/slack",
3
+ "version": "v0.0.1-alpha.1647888073+6c0a84cd",
4
+ "description": "A Pulumi package for managing Slack workspaces.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "slack",
8
+ "category/utility"
9
+ ],
10
+ "homepage": "https://www.pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-slack",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource slack v0.0.1-alpha.1647888073+6c0a84cd"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true
27
+ }
28
+ }
package/provider.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the slack package. By default, resources use package-wide configuration
4
+ * settings, however an explicit `Provider` instance may be created and passed during resource
5
+ * construction to achieve fine-grained programmatic control over provider settings. See the
6
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
7
+ */
8
+ export declare class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is Provider;
14
+ /**
15
+ * The Slack token
16
+ */
17
+ readonly token: pulumi.Output<string>;
18
+ /**
19
+ * Create a Provider resource with the given unique name, arguments, and options.
20
+ *
21
+ * @param name The _unique_ name of the resource.
22
+ * @param args The arguments to use to populate this resource's properties.
23
+ * @param opts A bag of options that control this resource's behavior.
24
+ */
25
+ constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
26
+ }
27
+ /**
28
+ * The set of arguments for constructing a Provider resource.
29
+ */
30
+ export interface ProviderArgs {
31
+ /**
32
+ * The Slack token
33
+ */
34
+ token: pulumi.Input<string>;
35
+ }