@dereekb/zoom 13.11.14 → 13.11.15
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 +79 -67
- package/index.esm.js +79 -67
- package/nestjs/index.cjs.js +53 -49
- package/nestjs/index.esm.js +53 -49
- package/nestjs/package.json +5 -5
- package/nestjs/src/lib/oauth/oauth.config.d.ts +3 -3
- package/nestjs/src/lib/oauth/oauth.module.d.ts +4 -4
- package/nestjs/src/lib/oauth/oauth.service.d.ts +11 -10
- package/nestjs/src/lib/webhook/webhook.zoom.module.d.ts +2 -2
- package/nestjs/src/lib/webhook/webhook.zoom.validate.d.ts +1 -1
- package/nestjs/src/lib/webhook/webhook.zoom.verify.d.ts +3 -3
- package/nestjs/src/lib/zoom/zoom.module.d.ts +4 -4
- package/package.json +4 -4
- package/src/lib/oauth/oauth.api.d.ts +5 -5
- package/src/lib/oauth/oauth.d.ts +3 -2
- package/src/lib/oauth/oauth.error.api.d.ts +5 -5
- package/src/lib/oauth/oauth.factory.d.ts +5 -3
- package/src/lib/zoom/zoom.api.meeting.d.ts +28 -25
- package/src/lib/zoom/zoom.api.user.d.ts +5 -4
- package/src/lib/zoom/zoom.api.user.type.d.ts +2 -2
- package/src/lib/zoom/zoom.error.api.d.ts +5 -5
- package/src/lib/zoom/zoom.factory.d.ts +3 -2
- package/src/lib/zoom.api.page.d.ts +4 -3
- package/src/lib/zoom.error.api.d.ts +13 -11
- package/src/lib/zoom.limit.d.ts +2 -2
|
@@ -4,16 +4,16 @@ export declare const logZoomErrorToConsole: import("..").LogZoomServerErrorFunct
|
|
|
4
4
|
/**
|
|
5
5
|
* Parses a FetchResponseError into a typed Zoom API error.
|
|
6
6
|
*
|
|
7
|
-
* @param responseError The fetch response error to parse
|
|
8
|
-
* @returns The parsed error, or undefined if parsing fails
|
|
7
|
+
* @param responseError - The fetch response error to parse.
|
|
8
|
+
* @returns The parsed error, or undefined if parsing fails.
|
|
9
9
|
*/
|
|
10
10
|
export declare function parseZoomApiError(responseError: FetchResponseError): Promise<ParsedZoomServerError>;
|
|
11
11
|
/**
|
|
12
12
|
* Parses a ZoomServerErrorData into a Zoom API-specific error.
|
|
13
13
|
*
|
|
14
|
-
* @param zoomServerError The raw error data from the Zoom API
|
|
15
|
-
* @param responseError The original fetch response error
|
|
16
|
-
* @returns A parsed error, or undefined if the error is unrecognized
|
|
14
|
+
* @param zoomServerError - The raw error data from the Zoom API.
|
|
15
|
+
* @param responseError - The original fetch response error.
|
|
16
|
+
* @returns A parsed error, or undefined if the error is unrecognized.
|
|
17
17
|
*/
|
|
18
18
|
export declare function parseZoomApiServerErrorResponseData(zoomServerError: ZoomServerErrorData, responseError: FetchResponseError): import("@dereekb/util/fetch").FetchRequestFactoryError | import("..").ZoomServerError<ZoomServerErrorData<unknown>> | undefined;
|
|
19
19
|
export declare const handleZoomErrorFetch: import("..").HandleZoomErrorFetchFactory;
|
|
@@ -23,8 +23,9 @@ export type ZoomFactory = (config: ZoomConfig) => Zoom;
|
|
|
23
23
|
/**
|
|
24
24
|
* Creates a Zoom API factory from the given configuration.
|
|
25
25
|
*
|
|
26
|
-
* @param factoryConfig Configuration including OAuth context, rate limiting, and fetch settings
|
|
27
|
-
* @returns A factory function that creates a configured Zoom API instance
|
|
26
|
+
* @param factoryConfig - Configuration including OAuth context, rate limiting, and fetch settings.
|
|
27
|
+
* @returns A factory function that creates a configured Zoom API instance.
|
|
28
|
+
*
|
|
28
29
|
* @__NO_SIDE_EFFECTS__
|
|
29
30
|
*/
|
|
30
31
|
export declare function zoomFactory(factoryConfig: ZoomFactoryConfig): ZoomFactory;
|
|
@@ -66,9 +66,10 @@ export type ZoomFetchPageFetchFunction<I extends ZoomPageFilter, R extends ZoomP
|
|
|
66
66
|
/**
|
|
67
67
|
* Creates a FetchPageFactory using the input ZoomFetchPageFetchFunction.
|
|
68
68
|
*
|
|
69
|
-
* @param fetch -
|
|
70
|
-
* @param defaults -
|
|
71
|
-
* @returns
|
|
69
|
+
* @param fetch - Function that fetches a single page of results from the Zoom API.
|
|
70
|
+
* @param defaults - Optional default pagination configuration.
|
|
71
|
+
* @returns A configured FetchPageFactory that handles Zoom's cursor-based pagination using `next_page_token`
|
|
72
|
+
*
|
|
72
73
|
* @__NO_SIDE_EFFECTS__
|
|
73
74
|
*/
|
|
74
75
|
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>;
|
|
@@ -52,8 +52,9 @@ export type LogZoomServerErrorFunction = (error: FetchRequestFactoryError | Zoom
|
|
|
52
52
|
/**
|
|
53
53
|
* Creates a logZoomServerErrorFunction that logs the error to console.
|
|
54
54
|
*
|
|
55
|
-
* @param zoomApiNamePrefix Prefix to use when logging. I.E. ZoomError, etc.
|
|
55
|
+
* @param zoomApiNamePrefix - Prefix to use when logging. I.E. ZoomError, etc.
|
|
56
56
|
* @returns
|
|
57
|
+
*
|
|
57
58
|
* @__NO_SIDE_EFFECTS__
|
|
58
59
|
*/
|
|
59
60
|
export declare function logZoomServerErrorFunction(zoomApiNamePrefix: string): LogZoomServerErrorFunction;
|
|
@@ -69,9 +70,10 @@ export type ParseZoomFetchResponseErrorFunction = (responseError: FetchResponseE
|
|
|
69
70
|
/**
|
|
70
71
|
* Wraps a ConfiguredFetch to support handling errors returned by fetch.
|
|
71
72
|
*
|
|
72
|
-
* @param parseZoomError Function to parse fetch response errors into typed Zoom errors
|
|
73
|
-
* @param defaultLogError Default error logging function
|
|
74
|
-
* @returns A factory that wraps ConfiguredFetch with error handling
|
|
73
|
+
* @param parseZoomError - Function to parse fetch response errors into typed Zoom errors.
|
|
74
|
+
* @param defaultLogError - Default error logging function.
|
|
75
|
+
* @returns A factory that wraps ConfiguredFetch with error handling.
|
|
76
|
+
*
|
|
75
77
|
* @__NO_SIDE_EFFECTS__
|
|
76
78
|
*/
|
|
77
79
|
export declare function handleZoomErrorFetchFactory(parseZoomError: ParseZoomFetchResponseErrorFunction, defaultLogError: LogZoomServerErrorFunction): HandleZoomErrorFetchFactory;
|
|
@@ -124,8 +126,8 @@ export interface ZoomRateLimitHeaderDetails {
|
|
|
124
126
|
/**
|
|
125
127
|
* Parses rate limit header details from a Zoom API response.
|
|
126
128
|
*
|
|
127
|
-
* @param headers The response headers to parse
|
|
128
|
-
* @returns Parsed rate limit details, or null if required headers are missing
|
|
129
|
+
* @param headers - The response headers to parse.
|
|
130
|
+
* @returns Parsed rate limit details, or null if required headers are missing.
|
|
129
131
|
*/
|
|
130
132
|
export declare function zoomRateLimitHeaderDetails(headers: Headers): Maybe<ZoomRateLimitHeaderDetails>;
|
|
131
133
|
export declare class ZoomTooManyRequestsError extends ZoomServerFetchResponseError {
|
|
@@ -134,9 +136,9 @@ export declare class ZoomTooManyRequestsError extends ZoomServerFetchResponseErr
|
|
|
134
136
|
/**
|
|
135
137
|
* Function that parses/transforms a ZoomServerErrorData into a general ZoomServerError or other known error type.
|
|
136
138
|
*
|
|
137
|
-
* @param zoomServerError The error data from the Zoom API
|
|
138
|
-
* @param responseError The original fetch response error
|
|
139
|
-
* @returns A typed ZoomServerFetchResponseError, or undefined
|
|
139
|
+
* @param zoomServerError - The error data from the Zoom API.
|
|
140
|
+
* @param responseError - The original fetch response error.
|
|
141
|
+
* @returns A typed ZoomServerFetchResponseError, or undefined.
|
|
140
142
|
*/
|
|
141
143
|
export declare function parseZoomServerErrorData(zoomServerError: ZoomServerErrorData, responseError: FetchResponseError): ZoomServerFetchResponseError | undefined;
|
|
142
144
|
export interface SilenceZoomErrorConfig {
|
|
@@ -150,8 +152,8 @@ export interface SilenceZoomErrorConfig {
|
|
|
150
152
|
*
|
|
151
153
|
* If other options are input, it merges those two options together and adds silenceError to the omitted keys.
|
|
152
154
|
*
|
|
153
|
-
* @param options Optional additional MakeUrlSearchParamsOptions to merge
|
|
154
|
-
* @returns A MakeUrlSearchParamsOptions that omits silenceError
|
|
155
|
+
* @param options - Optional additional MakeUrlSearchParamsOptions to merge.
|
|
156
|
+
* @returns A MakeUrlSearchParamsOptions that omits silenceError.
|
|
155
157
|
*/
|
|
156
158
|
export declare function omitSilenceZoomErrorKeys(options?: MakeUrlSearchParamsOptions): MakeUrlSearchParamsOptions;
|
|
157
159
|
export type SilenceZoomErrorWithCodesFunction<T> = (silence?: boolean) => (reason: unknown) => T;
|
package/src/lib/zoom.limit.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export type ZoomRateLimitedFetchHandler = RateLimitedFetchHandler<ResetPeriodPro
|
|
|
39
39
|
/**
|
|
40
40
|
* Creates a rate-limited fetch handler configured for the Zoom API.
|
|
41
41
|
*
|
|
42
|
-
* @param config Optional configuration for rate limiting behavior
|
|
43
|
-
* @returns A configured rate-limited fetch handler
|
|
42
|
+
* @param config - Optional configuration for rate limiting behavior.
|
|
43
|
+
* @returns A configured rate-limited fetch handler.
|
|
44
44
|
*/
|
|
45
45
|
export declare function zoomRateLimitedFetchHandler(config?: Maybe<ZoomRateLimitedFetchHandlerConfig>): ZoomRateLimitedFetchHandler;
|
|
46
46
|
/**
|