Skip to content

Commit a065dd2

Browse files
committed
actions updates
1 parent 55f9b02 commit a065dd2

File tree

17 files changed

+476
-255
lines changed

17 files changed

+476
-255
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export default {
99
type: "action",
1010
props: {
1111
app,
12+
paidAccountAlert: {
13+
propDefinition: [
14+
app,
15+
"paidAccountAlert",
16+
],
17+
},
1218
meetingId: {
1319
propDefinition: [
1420
app,

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ import utils from "../../common/utils.mjs";
44
export default {
55
key: "zoom-add-webinar-registrant",
66
name: "Add Webinar Registrant",
7-
description: "Registers a participant for a webinar. Requires a paid Zoom account.[See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/webinars/POST/webinars/{webinarId}/registrants)",
7+
description: "Registers a participant for a webinar. Requires a paid Zoom account. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/webinars/POST/webinars/{webinarId}/registrants)",
88
version: "0.3.4",
99
type: "action",
1010
props: {
1111
app,
12+
paidAccountAlert: {
13+
propDefinition: [
14+
app,
15+
"paidAccountAlert",
16+
],
17+
},
1218
webinarId: {
1319
propDefinition: [
1420
app,

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

Lines changed: 39 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -16,86 +16,64 @@ export default {
1616
],
1717
},
1818
topic: {
19-
type: "string",
20-
label: "Topic",
21-
description: "The meeting's topic",
22-
optional: true,
19+
propDefinition: [
20+
zoom,
21+
"topic",
22+
],
2323
},
2424
type: {
25-
type: "integer",
26-
label: "Type",
27-
description: "The type of meeting",
28-
options: [
29-
{
30-
label: "An instant meeting",
31-
value: 1,
32-
},
33-
{
34-
label: "A scheduled meeting",
35-
value: 2,
36-
},
37-
{
38-
label: "A recurring meeting with no fixed time",
39-
value: 3,
40-
},
41-
{
42-
label: "A recurring meeting with fixed time",
43-
value: 8,
44-
},
45-
{
46-
label: "A screen share only meeting",
47-
value: 10,
48-
},
25+
propDefinition: [
26+
zoom,
27+
"type",
4928
],
50-
optional: true,
5129
},
5230
startTime: {
53-
type: "string",
54-
label: "Start Time",
55-
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.",
56-
optional: true,
31+
propDefinition: [
32+
zoom,
33+
"startTime",
34+
],
5735
},
5836
duration: {
59-
type: "integer",
60-
label: "Duration",
61-
description: "Meeting duration (minutes). Used for scheduled meetings only.",
62-
optional: true,
37+
propDefinition: [
38+
zoom,
39+
"duration",
40+
],
6341
},
6442
timezone: {
65-
type: "string",
66-
label: "Timezone",
67-
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.",
68-
optional: true,
43+
propDefinition: [
44+
zoom,
45+
"timezone",
46+
],
6947
},
7048
password: {
71-
type: "string",
72-
label: "Password",
73-
description: "Password to join the meeting. Password may only contain the following characters: [a-z A-Z 0-9 @ - _ *]. Max of 10 characters.",
74-
optional: true,
49+
propDefinition: [
50+
zoom,
51+
"password",
52+
],
7553
},
7654
agenda: {
77-
type: "string",
78-
label: "Agenda",
79-
description: "The meeting's agenda",
80-
optional: true,
55+
propDefinition: [
56+
zoom,
57+
"agenda",
58+
],
8159
},
8260
trackingFields: {
83-
type: "string",
84-
label: "Tracking Fields",
85-
description: "An array of objects containing the keys **field** and **value**. Example `[{ \"field\": \"field\", \"value\": \"value1`\" }]`",
86-
optional: true,
61+
propDefinition: [
62+
zoom,
63+
"trackingFields",
64+
],
8765
},
8866
recurrence: {
89-
type: "object",
90-
label: "Recurrence",
91-
description: "Recurrence object. Use this object only for a meeting with type 8, a recurring meeting with a fixed time. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/meetings/POST/users/{userId}/meetings) for more information. Example: `{ \"end_date_time\": \"2022-04-02T15:59:00Z\", \"end_times\": 7, \"monthly_day\": 1, \"monthly_week\": 1, \"monthly_week_day\": 1, \"repeat_interval\": 1, \"type\": 1, \"weekly_days\": \"1\" }`",
92-
optional: true,
67+
propDefinition: [
68+
zoom,
69+
"recurrence",
70+
],
9371
},
9472
settings: {
95-
type: "object",
96-
label: "Settings",
97-
description: "Information about the meeting's settings. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/meetings/POST/users/{userId}/meetings) for more information. Example: `{ \"additional_data_center_regions\": [ \"TY\" ], \"allow_multiple_devices\": true, \"alternative_hosts\": \"[email protected];[email protected]\", \"alternative_hosts_email_notification\": true, \"approval_type\": 2, \"approved_or_denied_countries_or_regions\": { \"approved_list\": [ \"CX\" ], \"denied_list\": [ \"CA\" ], \"enable\": true, \"method\": \"approve\" }`",
98-
optional: true,
73+
propDefinition: [
74+
zoom,
75+
"settings",
76+
],
9977
},
10078
},
10179
methods: {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default {
88
type: "action",
99
props: {
1010
zoom,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
zoom,
14+
"paidAccountAlert",
15+
],
16+
},
1117
action: {
1218
type: "string",
1319
label: "Action",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default {
88
type: "action",
99
props: {
1010
zoom,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
zoom,
14+
"paidAccountAlert",
15+
],
16+
},
1117
userId: {
1218
propDefinition: [
1319
zoom,

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default {
88
type: "action",
99
props: {
1010
app,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
app,
14+
"paidAccountAlert",
15+
],
16+
},
1117
webinarId: {
1218
propDefinition: [
1319
app,

components/zoom/actions/list-call-recordings/list-call-recordings.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default {
88
type: "action",
99
props: {
1010
zoom,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
zoom,
14+
"paidAccountAlert",
15+
],
16+
},
1117
infoBox: {
1218
type: "alert",
1319
alertType: "info",
Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,39 @@
1-
// legacy_hash_id: a_vgi47v
2-
import { axios } from "@pipedream/platform";
1+
import zoom from "../../zoom.app.mjs";
32

43
export default {
54
key: "zoom-list-channels",
65
name: "List Channels",
7-
description: "List a user's chat channels.",
8-
version: "0.1.4",
6+
description: "List a user's chat channels. [See the documentation](https://developers.zoom.us/docs/api/team-chat/#tag/chat-channels/GET/chat/users/{userId}/channels)",
7+
version: "0.1.5",
98
type: "action",
109
props: {
11-
zoom: {
12-
type: "app",
13-
app: "zoom",
10+
zoom,
11+
max: {
12+
propDefinition: [
13+
zoom,
14+
"max",
15+
],
1416
},
15-
page_size: {
16-
type: "integer",
17-
description: "The number of records returned from a single API call.",
18-
optional: true,
19-
},
20-
next_page_token: {
21-
type: "string",
22-
description: "The next page token is used to paginate through large result sets. The expiration period for this token is 15 minutes.",
23-
optional: true,
17+
nextPageToken: {
18+
propDefinition: [
19+
zoom,
20+
"nextPageToken",
21+
],
2422
},
2523
},
2624
async run({ $ }) {
27-
// See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels/getchannels
28-
29-
const config = {
30-
method: "get",
31-
url: "https://api.zoom.us/v2/chat/users/me/channels",
32-
headers: {
33-
Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`,
34-
},
25+
const response = await this.zoom.listChannels({
26+
$,
3527
params: {
36-
page_size: this.page_size,
37-
next_page_token: this.next_page_token,
28+
page_size: this.max,
29+
next_page_token: this.nextPageToken,
3830
},
39-
};
40-
41-
return await axios($, config);
31+
});
32+
if (response.channels?.length) {
33+
$.export("$summary", `Successfully retreived ${response.channels.length} channel${response.channels.length === 1
34+
? ""
35+
: "s"} `);
36+
}
37+
return response;
4238
},
4339
};

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ import app from "../../zoom.app.mjs";
33
export default {
44
key: "zoom-list-past-meeting-participants",
55
name: "List Past Meeting Participants",
6-
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.3",
6+
description: "Retrieve information on participants from a past meeting. Requires a paid Zoom account. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/pastMeetingParticipants).",
7+
version: "0.2.4",
88
type: "action",
99
props: {
1010
app,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
app,
14+
"paidAccountAlert",
15+
],
16+
},
1117
meetingId: {
1218
propDefinition: [
1319
app,
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
// legacy_hash_id: a_67iQp1
2-
import { axios } from "@pipedream/platform";
1+
import zoom from "../../zoom.app.mjs";
32

43
export default {
54
key: "zoom-list-past-webinar-qa",
65
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.4",
6+
description: "List Q&A of a specific Webinar. Requires a paid Zoom account. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/webinars/GET/past_webinars/{webinarId}/qa)",
7+
version: "0.1.5",
98
type: "action",
109
props: {
11-
zoom: {
12-
type: "app",
13-
app: "zoom",
10+
zoom,
11+
paidAccountAlert: {
12+
propDefinition: [
13+
zoom,
14+
"paidAccountAlert",
15+
],
1416
},
15-
webinarID: {
16-
type: "string",
17-
label: "Webinar ID",
18-
description: "The Zoom Webinar ID of the webinar you'd like to update.",
17+
webinarId: {
18+
propDefinition: [
19+
zoom,
20+
"webinarId",
21+
],
1922
},
2023
},
2124
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-
};
25+
const response = await this.listPastWebinarQA({
26+
$,
27+
webinarId: this.webinarId,
28+
});
2829

29-
return await axios($, config);
30+
$.export("$summary", `Successfully retrieved Q&A for webinar with ID: ${this.webinarId}`);
31+
32+
return response;
3033
},
3134
};

0 commit comments

Comments
 (0)