@pipedream/zoom 0.3.3 → 0.3.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/README.md +0 -4
- package/actions/add-meeting-registrant/add-meeting-registrant.mjs +143 -0
- package/actions/add-webinar-registrant/add-webinar-registrant.mjs +143 -0
- package/actions/create-meeting/create-meeting.mjs +96 -0
- package/actions/create-user/create-user.mjs +48 -0
- package/actions/delete-user/delete-user.mjs +68 -0
- package/actions/get-meeting-details/get-meeting-details.mjs +38 -0
- package/actions/get-webinar-details/get-webinar-details.mjs +38 -0
- package/actions/list-channels/list-channels.mjs +43 -0
- package/actions/list-past-meeting-participants/list-past-meeting-participants.mjs +36 -0
- package/actions/list-past-webinar-qa/list-past-webinar-qa.mjs +31 -0
- package/actions/send-chat-message/send-chat-message.mjs +46 -0
- package/actions/update-meeting/update-meeting.mjs +101 -0
- package/actions/update-webinar/update-webinar.mjs +101 -0
- package/actions/view-user/view-user.mjs +24 -0
- package/package.json +19 -16
- package/sources/common/common.mjs +25 -0
- package/sources/common/constants.mjs +110 -0
- package/sources/custom-event/custom-event.mjs +33 -0
- package/sources/meeting-created/meeting-created.mjs +55 -0
- package/sources/meeting-deleted/meeting-deleted.mjs +38 -0
- package/sources/meeting-ended/meeting-ended.mjs +65 -0
- package/sources/meeting-started/meeting-started.mjs +59 -0
- package/sources/meeting-updated/meeting-updated.mjs +55 -0
- package/sources/phone-event/phone-event.mjs +33 -0
- package/sources/recording-completed/recording-completed.mjs +129 -0
- package/sources/webinar-created/webinar-created.mjs +55 -0
- package/sources/webinar-deleted/webinar-deleted.mjs +38 -0
- package/sources/webinar-ended/webinar-ended.mjs +60 -0
- package/sources/webinar-started/webinar-started.mjs +58 -0
- package/sources/webinar-updated/webinar-updated.mjs +55 -0
- package/zoom.app.mjs +99 -0
- package/sources/custom-event/custom-event.js +0 -91
- package/sources/meeting-created/meeting-created.js +0 -30
- package/sources/meeting-deleted/meeting-deleted.js +0 -30
- package/sources/meeting-ended/meeting-ended.js +0 -26
- package/sources/meeting-started/meeting-started.js +0 -27
- package/sources/meeting-updated/meeting-updated.js +0 -26
- package/sources/recording-completed/recording-completed.js +0 -110
- package/sources/webinar-created/webinar-created.js +0 -30
- package/sources/webinar-deleted/webinar-deleted.js +0 -30
- package/sources/webinar-ended/webinar-ended.js +0 -29
- package/sources/webinar-started/webinar-started.js +0 -30
- package/sources/webinar-updated/webinar-updated.js +0 -29
- package/zoom.app.js +0 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// legacy_hash_id: a_67iQp1
|
|
2
|
+
import { axios } from "@pipedream/platform";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-list-past-webinar-qa",
|
|
6
|
+
name: "List Past Webinar Q&A",
|
|
7
|
+
description: "The feature for Webinars allows attendees to ask questions during the Webinar and for the panelists, co-hosts and host to answer their questions. Use this API to list Q&A of a specific Webinar.",
|
|
8
|
+
version: "0.1.1",
|
|
9
|
+
type: "action",
|
|
10
|
+
props: {
|
|
11
|
+
zoom: {
|
|
12
|
+
type: "app",
|
|
13
|
+
app: "zoom",
|
|
14
|
+
},
|
|
15
|
+
webinarID: {
|
|
16
|
+
type: "string",
|
|
17
|
+
label: "Webinar ID",
|
|
18
|
+
description: "The Zoom Webinar ID of the webinar you'd like to update.",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
async run({ $ }) {
|
|
22
|
+
const config = {
|
|
23
|
+
url: `https://api.zoom.us/v2/past_webinars/${this.webinarID}/qa`,
|
|
24
|
+
headers: {
|
|
25
|
+
Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return await axios($, config);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// legacy_hash_id: a_k6iKgR
|
|
2
|
+
import { axios } from "@pipedream/platform";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-send-chat-message",
|
|
6
|
+
name: "Send Chat Message",
|
|
7
|
+
description: "Send chat messages on Zoom to either an individual user who is in your contact list or to a of which you are a member.",
|
|
8
|
+
version: "0.1.1",
|
|
9
|
+
type: "action",
|
|
10
|
+
props: {
|
|
11
|
+
zoom: {
|
|
12
|
+
type: "app",
|
|
13
|
+
app: "zoom",
|
|
14
|
+
},
|
|
15
|
+
message: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "The message to be sent.",
|
|
18
|
+
},
|
|
19
|
+
to_contact: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "The email address of the contact to whom you would like to send the message.",
|
|
22
|
+
optional: true,
|
|
23
|
+
},
|
|
24
|
+
to_channel: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "The Channel Id of the channel where you would like to send a message.",
|
|
27
|
+
optional: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
async run({ $ }) {
|
|
31
|
+
// See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/sendachatmessage
|
|
32
|
+
const config = {
|
|
33
|
+
method: "post",
|
|
34
|
+
url: "https://api.zoom.us/v2/chat/users/me/messages",
|
|
35
|
+
data: {
|
|
36
|
+
message: this.message,
|
|
37
|
+
to_contact: this.to_contact,
|
|
38
|
+
to_channel: this.to_channel,
|
|
39
|
+
},
|
|
40
|
+
headers: {
|
|
41
|
+
Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
return await axios($, config);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// legacy_hash_id: a_52iXNQ
|
|
2
|
+
import { axios } from "@pipedream/platform";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-update-meeting",
|
|
6
|
+
name: "Update Meeting",
|
|
7
|
+
description: "Updates an existing Zoom meeting",
|
|
8
|
+
version: "0.1.1",
|
|
9
|
+
type: "action",
|
|
10
|
+
props: {
|
|
11
|
+
zoom: {
|
|
12
|
+
type: "app",
|
|
13
|
+
app: "zoom",
|
|
14
|
+
},
|
|
15
|
+
meetingId: {
|
|
16
|
+
type: "string",
|
|
17
|
+
label: "Meeting ID",
|
|
18
|
+
description: "The Zoom Meeting ID of the meeting you'd like to update.",
|
|
19
|
+
},
|
|
20
|
+
topic: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Meeting topic",
|
|
23
|
+
optional: true,
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: "integer",
|
|
27
|
+
description: "Meeting type:\n1 - Instant meeting.\n2 - Scheduled meeting.\n3 - Recurring meeting with no fixed time.\n8 - Recurring meeting with fixed time.",
|
|
28
|
+
optional: true,
|
|
29
|
+
},
|
|
30
|
+
start_time: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Meeting start time. We support two formats for start_time - local time and GMT.\nTo set time as GMT the format should be yyyy-MM-ddTHH:mm:ssZ.\nTo set time using a specific timezone, use yyyy-MM-ddTHH:mm:ss format and specify the timezone ID in the timezone field OR leave it blank and the timezone set on your Zoom account will be used. You can also set the time as UTC as the timezone field.\nThe start_time should only be used for scheduled and / or recurring webinars with fixed time.",
|
|
33
|
+
optional: true,
|
|
34
|
+
},
|
|
35
|
+
duration: {
|
|
36
|
+
type: "integer",
|
|
37
|
+
description: "Meeting duration (minutes). Used for scheduled meetings only.",
|
|
38
|
+
optional: true,
|
|
39
|
+
},
|
|
40
|
+
timezone: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Time zone to format start_time. For example, America/Los_Angeles. For scheduled meetings only. Please reference our time [zone list](https://marketplace.zoom.us/docs/api-reference/other-references/abbreviation-lists#timezones) for supported time zones and their formats.",
|
|
43
|
+
optional: true,
|
|
44
|
+
},
|
|
45
|
+
password: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Password to join the meeting. Password may only contain the following characters: [a-z A-Z 0-9 @ - _ *]. Max of 10 characters.",
|
|
48
|
+
optional: true,
|
|
49
|
+
},
|
|
50
|
+
agenda: {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Meeting description.",
|
|
53
|
+
optional: true,
|
|
54
|
+
},
|
|
55
|
+
tracking_fields: {
|
|
56
|
+
type: "any",
|
|
57
|
+
description: "Tracking fields.",
|
|
58
|
+
optional: true,
|
|
59
|
+
},
|
|
60
|
+
recurrence: {
|
|
61
|
+
type: "object",
|
|
62
|
+
description: "Recurrence object",
|
|
63
|
+
optional: true,
|
|
64
|
+
},
|
|
65
|
+
settings: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Meeting settings.",
|
|
68
|
+
optional: true,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
async run({ $ }) {
|
|
72
|
+
// API docs: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
|
|
73
|
+
const config = {
|
|
74
|
+
method: "PATCH",
|
|
75
|
+
url: `https://api.zoom.us/v2/meetings/${this.meetingId}`,
|
|
76
|
+
data: {
|
|
77
|
+
topic: this.topic,
|
|
78
|
+
type: this.type,
|
|
79
|
+
start_time: this.start_time,
|
|
80
|
+
duration: this.duration,
|
|
81
|
+
timezone: this.timezone,
|
|
82
|
+
password: this.password,
|
|
83
|
+
agenda: this.agenda,
|
|
84
|
+
tracking_fields: typeof this.tracking_fields == "undefined"
|
|
85
|
+
? this.tracking_fields
|
|
86
|
+
: JSON.parse(this.tracking_fields),
|
|
87
|
+
recurrence: typeof this.recurrence == "undefined"
|
|
88
|
+
? this.recurrence
|
|
89
|
+
: JSON.parse(this.recurrence),
|
|
90
|
+
settings: typeof this.settings == "undefined"
|
|
91
|
+
? this.settings
|
|
92
|
+
: JSON.parse(this.settings),
|
|
93
|
+
},
|
|
94
|
+
headers: {
|
|
95
|
+
"Authorization": `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
return await axios($, config);
|
|
100
|
+
},
|
|
101
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// legacy_hash_id: a_Q3irlY
|
|
2
|
+
import { axios } from "@pipedream/platform";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-update-webinar",
|
|
6
|
+
name: "Update Webinar",
|
|
7
|
+
description: "Update a webinar's topic, start time, or other settings",
|
|
8
|
+
version: "0.1.1",
|
|
9
|
+
type: "action",
|
|
10
|
+
props: {
|
|
11
|
+
zoom: {
|
|
12
|
+
type: "app",
|
|
13
|
+
app: "zoom",
|
|
14
|
+
},
|
|
15
|
+
webinarID: {
|
|
16
|
+
type: "string",
|
|
17
|
+
label: "Webinar ID",
|
|
18
|
+
description: "The Zoom Webinar ID of the webinar you'd like to update.",
|
|
19
|
+
},
|
|
20
|
+
topic: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Webinar topic",
|
|
23
|
+
optional: true,
|
|
24
|
+
},
|
|
25
|
+
type: {
|
|
26
|
+
type: "integer",
|
|
27
|
+
description: "Webinar type:\n1 - Instant webinar.\n2 - Scheduled webinar.\n3 - Recurring webinar with no fixed time.\n8 - Recurring webinar with fixed time.",
|
|
28
|
+
optional: true,
|
|
29
|
+
},
|
|
30
|
+
start_time: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Webinar start time. We support two formats for start_time - local time and GMT.\nTo set time as GMT the format should be yyyy-MM-ddTHH:mm:ssZ.\nTo set time using a specific timezone, use yyyy-MM-ddTHH:mm:ss format and specify the timezone ID in the timezone field OR leave it blank and the timezone set on your Zoom account will be used. You can also set the time as UTC as the timezone field.\nThe start_time should only be used for scheduled and / or recurring webinars with fixed time.",
|
|
33
|
+
optional: true,
|
|
34
|
+
},
|
|
35
|
+
duration: {
|
|
36
|
+
type: "integer",
|
|
37
|
+
description: "Webinar duration (minutes). Used for scheduled webinars only.",
|
|
38
|
+
optional: true,
|
|
39
|
+
},
|
|
40
|
+
timezone: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Time zone to format start_time. For example, America/Los_Angeles. For scheduled webinars only. Please reference our time [zone list](https://marketplace.zoom.us/docs/api-reference/other-references/abbreviation-lists#timezones) for supported time zones and their formats.",
|
|
43
|
+
optional: true,
|
|
44
|
+
},
|
|
45
|
+
password: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Password to join the webinar. Password may only contain the following characters: [a-z A-Z 0-9 @ - _ *]. Max of 10 characters.",
|
|
48
|
+
optional: true,
|
|
49
|
+
},
|
|
50
|
+
agenda: {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Webinar description.",
|
|
53
|
+
optional: true,
|
|
54
|
+
},
|
|
55
|
+
tracking_fields: {
|
|
56
|
+
type: "any",
|
|
57
|
+
description: "Tracking fields.",
|
|
58
|
+
optional: true,
|
|
59
|
+
},
|
|
60
|
+
recurrence: {
|
|
61
|
+
type: "object",
|
|
62
|
+
description: "Recurrence object",
|
|
63
|
+
optional: true,
|
|
64
|
+
},
|
|
65
|
+
settings: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Webinar settings.",
|
|
68
|
+
optional: true,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
async run({ $ }) {
|
|
72
|
+
// API docs: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
|
|
73
|
+
const config = {
|
|
74
|
+
method: "PATCH",
|
|
75
|
+
url: `https://api.zoom.us/v2/webinars/${this.webinarID}`,
|
|
76
|
+
data: {
|
|
77
|
+
topic: this.topic,
|
|
78
|
+
type: this.type,
|
|
79
|
+
start_time: this.start_time,
|
|
80
|
+
duration: this.duration,
|
|
81
|
+
timezone: this.timezone,
|
|
82
|
+
password: this.password,
|
|
83
|
+
agenda: this.agenda,
|
|
84
|
+
tracking_fields: typeof this.tracking_fields == "undefined"
|
|
85
|
+
? this.tracking_fields
|
|
86
|
+
: JSON.parse(this.tracking_fields),
|
|
87
|
+
recurrence: typeof this.recurrence == "undefined"
|
|
88
|
+
? this.recurrence
|
|
89
|
+
: JSON.parse(this.recurrence),
|
|
90
|
+
settings: typeof this.settings == "undefined"
|
|
91
|
+
? this.settings
|
|
92
|
+
: JSON.parse(this.settings),
|
|
93
|
+
},
|
|
94
|
+
headers: {
|
|
95
|
+
"Authorization": `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
return await axios($, config);
|
|
100
|
+
},
|
|
101
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// legacy_hash_id: a_Q3iw4N
|
|
2
|
+
import { axios } from "@pipedream/platform";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-view-user",
|
|
6
|
+
name: "View User",
|
|
7
|
+
description: "View your user information",
|
|
8
|
+
version: "0.1.1",
|
|
9
|
+
type: "action",
|
|
10
|
+
props: {
|
|
11
|
+
zoom: {
|
|
12
|
+
type: "app",
|
|
13
|
+
app: "zoom",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
async run({ $ }) {
|
|
17
|
+
return await axios($, {
|
|
18
|
+
url: "https://api.zoom.us/v2/users/me",
|
|
19
|
+
headers: {
|
|
20
|
+
Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@pipedream/zoom",
|
|
3
|
+
"version": "0.3.4",
|
|
4
|
+
"description": "Pipedream Zoom Components",
|
|
5
|
+
"main": "zoom.app.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pipedream",
|
|
8
|
+
"zoom"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://pipedream.com/apps/zoom",
|
|
11
|
+
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@pipedream/platform": "^1.1.0"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import zoom from "../../zoom.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
props: {
|
|
5
|
+
zoom,
|
|
6
|
+
},
|
|
7
|
+
methods: {
|
|
8
|
+
sortByDate(objects, field) {
|
|
9
|
+
return objects.sort((a, b) => (Date.parse(a[field]) > Date.parse(b[field]))
|
|
10
|
+
? 1
|
|
11
|
+
: -1);
|
|
12
|
+
},
|
|
13
|
+
monthAgo() {
|
|
14
|
+
const now = new Date();
|
|
15
|
+
const monthAgo = new Date(now.getTime());
|
|
16
|
+
monthAgo.setMonth(monthAgo.getMonth() - 1);
|
|
17
|
+
return monthAgo.toISOString().slice(0, 10);
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
async run(event) {
|
|
21
|
+
const { payload } = event;
|
|
22
|
+
const { object } = payload;
|
|
23
|
+
this.emitEvent(payload, object);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const CUSTOM_EVENT_TYPES = [
|
|
2
|
+
"meeting.alert",
|
|
3
|
+
"meeting.created.by_me",
|
|
4
|
+
"meeting.created.for_me",
|
|
5
|
+
"meeting.updated",
|
|
6
|
+
"meeting.deleted.by_me",
|
|
7
|
+
"meeting.deleted.for_me",
|
|
8
|
+
"meeting.started",
|
|
9
|
+
"meeting.ended",
|
|
10
|
+
"meeting.registration_created",
|
|
11
|
+
"meeting.registration_approved",
|
|
12
|
+
"meeting.registration_cancelled",
|
|
13
|
+
"meeting.registration_denied",
|
|
14
|
+
"meeting.sharing_started.host",
|
|
15
|
+
"meeting.sharing_started.participant",
|
|
16
|
+
"meeting.sharing_ended.host",
|
|
17
|
+
"meeting.sharing_ended.participant",
|
|
18
|
+
"meeting.participant_jbh_joined",
|
|
19
|
+
"meeting.participant_jbh_waiting",
|
|
20
|
+
"meeting.participant_joined",
|
|
21
|
+
"meeting.participant_left",
|
|
22
|
+
"meeting.participant_joined_waiting_room",
|
|
23
|
+
"meeting.participant_admitted",
|
|
24
|
+
"meeting.participant_put_in_waiting_room",
|
|
25
|
+
"meeting.participant_left_waiting_room",
|
|
26
|
+
"recording.started",
|
|
27
|
+
"recording.paused",
|
|
28
|
+
"recording.resumed",
|
|
29
|
+
"recording.stopped",
|
|
30
|
+
"recording.completed",
|
|
31
|
+
"recording.trashed.by_me",
|
|
32
|
+
"recording.trashed.for_me",
|
|
33
|
+
"recording.deleted.by_me",
|
|
34
|
+
"recording.deleted.for_me",
|
|
35
|
+
"recording.recovered.by_me",
|
|
36
|
+
"recording.recovered.for_me",
|
|
37
|
+
"recording.transcript_completed",
|
|
38
|
+
"recording.registration_created",
|
|
39
|
+
"recording.registration_approved",
|
|
40
|
+
"recording.registration_denied",
|
|
41
|
+
"user.updated",
|
|
42
|
+
"user.settings_updated",
|
|
43
|
+
"user.signed_in",
|
|
44
|
+
"user.signed_out",
|
|
45
|
+
"webinar.created.by_me",
|
|
46
|
+
"webinar.created.for_me",
|
|
47
|
+
"webinar.updated",
|
|
48
|
+
"webinar.started",
|
|
49
|
+
"webinar.ended",
|
|
50
|
+
"webinar.alert",
|
|
51
|
+
"webinar.sharing_started.host",
|
|
52
|
+
"webinar.sharing_started.participant",
|
|
53
|
+
"webinar.sharing_ended",
|
|
54
|
+
"webinar.registration_created",
|
|
55
|
+
"webinar.registration_approved",
|
|
56
|
+
"webinar.registration_denied",
|
|
57
|
+
"webinar.registration_cancelled",
|
|
58
|
+
"webinar.participant_joined",
|
|
59
|
+
"webinar.participant_left",
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
const PHONE_EVENT_TYPES = [
|
|
63
|
+
"phone.call_log_deleted",
|
|
64
|
+
"phone.call_log_permanently_deleted",
|
|
65
|
+
"phone.callee_answered",
|
|
66
|
+
"phone.callee_call_log_completed",
|
|
67
|
+
"phone.callee_ended",
|
|
68
|
+
"phone.callee_hold",
|
|
69
|
+
"phone.callee_meeting_inviting",
|
|
70
|
+
"phone.callee_missed",
|
|
71
|
+
"phone.callee_mute",
|
|
72
|
+
"phone.callee_rejected",
|
|
73
|
+
"phone.callee_ringing",
|
|
74
|
+
"phone.callee_unhold",
|
|
75
|
+
"phone.callee_unmute",
|
|
76
|
+
"phone.caller_call_log_completed",
|
|
77
|
+
"phone.caller_connected",
|
|
78
|
+
"phone.caller_ended",
|
|
79
|
+
"phone.caller_hold",
|
|
80
|
+
"phone.caller_meeting_inviting",
|
|
81
|
+
"phone.caller_mute",
|
|
82
|
+
"phone.caller_ringing",
|
|
83
|
+
"phone.caller_unhold",
|
|
84
|
+
"phone.caller_unmute",
|
|
85
|
+
"phone.device_registration",
|
|
86
|
+
"phone.emergency_alert",
|
|
87
|
+
"phone.generic_device_provision",
|
|
88
|
+
"phone.peering_number_cnam_updated",
|
|
89
|
+
"phone.peering_number_emergency_address_updated",
|
|
90
|
+
"phone.recording_completed",
|
|
91
|
+
"phone.recording_deleted",
|
|
92
|
+
"phone.recording_paused",
|
|
93
|
+
"phone.recording_permanently_deleted",
|
|
94
|
+
"phone.recording_resumed",
|
|
95
|
+
"phone.recording_started",
|
|
96
|
+
"phone.recording_stopped",
|
|
97
|
+
"phone.recording_transcript_completed",
|
|
98
|
+
"phone.sms_received",
|
|
99
|
+
"phone.sms_sent",
|
|
100
|
+
"phone.voicemail_deleted",
|
|
101
|
+
"phone.voicemail_permanently_deleted",
|
|
102
|
+
"phone.voicemail_received",
|
|
103
|
+
"phone.voicemail_transcript_completed",
|
|
104
|
+
"phone.warm_transfer_accepted",
|
|
105
|
+
];
|
|
106
|
+
|
|
107
|
+
export default {
|
|
108
|
+
CUSTOM_EVENT_TYPES,
|
|
109
|
+
PHONE_EVENT_TYPES,
|
|
110
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import zoom from "../../zoom.app.mjs";
|
|
2
|
+
import constants from "../common/constants.mjs";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
key: "zoom-custom-event",
|
|
6
|
+
name: "Custom Events (Instant)",
|
|
7
|
+
description: "Listen for any events tied to your Zoom user or resources you own",
|
|
8
|
+
version: "0.0.6",
|
|
9
|
+
type: "source",
|
|
10
|
+
props: {
|
|
11
|
+
zoom,
|
|
12
|
+
eventNameOptions: {
|
|
13
|
+
label: "Zoom Events",
|
|
14
|
+
type: "string[]",
|
|
15
|
+
options: constants.CUSTOM_EVENT_TYPES,
|
|
16
|
+
},
|
|
17
|
+
zoomApphook: {
|
|
18
|
+
type: "$.interface.apphook",
|
|
19
|
+
appProp: "zoom",
|
|
20
|
+
async eventNames() {
|
|
21
|
+
return this.eventNameOptions;
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
async run(event) {
|
|
26
|
+
console.log(event);
|
|
27
|
+
this.$emit(event, {
|
|
28
|
+
id: event.payload?.object?.id,
|
|
29
|
+
summary: event.event,
|
|
30
|
+
ts: Date.now(),
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import common from "../common/common.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "zoom-meeting-created",
|
|
6
|
+
name: "Meeting Created (Instant)",
|
|
7
|
+
description: "Emit new event each time a meeting is created where you're the host",
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
type: "source",
|
|
10
|
+
dedupe: "unique", // Dedupe based on meeting ID
|
|
11
|
+
props: {
|
|
12
|
+
...common.props,
|
|
13
|
+
zoomApphook: {
|
|
14
|
+
type: "$.interface.apphook",
|
|
15
|
+
appProp: "zoom",
|
|
16
|
+
eventNames: [
|
|
17
|
+
"meeting.created.by_me",
|
|
18
|
+
"meeting.created.for_me",
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
hooks: {
|
|
23
|
+
async deploy() {
|
|
24
|
+
const { meetings } = await this.zoom.listMeetings({
|
|
25
|
+
page_size: 25,
|
|
26
|
+
});
|
|
27
|
+
if (!meetings || meetings.length === 0) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const objects = this.sortByDate(meetings, "created_at");
|
|
31
|
+
for (const object of objects) {
|
|
32
|
+
this.emitEvent({
|
|
33
|
+
object,
|
|
34
|
+
}, object);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
...common.methods,
|
|
40
|
+
emitEvent(payload, object) {
|
|
41
|
+
const meta = this.generateMeta(object);
|
|
42
|
+
this.$emit({
|
|
43
|
+
event: "meeting.created",
|
|
44
|
+
payload,
|
|
45
|
+
}, meta);
|
|
46
|
+
},
|
|
47
|
+
generateMeta(object) {
|
|
48
|
+
return {
|
|
49
|
+
id: object.uuid,
|
|
50
|
+
summary: `Meeting ${object.topic} created`,
|
|
51
|
+
ts: +new Date(object.start_time),
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import common from "../common/common.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "zoom-meeting-deleted",
|
|
6
|
+
name: "Meeting Deleted (Instant)",
|
|
7
|
+
description: "Emit new event each time a meeting is deleted where you're the host",
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
type: "source",
|
|
10
|
+
dedupe: "unique", // Dedupe based on meeting ID
|
|
11
|
+
props: {
|
|
12
|
+
...common.props,
|
|
13
|
+
zoomApphook: {
|
|
14
|
+
type: "$.interface.apphook",
|
|
15
|
+
appProp: "zoom",
|
|
16
|
+
eventNames: [
|
|
17
|
+
"meeting.deleted.by_me",
|
|
18
|
+
"meeting.deleted.for_me",
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
emitEvent(payload, object) {
|
|
24
|
+
const meta = this.generateMeta(object);
|
|
25
|
+
this.$emit({
|
|
26
|
+
event: "meeting.deleted",
|
|
27
|
+
payload,
|
|
28
|
+
}, meta);
|
|
29
|
+
},
|
|
30
|
+
generateMeta(object) {
|
|
31
|
+
return {
|
|
32
|
+
id: object.uuid,
|
|
33
|
+
summary: `Meeting ${object.topic} deleted`,
|
|
34
|
+
ts: +new Date(object.start_time),
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import common from "../common/common.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "zoom-meeting-ended",
|
|
6
|
+
name: "Meeting Ended (Instant)",
|
|
7
|
+
description: "Emit new event each time a meeting ends where you're the host",
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
type: "source",
|
|
10
|
+
dedupe: "unique", // Dedupe based on meeting ID
|
|
11
|
+
props: {
|
|
12
|
+
...common.props,
|
|
13
|
+
zoomApphook: {
|
|
14
|
+
type: "$.interface.apphook",
|
|
15
|
+
appProp: "zoom",
|
|
16
|
+
eventNames: [
|
|
17
|
+
"meeting.ended",
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
hooks: {
|
|
22
|
+
async deploy() {
|
|
23
|
+
const { meetings } = await this.zoom.listMeetings({
|
|
24
|
+
page_size: 25,
|
|
25
|
+
type: "previous_meetings",
|
|
26
|
+
});
|
|
27
|
+
if (!meetings || meetings.length === 0) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const detailedMeetings = [];
|
|
31
|
+
for (const meeting of meetings) {
|
|
32
|
+
try {
|
|
33
|
+
const details = await this.zoom.getPastMeetingDetails(meeting.id);
|
|
34
|
+
detailedMeetings.push(details);
|
|
35
|
+
} catch {
|
|
36
|
+
// catch error thrown by getPastMeetingDetails if meeting has not ended
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const objects = this.sortByDate(detailedMeetings, "end_time");
|
|
41
|
+
for (const object of objects) {
|
|
42
|
+
this.emitEvent({
|
|
43
|
+
object,
|
|
44
|
+
}, object);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
...common.methods,
|
|
50
|
+
emitEvent(payload, object) {
|
|
51
|
+
const meta = this.generateMeta(object);
|
|
52
|
+
this.$emit({
|
|
53
|
+
event: "meeting.ended",
|
|
54
|
+
payload,
|
|
55
|
+
}, meta);
|
|
56
|
+
},
|
|
57
|
+
generateMeta(object) {
|
|
58
|
+
return {
|
|
59
|
+
id: object.uuid,
|
|
60
|
+
summary: `Meeting ${object.topic} ended`,
|
|
61
|
+
ts: +new Date(object.end_time),
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|