@dereekb/calcom 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.
Files changed (31) hide show
  1. package/index.cjs.js +98 -89
  2. package/index.esm.js +98 -89
  3. package/nestjs/index.cjs.js +79 -74
  4. package/nestjs/index.esm.js +79 -74
  5. package/nestjs/package.json +5 -5
  6. package/nestjs/src/lib/calcom/calcom.api.d.ts +24 -24
  7. package/nestjs/src/lib/calcom/calcom.module.d.ts +4 -4
  8. package/nestjs/src/lib/oauth/oauth.api.d.ts +7 -7
  9. package/nestjs/src/lib/oauth/oauth.config.d.ts +2 -2
  10. package/nestjs/src/lib/oauth/oauth.module.d.ts +2 -2
  11. package/nestjs/src/lib/oauth/oauth.service.d.ts +12 -11
  12. package/nestjs/src/lib/webhook/webhook.calcom.d.ts +2 -2
  13. package/nestjs/src/lib/webhook/webhook.calcom.module.d.ts +4 -4
  14. package/nestjs/src/lib/webhook/webhook.calcom.verify.d.ts +2 -2
  15. package/package.json +4 -4
  16. package/src/lib/calcom/calcom.api.booking.d.ts +10 -9
  17. package/src/lib/calcom/calcom.api.calendar.d.ts +6 -6
  18. package/src/lib/calcom/calcom.api.eventtype.d.ts +15 -14
  19. package/src/lib/calcom/calcom.api.schedule.d.ts +3 -3
  20. package/src/lib/calcom/calcom.api.slot.d.ts +3 -3
  21. package/src/lib/calcom/calcom.api.user.d.ts +6 -6
  22. package/src/lib/calcom/calcom.api.webhook.d.ts +19 -18
  23. package/src/lib/calcom/calcom.error.api.d.ts +5 -5
  24. package/src/lib/calcom/calcom.factory.d.ts +3 -2
  25. package/src/lib/calcom.error.api.d.ts +12 -10
  26. package/src/lib/calcom.limit.d.ts +2 -2
  27. package/src/lib/oauth/oauth.api.d.ts +6 -6
  28. package/src/lib/oauth/oauth.d.ts +3 -2
  29. package/src/lib/oauth/oauth.error.api.d.ts +5 -5
  30. package/src/lib/oauth/oauth.factory.d.ts +8 -6
  31. 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 - configuration including optional fetch factory and error logging
23
- * @returns a factory function that accepts a CalcomOAuthConfig and produces a CalcomOAuth instance
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 - configuration including the token refresher, optional cache, and expiration buffer
43
- * @returns a CalcomAccessTokenFactory that returns a valid access token on each call
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 - the Cal.com API version string to include in the header
18
- * @returns a headers record containing the cal-api-version header
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>;