zaccl 3.0.18 → 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.
Files changed (68) hide show
  1. package/docs/ECatCloudRecording.js.html +64 -26
  2. package/docs/ECatGroup.js.html +207 -0
  3. package/docs/ECatMeeting.js.html +76 -11
  4. package/docs/ECatUser.js.html +7 -10
  5. package/docs/ECatWebinar.js.html +6 -5
  6. package/docs/api.cloudRecording.html +328 -50
  7. package/docs/api.group.html +367 -0
  8. package/docs/api.meeting.html +437 -15
  9. package/docs/api.user.html +10 -10
  10. package/docs/api.webinar.html +5 -5
  11. package/docs/index.html +1 -1
  12. package/lib/endpoints/ECatCloudRecording.d.ts +29 -8
  13. package/lib/endpoints/ECatCloudRecording.js +63 -25
  14. package/lib/endpoints/ECatCloudRecording.js.map +1 -1
  15. package/lib/endpoints/ECatGroup.d.ts +39 -0
  16. package/lib/endpoints/ECatGroup.js +142 -0
  17. package/lib/endpoints/ECatGroup.js.map +1 -0
  18. package/lib/endpoints/ECatMeeting.d.ts +40 -10
  19. package/lib/endpoints/ECatMeeting.js +75 -10
  20. package/lib/endpoints/ECatMeeting.js.map +1 -1
  21. package/lib/endpoints/ECatUser.d.ts +5 -5
  22. package/lib/endpoints/ECatUser.js +6 -9
  23. package/lib/endpoints/ECatUser.js.map +1 -1
  24. package/lib/endpoints/ECatWebinar.d.ts +4 -4
  25. package/lib/endpoints/ECatWebinar.js +5 -4
  26. package/lib/endpoints/ECatWebinar.js.map +1 -1
  27. package/lib/index.d.ts +22 -0
  28. package/lib/index.js +19 -0
  29. package/lib/index.js.map +1 -1
  30. package/lib/shared/helpers/genVisitEndpoint.js +60 -17
  31. package/lib/shared/helpers/genVisitEndpoint.js.map +1 -1
  32. package/lib/shared/types/VisitEndpointFunc.d.ts +2 -1
  33. package/lib/types/ZoomAPI.d.ts +2 -0
  34. package/lib/types/ZoomAPI.js.map +1 -1
  35. package/lib/types/ZoomGroup.d.ts +10 -0
  36. package/lib/types/ZoomGroup.js +3 -0
  37. package/lib/types/ZoomGroup.js.map +1 -0
  38. package/lib/types/ZoomGroupMember.d.ts +12 -0
  39. package/lib/types/ZoomGroupMember.js +3 -0
  40. package/lib/types/ZoomGroupMember.js.map +1 -0
  41. package/lib/types/ZoomMeetingTranscript.d.ts +17 -0
  42. package/lib/types/ZoomMeetingTranscript.js +3 -0
  43. package/lib/types/ZoomMeetingTranscript.js.map +1 -0
  44. package/lib/types/ZoomPastMeetingDetails.d.ts +22 -0
  45. package/lib/types/ZoomPastMeetingDetails.js +3 -0
  46. package/lib/types/ZoomPastMeetingDetails.js.map +1 -0
  47. package/lib/types/ZoomPastMeetingParticipant.d.ts +18 -0
  48. package/lib/types/ZoomPastMeetingParticipant.js +3 -0
  49. package/lib/types/ZoomPastMeetingParticipant.js.map +1 -0
  50. package/lib/types/ZoomRecordingInAccount.d.ts +22 -0
  51. package/lib/types/ZoomRecordingInAccount.js +3 -0
  52. package/lib/types/ZoomRecordingInAccount.js.map +1 -0
  53. package/package.json +2 -2
  54. package/src/endpoints/ECatCloudRecording.ts +74 -29
  55. package/src/endpoints/ECatGroup.ts +89 -0
  56. package/src/endpoints/ECatMeeting.ts +81 -10
  57. package/src/endpoints/ECatUser.ts +6 -9
  58. package/src/endpoints/ECatWebinar.ts +5 -4
  59. package/src/index.ts +53 -0
  60. package/src/shared/helpers/genVisitEndpoint.ts +123 -79
  61. package/src/shared/types/VisitEndpointFunc.ts +4 -2
  62. package/src/types/ZoomAPI.ts +2 -0
  63. package/src/types/ZoomGroup.ts +14 -0
  64. package/src/types/ZoomGroupMember.ts +20 -0
  65. package/src/types/ZoomMeetingTranscript.ts +28 -0
  66. package/src/types/ZoomPastMeetingDetails.ts +38 -0
  67. package/src/types/ZoomPastMeetingParticipant.ts +30 -0
  68. package/src/types/ZoomRecordingInAccount.ts +38 -0
@@ -12,7 +12,7 @@ import ZoomUser from '../types/ZoomUser';
12
12
 
13
13
  class ECatUser extends EndpointCategory {
14
14
  /**
15
- * Retrieve a user's ZAK token
15
+ * Retrieve a user's ZAK token (Light)
16
16
  * @author Aryan Pandey
17
17
  * @instance
18
18
  * @memberof api.user
@@ -33,21 +33,18 @@ class ECatUser extends EndpointCategory {
33
33
  params: {
34
34
  type: 'zak',
35
35
  },
36
+ itemKey: 'token',
36
37
  errorMap: {
37
38
  404: {
38
39
  1001: `We could not retrieve a token for Zoom user ${opts.userId} since this user does not exist`,
39
40
  },
40
41
  },
41
- postProcessor: (body) => {
42
- // extract zak token from the response object
43
- return body.token;
44
- },
45
42
  });
46
43
  }
47
44
 
48
45
  /**
49
46
  * (Re)activate a user and promote them to a "licensed" user (unless
50
- * dontPromoteToLicensed is true)
47
+ * dontPromoteToLicensed is true) (Light)
51
48
  * @author Gabe Abrams
52
49
  * @instance
53
50
  * @memberof api.user
@@ -98,7 +95,7 @@ class ECatUser extends EndpointCategory {
98
95
  }
99
96
 
100
97
  /**
101
- * Add a webinar license to the user of interest
98
+ * Add a webinar license to the user of interest (Medium)
102
99
  * @author Gabe Abrams
103
100
  * @instance
104
101
  * @memberof api.user
@@ -136,7 +133,7 @@ class ECatUser extends EndpointCategory {
136
133
  }
137
134
 
138
135
  /**
139
- * Get a user
136
+ * Get a user (Light)
140
137
  * @author Gabe Abrams
141
138
  * @instance
142
139
  * @memberof api.user
@@ -163,7 +160,7 @@ class ECatUser extends EndpointCategory {
163
160
  }
164
161
 
165
162
  /**
166
- * Promote a user to "licensed" type
163
+ * Promote a user to "licensed" type (Light)
167
164
  * @author Gabe Abrams
168
165
  * @instance
169
166
  * @memberof api.user
@@ -13,7 +13,7 @@ import ZoomWebinar from '../types/ZoomWebinar';
13
13
 
14
14
  class ECatWebinar extends EndpointCategory {
15
15
  /**
16
- * Get info on a Webinar
16
+ * Get info on a Webinar (Light)
17
17
  * @author Gabe Abrams
18
18
  * @instance
19
19
  * @memberof api.webinar
@@ -64,7 +64,7 @@ class ECatWebinar extends EndpointCategory {
64
64
  }
65
65
 
66
66
  /**
67
- * Create a webinar
67
+ * Create a webinar (Light)
68
68
  * @author Gabe Abrams
69
69
  * @instance
70
70
  * @memberof api.webinar
@@ -101,7 +101,7 @@ class ECatWebinar extends EndpointCategory {
101
101
  }
102
102
 
103
103
  /**
104
- * Add one panelist if not already in the list
104
+ * Add one panelist if not already in the list (Medium)
105
105
  * @author Gabe Abrams
106
106
  * @instance
107
107
  * @memberof api.webinar
@@ -144,7 +144,7 @@ class ECatWebinar extends EndpointCategory {
144
144
  }
145
145
 
146
146
  /**
147
- * Get a list of panelists for a webinar
147
+ * Get a list of panelists for a webinar (Medium)
148
148
  * @author Gabe Abrams
149
149
  * @instance
150
150
  * @memberof api.webinar
@@ -171,6 +171,7 @@ class ECatWebinar extends EndpointCategory {
171
171
  3001: `Webinar ${opts.webinarId} could not be found or has expired`,
172
172
  },
173
173
  },
174
+ itemKey: 'panelists',
174
175
  });
175
176
 
176
177
  // Just keep list of panelists
package/src/index.ts CHANGED
@@ -9,6 +9,7 @@ import ECatCloudRecording from './endpoints/ECatCloudRecording';
9
9
  import ECatMeeting from './endpoints/ECatMeeting';
10
10
  import ECatUser from './endpoints/ECatUser';
11
11
  import ECatWebinar from './endpoints/ECatWebinar';
12
+ import ECatGroup from './endpoints/ECatGroup';
12
13
 
13
14
  // Import shared types
14
15
  import ZoomAPIConfig from './types/ZoomAPIConfig';
@@ -17,6 +18,29 @@ import ZACCLError from './shared/classes/ZACCLError';
17
18
  import ErrorCode from './shared/types/ErrorCode';
18
19
  import ZoomAPIConfigType from './types/ZoomAPIConfigType';
19
20
 
21
+ // Import all Zoom types
22
+ import ZoomPanelist from './types/ZoomPanelist';
23
+ import ZoomPollInfo from './types/ZoomPollInfo';
24
+ import ZoomPollOccurrence from './types/ZoomPollOccurrence';
25
+ import ZoomFileType from './types/ZoomFileType';
26
+ import ZoomPollQuestion from './types/ZoomPollQuestion';
27
+ import ZoomPollQuestionAndAnswerType from './types/ZoomPollQuestionAndAnswerType';
28
+ import ZoomPollStatus from './types/ZoomPollStatus';
29
+ import ZoomLoginMethod from './types/ZoomLoginMethod';
30
+ import ZoomPollType from './types/ZoomPollType';
31
+ import ZoomRecordingFile from './types/ZoomRecordingFile';
32
+ import ZoomRecordingType from './types/ZoomRecordingType';
33
+ import ZoomMeetingIdAndStartTime from './types/ZoomMeetingIdAndStartTime';
34
+ import ZoomRecurrenceInfo from './types/ZoomRecurrenceInfo';
35
+ import ZoomMeetingOrWebinarType from './types/ZoomMeetingOrWebinarType';
36
+ import ZoomMeetingRecordings from './types/ZoomMeetingRecordings';
37
+ import ZoomUserAnswer from './types/ZoomUserAnswer';
38
+ import ZoomMeetingTranscript from './types/ZoomMeetingTranscript';
39
+ import ZoomUsersAnswersToQuestion from './types/ZoomUsersAnswersToQuestion';
40
+ import ZoomMeetingType from './types/ZoomMeetingType';
41
+ import ZoomWebinar from './types/ZoomWebinar';
42
+ import ZoomPastMeetingParticipant from './types/ZoomPastMeetingParticipant';
43
+
20
44
  // Import shared constants
21
45
  import DEFAULT_ZOOM_HOSTNAME from './shared/constants/DEFAULT_ZOOM_HOSTNAME';
22
46
 
@@ -137,9 +161,38 @@ const initZoomAPI = (
137
161
  api.meeting = new ECatMeeting(initPack);
138
162
  api.user = new ECatUser(initPack);
139
163
  api.webinar = new ECatWebinar(initPack);
164
+ api.group = new ECatGroup(initPack);
140
165
 
141
166
  // Return api instance
142
167
  return api;
143
168
  };
144
169
 
145
170
  export default initZoomAPI;
171
+
172
+ /*----------------------------------------*/
173
+ /* ---------------- Types --------------- */
174
+ /*----------------------------------------*/
175
+
176
+ export {
177
+ ZoomPanelist,
178
+ ZoomPollInfo,
179
+ ZoomPollOccurrence,
180
+ ZoomFileType,
181
+ ZoomPollQuestion,
182
+ ZoomPollQuestionAndAnswerType,
183
+ ZoomPollStatus,
184
+ ZoomLoginMethod,
185
+ ZoomPollType,
186
+ ZoomRecordingFile,
187
+ ZoomRecordingType,
188
+ ZoomMeetingIdAndStartTime,
189
+ ZoomRecurrenceInfo,
190
+ ZoomMeetingOrWebinarType,
191
+ ZoomMeetingRecordings,
192
+ ZoomUserAnswer,
193
+ ZoomMeetingTranscript,
194
+ ZoomUsersAnswersToQuestion,
195
+ ZoomMeetingType,
196
+ ZoomWebinar,
197
+ ZoomPastMeetingParticipant,
198
+ };
@@ -28,6 +28,10 @@ const genVisitEndpoint = (zoomAPIConfig: ZoomAPIConfig): VisitEndpointFunc => {
28
28
  * @param [opts.postProcessor] function that processes the response before
29
29
  * returning
30
30
  * @param [opts.params] Parameters/args/body to send with request
31
+ * @param [opts.onNewPage] callback function that is called when a
32
+ * new page of results is received
33
+ * @param [opts.itemKey] the key in the response body where the list of items can be found
34
+ * @param [opts.onNewPage] callback function that is called when a new page of results is received
31
35
  * @returns response body
32
36
  */
33
37
  return async (
@@ -44,7 +48,8 @@ const genVisitEndpoint = (zoomAPIConfig: ZoomAPIConfig): VisitEndpointFunc => {
44
48
  )
45
49
  },
46
50
  params?: { [k: string]: any },
47
- postProcessor?: (response: any) => any,
51
+ itemKey?: string,
52
+ onNewPage?: (page: any) => void,
48
53
  },
49
54
  ): Promise<any> => {
50
55
  const {
@@ -52,101 +57,140 @@ const genVisitEndpoint = (zoomAPIConfig: ZoomAPIConfig): VisitEndpointFunc => {
52
57
  params,
53
58
  action,
54
59
  errorMap,
55
- postProcessor,
60
+ itemKey,
61
+ onNewPage,
56
62
  } = opts;
57
63
  const method = (opts.method ?? 'GET');
58
64
 
59
- /* ---------- Send Request ---------- */
60
-
61
- const { status, headers, body } = await sendZoomRequest({
62
- path,
63
- method,
64
- params,
65
- zoomAPIConfig,
66
- });
67
-
68
- /* ----------- Rate Error ----------- */
69
-
70
- if (status === 429) {
71
- // Case-insensitive header lookup
72
- const [rateLimitTypeHeader] = Object.keys(headers).filter((header) => {
73
- return (header.toLowerCase() === 'x-ratelimit-type');
65
+ // Paging state
66
+ let nextPageToken: string | undefined = undefined;
67
+ let isFirstPage = true;
68
+ let isPaginated = false; // Inferred by responses, always starts false
69
+ const allItems: any[] = [];
70
+
71
+ // Fetch page by page
72
+ while (nextPageToken || isFirstPage) {
73
+ // Don't fetch another page unless we get a token
74
+ isFirstPage = false;
75
+
76
+ /* ---------- Send Request ---------- */
77
+
78
+ const { status, headers, body } = await sendZoomRequest({
79
+ path,
80
+ method,
81
+ params: {
82
+ ...params,
83
+ next_page_token: nextPageToken,
84
+ },
85
+ zoomAPIConfig,
74
86
  });
75
87
 
76
- // Case-insensitive limit type lookup
77
- const rateLimitType = (
78
- headers[rateLimitTypeHeader]
79
- && headers[rateLimitTypeHeader].toLowerCase()
80
- );
88
+ /* ----------- Rate Error ----------- */
81
89
 
82
- if (rateLimitType === ThrottleHeader.DailyLimitHeader) {
83
- // Daily limit
84
- throw new ZACCLError({
85
- message: 'Zoom is very busy today. Please try this operation again tomorrow.',
86
- code: ErrorCode.DailyLimitError,
87
- });
88
- } else if (rateLimitType === ThrottleHeader.RateLimitHeader) {
89
- // Rate limit
90
- throw new ZACCLError({
91
- message: 'Zoom is very busy right now. Please try this operation again later.',
92
- code: ErrorCode.RateLimitError,
93
- });
94
- } else {
95
- // Unknown rate limit
96
- throw new ZACCLError({
97
- message: 'Zoom is very busy right now. Please try this operation again.',
98
- code: ErrorCode.UnknownLimitError,
90
+ if (status === 429) {
91
+ // Case-insensitive header lookup
92
+ const [rateLimitTypeHeader] = Object.keys(headers).filter((header) => {
93
+ return (header.toLowerCase() === 'x-ratelimit-type');
99
94
  });
95
+
96
+ // Case-insensitive limit type lookup
97
+ const rateLimitType = (
98
+ headers[rateLimitTypeHeader]
99
+ && headers[rateLimitTypeHeader].toLowerCase()
100
+ );
101
+
102
+ if (rateLimitType === ThrottleHeader.DailyLimitHeader) {
103
+ // Daily limit
104
+ throw new ZACCLError({
105
+ message: 'Zoom is very busy today. Please try this operation again tomorrow.',
106
+ code: ErrorCode.DailyLimitError,
107
+ });
108
+ } else if (rateLimitType === ThrottleHeader.RateLimitHeader) {
109
+ // Rate limit
110
+ throw new ZACCLError({
111
+ message: 'Zoom is very busy right now. Please try this operation again later.',
112
+ code: ErrorCode.RateLimitError,
113
+ });
114
+ } else {
115
+ // Unknown rate limit
116
+ throw new ZACCLError({
117
+ message: 'Zoom is very busy right now. Please try this operation again.',
118
+ code: ErrorCode.UnknownLimitError,
119
+ });
120
+ }
100
121
  }
101
- }
102
-
103
- /* -------- Custom Error Code ------- */
104
-
105
- if (status < 200 || status >= 300) {
106
- // A Zoom error occurred
107
-
108
- // Check status to see if its in the error map
109
- let zoomErrorMessage = 'An unknown Zoom error occurred.';
110
- if (errorMap[status]) {
111
- if (typeof errorMap[status] === 'string') {
112
- // Found the error message
113
- zoomErrorMessage = (errorMap[status] as string);
114
- } else if (body.code) {
115
- // Check for nested error message
116
- if (typeof errorMap[status][body.code] === 'string') {
117
- // Found nested error message
118
- zoomErrorMessage = errorMap[status][body.code];
119
- } else if (body.message) {
120
- // errorMap[status][code] did not return err message
121
- // so we check body
122
- if (typeof body.message === 'string') {
123
- zoomErrorMessage = body.message;
122
+
123
+ /* -------- Custom Error Code ------- */
124
+
125
+ if (status < 200 || status >= 300) {
126
+ // A Zoom error occurred
127
+
128
+ // Check status to see if its in the error map
129
+ let zoomErrorMessage = 'An unknown Zoom error occurred.';
130
+ if (errorMap[status]) {
131
+ if (typeof errorMap[status] === 'string') {
132
+ // Found the error message
133
+ zoomErrorMessage = (errorMap[status] as string);
134
+ } else if (body.code) {
135
+ // Check for nested error message
136
+ if (typeof errorMap[status][body.code] === 'string') {
137
+ // Found nested error message
138
+ zoomErrorMessage = errorMap[status][body.code];
139
+ } else if (body.message) {
140
+ // errorMap[status][code] did not return err message
141
+ // so we check body
142
+ if (typeof body.message === 'string') {
143
+ zoomErrorMessage = body.message;
144
+ }
124
145
  }
125
146
  }
147
+ } else if (body.message) {
148
+ // Error message not in the error map so check body
149
+ if (typeof body.message === 'string') {
150
+ zoomErrorMessage = body.message;
151
+ }
126
152
  }
127
- } else if (body.message) {
128
- // Error message not in the error map so check body
129
- if (typeof body.message === 'string') {
130
- zoomErrorMessage = body.message;
131
- }
153
+
154
+ const errorMessage = `We couldn't ${action} because an error occurred: ${zoomErrorMessage}`;
155
+ const errorCode = `ZOOM${status}${body.code ? `-${body.code}` : ''}`;
156
+
157
+ throw new ZACCLError({
158
+ message: errorMessage,
159
+ code: errorCode,
160
+ });
132
161
  }
133
162
 
134
- const errorMessage = `We couldn't ${action} because an error occurred: ${zoomErrorMessage}`;
135
- const errorCode = `ZOOM${status}${body.code ? `-${body.code}` : ''}`;
163
+ /* ----------- Postprocess ---------- */
136
164
 
137
- throw new ZACCLError({
138
- message: errorMessage,
139
- code: errorCode,
140
- });
141
- }
165
+ // Extract results
166
+ let results = itemKey ? body[itemKey] : body;
142
167
 
143
- /* ----- Post-process and Return ---- */
168
+ // Update next page token
169
+ nextPageToken = body.next_page_token;
170
+ if (nextPageToken) {
171
+ isPaginated = true;
172
+ }
144
173
 
145
- if (postProcessor) {
146
- return postProcessor(body);
147
- }
174
+ // End if not paginated
175
+ if (!isPaginated) {
176
+ return results;
177
+ }
178
+
179
+ /* --------- Paging Handling -------- */
180
+
181
+ // Add items to allItems if paginated
182
+ if (Array.isArray(results)) {
183
+ allItems.push(...results);
184
+ }
185
+
186
+ // Call onNewPage callback if it exists
187
+ if (onNewPage) {
188
+ onNewPage(results);
189
+ }
190
+ };
148
191
 
149
- return body;
192
+ // Return all items (if we got here, response is paginated)
193
+ return allItems;
150
194
  };
151
195
  };
152
196
 
@@ -22,8 +22,10 @@ type VisitEndpointFunc = (
22
22
  },
23
23
  // Parameters/args/body to send with request
24
24
  params?: { [k: string]: any },
25
- // Function that processes the response before returning
26
- postProcessor?: (response: any) => any,
25
+ // The key in the response body where the list of items can be found (for paginated endpoints)
26
+ itemKey?: string,
27
+ // Callback function that is called when a new page of results is received (for paginated endpoints)
28
+ onNewPage?: (items: any[]) => void,
27
29
  },
28
30
  ) => Promise<any>
29
31
  );
@@ -1,4 +1,5 @@
1
1
  import ECatCloudRecording from '../endpoints/ECatCloudRecording';
2
+ import ECatGroup from '../endpoints/ECatGroup';
2
3
  import ECatMeeting from '../endpoints/ECatMeeting';
3
4
  import ECatUser from '../endpoints/ECatUser';
4
5
  import ECatWebinar from '../endpoints/ECatWebinar';
@@ -12,6 +13,7 @@ interface ZoomAPI {
12
13
  meeting: ECatMeeting,
13
14
  user: ECatUser,
14
15
  webinar: ECatWebinar,
16
+ group: ECatGroup,
15
17
  };
16
18
 
17
19
  export default ZoomAPI;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Zoom user group
3
+ * @author Gabe Abrams
4
+ */
5
+ type ZoomGroup = {
6
+ // Unique id for the group
7
+ id: string,
8
+ // Name of the group
9
+ name: string,
10
+ // Total number of members in the group
11
+ total_members: number,
12
+ };
13
+
14
+ export default ZoomGroup;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * A single group member within a Zoom group
3
+ * @author Gabe Abrams
4
+ */
5
+ type ZoomGroupMember = {
6
+ // User's email address
7
+ email: string,
8
+ // First name of the user
9
+ first_name: string,
10
+ // Unique Identifier of the user
11
+ id: string,
12
+ // Last name of the user
13
+ last_name: string,
14
+ // User type:
15
+ // 1 - Basic
16
+ // 2 - Licensed
17
+ type: (1 | 2),
18
+ };
19
+
20
+ export default ZoomGroupMember;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Transcript for a specific zoom meeting instance
3
+ * @author Gabe Abrams
4
+ */
5
+ type ZoomMeetingTranscript = {
6
+ // The meeting ID
7
+ meeting_id: string,
8
+ // The user account's unique identifier.
9
+ account_id: string,
10
+ // The meeting topic.
11
+ meeting_topic: string,
12
+ // ID of the user set as the host of the meeting.
13
+ host_id: string,
14
+ // The date and time that the meeting's transcript was created.
15
+ transcript_created_time: string,
16
+ // Whether the meeting transcript is available for download.
17
+ can_download: boolean,
18
+ // Auto-delete status of a meeting's transcript
19
+ auto_delete: boolean,
20
+ // The date when the recording will be auto-deleted when `auto_delete` is true.
21
+ auto_delete_date: string,
22
+ // The URL to download the transcript. Present only when `can_download` is `true`.
23
+ download_url: string | null,
24
+ // The reason why the transcript cannot be downloaded when `can_download` is `false`.
25
+ download_restriction_reason: 'DELETED_OR_TRASHED' | 'UNSUPPORTED' | 'NO_TRANSCRIPT_DATA' | 'NOT_READY' | null,
26
+ };
27
+
28
+ export default ZoomMeetingTranscript;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Details about a past meeting
3
+ * @author Gabe Abrams
4
+ */
5
+ type ZoomPastMeetingDetails = {
6
+ // The meeting ID,
7
+ id: number,
8
+ // The meeting's UUID
9
+ uuid: string,
10
+ // The meeting's duration, in minutes
11
+ duration: number,
12
+ // The meeting's start date and time
13
+ start_time: string,
14
+ // The meeting's end date and time
15
+ end_time: string,
16
+ // The host's ID
17
+ host_id: string,
18
+ // The meeting host's department
19
+ dept: string,
20
+ // The number of meeting participants
21
+ participants_count: number,
22
+ // Whether the meeting was created directly through Zoom or via an API request
23
+ source: string,
24
+ // The meeting's topic
25
+ topic: string,
26
+ // The total number of minutes attended by the meeting's host and participants
27
+ total_minutes: number,
28
+ // The meeting type (0-4, 7-8)
29
+ type: 0 | 1 | 2 | 3 | 4 | 7 | 8,
30
+ // The user's email address
31
+ user_email: string,
32
+ // The user's display name
33
+ user_name: string,
34
+ // Whether the summary feature was used in the meeting
35
+ has_meeting_summary: boolean,
36
+ };
37
+
38
+ export default ZoomPastMeetingDetails;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Represents a participant in a Zoom past meeting.
3
+ * @author Gabe Abrams
4
+ */
5
+ type ZoomPastMeetingParticipant = {
6
+ // Unique identifier for the participant
7
+ id?: string;
8
+ // Display name of the participant
9
+ name?: string;
10
+ // Zoom user ID of the participant
11
+ user_id?: string;
12
+ // Registration ID if participant registered beforehand
13
+ registrant_id?: string;
14
+ // Email address of the participant
15
+ user_email?: string;
16
+ // ISO 8601 timestamp when participant joined the meeting
17
+ join_time?: string;
18
+ // ISO 8601 timestamp when participant left the meeting
19
+ leave_time?: string;
20
+ // Duration in seconds that the participant was in the meeting
21
+ duration?: number;
22
+ // Indicates if participant connected via failover
23
+ failover?: boolean;
24
+ // Current status of the participant in the meeting
25
+ status?: 'in_meeting' | 'in_waiting_room';
26
+ // Indicates if the participant is an internal Zoom user
27
+ internal_user?: boolean;
28
+ };
29
+
30
+ export default ZoomPastMeetingParticipant;
@@ -0,0 +1,38 @@
1
+ import ZoomRecordingFile from './ZoomRecordingFile';
2
+
3
+ /**
4
+ * A single recording in an account
5
+ * @author Gabe Abrams
6
+ */
7
+ type ZoomRecordingInAccount = {
8
+ // The meeting's scheduled duration
9
+ duration: number,
10
+ // The meeting host's user ID
11
+ host_id: string,
12
+ // The meeting's ID
13
+ id: number,
14
+ // The total number of recordings retrieved from the account
15
+ recording_count: number,
16
+ // The information about the recording files
17
+ recording_files: ZoomRecordingFile[],
18
+ // The date and time when the meeting started
19
+ start_time: string,
20
+ // The meeting's topic
21
+ topic: string,
22
+ // The total size of the recording file, in bytes
23
+ total_size: number,
24
+ // The recording's associated type of meeting or webinar
25
+ type: number,
26
+ // The meeting's universally unique ID
27
+ uuid: string,
28
+ // Recording zone used in the Zoom Node Platform
29
+ rc_zone?: string,
30
+ // The unique ID for the hybrid recorder or recording connector
31
+ instance_id?: string,
32
+ // The name of the Zoom Node Service
33
+ service_name?: string,
34
+ // NFS address
35
+ external_storage_addr?: string,
36
+ };
37
+
38
+ export default ZoomRecordingInAccount;