-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.json
94 lines (94 loc) · 2.72 KB
/
manifest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"v2": {
"transposit": {
"dependencies": [{
"name": "transposit/slack:v2.*.*",
"alias": "slack",
"title": "Slack",
"description": "Authorize this connector if you want to use the Slack API."
}],
"operations": [{
"id": "get_channels_list",
"tql": {
"tql": "SELECT id,name FROM slack.get_channels_list\n WHERE exclude_members=true\n AND exclude_archived=true"
}
}, {
"id": "find_and_post_new_channels",
"function": {
"js": "find_and_post_new_channels.js",
"lang": "js"
}
}, {
"id": "post_chat_message",
"tql": {
"parameters": [{
"name": "new_channel_announcement_channel",
"description": "New channel announcement channel",
"type": "STRING",
"required": true
}, {
"name": "list_of_formatted_channel_ids",
"description": "list of new channels in <#id>, <#id> format",
"type": "STRING",
"required": true
}],
"tql": "SELECT * FROM slack.post_chat_message\n WHERE $body=(SELECT {\n 'channel' : @new_channel_announcement_channel,\n 'text' : 'New channel(s): '+@list_of_formatted_channel_ids\n })\n"
}
}, {
"id": "scheduled_job",
"function": {
"js": "scheduled_job.js",
"lang": "js"
}
}],
"dataConnections": [{
"ref": "slack_identify.raw",
"overrides": {
"swagger": {
"oauthConfig": {
"scope": "identity.basic"
},
"executionLimits": {
}
}
},
"title": "Slack",
"description": "Used to identify you on Slack"
}, {
"ref": "slack_bot.raw",
"overrides": {
"swagger": {
"oauthConfig": {
"scope": "chat:write:bot"
},
"executionLimits": {
}
}
}
}, {
"ref": "slack.raw",
"requireConsumerSignin": true,
"overrides": {
"swagger": {
"oauthConfig": {
"scope": "channels:read chat:write:bot"
},
"executionLimits": {
}
}
},
"title": "Slack",
"description": "Authorize this connector to post new channels"
}],
"javascriptAPIVersion": "3",
"source": "src",
"userSettings": [{
"name": "ann_channel_name",
"type": "STRING"
}],
"userSettingsDisplay": "GENERATED"
},
"description": "This slack app will post new channels to a specified announcement channel",
"displayName": "New channel notifier"
}
}