zaccl 3.0.17 → 4.0.0
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/docs/ECatCloudRecording.js.html +74 -27
- package/docs/ECatGroup.js.html +207 -0
- package/docs/ECatMeeting.js.html +76 -11
- package/docs/ECatUser.js.html +7 -10
- package/docs/ECatWebinar.js.html +6 -5
- package/docs/api.cloudRecording.html +371 -48
- package/docs/api.group.html +367 -0
- package/docs/api.meeting.html +437 -15
- package/docs/api.user.html +10 -10
- package/docs/api.webinar.html +5 -5
- package/docs/index.html +1 -1
- package/lib/endpoints/ECatCloudRecording.d.ts +33 -9
- package/lib/endpoints/ECatCloudRecording.js +73 -26
- package/lib/endpoints/ECatCloudRecording.js.map +1 -1
- package/lib/endpoints/ECatGroup.d.ts +39 -0
- package/lib/endpoints/ECatGroup.js +142 -0
- package/lib/endpoints/ECatGroup.js.map +1 -0
- package/lib/endpoints/ECatMeeting.d.ts +40 -10
- package/lib/endpoints/ECatMeeting.js +75 -10
- package/lib/endpoints/ECatMeeting.js.map +1 -1
- package/lib/endpoints/ECatUser.d.ts +5 -5
- package/lib/endpoints/ECatUser.js +6 -9
- package/lib/endpoints/ECatUser.js.map +1 -1
- package/lib/endpoints/ECatWebinar.d.ts +4 -4
- package/lib/endpoints/ECatWebinar.js +5 -4
- package/lib/endpoints/ECatWebinar.js.map +1 -1
- package/lib/index.d.ts +22 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -1
- package/lib/shared/helpers/genVisitEndpoint.js +60 -17
- package/lib/shared/helpers/genVisitEndpoint.js.map +1 -1
- package/lib/shared/types/VisitEndpointFunc.d.ts +2 -1
- package/lib/types/ZoomAPI.d.ts +2 -0
- package/lib/types/ZoomAPI.js.map +1 -1
- package/lib/types/ZoomGroup.d.ts +10 -0
- package/lib/types/ZoomGroup.js +3 -0
- package/lib/types/ZoomGroup.js.map +1 -0
- package/lib/types/ZoomGroupMember.d.ts +12 -0
- package/lib/types/ZoomGroupMember.js +3 -0
- package/lib/types/ZoomGroupMember.js.map +1 -0
- package/lib/types/ZoomMeetingRecordings.d.ts +1 -0
- package/lib/types/ZoomMeetingTranscript.d.ts +17 -0
- package/lib/types/ZoomMeetingTranscript.js +3 -0
- package/lib/types/ZoomMeetingTranscript.js.map +1 -0
- package/lib/types/ZoomPastMeetingDetails.d.ts +22 -0
- package/lib/types/ZoomPastMeetingDetails.js +3 -0
- package/lib/types/ZoomPastMeetingDetails.js.map +1 -0
- package/lib/types/ZoomPastMeetingParticipant.d.ts +18 -0
- package/lib/types/ZoomPastMeetingParticipant.js +3 -0
- package/lib/types/ZoomPastMeetingParticipant.js.map +1 -0
- package/lib/types/ZoomRecordingInAccount.d.ts +22 -0
- package/lib/types/ZoomRecordingInAccount.js +3 -0
- package/lib/types/ZoomRecordingInAccount.js.map +1 -0
- package/package.json +2 -2
- package/src/endpoints/ECatCloudRecording.ts +86 -30
- package/src/endpoints/ECatGroup.ts +89 -0
- package/src/endpoints/ECatMeeting.ts +81 -10
- package/src/endpoints/ECatUser.ts +6 -9
- package/src/endpoints/ECatWebinar.ts +5 -4
- package/src/index.ts +53 -0
- package/src/shared/helpers/genVisitEndpoint.ts +123 -79
- package/src/shared/types/VisitEndpointFunc.ts +4 -2
- package/src/types/ZoomAPI.ts +2 -0
- package/src/types/ZoomGroup.ts +14 -0
- package/src/types/ZoomGroupMember.ts +20 -0
- package/src/types/ZoomMeetingRecordings.ts +2 -0
- package/src/types/ZoomMeetingTranscript.ts +28 -0
- package/src/types/ZoomPastMeetingDetails.ts +38 -0
- package/src/types/ZoomPastMeetingParticipant.ts +30 -0
- package/src/types/ZoomRecordingInAccount.ts +38 -0
package/docs/api.webinar.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<nav style="border-right: 2px solid #ccc; padding-bottom: 25px;" >
|
|
29
29
|
|
|
30
|
-
<h2><a style="font-size: 30px;" href="index.html">ZACCL API</a></h2><h3>Endpoint Functions</h3><ul><li><a href="api.cloudRecording.html">api.cloudRecording</a><ul class='methods'><li data-type='method'><a href="api.cloudRecording.html#listMeetingRecordings">listMeetingRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listUserRecordings">listUserRecordings</a></li></ul></li><li><a href="api.meeting.html">api.meeting</a><ul class='methods'><li data-type='method'><a href="api.meeting.html#addAltHost">addAltHost</a></li><li data-type='method'><a href="api.meeting.html#create">create</a></li><li data-type='method'><a href="api.meeting.html#delete">delete</a></li><li data-type='method'><a href="api.meeting.html#get">get</a></li><li data-type='method'><a href="api.meeting.html#getPastMeetingDetails">getPastMeetingDetails</a></li><li data-type='method'><a href="api.meeting.html#getPollInfo">getPollInfo</a></li><li data-type='method'><a href="api.meeting.html#listPastInstances">listPastInstances</a></li><li data-type='method'><a href="api.meeting.html#listPastPollOccurrences">listPastPollOccurrences</a></li><li data-type='method'><a href="api.meeting.html#update">update</a></li></ul></li><li><a href="api.user.html">api.user</a><ul class='methods'><li data-type='method'><a href="api.user.html#activate">activate</a></li><li data-type='method'><a href="api.user.html#addWebinarLicense">addWebinarLicense</a></li><li data-type='method'><a href="api.user.html#get">get</a></li><li data-type='method'><a href="api.user.html#getZAKToken">getZAKToken</a></li><li data-type='method'><a href="api.user.html#promoteToLicensed">promoteToLicensed</a></li></ul></li><li><a href="api.webinar.html">api.webinar</a><ul class='methods'><li data-type='method'><a href="api.webinar.html#addPanelist">addPanelist</a></li><li data-type='method'><a href="api.webinar.html#create">create</a></li><li data-type='method'><a href="api.webinar.html#get">get</a></li><li data-type='method'><a href="api.webinar.html#listPanelists">listPanelists</a></li></ul></li></ul>
|
|
30
|
+
<h2><a style="font-size: 30px;" href="index.html">ZACCL API</a></h2><h3>Endpoint Functions</h3><ul><li><a href="api.cloudRecording.html">api.cloudRecording</a><ul class='methods'><li data-type='method'><a href="api.cloudRecording.html#listAccountRecordings">listAccountRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listMeetingRecordings">listMeetingRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listUserRecordings">listUserRecordings</a></li></ul></li><li><a href="api.group.html">api.group</a><ul class='methods'><li data-type='method'><a href="api.group.html#listGroupMembers">listGroupMembers</a></li></ul></li><li><a href="api.meeting.html">api.meeting</a><ul class='methods'><li data-type='method'><a href="api.meeting.html#addAltHost">addAltHost</a></li><li data-type='method'><a href="api.meeting.html#create">create</a></li><li data-type='method'><a href="api.meeting.html#delete">delete</a></li><li data-type='method'><a href="api.meeting.html#get">get</a></li><li data-type='method'><a href="api.meeting.html#getPastMeetingDetails">getPastMeetingDetails</a></li><li data-type='method'><a href="api.meeting.html#getPollInfo">getPollInfo</a></li><li data-type='method'><a href="api.meeting.html#getTranscript">getTranscript</a></li><li data-type='method'><a href="api.meeting.html#listPastInstances">listPastInstances</a></li><li data-type='method'><a href="api.meeting.html#listPastMeetingParticipants">listPastMeetingParticipants</a></li><li data-type='method'><a href="api.meeting.html#listPastPollOccurrences">listPastPollOccurrences</a></li><li data-type='method'><a href="api.meeting.html#update">update</a></li></ul></li><li><a href="api.user.html">api.user</a><ul class='methods'><li data-type='method'><a href="api.user.html#activate">activate</a></li><li data-type='method'><a href="api.user.html#addWebinarLicense">addWebinarLicense</a></li><li data-type='method'><a href="api.user.html#get">get</a></li><li data-type='method'><a href="api.user.html#getZAKToken">getZAKToken</a></li><li data-type='method'><a href="api.user.html#promoteToLicensed">promoteToLicensed</a></li></ul></li><li><a href="api.webinar.html">api.webinar</a><ul class='methods'><li data-type='method'><a href="api.webinar.html#addPanelist">addPanelist</a></li><li data-type='method'><a href="api.webinar.html#create">create</a></li><li data-type='method'><a href="api.webinar.html#get">get</a></li><li data-type='method'><a href="api.webinar.html#listPanelists">listPanelists</a></li></ul></li></ul>
|
|
31
31
|
</nav>
|
|
32
32
|
|
|
33
33
|
<div id="main">
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
<div class="description usertext">
|
|
197
|
-
Add one panelist if not already in the list
|
|
197
|
+
Add one panelist if not already in the list (Medium)
|
|
198
198
|
</div>
|
|
199
199
|
|
|
200
200
|
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
|
|
414
414
|
|
|
415
415
|
<div class="description usertext">
|
|
416
|
-
Create a webinar
|
|
416
|
+
Create a webinar (Light)
|
|
417
417
|
</div>
|
|
418
418
|
|
|
419
419
|
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
|
|
626
626
|
|
|
627
627
|
<div class="description usertext">
|
|
628
|
-
Get info on a Webinar
|
|
628
|
+
Get info on a Webinar (Light)
|
|
629
629
|
</div>
|
|
630
630
|
|
|
631
631
|
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
|
|
933
933
|
|
|
934
934
|
<div class="description usertext">
|
|
935
|
-
Get a list of panelists for a webinar
|
|
935
|
+
Get a list of panelists for a webinar (Medium)
|
|
936
936
|
</div>
|
|
937
937
|
|
|
938
938
|
|
package/docs/index.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<nav style="border-right: 2px solid #ccc; padding-bottom: 25px;" >
|
|
29
29
|
|
|
30
|
-
<h2><a style="font-size: 30px;" href="index.html">ZACCL API</a></h2><h3>Endpoint Functions</h3><ul><li><a href="api.cloudRecording.html">api.cloudRecording</a><ul class='methods'><li data-type='method'><a href="api.cloudRecording.html#listMeetingRecordings">listMeetingRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listUserRecordings">listUserRecordings</a></li></ul></li><li><a href="api.meeting.html">api.meeting</a><ul class='methods'><li data-type='method'><a href="api.meeting.html#addAltHost">addAltHost</a></li><li data-type='method'><a href="api.meeting.html#create">create</a></li><li data-type='method'><a href="api.meeting.html#delete">delete</a></li><li data-type='method'><a href="api.meeting.html#get">get</a></li><li data-type='method'><a href="api.meeting.html#getPastMeetingDetails">getPastMeetingDetails</a></li><li data-type='method'><a href="api.meeting.html#getPollInfo">getPollInfo</a></li><li data-type='method'><a href="api.meeting.html#listPastInstances">listPastInstances</a></li><li data-type='method'><a href="api.meeting.html#listPastPollOccurrences">listPastPollOccurrences</a></li><li data-type='method'><a href="api.meeting.html#update">update</a></li></ul></li><li><a href="api.user.html">api.user</a><ul class='methods'><li data-type='method'><a href="api.user.html#activate">activate</a></li><li data-type='method'><a href="api.user.html#addWebinarLicense">addWebinarLicense</a></li><li data-type='method'><a href="api.user.html#get">get</a></li><li data-type='method'><a href="api.user.html#getZAKToken">getZAKToken</a></li><li data-type='method'><a href="api.user.html#promoteToLicensed">promoteToLicensed</a></li></ul></li><li><a href="api.webinar.html">api.webinar</a><ul class='methods'><li data-type='method'><a href="api.webinar.html#addPanelist">addPanelist</a></li><li data-type='method'><a href="api.webinar.html#create">create</a></li><li data-type='method'><a href="api.webinar.html#get">get</a></li><li data-type='method'><a href="api.webinar.html#listPanelists">listPanelists</a></li></ul></li></ul>
|
|
30
|
+
<h2><a style="font-size: 30px;" href="index.html">ZACCL API</a></h2><h3>Endpoint Functions</h3><ul><li><a href="api.cloudRecording.html">api.cloudRecording</a><ul class='methods'><li data-type='method'><a href="api.cloudRecording.html#listAccountRecordings">listAccountRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listMeetingRecordings">listMeetingRecordings</a></li><li data-type='method'><a href="api.cloudRecording.html#listUserRecordings">listUserRecordings</a></li></ul></li><li><a href="api.group.html">api.group</a><ul class='methods'><li data-type='method'><a href="api.group.html#listGroupMembers">listGroupMembers</a></li></ul></li><li><a href="api.meeting.html">api.meeting</a><ul class='methods'><li data-type='method'><a href="api.meeting.html#addAltHost">addAltHost</a></li><li data-type='method'><a href="api.meeting.html#create">create</a></li><li data-type='method'><a href="api.meeting.html#delete">delete</a></li><li data-type='method'><a href="api.meeting.html#get">get</a></li><li data-type='method'><a href="api.meeting.html#getPastMeetingDetails">getPastMeetingDetails</a></li><li data-type='method'><a href="api.meeting.html#getPollInfo">getPollInfo</a></li><li data-type='method'><a href="api.meeting.html#getTranscript">getTranscript</a></li><li data-type='method'><a href="api.meeting.html#listPastInstances">listPastInstances</a></li><li data-type='method'><a href="api.meeting.html#listPastMeetingParticipants">listPastMeetingParticipants</a></li><li data-type='method'><a href="api.meeting.html#listPastPollOccurrences">listPastPollOccurrences</a></li><li data-type='method'><a href="api.meeting.html#update">update</a></li></ul></li><li><a href="api.user.html">api.user</a><ul class='methods'><li data-type='method'><a href="api.user.html#activate">activate</a></li><li data-type='method'><a href="api.user.html#addWebinarLicense">addWebinarLicense</a></li><li data-type='method'><a href="api.user.html#get">get</a></li><li data-type='method'><a href="api.user.html#getZAKToken">getZAKToken</a></li><li data-type='method'><a href="api.user.html#promoteToLicensed">promoteToLicensed</a></li></ul></li><li><a href="api.webinar.html">api.webinar</a><ul class='methods'><li data-type='method'><a href="api.webinar.html#addPanelist">addPanelist</a></li><li data-type='method'><a href="api.webinar.html#create">create</a></li><li data-type='method'><a href="api.webinar.html#get">get</a></li><li data-type='method'><a href="api.webinar.html#listPanelists">listPanelists</a></li></ul></li></ul>
|
|
31
31
|
</nav>
|
|
32
32
|
|
|
33
33
|
<div id="main">
|
|
@@ -6,32 +6,55 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import EndpointCategory from '../shared/interfaces/EndpointCategory';
|
|
8
8
|
import ZoomMeetingRecordings from '../types/ZoomMeetingRecordings';
|
|
9
|
+
import ZoomRecordingInAccount from '../types/ZoomRecordingInAccount';
|
|
9
10
|
declare class ECatCloudRecording extends EndpointCategory {
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* List recordings in the account (Medium)
|
|
13
|
+
* @author Gabe Abrams
|
|
14
|
+
* @instance
|
|
15
|
+
* @memberof api.cloudRecording
|
|
16
|
+
* @method listAccountRecordings
|
|
17
|
+
* @param opts object containing all arguments
|
|
18
|
+
* @param opts.fromYear the start of the date range to list recordings for (e.g. 2026)
|
|
19
|
+
* @param opts.fromMonth the month of the date range to list recordings for (1-12)
|
|
20
|
+
* @param [opts.fromDay] the day of the month of the date range to list recordings for (1-31, defaults to 1)
|
|
21
|
+
* @param [opts.accountId] the account ID of the account of interest (defaults to the account
|
|
22
|
+
* associated with the current access)
|
|
23
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
24
|
+
* The function is passed the new page of results as an argument.
|
|
25
|
+
* @returns the list of recordings in the account
|
|
26
|
+
*/
|
|
27
|
+
listAccountRecordings(opts: {
|
|
28
|
+
fromYear: number;
|
|
29
|
+
fromMonth: number;
|
|
30
|
+
fromDay?: number;
|
|
31
|
+
accountId?: string;
|
|
32
|
+
onNewPage?: (recordings: ZoomRecordingInAccount[]) => void;
|
|
33
|
+
}): Promise<ZoomRecordingInAccount[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Get all recordings of a meeting (Light)
|
|
12
36
|
* @author Aryan Pandey
|
|
13
37
|
* @instance
|
|
14
38
|
* @memberof api.cloudRecording
|
|
15
39
|
* @method listMeetingRecordings
|
|
16
40
|
* @param opts object containing all arguments
|
|
17
|
-
* @param
|
|
41
|
+
* @param opts.meetingId the Zoom meeting ID or UUID
|
|
42
|
+
* @param opts.includeDownloadAccessToken if true, the response will include a download_access_token
|
|
43
|
+
* that can be used to download the recording files
|
|
18
44
|
* @returns list of Zoom meeting recording objects {@link https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget#responses}
|
|
19
45
|
*/
|
|
20
46
|
listMeetingRecordings(opts: {
|
|
21
47
|
meetingId: string | number;
|
|
48
|
+
includeDownloadAccessToken?: boolean;
|
|
22
49
|
}): Promise<ZoomMeetingRecordings>;
|
|
23
50
|
/**
|
|
24
|
-
* List all cloud recordings of a user
|
|
51
|
+
* List all cloud recordings of a user (Medium)
|
|
25
52
|
* @author Aryan Pandey
|
|
26
53
|
* @instance
|
|
27
54
|
* @memberof api.cloudRecording
|
|
28
55
|
* @method listUserRecordings
|
|
29
56
|
* @param opts object containing all arguments
|
|
30
57
|
* @param opts.userId the user ID or email address of the user
|
|
31
|
-
* @param [opts.pageSize=300] number of records
|
|
32
|
-
* returned from a single API call
|
|
33
|
-
* @param [opts.nextPageToken] token used to pageinate
|
|
34
|
-
* through large result sets
|
|
35
58
|
* @param [opts.searchTrash=false] set to true to retrieve
|
|
36
59
|
* meeting recordings from the trash.
|
|
37
60
|
* @param [opts.startDate=1 month before today]
|
|
@@ -42,15 +65,16 @@ declare class ECatCloudRecording extends EndpointCategory {
|
|
|
42
65
|
* constructor or instance of Date object.
|
|
43
66
|
* Date needs to be within past 6 months. Time data (hours and seconds)
|
|
44
67
|
* is discarded
|
|
68
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
69
|
+
|
|
45
70
|
* @returns List of Zoom Recordings {@link https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist#responses}
|
|
46
71
|
*/
|
|
47
72
|
listUserRecordings(opts: {
|
|
48
73
|
userId: string;
|
|
49
|
-
pageSize?: number;
|
|
50
|
-
nextPageToken?: string;
|
|
51
74
|
searchTrash?: boolean;
|
|
52
75
|
startDate?: (string | Date);
|
|
53
76
|
endDate?: (string | Date);
|
|
77
|
+
onNewPage?: (recordings: ZoomMeetingRecordings[]) => void;
|
|
54
78
|
}): Promise<ZoomMeetingRecordings[]>;
|
|
55
79
|
}
|
|
56
80
|
export default ECatCloudRecording;
|
|
@@ -73,17 +73,75 @@ var ECatCloudRecording = /** @class */ (function (_super) {
|
|
|
73
73
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* List recordings in the account (Medium)
|
|
77
|
+
* @author Gabe Abrams
|
|
78
|
+
* @instance
|
|
79
|
+
* @memberof api.cloudRecording
|
|
80
|
+
* @method listAccountRecordings
|
|
81
|
+
* @param opts object containing all arguments
|
|
82
|
+
* @param opts.fromYear the start of the date range to list recordings for (e.g. 2026)
|
|
83
|
+
* @param opts.fromMonth the month of the date range to list recordings for (1-12)
|
|
84
|
+
* @param [opts.fromDay] the day of the month of the date range to list recordings for (1-31, defaults to 1)
|
|
85
|
+
* @param [opts.accountId] the account ID of the account of interest (defaults to the account
|
|
86
|
+
* associated with the current access)
|
|
87
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
88
|
+
* The function is passed the new page of results as an argument.
|
|
89
|
+
* @returns the list of recordings in the account
|
|
90
|
+
*/
|
|
91
|
+
ECatCloudRecording.prototype.listAccountRecordings = function (opts) {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
var fromYear, fromMonth, fromMonthPadded, fromDay, fromDayPadded, fromDateString, toYear, toMonth, toMonthPadded, toDay, toDayPadded, toDateString;
|
|
95
|
+
return __generator(this, function (_c) {
|
|
96
|
+
fromYear = opts.fromYear, fromMonth = opts.fromMonth;
|
|
97
|
+
fromMonthPadded = fromMonth < 10 ? "0".concat(fromMonth) : fromMonth;
|
|
98
|
+
fromDay = (_a = opts.fromDay) !== null && _a !== void 0 ? _a : 1;
|
|
99
|
+
fromDayPadded = fromDay < 10 ? "0".concat(fromDay) : fromDay;
|
|
100
|
+
fromDateString = "".concat(fromYear, "-").concat(fromMonthPadded, "-").concat(fromDayPadded);
|
|
101
|
+
toYear = fromYear;
|
|
102
|
+
toMonth = opts.fromMonth + 1;
|
|
103
|
+
if (toMonth > 12) {
|
|
104
|
+
toMonth = 1;
|
|
105
|
+
toYear += 1;
|
|
106
|
+
}
|
|
107
|
+
toMonthPadded = toMonth < 10 ? "0".concat(toMonth) : toMonth;
|
|
108
|
+
toDay = fromDay;
|
|
109
|
+
toDayPadded = toDay < 10 ? "0".concat(toDay) : toDay;
|
|
110
|
+
toDateString = "".concat(toYear, "-").concat(toMonthPadded, "-").concat(toDayPadded);
|
|
111
|
+
return [2 /*return*/, this.visitEndpoint({
|
|
112
|
+
path: "/accounts/".concat((_b = opts.accountId) !== null && _b !== void 0 ? _b : 'me', "/recordings"),
|
|
113
|
+
action: 'list recordings in the account',
|
|
114
|
+
method: 'GET',
|
|
115
|
+
params: {
|
|
116
|
+
page_size: 300,
|
|
117
|
+
from: fromDateString,
|
|
118
|
+
to: toDateString,
|
|
119
|
+
},
|
|
120
|
+
onNewPage: opts.onNewPage,
|
|
121
|
+
itemKey: 'meetings',
|
|
122
|
+
errorMap: {
|
|
123
|
+
400: 'Bad request',
|
|
124
|
+
404: 'No recordings found',
|
|
125
|
+
},
|
|
126
|
+
})];
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Get all recordings of a meeting (Light)
|
|
77
132
|
* @author Aryan Pandey
|
|
78
133
|
* @instance
|
|
79
134
|
* @memberof api.cloudRecording
|
|
80
135
|
* @method listMeetingRecordings
|
|
81
136
|
* @param opts object containing all arguments
|
|
82
|
-
* @param
|
|
137
|
+
* @param opts.meetingId the Zoom meeting ID or UUID
|
|
138
|
+
* @param opts.includeDownloadAccessToken if true, the response will include a download_access_token
|
|
139
|
+
* that can be used to download the recording files
|
|
83
140
|
* @returns list of Zoom meeting recording objects {@link https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget#responses}
|
|
84
141
|
*/
|
|
85
142
|
ECatCloudRecording.prototype.listMeetingRecordings = function (opts) {
|
|
86
143
|
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
var params;
|
|
87
145
|
return __generator(this, function (_a) {
|
|
88
146
|
// Check if required param is present
|
|
89
147
|
if (!opts.meetingId) {
|
|
@@ -92,11 +150,17 @@ var ECatCloudRecording = /** @class */ (function (_super) {
|
|
|
92
150
|
code: ErrorCode_1.default.InvalidMeetingId,
|
|
93
151
|
});
|
|
94
152
|
}
|
|
153
|
+
params = {};
|
|
154
|
+
if (opts.includeDownloadAccessToken) {
|
|
155
|
+
params.include_fields = 'download_access_token';
|
|
156
|
+
params.ttl = 604800; // Max TTL
|
|
157
|
+
}
|
|
95
158
|
return [2 /*return*/, this.visitEndpoint({
|
|
96
159
|
// Call function on meetingId to handle double encoding if necessary
|
|
97
160
|
path: "/meetings/".concat((0, utils_1.doubleEncode)(String(opts.meetingId)), "/recordings"),
|
|
98
161
|
method: 'GET',
|
|
99
162
|
action: 'get all recordings of a meeting',
|
|
163
|
+
params: params,
|
|
100
164
|
errorMap: {
|
|
101
165
|
400: {
|
|
102
166
|
1010: 'We could not find the user on this account',
|
|
@@ -111,17 +175,13 @@ var ECatCloudRecording = /** @class */ (function (_super) {
|
|
|
111
175
|
});
|
|
112
176
|
};
|
|
113
177
|
/**
|
|
114
|
-
* List all cloud recordings of a user
|
|
178
|
+
* List all cloud recordings of a user (Medium)
|
|
115
179
|
* @author Aryan Pandey
|
|
116
180
|
* @instance
|
|
117
181
|
* @memberof api.cloudRecording
|
|
118
182
|
* @method listUserRecordings
|
|
119
183
|
* @param opts object containing all arguments
|
|
120
184
|
* @param opts.userId the user ID or email address of the user
|
|
121
|
-
* @param [opts.pageSize=300] number of records
|
|
122
|
-
* returned from a single API call
|
|
123
|
-
* @param [opts.nextPageToken] token used to pageinate
|
|
124
|
-
* through large result sets
|
|
125
185
|
* @param [opts.searchTrash=false] set to true to retrieve
|
|
126
186
|
* meeting recordings from the trash.
|
|
127
187
|
* @param [opts.startDate=1 month before today]
|
|
@@ -132,13 +192,15 @@ var ECatCloudRecording = /** @class */ (function (_super) {
|
|
|
132
192
|
* constructor or instance of Date object.
|
|
133
193
|
* Date needs to be within past 6 months. Time data (hours and seconds)
|
|
134
194
|
* is discarded
|
|
195
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
196
|
+
|
|
135
197
|
* @returns List of Zoom Recordings {@link https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist#responses}
|
|
136
198
|
*/
|
|
137
199
|
ECatCloudRecording.prototype.listUserRecordings = function (opts) {
|
|
138
200
|
return __awaiter(this, void 0, void 0, function () {
|
|
139
|
-
var userId, searchTrash,
|
|
201
|
+
var userId, searchTrash, startDate, endDate, onNewPage, defaultDate, params;
|
|
140
202
|
return __generator(this, function (_a) {
|
|
141
|
-
userId = opts.userId, searchTrash = opts.searchTrash,
|
|
203
|
+
userId = opts.userId, searchTrash = opts.searchTrash, startDate = opts.startDate, endDate = opts.endDate, onNewPage = opts.onNewPage;
|
|
142
204
|
defaultDate = new Date();
|
|
143
205
|
defaultDate.setMonth(defaultDate.getMonth() - 1);
|
|
144
206
|
params = {
|
|
@@ -146,34 +208,19 @@ var ECatCloudRecording = /** @class */ (function (_super) {
|
|
|
146
208
|
trash: !!searchTrash,
|
|
147
209
|
from: (0, utils_1.formatDate)(defaultDate, 'startDate'),
|
|
148
210
|
};
|
|
149
|
-
if (pageSize) {
|
|
150
|
-
// Throw error if pageSize is over max val of 300
|
|
151
|
-
if (pageSize > 300) {
|
|
152
|
-
throw new ZACCLError_1.default({
|
|
153
|
-
message: "We requested ".concat(pageSize, " recordings from Zoom but it can only give us 300 at a time"),
|
|
154
|
-
code: ErrorCode_1.default.InvalidPageSize,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
params.page_size = pageSize;
|
|
158
|
-
}
|
|
159
211
|
if (startDate) {
|
|
160
212
|
params.from = (0, utils_1.formatDate)(startDate, 'startDate');
|
|
161
213
|
}
|
|
162
214
|
if (endDate) {
|
|
163
215
|
params.to = (0, utils_1.formatDate)(endDate, 'endDate');
|
|
164
216
|
}
|
|
165
|
-
if (nextPageToken) {
|
|
166
|
-
params.next_page_token = nextPageToken;
|
|
167
|
-
}
|
|
168
217
|
return [2 /*return*/, this.visitEndpoint({
|
|
169
218
|
path: "/users/".concat(userId, "/recordings"),
|
|
170
219
|
action: 'list all cloud recordings of a user',
|
|
171
220
|
method: 'GET',
|
|
172
221
|
params: params,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return Array.from(body.meetings);
|
|
176
|
-
},
|
|
222
|
+
onNewPage: opts.onNewPage,
|
|
223
|
+
itemKey: 'meetings',
|
|
177
224
|
errorMap: {
|
|
178
225
|
404: {
|
|
179
226
|
1001: "We could not find the Zoom user ".concat(userId, " on this account"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECatCloudRecording.js","sourceRoot":"","sources":["../../src/endpoints/ECatCloudRecording.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2BAA2B;AAC3B,2FAAqE;AAErE,wBAAwB;AACxB,4EAAsD;AACtD,wEAAkD;
|
|
1
|
+
{"version":3,"file":"ECatCloudRecording.js","sourceRoot":"","sources":["../../src/endpoints/ECatCloudRecording.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2BAA2B;AAC3B,2FAAqE;AAErE,wBAAwB;AACxB,4EAAsD;AACtD,wEAAkD;AAMlD,uBAAuB;AACvB,iDAGiC;AAEjC;IAAiC,sCAAgB;IAAjD;;IAqMA,CAAC;IApMC;;;;;;;;;;;;;;;OAeG;IACG,kDAAqB,GAA3B,UACE,IAMC;;;;;gBAIC,QAAQ,GAEN,IAAI,SAFE,EACR,SAAS,GACP,IAAI,UADG,CACF;gBACH,eAAe,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,SAAS,CAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC/D,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,CAAC,CAAC;gBAC5B,aAAa,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,WAAI,OAAO,CAAE,CAAC,CAAC,CAAC,OAAO,CAAC;gBACvD,cAAc,GAAG,UAAG,QAAQ,cAAI,eAAe,cAAI,aAAa,CAAE,CAAC;gBAGrE,MAAM,GAAG,QAAQ,CAAC;gBAClB,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;gBACjC,IAAI,OAAO,GAAG,EAAE,EAAE;oBAChB,OAAO,GAAG,CAAC,CAAC;oBACZ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M,EAAE,KAAK;wBACb,MAAM,QAAA;wBACN,SAAS,EAAE,IAAI,CAAC,SAAS;wBACzB,OAAO,EAAE,UAAU;wBACnB,QAAQ,EAAE;4BACR,GAAG,EAAE;gCACH,IAAI,EAAE,0CAAmC,MAAM,qBAAkB;6BAClE;yBACF;qBACF,CAAC,EAAC;;;KACJ;IAAA,CAAC;IACJ,yBAAC;AAAD,CAAC,AArMD,CAAiC,0BAAgB,GAqMhD;AAED,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAE5E,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Category of endpoints for Zoom groups
|
|
3
|
+
* @author Gabe Abrams
|
|
4
|
+
* @namespace api.group
|
|
5
|
+
*/
|
|
6
|
+
import EndpointCategory from '../shared/interfaces/EndpointCategory';
|
|
7
|
+
import ZoomGroup from '../types/ZoomGroup';
|
|
8
|
+
import ZoomGroupMember from '../types/ZoomGroupMember';
|
|
9
|
+
declare class ECatGroup extends EndpointCategory {
|
|
10
|
+
/**
|
|
11
|
+
* List groups in the account (Medium)
|
|
12
|
+
* @author Gabe Abrams
|
|
13
|
+
* @instance
|
|
14
|
+
* @memberof api.account
|
|
15
|
+
* @method listGroups
|
|
16
|
+
* @param [opts] object containing all arguments
|
|
17
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
18
|
+
* @returns the list of groups in the account
|
|
19
|
+
*/
|
|
20
|
+
listGroups(opts?: {
|
|
21
|
+
onNewPage?: (groups: ZoomGroup[]) => void;
|
|
22
|
+
}): Promise<ZoomGroup[]>;
|
|
23
|
+
/**
|
|
24
|
+
* List the members within a group (Medium)
|
|
25
|
+
* @author Gabe Abrams
|
|
26
|
+
* @instance
|
|
27
|
+
* @memberof api.group
|
|
28
|
+
* @method listGroupMembers
|
|
29
|
+
* @param opts object containing all arguments
|
|
30
|
+
* @params opts.groupId the group ID of the group of interest
|
|
31
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
32
|
+
* @returns the list of members in the group
|
|
33
|
+
*/
|
|
34
|
+
listGroupMembers(opts: {
|
|
35
|
+
groupId: string;
|
|
36
|
+
onNewPage?: (groupMembers: ZoomGroupMember[]) => void;
|
|
37
|
+
}): Promise<ZoomGroupMember[]>;
|
|
38
|
+
}
|
|
39
|
+
export default ECatGroup;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Category of endpoints for Zoom groups
|
|
4
|
+
* @author Gabe Abrams
|
|
5
|
+
* @namespace api.group
|
|
6
|
+
*/
|
|
7
|
+
var __extends = (this && this.__extends) || (function () {
|
|
8
|
+
var extendStatics = function (d, b) {
|
|
9
|
+
extendStatics = Object.setPrototypeOf ||
|
|
10
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12
|
+
return extendStatics(d, b);
|
|
13
|
+
};
|
|
14
|
+
return function (d, b) {
|
|
15
|
+
if (typeof b !== "function" && b !== null)
|
|
16
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17
|
+
extendStatics(d, b);
|
|
18
|
+
function __() { this.constructor = d; }
|
|
19
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20
|
+
};
|
|
21
|
+
})();
|
|
22
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
23
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
25
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
26
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
27
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
28
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
32
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
33
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
34
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
35
|
+
function step(op) {
|
|
36
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
37
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
38
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
39
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
40
|
+
switch (op[0]) {
|
|
41
|
+
case 0: case 1: t = op; break;
|
|
42
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
43
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
44
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
45
|
+
default:
|
|
46
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
47
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
48
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
49
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
50
|
+
if (t[2]) _.ops.pop();
|
|
51
|
+
_.trys.pop(); continue;
|
|
52
|
+
}
|
|
53
|
+
op = body.call(thisArg, _);
|
|
54
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
55
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
// Import shared interfaces
|
|
63
|
+
var EndpointCategory_1 = __importDefault(require("../shared/interfaces/EndpointCategory"));
|
|
64
|
+
var ECatGroup = /** @class */ (function (_super) {
|
|
65
|
+
__extends(ECatGroup, _super);
|
|
66
|
+
function ECatGroup() {
|
|
67
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* List groups in the account (Medium)
|
|
71
|
+
* @author Gabe Abrams
|
|
72
|
+
* @instance
|
|
73
|
+
* @memberof api.account
|
|
74
|
+
* @method listGroups
|
|
75
|
+
* @param [opts] object containing all arguments
|
|
76
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
77
|
+
* @returns the list of groups in the account
|
|
78
|
+
*/
|
|
79
|
+
ECatGroup.prototype.listGroups = function (opts) {
|
|
80
|
+
if (opts === void 0) { opts = {}; }
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
return [2 /*return*/, this.visitEndpoint({
|
|
84
|
+
path: '/groups',
|
|
85
|
+
action: 'list groups in the account',
|
|
86
|
+
method: 'GET',
|
|
87
|
+
params: {
|
|
88
|
+
page_size: 10, // max allowed page size
|
|
89
|
+
// TODO: change above to 300
|
|
90
|
+
},
|
|
91
|
+
errorMap: {
|
|
92
|
+
400: 'Bad request',
|
|
93
|
+
404: {
|
|
94
|
+
4130: 'No groups found for this account.',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
itemKey: 'groups',
|
|
98
|
+
onNewPage: opts.onNewPage,
|
|
99
|
+
})];
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* List the members within a group (Medium)
|
|
105
|
+
* @author Gabe Abrams
|
|
106
|
+
* @instance
|
|
107
|
+
* @memberof api.group
|
|
108
|
+
* @method listGroupMembers
|
|
109
|
+
* @param opts object containing all arguments
|
|
110
|
+
* @params opts.groupId the group ID of the group of interest
|
|
111
|
+
* @param [opts.onNewPage] callback function that is called when a new page of results is received.
|
|
112
|
+
* @returns the list of members in the group
|
|
113
|
+
*/
|
|
114
|
+
ECatGroup.prototype.listGroupMembers = function (opts) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
116
|
+
return __generator(this, function (_a) {
|
|
117
|
+
return [2 /*return*/, this.visitEndpoint({
|
|
118
|
+
path: "/groups/".concat(opts.groupId, "/members"),
|
|
119
|
+
action: 'list members in a Zoom group',
|
|
120
|
+
method: 'GET',
|
|
121
|
+
params: {
|
|
122
|
+
page_size: 2000, // max allowed page size
|
|
123
|
+
},
|
|
124
|
+
itemKey: 'members',
|
|
125
|
+
errorMap: {
|
|
126
|
+
400: 'Bad request',
|
|
127
|
+
404: {
|
|
128
|
+
4130: 'No groups found for this account.',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
onNewPage: opts.onNewPage,
|
|
132
|
+
})];
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return ECatGroup;
|
|
137
|
+
}(EndpointCategory_1.default));
|
|
138
|
+
/*------------------------------------------------------------------------*/
|
|
139
|
+
/* Export */
|
|
140
|
+
/*------------------------------------------------------------------------*/
|
|
141
|
+
exports.default = ECatGroup;
|
|
142
|
+
//# sourceMappingURL=ECatGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ECatGroup.js","sourceRoot":"","sources":["../../src/endpoints/ECatGroup.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;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