@pipedream/slack_v2 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack_v2-list-channels",
5
5
  name: "List Channels",
6
6
  description: "Return a list of all channels in a workspace. [See the documentation](https://api.slack.com/methods/conversations.list)",
7
- version: "0.0.25",
7
+ version: "0.1.0",
8
8
  annotations: {
9
9
  destructiveHint: false,
10
10
  openWorldHint: true,
@@ -13,6 +13,27 @@ export default {
13
13
  type: "action",
14
14
  props: {
15
15
  slack,
16
+ channelTypes: {
17
+ type: "string",
18
+ label: "Channel Types",
19
+ description: "The types of channels to list. Select `public` for public channels only, `private` for private channels only, or `all` for both public and private channels.",
20
+ options: [
21
+ {
22
+ label: "Public Channels",
23
+ value: "public_channel",
24
+ },
25
+ {
26
+ label: "Private Channels",
27
+ value: "private_channel",
28
+ },
29
+ {
30
+ label: "All (Public + Private)",
31
+ value: "public_channel,private_channel",
32
+ },
33
+ ],
34
+ default: "public_channel",
35
+ optional: true,
36
+ },
16
37
  pageSize: {
17
38
  propDefinition: [
18
39
  slack,
@@ -30,6 +51,7 @@ export default {
30
51
  const allChannels = [];
31
52
  const params = {
32
53
  limit: this.pageSize,
54
+ types: this.channelTypes,
33
55
  };
34
56
  let page = 0;
35
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/slack_v2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pipedream Slack_v2 Components",
5
5
  "main": "slack_v2.app.mjs",
6
6
  "keywords": [