diff --git a/components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs b/components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs index f8e783d0c2842..32a3fe5f3ded8 100644 --- a/components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs +++ b/components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs @@ -4,7 +4,7 @@ export default { key: "zoom-add-meeting-registrant", name: "Add Meeting Registrant", description: "Registers a participant for a meeting. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingRegistrantCreate)", - version: "0.3.4", + version: "0.3.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom/actions/add-webinar-registrant/add-webinar-registrant.mjs b/components/zoom/actions/add-webinar-registrant/add-webinar-registrant.mjs index 54997db8e1895..e8a2cbe2d9754 100644 --- a/components/zoom/actions/add-webinar-registrant/add-webinar-registrant.mjs +++ b/components/zoom/actions/add-webinar-registrant/add-webinar-registrant.mjs @@ -4,7 +4,7 @@ export default { key: "zoom-add-webinar-registrant", name: "Add Webinar Registrant", description: "Registers a participant for a webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate).", - version: "0.3.4", + version: "0.3.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom/actions/get-meeting-details/get-meeting-details.mjs b/components/zoom/actions/get-meeting-details/get-meeting-details.mjs index 377f65e4f00fd..075eb4ea7cf08 100644 --- a/components/zoom/actions/get-meeting-details/get-meeting-details.mjs +++ b/components/zoom/actions/get-meeting-details/get-meeting-details.mjs @@ -1,11 +1,12 @@ // legacy_hash_id: a_Xzi12a import { axios } from "@pipedream/platform"; +import utils from "../../common/utils.mjs"; export default { key: "zoom-get-meeting-details", name: "Get Meeting Details", description: "Retrieves the details of a meeting.", - version: "0.3.5", + version: "0.3.6", annotations: { destructiveHint: false, openWorldHint: true, @@ -30,7 +31,7 @@ export default { async run({ $ }) { //See the API docs here: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting const config = { - url: `https://api.zoom.us/v2/meetings/${this.meeting_id}`, + url: `https://api.zoom.us/v2/meetings/${utils.doubleEncode(this.meeting_id)}`, params: { occurrence_id: this.occurrence_id, }, diff --git a/components/zoom/actions/get-meeting-transcript/get-meeting-transcript.mjs b/components/zoom/actions/get-meeting-transcript/get-meeting-transcript.mjs index 9414e0bb51eed..192acfda49af2 100644 --- a/components/zoom/actions/get-meeting-transcript/get-meeting-transcript.mjs +++ b/components/zoom/actions/get-meeting-transcript/get-meeting-transcript.mjs @@ -1,10 +1,11 @@ +import utils from "../../common/utils.mjs"; import zoom from "../../zoom.app.mjs"; export default { key: "zoom-get-meeting-transcript", name: "Get Meeting Transcript", description: "Get the transcript of a meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/get/meetings/{meetingId}/transcript)", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, @@ -27,7 +28,7 @@ export default { meetingId, ...opts }) { return this.zoom._makeRequest({ - path: `/meetings/${meetingId}/transcript`, + path: `/meetings/${utils.doubleEncode(meetingId)}/transcript`, ...opts, }); }, diff --git a/components/zoom/actions/get-webinar-details/get-webinar-details.mjs b/components/zoom/actions/get-webinar-details/get-webinar-details.mjs index dd0386e39b58c..7c5efc887267d 100644 --- a/components/zoom/actions/get-webinar-details/get-webinar-details.mjs +++ b/components/zoom/actions/get-webinar-details/get-webinar-details.mjs @@ -4,7 +4,7 @@ export default { key: "zoom-get-webinar-details", name: "Get Webinar Details", description: "Gets details of a scheduled webinar. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/webinar).", - version: "0.3.4", + version: "0.3.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom/actions/list-call-recordings/list-call-recordings.mjs b/components/zoom/actions/list-call-recordings/list-call-recordings.mjs index 322d4a0ecfacd..6fdaf0752edbc 100644 --- a/components/zoom/actions/list-call-recordings/list-call-recordings.mjs +++ b/components/zoom/actions/list-call-recordings/list-call-recordings.mjs @@ -4,7 +4,7 @@ export default { name: "List Call Recordings", description: "Get your account's call recordings. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/getPhoneRecordings)", key: "zoom-list-call-recordings", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom/actions/list-past-meeting-participants/list-past-meeting-participants.mjs b/components/zoom/actions/list-past-meeting-participants/list-past-meeting-participants.mjs index b1c8169646be6..20b7ad5443219 100644 --- a/components/zoom/actions/list-past-meeting-participants/list-past-meeting-participants.mjs +++ b/components/zoom/actions/list-past-meeting-participants/list-past-meeting-participants.mjs @@ -1,10 +1,11 @@ +import utils from "../../common/utils.mjs"; import app from "../../zoom.app.mjs"; export default { key: "zoom-list-past-meeting-participants", name: "List Past Meeting Participants", 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).", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, @@ -25,7 +26,7 @@ export default { meetingId, ...args } = {}) { return this.app._makeRequest({ - path: `/past_meetings/${meetingId}/participants`, + path: `/past_meetings/${utils.doubleEncode(meetingId)}/participants`, ...args, }); }, diff --git a/components/zoom/actions/list-past-webinar-qa/list-past-webinar-qa.mjs b/components/zoom/actions/list-past-webinar-qa/list-past-webinar-qa.mjs index aa0c0ec2918f7..56cddd91f6963 100644 --- a/components/zoom/actions/list-past-webinar-qa/list-past-webinar-qa.mjs +++ b/components/zoom/actions/list-past-webinar-qa/list-past-webinar-qa.mjs @@ -1,11 +1,12 @@ // legacy_hash_id: a_67iQp1 import { axios } from "@pipedream/platform"; +import utils from "../../common/utils.mjs"; export default { key: "zoom-list-past-webinar-qa", name: "List Past Webinar Q&A", 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.", - version: "0.1.5", + version: "0.1.6", annotations: { destructiveHint: false, openWorldHint: true, @@ -25,7 +26,7 @@ export default { }, async run({ $ }) { const config = { - url: `https://api.zoom.us/v2/past_webinars/${this.webinarID}/qa`, + url: `https://api.zoom.us/v2/past_webinars/${utils.doubleEncode(this.webinarID)}/qa`, headers: { Authorization: `Bearer ${this.zoom.$auth.oauth_access_token}`, }, diff --git a/components/zoom/actions/list-user-call-logs/list-user-call-logs.mjs b/components/zoom/actions/list-user-call-logs/list-user-call-logs.mjs index e2bc999f6b0de..6f08adb5f5fd0 100644 --- a/components/zoom/actions/list-user-call-logs/list-user-call-logs.mjs +++ b/components/zoom/actions/list-user-call-logs/list-user-call-logs.mjs @@ -4,7 +4,7 @@ export default { name: "List User's Call Logs", description: "Gets a user's Zoom phone call logs. [See the documentation](https://developers.zoom.us/docs/zoom-phone/apis/#operation/phoneUserCallLogs)", key: "zoom-list-user-call-logs", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom/actions/list-webinar-participants-report/list-webinar-participants-report.mjs b/components/zoom/actions/list-webinar-participants-report/list-webinar-participants-report.mjs index 1d45722c2653d..231a4ce0d79d6 100644 --- a/components/zoom/actions/list-webinar-participants-report/list-webinar-participants-report.mjs +++ b/components/zoom/actions/list-webinar-participants-report/list-webinar-participants-report.mjs @@ -5,7 +5,7 @@ export default { key: "zoom-list-webinar-participants-report", name: "List Webinar Participants Report", description: "Retrieves detailed report on each webinar attendee. You can get webinar participant reports for the last 6 months. [See the docs here](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/reportWebinarParticipants).", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, @@ -38,7 +38,7 @@ export default { webinarId, ...args } = {}) { return this.app._makeRequest({ - path: `/report/webinars/${webinarId}/participants`, + path: `/report/webinars/${utils.doubleEncode(webinarId)}/participants`, ...args, }); }, diff --git a/components/zoom/actions/update-meeting/update-meeting.mjs b/components/zoom/actions/update-meeting/update-meeting.mjs index 6a85a197271da..bb33d4952a67c 100644 --- a/components/zoom/actions/update-meeting/update-meeting.mjs +++ b/components/zoom/actions/update-meeting/update-meeting.mjs @@ -1,11 +1,12 @@ // legacy_hash_id: a_52iXNQ import { axios } from "@pipedream/platform"; +import utils from "../../common/utils.mjs"; export default { key: "zoom-update-meeting", name: "Update Meeting", description: "Updates an existing Zoom meeting", - version: "0.1.5", + version: "0.1.6", annotations: { destructiveHint: true, openWorldHint: true, @@ -77,7 +78,7 @@ export default { // API docs: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate const config = { method: "PATCH", - url: `https://api.zoom.us/v2/meetings/${this.meetingId}`, + url: `https://api.zoom.us/v2/meetings/${utils.doubleEncode(this.meetingId)}`, data: { topic: this.topic, type: this.type, diff --git a/components/zoom/actions/update-webinar/update-webinar.mjs b/components/zoom/actions/update-webinar/update-webinar.mjs index e887a5df49f3e..f8f8d0a2b8b13 100644 --- a/components/zoom/actions/update-webinar/update-webinar.mjs +++ b/components/zoom/actions/update-webinar/update-webinar.mjs @@ -1,11 +1,12 @@ // legacy_hash_id: a_Q3irlY import { axios } from "@pipedream/platform"; +import utils from "../../common/utils.mjs"; export default { key: "zoom-update-webinar", name: "Update Webinar", description: "Update a webinar's topic, start time, or other settings", - version: "0.1.5", + version: "0.1.6", annotations: { destructiveHint: true, openWorldHint: true, @@ -77,7 +78,7 @@ export default { // API docs: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate const config = { method: "PATCH", - url: `https://api.zoom.us/v2/webinars/${this.webinarID}`, + url: `https://api.zoom.us/v2/webinars/${utils.doubleEncode(this.webinarID)}`, data: { topic: this.topic, type: this.type, diff --git a/components/zoom/common/utils.mjs b/components/zoom/common/utils.mjs index 54b4220598a13..756c0a6eef15a 100644 --- a/components/zoom/common/utils.mjs +++ b/components/zoom/common/utils.mjs @@ -14,7 +14,15 @@ function summaryEnd(count, singular, plural) { return `${count} ${noun}`; } +function doubleEncode(value) { + if ((typeof value === "string") && (value.startsWith("/") || value.includes("//"))) { + return encodeURIComponent(encodeURIComponent(value)); + } + return value; +} + export default { streamIterator, summaryEnd, + doubleEncode, }; diff --git a/components/zoom/package.json b/components/zoom/package.json index 9c9a8fb73f6c9..f0b480da6c99b 100644 --- a/components/zoom/package.json +++ b/components/zoom/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/zoom", - "version": "0.7.0", + "version": "0.7.1", "description": "Pipedream Zoom Components", "main": "zoom.app.mjs", "keywords": [ diff --git a/components/zoom/sources/custom-event/custom-event.mjs b/components/zoom/sources/custom-event/custom-event.mjs index 4e49a9de0a773..bf095210cf65c 100644 --- a/components/zoom/sources/custom-event/custom-event.mjs +++ b/components/zoom/sources/custom-event/custom-event.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-custom-event", name: "Custom Events (Instant)", description: "Emit new events tied to your Zoom user or resources you own", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/meeting-created/meeting-created.mjs b/components/zoom/sources/meeting-created/meeting-created.mjs index 01ad09d3271a5..472bf760a3153 100644 --- a/components/zoom/sources/meeting-created/meeting-created.mjs +++ b/components/zoom/sources/meeting-created/meeting-created.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-meeting-created", name: "Meeting Created (Instant)", description: "Emit new event each time a meeting is created where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/meeting-deleted/meeting-deleted.mjs b/components/zoom/sources/meeting-deleted/meeting-deleted.mjs index 05a0964752c14..cf003d77a71fb 100644 --- a/components/zoom/sources/meeting-deleted/meeting-deleted.mjs +++ b/components/zoom/sources/meeting-deleted/meeting-deleted.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-meeting-deleted", name: "Meeting Deleted (Instant)", description: "Emit new event each time a meeting is deleted where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/meeting-ended/meeting-ended.mjs b/components/zoom/sources/meeting-ended/meeting-ended.mjs index 9b81ad8009810..93a8b4f578c8c 100644 --- a/components/zoom/sources/meeting-ended/meeting-ended.mjs +++ b/components/zoom/sources/meeting-ended/meeting-ended.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-meeting-ended", name: "Meeting Ended (Instant)", description: "Emit new event each time a meeting ends where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/meeting-started/meeting-started.mjs b/components/zoom/sources/meeting-started/meeting-started.mjs index 2b6d807d212e9..95f0cedebc288 100644 --- a/components/zoom/sources/meeting-started/meeting-started.mjs +++ b/components/zoom/sources/meeting-started/meeting-started.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-meeting-started", name: "Meeting Started (Instant)", description: "Emit new event each time a meeting starts where you're the host", - version: "0.1.4", + version: "0.1.5", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/meeting-updated/meeting-updated.mjs b/components/zoom/sources/meeting-updated/meeting-updated.mjs index 435b805ea8876..8f18e092b9113 100644 --- a/components/zoom/sources/meeting-updated/meeting-updated.mjs +++ b/components/zoom/sources/meeting-updated/meeting-updated.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-meeting-updated", name: "Meeting Updated (Instant)", description: "Emit new event each time a meeting is updated where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs b/components/zoom/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs index 0487c09457be7..ad6623d31680b 100644 --- a/components/zoom/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs +++ b/components/zoom/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-new-recording-transcript-completed", name: "New Recording Transcript Completed (Instant)", description: "Emit new event each time a recording transcript is completed", - version: "0.0.1", + version: "0.0.2", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/phone-event/phone-event.mjs b/components/zoom/sources/phone-event/phone-event.mjs index 110dcedaa94f2..556148a276684 100644 --- a/components/zoom/sources/phone-event/phone-event.mjs +++ b/components/zoom/sources/phone-event/phone-event.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-phone-event", name: "Zoom Phone Events (Instant)", description: "Emit new Zoom Phone event tied to your Zoom user or resources you own", - version: "0.1.3", + version: "0.1.4", type: "source", props: { ...common.props, diff --git a/components/zoom/sources/recording-completed/recording-completed.mjs b/components/zoom/sources/recording-completed/recording-completed.mjs index b69fcfa413961..39fdea1d02a72 100644 --- a/components/zoom/sources/recording-completed/recording-completed.mjs +++ b/components/zoom/sources/recording-completed/recording-completed.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-recording-completed", name: "Recording Completed (Instant)", description: "Emit new event each time a new recording completes for a meeting or webinar where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/webinar-created/webinar-created.mjs b/components/zoom/sources/webinar-created/webinar-created.mjs index 10a3acecaadd3..d3635ffe361e8 100644 --- a/components/zoom/sources/webinar-created/webinar-created.mjs +++ b/components/zoom/sources/webinar-created/webinar-created.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-webinar-created", name: "Webinar Created (Instant)", description: "Emit new event each time a webinar is created where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/webinar-deleted/webinar-deleted.mjs b/components/zoom/sources/webinar-deleted/webinar-deleted.mjs index 4cc07aa90a641..b7f2a40b4d8bc 100644 --- a/components/zoom/sources/webinar-deleted/webinar-deleted.mjs +++ b/components/zoom/sources/webinar-deleted/webinar-deleted.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-webinar-deleted", name: "Webinar Deleted (Instant)", description: "Emit new event each time a webinar is deleted where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/webinar-ended/webinar-ended.mjs b/components/zoom/sources/webinar-ended/webinar-ended.mjs index 396ebbbf2c0fe..a636c87915454 100644 --- a/components/zoom/sources/webinar-ended/webinar-ended.mjs +++ b/components/zoom/sources/webinar-ended/webinar-ended.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-webinar-ended", name: "Webinar Ended (Instant)", description: "Emit new event each time a webinar ends where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/webinar-started/webinar-started.mjs b/components/zoom/sources/webinar-started/webinar-started.mjs index 70de57c9b206b..e2b4ab4589a1a 100644 --- a/components/zoom/sources/webinar-started/webinar-started.mjs +++ b/components/zoom/sources/webinar-started/webinar-started.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-webinar-started", name: "Webinar Started (Instant)", description: "Emit new event each time a webinar starts where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/sources/webinar-updated/webinar-updated.mjs b/components/zoom/sources/webinar-updated/webinar-updated.mjs index ed97346a4c062..880207fd748e3 100644 --- a/components/zoom/sources/webinar-updated/webinar-updated.mjs +++ b/components/zoom/sources/webinar-updated/webinar-updated.mjs @@ -6,7 +6,7 @@ export default { key: "zoom-webinar-updated", name: "Webinar Updated (Instant)", description: "Emit new event each time a webinar is updated where you're the host", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom/zoom.app.mjs b/components/zoom/zoom.app.mjs index b31436af7c60c..df7315ccde38b 100644 --- a/components/zoom/zoom.app.mjs +++ b/components/zoom/zoom.app.mjs @@ -1,5 +1,6 @@ import { axios } from "@pipedream/platform"; import constants from "./common/constants.mjs"; +import utils from "./common/utils.mjs"; export default { type: "app", @@ -31,7 +32,7 @@ export default { }, }, meetingId: { - type: "integer", + type: "string", label: "Meeting ID", description: "The meeting ID to get details for.", async options({ prevContext }) { @@ -246,7 +247,7 @@ export default { meetingId, ...args } = {}) { return this._makeRequest({ - path: `/past_meetings/${meetingId}`, + path: `/past_meetings/${utils.doubleEncode(meetingId)}`, ...args, }); }, diff --git a/components/zoom_admin/actions/add-meeting-registrant/add-meeting-registrant.mjs b/components/zoom_admin/actions/add-meeting-registrant/add-meeting-registrant.mjs index 0ff5dbb2c73e3..5f14ca5278c4b 100644 --- a/components/zoom_admin/actions/add-meeting-registrant/add-meeting-registrant.mjs +++ b/components/zoom_admin/actions/add-meeting-registrant/add-meeting-registrant.mjs @@ -1,13 +1,14 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; import isArray from "lodash/isArray.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Add meeting registrant", description: "Register a participant for a meeting. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantcreate)", key: "zoom_admin-add-meeting-registrant", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: false, openWorldHint: true, @@ -59,7 +60,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "POST", - path: `/meetings/${get(this.meeting, "value", this.meeting)}/registrants`, + path: `/meetings/${doubleEncode(get(this.meeting, "value", this.meeting))}/registrants`, params: { occurrence_ids: isArray(this.occurrence) ? this.occurrence.map((occurrence) => get(occurrence, "value", occurrence)).join(",") diff --git a/components/zoom_admin/actions/add-webinar-panelist/add-webinar-panelist.mjs b/components/zoom_admin/actions/add-webinar-panelist/add-webinar-panelist.mjs index 4b6822be110aa..a8ed56a577e72 100644 --- a/components/zoom_admin/actions/add-webinar-panelist/add-webinar-panelist.mjs +++ b/components/zoom_admin/actions/add-webinar-panelist/add-webinar-panelist.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Add webinar panelist", description: "Register a panelist for a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarpanelistcreate)", key: "zoom_admin-add-webinar-panelist", - version: "0.1.8", + version: "0.1.9", annotations: { destructiveHint: false, openWorldHint: true, @@ -35,7 +36,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "POST", - path: `/webinars/${get(this.webinar, "value", this.webinar)}/panelists`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}/panelists`, data: { panelists: [ { diff --git a/components/zoom_admin/actions/add-webinar-registrant/add-webinar-registrant.mjs b/components/zoom_admin/actions/add-webinar-registrant/add-webinar-registrant.mjs index e37cc2bf8e758..8ad52534064ef 100644 --- a/components/zoom_admin/actions/add-webinar-registrant/add-webinar-registrant.mjs +++ b/components/zoom_admin/actions/add-webinar-registrant/add-webinar-registrant.mjs @@ -1,13 +1,14 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; import isArray from "lodash/isArray.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Add webinar registrant", description: "Register a participant for a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate)", key: "zoom_admin-add-webinar-registrant", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: false, openWorldHint: true, @@ -53,7 +54,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "POST", - path: `/webinars/${get(this.webinar, "value", this.webinar)}/registrants`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}/registrants`, params: { occurrence_ids: isArray(this.occurrence) ? this.occurrence.map((occurrence) => get(occurrence, "value", occurrence)).join(",") diff --git a/components/zoom_admin/actions/create-meeting/create-meeting.mjs b/components/zoom_admin/actions/create-meeting/create-meeting.mjs index 932bf8debba0b..2a60c4aeb1d71 100644 --- a/components/zoom_admin/actions/create-meeting/create-meeting.mjs +++ b/components/zoom_admin/actions/create-meeting/create-meeting.mjs @@ -9,7 +9,7 @@ export default { name: "Create a meeting", description: "Create a new room in zoom. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)", key: "zoom_admin-create-meeting", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/create-webinar/create-webinar.mjs b/components/zoom_admin/actions/create-webinar/create-webinar.mjs index f536130bd705a..6b1217b7d8b00 100644 --- a/components/zoom_admin/actions/create-webinar/create-webinar.mjs +++ b/components/zoom_admin/actions/create-webinar/create-webinar.mjs @@ -9,7 +9,7 @@ export default { name: "Create Webinar", description: "Create a webinar for an user. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarcreate)", key: "zoom_admin-create-webinar", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/delete-cloud-recording/delete-cloud-recording.mjs b/components/zoom_admin/actions/delete-cloud-recording/delete-cloud-recording.mjs index 6a03351142550..27cbe0941586f 100644 --- a/components/zoom_admin/actions/delete-cloud-recording/delete-cloud-recording.mjs +++ b/components/zoom_admin/actions/delete-cloud-recording/delete-cloud-recording.mjs @@ -1,5 +1,6 @@ import { axios } from "@pipedream/platform"; import isObject from "lodash/isObject.js"; +import { doubleEncode } from "../../common/utils.mjs"; import consts from "../../consts.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; @@ -7,7 +8,7 @@ export default { name: "Delete Cloud Recording", description: "Remove a recording from a meeting or webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingdeleteone)", key: "zoom_admin-delete-cloud-recording", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -37,7 +38,7 @@ export default { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "DELETE", - path: `/meetings/${cloudRecording.value.meetingId}/recordings/${cloudRecording.value.id}`, + path: `/meetings/${doubleEncode(cloudRecording.value.meetingId)}/recordings/${cloudRecording.value.id}`, params: { action: this.action, }, diff --git a/components/zoom_admin/actions/delete-meeting/delete-meeting.mjs b/components/zoom_admin/actions/delete-meeting/delete-meeting.mjs index abd36df06f854..f46032ec86f8c 100644 --- a/components/zoom_admin/actions/delete-meeting/delete-meeting.mjs +++ b/components/zoom_admin/actions/delete-meeting/delete-meeting.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Delete meeting", description: "Delete a meeting. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingdelete)", key: "zoom_admin-delete-meeting", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -47,7 +48,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "DELETE", - path: `/meetings/${get(this.meeting, "value", this.meeting)}`, + path: `/meetings/${doubleEncode(get(this.meeting, "value", this.meeting))}`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), schedule_for_reminder: this.scheduleForReminder, diff --git a/components/zoom_admin/actions/delete-webinar-panelist/delete-webinar-panelist.mjs b/components/zoom_admin/actions/delete-webinar-panelist/delete-webinar-panelist.mjs index c0f84c6281b0b..6be5deb64de27 100644 --- a/components/zoom_admin/actions/delete-webinar-panelist/delete-webinar-panelist.mjs +++ b/components/zoom_admin/actions/delete-webinar-panelist/delete-webinar-panelist.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Delete webinar panelist", description: "Remove a panelist from a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarpanelistdelete)", key: "zoom_admin-delete-webinar-panelist", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -34,7 +35,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "DELETE", - path: `/webinars/${get(this.webinar, "value", this.webinar)}/panelists/${get(this.panelist, "value", this.panelist)}`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}/panelists/${get(this.panelist, "value", this.panelist)}`, })); $.export("$summary", `"${get(this.panelist, "label", this.panelist)}" was successfully removed as a panelist of "${get(this.webinar, "label", this.webinar)}" webinar.`); diff --git a/components/zoom_admin/actions/delete-webinar/delete-webinar.mjs b/components/zoom_admin/actions/delete-webinar/delete-webinar.mjs index a8081fbb7bf95..31d5514657721 100644 --- a/components/zoom_admin/actions/delete-webinar/delete-webinar.mjs +++ b/components/zoom_admin/actions/delete-webinar/delete-webinar.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Delete webinar", description: "Delete a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinardelete)", key: "zoom_admin-delete-webinar", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -42,7 +43,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "DELETE", - path: `/webinars/${get(this.webinar, "value", this.webinar)}`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), cancel_meeting_reminder: this.cancelMeetingReminder, diff --git a/components/zoom_admin/actions/end-meeting/end-meeting.mjs b/components/zoom_admin/actions/end-meeting/end-meeting.mjs index aa475cce074b1..a1128bed2b1cb 100644 --- a/components/zoom_admin/actions/end-meeting/end-meeting.mjs +++ b/components/zoom_admin/actions/end-meeting/end-meeting.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "End meeting", description: "End a meeting for a user. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus)", key: "zoom_admin-end-meeting", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -25,7 +26,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "PUT", - path: `/meetings/${get(this.meeting, "value", this.meeting)}/status`, + path: `/meetings/${doubleEncode(get(this.meeting, "value", this.meeting))}/status`, data: { action: "end", }, diff --git a/components/zoom_admin/actions/get-meeting-recordings/get-meeting-recordings.mjs b/components/zoom_admin/actions/get-meeting-recordings/get-meeting-recordings.mjs index 70a88677ce1d8..e209f0ccc133a 100644 --- a/components/zoom_admin/actions/get-meeting-recordings/get-meeting-recordings.mjs +++ b/components/zoom_admin/actions/get-meeting-recordings/get-meeting-recordings.mjs @@ -6,7 +6,7 @@ export default { description: "Get all recordings of a meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/GET/meetings/{meetingId}/recordings)", key: "zoom_admin-get-meeting-recordings", - version: "0.0.3", + version: "0.0.4", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/get-meeting-transcript/get-meeting-transcript.mjs b/components/zoom_admin/actions/get-meeting-transcript/get-meeting-transcript.mjs index 4c84e8fdcd524..c529d7a287bb0 100644 --- a/components/zoom_admin/actions/get-meeting-transcript/get-meeting-transcript.mjs +++ b/components/zoom_admin/actions/get-meeting-transcript/get-meeting-transcript.mjs @@ -1,10 +1,11 @@ +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { key: "zoom_admin-get-meeting-transcript", name: "Get Meeting Transcript", description: "Get the transcript of a meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/get/meetings/{meetingId}/transcript)", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, @@ -26,7 +27,7 @@ export default { meetingId, ...opts }) { return this.zoomAdmin._makeRequest({ - path: `/meetings/${meetingId}/transcript`, + path: `/meetings/${doubleEncode(meetingId)}/transcript`, ...opts, }); }, diff --git a/components/zoom_admin/actions/get-meeting/get-meeting.mjs b/components/zoom_admin/actions/get-meeting/get-meeting.mjs index 91f4af8754b5e..3885f3024f226 100644 --- a/components/zoom_admin/actions/get-meeting/get-meeting.mjs +++ b/components/zoom_admin/actions/get-meeting/get-meeting.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Get Meeting", description: "Retrieve the details of a meeting. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting)", key: "zoom_admin-get-meeting", - version: "0.1.8", + version: "0.1.9", annotations: { destructiveHint: false, openWorldHint: true, @@ -40,7 +41,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "GET", - path: `/meetings/${get(this.meeting, "value", this.meeting)}`, + path: `/meetings/${doubleEncode(get(this.meeting, "value", this.meeting))}`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), show_previous_occurrences: this.showPreviousOccurrences, diff --git a/components/zoom_admin/actions/get-webinar/get-webinar.mjs b/components/zoom_admin/actions/get-webinar/get-webinar.mjs index f54a718552685..e5a2b9474445e 100644 --- a/components/zoom_admin/actions/get-webinar/get-webinar.mjs +++ b/components/zoom_admin/actions/get-webinar/get-webinar.mjs @@ -1,12 +1,13 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "Get Webinar", description: "Retrieve the details of a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinar)", key: "zoom_admin-get-webinar", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: false, openWorldHint: true, @@ -41,7 +42,7 @@ export default { async run ({ $ }) { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "GET", - path: `/webinars/${get(this.webinar, "value", this.webinar)}`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), show_previous_occurrences: this.showPreviousOccurrences, diff --git a/components/zoom_admin/actions/list-account-call-logs/list-account-call-logs.mjs b/components/zoom_admin/actions/list-account-call-logs/list-account-call-logs.mjs index d4cd6f47638ca..f0edf337fc320 100644 --- a/components/zoom_admin/actions/list-account-call-logs/list-account-call-logs.mjs +++ b/components/zoom_admin/actions/list-account-call-logs/list-account-call-logs.mjs @@ -5,7 +5,7 @@ export default { name: "List Account Call Logs", description: "Returns an account's new edition call logs. [See the documentation](https://developers.zoom.us/docs/zoom-phone/apis/#operation/accountCallHistory)", key: "zoom_admin-list-account-call-logs", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-cloud-recordings/list-cloud-recordings.mjs b/components/zoom_admin/actions/list-cloud-recordings/list-cloud-recordings.mjs index e29579c68b726..b749cccd78761 100644 --- a/components/zoom_admin/actions/list-cloud-recordings/list-cloud-recordings.mjs +++ b/components/zoom_admin/actions/list-cloud-recordings/list-cloud-recordings.mjs @@ -6,7 +6,7 @@ export default { name: "List Cloud Recordings", description: "Search cloud recordings from a meeting or webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist)", key: "zoom_admin-list-cloud-recordings", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-meeting-registrants/list-meeting-registrants.mjs b/components/zoom_admin/actions/list-meeting-registrants/list-meeting-registrants.mjs index a06d965da7104..f395d12e0231c 100644 --- a/components/zoom_admin/actions/list-meeting-registrants/list-meeting-registrants.mjs +++ b/components/zoom_admin/actions/list-meeting-registrants/list-meeting-registrants.mjs @@ -7,7 +7,7 @@ export default { name: "List meeting registrants", description: "List all users who have registered for a meeting. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrants)", key: "zoom_admin-list-meeting-registrants", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-meetings/list-meetings.mjs b/components/zoom_admin/actions/list-meetings/list-meetings.mjs index a90ad62eab661..29ba39adfb991 100644 --- a/components/zoom_admin/actions/list-meetings/list-meetings.mjs +++ b/components/zoom_admin/actions/list-meetings/list-meetings.mjs @@ -6,7 +6,7 @@ export default { name: "List meetings", description: "List all meetings. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings)", key: "zoom_admin-list-meetings", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-past-meeting-participants/list-past-meeting-participants.mjs b/components/zoom_admin/actions/list-past-meeting-participants/list-past-meeting-participants.mjs index 892c634152f84..3ba81acb73829 100644 --- a/components/zoom_admin/actions/list-past-meeting-participants/list-past-meeting-participants.mjs +++ b/components/zoom_admin/actions/list-past-meeting-participants/list-past-meeting-participants.mjs @@ -1,13 +1,13 @@ -import zoomAdmin from "../../zoom_admin.app.mjs"; import get from "lodash/get.js"; import { paginate } from "../../common/pagination.mjs"; +import zoomAdmin from "../../zoom_admin.app.mjs"; export default { name: "List Past Meeting Participants", description: "List all participants of a past meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/meetings/GET/past_meetings/{meetingId}/participants)", key: "zoom_admin-list-past-meeting-participants", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-user-cloud-recordings/list-user-cloud-recordings.mjs b/components/zoom_admin/actions/list-user-cloud-recordings/list-user-cloud-recordings.mjs index 26fdfab6a0520..127f36f3ab5f0 100644 --- a/components/zoom_admin/actions/list-user-cloud-recordings/list-user-cloud-recordings.mjs +++ b/components/zoom_admin/actions/list-user-cloud-recordings/list-user-cloud-recordings.mjs @@ -6,7 +6,7 @@ export default { name: "List User Cloud Recordings", description: "Search cloud recordings from a user. [See the documentation](https://developers.zoom.us/docs/api/users/#tag/users/GET/users/{userId}/recordings)", key: "zoom_admin-list-user-cloud-recordings", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-users/list-users.mjs b/components/zoom_admin/actions/list-users/list-users.mjs index b55e049e021be..43cba7635d8f9 100644 --- a/components/zoom_admin/actions/list-users/list-users.mjs +++ b/components/zoom_admin/actions/list-users/list-users.mjs @@ -5,7 +5,7 @@ export default { name: "List users", description: "List all users. [See the documentation](https://developers.zoom.us/docs/api/users/#tag/users/GET/users)", key: "zoom_admin-list-users", - version: "0.0.2", + version: "0.0.3", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-webinar-participants/list-webinar-participants.mjs b/components/zoom_admin/actions/list-webinar-participants/list-webinar-participants.mjs index 6f5b0c4352239..f3c91f1ec7a59 100644 --- a/components/zoom_admin/actions/list-webinar-participants/list-webinar-participants.mjs +++ b/components/zoom_admin/actions/list-webinar-participants/list-webinar-participants.mjs @@ -5,7 +5,7 @@ export default { name: "List Webinar Participants", description: "Use this API to list all the participants who attended a webinar hosted in the past. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/listWebinarParticipants)", key: "zoom_admin-list-webinar-participants", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-webinar-registrants/list-webinar-registrants.mjs b/components/zoom_admin/actions/list-webinar-registrants/list-webinar-registrants.mjs index 5ca2c4adedf45..9b3c55f099dcd 100644 --- a/components/zoom_admin/actions/list-webinar-registrants/list-webinar-registrants.mjs +++ b/components/zoom_admin/actions/list-webinar-registrants/list-webinar-registrants.mjs @@ -6,7 +6,7 @@ export default { name: "List webinar registrants", description: "List all users that have registered for a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrants)", key: "zoom_admin-list-webinar-registrants", - version: "0.2.5", + version: "0.2.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/list-webinars/list-webinars.mjs b/components/zoom_admin/actions/list-webinars/list-webinars.mjs index 61bced7fa9699..6c8258da17ff2 100644 --- a/components/zoom_admin/actions/list-webinars/list-webinars.mjs +++ b/components/zoom_admin/actions/list-webinars/list-webinars.mjs @@ -5,7 +5,7 @@ export default { name: "List Webinars", description: "List all webinars for a user. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinars)", key: "zoom_admin-list-webinars", - version: "0.2.4", + version: "0.2.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/zoom_admin/actions/update-meeting/update-meeting.mjs b/components/zoom_admin/actions/update-meeting/update-meeting.mjs index 519e07843ff94..646d7b5e6e20d 100644 --- a/components/zoom_admin/actions/update-meeting/update-meeting.mjs +++ b/components/zoom_admin/actions/update-meeting/update-meeting.mjs @@ -1,5 +1,6 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import consts from "../../consts.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; import tzs from "../../zoom_tzs.mjs"; @@ -10,7 +11,7 @@ export default { name: "Update a meeting", description: "Update the details of a meeting. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate)", key: "zoom_admin-update-meeting", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -84,7 +85,7 @@ export default { }; const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "PATCH", - path: `/meetings/${get(this.meeting, "value", this.meeting)}`, + path: `/meetings/${doubleEncode(get(this.meeting, "value", this.meeting))}`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), }, diff --git a/components/zoom_admin/actions/update-webinar-registrant-status/update-webinar-registrant-status.mjs b/components/zoom_admin/actions/update-webinar-registrant-status/update-webinar-registrant-status.mjs index 08bf20f50cf0e..c37bcd6331323 100644 --- a/components/zoom_admin/actions/update-webinar-registrant-status/update-webinar-registrant-status.mjs +++ b/components/zoom_admin/actions/update-webinar-registrant-status/update-webinar-registrant-status.mjs @@ -1,6 +1,7 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; import isObject from "lodash/isObject.js"; +import { doubleEncode } from "../../common/utils.mjs"; import consts from "../../consts.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; @@ -8,7 +9,7 @@ export default { name: "Update Webinar Registrant Status", description: "Update registrant status for a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrantstatus)", key: "zoom_admin-update-webinar-registrant-status", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -62,7 +63,7 @@ export default { const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "PUT", - path: `/webinar/${get(this.webinar, "value", this.webinar)}/registrants/status`, + path: `/webinar/${doubleEncode(get(this.webinar, "value", this.webinar))}/registrants/status`, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), }, diff --git a/components/zoom_admin/actions/update-webinar/update-webinar.mjs b/components/zoom_admin/actions/update-webinar/update-webinar.mjs index 7b6e9de46ffc9..60a45e6858ee9 100644 --- a/components/zoom_admin/actions/update-webinar/update-webinar.mjs +++ b/components/zoom_admin/actions/update-webinar/update-webinar.mjs @@ -1,5 +1,6 @@ import { axios } from "@pipedream/platform"; import get from "lodash/get.js"; +import { doubleEncode } from "../../common/utils.mjs"; import consts from "../../consts.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; import tzs from "../../zoom_tzs.mjs"; @@ -13,7 +14,7 @@ export default { name: "Update Webinar", description: "Update the details of a webinar. [See the documentation](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarupdate)", key: "zoom_admin-update-webinar", - version: "0.1.7", + version: "0.1.8", annotations: { destructiveHint: true, openWorldHint: true, @@ -97,7 +98,7 @@ export default { }; const res = await axios($, this.zoomAdmin._getAxiosParams({ method: "PATCH", - path: `/webinars/${get(this.webinar, "value", this.webinar)}`, + path: `/webinars/${doubleEncode(get(this.webinar, "value", this.webinar))}`, data, params: { occurrence_id: get(this.occurrence, "value", this.occurrence), diff --git a/components/zoom_admin/utils.mjs b/components/zoom_admin/common/utils.mjs similarity index 73% rename from components/zoom_admin/utils.mjs rename to components/zoom_admin/common/utils.mjs index 90bcedf9202b2..45dc04e95871e 100644 --- a/components/zoom_admin/utils.mjs +++ b/components/zoom_admin/common/utils.mjs @@ -1,7 +1,7 @@ +import get from "lodash/get.js"; import isArray from "lodash/isArray.js"; import isEmpty from "lodash/isEmpty.js"; import isString from "lodash/isString.js"; -import get from "lodash/get.js"; export const sanitizedArray = (value) => { if (isArray(value)) { @@ -20,3 +20,10 @@ export const sanitizedArray = (value) => { // It is string, try to convert it in an array return value.replace(/["'[\]\s]+/g, "").split(","); }; + +export const doubleEncode = (value) => { + if (typeof value === "string" && (value.startsWith("/") || value.includes("//"))) { + return encodeURIComponent(encodeURIComponent(value)); + } + return value; +}; diff --git a/components/zoom_admin/package.json b/components/zoom_admin/package.json index 0f872c0158046..a8897e7425435 100644 --- a/components/zoom_admin/package.json +++ b/components/zoom_admin/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/zoom_admin", - "version": "0.13.0", + "version": "0.13.1", "description": "Pipedream Zoom_admin Components", "main": "zoom_admin.app.mjs", "keywords": [ diff --git a/components/zoom_admin/sources/account-created/account-created.mjs b/components/zoom_admin/sources/account-created/account-created.mjs index 7d39d4e23935c..d261d2b042e6a 100644 --- a/components/zoom_admin/sources/account-created/account-created.mjs +++ b/components/zoom_admin/sources/account-created/account-created.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Account Created", description: "Emits an event each time a sub-account is created in your master account", - version: "0.1.9", + version: "0.1.10", dedupe: "unique", // Dedupe based on account ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/account-settings-updated/account-settings-updated.mjs b/components/zoom_admin/sources/account-settings-updated/account-settings-updated.mjs index 59356a9b31b32..0524ca2d11bbe 100644 --- a/components/zoom_admin/sources/account-settings-updated/account-settings-updated.mjs +++ b/components/zoom_admin/sources/account-settings-updated/account-settings-updated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Account Settings Updated", description: "Emits an event each time your master account or sub-account settings are updated", - version: "0.1.8", + version: "0.1.9", props: { zoomAdmin, zoomApphook: { diff --git a/components/zoom_admin/sources/account-updated/account-updated.mjs b/components/zoom_admin/sources/account-updated/account-updated.mjs index 8afed01a1f7cd..1f384af7f78eb 100644 --- a/components/zoom_admin/sources/account-updated/account-updated.mjs +++ b/components/zoom_admin/sources/account-updated/account-updated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Account Updated", description: "Emits an event each time your master account or sub-account profile is updated", - version: "0.1.8", + version: "0.1.9", props: { zoomAdmin, zoomApphook: { diff --git a/components/zoom_admin/sources/custom-events/custom-events.mjs b/components/zoom_admin/sources/custom-events/custom-events.mjs index 156522114e866..33f0975949e02 100644 --- a/components/zoom_admin/sources/custom-events/custom-events.mjs +++ b/components/zoom_admin/sources/custom-events/custom-events.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Custom Events", description: "Listen for any events tied to your Zoom account", - version: "0.1.8", + version: "0.1.9", props: { zoomAdmin, eventNameOptions: { diff --git a/components/zoom_admin/sources/meeting-created/meeting-created.mjs b/components/zoom_admin/sources/meeting-created/meeting-created.mjs index 5d4ae1ae10e6e..1fcfe6a0e19d4 100644 --- a/components/zoom_admin/sources/meeting-created/meeting-created.mjs +++ b/components/zoom_admin/sources/meeting-created/meeting-created.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Meeting Created", description: "Emits an event each time a meeting is created in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on meeting ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/meeting-deleted/meeting-deleted.mjs b/components/zoom_admin/sources/meeting-deleted/meeting-deleted.mjs index 9c3fb22f25abe..9d24a4fd2940e 100644 --- a/components/zoom_admin/sources/meeting-deleted/meeting-deleted.mjs +++ b/components/zoom_admin/sources/meeting-deleted/meeting-deleted.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Meeting Deleted", description: "Emits an event each time a meeting is deleted in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on meeting ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/meeting-ended/meeting-ended.mjs b/components/zoom_admin/sources/meeting-ended/meeting-ended.mjs index 1187b6e27f978..53c99cc4dee03 100644 --- a/components/zoom_admin/sources/meeting-ended/meeting-ended.mjs +++ b/components/zoom_admin/sources/meeting-ended/meeting-ended.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Meeting Ended", description: "Emits an event each time a meeting ends in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on meeting ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/meeting-started/meeting-started.mjs b/components/zoom_admin/sources/meeting-started/meeting-started.mjs index f428e0929b6e8..4e40de0a5243b 100644 --- a/components/zoom_admin/sources/meeting-started/meeting-started.mjs +++ b/components/zoom_admin/sources/meeting-started/meeting-started.mjs @@ -6,7 +6,7 @@ export default { type: "source", name: "Meeting Started", description: "Emits an event each time a meeting starts in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on meeting ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/meeting-updated/meeting-updated.mjs b/components/zoom_admin/sources/meeting-updated/meeting-updated.mjs index 17ac3e060cd72..4758eb1dd83e1 100644 --- a/components/zoom_admin/sources/meeting-updated/meeting-updated.mjs +++ b/components/zoom_admin/sources/meeting-updated/meeting-updated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Meeting Updated", description: "Emits an event each time a meeting is updated in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // dedupe on the meeting ID + timestamp props: { zoomAdmin, diff --git a/components/zoom_admin/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs b/components/zoom_admin/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs index f6a8cfb942b33..bf1e6ad4fd306 100644 --- a/components/zoom_admin/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs +++ b/components/zoom_admin/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs @@ -4,7 +4,7 @@ export default { key: "zoom_admin-new-recording-transcript-completed", name: "New Recording Transcript Completed (Instant)", description: "Emit new event each time a recording transcript is completed", - version: "0.0.3", + version: "0.0.4", type: "source", dedupe: "unique", props: { diff --git a/components/zoom_admin/sources/recording-completed/recording-completed.mjs b/components/zoom_admin/sources/recording-completed/recording-completed.mjs index 118f777c046d2..86c88f06fd163 100644 --- a/components/zoom_admin/sources/recording-completed/recording-completed.mjs +++ b/components/zoom_admin/sources/recording-completed/recording-completed.mjs @@ -6,7 +6,7 @@ export default { type: "source", name: "Recording Completed", description: "Emits an event each time a recording is ready for viewing in your Zoom account", - version: "0.1.9", + version: "0.1.10", dedupe: "unique", // Dedupe events based on the ID of the recording file props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-activated/user-activated.mjs b/components/zoom_admin/sources/user-activated/user-activated.mjs index 5f22625021e8d..604e21c7a0d9d 100644 --- a/components/zoom_admin/sources/user-activated/user-activated.mjs +++ b/components/zoom_admin/sources/user-activated/user-activated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "New User Activated", description: "Emit new event each time a user is activated in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-created/user-created.mjs b/components/zoom_admin/sources/user-created/user-created.mjs index 87db05e6d7739..2d91a6df8c23a 100644 --- a/components/zoom_admin/sources/user-created/user-created.mjs +++ b/components/zoom_admin/sources/user-created/user-created.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "User Created", description: "Emits an event each time a user is created in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-deactivated/user-deactivated.mjs b/components/zoom_admin/sources/user-deactivated/user-deactivated.mjs index 7b397d70ded7d..da7d855d0b019 100644 --- a/components/zoom_admin/sources/user-deactivated/user-deactivated.mjs +++ b/components/zoom_admin/sources/user-deactivated/user-deactivated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "User Deactivated", description: "Emits an event each time a user is deactivated in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-deleted/user-deleted.mjs b/components/zoom_admin/sources/user-deleted/user-deleted.mjs index 65a9b4f9af8ee..f4254e44a8ccb 100644 --- a/components/zoom_admin/sources/user-deleted/user-deleted.mjs +++ b/components/zoom_admin/sources/user-deleted/user-deleted.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "User Deleted", description: "Emits an event each time a user is deleted in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-invitation-accepted/user-invitation-accepted.mjs b/components/zoom_admin/sources/user-invitation-accepted/user-invitation-accepted.mjs index f4712f4657c23..58921bc59528b 100644 --- a/components/zoom_admin/sources/user-invitation-accepted/user-invitation-accepted.mjs +++ b/components/zoom_admin/sources/user-invitation-accepted/user-invitation-accepted.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "User Invitation Accepted", description: "Emits an event each time a user accepts an invite to your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/user-updated/user-updated.mjs b/components/zoom_admin/sources/user-updated/user-updated.mjs index ee675427b3031..8e1d5195527a0 100644 --- a/components/zoom_admin/sources/user-updated/user-updated.mjs +++ b/components/zoom_admin/sources/user-updated/user-updated.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "User Updated", description: "Emits an event each time a user's settings are updated in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on user ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/webinar-changes-to-panelists/webinar-changes-to-panelists.mjs b/components/zoom_admin/sources/webinar-changes-to-panelists/webinar-changes-to-panelists.mjs index f90621a0b7658..0e165a805db6d 100644 --- a/components/zoom_admin/sources/webinar-changes-to-panelists/webinar-changes-to-panelists.mjs +++ b/components/zoom_admin/sources/webinar-changes-to-panelists/webinar-changes-to-panelists.mjs @@ -1,14 +1,14 @@ import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform"; import crypto from "crypto"; import difference from "lodash/difference.js"; -import { sanitizedArray } from "../../utils.mjs"; +import { sanitizedArray } from "../../common/utils.mjs"; import zoomAdmin from "../../zoom_admin.app.mjs"; export default { type: "source", name: "Changes to Webinar Panelists", key: "zoom_admin-webinar-changes-to-panelists", - version: "0.1.8", + version: "0.1.7", description: "Emit new event every time a panelist is added or removed from a webinar, or any time their details change", dedupe: "unique", props: { diff --git a/components/zoom_admin/sources/webinar-created/webinar-created.mjs b/components/zoom_admin/sources/webinar-created/webinar-created.mjs index 84368b54f84fc..7ff7a96d3318e 100644 --- a/components/zoom_admin/sources/webinar-created/webinar-created.mjs +++ b/components/zoom_admin/sources/webinar-created/webinar-created.mjs @@ -6,7 +6,7 @@ export default { name: "Webinar Created", description: "Emits an event each time a webinar is created in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on webinar ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/webinar-deleted/webinar-deleted.mjs b/components/zoom_admin/sources/webinar-deleted/webinar-deleted.mjs index 8009332f42d44..48e742d376753 100644 --- a/components/zoom_admin/sources/webinar-deleted/webinar-deleted.mjs +++ b/components/zoom_admin/sources/webinar-deleted/webinar-deleted.mjs @@ -5,7 +5,7 @@ export default { name: "Webinar Deleted", description: "Emits an event each time a webinar is deleted in your Zoom account", - version: "0.1.8", + version: "0.1.9", type: "source", dedupe: "unique", // Dedupe based on webinar ID props: { diff --git a/components/zoom_admin/sources/webinar-ended/webinar-ended.mjs b/components/zoom_admin/sources/webinar-ended/webinar-ended.mjs index 161177dc51dfb..75d421ca75b76 100644 --- a/components/zoom_admin/sources/webinar-ended/webinar-ended.mjs +++ b/components/zoom_admin/sources/webinar-ended/webinar-ended.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Webinar Ended", description: "Emits an event each time a webinar ends in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on webinar ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/webinar-started/webinar-started.mjs b/components/zoom_admin/sources/webinar-started/webinar-started.mjs index 0a6d74c430d50..eaa039e8451b0 100644 --- a/components/zoom_admin/sources/webinar-started/webinar-started.mjs +++ b/components/zoom_admin/sources/webinar-started/webinar-started.mjs @@ -5,7 +5,7 @@ export default { type: "source", name: "Webinar Started", description: "Emits an event each time a webinar starts in your Zoom account", - version: "0.1.10", + version: "0.1.11", dedupe: "unique", // Dedupe based on webinar ID props: { zoomAdmin, diff --git a/components/zoom_admin/sources/webinar-updated/webinar-updated.mjs b/components/zoom_admin/sources/webinar-updated/webinar-updated.mjs index 9af949a41c540..effceb2deabfb 100644 --- a/components/zoom_admin/sources/webinar-updated/webinar-updated.mjs +++ b/components/zoom_admin/sources/webinar-updated/webinar-updated.mjs @@ -6,7 +6,7 @@ export default { name: "Webinar Updated", description: "Emits an event each time a webinar is updated in your Zoom account", - version: "0.1.8", + version: "0.1.9", dedupe: "unique", // Dedupe based on webinar ID props: { zoomAdmin, diff --git a/components/zoom_admin/zoom_admin.app.mjs b/components/zoom_admin/zoom_admin.app.mjs index dd25dc52a3c0b..312365d16d9cf 100644 --- a/components/zoom_admin/zoom_admin.app.mjs +++ b/components/zoom_admin/zoom_admin.app.mjs @@ -3,6 +3,7 @@ import { axios } from "@pipedream/platform"; import flatten from "lodash/flatten.js"; import get from "lodash/get.js"; import sortBy from "lodash/sortBy.js"; +import { doubleEncode } from "./common/utils.mjs"; import consts from "./consts.mjs"; import zoomCountries from "./zoom_countries.mjs"; @@ -264,6 +265,7 @@ export default { }, async listMeetingsOccurrences(meetingId, isWebinar) { try { + meetingId = doubleEncode(meetingId); const path = isWebinar ? `/webinars/${meetingId}` : `/meetings/${meetingId}`; @@ -295,7 +297,7 @@ export default { }, async listWebinarPanelists(webinarID, nextPageToken) { const { data } = await this._makeRequest({ - path: `/webinars/${webinarID}/panelists`, + path: `/webinars/${doubleEncode(webinarID)}/panelists`, params: { page_size: 100, next_page_token: nextPageToken, @@ -304,6 +306,7 @@ export default { return data; }, async listMeetingOrWebinarRegistrants(meetingId, occurrenceId, pageNumber, status, isWebinar) { + meetingId = doubleEncode(meetingId); const path = isWebinar ? `/webinars/${meetingId}/registrants` : `/meetings/${meetingId}/registrants`; @@ -339,7 +342,7 @@ export default { }, async listWebinarParticipants(webinarID, nextPageToken) { const { data } = await this._makeRequest({ - path: `/past_webinars/${webinarID}/participants`, + path: `/past_webinars/${doubleEncode(webinarID)}/participants`, params: { page_size: 100, next_page_token: nextPageToken, @@ -370,7 +373,7 @@ export default { }, async listMeetingRegistrants(meetingId, params, nextPageToken) { const { data } = await this._makeRequest({ - path: `/meetings/${meetingId}/registrants`, + path: `/meetings/${doubleEncode(meetingId)}/registrants`, params: { page_size: 100, next_page_token: nextPageToken, @@ -392,7 +395,7 @@ export default { }, async listWebinarRegistrants(webinarId, params, nextPageToken) { const { data } = await this._makeRequest({ - path: `/webinars/${webinarId}/registrants`, + path: `/webinars/${doubleEncode(webinarId)}/registrants`, params: { page_size: 100, next_page_token: nextPageToken, @@ -414,7 +417,7 @@ export default { }, async listPastMeetingParticipants(meetingId, nextPageToken) { const { data } = await this._makeRequest({ - path: `/past_meetings/${meetingId}/participants`, + path: `/past_meetings/${doubleEncode(meetingId)}/participants`, params: { page_size: 100, next_page_token: nextPageToken, @@ -424,7 +427,7 @@ export default { }, async listMeetingRecordings(meetingId, params, nextPageToken) { const { data } = await this._makeRequest({ - path: `/meetings/${meetingId}/recordings`, + path: `/meetings/${doubleEncode(meetingId)}/recordings`, params: { page_size: 100, next_page_token: nextPageToken,