@dereekb/calcom 13.11.13 → 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 +98 -89
- package/index.esm.js +98 -89
- package/nestjs/index.cjs.js +79 -74
- package/nestjs/index.esm.js +79 -74
- package/nestjs/package.json +5 -5
- package/nestjs/src/lib/calcom/calcom.api.d.ts +24 -24
- package/nestjs/src/lib/calcom/calcom.module.d.ts +4 -4
- package/nestjs/src/lib/oauth/oauth.api.d.ts +7 -7
- package/nestjs/src/lib/oauth/oauth.config.d.ts +2 -2
- package/nestjs/src/lib/oauth/oauth.module.d.ts +2 -2
- package/nestjs/src/lib/oauth/oauth.service.d.ts +12 -11
- package/nestjs/src/lib/webhook/webhook.calcom.d.ts +2 -2
- package/nestjs/src/lib/webhook/webhook.calcom.module.d.ts +4 -4
- package/nestjs/src/lib/webhook/webhook.calcom.verify.d.ts +2 -2
- package/package.json +4 -4
- package/src/lib/calcom/calcom.api.booking.d.ts +10 -9
- package/src/lib/calcom/calcom.api.calendar.d.ts +6 -6
- package/src/lib/calcom/calcom.api.eventtype.d.ts +15 -14
- package/src/lib/calcom/calcom.api.schedule.d.ts +3 -3
- package/src/lib/calcom/calcom.api.slot.d.ts +3 -3
- package/src/lib/calcom/calcom.api.user.d.ts +6 -6
- package/src/lib/calcom/calcom.api.webhook.d.ts +19 -18
- package/src/lib/calcom/calcom.error.api.d.ts +5 -5
- package/src/lib/calcom/calcom.factory.d.ts +3 -2
- package/src/lib/calcom.error.api.d.ts +12 -10
- package/src/lib/calcom.limit.d.ts +2 -2
- package/src/lib/oauth/oauth.api.d.ts +6 -6
- 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 +8 -6
- package/src/lib/shared/calcom.api-version.d.ts +2 -2
|
@@ -7,11 +7,11 @@ export interface CalcomOAuthFactoryConfig {
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new fetch instance to use when making calls.
|
|
9
9
|
*/
|
|
10
|
-
fetchFactory?: CalcomOAuthFetchFactory;
|
|
10
|
+
readonly fetchFactory?: CalcomOAuthFetchFactory;
|
|
11
11
|
/**
|
|
12
12
|
* Custom log error function.
|
|
13
13
|
*/
|
|
14
|
-
logCalcomServerErrorFunction?: LogCalcomServerErrorFunction;
|
|
14
|
+
readonly logCalcomServerErrorFunction?: LogCalcomServerErrorFunction;
|
|
15
15
|
}
|
|
16
16
|
export type CalcomOAuthFactory = (config: CalcomOAuthConfig) => CalcomOAuth;
|
|
17
17
|
/**
|
|
@@ -19,8 +19,9 @@ export type CalcomOAuthFactory = (config: CalcomOAuthConfig) => CalcomOAuth;
|
|
|
19
19
|
* Supports both API key authentication (static token, no refresh) and full OAuth
|
|
20
20
|
* refresh token flow with automatic token rotation.
|
|
21
21
|
*
|
|
22
|
-
* @param factoryConfig -
|
|
23
|
-
* @returns
|
|
22
|
+
* @param factoryConfig - Configuration including optional fetch factory and error logging.
|
|
23
|
+
* @returns A factory function that accepts a CalcomOAuthConfig and produces a CalcomOAuth instance.
|
|
24
|
+
*
|
|
24
25
|
* @__NO_SIDE_EFFECTS__
|
|
25
26
|
*/
|
|
26
27
|
export declare function calcomOAuthFactory(factoryConfig: CalcomOAuthFactoryConfig): CalcomOAuthFactory;
|
|
@@ -39,8 +40,9 @@ export interface CalcomOAuthAccessTokenFactoryConfig {
|
|
|
39
40
|
* Checks the in-memory cache first, then the external cache, and finally refreshes
|
|
40
41
|
* from the token refresher if no valid token is available.
|
|
41
42
|
*
|
|
42
|
-
* @param config -
|
|
43
|
-
* @returns
|
|
43
|
+
* @param config - Configuration including the token refresher, optional cache, and expiration buffer.
|
|
44
|
+
* @returns A CalcomAccessTokenFactory that returns a valid access token on each call.
|
|
45
|
+
*
|
|
44
46
|
* @__NO_SIDE_EFFECTS__
|
|
45
47
|
*/
|
|
46
48
|
export declare function calcomOAuthAccessTokenFactory(config: CalcomOAuthAccessTokenFactoryConfig): CalcomAccessTokenFactory;
|
|
@@ -14,7 +14,7 @@ export declare const CALCOM_API_VERSION_HEADER = "cal-api-version";
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a headers object with the cal-api-version header set.
|
|
16
16
|
*
|
|
17
|
-
* @param version -
|
|
18
|
-
* @returns
|
|
17
|
+
* @param version - The Cal.com API version string to include in the header.
|
|
18
|
+
* @returns A headers record containing the cal-api-version header.
|
|
19
19
|
*/
|
|
20
20
|
export declare function calcomApiVersionHeaders(version: CalcomApiVersionString): Record<string, string>;
|