@pipedream/zoom 0.3.2 → 0.3.5
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
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const zoom = require("../../zoom.app.js");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-custom-events",
|
|
5
|
-
name: "Custom Events",
|
|
6
|
-
description:
|
|
7
|
-
"Listen for any events tied to your Zoom user or resources you own",
|
|
8
|
-
version: "0.0.3",
|
|
9
|
-
props: {
|
|
10
|
-
zoom,
|
|
11
|
-
eventNameOptions: {
|
|
12
|
-
label: "Zoom Events",
|
|
13
|
-
type: "string[]",
|
|
14
|
-
async options() {
|
|
15
|
-
return [
|
|
16
|
-
"meeting.alert",
|
|
17
|
-
"meeting.created.by_me",
|
|
18
|
-
"meeting.created.for_me",
|
|
19
|
-
"meeting.updated",
|
|
20
|
-
"meeting.deleted.by_me",
|
|
21
|
-
"meeting.deleted.for_me",
|
|
22
|
-
"meeting.started",
|
|
23
|
-
"meeting.ended",
|
|
24
|
-
"meeting.registration_created",
|
|
25
|
-
"meeting.registration_approved",
|
|
26
|
-
"meeting.registration_cancelled",
|
|
27
|
-
"meeting.registration_denied",
|
|
28
|
-
"meeting.sharing_started.host",
|
|
29
|
-
"meeting.sharing_started.participant",
|
|
30
|
-
"meeting.sharing_ended.host",
|
|
31
|
-
"meeting.sharing_ended.participant",
|
|
32
|
-
"meeting.participant_jbh_joined",
|
|
33
|
-
"meeting.participant_jbh_waiting",
|
|
34
|
-
"meeting.participant_joined",
|
|
35
|
-
"meeting.participant_left",
|
|
36
|
-
"meeting.participant_joined_waiting_room",
|
|
37
|
-
"meeting.participant_admitted",
|
|
38
|
-
"meeting.participant_put_in_waiting_room",
|
|
39
|
-
"meeting.participant_left_waiting_room",
|
|
40
|
-
"recording.started",
|
|
41
|
-
"recording.paused",
|
|
42
|
-
"recording.resumed",
|
|
43
|
-
"recording.stopped",
|
|
44
|
-
"recording.completed",
|
|
45
|
-
"recording.trashed.by_me",
|
|
46
|
-
"recording.trashed.for_me",
|
|
47
|
-
"recording.deleted.by_me",
|
|
48
|
-
"recording.deleted.for_me",
|
|
49
|
-
"recording.recovered.by_me",
|
|
50
|
-
"recording.recovered.for_me",
|
|
51
|
-
"recording.transcript_completed",
|
|
52
|
-
"recording.registration_created",
|
|
53
|
-
"recording.registration_approved",
|
|
54
|
-
"recording.registration_denied",
|
|
55
|
-
"user.updated",
|
|
56
|
-
"user.settings_updated",
|
|
57
|
-
"user.signed_in",
|
|
58
|
-
"user.signed_out",
|
|
59
|
-
"webinar.created.by_me",
|
|
60
|
-
"webinar.created.for_me",
|
|
61
|
-
"webinar.updated",
|
|
62
|
-
"webinar.started",
|
|
63
|
-
"webinar.ended",
|
|
64
|
-
"webinar.alert",
|
|
65
|
-
"webinar.sharing_started.host",
|
|
66
|
-
"webinar.sharing_started.participant",
|
|
67
|
-
"webinar.sharing_ended",
|
|
68
|
-
"webinar.registration_created",
|
|
69
|
-
"webinar.registration_approved",
|
|
70
|
-
"webinar.registration_denied",
|
|
71
|
-
"webinar.registration_cancelled",
|
|
72
|
-
"webinar.participant_joined",
|
|
73
|
-
"webinar.participant_left",
|
|
74
|
-
];
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
zoomApphook: {
|
|
78
|
-
type: "$.interface.apphook",
|
|
79
|
-
appProp: "zoom",
|
|
80
|
-
async eventNames() {
|
|
81
|
-
return this.eventNameOptions;
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
async run(event) {
|
|
86
|
-
console.log(event);
|
|
87
|
-
this.$emit(event, {
|
|
88
|
-
summary: event.event,
|
|
89
|
-
});
|
|
90
|
-
},
|
|
91
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-meeting-created",
|
|
5
|
-
name: "Meeting Created",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a meeting is created where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["meeting.created.by_me", "meeting.created.for_me"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "meeting.created", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: `Meeting ${object.topic} created`,
|
|
25
|
-
id: object.uuid,
|
|
26
|
-
ts: +new Date(object.start_time),
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-meeting-deleted",
|
|
5
|
-
name: "Meeting Deleted",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a meeting is deleted where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["meeting.deleted.by_me", "meeting.deleted.for_me"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "meeting.deleted", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: `Meeting ${object.topic} deleted`,
|
|
25
|
-
id: object.uuid,
|
|
26
|
-
ts: +new Date(object.start_time),
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-meeting-ended",
|
|
5
|
-
name: "Meeting Ended",
|
|
6
|
-
description: "Emits an event each time a meeting ends where you're the host",
|
|
7
|
-
version: "0.0.2",
|
|
8
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
9
|
-
props: {
|
|
10
|
-
zoom,
|
|
11
|
-
zoomApphook: {
|
|
12
|
-
type: "$.interface.apphook",
|
|
13
|
-
appProp: "zoom",
|
|
14
|
-
eventNames: ["meeting.ended"],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
async run(event) {
|
|
18
|
-
const { payload } = event;
|
|
19
|
-
const { object } = payload;
|
|
20
|
-
this.$emit(event, {
|
|
21
|
-
summary: `Meeting ${object.topic} ended`,
|
|
22
|
-
id: object.uuid,
|
|
23
|
-
ts: +new Date(object.end_time),
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-meeting-started",
|
|
5
|
-
name: "Meeting Started",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a meeting starts where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["meeting.started"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(event, {
|
|
22
|
-
summary: `Meeting ${object.topic} started`,
|
|
23
|
-
id: object.uuid,
|
|
24
|
-
ts: +new Date(object.start_time),
|
|
25
|
-
});
|
|
26
|
-
},
|
|
27
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-meeting-updated",
|
|
5
|
-
name: "Meeting Updated",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a meeting is updated where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // dedupe on the meeting ID + timestamp
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["meeting.updated"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(event, {
|
|
22
|
-
summary: `Meeting ${object.id} updated`,
|
|
23
|
-
id: `${object.id}-${payload.time_stamp}`,
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
const axios = require('axios')
|
|
2
|
-
const zoom = require('../../zoom.app.js')
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
key: "zoom-recording-completed",
|
|
6
|
-
name: "Recording Completed",
|
|
7
|
-
description:
|
|
8
|
-
"Emits an event each time a new recording completes for a meeting or webinar where you're the host",
|
|
9
|
-
version: "0.0.3",
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["recording.completed"],
|
|
16
|
-
},
|
|
17
|
-
meetingIds: {
|
|
18
|
-
type: "integer[]",
|
|
19
|
-
label: "Meeting Filter",
|
|
20
|
-
description: "Optionally filter for events for one or more meetings.",
|
|
21
|
-
async options({ page }) {
|
|
22
|
-
const data = await this.listMeetings(page)
|
|
23
|
-
return data.meetings.map(meeting => {
|
|
24
|
-
return {
|
|
25
|
-
label: `${meeting.topic} (${meeting.id})`,
|
|
26
|
-
value: meeting.id,
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
},
|
|
30
|
-
optional: true,
|
|
31
|
-
},
|
|
32
|
-
includeAudioRecordings: {
|
|
33
|
-
type: "boolean",
|
|
34
|
-
label: "Include Audio Recordings",
|
|
35
|
-
description:
|
|
36
|
-
"This source emits video (MP4) recordings only by default. Set this prop to true to include audio recordings",
|
|
37
|
-
optional: true,
|
|
38
|
-
default: false,
|
|
39
|
-
},
|
|
40
|
-
includeChatTranscripts: {
|
|
41
|
-
type: "boolean",
|
|
42
|
-
label: "Include Chat Transcripts",
|
|
43
|
-
description:
|
|
44
|
-
"This source emits video (MP4) recordings only by default. Set this prop to `true` to include chat transcripts",
|
|
45
|
-
optional: true,
|
|
46
|
-
default: false,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
async listMeetings({ page }){
|
|
51
|
-
const config = {
|
|
52
|
-
method: "get",
|
|
53
|
-
url: `https://api.zoom.us/v2//users/me/meetings`,
|
|
54
|
-
headers: {
|
|
55
|
-
Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`
|
|
56
|
-
},
|
|
57
|
-
params: {
|
|
58
|
-
page_number: page + 1,
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return (await axios(config)).data
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
async run(event) {
|
|
65
|
-
if (event.event !== "recording.completed") {
|
|
66
|
-
console.log("Not a recording.completed event. Exiting");
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const { payload } = event;
|
|
70
|
-
const { object, download_token } = payload;
|
|
71
|
-
const { recording_files, host_id, host_email } = object;
|
|
72
|
-
if (!recording_files || recording_files.length === 0) {
|
|
73
|
-
console.log("No files in recording. Exiting");
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if(this.meetingIds.length > 0 && !this.meetingIds.includes(object.id)) {
|
|
78
|
-
console.log('Meeting ID does not match the filter rules.')
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
for (const file of recording_files) {
|
|
83
|
-
if (file.status !== "completed") continue;
|
|
84
|
-
|
|
85
|
-
if (file.file_type === "M4A" && !this.includeAudioRecordings) {
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
if (file.file_type === "CHAT" && !this.includeChatTranscripts) {
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.$emit(
|
|
93
|
-
{
|
|
94
|
-
download_url_with_token: `${file.download_url}?access_token=${download_token}`,
|
|
95
|
-
download_token,
|
|
96
|
-
...file,
|
|
97
|
-
meeting_id_long: object.id, // Long ID is necessary for certain API operations
|
|
98
|
-
meeting_topic: object.topic,
|
|
99
|
-
host_id,
|
|
100
|
-
host_email,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
summary: `${object.topic} — ${file.file_type}`,
|
|
104
|
-
id: file.id,
|
|
105
|
-
ts: +new Date(file.recording_end),
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-webinar-created",
|
|
5
|
-
name: "Webinar Created",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a webinar is created where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["webinar.created.by_me", "webinar.created.for_me"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "webinar.created", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: object.topic,
|
|
25
|
-
id: object.uuid,
|
|
26
|
-
ts: +new Date(object.start_time),
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-webinar-deleted",
|
|
5
|
-
name: "Webinar Deleted",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a webinar is deleted where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["webinar.deleted.by_me", "webinar.deleted.for_me"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "webinar.deleted", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: object.topic,
|
|
25
|
-
id: object.uuid,
|
|
26
|
-
ts: +new Date(object.start_time),
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-webinar-ended",
|
|
5
|
-
name: "Webinar Ended",
|
|
6
|
-
description: "Emits an event each time a webinar ends where you're the host",
|
|
7
|
-
version: "0.0.2",
|
|
8
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
9
|
-
props: {
|
|
10
|
-
zoom,
|
|
11
|
-
zoomApphook: {
|
|
12
|
-
type: "$.interface.apphook",
|
|
13
|
-
appProp: "zoom",
|
|
14
|
-
eventNames: ["webinar.ended"],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
async run(event) {
|
|
18
|
-
const { payload } = event;
|
|
19
|
-
const { object } = payload;
|
|
20
|
-
this.$emit(
|
|
21
|
-
{ event: "webinar.ended", payload },
|
|
22
|
-
{
|
|
23
|
-
summary: object.topic,
|
|
24
|
-
id: object.uuid,
|
|
25
|
-
ts: +new Date(object.start_time),
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
},
|
|
29
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-webinar-started",
|
|
5
|
-
name: "Webinar Started",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a webinar starts where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["webinar.started"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "webinar.started", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: object.topic,
|
|
25
|
-
id: object.uuid,
|
|
26
|
-
ts: +new Date(object.start_time),
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const zoom = require('../../zoom.app.js')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
key: "zoom-webinar-updated",
|
|
5
|
-
name: "Webinar Updated",
|
|
6
|
-
description:
|
|
7
|
-
"Emits an event each time a webinar is updated where you're the host",
|
|
8
|
-
version: "0.0.2",
|
|
9
|
-
dedupe: "unique", // Dedupe based on meeting ID
|
|
10
|
-
props: {
|
|
11
|
-
zoom,
|
|
12
|
-
zoomApphook: {
|
|
13
|
-
type: "$.interface.apphook",
|
|
14
|
-
appProp: "zoom",
|
|
15
|
-
eventNames: ["webinar.updated"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
async run(event) {
|
|
19
|
-
const { payload } = event;
|
|
20
|
-
const { object } = payload;
|
|
21
|
-
this.$emit(
|
|
22
|
-
{ event: "webinar.updated", payload },
|
|
23
|
-
{
|
|
24
|
-
summary: `Webinar ${object.id} updated`,
|
|
25
|
-
id: `${object.id}-${payload.time_stamp}`,
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
},
|
|
29
|
-
};
|
package/zoom.app.js
DELETED