Skip to content

Commit ce48071

Browse files
authored
Zoom new action (#14157)
* List Call Recordings action * Adjustments * Version bumps
1 parent 673c049 commit ce48071

File tree

32 files changed

+103
-30
lines changed

32 files changed

+103
-30
lines changed

components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "zoom-add-meeting-registrant",
55
name: "Add Meeting Registrant",
66
description: "Registers a participant for a meeting. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingRegistrantCreate)",
7-
version: "0.3.2",
7+
version: "0.3.3",
88
type: "action",
99
props: {
1010
app,

components/zoom/actions/add-webinar-registrant/add-webinar-registrant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "zoom-add-webinar-registrant",
55
name: "Add Webinar Registrant",
66
description: "Registers a participant for a webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate).",
7-
version: "0.3.2",
7+
version: "0.3.3",
88
type: "action",
99
props: {
1010
app,

components/zoom/actions/create-meeting/create-meeting.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zoom-create-meeting",
66
name: "Create Meeting",
77
description: "Creates a meeting for a user. A maximum of 100 meetings can be created for a user in a day.",
8-
version: "0.1.3",
8+
version: "0.1.4",
99
type: "action",
1010
props: {
1111
zoom: {

components/zoom/actions/create-user/create-user.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zoom-create-user",
66
name: "Create User",
77
description: "Creates a new user in your account.",
8-
version: "0.2.3",
8+
version: "0.2.4",
99
type: "action",
1010
props: {
1111
zoom: {

components/zoom/actions/delete-user/delete-user.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zoom-delete-user",
66
name: "Delete User",
77
description: "Disassociates (unlinks) a user from the associated account or permanently deletes a user.",
8-
version: "0.2.3",
8+
version: "0.2.4",
99
type: "action",
1010
props: {
1111
zoom: {

components/zoom/actions/get-meeting-details/get-meeting-details.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zoom-get-meeting-details",
66
name: "Get Meeting Details",
77
description: "Retrieves the details of a meeting.",
8-
version: "0.3.3",
8+
version: "0.3.4",
99
type: "action",
1010
props: {
1111
zoom: {

components/zoom/actions/get-webinar-details/get-webinar-details.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "zoom-get-webinar-details",
55
name: "Get Webinar Details",
66
description: "Gets details of a scheduled webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/webinar).",
7-
version: "0.3.2",
7+
version: "0.3.3",
88
type: "action",
99
props: {
1010
app,
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import zoom from "../../zoom.app.mjs";
2+
3+
export default {
4+
name: "List Call Recordings",
5+
description: "Get your account's call recordings. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/getPhoneRecordings)",
6+
key: "zoom-list-call-recordings",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
zoom,
11+
infoBox: {
12+
type: "alert",
13+
alertType: "info",
14+
content: "The Zoom API returns calls from the last 30 days by default. You can use the `Start Date` and `End Date` props to change this.",
15+
},
16+
startDate: {
17+
type: "string",
18+
label: "Start Date",
19+
description: "The start date/time in `yyyy-mm-dd` or `yyyy-MM-ddTHH:mm:ssZ` format. If `End Date` is not specified, calls made within a 30-day period starting on `Start Date` will be retrieved.",
20+
optional: true,
21+
},
22+
endDate: {
23+
type: "string",
24+
label: "End Date",
25+
description: "The end date/time in `yyyy-mm-dd` or `yyyy-MM-ddTHH:mm:ssZ` format. Calls made after `Start Date` and before `End Date` will be retrieved. Date range should be a maximum of 30 days.",
26+
optional: true,
27+
},
28+
max: {
29+
propDefinition: [
30+
zoom,
31+
"max",
32+
],
33+
default: 30,
34+
min: 1,
35+
max: 300,
36+
},
37+
},
38+
async run ({ $ }) {
39+
const {
40+
zoom, startDate, endDate, max,
41+
} = this;
42+
let to = endDate;
43+
if (startDate && !endDate) {
44+
const date = new Date(startDate);
45+
if (isNaN(date.valueOf())) {
46+
throw new Error("Invalid format for `Start Date`. Please use `yyyy-mm-dd` or `yyyy-MM-ddTHH:mm:ssZ`.");
47+
}
48+
date.setDate(date.getDate() - 30);
49+
to = date.toISOString();
50+
if (!startDate.split("T")[1]) {
51+
to = to.split("T")[0];
52+
}
53+
}
54+
const { recordings } = await zoom.listCallRecordings({
55+
step: $,
56+
params: {
57+
page_size: max,
58+
from: startDate,
59+
to,
60+
},
61+
});
62+
63+
$.export("$summary", `Successfully fetched ${recordings.length} call recordings`);
64+
65+
return recordings;
66+
},
67+
};

components/zoom/actions/list-channels/list-channels.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "zoom-list-channels",
66
name: "List Channels",
77
description: "List a user's chat channels.",
8-
version: "0.1.3",
8+
version: "0.1.4",
99
type: "action",
1010
props: {
1111
zoom: {

components/zoom/actions/list-past-meeting-participants/list-past-meeting-participants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "zoom-list-past-meeting-participants",
55
name: "List Past Meeting Participants",
66
description: "Retrieve information on participants from a past meeting. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/pastMeetingParticipants).",
7-
version: "0.2.2",
7+
version: "0.2.3",
88
type: "action",
99
props: {
1010
app,

0 commit comments

Comments
 (0)