@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.
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
@@ -93,8 +93,8 @@ var CALCOM_API_KEY_CONFIG_KEY = 'CALCOM_API_KEY';
93
93
  /**
94
94
  * Factory function that creates a {@link CalcomOAuthServiceConfig} from NestJS ConfigService environment variables.
95
95
  *
96
- * @param configService - the NestJS ConfigService instance
97
- * @returns a validated CalcomOAuthServiceConfig
96
+ * @param configService - The NestJS ConfigService instance.
97
+ * @returns A validated CalcomOAuthServiceConfig.
98
98
  */ function calcomOAuthServiceConfigFactory(configService) {
99
99
  var clientId = configService.get(CALCOM_CLIENT_ID_CONFIG_KEY);
100
100
  var clientSecret = configService.get(CALCOM_CLIENT_SECRET_CONFIG_KEY);
@@ -379,8 +379,8 @@ exports.CalcomOAuthAccessTokenCacheService = __decorate([
379
379
  *
380
380
  * Uses SHA-256 truncated to 16 hex chars; the goal is fingerprinting, not security.
381
381
  *
382
- * @param refreshToken - the OAuth refresh token to hash
383
- * @returns a 16-character hex string suitable for use as a cache key
382
+ * @param refreshToken - The OAuth refresh token to hash.
383
+ * @returns A 16-character hex string suitable for use as a cache key.
384
384
  */ function calcomRefreshTokenCacheKey(refreshToken) {
385
385
  return node_crypto.createHash('sha256').update(refreshToken).digest('hex').substring(0, 16);
386
386
  }
@@ -438,7 +438,7 @@ function updateCalcomCacheCapturingError(cache, accessToken) {
438
438
  * Default error logging function for {@link mergeCalcomOAuthAccessTokenCacheServices}.
439
439
  * Logs a warning for each cache that failed to update.
440
440
  *
441
- * @param failedUpdates - array of tuples containing the failed cache and its error
441
+ * @param failedUpdates - Array of tuples containing the failed cache and its error.
442
442
  */ function logMergeCalcomOAuthAccessTokenCacheServiceErrorFunction(failedUpdates) {
443
443
  console.warn("mergeCalcomOAuthAccessTokenCacheServices(): failed updating ".concat(failedUpdates.length, " caches."));
444
444
  failedUpdates.forEach(function(param, i) {
@@ -457,9 +457,10 @@ function updateCalcomCacheCapturingError(cache, accessToken) {
457
457
  * never short-circuits the lookup. Updates run across all services in parallel via
458
458
  * `Promise.allSettled`, mirroring the previous behavior, with optional error logging.
459
459
  *
460
- * @param inputServicesToMerge Must include at least one service. Empty arrays will throw an error.
461
- * @param logError - optional error logging configuration; pass a function, true for default logging, or false to disable
462
- * @returns a merged CalcomOAuthAccessTokenCacheService that delegates across all input services
460
+ * @param inputServicesToMerge - Must include at least one service. Empty arrays will throw an error.
461
+ * @param logError - Optional error logging configuration; pass a function, true for default logging, or false to disable.
462
+ * @returns A merged CalcomOAuthAccessTokenCacheService that delegates across all input services.
463
+ * @throws {Error} When `inputServicesToMerge` is empty.
463
464
  */ function mergeCalcomOAuthAccessTokenCacheServices(inputServicesToMerge, logError) {
464
465
  var allServices = _to_consumable_array$3(inputServicesToMerge);
465
466
  var logErrorFunction = typeof logError === 'function' ? logError : logError !== false ? logMergeCalcomOAuthAccessTokenCacheServiceErrorFunction : undefined;
@@ -528,9 +529,9 @@ function updateCalcomCacheCapturingError(cache, accessToken) {
528
529
  /**
529
530
  * Adapts an {@link AsyncValueCache} to a {@link CalcomAccessTokenCache}, optionally logging cache reads/writes to the console.
530
531
  *
531
- * @param cache - underlying single-value cache for the access token
532
- * @param logAccessToConsole - when true, logs reads and writes to the console
533
- * @returns the CalcomAccessTokenCache backed by the given async cache
532
+ * @param cache - Underlying single-value cache for the access token.
533
+ * @param logAccessToConsole - When true, logs reads and writes to the console.
534
+ * @returns The CalcomAccessTokenCache backed by the given async cache.
534
535
  */ function calcomAccessTokenCacheFromAsyncValueCache(cache, logAccessToConsole) {
535
536
  return {
536
537
  loadCachedToken: function loadCachedToken() {
@@ -591,9 +592,9 @@ function updateCalcomCacheCapturingError(cache, accessToken) {
591
592
  * per-user tokens are held in an {@link inMemoryAsyncKeyedValueCache} keyed by the
592
593
  * sha256-truncated refresh token hash.
593
594
  *
594
- * @param existingToken - optional pre-existing server-level access token to seed the cache
595
- * @param logAccessToConsole - when true, logs all cache reads and writes to console
596
- * @returns a CalcomOAuthAccessTokenCacheService backed by in-memory caches
595
+ * @param existingToken - Optional pre-existing server-level access token to seed the cache.
596
+ * @param logAccessToConsole - When true, logs all cache reads and writes to console.
597
+ * @returns A CalcomOAuthAccessTokenCacheService backed by in-memory caches.
597
598
  */ function memoryCalcomOAuthAccessTokenCacheService(existingToken, logAccessToConsole) {
598
599
  var serverCache = util.inMemoryAsyncValueCache(existingToken);
599
600
  var userCache = util.inMemoryAsyncKeyedValueCache();
@@ -627,22 +628,26 @@ var CALCOM_SERVER_TOKEN_FILE_KEY = 'server';
627
628
  * Reviver applied to the cached file payload on load so `expiresAt` is always a `Date`
628
629
  * regardless of how it was serialized.
629
630
  *
630
- * @param raw - the raw JSON-parsed file payload
631
- * @returns the revived CalcomAccessToken, or undefined when the payload is empty/invalid
631
+ * @param raw - The raw JSON-parsed file payload.
632
+ * @returns The revived CalcomAccessToken, or undefined when the payload is empty/invalid.
632
633
  */ function reviveCalcomAccessTokenFile(raw) {
634
+ var result;
633
635
  if (raw == null || (typeof raw === "undefined" ? "undefined" : _type_of(raw)) !== 'object') {
634
- return undefined;
635
- }
636
- var wrapper = raw;
637
- var token = wrapper.token;
638
- if (token == null) {
639
- return undefined;
636
+ result = undefined;
637
+ } else {
638
+ var wrapper = raw;
639
+ var token = wrapper.token;
640
+ if (token == null) {
641
+ result = undefined;
642
+ } else {
643
+ var rawExpiresAt = token.expiresAt;
644
+ var expiresAt = rawExpiresAt != null && !_instanceof(rawExpiresAt, Date) ? new Date(rawExpiresAt) : rawExpiresAt;
645
+ result = _object_spread_props$2(_object_spread$2({}, token), {
646
+ expiresAt: expiresAt
647
+ });
648
+ }
640
649
  }
641
- var rawExpiresAt = token.expiresAt;
642
- var expiresAt = rawExpiresAt != null && !_instanceof(rawExpiresAt, Date) ? new Date(rawExpiresAt) : rawExpiresAt;
643
- return _object_spread_props$2(_object_spread$2({}, token), {
644
- expiresAt: expiresAt
645
- });
650
+ return result;
646
651
  }
647
652
  /**
648
653
  * Creates a CalcomOAuthAccessTokenCacheService that reads and writes access tokens
@@ -658,8 +663,8 @@ var CALCOM_SERVER_TOKEN_FILE_KEY = 'server';
658
663
  * user-<sha256hash>.json — per-user tokens (hash of initial refresh token)
659
664
  * ```
660
665
  *
661
- * @param cacheDir Directory to store token files. Defaults to `.tmp/calcom-tokens`.
662
- * @returns a CalcomOAuthAccessTokenCacheService backed by the file system
666
+ * @param cacheDir - Directory to store token files. Defaults to `.tmp/calcom-tokens`.
667
+ * @returns A CalcomOAuthAccessTokenCacheService backed by the file system.
663
668
  */ function fileCalcomOAuthAccessTokenCacheService() {
664
669
  var cacheDir = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_FILE_CALCOM_ACCESS_TOKEN_CACHE_DIR;
665
670
  var cachesByKey = new Map();
@@ -795,7 +800,7 @@ exports.CalcomOAuthApi = /*#__PURE__*/ function() {
795
800
  /**
796
801
  * Configured pass-through for {@link exchangeAuthorizationCode}.
797
802
  *
798
- * @returns function to exchange an OAuth authorization code for tokens
803
+ * @returns Function to exchange an OAuth authorization code for tokens.
799
804
  */ function get() {
800
805
  return calcom.exchangeAuthorizationCode(this.oauthContext);
801
806
  }
@@ -804,10 +809,10 @@ exports.CalcomOAuthApi = /*#__PURE__*/ function() {
804
809
  /**
805
810
  * Retrieves an access token for a specific user using their refresh token.
806
811
  *
807
- * @param input - contains the user's refresh token and optional access token cache
808
- * @param input.refreshToken - the user's OAuth refresh token
809
- * @param input.userAccessTokenCache - optional cache to store/retrieve the user's access token
810
- * @returns a promise resolving to the user's CalcomAccessToken
812
+ * @param input - Contains the user's refresh token and optional access token cache.
813
+ * @param input.refreshToken - The user's OAuth refresh token.
814
+ * @param input.userAccessTokenCache - Optional cache to store/retrieve the user's access token.
815
+ * @returns Promise resolving to the user's CalcomAccessToken.
811
816
  */ key: "userAccessToken",
812
817
  value: function userAccessToken(input) {
813
818
  var factory = this.oauthContext.makeUserAccessTokenFactory(input);
@@ -819,8 +824,8 @@ exports.CalcomOAuthApi = /*#__PURE__*/ function() {
819
824
  * Returns a per-user CalcomAccessTokenCache derived from the refresh token (md5 hashed as the file key).
820
825
  * Returns undefined if the cache service does not support per-user caching.
821
826
  *
822
- * @param refreshToken - the user's OAuth refresh token used to derive the cache key
823
- * @returns a per-user access token cache, or undefined if not supported
827
+ * @param refreshToken - The user's OAuth refresh token used to derive the cache key.
828
+ * @returns A per-user access token cache, or undefined if not supported.
824
829
  */ key: "cacheForRefreshToken",
825
830
  value: function cacheForRefreshToken(refreshToken) {
826
831
  var _this_cacheService_cacheForRefreshToken, _this_cacheService;
@@ -864,8 +869,8 @@ function _unsupported_iterable_to_array$2(o, minLen) {
864
869
  /**
865
870
  * Convenience function used to generate ModuleMetadata for an app's CalcomOAuthModule.
866
871
  *
867
- * @param config - the module metadata configuration including optional dependency module and config factory
868
- * @returns NestJS ModuleMetadata for registering the CalcomOAuthModule
872
+ * @param config - The module metadata configuration including optional dependency module and config factory.
873
+ * @returns NestJS ModuleMetadata for registering the CalcomOAuthModule.
869
874
  */ function appCalcomOAuthModuleMetadata(config$1) {
870
875
  var _config_calcomOAuthServiceConfigFactory;
871
876
  var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
@@ -1059,7 +1064,7 @@ function _object_spread_props$1(target, source) {
1059
1064
  * Returns the cached {@link CalcomApiContextInstance} for the server context.
1060
1065
  * All API functions are available through this instance.
1061
1066
  *
1062
- * @returns the server context instance
1067
+ * @returns The server context instance.
1063
1068
  */ function get() {
1064
1069
  return this._serverInstance();
1065
1070
  }
@@ -1070,7 +1075,7 @@ function _object_spread_props$1(target, source) {
1070
1075
  /**
1071
1076
  * Configured pass-through for {@link getAvailableSlots} using the public (unauthenticated) context.
1072
1077
  *
1073
- * @returns function to query available slots without authentication
1078
+ * @returns Function to query available slots without authentication.
1074
1079
  */ function get() {
1075
1080
  return calcom.getAvailableSlots(this._publicContext());
1076
1081
  }
@@ -1085,8 +1090,8 @@ function _object_spread_props$1(target, source) {
1085
1090
  * resolved from the cache service using an md5 hash of the refresh token as the key.
1086
1091
  * This ensures tokens persist across requests and server restarts without collisions.
1087
1092
  *
1088
- * @param input - the user context factory input containing the refresh token and optional cache
1089
- * @returns a new CalcomApiContextInstance scoped to the user
1093
+ * @param input - The user context factory input containing the refresh token and optional cache.
1094
+ * @returns A new CalcomApiContextInstance scoped to the user.
1090
1095
  *
1091
1096
  * @example
1092
1097
  * ```ts
@@ -1119,8 +1124,8 @@ function _object_spread_props$1(target, source) {
1119
1124
  /**
1120
1125
  * Creates a {@link CalcomApiContextInstance} from any {@link CalcomContext}.
1121
1126
  *
1122
- * @param context - the CalcomContext (server or user) to wrap
1123
- * @returns a new CalcomApiContextInstance bound to the given context
1127
+ * @param context - The CalcomContext (server or user) to wrap.
1128
+ * @returns A new CalcomApiContextInstance bound to the given context.
1124
1129
  */ key: "makeContextInstance",
1125
1130
  value: function makeContextInstance(context) {
1126
1131
  return new CalcomApiContextInstance(this, context);
@@ -1131,8 +1136,8 @@ function _object_spread_props$1(target, source) {
1131
1136
  * Creates a raw {@link CalcomUserContext} from a refresh token, without wrapping in a {@link CalcomApiContextInstance}.
1132
1137
  * Prefer {@link makeUserContextInstance} unless you need direct context access.
1133
1138
  *
1134
- * @param input - the user context factory input containing the refresh token and optional cache
1135
- * @returns a CalcomUserContext for the given user
1139
+ * @param input - The user context factory input containing the refresh token and optional cache.
1140
+ * @returns A CalcomUserContext for the given user.
1136
1141
  */ key: "makeUserContext",
1137
1142
  value: function makeUserContext(input) {
1138
1143
  return this.calcom.calcomServerContext.makeUserContext(input);
@@ -1180,7 +1185,7 @@ exports.CalcomApi = __decorate([
1180
1185
  /**
1181
1186
  * Configured pass-through for {@link getMe}.
1182
1187
  *
1183
- * @returns function to retrieve the authenticated user's profile
1188
+ * @returns Function to retrieve the authenticated user's profile.
1184
1189
  */ function get() {
1185
1190
  return calcom.getMe(this.context);
1186
1191
  }
@@ -1191,7 +1196,7 @@ exports.CalcomApi = __decorate([
1191
1196
  /**
1192
1197
  * Configured pass-through for {@link getSchedules}.
1193
1198
  *
1194
- * @returns function to retrieve all schedules for the authenticated user
1199
+ * @returns Function to retrieve all schedules for the authenticated user.
1195
1200
  */ function get() {
1196
1201
  return calcom.getSchedules(this.context);
1197
1202
  }
@@ -1202,7 +1207,7 @@ exports.CalcomApi = __decorate([
1202
1207
  /**
1203
1208
  * Configured pass-through for {@link createBooking}.
1204
1209
  *
1205
- * @returns function to create a new booking
1210
+ * @returns Function to create a new booking.
1206
1211
  */ function get() {
1207
1212
  return calcom.createBooking(this.context);
1208
1213
  }
@@ -1212,7 +1217,7 @@ exports.CalcomApi = __decorate([
1212
1217
  get: /**
1213
1218
  * Configured pass-through for {@link getBooking}.
1214
1219
  *
1215
- * @returns function to retrieve a booking by UID
1220
+ * @returns Function to retrieve a booking by UID.
1216
1221
  */ function get() {
1217
1222
  return calcom.getBooking(this.context);
1218
1223
  }
@@ -1222,7 +1227,7 @@ exports.CalcomApi = __decorate([
1222
1227
  get: /**
1223
1228
  * Configured pass-through for {@link cancelBooking}.
1224
1229
  *
1225
- * @returns function to cancel a booking by UID
1230
+ * @returns Function to cancel a booking by UID.
1226
1231
  */ function get() {
1227
1232
  return calcom.cancelBooking(this.context);
1228
1233
  }
@@ -1233,7 +1238,7 @@ exports.CalcomApi = __decorate([
1233
1238
  /**
1234
1239
  * Configured pass-through for {@link getEventTypes}.
1235
1240
  *
1236
- * @returns function to retrieve all event types for the authenticated user
1241
+ * @returns Function to retrieve all event types for the authenticated user.
1237
1242
  */ function get() {
1238
1243
  return calcom.getEventTypes(this.context);
1239
1244
  }
@@ -1243,7 +1248,7 @@ exports.CalcomApi = __decorate([
1243
1248
  get: /**
1244
1249
  * Configured pass-through for {@link createEventType}.
1245
1250
  *
1246
- * @returns function to create a new event type
1251
+ * @returns Function to create a new event type.
1247
1252
  */ function get() {
1248
1253
  return calcom.createEventType(this.context);
1249
1254
  }
@@ -1253,7 +1258,7 @@ exports.CalcomApi = __decorate([
1253
1258
  get: /**
1254
1259
  * Configured pass-through for {@link updateEventType}.
1255
1260
  *
1256
- * @returns function to update an existing event type by ID
1261
+ * @returns Function to update an existing event type by ID.
1257
1262
  */ function get() {
1258
1263
  return calcom.updateEventType(this.context);
1259
1264
  }
@@ -1263,7 +1268,7 @@ exports.CalcomApi = __decorate([
1263
1268
  get: /**
1264
1269
  * Configured pass-through for {@link deleteEventType}.
1265
1270
  *
1266
- * @returns function to delete an event type by ID
1271
+ * @returns Function to delete an event type by ID.
1267
1272
  */ function get() {
1268
1273
  return calcom.deleteEventType(this.context);
1269
1274
  }
@@ -1274,7 +1279,7 @@ exports.CalcomApi = __decorate([
1274
1279
  /**
1275
1280
  * Configured pass-through for {@link getCalendars}.
1276
1281
  *
1277
- * @returns function to retrieve all connected calendars
1282
+ * @returns Function to retrieve all connected calendars.
1278
1283
  */ function get() {
1279
1284
  return calcom.getCalendars(this.context);
1280
1285
  }
@@ -1284,7 +1289,7 @@ exports.CalcomApi = __decorate([
1284
1289
  get: /**
1285
1290
  * Configured pass-through for {@link getBusyTimes}.
1286
1291
  *
1287
- * @returns function to retrieve busy time ranges across connected calendars
1292
+ * @returns Function to retrieve busy time ranges across connected calendars.
1288
1293
  */ function get() {
1289
1294
  return calcom.getBusyTimes(this.context);
1290
1295
  }
@@ -1295,7 +1300,7 @@ exports.CalcomApi = __decorate([
1295
1300
  /**
1296
1301
  * Configured pass-through for {@link createWebhook}.
1297
1302
  *
1298
- * @returns function to create a webhook subscription
1303
+ * @returns Function to create a webhook subscription.
1299
1304
  */ function get() {
1300
1305
  return calcom.createWebhook(this.context);
1301
1306
  }
@@ -1305,7 +1310,7 @@ exports.CalcomApi = __decorate([
1305
1310
  get: /**
1306
1311
  * Configured pass-through for {@link getWebhooks}.
1307
1312
  *
1308
- * @returns function to retrieve all webhooks
1313
+ * @returns Function to retrieve all webhooks.
1309
1314
  */ function get() {
1310
1315
  return calcom.getWebhooks(this.context);
1311
1316
  }
@@ -1315,7 +1320,7 @@ exports.CalcomApi = __decorate([
1315
1320
  get: /**
1316
1321
  * Configured pass-through for {@link getWebhook}.
1317
1322
  *
1318
- * @returns function to retrieve a specific webhook by ID
1323
+ * @returns Function to retrieve a specific webhook by ID.
1319
1324
  */ function get() {
1320
1325
  return calcom.getWebhook(this.context);
1321
1326
  }
@@ -1325,7 +1330,7 @@ exports.CalcomApi = __decorate([
1325
1330
  get: /**
1326
1331
  * Configured pass-through for {@link updateWebhook}.
1327
1332
  *
1328
- * @returns function to update an existing webhook by ID
1333
+ * @returns Function to update an existing webhook by ID.
1329
1334
  */ function get() {
1330
1335
  return calcom.updateWebhook(this.context);
1331
1336
  }
@@ -1335,7 +1340,7 @@ exports.CalcomApi = __decorate([
1335
1340
  get: /**
1336
1341
  * Configured pass-through for {@link deleteWebhook}.
1337
1342
  *
1338
- * @returns function to delete a webhook by ID
1343
+ * @returns Function to delete a webhook by ID.
1339
1344
  */ function get() {
1340
1345
  return calcom.deleteWebhook(this.context);
1341
1346
  }
@@ -1374,8 +1379,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
1374
1379
  /**
1375
1380
  * Factory function that creates a {@link CalcomServiceConfig} from NestJS ConfigService values.
1376
1381
  *
1377
- * @param _configService - the NestJS ConfigService instance
1378
- * @returns a validated CalcomServiceConfig
1382
+ * @param _configService - The NestJS ConfigService instance.
1383
+ * @returns A validated CalcomServiceConfig.
1379
1384
  */ function calcomServiceConfigFactory(_configService) {
1380
1385
  var config = {
1381
1386
  calcom: {}
@@ -1386,8 +1391,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
1386
1391
  /**
1387
1392
  * Convenience function used to generate ModuleMetadata for an app's CalcomModule.
1388
1393
  *
1389
- * @param config - the module metadata configuration including optional dependency module
1390
- * @returns NestJS ModuleMetadata for registering the CalcomModule
1394
+ * @param config - The module metadata configuration including optional dependency module.
1395
+ * @returns NestJS ModuleMetadata for registering the CalcomModule.
1391
1396
  */ function appCalcomModuleMetadata(config$1) {
1392
1397
  var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
1393
1398
  var dependencyModuleImport = dependencyModule ? [
@@ -1469,8 +1474,8 @@ function _object_spread_props(target, source) {
1469
1474
  /**
1470
1475
  * Creates a CalcomWebhookEvent and treats the data as the input type.
1471
1476
  *
1472
- * @param event - the untyped webhook event to convert
1473
- * @returns a typed CalcomWebhookEvent with the payload cast to type T
1477
+ * @param event - The untyped webhook event to convert.
1478
+ * @returns A typed CalcomWebhookEvent with the payload cast to type T.
1474
1479
  */ function calcomWebhookEvent(event) {
1475
1480
  return {
1476
1481
  triggerEvent: event.triggerEvent,
@@ -1550,8 +1555,8 @@ var CALCOM_WEBHOOK_SECRET_CONFIG_KEY = 'CALCOM_WEBHOOK_SECRET';
1550
1555
  /**
1551
1556
  * Verifies a Cal.com webhook event using HMAC-SHA256 signature.
1552
1557
  *
1553
- * @param secret The webhook signing secret.
1554
- * @returns A function that verifies a Cal.com webhook event.
1558
+ * @param secret - The webhook signing secret.
1559
+ * @returns Verifies a Cal.com webhook event.
1555
1560
  */ function calcomWebhookEventVerifier(secret) {
1556
1561
  return function(rawBody, headers) {
1557
1562
  var _headers_xcalsignature256;
@@ -2062,8 +2067,8 @@ function _unsupported_iterable_to_array(o, minLen) {
2062
2067
  /**
2063
2068
  * Factory function that creates a {@link CalcomWebhookServiceConfig} from NestJS ConfigService environment variables.
2064
2069
  *
2065
- * @param configService - the NestJS ConfigService instance
2066
- * @returns a validated CalcomWebhookServiceConfig
2070
+ * @param configService - The NestJS ConfigService instance.
2071
+ * @returns A validated CalcomWebhookServiceConfig.
2067
2072
  */ function calcomWebhookServiceConfigFactory(configService) {
2068
2073
  var config = {
2069
2074
  webhookConfig: {
@@ -2104,8 +2109,8 @@ exports.CalcomWebhookModule = __decorate([
2104
2109
  /**
2105
2110
  * Convenience function used to generate ModuleMetadata for an app's CalcomWebhookModule.
2106
2111
  *
2107
- * @param config - the module metadata configuration including optional dependency module
2108
- * @returns NestJS ModuleMetadata for registering the CalcomWebhookModule
2112
+ * @param config - The module metadata configuration including optional dependency module.
2113
+ * @returns NestJS ModuleMetadata for registering the CalcomWebhookModule.
2109
2114
  */ function appCalcomWebhookModuleMetadata(config$1) {
2110
2115
  var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
2111
2116
  var dependencyModuleImport = dependencyModule ? [