@dereekb/zoho 13.39.0 → 13.40.0

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 (35) hide show
  1. package/cli/index.js +7 -5
  2. package/cli/package.json +7 -7
  3. package/index.esm.js +3354 -556
  4. package/nestjs/docs/analytics-testing.md +202 -0
  5. package/nestjs/index.esm.js +867 -268
  6. package/nestjs/package.json +5 -5
  7. package/nestjs/src/lib/analytics/analytics.api.d.ts +236 -0
  8. package/nestjs/src/lib/analytics/analytics.config.d.ts +24 -0
  9. package/nestjs/src/lib/analytics/analytics.module.d.ts +65 -0
  10. package/nestjs/src/lib/analytics/index.d.ts +3 -0
  11. package/nestjs/src/lib/index.d.ts +1 -0
  12. package/package.json +8 -8
  13. package/src/lib/analytics/analytics.api.export.d.ts +167 -0
  14. package/src/lib/analytics/analytics.api.import.d.ts +252 -0
  15. package/src/lib/analytics/analytics.api.modeling.d.ts +106 -0
  16. package/src/lib/analytics/analytics.api.orgs.d.ts +36 -0
  17. package/src/lib/analytics/analytics.api.rows.d.ts +214 -0
  18. package/src/lib/analytics/analytics.api.views.d.ts +104 -0
  19. package/src/lib/analytics/analytics.api.workspaces.d.ts +96 -0
  20. package/src/lib/analytics/analytics.config.d.ts +92 -0
  21. package/src/lib/analytics/analytics.d.ts +86 -0
  22. package/src/lib/analytics/analytics.data.d.ts +74 -0
  23. package/src/lib/analytics/analytics.diff.d.ts +178 -0
  24. package/src/lib/analytics/analytics.error.api.d.ts +150 -0
  25. package/src/lib/analytics/analytics.export.d.ts +91 -0
  26. package/src/lib/analytics/analytics.factory.d.ts +56 -0
  27. package/src/lib/analytics/analytics.import.d.ts +176 -0
  28. package/src/lib/analytics/analytics.job.d.ts +132 -0
  29. package/src/lib/analytics/analytics.limit.d.ts +55 -0
  30. package/src/lib/analytics/analytics.org.d.ts +51 -0
  31. package/src/lib/analytics/analytics.param.d.ts +70 -0
  32. package/src/lib/analytics/analytics.view.d.ts +99 -0
  33. package/src/lib/analytics/index.d.ts +20 -0
  34. package/src/lib/index.d.ts +1 -0
  35. package/src/lib/zoho.limit.d.ts +14 -1
@@ -1,5 +1,5 @@
1
1
  import { Injectable, Inject, Logger, Post, Req, Controller, Module } from '@nestjs/common';
2
- import { zohoAccountsFactory, zohoAccountsAccessToken, zohoAccountsConfigApiUrl, zohoAccountsOAuthClientFactory, zohoAccountsRefreshTokenFromAuthorizationCode, zohoAccountsUserAccessToken, zohoAccountsUserInfo, zohoCrmFactory, zohoCrmInsertRecord, zohoCrmUpsertRecord, zohoCrmUpdateRecord, zohoCrmDeleteRecord, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsPageFactory, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmUploadAttachmentForRecord, zohoCrmDownloadAttachmentForRecord, zohoCrmDeleteAttachmentFromRecord, zohoCrmCreateNotes, zohoCrmDeleteNotes, zohoCrmCreateNotesForRecord, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmExecuteRestApiFunction, zohoCrmCreateTagsForModule, zohoCrmDeleteTag, zohoCrmGetTagsForModule, zohoCrmAddTagsToRecords, zohoCrmRemoveTagsFromRecords, ZOHO_CRM_SERVICE_NAME, zohoRecruitFactory, zohoRecruitInsertRecord, zohoRecruitUpsertRecord, zohoRecruitUpdateRecord, zohoRecruitDeleteRecord, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitSearchRecords, zohoRecruitSearchRecordsPageFactory, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitUploadAttachmentForRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitCreateNotes, zohoRecruitDeleteNotes, zohoRecruitCreateNotesForRecord, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitExecuteRestApiFunction, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitCreateTagsForModule, zohoRecruitGetTagsForModule, zohoRecruitAddTagsToRecords, zohoRecruitRemoveTagsFromRecords, ZOHO_RECRUIT_SERVICE_NAME, zohoSignFactory, zohoSignGetDocument, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignGetDocumentFormData, zohoSignRetrieveFieldTypes, zohoSignDownloadPdf, zohoSignDownloadCompletionCertificate, zohoSignCreateDocument, zohoSignCreateDocumentFromTemplate, zohoSignGetTemplate, zohoSignGetTemplates, zohoSignUpdateDocument, zohoSignSendDocumentForSignature, zohoSignExtendDocument, zohoSignDeleteDocument, zohoSignGetEmbeddedSigningUrl, ZOHO_SIGN_SERVICE_NAME, zohoDeskFactory, zohoDeskGetTickets, zohoDeskGetTicketById, zohoDeskSearchTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketMetrics, zohoDeskGetAgentsTicketsCount, zohoDeskGetTicketsPageFactory, zohoDeskSearchTicketsPageFactory, zohoDeskGetDepartments, zohoDeskGetDepartmentById, zohoDeskGetContacts, zohoDeskGetContactById, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetTicketTags, zohoDeskAssociateTicketTags, zohoDeskDissociateTicketTag, zohoDeskSearchTags, zohoDeskGetAllTags, zohoDeskGetTicketFollowers, zohoDeskAddTicketFollowers, zohoDeskRemoveTicketFollowers, zohoDeskGetTicketAttachments, zohoDeskDeleteTicketAttachment, zohoDeskGetTicketComments, zohoDeskGetTicketCommentById, zohoDeskCreateTicketComment, zohoDeskDeleteTicketComment, zohoDeskGetTicketTimer, zohoDeskPerformTicketTimerAction, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetAgents, zohoDeskGetAgentById, zohoDeskGetAgentsByIds, zohoDeskGetMyInfo, zohoDeskGetAgentsPageFactory, ZOHO_DESK_SERVICE_NAME } from '@dereekb/zoho';
2
+ import { zohoAccountsFactory, zohoAccountsAccessToken, zohoAccountsConfigApiUrl, zohoAccountsOAuthClientFactory, zohoAccountsRefreshTokenFromAuthorizationCode, zohoAccountsUserAccessToken, zohoAccountsUserInfo, zohoCrmFactory, zohoCrmInsertRecord, zohoCrmUpsertRecord, zohoCrmUpdateRecord, zohoCrmDeleteRecord, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsPageFactory, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmUploadAttachmentForRecord, zohoCrmDownloadAttachmentForRecord, zohoCrmDeleteAttachmentFromRecord, zohoCrmCreateNotes, zohoCrmDeleteNotes, zohoCrmCreateNotesForRecord, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmExecuteRestApiFunction, zohoCrmCreateTagsForModule, zohoCrmDeleteTag, zohoCrmGetTagsForModule, zohoCrmAddTagsToRecords, zohoCrmRemoveTagsFromRecords, ZOHO_CRM_SERVICE_NAME, zohoRecruitFactory, zohoRecruitInsertRecord, zohoRecruitUpsertRecord, zohoRecruitUpdateRecord, zohoRecruitDeleteRecord, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitSearchRecords, zohoRecruitSearchRecordsPageFactory, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitUploadAttachmentForRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitCreateNotes, zohoRecruitDeleteNotes, zohoRecruitCreateNotesForRecord, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitExecuteRestApiFunction, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitCreateTagsForModule, zohoRecruitGetTagsForModule, zohoRecruitAddTagsToRecords, zohoRecruitRemoveTagsFromRecords, ZOHO_RECRUIT_SERVICE_NAME, zohoSignFactory, zohoSignGetDocument, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignGetDocumentFormData, zohoSignRetrieveFieldTypes, zohoSignDownloadPdf, zohoSignDownloadCompletionCertificate, zohoSignCreateDocument, zohoSignCreateDocumentFromTemplate, zohoSignGetTemplate, zohoSignGetTemplates, zohoSignUpdateDocument, zohoSignSendDocumentForSignature, zohoSignExtendDocument, zohoSignDeleteDocument, zohoSignGetEmbeddedSigningUrl, ZOHO_SIGN_SERVICE_NAME, zohoDeskFactory, zohoDeskGetTickets, zohoDeskGetTicketById, zohoDeskSearchTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketMetrics, zohoDeskGetAgentsTicketsCount, zohoDeskGetTicketsPageFactory, zohoDeskSearchTicketsPageFactory, zohoDeskGetDepartments, zohoDeskGetDepartmentById, zohoDeskGetContacts, zohoDeskGetContactById, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetTicketTags, zohoDeskAssociateTicketTags, zohoDeskDissociateTicketTag, zohoDeskSearchTags, zohoDeskGetAllTags, zohoDeskGetTicketFollowers, zohoDeskAddTicketFollowers, zohoDeskRemoveTicketFollowers, zohoDeskGetTicketAttachments, zohoDeskDeleteTicketAttachment, zohoDeskGetTicketComments, zohoDeskGetTicketCommentById, zohoDeskCreateTicketComment, zohoDeskDeleteTicketComment, zohoDeskGetTicketTimer, zohoDeskPerformTicketTimerAction, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetAgents, zohoDeskGetAgentById, zohoDeskGetAgentsByIds, zohoDeskGetMyInfo, zohoDeskGetAgentsPageFactory, ZOHO_DESK_SERVICE_NAME, zohoAnalyticsFactory, zohoAnalyticsGetOrgs, zohoAnalyticsGetAllWorkspaces, zohoAnalyticsGetOwnedWorkspaces, zohoAnalyticsGetSharedWorkspaces, zohoAnalyticsGetWorkspaceDetails, zohoAnalyticsGetViews, zohoAnalyticsGetViewDetails, zohoAnalyticsGetTableMetadata, zohoAnalyticsImportDataInTable, zohoAnalyticsImportDataInNewTable, zohoAnalyticsCreateImportJobInTable, zohoAnalyticsCreateImportJobInNewTable, zohoAnalyticsGetImportJob, zohoAnalyticsImportDataInTableAndAwaitJob, zohoAnalyticsExportData, zohoAnalyticsCreateExportJob, zohoAnalyticsCreateExportJobForSqlQuery, zohoAnalyticsGetExportJob, zohoAnalyticsDownloadExport, zohoAnalyticsExportDataAndAwaitJob, zohoAnalyticsAddRow, zohoAnalyticsUpdateRows, zohoAnalyticsDeleteRows, zohoAnalyticsDeleteView, zohoAnalyticsDeleteWorkspace, ZOHO_ANALYTICS_SERVICE_NAME } from '@dereekb/zoho';
3
3
  import { memoizeAsyncKeyedValueCache, inMemoryAsyncKeyedValueCache, mergeAsyncValueCaches, isExpired, filterMaybeArrayValues, handlerFactory, handlerConfigurerFactory, handlerMappedSetFunctionFactory } from '@dereekb/util';
4
4
  import { createJsonFileAsyncKeyedValueCache, readJsonFile, RawBody } from '@dereekb/nestjs';
5
5
  import { ConfigService, ConfigModule } from '@nestjs/config';
@@ -79,12 +79,12 @@ function readZohoConfigFromConfigService(configOrService, servicePrefix) {
79
79
  }
80
80
  }
81
81
 
82
- function _class_call_check$g(instance, Constructor) {
82
+ function _class_call_check$i(instance, Constructor) {
83
83
  if (!(instance instanceof Constructor)) {
84
84
  throw new TypeError("Cannot call a class as a function");
85
85
  }
86
86
  }
87
- function _defineProperties$e(target, props) {
87
+ function _defineProperties$g(target, props) {
88
88
  for(var i = 0; i < props.length; i++){
89
89
  var descriptor = props[i];
90
90
  descriptor.enumerable = descriptor.enumerable || false;
@@ -93,11 +93,11 @@ function _defineProperties$e(target, props) {
93
93
  Object.defineProperty(target, descriptor.key, descriptor);
94
94
  }
95
95
  }
96
- function _create_class$e(Constructor, protoProps, staticProps) {
97
- if (staticProps) _defineProperties$e(Constructor, staticProps);
96
+ function _create_class$g(Constructor, protoProps, staticProps) {
97
+ if (staticProps) _defineProperties$g(Constructor, staticProps);
98
98
  return Constructor;
99
99
  }
100
- function _define_property$g(obj, key, value) {
100
+ function _define_property$i(obj, key, value) {
101
101
  if (key in obj) {
102
102
  Object.defineProperty(obj, key, {
103
103
  value: value,
@@ -114,11 +114,11 @@ function _define_property$g(obj, key, value) {
114
114
  * Configuration for ZohoService
115
115
  */ var ZohoAccountsServiceConfig = /*#__PURE__*/ function() {
116
116
  function ZohoAccountsServiceConfig() {
117
- _class_call_check$g(this, ZohoAccountsServiceConfig);
118
- _define_property$g(this, "zohoAccounts", void 0);
119
- _define_property$g(this, "factoryConfig", void 0);
117
+ _class_call_check$i(this, ZohoAccountsServiceConfig);
118
+ _define_property$i(this, "zohoAccounts", void 0);
119
+ _define_property$i(this, "factoryConfig", void 0);
120
120
  }
121
- _create_class$e(ZohoAccountsServiceConfig, null, [
121
+ _create_class$g(ZohoAccountsServiceConfig, null, [
122
122
  {
123
123
  key: "assertValidConfig",
124
124
  value: function assertValidConfig(config) {
@@ -182,7 +182,7 @@ function _define_property$g(obj, key, value) {
182
182
  return config;
183
183
  }
184
184
 
185
- function _array_like_to_array$5(arr, len) {
185
+ function _array_like_to_array$6(arr, len) {
186
186
  if (len == null || len > arr.length) len = arr.length;
187
187
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
188
188
  return arr2;
@@ -190,8 +190,8 @@ function _array_like_to_array$5(arr, len) {
190
190
  function _array_with_holes(arr) {
191
191
  if (Array.isArray(arr)) return arr;
192
192
  }
193
- function _array_without_holes$5(arr) {
194
- if (Array.isArray(arr)) return _array_like_to_array$5(arr);
193
+ function _array_without_holes$6(arr) {
194
+ if (Array.isArray(arr)) return _array_like_to_array$6(arr);
195
195
  }
196
196
  function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
197
197
  try {
@@ -222,12 +222,12 @@ function _async_to_generator$3(fn) {
222
222
  });
223
223
  };
224
224
  }
225
- function _class_call_check$f(instance, Constructor) {
225
+ function _class_call_check$h(instance, Constructor) {
226
226
  if (!(instance instanceof Constructor)) {
227
227
  throw new TypeError("Cannot call a class as a function");
228
228
  }
229
229
  }
230
- function _define_property$f(obj, key, value) {
230
+ function _define_property$h(obj, key, value) {
231
231
  if (key in obj) {
232
232
  Object.defineProperty(obj, key, {
233
233
  value: value,
@@ -248,7 +248,7 @@ function _instanceof(left, right) {
248
248
  return left instanceof right;
249
249
  }
250
250
  }
251
- function _iterable_to_array$5(iter) {
251
+ function _iterable_to_array$6(iter) {
252
252
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
253
253
  }
254
254
  function _iterable_to_array_limit(arr, i) {
@@ -278,10 +278,10 @@ function _iterable_to_array_limit(arr, i) {
278
278
  function _non_iterable_rest() {
279
279
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
280
280
  }
281
- function _non_iterable_spread$5() {
281
+ function _non_iterable_spread$6() {
282
282
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
283
283
  }
284
- function _object_spread$6(target) {
284
+ function _object_spread$7(target) {
285
285
  for(var i = 1; i < arguments.length; i++){
286
286
  var source = arguments[i] != null ? arguments[i] : {};
287
287
  var ownKeys = Object.keys(source);
@@ -291,12 +291,12 @@ function _object_spread$6(target) {
291
291
  }));
292
292
  }
293
293
  ownKeys.forEach(function(key) {
294
- _define_property$f(target, key, source[key]);
294
+ _define_property$h(target, key, source[key]);
295
295
  });
296
296
  }
297
297
  return target;
298
298
  }
299
- function ownKeys$5(object, enumerableOnly) {
299
+ function ownKeys$6(object, enumerableOnly) {
300
300
  var keys = Object.keys(object);
301
301
  if (Object.getOwnPropertySymbols) {
302
302
  var symbols = Object.getOwnPropertySymbols(object);
@@ -304,34 +304,34 @@ function ownKeys$5(object, enumerableOnly) {
304
304
  }
305
305
  return keys;
306
306
  }
307
- function _object_spread_props$5(target, source) {
307
+ function _object_spread_props$6(target, source) {
308
308
  source = source != null ? source : {};
309
309
  if (Object.getOwnPropertyDescriptors) {
310
310
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
311
311
  } else {
312
- ownKeys$5(Object(source)).forEach(function(key) {
312
+ ownKeys$6(Object(source)).forEach(function(key) {
313
313
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
314
314
  });
315
315
  }
316
316
  return target;
317
317
  }
318
318
  function _sliced_to_array(arr, i) {
319
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest();
319
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest();
320
320
  }
321
- function _to_consumable_array$5(arr) {
322
- return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$5();
321
+ function _to_consumable_array$6(arr) {
322
+ return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$6();
323
323
  }
324
324
  function _type_of(obj) {
325
325
  "@swc/helpers - typeof";
326
326
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
327
327
  }
328
- function _unsupported_iterable_to_array$5(o, minLen) {
328
+ function _unsupported_iterable_to_array$6(o, minLen) {
329
329
  if (!o) return;
330
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
330
+ if (typeof o === "string") return _array_like_to_array$6(o, minLen);
331
331
  var n = Object.prototype.toString.call(o).slice(8, -1);
332
332
  if (n === "Object" && o.constructor) n = o.constructor.name;
333
333
  if (n === "Map" || n === "Set") return Array.from(n);
334
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
334
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
335
335
  }
336
336
  function _ts_generator$3(thisArg, body) {
337
337
  var f, y, t, _ = {
@@ -435,7 +435,7 @@ function _ts_generator$3(thisArg, body) {
435
435
  /**
436
436
  * Service used for retrieving ZohoAccessTokenCache for Zoho services.
437
437
  */ var ZohoAccountsAccessTokenCacheService = function ZohoAccountsAccessTokenCacheService() {
438
- _class_call_check$f(this, ZohoAccountsAccessTokenCacheService);
438
+ _class_call_check$h(this, ZohoAccountsAccessTokenCacheService);
439
439
  };
440
440
  ZohoAccountsAccessTokenCacheService = __decorate([
441
441
  Injectable()
@@ -510,7 +510,7 @@ function updateZohoCacheCapturingError(cache, accessToken) {
510
510
  * @returns A merged ZohoAccountsAccessTokenCacheService that delegates across all inputs.
511
511
  * @throws {Error} When `inputServicesToMerge` is empty.
512
512
  */ function mergeZohoAccountsAccessTokenCacheServices(inputServicesToMerge, logError) {
513
- var services = _to_consumable_array$5(inputServicesToMerge);
513
+ var services = _to_consumable_array$6(inputServicesToMerge);
514
514
  var logErrorFunction = typeof logError === 'function' ? logError : logError === false ? undefined : logMergeZohoAccountsAccessTokenCacheServiceErrorFunction;
515
515
  if (services.length === 0) {
516
516
  throw new Error('mergeZohoAccountsAccessTokenCacheServices() input cannot be empty.');
@@ -717,7 +717,7 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
717
717
  var value = raw;
718
718
  var rawExpiresAt = value.expiresAt;
719
719
  var expiresAt = rawExpiresAt != null && !_instanceof(rawExpiresAt, Date) ? new Date(rawExpiresAt) : rawExpiresAt;
720
- result = _object_spread_props$5(_object_spread$6({}, value), {
720
+ result = _object_spread_props$6(_object_spread$7({}, value), {
721
721
  expiresAt: expiresAt
722
722
  });
723
723
  }
@@ -978,12 +978,12 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
978
978
  };
979
979
  }
980
980
 
981
- function _class_call_check$e(instance, Constructor) {
981
+ function _class_call_check$g(instance, Constructor) {
982
982
  if (!(instance instanceof Constructor)) {
983
983
  throw new TypeError("Cannot call a class as a function");
984
984
  }
985
985
  }
986
- function _defineProperties$d(target, props) {
986
+ function _defineProperties$f(target, props) {
987
987
  for(var i = 0; i < props.length; i++){
988
988
  var descriptor = props[i];
989
989
  descriptor.enumerable = descriptor.enumerable || false;
@@ -992,11 +992,11 @@ function _defineProperties$d(target, props) {
992
992
  Object.defineProperty(target, descriptor.key, descriptor);
993
993
  }
994
994
  }
995
- function _create_class$d(Constructor, protoProps, staticProps) {
996
- if (protoProps) _defineProperties$d(Constructor.prototype, protoProps);
995
+ function _create_class$f(Constructor, protoProps, staticProps) {
996
+ if (protoProps) _defineProperties$f(Constructor.prototype, protoProps);
997
997
  return Constructor;
998
998
  }
999
- function _define_property$e(obj, key, value) {
999
+ function _define_property$g(obj, key, value) {
1000
1000
  if (key in obj) {
1001
1001
  Object.defineProperty(obj, key, {
1002
1002
  value: value,
@@ -1009,7 +1009,7 @@ function _define_property$e(obj, key, value) {
1009
1009
  }
1010
1010
  return obj;
1011
1011
  }
1012
- function _object_spread$5(target) {
1012
+ function _object_spread$6(target) {
1013
1013
  for(var i = 1; i < arguments.length; i++){
1014
1014
  var source = arguments[i] != null ? arguments[i] : {};
1015
1015
  var ownKeys = Object.keys(source);
@@ -1019,26 +1019,26 @@ function _object_spread$5(target) {
1019
1019
  }));
1020
1020
  }
1021
1021
  ownKeys.forEach(function(key) {
1022
- _define_property$e(target, key, source[key]);
1022
+ _define_property$g(target, key, source[key]);
1023
1023
  });
1024
1024
  }
1025
1025
  return target;
1026
1026
  }
1027
1027
  var ZohoAccountsApi = /*#__PURE__*/ function() {
1028
1028
  function ZohoAccountsApi(config, cacheService) {
1029
- _class_call_check$e(this, ZohoAccountsApi);
1029
+ _class_call_check$g(this, ZohoAccountsApi);
1030
1030
  var _config_zohoAccounts_accessTokenCache, _config_factoryConfig;
1031
- _define_property$e(this, "config", void 0);
1032
- _define_property$e(this, "cacheService", void 0);
1033
- _define_property$e(this, "zohoAccounts", void 0);
1031
+ _define_property$g(this, "config", void 0);
1032
+ _define_property$g(this, "cacheService", void 0);
1033
+ _define_property$g(this, "zohoAccounts", void 0);
1034
1034
  this.config = config;
1035
1035
  this.cacheService = cacheService;
1036
1036
  var accessTokenCache = (_config_zohoAccounts_accessTokenCache = config.zohoAccounts.accessTokenCache) !== null && _config_zohoAccounts_accessTokenCache !== void 0 ? _config_zohoAccounts_accessTokenCache : cacheService.loadZohoAccessTokenCache(config.zohoAccounts.serviceAccessTokenKey);
1037
- this.zohoAccounts = zohoAccountsFactory((_config_factoryConfig = config.factoryConfig) !== null && _config_factoryConfig !== void 0 ? _config_factoryConfig : {})(_object_spread$5({
1037
+ this.zohoAccounts = zohoAccountsFactory((_config_factoryConfig = config.factoryConfig) !== null && _config_factoryConfig !== void 0 ? _config_factoryConfig : {})(_object_spread$6({
1038
1038
  accessTokenCache: accessTokenCache
1039
1039
  }, config.zohoAccounts));
1040
1040
  }
1041
- _create_class$d(ZohoAccountsApi, [
1041
+ _create_class$f(ZohoAccountsApi, [
1042
1042
  {
1043
1043
  key: "accountsContext",
1044
1044
  get: function get() {
@@ -1061,12 +1061,12 @@ ZohoAccountsApi = __decorate([
1061
1061
  __param(1, Inject(ZohoAccountsAccessTokenCacheService))
1062
1062
  ], ZohoAccountsApi);
1063
1063
 
1064
- function _class_call_check$d(instance, Constructor) {
1064
+ function _class_call_check$f(instance, Constructor) {
1065
1065
  if (!(instance instanceof Constructor)) {
1066
1066
  throw new TypeError("Cannot call a class as a function");
1067
1067
  }
1068
1068
  }
1069
- function _defineProperties$c(target, props) {
1069
+ function _defineProperties$e(target, props) {
1070
1070
  for(var i = 0; i < props.length; i++){
1071
1071
  var descriptor = props[i];
1072
1072
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1075,11 +1075,11 @@ function _defineProperties$c(target, props) {
1075
1075
  Object.defineProperty(target, descriptor.key, descriptor);
1076
1076
  }
1077
1077
  }
1078
- function _create_class$c(Constructor, protoProps, staticProps) {
1079
- if (staticProps) _defineProperties$c(Constructor, staticProps);
1078
+ function _create_class$e(Constructor, protoProps, staticProps) {
1079
+ if (staticProps) _defineProperties$e(Constructor, staticProps);
1080
1080
  return Constructor;
1081
1081
  }
1082
- function _define_property$d(obj, key, value) {
1082
+ function _define_property$f(obj, key, value) {
1083
1083
  if (key in obj) {
1084
1084
  Object.defineProperty(obj, key, {
1085
1085
  value: value,
@@ -1110,11 +1110,11 @@ function _define_property$d(obj, key, value) {
1110
1110
  * server refresh token) and any scope variable (scopes are declared in code).
1111
1111
  */ var ZohoAccountsOAuthServiceConfig = /*#__PURE__*/ function() {
1112
1112
  function ZohoAccountsOAuthServiceConfig() {
1113
- _class_call_check$d(this, ZohoAccountsOAuthServiceConfig);
1114
- _define_property$d(this, "zohoAccountsOAuth", void 0);
1115
- _define_property$d(this, "factoryConfig", void 0);
1113
+ _class_call_check$f(this, ZohoAccountsOAuthServiceConfig);
1114
+ _define_property$f(this, "zohoAccountsOAuth", void 0);
1115
+ _define_property$f(this, "factoryConfig", void 0);
1116
1116
  }
1117
- _create_class$c(ZohoAccountsOAuthServiceConfig, null, [
1117
+ _create_class$e(ZohoAccountsOAuthServiceConfig, null, [
1118
1118
  {
1119
1119
  key: "assertValidConfig",
1120
1120
  value: function assertValidConfig(config) {
@@ -1155,12 +1155,12 @@ function _define_property$d(obj, key, value) {
1155
1155
  return config;
1156
1156
  }
1157
1157
 
1158
- function _class_call_check$c(instance, Constructor) {
1158
+ function _class_call_check$e(instance, Constructor) {
1159
1159
  if (!(instance instanceof Constructor)) {
1160
1160
  throw new TypeError("Cannot call a class as a function");
1161
1161
  }
1162
1162
  }
1163
- function _defineProperties$b(target, props) {
1163
+ function _defineProperties$d(target, props) {
1164
1164
  for(var i = 0; i < props.length; i++){
1165
1165
  var descriptor = props[i];
1166
1166
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1169,11 +1169,11 @@ function _defineProperties$b(target, props) {
1169
1169
  Object.defineProperty(target, descriptor.key, descriptor);
1170
1170
  }
1171
1171
  }
1172
- function _create_class$b(Constructor, protoProps, staticProps) {
1173
- if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
1172
+ function _create_class$d(Constructor, protoProps, staticProps) {
1173
+ if (protoProps) _defineProperties$d(Constructor.prototype, protoProps);
1174
1174
  return Constructor;
1175
1175
  }
1176
- function _define_property$c(obj, key, value) {
1176
+ function _define_property$e(obj, key, value) {
1177
1177
  if (key in obj) {
1178
1178
  Object.defineProperty(obj, key, {
1179
1179
  value: value,
@@ -1194,21 +1194,21 @@ function _define_property$c(obj, key, value) {
1194
1194
  * token cache. A per-user handoff has neither — the handoff is how a refresh token is obtained.
1195
1195
  */ var ZohoAccountsOAuthApi = /*#__PURE__*/ function() {
1196
1196
  function ZohoAccountsOAuthApi(config) {
1197
- _class_call_check$c(this, ZohoAccountsOAuthApi);
1197
+ _class_call_check$e(this, ZohoAccountsOAuthApi);
1198
1198
  var _config_factoryConfig;
1199
- _define_property$c(this, "config", void 0);
1200
- _define_property$c(this, "_clientFactory", void 0);
1199
+ _define_property$e(this, "config", void 0);
1200
+ _define_property$e(this, "_clientFactory", void 0);
1201
1201
  /**
1202
1202
  * Per-host clients, memoized so a repeated datacenter reuses one client rather than rebuilding
1203
1203
  * its fetch stack per callback.
1204
- */ _define_property$c(this, "_clients", new Map());
1204
+ */ _define_property$e(this, "_clients", new Map());
1205
1205
  /**
1206
1206
  * The accounts host configured for this app.
1207
- */ _define_property$c(this, "apiUrl", void 0);
1207
+ */ _define_property$e(this, "apiUrl", void 0);
1208
1208
  /**
1209
1209
  * The OAuth client id the authorize request is composed with.
1210
- */ _define_property$c(this, "clientId", void 0);
1211
- _define_property$c(this, "_clientSecret", void 0);
1210
+ */ _define_property$e(this, "clientId", void 0);
1211
+ _define_property$e(this, "_clientSecret", void 0);
1212
1212
  this.config = config;
1213
1213
  // asserted here rather than trusted, so a config assembled in code (not through the env factory,
1214
1214
  // which already asserts) cannot reach the consent screen with an undefined client id
@@ -1219,7 +1219,7 @@ function _define_property$c(obj, key, value) {
1219
1219
  this._clientSecret = clientSecret;
1220
1220
  this._clientFactory = zohoAccountsOAuthClientFactory((_config_factoryConfig = config.factoryConfig) !== null && _config_factoryConfig !== void 0 ? _config_factoryConfig : {});
1221
1221
  }
1222
- _create_class$b(ZohoAccountsOAuthApi, [
1222
+ _create_class$d(ZohoAccountsOAuthApi, [
1223
1223
  {
1224
1224
  key: "oauthClientContext",
1225
1225
  get: /**
@@ -1313,30 +1313,30 @@ ZohoAccountsOAuthApi = __decorate([
1313
1313
  __param(0, Inject(ZohoAccountsOAuthServiceConfig))
1314
1314
  ], ZohoAccountsOAuthApi);
1315
1315
 
1316
- function _array_like_to_array$4(arr, len) {
1316
+ function _array_like_to_array$5(arr, len) {
1317
1317
  if (len == null || len > arr.length) len = arr.length;
1318
1318
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1319
1319
  return arr2;
1320
1320
  }
1321
- function _array_without_holes$4(arr) {
1322
- if (Array.isArray(arr)) return _array_like_to_array$4(arr);
1321
+ function _array_without_holes$5(arr) {
1322
+ if (Array.isArray(arr)) return _array_like_to_array$5(arr);
1323
1323
  }
1324
- function _iterable_to_array$4(iter) {
1324
+ function _iterable_to_array$5(iter) {
1325
1325
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1326
1326
  }
1327
- function _non_iterable_spread$4() {
1327
+ function _non_iterable_spread$5() {
1328
1328
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1329
1329
  }
1330
- function _to_consumable_array$4(arr) {
1331
- return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$4();
1330
+ function _to_consumable_array$5(arr) {
1331
+ return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$5();
1332
1332
  }
1333
- function _unsupported_iterable_to_array$4(o, minLen) {
1333
+ function _unsupported_iterable_to_array$5(o, minLen) {
1334
1334
  if (!o) return;
1335
- if (typeof o === "string") return _array_like_to_array$4(o, minLen);
1335
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
1336
1336
  var n = Object.prototype.toString.call(o).slice(8, -1);
1337
1337
  if (n === "Object" && o.constructor) n = o.constructor.name;
1338
1338
  if (n === "Map" || n === "Set") return Array.from(n);
1339
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
1339
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
1340
1340
  }
1341
1341
  /**
1342
1342
  * Convenience function used to generate ModuleMetadata for an app's ZohoAccountsOAuthModule.
@@ -1352,10 +1352,10 @@ function _unsupported_iterable_to_array$4(o, minLen) {
1352
1352
  return {
1353
1353
  imports: [
1354
1354
  ConfigModule
1355
- ].concat(_to_consumable_array$4(imports !== null && imports !== void 0 ? imports : [])),
1355
+ ].concat(_to_consumable_array$5(imports !== null && imports !== void 0 ? imports : [])),
1356
1356
  exports: [
1357
1357
  ZohoAccountsOAuthApi
1358
- ].concat(_to_consumable_array$4(exports !== null && exports !== void 0 ? exports : [])),
1358
+ ].concat(_to_consumable_array$5(exports !== null && exports !== void 0 ? exports : [])),
1359
1359
  providers: [
1360
1360
  {
1361
1361
  provide: ZohoAccountsOAuthServiceConfig,
@@ -1365,16 +1365,16 @@ function _unsupported_iterable_to_array$4(o, minLen) {
1365
1365
  useFactory: (_config_zohoAccountsOAuthServiceConfigFactory = config.zohoAccountsOAuthServiceConfigFactory) !== null && _config_zohoAccountsOAuthServiceConfigFactory !== void 0 ? _config_zohoAccountsOAuthServiceConfigFactory : zohoAccountsOAuthServiceConfigFactory
1366
1366
  },
1367
1367
  ZohoAccountsOAuthApi
1368
- ].concat(_to_consumable_array$4(providers !== null && providers !== void 0 ? providers : []))
1368
+ ].concat(_to_consumable_array$5(providers !== null && providers !== void 0 ? providers : []))
1369
1369
  };
1370
1370
  }
1371
1371
 
1372
- function _class_call_check$b(instance, Constructor) {
1372
+ function _class_call_check$d(instance, Constructor) {
1373
1373
  if (!(instance instanceof Constructor)) {
1374
1374
  throw new TypeError("Cannot call a class as a function");
1375
1375
  }
1376
1376
  }
1377
- function _defineProperties$a(target, props) {
1377
+ function _defineProperties$c(target, props) {
1378
1378
  for(var i = 0; i < props.length; i++){
1379
1379
  var descriptor = props[i];
1380
1380
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1383,11 +1383,11 @@ function _defineProperties$a(target, props) {
1383
1383
  Object.defineProperty(target, descriptor.key, descriptor);
1384
1384
  }
1385
1385
  }
1386
- function _create_class$a(Constructor, protoProps, staticProps) {
1387
- if (staticProps) _defineProperties$a(Constructor, staticProps);
1386
+ function _create_class$c(Constructor, protoProps, staticProps) {
1387
+ if (staticProps) _defineProperties$c(Constructor, staticProps);
1388
1388
  return Constructor;
1389
1389
  }
1390
- function _define_property$b(obj, key, value) {
1390
+ function _define_property$d(obj, key, value) {
1391
1391
  if (key in obj) {
1392
1392
  Object.defineProperty(obj, key, {
1393
1393
  value: value,
@@ -1407,15 +1407,15 @@ function _define_property$b(obj, key, value) {
1407
1407
  * while keeping the expected shape consistent.
1408
1408
  */ var ZohoCrmServiceConfig = /*#__PURE__*/ function() {
1409
1409
  function ZohoCrmServiceConfig() {
1410
- _class_call_check$b(this, ZohoCrmServiceConfig);
1410
+ _class_call_check$d(this, ZohoCrmServiceConfig);
1411
1411
  /**
1412
1412
  * Zoho CRM API connection settings (endpoint URL, etc.).
1413
- */ _define_property$b(this, "zohoCrm", void 0);
1413
+ */ _define_property$d(this, "zohoCrm", void 0);
1414
1414
  /**
1415
1415
  * Optional factory-level overrides applied when creating the underlying CRM client.
1416
- */ _define_property$b(this, "factoryConfig", void 0);
1416
+ */ _define_property$d(this, "factoryConfig", void 0);
1417
1417
  }
1418
- _create_class$a(ZohoCrmServiceConfig, null, [
1418
+ _create_class$c(ZohoCrmServiceConfig, null, [
1419
1419
  {
1420
1420
  key: "assertValidConfig",
1421
1421
  value: /**
@@ -1431,12 +1431,12 @@ function _define_property$b(obj, key, value) {
1431
1431
  }
1432
1432
  ();
1433
1433
 
1434
- function _class_call_check$a(instance, Constructor) {
1434
+ function _class_call_check$c(instance, Constructor) {
1435
1435
  if (!(instance instanceof Constructor)) {
1436
1436
  throw new TypeError("Cannot call a class as a function");
1437
1437
  }
1438
1438
  }
1439
- function _defineProperties$9(target, props) {
1439
+ function _defineProperties$b(target, props) {
1440
1440
  for(var i = 0; i < props.length; i++){
1441
1441
  var descriptor = props[i];
1442
1442
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1445,11 +1445,11 @@ function _defineProperties$9(target, props) {
1445
1445
  Object.defineProperty(target, descriptor.key, descriptor);
1446
1446
  }
1447
1447
  }
1448
- function _create_class$9(Constructor, protoProps, staticProps) {
1449
- if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
1448
+ function _create_class$b(Constructor, protoProps, staticProps) {
1449
+ if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
1450
1450
  return Constructor;
1451
1451
  }
1452
- function _define_property$a(obj, key, value) {
1452
+ function _define_property$c(obj, key, value) {
1453
1453
  if (key in obj) {
1454
1454
  Object.defineProperty(obj, key, {
1455
1455
  value: value,
@@ -1462,7 +1462,7 @@ function _define_property$a(obj, key, value) {
1462
1462
  }
1463
1463
  return obj;
1464
1464
  }
1465
- function _object_spread$4(target) {
1465
+ function _object_spread$5(target) {
1466
1466
  for(var i = 1; i < arguments.length; i++){
1467
1467
  var source = arguments[i] != null ? arguments[i] : {};
1468
1468
  var ownKeys = Object.keys(source);
@@ -1472,12 +1472,12 @@ function _object_spread$4(target) {
1472
1472
  }));
1473
1473
  }
1474
1474
  ownKeys.forEach(function(key) {
1475
- _define_property$a(target, key, source[key]);
1475
+ _define_property$c(target, key, source[key]);
1476
1476
  });
1477
1477
  }
1478
1478
  return target;
1479
1479
  }
1480
- function ownKeys$4(object, enumerableOnly) {
1480
+ function ownKeys$5(object, enumerableOnly) {
1481
1481
  var keys = Object.keys(object);
1482
1482
  if (Object.getOwnPropertySymbols) {
1483
1483
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1485,12 +1485,12 @@ function ownKeys$4(object, enumerableOnly) {
1485
1485
  }
1486
1486
  return keys;
1487
1487
  }
1488
- function _object_spread_props$4(target, source) {
1488
+ function _object_spread_props$5(target, source) {
1489
1489
  source = source != null ? source : {};
1490
1490
  if (Object.getOwnPropertyDescriptors) {
1491
1491
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1492
1492
  } else {
1493
- ownKeys$4(Object(source)).forEach(function(key) {
1493
+ ownKeys$5(Object(source)).forEach(function(key) {
1494
1494
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1495
1495
  });
1496
1496
  }
@@ -1503,19 +1503,19 @@ function _object_spread_props$4(target, source) {
1503
1503
  * to the authenticated CRM context created during construction.
1504
1504
  */ var ZohoCrmApi = /*#__PURE__*/ function() {
1505
1505
  function ZohoCrmApi(config, zohoAccountsApi) {
1506
- _class_call_check$a(this, ZohoCrmApi);
1507
- _define_property$a(this, "config", void 0);
1508
- _define_property$a(this, "zohoAccountsApi", void 0);
1506
+ _class_call_check$c(this, ZohoCrmApi);
1507
+ _define_property$c(this, "config", void 0);
1508
+ _define_property$c(this, "zohoAccountsApi", void 0);
1509
1509
  /**
1510
1510
  * Underlying Zoho CRM client instance, initialized from the injected config and accounts context.
1511
- */ _define_property$a(this, "zohoCrm", void 0);
1511
+ */ _define_property$c(this, "zohoCrm", void 0);
1512
1512
  this.config = config;
1513
1513
  this.zohoAccountsApi = zohoAccountsApi;
1514
- this.zohoCrm = zohoCrmFactory(_object_spread_props$4(_object_spread$4({}, config.factoryConfig), {
1514
+ this.zohoCrm = zohoCrmFactory(_object_spread_props$5(_object_spread$5({}, config.factoryConfig), {
1515
1515
  accountsContext: zohoAccountsApi.accountsContext
1516
1516
  }))(config.zohoCrm);
1517
1517
  }
1518
- _create_class$9(ZohoCrmApi, [
1518
+ _create_class$b(ZohoCrmApi, [
1519
1519
  {
1520
1520
  key: "crmContext",
1521
1521
  get: /**
@@ -1816,30 +1816,30 @@ ZohoCrmApi = __decorate([
1816
1816
  __param(1, Inject(ZohoAccountsApi))
1817
1817
  ], ZohoCrmApi);
1818
1818
 
1819
- function _array_like_to_array$3(arr, len) {
1819
+ function _array_like_to_array$4(arr, len) {
1820
1820
  if (len == null || len > arr.length) len = arr.length;
1821
1821
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1822
1822
  return arr2;
1823
1823
  }
1824
- function _array_without_holes$3(arr) {
1825
- if (Array.isArray(arr)) return _array_like_to_array$3(arr);
1824
+ function _array_without_holes$4(arr) {
1825
+ if (Array.isArray(arr)) return _array_like_to_array$4(arr);
1826
1826
  }
1827
- function _iterable_to_array$3(iter) {
1827
+ function _iterable_to_array$4(iter) {
1828
1828
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1829
1829
  }
1830
- function _non_iterable_spread$3() {
1830
+ function _non_iterable_spread$4() {
1831
1831
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1832
1832
  }
1833
- function _to_consumable_array$3(arr) {
1834
- return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$3();
1833
+ function _to_consumable_array$4(arr) {
1834
+ return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$4();
1835
1835
  }
1836
- function _unsupported_iterable_to_array$3(o, minLen) {
1836
+ function _unsupported_iterable_to_array$4(o, minLen) {
1837
1837
  if (!o) return;
1838
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
1838
+ if (typeof o === "string") return _array_like_to_array$4(o, minLen);
1839
1839
  var n = Object.prototype.toString.call(o).slice(8, -1);
1840
1840
  if (n === "Object" && o.constructor) n = o.constructor.name;
1841
1841
  if (n === "Map" || n === "Set") return Array.from(n);
1842
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
1842
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
1843
1843
  }
1844
1844
  // MARK: Provider Factories
1845
1845
  /**
@@ -1934,10 +1934,10 @@ function _unsupported_iterable_to_array$3(o, minLen) {
1934
1934
  return {
1935
1935
  imports: [
1936
1936
  ConfigModule
1937
- ].concat(_to_consumable_array$3(dependencyModuleImport), _to_consumable_array$3(imports !== null && imports !== void 0 ? imports : [])),
1937
+ ].concat(_to_consumable_array$4(dependencyModuleImport), _to_consumable_array$4(imports !== null && imports !== void 0 ? imports : [])),
1938
1938
  exports: [
1939
1939
  ZohoCrmApi
1940
- ].concat(_to_consumable_array$3(exports !== null && exports !== void 0 ? exports : [])),
1940
+ ].concat(_to_consumable_array$4(exports !== null && exports !== void 0 ? exports : [])),
1941
1941
  providers: [
1942
1942
  {
1943
1943
  provide: ZohoCrmServiceConfig,
@@ -1956,16 +1956,16 @@ function _unsupported_iterable_to_array$3(o, minLen) {
1956
1956
  useFactory: zohoCrmAccountServiceConfigFactory
1957
1957
  },
1958
1958
  ZohoAccountsApi
1959
- ].concat(_to_consumable_array$3(providers !== null && providers !== void 0 ? providers : []))
1959
+ ].concat(_to_consumable_array$4(providers !== null && providers !== void 0 ? providers : []))
1960
1960
  };
1961
1961
  }
1962
1962
 
1963
- function _class_call_check$9(instance, Constructor) {
1963
+ function _class_call_check$b(instance, Constructor) {
1964
1964
  if (!(instance instanceof Constructor)) {
1965
1965
  throw new TypeError("Cannot call a class as a function");
1966
1966
  }
1967
1967
  }
1968
- function _defineProperties$8(target, props) {
1968
+ function _defineProperties$a(target, props) {
1969
1969
  for(var i = 0; i < props.length; i++){
1970
1970
  var descriptor = props[i];
1971
1971
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1974,11 +1974,11 @@ function _defineProperties$8(target, props) {
1974
1974
  Object.defineProperty(target, descriptor.key, descriptor);
1975
1975
  }
1976
1976
  }
1977
- function _create_class$8(Constructor, protoProps, staticProps) {
1978
- if (staticProps) _defineProperties$8(Constructor, staticProps);
1977
+ function _create_class$a(Constructor, protoProps, staticProps) {
1978
+ if (staticProps) _defineProperties$a(Constructor, staticProps);
1979
1979
  return Constructor;
1980
1980
  }
1981
- function _define_property$9(obj, key, value) {
1981
+ function _define_property$b(obj, key, value) {
1982
1982
  if (key in obj) {
1983
1983
  Object.defineProperty(obj, key, {
1984
1984
  value: value,
@@ -1998,15 +1998,15 @@ function _define_property$9(obj, key, value) {
1998
1998
  * while keeping the expected shape consistent.
1999
1999
  */ var ZohoRecruitServiceConfig = /*#__PURE__*/ function() {
2000
2000
  function ZohoRecruitServiceConfig() {
2001
- _class_call_check$9(this, ZohoRecruitServiceConfig);
2001
+ _class_call_check$b(this, ZohoRecruitServiceConfig);
2002
2002
  /**
2003
2003
  * Zoho Recruit API connection settings (endpoint URL, etc.).
2004
- */ _define_property$9(this, "zohoRecruit", void 0);
2004
+ */ _define_property$b(this, "zohoRecruit", void 0);
2005
2005
  /**
2006
2006
  * Optional factory-level overrides applied when creating the underlying Recruit client.
2007
- */ _define_property$9(this, "factoryConfig", void 0);
2007
+ */ _define_property$b(this, "factoryConfig", void 0);
2008
2008
  }
2009
- _create_class$8(ZohoRecruitServiceConfig, null, [
2009
+ _create_class$a(ZohoRecruitServiceConfig, null, [
2010
2010
  {
2011
2011
  key: "assertValidConfig",
2012
2012
  value: /**
@@ -2022,12 +2022,12 @@ function _define_property$9(obj, key, value) {
2022
2022
  }
2023
2023
  ();
2024
2024
 
2025
- function _class_call_check$8(instance, Constructor) {
2025
+ function _class_call_check$a(instance, Constructor) {
2026
2026
  if (!(instance instanceof Constructor)) {
2027
2027
  throw new TypeError("Cannot call a class as a function");
2028
2028
  }
2029
2029
  }
2030
- function _defineProperties$7(target, props) {
2030
+ function _defineProperties$9(target, props) {
2031
2031
  for(var i = 0; i < props.length; i++){
2032
2032
  var descriptor = props[i];
2033
2033
  descriptor.enumerable = descriptor.enumerable || false;
@@ -2036,11 +2036,11 @@ function _defineProperties$7(target, props) {
2036
2036
  Object.defineProperty(target, descriptor.key, descriptor);
2037
2037
  }
2038
2038
  }
2039
- function _create_class$7(Constructor, protoProps, staticProps) {
2040
- if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
2039
+ function _create_class$9(Constructor, protoProps, staticProps) {
2040
+ if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
2041
2041
  return Constructor;
2042
2042
  }
2043
- function _define_property$8(obj, key, value) {
2043
+ function _define_property$a(obj, key, value) {
2044
2044
  if (key in obj) {
2045
2045
  Object.defineProperty(obj, key, {
2046
2046
  value: value,
@@ -2053,7 +2053,7 @@ function _define_property$8(obj, key, value) {
2053
2053
  }
2054
2054
  return obj;
2055
2055
  }
2056
- function _object_spread$3(target) {
2056
+ function _object_spread$4(target) {
2057
2057
  for(var i = 1; i < arguments.length; i++){
2058
2058
  var source = arguments[i] != null ? arguments[i] : {};
2059
2059
  var ownKeys = Object.keys(source);
@@ -2063,12 +2063,12 @@ function _object_spread$3(target) {
2063
2063
  }));
2064
2064
  }
2065
2065
  ownKeys.forEach(function(key) {
2066
- _define_property$8(target, key, source[key]);
2066
+ _define_property$a(target, key, source[key]);
2067
2067
  });
2068
2068
  }
2069
2069
  return target;
2070
2070
  }
2071
- function ownKeys$3(object, enumerableOnly) {
2071
+ function ownKeys$4(object, enumerableOnly) {
2072
2072
  var keys = Object.keys(object);
2073
2073
  if (Object.getOwnPropertySymbols) {
2074
2074
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2076,12 +2076,12 @@ function ownKeys$3(object, enumerableOnly) {
2076
2076
  }
2077
2077
  return keys;
2078
2078
  }
2079
- function _object_spread_props$3(target, source) {
2079
+ function _object_spread_props$4(target, source) {
2080
2080
  source = source != null ? source : {};
2081
2081
  if (Object.getOwnPropertyDescriptors) {
2082
2082
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2083
2083
  } else {
2084
- ownKeys$3(Object(source)).forEach(function(key) {
2084
+ ownKeys$4(Object(source)).forEach(function(key) {
2085
2085
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2086
2086
  });
2087
2087
  }
@@ -2094,19 +2094,19 @@ function _object_spread_props$3(target, source) {
2094
2094
  * to the authenticated Recruit context created during construction.
2095
2095
  */ var ZohoRecruitApi = /*#__PURE__*/ function() {
2096
2096
  function ZohoRecruitApi(config, zohoAccountsApi) {
2097
- _class_call_check$8(this, ZohoRecruitApi);
2098
- _define_property$8(this, "config", void 0);
2099
- _define_property$8(this, "zohoAccountsApi", void 0);
2097
+ _class_call_check$a(this, ZohoRecruitApi);
2098
+ _define_property$a(this, "config", void 0);
2099
+ _define_property$a(this, "zohoAccountsApi", void 0);
2100
2100
  /**
2101
2101
  * Underlying Zoho Recruit client instance, initialized from the injected config and accounts context.
2102
- */ _define_property$8(this, "zohoRecruit", void 0);
2102
+ */ _define_property$a(this, "zohoRecruit", void 0);
2103
2103
  this.config = config;
2104
2104
  this.zohoAccountsApi = zohoAccountsApi;
2105
- this.zohoRecruit = zohoRecruitFactory(_object_spread_props$3(_object_spread$3({}, config.factoryConfig), {
2105
+ this.zohoRecruit = zohoRecruitFactory(_object_spread_props$4(_object_spread$4({}, config.factoryConfig), {
2106
2106
  accountsContext: zohoAccountsApi.accountsContext
2107
2107
  }))(config.zohoRecruit);
2108
2108
  }
2109
- _create_class$7(ZohoRecruitApi, [
2109
+ _create_class$9(ZohoRecruitApi, [
2110
2110
  {
2111
2111
  key: "recruitContext",
2112
2112
  get: /**
@@ -2447,30 +2447,30 @@ ZohoRecruitApi = __decorate([
2447
2447
  __param(1, Inject(ZohoAccountsApi))
2448
2448
  ], ZohoRecruitApi);
2449
2449
 
2450
- function _array_like_to_array$2(arr, len) {
2450
+ function _array_like_to_array$3(arr, len) {
2451
2451
  if (len == null || len > arr.length) len = arr.length;
2452
2452
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2453
2453
  return arr2;
2454
2454
  }
2455
- function _array_without_holes$2(arr) {
2456
- if (Array.isArray(arr)) return _array_like_to_array$2(arr);
2455
+ function _array_without_holes$3(arr) {
2456
+ if (Array.isArray(arr)) return _array_like_to_array$3(arr);
2457
2457
  }
2458
- function _iterable_to_array$2(iter) {
2458
+ function _iterable_to_array$3(iter) {
2459
2459
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2460
2460
  }
2461
- function _non_iterable_spread$2() {
2461
+ function _non_iterable_spread$3() {
2462
2462
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2463
2463
  }
2464
- function _to_consumable_array$2(arr) {
2465
- return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$2();
2464
+ function _to_consumable_array$3(arr) {
2465
+ return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread$3();
2466
2466
  }
2467
- function _unsupported_iterable_to_array$2(o, minLen) {
2467
+ function _unsupported_iterable_to_array$3(o, minLen) {
2468
2468
  if (!o) return;
2469
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
2469
+ if (typeof o === "string") return _array_like_to_array$3(o, minLen);
2470
2470
  var n = Object.prototype.toString.call(o).slice(8, -1);
2471
2471
  if (n === "Object" && o.constructor) n = o.constructor.name;
2472
2472
  if (n === "Map" || n === "Set") return Array.from(n);
2473
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
2473
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
2474
2474
  }
2475
2475
  // MARK: Provider Factories
2476
2476
  /**
@@ -2565,10 +2565,10 @@ function _unsupported_iterable_to_array$2(o, minLen) {
2565
2565
  return {
2566
2566
  imports: [
2567
2567
  ConfigModule
2568
- ].concat(_to_consumable_array$2(dependencyModuleImport), _to_consumable_array$2(imports !== null && imports !== void 0 ? imports : [])),
2568
+ ].concat(_to_consumable_array$3(dependencyModuleImport), _to_consumable_array$3(imports !== null && imports !== void 0 ? imports : [])),
2569
2569
  exports: [
2570
2570
  ZohoRecruitApi
2571
- ].concat(_to_consumable_array$2(exports !== null && exports !== void 0 ? exports : [])),
2571
+ ].concat(_to_consumable_array$3(exports !== null && exports !== void 0 ? exports : [])),
2572
2572
  providers: [
2573
2573
  {
2574
2574
  provide: ZohoRecruitServiceConfig,
@@ -2587,16 +2587,16 @@ function _unsupported_iterable_to_array$2(o, minLen) {
2587
2587
  useFactory: zohoRecruitAccountServiceConfigFactory
2588
2588
  },
2589
2589
  ZohoAccountsApi
2590
- ].concat(_to_consumable_array$2(providers !== null && providers !== void 0 ? providers : []))
2590
+ ].concat(_to_consumable_array$3(providers !== null && providers !== void 0 ? providers : []))
2591
2591
  };
2592
2592
  }
2593
2593
 
2594
- function _class_call_check$7(instance, Constructor) {
2594
+ function _class_call_check$9(instance, Constructor) {
2595
2595
  if (!(instance instanceof Constructor)) {
2596
2596
  throw new TypeError("Cannot call a class as a function");
2597
2597
  }
2598
2598
  }
2599
- function _defineProperties$6(target, props) {
2599
+ function _defineProperties$8(target, props) {
2600
2600
  for(var i = 0; i < props.length; i++){
2601
2601
  var descriptor = props[i];
2602
2602
  descriptor.enumerable = descriptor.enumerable || false;
@@ -2605,11 +2605,11 @@ function _defineProperties$6(target, props) {
2605
2605
  Object.defineProperty(target, descriptor.key, descriptor);
2606
2606
  }
2607
2607
  }
2608
- function _create_class$6(Constructor, protoProps, staticProps) {
2609
- if (staticProps) _defineProperties$6(Constructor, staticProps);
2608
+ function _create_class$8(Constructor, protoProps, staticProps) {
2609
+ if (staticProps) _defineProperties$8(Constructor, staticProps);
2610
2610
  return Constructor;
2611
2611
  }
2612
- function _define_property$7(obj, key, value) {
2612
+ function _define_property$9(obj, key, value) {
2613
2613
  if (key in obj) {
2614
2614
  Object.defineProperty(obj, key, {
2615
2615
  value: value,
@@ -2626,11 +2626,11 @@ function _define_property$7(obj, key, value) {
2626
2626
  * Configuration for ZohoSignService
2627
2627
  */ var ZohoSignServiceConfig = /*#__PURE__*/ function() {
2628
2628
  function ZohoSignServiceConfig() {
2629
- _class_call_check$7(this, ZohoSignServiceConfig);
2630
- _define_property$7(this, "zohoSign", void 0);
2631
- _define_property$7(this, "factoryConfig", void 0);
2629
+ _class_call_check$9(this, ZohoSignServiceConfig);
2630
+ _define_property$9(this, "zohoSign", void 0);
2631
+ _define_property$9(this, "factoryConfig", void 0);
2632
2632
  }
2633
- _create_class$6(ZohoSignServiceConfig, null, [
2633
+ _create_class$8(ZohoSignServiceConfig, null, [
2634
2634
  {
2635
2635
  key: "assertValidConfig",
2636
2636
  value: function assertValidConfig(config) {
@@ -2642,12 +2642,12 @@ function _define_property$7(obj, key, value) {
2642
2642
  }
2643
2643
  ();
2644
2644
 
2645
- function _class_call_check$6(instance, Constructor) {
2645
+ function _class_call_check$8(instance, Constructor) {
2646
2646
  if (!(instance instanceof Constructor)) {
2647
2647
  throw new TypeError("Cannot call a class as a function");
2648
2648
  }
2649
2649
  }
2650
- function _defineProperties$5(target, props) {
2650
+ function _defineProperties$7(target, props) {
2651
2651
  for(var i = 0; i < props.length; i++){
2652
2652
  var descriptor = props[i];
2653
2653
  descriptor.enumerable = descriptor.enumerable || false;
@@ -2656,11 +2656,11 @@ function _defineProperties$5(target, props) {
2656
2656
  Object.defineProperty(target, descriptor.key, descriptor);
2657
2657
  }
2658
2658
  }
2659
- function _create_class$5(Constructor, protoProps, staticProps) {
2660
- if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
2659
+ function _create_class$7(Constructor, protoProps, staticProps) {
2660
+ if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
2661
2661
  return Constructor;
2662
2662
  }
2663
- function _define_property$6(obj, key, value) {
2663
+ function _define_property$8(obj, key, value) {
2664
2664
  if (key in obj) {
2665
2665
  Object.defineProperty(obj, key, {
2666
2666
  value: value,
@@ -2673,7 +2673,7 @@ function _define_property$6(obj, key, value) {
2673
2673
  }
2674
2674
  return obj;
2675
2675
  }
2676
- function _object_spread$2(target) {
2676
+ function _object_spread$3(target) {
2677
2677
  for(var i = 1; i < arguments.length; i++){
2678
2678
  var source = arguments[i] != null ? arguments[i] : {};
2679
2679
  var ownKeys = Object.keys(source);
@@ -2683,12 +2683,12 @@ function _object_spread$2(target) {
2683
2683
  }));
2684
2684
  }
2685
2685
  ownKeys.forEach(function(key) {
2686
- _define_property$6(target, key, source[key]);
2686
+ _define_property$8(target, key, source[key]);
2687
2687
  });
2688
2688
  }
2689
2689
  return target;
2690
2690
  }
2691
- function ownKeys$2(object, enumerableOnly) {
2691
+ function ownKeys$3(object, enumerableOnly) {
2692
2692
  var keys = Object.keys(object);
2693
2693
  if (Object.getOwnPropertySymbols) {
2694
2694
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2696,12 +2696,12 @@ function ownKeys$2(object, enumerableOnly) {
2696
2696
  }
2697
2697
  return keys;
2698
2698
  }
2699
- function _object_spread_props$2(target, source) {
2699
+ function _object_spread_props$3(target, source) {
2700
2700
  source = source != null ? source : {};
2701
2701
  if (Object.getOwnPropertyDescriptors) {
2702
2702
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2703
2703
  } else {
2704
- ownKeys$2(Object(source)).forEach(function(key) {
2704
+ ownKeys$3(Object(source)).forEach(function(key) {
2705
2705
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2706
2706
  });
2707
2707
  }
@@ -2714,19 +2714,19 @@ function _object_spread_props$2(target, source) {
2714
2714
  * to the authenticated Sign context created during construction.
2715
2715
  */ var ZohoSignApi = /*#__PURE__*/ function() {
2716
2716
  function ZohoSignApi(config, zohoAccountsApi) {
2717
- _class_call_check$6(this, ZohoSignApi);
2718
- _define_property$6(this, "config", void 0);
2719
- _define_property$6(this, "zohoAccountsApi", void 0);
2717
+ _class_call_check$8(this, ZohoSignApi);
2718
+ _define_property$8(this, "config", void 0);
2719
+ _define_property$8(this, "zohoAccountsApi", void 0);
2720
2720
  /**
2721
2721
  * Underlying Zoho Sign client instance, initialized from the injected config and accounts context.
2722
- */ _define_property$6(this, "zohoSign", void 0);
2722
+ */ _define_property$8(this, "zohoSign", void 0);
2723
2723
  this.config = config;
2724
2724
  this.zohoAccountsApi = zohoAccountsApi;
2725
- this.zohoSign = zohoSignFactory(_object_spread_props$2(_object_spread$2({}, config.factoryConfig), {
2725
+ this.zohoSign = zohoSignFactory(_object_spread_props$3(_object_spread$3({}, config.factoryConfig), {
2726
2726
  accountsContext: zohoAccountsApi.accountsContext
2727
2727
  }))(config.zohoSign);
2728
2728
  }
2729
- _create_class$5(ZohoSignApi, [
2729
+ _create_class$7(ZohoSignApi, [
2730
2730
  {
2731
2731
  key: "signContext",
2732
2732
  get: /**
@@ -2917,30 +2917,30 @@ ZohoSignApi = __decorate([
2917
2917
  __param(1, Inject(ZohoAccountsApi))
2918
2918
  ], ZohoSignApi);
2919
2919
 
2920
- function _array_like_to_array$1(arr, len) {
2920
+ function _array_like_to_array$2(arr, len) {
2921
2921
  if (len == null || len > arr.length) len = arr.length;
2922
2922
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2923
2923
  return arr2;
2924
2924
  }
2925
- function _array_without_holes$1(arr) {
2926
- if (Array.isArray(arr)) return _array_like_to_array$1(arr);
2925
+ function _array_without_holes$2(arr) {
2926
+ if (Array.isArray(arr)) return _array_like_to_array$2(arr);
2927
2927
  }
2928
- function _iterable_to_array$1(iter) {
2928
+ function _iterable_to_array$2(iter) {
2929
2929
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2930
2930
  }
2931
- function _non_iterable_spread$1() {
2931
+ function _non_iterable_spread$2() {
2932
2932
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2933
2933
  }
2934
- function _to_consumable_array$1(arr) {
2935
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
2934
+ function _to_consumable_array$2(arr) {
2935
+ return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$2();
2936
2936
  }
2937
- function _unsupported_iterable_to_array$1(o, minLen) {
2937
+ function _unsupported_iterable_to_array$2(o, minLen) {
2938
2938
  if (!o) return;
2939
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
2939
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
2940
2940
  var n = Object.prototype.toString.call(o).slice(8, -1);
2941
2941
  if (n === "Object" && o.constructor) n = o.constructor.name;
2942
2942
  if (n === "Map" || n === "Set") return Array.from(n);
2943
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
2943
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
2944
2944
  }
2945
2945
  // MARK: Provider Factories
2946
2946
  /**
@@ -3036,10 +3036,10 @@ function _unsupported_iterable_to_array$1(o, minLen) {
3036
3036
  return {
3037
3037
  imports: [
3038
3038
  ConfigModule
3039
- ].concat(_to_consumable_array$1(dependencyModuleImport), _to_consumable_array$1(imports !== null && imports !== void 0 ? imports : [])),
3039
+ ].concat(_to_consumable_array$2(dependencyModuleImport), _to_consumable_array$2(imports !== null && imports !== void 0 ? imports : [])),
3040
3040
  exports: [
3041
3041
  ZohoSignApi
3042
- ].concat(_to_consumable_array$1(exports !== null && exports !== void 0 ? exports : [])),
3042
+ ].concat(_to_consumable_array$2(exports !== null && exports !== void 0 ? exports : [])),
3043
3043
  providers: [
3044
3044
  {
3045
3045
  provide: ZohoSignServiceConfig,
@@ -3058,11 +3058,11 @@ function _unsupported_iterable_to_array$1(o, minLen) {
3058
3058
  useFactory: zohoSignAccountServiceConfigFactory
3059
3059
  },
3060
3060
  ZohoAccountsApi
3061
- ].concat(_to_consumable_array$1(providers !== null && providers !== void 0 ? providers : []))
3061
+ ].concat(_to_consumable_array$2(providers !== null && providers !== void 0 ? providers : []))
3062
3062
  };
3063
3063
  }
3064
3064
 
3065
- function _define_property$5(obj, key, value) {
3065
+ function _define_property$7(obj, key, value) {
3066
3066
  if (key in obj) {
3067
3067
  Object.defineProperty(obj, key, {
3068
3068
  value: value,
@@ -3075,7 +3075,7 @@ function _define_property$5(obj, key, value) {
3075
3075
  }
3076
3076
  return obj;
3077
3077
  }
3078
- function _object_spread$1(target) {
3078
+ function _object_spread$2(target) {
3079
3079
  for(var i = 1; i < arguments.length; i++){
3080
3080
  var source = arguments[i] != null ? arguments[i] : {};
3081
3081
  var ownKeys = Object.keys(source);
@@ -3085,12 +3085,12 @@ function _object_spread$1(target) {
3085
3085
  }));
3086
3086
  }
3087
3087
  ownKeys.forEach(function(key) {
3088
- _define_property$5(target, key, source[key]);
3088
+ _define_property$7(target, key, source[key]);
3089
3089
  });
3090
3090
  }
3091
3091
  return target;
3092
3092
  }
3093
- function ownKeys$1(object, enumerableOnly) {
3093
+ function ownKeys$2(object, enumerableOnly) {
3094
3094
  var keys = Object.keys(object);
3095
3095
  if (Object.getOwnPropertySymbols) {
3096
3096
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3098,12 +3098,12 @@ function ownKeys$1(object, enumerableOnly) {
3098
3098
  }
3099
3099
  return keys;
3100
3100
  }
3101
- function _object_spread_props$1(target, source) {
3101
+ function _object_spread_props$2(target, source) {
3102
3102
  source = source != null ? source : {};
3103
3103
  if (Object.getOwnPropertyDescriptors) {
3104
3104
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3105
3105
  } else {
3106
- ownKeys$1(Object(source)).forEach(function(key) {
3106
+ ownKeys$2(Object(source)).forEach(function(key) {
3107
3107
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3108
3108
  });
3109
3109
  }
@@ -3115,7 +3115,7 @@ function _object_spread_props$1(target, source) {
3115
3115
  * @param payload - The raw Zoho Sign webhook payload to convert.
3116
3116
  * @returns A webhook event with the operation type extracted for convenience.
3117
3117
  */ function zohoSignWebhookEvent(payload) {
3118
- return _object_spread_props$1(_object_spread$1({}, payload), {
3118
+ return _object_spread_props$2(_object_spread$2({}, payload), {
3119
3119
  operationType: payload.notifications.operation_type
3120
3120
  });
3121
3121
  }
@@ -3127,7 +3127,7 @@ var zohoSignEventHandlerConfigurerFactory = handlerConfigurerFactory({
3127
3127
  var fnWithKey = handlerMappedSetFunctionFactory(accessor, function(x) {
3128
3128
  return x;
3129
3129
  });
3130
- var configurer = _object_spread_props$1(_object_spread$1({}, accessor), {
3130
+ var configurer = _object_spread_props$2(_object_spread$2({}, accessor), {
3131
3131
  handleRequestSubmitted: fnWithKey('RequestSubmitted'),
3132
3132
  handleRequestViewed: fnWithKey('RequestViewed'),
3133
3133
  handleRequestSigningSuccess: fnWithKey('RequestSigningSuccess'),
@@ -3141,12 +3141,12 @@ var zohoSignEventHandlerConfigurerFactory = handlerConfigurerFactory({
3141
3141
  }
3142
3142
  });
3143
3143
 
3144
- function _class_call_check$5(instance, Constructor) {
3144
+ function _class_call_check$7(instance, Constructor) {
3145
3145
  if (!(instance instanceof Constructor)) {
3146
3146
  throw new TypeError("Cannot call a class as a function");
3147
3147
  }
3148
3148
  }
3149
- function _defineProperties$4(target, props) {
3149
+ function _defineProperties$6(target, props) {
3150
3150
  for(var i = 0; i < props.length; i++){
3151
3151
  var descriptor = props[i];
3152
3152
  descriptor.enumerable = descriptor.enumerable || false;
@@ -3155,11 +3155,11 @@ function _defineProperties$4(target, props) {
3155
3155
  Object.defineProperty(target, descriptor.key, descriptor);
3156
3156
  }
3157
3157
  }
3158
- function _create_class$4(Constructor, protoProps, staticProps) {
3159
- if (staticProps) _defineProperties$4(Constructor, staticProps);
3158
+ function _create_class$6(Constructor, protoProps, staticProps) {
3159
+ if (staticProps) _defineProperties$6(Constructor, staticProps);
3160
3160
  return Constructor;
3161
3161
  }
3162
- function _define_property$4(obj, key, value) {
3162
+ function _define_property$6(obj, key, value) {
3163
3163
  if (key in obj) {
3164
3164
  Object.defineProperty(obj, key, {
3165
3165
  value: value,
@@ -3177,10 +3177,10 @@ var ZOHO_SIGN_WEBHOOK_SECRET_TOKEN_ENV_VAR = 'ZOHO_SIGN_WEBHOOK_SECRET_TOKEN';
3177
3177
  * Configuration for the Zoho Sign webhook service.
3178
3178
  */ var ZohoSignWebhookServiceConfig = /*#__PURE__*/ function() {
3179
3179
  function ZohoSignWebhookServiceConfig() {
3180
- _class_call_check$5(this, ZohoSignWebhookServiceConfig);
3181
- _define_property$4(this, "zohoSignWebhook", void 0);
3180
+ _class_call_check$7(this, ZohoSignWebhookServiceConfig);
3181
+ _define_property$6(this, "zohoSignWebhook", void 0);
3182
3182
  }
3183
- _create_class$4(ZohoSignWebhookServiceConfig, null, [
3183
+ _create_class$6(ZohoSignWebhookServiceConfig, null, [
3184
3184
  {
3185
3185
  key: "assertValidConfig",
3186
3186
  value: function assertValidConfig(config) {
@@ -3422,12 +3422,12 @@ function _async_to_generator$1(fn) {
3422
3422
  });
3423
3423
  };
3424
3424
  }
3425
- function _class_call_check$4(instance, Constructor) {
3425
+ function _class_call_check$6(instance, Constructor) {
3426
3426
  if (!(instance instanceof Constructor)) {
3427
3427
  throw new TypeError("Cannot call a class as a function");
3428
3428
  }
3429
3429
  }
3430
- function _defineProperties$3(target, props) {
3430
+ function _defineProperties$5(target, props) {
3431
3431
  for(var i = 0; i < props.length; i++){
3432
3432
  var descriptor = props[i];
3433
3433
  descriptor.enumerable = descriptor.enumerable || false;
@@ -3436,11 +3436,11 @@ function _defineProperties$3(target, props) {
3436
3436
  Object.defineProperty(target, descriptor.key, descriptor);
3437
3437
  }
3438
3438
  }
3439
- function _create_class$3(Constructor, protoProps, staticProps) {
3440
- if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
3439
+ function _create_class$5(Constructor, protoProps, staticProps) {
3440
+ if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
3441
3441
  return Constructor;
3442
3442
  }
3443
- function _define_property$3(obj, key, value) {
3443
+ function _define_property$5(obj, key, value) {
3444
3444
  if (key in obj) {
3445
3445
  Object.defineProperty(obj, key, {
3446
3446
  value: value,
@@ -3556,17 +3556,17 @@ function _ts_generator$1(thisArg, body) {
3556
3556
  * Service that handles Zoho Sign webhook events.
3557
3557
  */ var ZohoSignWebhookService = /*#__PURE__*/ function() {
3558
3558
  function ZohoSignWebhookService(zohoSignWebhookServiceConfig) {
3559
- _class_call_check$4(this, ZohoSignWebhookService);
3560
- _define_property$3(this, "logger", new Logger('ZohoSignWebhookService'));
3561
- _define_property$3(this, "_verifier", void 0);
3562
- _define_property$3(this, "handler", zohoSignEventHandlerFactory());
3563
- _define_property$3(this, "configure", zohoSignEventHandlerConfigurerFactory(this.handler));
3559
+ _class_call_check$6(this, ZohoSignWebhookService);
3560
+ _define_property$5(this, "logger", new Logger('ZohoSignWebhookService'));
3561
+ _define_property$5(this, "_verifier", void 0);
3562
+ _define_property$5(this, "handler", zohoSignEventHandlerFactory());
3563
+ _define_property$5(this, "configure", zohoSignEventHandlerConfigurerFactory(this.handler));
3564
3564
  var webhookSecret = zohoSignWebhookServiceConfig.zohoSignWebhook.webhookSecret;
3565
3565
  this._verifier = zohoSignWebhookEventVerifier({
3566
3566
  secret: webhookSecret
3567
3567
  });
3568
3568
  }
3569
- _create_class$3(ZohoSignWebhookService, [
3569
+ _create_class$5(ZohoSignWebhookService, [
3570
3570
  {
3571
3571
  key: "updateForWebhook",
3572
3572
  value: function updateForWebhook(req, rawBody) {
@@ -3669,12 +3669,12 @@ function _async_to_generator(fn) {
3669
3669
  });
3670
3670
  };
3671
3671
  }
3672
- function _class_call_check$3(instance, Constructor) {
3672
+ function _class_call_check$5(instance, Constructor) {
3673
3673
  if (!(instance instanceof Constructor)) {
3674
3674
  throw new TypeError("Cannot call a class as a function");
3675
3675
  }
3676
3676
  }
3677
- function _defineProperties$2(target, props) {
3677
+ function _defineProperties$4(target, props) {
3678
3678
  for(var i = 0; i < props.length; i++){
3679
3679
  var descriptor = props[i];
3680
3680
  descriptor.enumerable = descriptor.enumerable || false;
@@ -3683,11 +3683,11 @@ function _defineProperties$2(target, props) {
3683
3683
  Object.defineProperty(target, descriptor.key, descriptor);
3684
3684
  }
3685
3685
  }
3686
- function _create_class$2(Constructor, protoProps, staticProps) {
3687
- if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
3686
+ function _create_class$4(Constructor, protoProps, staticProps) {
3687
+ if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
3688
3688
  return Constructor;
3689
3689
  }
3690
- function _define_property$2(obj, key, value) {
3690
+ function _define_property$4(obj, key, value) {
3691
3691
  if (key in obj) {
3692
3692
  Object.defineProperty(obj, key, {
3693
3693
  value: value,
@@ -3801,11 +3801,11 @@ function _ts_generator(thisArg, body) {
3801
3801
  }
3802
3802
  var ZohoSignWebhookController = /*#__PURE__*/ function() {
3803
3803
  function ZohoSignWebhookController(zohoSignWebhookService) {
3804
- _class_call_check$3(this, ZohoSignWebhookController);
3805
- _define_property$2(this, "_zohoSignWebhookService", void 0);
3804
+ _class_call_check$5(this, ZohoSignWebhookController);
3805
+ _define_property$4(this, "_zohoSignWebhookService", void 0);
3806
3806
  this._zohoSignWebhookService = zohoSignWebhookService;
3807
3807
  }
3808
- _create_class$2(ZohoSignWebhookController, [
3808
+ _create_class$4(ZohoSignWebhookController, [
3809
3809
  {
3810
3810
  key: "handleZohoSignWebhook",
3811
3811
  value: function handleZohoSignWebhook(req, rawBody) {
@@ -3840,7 +3840,7 @@ ZohoSignWebhookController = __decorate([
3840
3840
  __param(0, Inject(ZohoSignWebhookService))
3841
3841
  ], ZohoSignWebhookController);
3842
3842
 
3843
- function _class_call_check$2(instance, Constructor) {
3843
+ function _class_call_check$4(instance, Constructor) {
3844
3844
  if (!(instance instanceof Constructor)) {
3845
3845
  throw new TypeError("Cannot call a class as a function");
3846
3846
  }
@@ -3862,7 +3862,7 @@ function _class_call_check$2(instance, Constructor) {
3862
3862
  return config;
3863
3863
  }
3864
3864
  var ZohoSignWebhookModule = function ZohoSignWebhookModule() {
3865
- _class_call_check$2(this, ZohoSignWebhookModule);
3865
+ _class_call_check$4(this, ZohoSignWebhookModule);
3866
3866
  };
3867
3867
  ZohoSignWebhookModule = __decorate([
3868
3868
  Module({
@@ -3888,12 +3888,12 @@ ZohoSignWebhookModule = __decorate([
3888
3888
  })
3889
3889
  ], ZohoSignWebhookModule);
3890
3890
 
3891
- function _class_call_check$1(instance, Constructor) {
3891
+ function _class_call_check$3(instance, Constructor) {
3892
3892
  if (!(instance instanceof Constructor)) {
3893
3893
  throw new TypeError("Cannot call a class as a function");
3894
3894
  }
3895
3895
  }
3896
- function _defineProperties$1(target, props) {
3896
+ function _defineProperties$3(target, props) {
3897
3897
  for(var i = 0; i < props.length; i++){
3898
3898
  var descriptor = props[i];
3899
3899
  descriptor.enumerable = descriptor.enumerable || false;
@@ -3902,11 +3902,11 @@ function _defineProperties$1(target, props) {
3902
3902
  Object.defineProperty(target, descriptor.key, descriptor);
3903
3903
  }
3904
3904
  }
3905
- function _create_class$1(Constructor, protoProps, staticProps) {
3906
- if (staticProps) _defineProperties$1(Constructor, staticProps);
3905
+ function _create_class$3(Constructor, protoProps, staticProps) {
3906
+ if (staticProps) _defineProperties$3(Constructor, staticProps);
3907
3907
  return Constructor;
3908
3908
  }
3909
- function _define_property$1(obj, key, value) {
3909
+ function _define_property$3(obj, key, value) {
3910
3910
  if (key in obj) {
3911
3911
  Object.defineProperty(obj, key, {
3912
3912
  value: value,
@@ -3926,15 +3926,15 @@ function _define_property$1(obj, key, value) {
3926
3926
  * while keeping the expected shape consistent.
3927
3927
  */ var ZohoDeskServiceConfig = /*#__PURE__*/ function() {
3928
3928
  function ZohoDeskServiceConfig() {
3929
- _class_call_check$1(this, ZohoDeskServiceConfig);
3929
+ _class_call_check$3(this, ZohoDeskServiceConfig);
3930
3930
  /**
3931
3931
  * Zoho Desk API connection settings (endpoint URL, org ID, etc.).
3932
- */ _define_property$1(this, "zohoDesk", void 0);
3932
+ */ _define_property$3(this, "zohoDesk", void 0);
3933
3933
  /**
3934
3934
  * Optional factory-level overrides applied when creating the underlying Desk client.
3935
- */ _define_property$1(this, "factoryConfig", void 0);
3935
+ */ _define_property$3(this, "factoryConfig", void 0);
3936
3936
  }
3937
- _create_class$1(ZohoDeskServiceConfig, null, [
3937
+ _create_class$3(ZohoDeskServiceConfig, null, [
3938
3938
  {
3939
3939
  key: "assertValidConfig",
3940
3940
  value: /**
@@ -3954,12 +3954,12 @@ function _define_property$1(obj, key, value) {
3954
3954
  }
3955
3955
  ();
3956
3956
 
3957
- function _class_call_check(instance, Constructor) {
3957
+ function _class_call_check$2(instance, Constructor) {
3958
3958
  if (!(instance instanceof Constructor)) {
3959
3959
  throw new TypeError("Cannot call a class as a function");
3960
3960
  }
3961
3961
  }
3962
- function _defineProperties(target, props) {
3962
+ function _defineProperties$2(target, props) {
3963
3963
  for(var i = 0; i < props.length; i++){
3964
3964
  var descriptor = props[i];
3965
3965
  descriptor.enumerable = descriptor.enumerable || false;
@@ -3968,11 +3968,11 @@ function _defineProperties(target, props) {
3968
3968
  Object.defineProperty(target, descriptor.key, descriptor);
3969
3969
  }
3970
3970
  }
3971
- function _create_class(Constructor, protoProps, staticProps) {
3972
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3971
+ function _create_class$2(Constructor, protoProps, staticProps) {
3972
+ if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
3973
3973
  return Constructor;
3974
3974
  }
3975
- function _define_property(obj, key, value) {
3975
+ function _define_property$2(obj, key, value) {
3976
3976
  if (key in obj) {
3977
3977
  Object.defineProperty(obj, key, {
3978
3978
  value: value,
@@ -3985,7 +3985,7 @@ function _define_property(obj, key, value) {
3985
3985
  }
3986
3986
  return obj;
3987
3987
  }
3988
- function _object_spread(target) {
3988
+ function _object_spread$1(target) {
3989
3989
  for(var i = 1; i < arguments.length; i++){
3990
3990
  var source = arguments[i] != null ? arguments[i] : {};
3991
3991
  var ownKeys = Object.keys(source);
@@ -3995,12 +3995,12 @@ function _object_spread(target) {
3995
3995
  }));
3996
3996
  }
3997
3997
  ownKeys.forEach(function(key) {
3998
- _define_property(target, key, source[key]);
3998
+ _define_property$2(target, key, source[key]);
3999
3999
  });
4000
4000
  }
4001
4001
  return target;
4002
4002
  }
4003
- function ownKeys(object, enumerableOnly) {
4003
+ function ownKeys$1(object, enumerableOnly) {
4004
4004
  var keys = Object.keys(object);
4005
4005
  if (Object.getOwnPropertySymbols) {
4006
4006
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4008,12 +4008,12 @@ function ownKeys(object, enumerableOnly) {
4008
4008
  }
4009
4009
  return keys;
4010
4010
  }
4011
- function _object_spread_props(target, source) {
4011
+ function _object_spread_props$1(target, source) {
4012
4012
  source = source != null ? source : {};
4013
4013
  if (Object.getOwnPropertyDescriptors) {
4014
4014
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4015
4015
  } else {
4016
- ownKeys(Object(source)).forEach(function(key) {
4016
+ ownKeys$1(Object(source)).forEach(function(key) {
4017
4017
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4018
4018
  });
4019
4019
  }
@@ -4026,19 +4026,19 @@ function _object_spread_props(target, source) {
4026
4026
  * each bound to the authenticated Desk context created during construction.
4027
4027
  */ var ZohoDeskApi = /*#__PURE__*/ function() {
4028
4028
  function ZohoDeskApi(config, zohoAccountsApi) {
4029
- _class_call_check(this, ZohoDeskApi);
4030
- _define_property(this, "config", void 0);
4031
- _define_property(this, "zohoAccountsApi", void 0);
4029
+ _class_call_check$2(this, ZohoDeskApi);
4030
+ _define_property$2(this, "config", void 0);
4031
+ _define_property$2(this, "zohoAccountsApi", void 0);
4032
4032
  /**
4033
4033
  * Underlying Zoho Desk client instance, initialized from the injected config and accounts context.
4034
- */ _define_property(this, "zohoDesk", void 0);
4034
+ */ _define_property$2(this, "zohoDesk", void 0);
4035
4035
  this.config = config;
4036
4036
  this.zohoAccountsApi = zohoAccountsApi;
4037
- this.zohoDesk = zohoDeskFactory(_object_spread_props(_object_spread({}, config.factoryConfig), {
4037
+ this.zohoDesk = zohoDeskFactory(_object_spread_props$1(_object_spread$1({}, config.factoryConfig), {
4038
4038
  accountsContext: zohoAccountsApi.accountsContext
4039
4039
  }))(config.zohoDesk);
4040
4040
  }
4041
- _create_class(ZohoDeskApi, [
4041
+ _create_class$2(ZohoDeskApi, [
4042
4042
  {
4043
4043
  key: "deskContext",
4044
4044
  get: /**
@@ -4519,30 +4519,30 @@ ZohoDeskApi = __decorate([
4519
4519
  __param(1, Inject(ZohoAccountsApi))
4520
4520
  ], ZohoDeskApi);
4521
4521
 
4522
- function _array_like_to_array(arr, len) {
4522
+ function _array_like_to_array$1(arr, len) {
4523
4523
  if (len == null || len > arr.length) len = arr.length;
4524
4524
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4525
4525
  return arr2;
4526
4526
  }
4527
- function _array_without_holes(arr) {
4528
- if (Array.isArray(arr)) return _array_like_to_array(arr);
4527
+ function _array_without_holes$1(arr) {
4528
+ if (Array.isArray(arr)) return _array_like_to_array$1(arr);
4529
4529
  }
4530
- function _iterable_to_array(iter) {
4530
+ function _iterable_to_array$1(iter) {
4531
4531
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4532
4532
  }
4533
- function _non_iterable_spread() {
4533
+ function _non_iterable_spread$1() {
4534
4534
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4535
4535
  }
4536
- function _to_consumable_array(arr) {
4537
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
4536
+ function _to_consumable_array$1(arr) {
4537
+ return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
4538
4538
  }
4539
- function _unsupported_iterable_to_array(o, minLen) {
4539
+ function _unsupported_iterable_to_array$1(o, minLen) {
4540
4540
  if (!o) return;
4541
- if (typeof o === "string") return _array_like_to_array(o, minLen);
4541
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
4542
4542
  var n = Object.prototype.toString.call(o).slice(8, -1);
4543
4543
  if (n === "Object" && o.constructor) n = o.constructor.name;
4544
4544
  if (n === "Map" || n === "Set") return Array.from(n);
4545
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
4545
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
4546
4546
  }
4547
4547
  /**
4548
4548
  * Config key suffix for the Zoho Desk organization ID.
@@ -4607,10 +4607,10 @@ function _unsupported_iterable_to_array(o, minLen) {
4607
4607
  return {
4608
4608
  imports: [
4609
4609
  ConfigModule
4610
- ].concat(_to_consumable_array(dependencyModuleImport), _to_consumable_array(imports !== null && imports !== void 0 ? imports : [])),
4610
+ ].concat(_to_consumable_array$1(dependencyModuleImport), _to_consumable_array$1(imports !== null && imports !== void 0 ? imports : [])),
4611
4611
  exports: [
4612
4612
  ZohoDeskApi
4613
- ].concat(_to_consumable_array(exports !== null && exports !== void 0 ? exports : [])),
4613
+ ].concat(_to_consumable_array$1(exports !== null && exports !== void 0 ? exports : [])),
4614
4614
  providers: [
4615
4615
  {
4616
4616
  provide: ZohoDeskServiceConfig,
@@ -4629,8 +4629,607 @@ function _unsupported_iterable_to_array(o, minLen) {
4629
4629
  useFactory: zohoDeskAccountServiceConfigFactory
4630
4630
  },
4631
4631
  ZohoAccountsApi
4632
+ ].concat(_to_consumable_array$1(providers !== null && providers !== void 0 ? providers : []))
4633
+ };
4634
+ }
4635
+
4636
+ function _class_call_check$1(instance, Constructor) {
4637
+ if (!(instance instanceof Constructor)) {
4638
+ throw new TypeError("Cannot call a class as a function");
4639
+ }
4640
+ }
4641
+ function _defineProperties$1(target, props) {
4642
+ for(var i = 0; i < props.length; i++){
4643
+ var descriptor = props[i];
4644
+ descriptor.enumerable = descriptor.enumerable || false;
4645
+ descriptor.configurable = true;
4646
+ if ("value" in descriptor) descriptor.writable = true;
4647
+ Object.defineProperty(target, descriptor.key, descriptor);
4648
+ }
4649
+ }
4650
+ function _create_class$1(Constructor, protoProps, staticProps) {
4651
+ if (staticProps) _defineProperties$1(Constructor, staticProps);
4652
+ return Constructor;
4653
+ }
4654
+ function _define_property$1(obj, key, value) {
4655
+ if (key in obj) {
4656
+ Object.defineProperty(obj, key, {
4657
+ value: value,
4658
+ enumerable: true,
4659
+ configurable: true,
4660
+ writable: true
4661
+ });
4662
+ } else {
4663
+ obj[key] = value;
4664
+ }
4665
+ return obj;
4666
+ }
4667
+ /**
4668
+ * Configuration for the Zoho Analytics service, used as the injection token for the
4669
+ * `ZohoAnalyticsApi`.
4670
+ */ var ZohoAnalyticsServiceConfig = /*#__PURE__*/ function() {
4671
+ function ZohoAnalyticsServiceConfig() {
4672
+ _class_call_check$1(this, ZohoAnalyticsServiceConfig);
4673
+ _define_property$1(this, "zohoAnalytics", void 0);
4674
+ _define_property$1(this, "factoryConfig", void 0);
4675
+ }
4676
+ _create_class$1(ZohoAnalyticsServiceConfig, null, [
4677
+ {
4678
+ key: "assertValidConfig",
4679
+ value: /**
4680
+ * Asserts the config carries everything needed to reach the Zoho Analytics API.
4681
+ *
4682
+ * Unlike Zoho Desk, the organization id is not required here: `GET /orgs` is the bootstrap call
4683
+ * that discovers it, and is the one endpoint that works without it. Every other endpoint fails
4684
+ * with error code 8083 when `orgId` is absent.
4685
+ *
4686
+ * @param config - The config to validate.
4687
+ * @throws {Error} When the API URL is missing.
4688
+ */ function assertValidConfig(config) {
4689
+ assertValidZohoConfig(config.zohoAnalytics);
4690
+ }
4691
+ }
4692
+ ]);
4693
+ return ZohoAnalyticsServiceConfig;
4694
+ }
4695
+ ();
4696
+
4697
+ function _class_call_check(instance, Constructor) {
4698
+ if (!(instance instanceof Constructor)) {
4699
+ throw new TypeError("Cannot call a class as a function");
4700
+ }
4701
+ }
4702
+ function _defineProperties(target, props) {
4703
+ for(var i = 0; i < props.length; i++){
4704
+ var descriptor = props[i];
4705
+ descriptor.enumerable = descriptor.enumerable || false;
4706
+ descriptor.configurable = true;
4707
+ if ("value" in descriptor) descriptor.writable = true;
4708
+ Object.defineProperty(target, descriptor.key, descriptor);
4709
+ }
4710
+ }
4711
+ function _create_class(Constructor, protoProps, staticProps) {
4712
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
4713
+ return Constructor;
4714
+ }
4715
+ function _define_property(obj, key, value) {
4716
+ if (key in obj) {
4717
+ Object.defineProperty(obj, key, {
4718
+ value: value,
4719
+ enumerable: true,
4720
+ configurable: true,
4721
+ writable: true
4722
+ });
4723
+ } else {
4724
+ obj[key] = value;
4725
+ }
4726
+ return obj;
4727
+ }
4728
+ function _object_spread(target) {
4729
+ for(var i = 1; i < arguments.length; i++){
4730
+ var source = arguments[i] != null ? arguments[i] : {};
4731
+ var ownKeys = Object.keys(source);
4732
+ if (typeof Object.getOwnPropertySymbols === "function") {
4733
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4734
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
4735
+ }));
4736
+ }
4737
+ ownKeys.forEach(function(key) {
4738
+ _define_property(target, key, source[key]);
4739
+ });
4740
+ }
4741
+ return target;
4742
+ }
4743
+ function ownKeys(object, enumerableOnly) {
4744
+ var keys = Object.keys(object);
4745
+ if (Object.getOwnPropertySymbols) {
4746
+ var symbols = Object.getOwnPropertySymbols(object);
4747
+ keys.push.apply(keys, symbols);
4748
+ }
4749
+ return keys;
4750
+ }
4751
+ function _object_spread_props(target, source) {
4752
+ source = source != null ? source : {};
4753
+ if (Object.getOwnPropertyDescriptors) {
4754
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4755
+ } else {
4756
+ ownKeys(Object(source)).forEach(function(key) {
4757
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4758
+ });
4759
+ }
4760
+ return target;
4761
+ }
4762
+ /**
4763
+ * Injectable wrapper around the Zoho Analytics API.
4764
+ *
4765
+ * Each accessor is a configured pass-through to the corresponding `@dereekb/zoho` function, bound
4766
+ * to this instance's authenticated {@link ZohoAnalyticsContext}.
4767
+ */ var ZohoAnalyticsApi = /*#__PURE__*/ function() {
4768
+ function ZohoAnalyticsApi(config, zohoAccountsApi) {
4769
+ _class_call_check(this, ZohoAnalyticsApi);
4770
+ _define_property(this, "config", void 0);
4771
+ _define_property(this, "zohoAccountsApi", void 0);
4772
+ _define_property(this, "zohoAnalytics", void 0);
4773
+ this.config = config;
4774
+ this.zohoAccountsApi = zohoAccountsApi;
4775
+ this.zohoAnalytics = zohoAnalyticsFactory(_object_spread_props(_object_spread({}, config.factoryConfig), {
4776
+ accountsContext: zohoAccountsApi.accountsContext
4777
+ }))(config.zohoAnalytics);
4778
+ }
4779
+ _create_class(ZohoAnalyticsApi, [
4780
+ {
4781
+ key: "analyticsContext",
4782
+ get: /**
4783
+ * The authenticated context used by every Analytics operation.
4784
+ *
4785
+ * @returns The context carrying the configured fetch, config, and rate limiter.
4786
+ */ function get() {
4787
+ return this.zohoAnalytics.analyticsContext;
4788
+ }
4789
+ },
4790
+ {
4791
+ key: "zohoRateLimiter",
4792
+ get: /**
4793
+ * The shared rate limiter instance.
4794
+ *
4795
+ * @returns The rate limiter pacing requests against the Analytics frequency limit.
4796
+ */ function get() {
4797
+ return this.zohoAnalytics.analyticsContext.zohoRateLimiter;
4798
+ }
4799
+ },
4800
+ {
4801
+ key: "getOrgs",
4802
+ get: // MARK: Organization Accessors
4803
+ /**
4804
+ * Configured pass-through for {@link zohoAnalyticsGetOrgs}.
4805
+ *
4806
+ * Lists the organizations available to the authenticated user. The only operation that works without a configured
4807
+ * `orgId`.
4808
+ *
4809
+ * @returns Bound get orgs function.
4810
+ */ function get() {
4811
+ return zohoAnalyticsGetOrgs(this.analyticsContext);
4812
+ }
4813
+ },
4814
+ {
4815
+ key: "getAllWorkspaces",
4816
+ get: // MARK: Workspace Accessors
4817
+ /**
4818
+ * Configured pass-through for {@link zohoAnalyticsGetAllWorkspaces}.
4819
+ *
4820
+ * Lists every accessible workspace, grouped into owned and shared.
4821
+ *
4822
+ * @returns Bound get all workspaces function.
4823
+ */ function get() {
4824
+ return zohoAnalyticsGetAllWorkspaces(this.analyticsContext);
4825
+ }
4826
+ },
4827
+ {
4828
+ key: "getOwnedWorkspaces",
4829
+ get: /**
4830
+ * Configured pass-through for {@link zohoAnalyticsGetOwnedWorkspaces}.
4831
+ *
4832
+ * Lists the workspaces owned by the authenticated user.
4833
+ *
4834
+ * @returns Bound get owned workspaces function.
4835
+ */ function get() {
4836
+ return zohoAnalyticsGetOwnedWorkspaces(this.analyticsContext);
4837
+ }
4838
+ },
4839
+ {
4840
+ key: "getSharedWorkspaces",
4841
+ get: /**
4842
+ * Configured pass-through for {@link zohoAnalyticsGetSharedWorkspaces}.
4843
+ *
4844
+ * Lists the workspaces shared with the authenticated user.
4845
+ *
4846
+ * @returns Bound get shared workspaces function.
4847
+ */ function get() {
4848
+ return zohoAnalyticsGetSharedWorkspaces(this.analyticsContext);
4849
+ }
4850
+ },
4851
+ {
4852
+ key: "getWorkspaceDetails",
4853
+ get: /**
4854
+ * Configured pass-through for {@link zohoAnalyticsGetWorkspaceDetails}.
4855
+ *
4856
+ * Retrieves a single workspace by id.
4857
+ *
4858
+ * @returns Bound get workspace details function.
4859
+ */ function get() {
4860
+ return zohoAnalyticsGetWorkspaceDetails(this.analyticsContext);
4861
+ }
4862
+ },
4863
+ {
4864
+ key: "getViews",
4865
+ get: // MARK: View Accessors
4866
+ /**
4867
+ * Configured pass-through for {@link zohoAnalyticsGetViews}.
4868
+ *
4869
+ * Lists every view in a workspace.
4870
+ *
4871
+ * @returns Bound get views function.
4872
+ */ function get() {
4873
+ return zohoAnalyticsGetViews(this.analyticsContext);
4874
+ }
4875
+ },
4876
+ {
4877
+ key: "getViewDetails",
4878
+ get: /**
4879
+ * Configured pass-through for {@link zohoAnalyticsGetViewDetails}.
4880
+ *
4881
+ * Retrieves a single view by its globally unique id.
4882
+ *
4883
+ * @returns Bound get view details function.
4884
+ */ function get() {
4885
+ return zohoAnalyticsGetViewDetails(this.analyticsContext);
4886
+ }
4887
+ },
4888
+ {
4889
+ key: "getTableMetadata",
4890
+ get: /**
4891
+ * Configured pass-through for {@link zohoAnalyticsGetTableMetadata}.
4892
+ *
4893
+ * Retrieves a table's column metadata.
4894
+ *
4895
+ * @returns Bound get table metadata function.
4896
+ */ function get() {
4897
+ return zohoAnalyticsGetTableMetadata(this.analyticsContext);
4898
+ }
4899
+ },
4900
+ {
4901
+ key: "importDataInTable",
4902
+ get: // MARK: Import Accessors
4903
+ /**
4904
+ * Configured pass-through for {@link zohoAnalyticsImportDataInTable}.
4905
+ *
4906
+ * Imports data into an existing table and waits for the result.
4907
+ *
4908
+ * @returns Bound import data in table function.
4909
+ */ function get() {
4910
+ return zohoAnalyticsImportDataInTable(this.analyticsContext);
4911
+ }
4912
+ },
4913
+ {
4914
+ key: "importDataInNewTable",
4915
+ get: /**
4916
+ * Configured pass-through for {@link zohoAnalyticsImportDataInNewTable}.
4917
+ *
4918
+ * Creates a table from the imported data.
4919
+ *
4920
+ * @returns Bound import data in new table function.
4921
+ */ function get() {
4922
+ return zohoAnalyticsImportDataInNewTable(this.analyticsContext);
4923
+ }
4924
+ },
4925
+ {
4926
+ key: "createImportJobInTable",
4927
+ get: /**
4928
+ * Configured pass-through for {@link zohoAnalyticsCreateImportJobInTable}.
4929
+ *
4930
+ * Queues an asynchronous import into an existing table.
4931
+ *
4932
+ * @returns Bound create import job in table function.
4933
+ */ function get() {
4934
+ return zohoAnalyticsCreateImportJobInTable(this.analyticsContext);
4935
+ }
4936
+ },
4937
+ {
4938
+ key: "createImportJobInNewTable",
4939
+ get: /**
4940
+ * Configured pass-through for {@link zohoAnalyticsCreateImportJobInNewTable}.
4941
+ *
4942
+ * Queues an asynchronous import that creates a new table.
4943
+ *
4944
+ * @returns Bound create import job in new table function.
4945
+ */ function get() {
4946
+ return zohoAnalyticsCreateImportJobInNewTable(this.analyticsContext);
4947
+ }
4948
+ },
4949
+ {
4950
+ key: "getImportJob",
4951
+ get: /**
4952
+ * Configured pass-through for {@link zohoAnalyticsGetImportJob}.
4953
+ *
4954
+ * Retrieves an import job's status.
4955
+ *
4956
+ * @returns Bound get import job function.
4957
+ */ function get() {
4958
+ return zohoAnalyticsGetImportJob(this.analyticsContext);
4959
+ }
4960
+ },
4961
+ {
4962
+ key: "importDataInTableAndAwaitJob",
4963
+ get: /**
4964
+ * Configured pass-through for {@link zohoAnalyticsImportDataInTableAndAwaitJob}.
4965
+ *
4966
+ * Queues an asynchronous import and polls until the job reaches a terminal state.
4967
+ *
4968
+ * @returns Bound import data in table and await job function.
4969
+ */ function get() {
4970
+ return zohoAnalyticsImportDataInTableAndAwaitJob(this.analyticsContext);
4971
+ }
4972
+ },
4973
+ {
4974
+ key: "exportData",
4975
+ get: // MARK: Export Accessors
4976
+ /**
4977
+ * Configured pass-through for {@link zohoAnalyticsExportData}.
4978
+ *
4979
+ * Exports a view's data, resolving with the raw response.
4980
+ *
4981
+ * @returns Bound export data function.
4982
+ */ function get() {
4983
+ return zohoAnalyticsExportData(this.analyticsContext);
4984
+ }
4985
+ },
4986
+ {
4987
+ key: "createExportJob",
4988
+ get: /**
4989
+ * Configured pass-through for {@link zohoAnalyticsCreateExportJob}.
4990
+ *
4991
+ * Queues an asynchronous export of a view.
4992
+ *
4993
+ * @returns Bound create export job function.
4994
+ */ function get() {
4995
+ return zohoAnalyticsCreateExportJob(this.analyticsContext);
4996
+ }
4997
+ },
4998
+ {
4999
+ key: "createExportJobForSqlQuery",
5000
+ get: /**
5001
+ * Configured pass-through for {@link zohoAnalyticsCreateExportJobForSqlQuery}.
5002
+ *
5003
+ * Queues an asynchronous export of a SQL query's results.
5004
+ *
5005
+ * @returns Bound create export job for SQL query function.
5006
+ */ function get() {
5007
+ return zohoAnalyticsCreateExportJobForSqlQuery(this.analyticsContext);
5008
+ }
5009
+ },
5010
+ {
5011
+ key: "getExportJob",
5012
+ get: /**
5013
+ * Configured pass-through for {@link zohoAnalyticsGetExportJob}.
5014
+ *
5015
+ * Retrieves an export job's status.
5016
+ *
5017
+ * @returns Bound get export job function.
5018
+ */ function get() {
5019
+ return zohoAnalyticsGetExportJob(this.analyticsContext);
5020
+ }
5021
+ },
5022
+ {
5023
+ key: "downloadExport",
5024
+ get: /**
5025
+ * Configured pass-through for {@link zohoAnalyticsDownloadExport}.
5026
+ *
5027
+ * Downloads the file produced by a completed export job.
5028
+ *
5029
+ * @returns Bound download export function.
5030
+ */ function get() {
5031
+ return zohoAnalyticsDownloadExport(this.analyticsContext);
5032
+ }
5033
+ },
5034
+ {
5035
+ key: "exportDataAndAwaitJob",
5036
+ get: /**
5037
+ * Configured pass-through for {@link zohoAnalyticsExportDataAndAwaitJob}.
5038
+ *
5039
+ * Queues an asynchronous export and polls until the job reaches a terminal state.
5040
+ *
5041
+ * @returns Bound export data and await job function.
5042
+ */ function get() {
5043
+ return zohoAnalyticsExportDataAndAwaitJob(this.analyticsContext);
5044
+ }
5045
+ },
5046
+ {
5047
+ key: "addRow",
5048
+ get: // MARK: Row Accessors
5049
+ /**
5050
+ * Configured pass-through for {@link zohoAnalyticsAddRow}.
5051
+ *
5052
+ * Adds a single row to a table. Prefer an import for bulk data.
5053
+ *
5054
+ * @returns Bound add row function.
5055
+ */ function get() {
5056
+ return zohoAnalyticsAddRow(this.analyticsContext);
5057
+ }
5058
+ },
5059
+ {
5060
+ key: "updateRows",
5061
+ get: /**
5062
+ * Configured pass-through for {@link zohoAnalyticsUpdateRows}.
5063
+ *
5064
+ * Updates rows matching a criteria expression.
5065
+ *
5066
+ * @returns Bound update rows function.
5067
+ */ function get() {
5068
+ return zohoAnalyticsUpdateRows(this.analyticsContext);
5069
+ }
5070
+ },
5071
+ {
5072
+ key: "deleteRows",
5073
+ get: /**
5074
+ * Configured pass-through for {@link zohoAnalyticsDeleteRows}.
5075
+ *
5076
+ * Deletes rows matching a criteria expression.
5077
+ *
5078
+ * @returns Bound delete rows function.
5079
+ */ function get() {
5080
+ return zohoAnalyticsDeleteRows(this.analyticsContext);
5081
+ }
5082
+ },
5083
+ {
5084
+ key: "deleteView",
5085
+ get: // MARK: Modeling Accessors
5086
+ /**
5087
+ * Configured pass-through for {@link zohoAnalyticsDeleteView}.
5088
+ *
5089
+ * Irreversibly deletes a table, query table, report or dashboard. Needs the
5090
+ * `ZohoAnalytics.modeling.delete` scope, which `modeling.create` does not imply.
5091
+ *
5092
+ * @returns Bound delete view function.
5093
+ */ function get() {
5094
+ return zohoAnalyticsDeleteView(this.analyticsContext);
5095
+ }
5096
+ },
5097
+ {
5098
+ key: "deleteWorkspace",
5099
+ get: /**
5100
+ * Configured pass-through for {@link zohoAnalyticsDeleteWorkspace}.
5101
+ *
5102
+ * Irreversibly deletes a workspace and every view inside it.
5103
+ *
5104
+ * @returns Bound delete workspace function.
5105
+ */ function get() {
5106
+ return zohoAnalyticsDeleteWorkspace(this.analyticsContext);
5107
+ }
5108
+ }
5109
+ ]);
5110
+ return ZohoAnalyticsApi;
5111
+ }();
5112
+ ZohoAnalyticsApi = __decorate([
5113
+ Injectable(),
5114
+ __param(0, Inject(ZohoAnalyticsServiceConfig)),
5115
+ __param(1, Inject(ZohoAccountsApi))
5116
+ ], ZohoAnalyticsApi);
5117
+
5118
+ function _array_like_to_array(arr, len) {
5119
+ if (len == null || len > arr.length) len = arr.length;
5120
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5121
+ return arr2;
5122
+ }
5123
+ function _array_without_holes(arr) {
5124
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
5125
+ }
5126
+ function _iterable_to_array(iter) {
5127
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
5128
+ }
5129
+ function _non_iterable_spread() {
5130
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5131
+ }
5132
+ function _to_consumable_array(arr) {
5133
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
5134
+ }
5135
+ function _unsupported_iterable_to_array(o, minLen) {
5136
+ if (!o) return;
5137
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
5138
+ var n = Object.prototype.toString.call(o).slice(8, -1);
5139
+ if (n === "Object" && o.constructor) n = o.constructor.name;
5140
+ if (n === "Map" || n === "Set") return Array.from(n);
5141
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
5142
+ }
5143
+ /**
5144
+ * Config key suffix for the Zoho Analytics organization ID.
5145
+ * Resolves to `ZOHO_ANALYTICS_ORG_ID` or `ZOHO_ORG_ID`.
5146
+ */ var ZOHO_ANALYTICS_ORG_ID_CONFIG_KEY = 'ORG_ID';
5147
+ // MARK: Provider Factories
5148
+ /**
5149
+ * Reads Zoho Analytics connection settings from the NestJS ConfigService
5150
+ * and returns a validated service config.
5151
+ *
5152
+ * Resolves the API URL via environment variables following the naming convention
5153
+ * `ZOHO_ANALYTICS_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
5154
+ * The organization ID is read from `ZOHO_ANALYTICS_ORG_ID` or `ZOHO_ORG_ID`.
5155
+ *
5156
+ * The organization ID is optional: without it only `getOrgs()` succeeds, which is how the id is
5157
+ * discovered in the first place.
5158
+ *
5159
+ * @param configService - NestJS config service populated with Zoho environment variables.
5160
+ * @returns Validated Zoho Analytics service configuration.
5161
+ * @throws {Error} If the API URL is missing.
5162
+ */ function zohoAnalyticsServiceConfigFactory(configService) {
5163
+ var getFromConfigService = zohoConfigServiceReaderFunction(ZOHO_ANALYTICS_SERVICE_NAME, configService);
5164
+ var config = {
5165
+ zohoAnalytics: {
5166
+ apiUrl: getFromConfigService(ZOHO_API_URL_CONFIG_KEY),
5167
+ orgId: getFromConfigService(ZOHO_ANALYTICS_ORG_ID_CONFIG_KEY)
5168
+ }
5169
+ };
5170
+ ZohoAnalyticsServiceConfig.assertValidConfig(config);
5171
+ return config;
5172
+ }
5173
+ /**
5174
+ * Reads Zoho Accounts (OAuth) settings scoped to the Analytics service from
5175
+ * the NestJS ConfigService and returns an accounts service config.
5176
+ *
5177
+ * @param configService - NestJS config service populated with Zoho OAuth environment variables.
5178
+ * @returns Zoho Accounts service config scoped to the Analytics service access token.
5179
+ */ function zohoAnalyticsAccountServiceConfigFactory(configService) {
5180
+ return zohoAccountsServiceConfigFromConfigService({
5181
+ configService: configService,
5182
+ serviceAccessTokenKey: ZOHO_ANALYTICS_SERVICE_NAME
5183
+ });
5184
+ }
5185
+ /**
5186
+ * Generates NestJS {@link ModuleMetadata} that wires up the full Zoho Analytics stack
5187
+ * (config, accounts, and API service) so consuming modules only need a single import.
5188
+ *
5189
+ * The generated module requires the following dependencies in order to initialize properly:
5190
+ * - `ZohoAccountsAccessTokenCacheService`
5191
+ *
5192
+ * Use the `dependencyModule` config option to import a module that exports those dependencies.
5193
+ *
5194
+ * The returned metadata registers {@link ZohoAnalyticsServiceConfig}, {@link ZohoAnalyticsApi},
5195
+ * {@link ZohoAccountsServiceConfig}, and {@link ZohoAccountsApi} as providers, and
5196
+ * exports {@link ZohoAnalyticsApi} by default. Additional imports, exports, and providers
5197
+ * from the config are merged in.
5198
+ *
5199
+ * @param config - Module configuration with optional dependency module and extra metadata.
5200
+ * @returns Complete NestJS module metadata ready to pass to `@Module()`
5201
+ */ function appZohoAnalyticsModuleMetadata(config) {
5202
+ var dependencyModule = config.dependencyModule, imports = config.imports, exports = config.exports, providers = config.providers;
5203
+ var dependencyModuleImport = dependencyModule ? [
5204
+ dependencyModule
5205
+ ] : [];
5206
+ return {
5207
+ imports: [
5208
+ ConfigModule
5209
+ ].concat(_to_consumable_array(dependencyModuleImport), _to_consumable_array(imports !== null && imports !== void 0 ? imports : [])),
5210
+ exports: [
5211
+ ZohoAnalyticsApi
5212
+ ].concat(_to_consumable_array(exports !== null && exports !== void 0 ? exports : [])),
5213
+ providers: [
5214
+ {
5215
+ provide: ZohoAnalyticsServiceConfig,
5216
+ inject: [
5217
+ ConfigService
5218
+ ],
5219
+ useFactory: zohoAnalyticsServiceConfigFactory
5220
+ },
5221
+ ZohoAnalyticsApi,
5222
+ // Accounts
5223
+ {
5224
+ provide: ZohoAccountsServiceConfig,
5225
+ inject: [
5226
+ ConfigService
5227
+ ],
5228
+ useFactory: zohoAnalyticsAccountServiceConfigFactory
5229
+ },
5230
+ ZohoAccountsApi
4632
5231
  ].concat(_to_consumable_array(providers !== null && providers !== void 0 ? providers : []))
4633
5232
  };
4634
5233
  }
4635
5234
 
4636
- export { DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH, ZOHO_ACCOUNTS_CLIENT_ID_CONFIG_KEY, ZOHO_ACCOUNTS_CLIENT_SECRET_CONFIG_KEY, ZOHO_ACCOUNTS_URL_CONFIG_KEY, ZOHO_API_URL_CONFIG_KEY, ZOHO_ORG_ID_CONFIG_KEY, ZOHO_SIGN_WEBHOOK_SECRET_TOKEN_ENV_VAR, ZOHO_SIGN_WEBHOOK_SIGNATURE_HEADER, ZohoAccountsAccessTokenCacheService, ZohoAccountsApi, ZohoAccountsOAuthApi, ZohoAccountsOAuthServiceConfig, ZohoAccountsServiceConfig, ZohoCrmApi, ZohoCrmServiceConfig, ZohoDeskApi, ZohoDeskServiceConfig, ZohoRecruitApi, ZohoRecruitServiceConfig, ZohoSignApi, ZohoSignServiceConfig, ZohoSignWebhookController, ZohoSignWebhookModule, ZohoSignWebhookService, ZohoSignWebhookServiceConfig, appZohoAccountsOAuthModuleMetadata, appZohoCrmModuleMetadata, appZohoDeskModuleMetadata, appZohoRecruitModuleMetadata, appZohoSignModuleMetadata, assertValidZohoConfig, fileZohoAccountsAccessTokenCacheService, logMergeZohoAccountsAccessTokenCacheServiceErrorFunction, memoryZohoAccountsAccessTokenCacheService, mergeZohoAccountsAccessTokenCacheServices, readZohoConfigFromConfigService, zohoAccountsOAuthServiceConfigFactory, zohoAccountsServiceConfigFromConfigService, zohoConfigServiceReaderFunction, zohoCrmAccountServiceConfigFactory, zohoCrmServiceConfigFactory, zohoDeskAccountServiceConfigFactory, zohoDeskServiceConfigFactory, zohoRecruitAccountServiceConfigFactory, zohoRecruitServiceConfigFactory, zohoSignAccountServiceConfigFactory, zohoSignEventHandlerConfigurerFactory, zohoSignEventHandlerFactory, zohoSignServiceConfigFactory, zohoSignWebhookEvent, zohoSignWebhookEventVerifier, zohoSignWebhookServiceConfigFactory };
5235
+ export { DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH, ZOHO_ACCOUNTS_CLIENT_ID_CONFIG_KEY, ZOHO_ACCOUNTS_CLIENT_SECRET_CONFIG_KEY, ZOHO_ACCOUNTS_URL_CONFIG_KEY, ZOHO_ANALYTICS_ORG_ID_CONFIG_KEY, ZOHO_API_URL_CONFIG_KEY, ZOHO_ORG_ID_CONFIG_KEY, ZOHO_SIGN_WEBHOOK_SECRET_TOKEN_ENV_VAR, ZOHO_SIGN_WEBHOOK_SIGNATURE_HEADER, ZohoAccountsAccessTokenCacheService, ZohoAccountsApi, ZohoAccountsOAuthApi, ZohoAccountsOAuthServiceConfig, ZohoAccountsServiceConfig, ZohoAnalyticsApi, ZohoAnalyticsServiceConfig, ZohoCrmApi, ZohoCrmServiceConfig, ZohoDeskApi, ZohoDeskServiceConfig, ZohoRecruitApi, ZohoRecruitServiceConfig, ZohoSignApi, ZohoSignServiceConfig, ZohoSignWebhookController, ZohoSignWebhookModule, ZohoSignWebhookService, ZohoSignWebhookServiceConfig, appZohoAccountsOAuthModuleMetadata, appZohoAnalyticsModuleMetadata, appZohoCrmModuleMetadata, appZohoDeskModuleMetadata, appZohoRecruitModuleMetadata, appZohoSignModuleMetadata, assertValidZohoConfig, fileZohoAccountsAccessTokenCacheService, logMergeZohoAccountsAccessTokenCacheServiceErrorFunction, memoryZohoAccountsAccessTokenCacheService, mergeZohoAccountsAccessTokenCacheServices, readZohoConfigFromConfigService, zohoAccountsOAuthServiceConfigFactory, zohoAccountsServiceConfigFromConfigService, zohoAnalyticsAccountServiceConfigFactory, zohoAnalyticsServiceConfigFactory, zohoConfigServiceReaderFunction, zohoCrmAccountServiceConfigFactory, zohoCrmServiceConfigFactory, zohoDeskAccountServiceConfigFactory, zohoDeskServiceConfigFactory, zohoRecruitAccountServiceConfigFactory, zohoRecruitServiceConfigFactory, zohoSignAccountServiceConfigFactory, zohoSignEventHandlerConfigurerFactory, zohoSignEventHandlerFactory, zohoSignServiceConfigFactory, zohoSignWebhookEvent, zohoSignWebhookEventVerifier, zohoSignWebhookServiceConfigFactory };