@dereekb/zoom 13.11.1 → 13.11.3

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/index.cjs.js CHANGED
@@ -77,6 +77,7 @@ function _object_spread_props(target, source) {
77
77
  * @param fetch - function that fetches a single page of results from the Zoom API
78
78
  * @param defaults - optional default pagination configuration
79
79
  * @returns a configured FetchPageFactory that handles Zoom's cursor-based pagination using `next_page_token`
80
+ * @__NO_SIDE_EFFECTS__
80
81
  */ function zoomFetchPageFactory(fetch$1, defaults) {
81
82
  return fetch.fetchPageFactory(_object_spread_props(_object_spread({}, defaults), {
82
83
  fetch: fetch$1,
@@ -364,6 +365,7 @@ function _ts_generator$5(thisArg, body) {
364
365
  *
365
366
  * @param zoomApiNamePrefix Prefix to use when logging. I.E. ZoomError, etc.
366
367
  * @returns
368
+ * @__NO_SIDE_EFFECTS__
367
369
  */ function logZoomServerErrorFunction(zoomApiNamePrefix) {
368
370
  return function(error) {
369
371
  if (_instanceof(error, ZoomServerFetchResponseError)) {
@@ -388,6 +390,7 @@ function _ts_generator$5(thisArg, body) {
388
390
  * @param parseZoomError Function to parse fetch response errors into typed Zoom errors
389
391
  * @param defaultLogError Default error logging function
390
392
  * @returns A factory that wraps ConfiguredFetch with error handling
393
+ * @__NO_SIDE_EFFECTS__
391
394
  */ function handleZoomErrorFetchFactory(parseZoomError, defaultLogError) {
392
395
  return function(fetch$1) {
393
396
  var logError = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultLogError;
@@ -580,6 +583,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
580
583
  *
581
584
  * @param context The Zoom API context
582
585
  * @returns A page factory for paginated meeting listing
586
+ * @__NO_SIDE_EFFECTS__
583
587
  */ function listMeetingsForUserPageFactory(context) {
584
588
  return zoomFetchPageFactory(listMeetingsForUser(context));
585
589
  }
@@ -588,6 +592,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
588
592
  *
589
593
  * @param context The Zoom API context
590
594
  * @returns A function that creates a meeting for a user
595
+ * @__NO_SIDE_EFFECTS__
591
596
  */ function createMeetingForUser(context) {
592
597
  return function(input) {
593
598
  return context.fetchJson("/users/".concat(input.user, "/meetings"), {
@@ -648,6 +653,7 @@ var DELETE_MEETING_DOES_NOT_EXIST_ERROR_CODE = 3001;
648
653
  *
649
654
  * @param context The Zoom API context
650
655
  * @returns A page factory for paginated participant listing
656
+ * @__NO_SIDE_EFFECTS__
651
657
  */ function getPastMeetingParticipantsPageFactory(context) {
652
658
  return zoomFetchPageFactory(getPastMeetingParticipants(context));
653
659
  }
@@ -743,6 +749,7 @@ exports.ZoomRegistrationType = void 0;
743
749
  *
744
750
  * @param context The Zoom API context
745
751
  * @returns A page factory for paginated user listing
752
+ * @__NO_SIDE_EFFECTS__
746
753
  */ function listUsersPageFactory(context) {
747
754
  return zoomFetchPageFactory(listUsers(context));
748
755
  }
@@ -1356,6 +1363,7 @@ function _ts_generator$2(thisArg, body) {
1356
1363
  *
1357
1364
  * @param zoomAccessTokenFactory The factory to extract the token string from
1358
1365
  * @returns A factory that returns the access token string
1366
+ * @__NO_SIDE_EFFECTS__
1359
1367
  */ function zoomAccessTokenStringFactory(zoomAccessTokenFactory) {
1360
1368
  return function() {
1361
1369
  return _async_to_generator$2(function() {
@@ -1587,6 +1595,7 @@ function _ts_generator$1(thisArg, body) {
1587
1595
  *
1588
1596
  * @param factoryConfig Configuration including OAuth context, rate limiting, and fetch settings
1589
1597
  * @returns A factory function that creates a configured Zoom API instance
1598
+ * @__NO_SIDE_EFFECTS__
1590
1599
  */ function zoomFactory(factoryConfig) {
1591
1600
  var oauthContext = factoryConfig.oauthContext;
1592
1601
  var serverAccessTokenStringFactory = zoomAccessTokenStringFactory(oauthContext.loadAccessToken);
@@ -1866,6 +1875,7 @@ function _ts_generator(thisArg, body) {
1866
1875
  *
1867
1876
  * @param factoryConfig Configuration for the OAuth factory
1868
1877
  * @returns A factory that creates configured ZoomOAuth instances
1878
+ * @__NO_SIDE_EFFECTS__
1869
1879
  */ function zoomOAuthFactory(factoryConfig) {
1870
1880
  var fetchHandler = zoomRateLimitedFetchHandler();
1871
1881
  var logZoomServerErrorFunction = factoryConfig.logZoomServerErrorFunction, _factoryConfig_fetchFactory = factoryConfig.fetchFactory, fetchFactory = _factoryConfig_fetchFactory === void 0 ? function() {
@@ -1976,6 +1986,7 @@ function _ts_generator(thisArg, body) {
1976
1986
  *
1977
1987
  * @param config
1978
1988
  * @returns
1989
+ * @__NO_SIDE_EFFECTS__
1979
1990
  */ function zoomOAuthZoomAccessTokenFactory(config) {
1980
1991
  var tokenRefresher = config.tokenRefresher, accessTokenCache = config.accessTokenCache, inputTokenExpirationBuffer = config.tokenExpirationBuffer;
1981
1992
  var tokenExpirationBuffer = inputTokenExpirationBuffer !== null && inputTokenExpirationBuffer !== void 0 ? inputTokenExpirationBuffer : util.MS_IN_MINUTE;
package/index.esm.js CHANGED
@@ -75,6 +75,7 @@ function _object_spread_props(target, source) {
75
75
  * @param fetch - function that fetches a single page of results from the Zoom API
76
76
  * @param defaults - optional default pagination configuration
77
77
  * @returns a configured FetchPageFactory that handles Zoom's cursor-based pagination using `next_page_token`
78
+ * @__NO_SIDE_EFFECTS__
78
79
  */ function zoomFetchPageFactory(fetch, defaults) {
79
80
  return fetchPageFactory(_object_spread_props(_object_spread({}, defaults), {
80
81
  fetch: fetch,
@@ -362,6 +363,7 @@ function _ts_generator$5(thisArg, body) {
362
363
  *
363
364
  * @param zoomApiNamePrefix Prefix to use when logging. I.E. ZoomError, etc.
364
365
  * @returns
366
+ * @__NO_SIDE_EFFECTS__
365
367
  */ function logZoomServerErrorFunction(zoomApiNamePrefix) {
366
368
  return function(error) {
367
369
  if (_instanceof(error, ZoomServerFetchResponseError)) {
@@ -386,6 +388,7 @@ function _ts_generator$5(thisArg, body) {
386
388
  * @param parseZoomError Function to parse fetch response errors into typed Zoom errors
387
389
  * @param defaultLogError Default error logging function
388
390
  * @returns A factory that wraps ConfiguredFetch with error handling
391
+ * @__NO_SIDE_EFFECTS__
389
392
  */ function handleZoomErrorFetchFactory(parseZoomError, defaultLogError) {
390
393
  return function(fetch) {
391
394
  var logError = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultLogError;
@@ -578,6 +581,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
578
581
  *
579
582
  * @param context The Zoom API context
580
583
  * @returns A page factory for paginated meeting listing
584
+ * @__NO_SIDE_EFFECTS__
581
585
  */ function listMeetingsForUserPageFactory(context) {
582
586
  return zoomFetchPageFactory(listMeetingsForUser(context));
583
587
  }
@@ -586,6 +590,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
586
590
  *
587
591
  * @param context The Zoom API context
588
592
  * @returns A function that creates a meeting for a user
593
+ * @__NO_SIDE_EFFECTS__
589
594
  */ function createMeetingForUser(context) {
590
595
  return function(input) {
591
596
  return context.fetchJson("/users/".concat(input.user, "/meetings"), {
@@ -646,6 +651,7 @@ var DELETE_MEETING_DOES_NOT_EXIST_ERROR_CODE = 3001;
646
651
  *
647
652
  * @param context The Zoom API context
648
653
  * @returns A page factory for paginated participant listing
654
+ * @__NO_SIDE_EFFECTS__
649
655
  */ function getPastMeetingParticipantsPageFactory(context) {
650
656
  return zoomFetchPageFactory(getPastMeetingParticipants(context));
651
657
  }
@@ -741,6 +747,7 @@ var ZoomRegistrationType;
741
747
  *
742
748
  * @param context The Zoom API context
743
749
  * @returns A page factory for paginated user listing
750
+ * @__NO_SIDE_EFFECTS__
744
751
  */ function listUsersPageFactory(context) {
745
752
  return zoomFetchPageFactory(listUsers(context));
746
753
  }
@@ -1354,6 +1361,7 @@ function _ts_generator$2(thisArg, body) {
1354
1361
  *
1355
1362
  * @param zoomAccessTokenFactory The factory to extract the token string from
1356
1363
  * @returns A factory that returns the access token string
1364
+ * @__NO_SIDE_EFFECTS__
1357
1365
  */ function zoomAccessTokenStringFactory(zoomAccessTokenFactory) {
1358
1366
  return function() {
1359
1367
  return _async_to_generator$2(function() {
@@ -1585,6 +1593,7 @@ function _ts_generator$1(thisArg, body) {
1585
1593
  *
1586
1594
  * @param factoryConfig Configuration including OAuth context, rate limiting, and fetch settings
1587
1595
  * @returns A factory function that creates a configured Zoom API instance
1596
+ * @__NO_SIDE_EFFECTS__
1588
1597
  */ function zoomFactory(factoryConfig) {
1589
1598
  var oauthContext = factoryConfig.oauthContext;
1590
1599
  var serverAccessTokenStringFactory = zoomAccessTokenStringFactory(oauthContext.loadAccessToken);
@@ -1864,6 +1873,7 @@ function _ts_generator(thisArg, body) {
1864
1873
  *
1865
1874
  * @param factoryConfig Configuration for the OAuth factory
1866
1875
  * @returns A factory that creates configured ZoomOAuth instances
1876
+ * @__NO_SIDE_EFFECTS__
1867
1877
  */ function zoomOAuthFactory(factoryConfig) {
1868
1878
  var fetchHandler = zoomRateLimitedFetchHandler();
1869
1879
  var logZoomServerErrorFunction = factoryConfig.logZoomServerErrorFunction, _factoryConfig_fetchFactory = factoryConfig.fetchFactory, fetchFactory = _factoryConfig_fetchFactory === void 0 ? function() {
@@ -1974,6 +1984,7 @@ function _ts_generator(thisArg, body) {
1974
1984
  *
1975
1985
  * @param config
1976
1986
  * @returns
1987
+ * @__NO_SIDE_EFFECTS__
1977
1988
  */ function zoomOAuthZoomAccessTokenFactory(config) {
1978
1989
  var tokenRefresher = config.tokenRefresher, accessTokenCache = config.accessTokenCache, inputTokenExpirationBuffer = config.tokenExpirationBuffer;
1979
1990
  var tokenExpirationBuffer = inputTokenExpirationBuffer !== null && inputTokenExpirationBuffer !== void 0 ? inputTokenExpirationBuffer : MS_IN_MINUTE;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/zoom/nestjs",
3
- "version": "13.11.1",
3
+ "version": "13.11.3",
4
4
  "peerDependencies": {
5
- "@dereekb/nestjs": "13.11.1",
6
- "@dereekb/rxjs": "13.11.1",
7
- "@dereekb/util": "13.11.1",
8
- "@dereekb/zoom": "13.11.1",
5
+ "@dereekb/nestjs": "13.11.3",
6
+ "@dereekb/rxjs": "13.11.3",
7
+ "@dereekb/util": "13.11.3",
8
+ "@dereekb/zoom": "13.11.3",
9
9
  "@nestjs/common": "^11.1.19",
10
10
  "@nestjs/config": "^4.0.4",
11
11
  "express": "^5.2.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoom",
3
- "version": "13.11.1",
3
+ "version": "13.11.3",
4
4
  "exports": {
5
5
  "./nestjs": {
6
6
  "module": "./nestjs/index.esm.js",
@@ -17,9 +17,9 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@dereekb/nestjs": "13.11.1",
21
- "@dereekb/rxjs": "13.11.1",
22
- "@dereekb/util": "13.11.1",
20
+ "@dereekb/nestjs": "13.11.3",
21
+ "@dereekb/rxjs": "13.11.3",
22
+ "@dereekb/util": "13.11.3",
23
23
  "@nestjs/common": "^11.1.19",
24
24
  "@nestjs/config": "^4.0.4",
25
25
  "express": "^5.2.1",
@@ -70,5 +70,6 @@ export type ZoomAccessTokenStringFactory = () => Promise<ZoomAccessTokenString>;
70
70
  *
71
71
  * @param zoomAccessTokenFactory The factory to extract the token string from
72
72
  * @returns A factory that returns the access token string
73
+ * @__NO_SIDE_EFFECTS__
73
74
  */
74
75
  export declare function zoomAccessTokenStringFactory(zoomAccessTokenFactory: ZoomAccessTokenFactory): ZoomAccessTokenStringFactory;
@@ -19,6 +19,7 @@ export type ZoomOAuthFactory = (config: ZoomOAuthConfig) => ZoomOAuth;
19
19
  *
20
20
  * @param factoryConfig Configuration for the OAuth factory
21
21
  * @returns A factory that creates configured ZoomOAuth instances
22
+ * @__NO_SIDE_EFFECTS__
22
23
  */
23
24
  export declare function zoomOAuthFactory(factoryConfig: ZoomOAuthFactoryConfig): ZoomOAuthFactory;
24
25
  export interface ZoomOAuthZoomAccessTokenFactoryConfig {
@@ -36,5 +37,6 @@ export interface ZoomOAuthZoomAccessTokenFactoryConfig {
36
37
  *
37
38
  * @param config
38
39
  * @returns
40
+ * @__NO_SIDE_EFFECTS__
39
41
  */
40
42
  export declare function zoomOAuthZoomAccessTokenFactory(config: ZoomOAuthZoomAccessTokenFactoryConfig): ZoomAccessTokenFactory;
@@ -35,6 +35,7 @@ export type ListMeetingsForUserPageFactory = FetchPageFactory<ListMeetingsForUse
35
35
  *
36
36
  * @param context The Zoom API context
37
37
  * @returns A page factory for paginated meeting listing
38
+ * @__NO_SIDE_EFFECTS__
38
39
  */
39
40
  export declare function listMeetingsForUserPageFactory(context: ZoomContext): ListMeetingsForUserPageFactory;
40
41
  /**
@@ -135,6 +136,7 @@ export type CreateMeetingForUserResponse = ZoomMeeting;
135
136
  *
136
137
  * @param context The Zoom API context
137
138
  * @returns A function that creates a meeting for a user
139
+ * @__NO_SIDE_EFFECTS__
138
140
  */
139
141
  export declare function createMeetingForUser(context: ZoomContext): (input: CreateMeetingForUserInput) => Promise<CreateMeetingForUserResponse>;
140
142
  /**
@@ -220,5 +222,6 @@ export type GetPastMeetingParticipantsPageFactory = FetchPageFactory<GetPastMeet
220
222
  *
221
223
  * @param context The Zoom API context
222
224
  * @returns A page factory for paginated participant listing
225
+ * @__NO_SIDE_EFFECTS__
223
226
  */
224
227
  export declare function getPastMeetingParticipantsPageFactory(context: ZoomContext): GetPastMeetingParticipantsPageFactory;
@@ -34,5 +34,6 @@ export type ListUsersPageFactory = FetchPageFactory<ListUsersInput, ListUsersRes
34
34
  *
35
35
  * @param context The Zoom API context
36
36
  * @returns A page factory for paginated user listing
37
+ * @__NO_SIDE_EFFECTS__
37
38
  */
38
39
  export declare function listUsersPageFactory(context: ZoomContext): ListUsersPageFactory;
@@ -25,5 +25,6 @@ export type ZoomFactory = (config: ZoomConfig) => Zoom;
25
25
  *
26
26
  * @param factoryConfig Configuration including OAuth context, rate limiting, and fetch settings
27
27
  * @returns A factory function that creates a configured Zoom API instance
28
+ * @__NO_SIDE_EFFECTS__
28
29
  */
29
30
  export declare function zoomFactory(factoryConfig: ZoomFactoryConfig): ZoomFactory;
@@ -69,5 +69,6 @@ export type ZoomFetchPageFetchFunction<I extends ZoomPageFilter, R extends ZoomP
69
69
  * @param fetch - function that fetches a single page of results from the Zoom API
70
70
  * @param defaults - optional default pagination configuration
71
71
  * @returns a configured FetchPageFactory that handles Zoom's cursor-based pagination using `next_page_token`
72
+ * @__NO_SIDE_EFFECTS__
72
73
  */
73
74
  export declare function zoomFetchPageFactory<I extends ZoomPageFilter, R extends ZoomPageResult<any>>(fetch: ZoomFetchPageFetchFunction<I, R>, defaults?: Maybe<FetchPageFactoryConfigDefaults>): import("@dereekb/util/fetch").FetchPageFactory<I, R>;
@@ -54,6 +54,7 @@ export type LogZoomServerErrorFunction = (error: FetchRequestFactoryError | Zoom
54
54
  *
55
55
  * @param zoomApiNamePrefix Prefix to use when logging. I.E. ZoomError, etc.
56
56
  * @returns
57
+ * @__NO_SIDE_EFFECTS__
57
58
  */
58
59
  export declare function logZoomServerErrorFunction(zoomApiNamePrefix: string): LogZoomServerErrorFunction;
59
60
  /**
@@ -71,6 +72,7 @@ export type ParseZoomFetchResponseErrorFunction = (responseError: FetchResponseE
71
72
  * @param parseZoomError Function to parse fetch response errors into typed Zoom errors
72
73
  * @param defaultLogError Default error logging function
73
74
  * @returns A factory that wraps ConfiguredFetch with error handling
75
+ * @__NO_SIDE_EFFECTS__
74
76
  */
75
77
  export declare function handleZoomErrorFetchFactory(parseZoomError: ParseZoomFetchResponseErrorFunction, defaultLogError: LogZoomServerErrorFunction): HandleZoomErrorFetchFactory;
76
78
  /**
@@ -157,6 +159,8 @@ export type SilenceZoomErrorWithCodesFunction<T> = (silence?: boolean) => (reaso
157
159
  * Used with catch() to silence Zoom errors with the specified codes.
158
160
  *
159
161
  * For example, when deleting a meeting that does not exist, the error code is 3001. This function can be used to silence that error.
162
+ *
163
+ * @__NO_SIDE_EFFECTS__
160
164
  */
161
165
  /**
162
166
  * Creates a function that silences Zoom errors with specific error codes.