@pipedream/zoom 0.8.0 → 0.9.1
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/actions/add-meeting-registrant/add-meeting-registrant.mjs +87 -32
- package/actions/add-webinar-registrant/add-webinar-registrant.mjs +1 -1
- package/actions/delete-meeting/delete-meeting.mjs +1 -1
- package/actions/get-meeting-details/get-meeting-details.mjs +1 -1
- package/actions/get-meeting-transcript/get-meeting-transcript.mjs +1 -1
- package/actions/get-webinar-details/get-webinar-details.mjs +1 -1
- package/actions/list-call-recordings/list-call-recordings.mjs +1 -1
- package/actions/list-meetings/list-meetings.mjs +125 -0
- package/actions/list-past-meeting-participants/list-past-meeting-participants.mjs +1 -1
- package/actions/list-past-webinar-qa/list-past-webinar-qa.mjs +1 -1
- package/actions/list-user-call-logs/list-user-call-logs.mjs +1 -1
- package/actions/list-webinar-participants-report/list-webinar-participants-report.mjs +1 -1
- package/actions/update-meeting/update-meeting.mjs +1 -1
- package/actions/update-webinar/update-webinar.mjs +1 -1
- package/common/constants.mjs +20 -0
- package/common/utils.mjs +21 -0
- package/package.json +1 -1
- package/sources/custom-event/custom-event.mjs +1 -1
- package/sources/meeting-created/meeting-created.mjs +1 -1
- package/sources/meeting-deleted/meeting-deleted.mjs +1 -1
- package/sources/meeting-ended/meeting-ended.mjs +1 -1
- package/sources/meeting-started/meeting-started.mjs +1 -1
- package/sources/meeting-updated/meeting-updated.mjs +1 -1
- package/sources/new-recording-transcript-completed/new-recording-transcript-completed.mjs +1 -1
- package/sources/phone-event/phone-event.mjs +1 -1
- package/sources/recording-completed/recording-completed.mjs +1 -1
- package/sources/webinar-created/webinar-created.mjs +1 -1
- package/sources/webinar-deleted/webinar-deleted.mjs +1 -1
- package/sources/webinar-ended/webinar-ended.mjs +1 -1
- package/sources/webinar-started/webinar-started.mjs +1 -1
- package/sources/webinar-updated/webinar-updated.mjs +1 -1
- package/zoom.app.mjs +39 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import app from "../../zoom.app.mjs";
|
|
2
|
+
import { ConfigurationError } from "@pipedream/platform";
|
|
3
|
+
import constants from "../../common/utils.mjs";
|
|
2
4
|
|
|
3
5
|
export default {
|
|
4
6
|
key: "zoom-add-meeting-registrant",
|
|
5
7
|
name: "Add Meeting Registrant",
|
|
6
|
-
description: "Registers a participant for a meeting. [See the
|
|
7
|
-
version: "0.3.
|
|
8
|
+
description: "Registers a participant or multiple participants for a meeting. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingRegistrantCreate)",
|
|
9
|
+
version: "0.3.8",
|
|
8
10
|
annotations: {
|
|
9
11
|
destructiveHint: false,
|
|
10
12
|
openWorldHint: true,
|
|
@@ -18,6 +20,7 @@ export default {
|
|
|
18
20
|
app,
|
|
19
21
|
"meetingId",
|
|
20
22
|
],
|
|
23
|
+
optional: false,
|
|
21
24
|
},
|
|
22
25
|
occurrenceIds: {
|
|
23
26
|
propDefinition: [
|
|
@@ -127,6 +130,33 @@ export default {
|
|
|
127
130
|
"customQuestions",
|
|
128
131
|
],
|
|
129
132
|
},
|
|
133
|
+
registrants: {
|
|
134
|
+
type: "object",
|
|
135
|
+
label: "Registrants",
|
|
136
|
+
description: `Use this field to enter multiple registrants at once. Will override the single registrant fields if provided. Each registrant should be an object with at least the following properties: email, first_name, last_name. Example:
|
|
137
|
+
\`[
|
|
138
|
+
{
|
|
139
|
+
"email": "test@example.com",
|
|
140
|
+
"first_name": "John",
|
|
141
|
+
"last_name": "Doe"
|
|
142
|
+
}
|
|
143
|
+
]\``,
|
|
144
|
+
optional: true,
|
|
145
|
+
reloadProps: true,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
additionalProps(props) {
|
|
149
|
+
// Don't require email, firstName, lastName if registrants array is provided
|
|
150
|
+
props.email.optional = this.registrants
|
|
151
|
+
? true
|
|
152
|
+
: false;
|
|
153
|
+
props.firstName.optional = this.registrants
|
|
154
|
+
? true
|
|
155
|
+
: false;
|
|
156
|
+
props.lastName.optional = this.registrants
|
|
157
|
+
? true
|
|
158
|
+
: false;
|
|
159
|
+
return {};
|
|
130
160
|
},
|
|
131
161
|
methods: {
|
|
132
162
|
addMeetingRegistrant({
|
|
@@ -161,37 +191,62 @@ export default {
|
|
|
161
191
|
customQuestions,
|
|
162
192
|
} = this;
|
|
163
193
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
194
|
+
// If registrants array is provided, use it. Otherwise, use the single registrant fields.
|
|
195
|
+
let registrants = constants.parseArray(this.registrants);
|
|
196
|
+
if (!registrants?.length) {
|
|
197
|
+
registrants = [
|
|
198
|
+
{
|
|
199
|
+
email,
|
|
200
|
+
first_name: firstName,
|
|
201
|
+
last_name: lastName,
|
|
202
|
+
address,
|
|
203
|
+
city,
|
|
204
|
+
country,
|
|
205
|
+
zip,
|
|
206
|
+
state,
|
|
207
|
+
phone,
|
|
208
|
+
industry,
|
|
209
|
+
org,
|
|
210
|
+
job_title: jobTitle,
|
|
211
|
+
purchasing_time_frame: purchasingTimeFrame,
|
|
212
|
+
role_in_purchase_process: roleInPurchaseProcess,
|
|
213
|
+
no_of_employees: noOfEmployees,
|
|
214
|
+
comments,
|
|
215
|
+
custom_questions: typeof(customQuestions) === "undefined"
|
|
216
|
+
? customQuestions
|
|
217
|
+
: JSON.parse(customQuestions),
|
|
218
|
+
},
|
|
219
|
+
];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (registrants.length > 10) {
|
|
223
|
+
throw new ConfigurationError("You can only add up to 10 registrants at once.");
|
|
224
|
+
}
|
|
192
225
|
|
|
193
|
-
|
|
226
|
+
// Add each registrant to the meeting
|
|
227
|
+
const responses = [];
|
|
228
|
+
for (const registrant of registrants) {
|
|
229
|
+
try {
|
|
230
|
+
const registration = await this.addMeetingRegistrant({
|
|
231
|
+
step,
|
|
232
|
+
meetingId,
|
|
233
|
+
params: {
|
|
234
|
+
occurrence_ids: occurrenceIds,
|
|
235
|
+
},
|
|
236
|
+
data: registrant,
|
|
237
|
+
});
|
|
238
|
+
responses.push(registration);
|
|
239
|
+
} catch (error) {
|
|
240
|
+
throw new ConfigurationError(`Added ${responses.length} registrants before encountering an error: ${error.message}`);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
194
243
|
|
|
195
|
-
|
|
244
|
+
if (registrants.length > 1) {
|
|
245
|
+
step.export("$summary", `Successfully added ${registrants.length} registrants to meeting with ID \`${meetingId}\``);
|
|
246
|
+
return responses;
|
|
247
|
+
} else {
|
|
248
|
+
step.export("$summary", `Successfully added registrant to meeting with ID \`${meetingId}\``);
|
|
249
|
+
return responses[0];
|
|
250
|
+
}
|
|
196
251
|
},
|
|
197
252
|
};
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "zoom-add-webinar-registrant",
|
|
5
5
|
name: "Add Webinar Registrant",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.3.8",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "zoom-delete-meeting",
|
|
5
5
|
name: "Delete Meeting",
|
|
6
6
|
description: "Delete a meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/meetings/delete/meetings/{meetingId})",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "zoom-get-meeting-transcript",
|
|
6
6
|
name: "Get Meeting Transcript",
|
|
7
7
|
description: "Get the transcript of a meeting. [See the documentation](https://developers.zoom.us/docs/api/meetings/#tag/cloud-recording/get/meetings/{meetingId}/transcript)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "zoom-get-webinar-details",
|
|
5
5
|
name: "Get Webinar Details",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.3.8",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
name: "List Call Recordings",
|
|
5
5
|
description: "Get your account's call recordings. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/getPhoneRecordings)",
|
|
6
6
|
key: "zoom-list-call-recordings",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.6",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import zoom from "../../zoom.app.mjs";
|
|
2
|
+
import constants from "../../common/constants.mjs";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "List Meetings",
|
|
6
|
+
description: "List meetings for a user. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetings)",
|
|
7
|
+
key: "zoom-list-meetings",
|
|
8
|
+
version: "0.0.2",
|
|
9
|
+
type: "action",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: true,
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
zoom,
|
|
17
|
+
userId: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
zoom,
|
|
20
|
+
"meetingUserId",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
type: {
|
|
24
|
+
type: "string",
|
|
25
|
+
label: "Type",
|
|
26
|
+
description: "The type of meetings to list. Defaults to `scheduled`",
|
|
27
|
+
optional: true,
|
|
28
|
+
options: constants.MEETING_TYPES,
|
|
29
|
+
},
|
|
30
|
+
from: {
|
|
31
|
+
type: "string",
|
|
32
|
+
label: "From",
|
|
33
|
+
description: "The start date and time of the meetings to list. Example: `2023-01-01`",
|
|
34
|
+
optional: true,
|
|
35
|
+
},
|
|
36
|
+
to: {
|
|
37
|
+
type: "string",
|
|
38
|
+
label: "To",
|
|
39
|
+
description: "The end date and time of the meetings to list. Example: `2023-01-01`",
|
|
40
|
+
optional: true,
|
|
41
|
+
},
|
|
42
|
+
timezone: {
|
|
43
|
+
type: "string",
|
|
44
|
+
label: "Timezone",
|
|
45
|
+
description: "The timezone to use for the `from` and `to` dates. Example: `America/New_York`",
|
|
46
|
+
optional: true,
|
|
47
|
+
},
|
|
48
|
+
titleSearch: {
|
|
49
|
+
type: "string",
|
|
50
|
+
label: "Title Search",
|
|
51
|
+
description: "The title of the meetings to search for",
|
|
52
|
+
optional: true,
|
|
53
|
+
},
|
|
54
|
+
createdAfter: {
|
|
55
|
+
type: "string",
|
|
56
|
+
label: "Created After",
|
|
57
|
+
description: "The date and time to filter meetings created after. Example: `2023-01-01`",
|
|
58
|
+
optional: true,
|
|
59
|
+
},
|
|
60
|
+
createdBefore: {
|
|
61
|
+
type: "string",
|
|
62
|
+
label: "Created Before",
|
|
63
|
+
description: "The date and time to filter meetings created before. Example: `2023-01-01`",
|
|
64
|
+
optional: true,
|
|
65
|
+
},
|
|
66
|
+
max: {
|
|
67
|
+
propDefinition: [
|
|
68
|
+
zoom,
|
|
69
|
+
"max",
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
isRelevant(meeting) {
|
|
75
|
+
if (this.titleSearch) {
|
|
76
|
+
if (!meeting.topic?.toLowerCase().includes(this.titleSearch.toLowerCase())) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (this.createdAfter && Date.parse(meeting.created_at) < Date.parse(this.createdAfter)) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.createdBefore && Date.parse(meeting.created_at) > Date.parse(this.createdBefore)) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
async run({ $ }) {
|
|
90
|
+
const meetings = [];
|
|
91
|
+
let count = 0;
|
|
92
|
+
|
|
93
|
+
const results = this.zoom.getResourcesStream({
|
|
94
|
+
resourceFn: this.zoom.listUserMeetings,
|
|
95
|
+
resourceFnArgs: {
|
|
96
|
+
$,
|
|
97
|
+
userId: this.userId,
|
|
98
|
+
params: {
|
|
99
|
+
type: this.type,
|
|
100
|
+
from: this.from,
|
|
101
|
+
to: this.to,
|
|
102
|
+
timezone: this.timezone,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
resourceName: "meetings",
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
for await (const meeting of results) {
|
|
109
|
+
if (!this.isRelevant(meeting)) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
meetings.push(meeting);
|
|
113
|
+
count++;
|
|
114
|
+
if (count >= this.max) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
$.export("$summary", `Successfully retrieved ${count} meeting${count === 1
|
|
120
|
+
? ""
|
|
121
|
+
: "s"}`);
|
|
122
|
+
|
|
123
|
+
return meetings;
|
|
124
|
+
},
|
|
125
|
+
};
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "zoom-list-past-meeting-participants",
|
|
6
6
|
name: "List Past Meeting Participants",
|
|
7
7
|
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).",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.8",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "zoom-list-past-webinar-qa",
|
|
7
7
|
name: "List Past Webinar Q&A",
|
|
8
8
|
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.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.7",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
name: "List User's Call Logs",
|
|
5
5
|
description: "Gets a user's Zoom phone call logs. [See the documentation](https://developers.zoom.us/docs/zoom-phone/apis/#operation/phoneUserCallLogs)",
|
|
6
6
|
key: "zoom-list-user-call-logs",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.8",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "zoom-list-webinar-participants-report",
|
|
6
6
|
name: "List Webinar Participants Report",
|
|
7
7
|
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).",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.9",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
package/common/constants.mjs
CHANGED
|
@@ -2,8 +2,28 @@ const BASE_URL = "https://api.zoom.us";
|
|
|
2
2
|
const VERSION_PATH = "/v2";
|
|
3
3
|
const MAX_RESOURCES = 300;
|
|
4
4
|
|
|
5
|
+
const MEETING_TYPES = [
|
|
6
|
+
{
|
|
7
|
+
value: "scheduled",
|
|
8
|
+
label: "All valid previous (unexpired) meetings, live meetings, and upcoming scheduled meetings",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
value: "live",
|
|
12
|
+
label: "All ongoing meetings",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: "upcoming",
|
|
16
|
+
label: "All upcoming meetings, including live meetings",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: "previous_meetings",
|
|
20
|
+
label: "All the previous meetings",
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
5
24
|
export default {
|
|
6
25
|
BASE_URL,
|
|
7
26
|
VERSION_PATH,
|
|
8
27
|
MAX_RESOURCES,
|
|
28
|
+
MEETING_TYPES,
|
|
9
29
|
};
|
package/common/utils.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ConfigurationError } from "@pipedream/platform";
|
|
2
|
+
|
|
1
3
|
async function streamIterator(stream) {
|
|
2
4
|
const resources = [];
|
|
3
5
|
for await (const resource of stream) {
|
|
@@ -21,8 +23,27 @@ function doubleEncode(value) {
|
|
|
21
23
|
return value;
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
function parseArray(value) {
|
|
27
|
+
if (!value) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (typeof value === "string") {
|
|
31
|
+
try {
|
|
32
|
+
value = JSON.parse(value);
|
|
33
|
+
} catch {
|
|
34
|
+
throw new ConfigurationError(`Could not parse as array: ${value}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (Array.isArray(value)) {
|
|
38
|
+
return value;
|
|
39
|
+
} else {
|
|
40
|
+
throw new ConfigurationError(`Expected a string or array, got ${typeof value}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
24
44
|
export default {
|
|
25
45
|
streamIterator,
|
|
26
46
|
summaryEnd,
|
|
27
47
|
doubleEncode,
|
|
48
|
+
parseArray,
|
|
28
49
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "zoom-new-recording-transcript-completed",
|
|
7
7
|
name: "New Recording Transcript Completed (Instant)",
|
|
8
8
|
description: "Emit new event each time a recording transcript is completed",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "zoom-recording-completed",
|
|
7
7
|
name: "Recording Completed (Instant)",
|
|
8
8
|
description: "Emit new event each time a new recording completes for a meeting or webinar where you're the host",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.7",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
package/zoom.app.mjs
CHANGED
|
@@ -96,6 +96,31 @@ export default {
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
+
meetingUserId: {
|
|
100
|
+
type: "string",
|
|
101
|
+
label: "User ID",
|
|
102
|
+
description: "The user ID or email address of the user to list meetings for",
|
|
103
|
+
async options({ prevContext }) {
|
|
104
|
+
const { nextPageToken } = prevContext;
|
|
105
|
+
const response = await this.listAllUsers({
|
|
106
|
+
params: {
|
|
107
|
+
next_page_token: nextPageToken,
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
const options = response.users.map(({
|
|
111
|
+
id: value, display_name, email,
|
|
112
|
+
}) => ({
|
|
113
|
+
label: `${display_name} - ${email}`,
|
|
114
|
+
value,
|
|
115
|
+
}));
|
|
116
|
+
return {
|
|
117
|
+
options,
|
|
118
|
+
context: {
|
|
119
|
+
nextPageToken: response.next_page_token,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
},
|
|
99
124
|
includeAudioRecordings: {
|
|
100
125
|
type: "boolean",
|
|
101
126
|
label: "Include Audio Recordings",
|
|
@@ -273,6 +298,14 @@ export default {
|
|
|
273
298
|
...args,
|
|
274
299
|
});
|
|
275
300
|
},
|
|
301
|
+
listUserMeetings({
|
|
302
|
+
userId, ...args
|
|
303
|
+
}) {
|
|
304
|
+
return this._makeRequest({
|
|
305
|
+
path: `/users/${userId}/meetings`,
|
|
306
|
+
...args,
|
|
307
|
+
});
|
|
308
|
+
},
|
|
276
309
|
listWebinars({
|
|
277
310
|
userId = "me", ...args
|
|
278
311
|
} = {}) {
|
|
@@ -299,6 +332,12 @@ export default {
|
|
|
299
332
|
...opts,
|
|
300
333
|
});
|
|
301
334
|
},
|
|
335
|
+
listAllUsers(opts = {}) {
|
|
336
|
+
return this._makeRequest({
|
|
337
|
+
path: "/users",
|
|
338
|
+
...opts,
|
|
339
|
+
});
|
|
340
|
+
},
|
|
302
341
|
listCallLogs({
|
|
303
342
|
userId, ...args
|
|
304
343
|
}) {
|