@dereekb/zoho 13.11.14 → 13.11.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.js +5 -5
- package/cli/package.json +7 -7
- package/index.cjs.js +569 -503
- package/index.esm.js +569 -503
- package/nestjs/index.cjs.js +248 -255
- package/nestjs/index.esm.js +248 -255
- package/nestjs/package.json +5 -5
- package/nestjs/src/lib/accounts/accounts.config.d.ts +1 -1
- package/nestjs/src/lib/accounts/accounts.service.d.ts +11 -11
- package/nestjs/src/lib/crm/crm.api.d.ts +31 -31
- package/nestjs/src/lib/crm/crm.config.d.ts +1 -1
- package/nestjs/src/lib/crm/crm.module.d.ts +12 -13
- package/nestjs/src/lib/desk/desk.api.d.ts +48 -48
- package/nestjs/src/lib/desk/desk.config.d.ts +2 -1
- package/nestjs/src/lib/desk/desk.module.d.ts +6 -6
- package/nestjs/src/lib/recruit/recruit.api.d.ts +35 -35
- package/nestjs/src/lib/recruit/recruit.config.d.ts +1 -1
- package/nestjs/src/lib/recruit/recruit.module.d.ts +12 -13
- package/nestjs/src/lib/sign/sign.api.d.ts +16 -16
- package/nestjs/src/lib/sign/sign.module.d.ts +12 -13
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.d.ts +2 -2
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.module.d.ts +3 -3
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.verify.d.ts +2 -2
- package/nestjs/src/lib/zoho.config.d.ts +2 -1
- package/package.json +8 -8
- package/src/lib/accounts/accounts.api.d.ts +10 -10
- package/src/lib/accounts/accounts.config.d.ts +2 -2
- package/src/lib/accounts/accounts.d.ts +3 -2
- package/src/lib/accounts/accounts.error.api.d.ts +5 -5
- package/src/lib/accounts/accounts.factory.d.ts +8 -6
- package/src/lib/crm/crm.api.d.ts +87 -81
- package/src/lib/crm/crm.api.notes.d.ts +11 -10
- package/src/lib/crm/crm.api.tags.d.ts +16 -14
- package/src/lib/crm/crm.config.d.ts +2 -2
- package/src/lib/crm/crm.d.ts +2 -2
- package/src/lib/crm/crm.error.api.d.ts +10 -10
- package/src/lib/crm/crm.factory.d.ts +3 -2
- package/src/lib/crm/crm.notes.d.ts +2 -2
- package/src/lib/desk/desk.agent.d.ts +2 -2
- package/src/lib/desk/desk.api.activities.d.ts +5 -4
- package/src/lib/desk/desk.api.agents.d.ts +11 -10
- package/src/lib/desk/desk.api.attachments.d.ts +4 -4
- package/src/lib/desk/desk.api.comments.d.ts +8 -8
- package/src/lib/desk/desk.api.contacts.d.ts +9 -8
- package/src/lib/desk/desk.api.departments.d.ts +4 -4
- package/src/lib/desk/desk.api.followers.d.ts +6 -6
- package/src/lib/desk/desk.api.page.d.ts +6 -5
- package/src/lib/desk/desk.api.tags.d.ts +10 -10
- package/src/lib/desk/desk.api.threads.d.ts +7 -6
- package/src/lib/desk/desk.api.tickets.d.ts +23 -21
- package/src/lib/desk/desk.api.time.d.ts +10 -10
- package/src/lib/desk/desk.config.d.ts +2 -2
- package/src/lib/desk/desk.error.api.d.ts +5 -5
- package/src/lib/desk/desk.factory.d.ts +3 -2
- package/src/lib/desk/desk.limit.d.ts +3 -3
- package/src/lib/desk/desk.ticket.d.ts +4 -4
- package/src/lib/recruit/recruit.api.candidates.d.ts +15 -13
- package/src/lib/recruit/recruit.api.d.ts +85 -80
- package/src/lib/recruit/recruit.api.notes.d.ts +11 -10
- package/src/lib/recruit/recruit.api.tags.d.ts +19 -18
- package/src/lib/recruit/recruit.config.d.ts +2 -2
- package/src/lib/recruit/recruit.d.ts +2 -2
- package/src/lib/recruit/recruit.error.api.d.ts +10 -10
- package/src/lib/recruit/recruit.factory.d.ts +3 -2
- package/src/lib/recruit/recruit.notes.d.ts +2 -2
- package/src/lib/shared/criteria.d.ts +5 -5
- package/src/lib/shared/criteria.util.d.ts +2 -2
- package/src/lib/sign/sign.api.d.ts +47 -46
- package/src/lib/sign/sign.api.page.d.ts +6 -5
- package/src/lib/sign/sign.config.d.ts +2 -2
- package/src/lib/sign/sign.d.ts +4 -4
- package/src/lib/sign/sign.error.api.d.ts +5 -5
- package/src/lib/sign/sign.factory.d.ts +3 -2
- package/src/lib/zoho.api.page.d.ts +5 -4
- package/src/lib/zoho.error.api.d.ts +17 -14
- package/src/lib/zoho.limit.d.ts +6 -5
- package/src/lib/zoho.type.d.ts +1 -1
package/nestjs/index.cjs.js
CHANGED
|
@@ -73,7 +73,8 @@ function readZohoConfigFromConfigService(configOrService, servicePrefix) {
|
|
|
73
73
|
/**
|
|
74
74
|
* Asserts that the provided ZohoConfig has a valid API URL configured.
|
|
75
75
|
*
|
|
76
|
-
* @param config -
|
|
76
|
+
* @param config - The Zoho config to validate.
|
|
77
|
+
* @throws {Error} When `config.apiUrl` is missing.
|
|
77
78
|
*/ function assertValidZohoConfig(config) {
|
|
78
79
|
if (!config.apiUrl) {
|
|
79
80
|
throw new Error("No Zoho API url or type specified.");
|
|
@@ -165,7 +166,7 @@ function _define_property$e(obj, key, value) {
|
|
|
165
166
|
* @param input - The {@link ZohoAccountsServiceConfigFromConfigServiceInput} containing the
|
|
166
167
|
* `ConfigService` and the `serviceAccessTokenKey` for the target Zoho service.
|
|
167
168
|
* @returns A validated {@link ZohoAccountsServiceConfig} ready for use with `ZohoAccountsApi`.
|
|
168
|
-
* @throws If any required credential (apiUrl, refreshToken, clientId) is missing.
|
|
169
|
+
* @throws {Error} If any required credential (apiUrl, refreshToken, clientId) is missing.
|
|
169
170
|
*/ function zohoAccountsServiceConfigFromConfigService(input) {
|
|
170
171
|
var serviceAccessTokenKey = input.serviceAccessTokenKey;
|
|
171
172
|
var getFromConfigService = zohoConfigServiceReaderFunction(input);
|
|
@@ -486,7 +487,7 @@ function updateZohoCacheCapturingError(cache, accessToken) {
|
|
|
486
487
|
/**
|
|
487
488
|
* Default error logging function for merged Zoho access token cache services.
|
|
488
489
|
*
|
|
489
|
-
* @param failedUpdates -
|
|
490
|
+
* @param failedUpdates - Array of cache/error tuples that failed during update.
|
|
490
491
|
*/ function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates) {
|
|
491
492
|
console.warn("mergeZohoAccountsAccessTokenCacheServices(): failed updating ".concat(failedUpdates.length, " caches."));
|
|
492
493
|
failedUpdates.forEach(function(param, i) {
|
|
@@ -506,10 +507,10 @@ function updateZohoCacheCapturingError(cache, accessToken) {
|
|
|
506
507
|
* never short-circuits the lookup. Updates and clears run across all services in parallel
|
|
507
508
|
* via `Promise.allSettled`, mirroring the previous behavior, with optional error logging.
|
|
508
509
|
*
|
|
509
|
-
* @param
|
|
510
|
-
* @param
|
|
511
|
-
* @
|
|
512
|
-
* @
|
|
510
|
+
* @param inputServicesToMerge - Cache services to merge in priority order. Must include at least one service.
|
|
511
|
+
* @param logError - Optional error logging toggle or custom logging function.
|
|
512
|
+
* @returns A merged ZohoAccountsAccessTokenCacheService that delegates across all inputs.
|
|
513
|
+
* @throws {Error} When `inputServicesToMerge` is empty.
|
|
513
514
|
*/ function mergeZohoAccountsAccessTokenCacheServices(inputServicesToMerge, logError) {
|
|
514
515
|
var services = _to_consumable_array$4(inputServicesToMerge);
|
|
515
516
|
var logErrorFunction = typeof logError === 'function' ? logError : logError !== false ? logMergeZohoAccountsAccessTokenCacheServiceErrorFunction : undefined;
|
|
@@ -589,9 +590,9 @@ function updateZohoCacheCapturingError(cache, accessToken) {
|
|
|
589
590
|
* Backed by {@link inMemoryAsyncKeyedValueCache} so all per-service caches share the
|
|
590
591
|
* same record instance.
|
|
591
592
|
*
|
|
592
|
-
* @param existingCache -
|
|
593
|
-
* @param logAccessToConsole -
|
|
594
|
-
* @returns
|
|
593
|
+
* @param existingCache - Optional pre-populated token cache record to use as initial state.
|
|
594
|
+
* @param logAccessToConsole - Whether to log cache reads and writes to the console.
|
|
595
|
+
* @returns A ZohoAccountsAccessTokenCacheService backed by in-memory storage.
|
|
595
596
|
*/ function memoryZohoAccountsAccessTokenCacheService(existingCache, logAccessToConsole) {
|
|
596
597
|
var initialEntries = {};
|
|
597
598
|
if (existingCache != null) {
|
|
@@ -708,18 +709,21 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
708
709
|
* Reviver applied to each cached token entry on load so `expiresAt` is always a `Date`
|
|
709
710
|
* regardless of how it was serialized.
|
|
710
711
|
*
|
|
711
|
-
* @param raw -
|
|
712
|
-
* @returns
|
|
712
|
+
* @param raw - The raw value loaded from storage; expected to be an object shaped like a ZohoAccessToken with a serialized `expiresAt`
|
|
713
|
+
* @returns The parsed ZohoAccessToken with `expiresAt` coerced to a Date, or undefined when the input is not an object.
|
|
713
714
|
*/ function reviveZohoAccessToken(raw) {
|
|
715
|
+
var result;
|
|
714
716
|
if (raw == null || (typeof raw === "undefined" ? "undefined" : _type_of(raw)) !== 'object') {
|
|
715
|
-
|
|
717
|
+
result = undefined;
|
|
718
|
+
} else {
|
|
719
|
+
var value = raw;
|
|
720
|
+
var rawExpiresAt = value.expiresAt;
|
|
721
|
+
var expiresAt = rawExpiresAt != null && !_instanceof(rawExpiresAt, Date) ? new Date(rawExpiresAt) : rawExpiresAt;
|
|
722
|
+
result = _object_spread_props$5(_object_spread$6({}, value), {
|
|
723
|
+
expiresAt: expiresAt
|
|
724
|
+
});
|
|
716
725
|
}
|
|
717
|
-
|
|
718
|
-
var rawExpiresAt = value.expiresAt;
|
|
719
|
-
var expiresAt = rawExpiresAt != null && !_instanceof(rawExpiresAt, Date) ? new Date(rawExpiresAt) : rawExpiresAt;
|
|
720
|
-
return _object_spread_props$5(_object_spread$6({}, value), {
|
|
721
|
-
expiresAt: expiresAt
|
|
722
|
-
});
|
|
726
|
+
return result;
|
|
723
727
|
}
|
|
724
728
|
/**
|
|
725
729
|
* Creates a ZohoAccountsAccessTokenCacheService that reads and writes the access token to the file system.
|
|
@@ -729,9 +733,9 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
729
733
|
*
|
|
730
734
|
* Useful for testing.
|
|
731
735
|
*
|
|
732
|
-
* @param filename -
|
|
733
|
-
* @param useMemoryCache -
|
|
734
|
-
* @returns
|
|
736
|
+
* @param filename - Path to the JSON file used for token persistence.
|
|
737
|
+
* @param useMemoryCache - Whether to also cache tokens in memory for faster reads.
|
|
738
|
+
* @returns A FileSystemZohoAccountsAccessTokenCacheService backed by file storage.
|
|
735
739
|
*/ function fileZohoAccountsAccessTokenCacheService() {
|
|
736
740
|
var filename = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH, useMemoryCache = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
737
741
|
var fileCache = nestjs.createJsonFileAsyncKeyedValueCache({
|
|
@@ -822,7 +826,7 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
822
826
|
}
|
|
823
827
|
function readTokenFile() {
|
|
824
828
|
return _async_to_generator$3(function() {
|
|
825
|
-
var raw, result, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key;
|
|
829
|
+
var raw, result, revived, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key;
|
|
826
830
|
return _ts_generator$3(this, function(_state) {
|
|
827
831
|
switch(_state.label){
|
|
828
832
|
case 0:
|
|
@@ -833,31 +837,30 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
833
837
|
case 1:
|
|
834
838
|
raw = _state.sent();
|
|
835
839
|
if (raw == null) {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
result = {};
|
|
842
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
843
|
-
try {
|
|
844
|
-
for(_iterator = Object.keys(raw)[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
845
|
-
key = _step.value;
|
|
846
|
-
result[key] = reviveZohoAccessToken(raw[key]);
|
|
847
|
-
}
|
|
848
|
-
} catch (err) {
|
|
849
|
-
_didIteratorError = true;
|
|
850
|
-
_iteratorError = err;
|
|
851
|
-
} finally{
|
|
840
|
+
result = undefined;
|
|
841
|
+
} else {
|
|
842
|
+
revived = {};
|
|
843
|
+
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
852
844
|
try {
|
|
853
|
-
|
|
854
|
-
|
|
845
|
+
for(_iterator = Object.keys(raw)[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
846
|
+
key = _step.value;
|
|
847
|
+
revived[key] = reviveZohoAccessToken(raw[key]);
|
|
855
848
|
}
|
|
849
|
+
} catch (err) {
|
|
850
|
+
_didIteratorError = true;
|
|
851
|
+
_iteratorError = err;
|
|
856
852
|
} finally{
|
|
857
|
-
|
|
858
|
-
|
|
853
|
+
try {
|
|
854
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
855
|
+
_iterator.return();
|
|
856
|
+
}
|
|
857
|
+
} finally{
|
|
858
|
+
if (_didIteratorError) {
|
|
859
|
+
throw _iteratorError;
|
|
860
|
+
}
|
|
859
861
|
}
|
|
860
862
|
}
|
|
863
|
+
result = revived;
|
|
861
864
|
}
|
|
862
865
|
return [
|
|
863
866
|
2,
|
|
@@ -1112,7 +1115,7 @@ function _define_property$b(obj, key, value) {
|
|
|
1112
1115
|
value: /**
|
|
1113
1116
|
* Validates that the required Zoho CRM connection fields are present and well-formed.
|
|
1114
1117
|
*
|
|
1115
|
-
* @param config -
|
|
1118
|
+
* @param config - The CRM service config to validate.
|
|
1116
1119
|
*/ function assertValidConfig(config) {
|
|
1117
1120
|
assertValidZohoConfig(config.zohoCrm);
|
|
1118
1121
|
}
|
|
@@ -1212,7 +1215,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1212
1215
|
get: /**
|
|
1213
1216
|
* The authenticated CRM context used by all operation accessors.
|
|
1214
1217
|
*
|
|
1215
|
-
* @returns
|
|
1218
|
+
* @returns The CRM context from the underlying client.
|
|
1216
1219
|
*/ function get() {
|
|
1217
1220
|
return this.zohoCrm.crmContext;
|
|
1218
1221
|
}
|
|
@@ -1222,7 +1225,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1222
1225
|
get: /**
|
|
1223
1226
|
* Rate limiter shared across all CRM requests to respect Zoho API quotas.
|
|
1224
1227
|
*
|
|
1225
|
-
* @returns
|
|
1228
|
+
* @returns The shared rate limiter instance.
|
|
1226
1229
|
*/ function get() {
|
|
1227
1230
|
return this.zohoCrm.crmContext.zohoRateLimiter;
|
|
1228
1231
|
}
|
|
@@ -1233,7 +1236,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1233
1236
|
/**
|
|
1234
1237
|
* Configured pass-through for {@link zohoCrmInsertRecord}.
|
|
1235
1238
|
*
|
|
1236
|
-
* @returns
|
|
1239
|
+
* @returns Bound insert record function.
|
|
1237
1240
|
*/ function get() {
|
|
1238
1241
|
return zoho.zohoCrmInsertRecord(this.crmContext);
|
|
1239
1242
|
}
|
|
@@ -1243,7 +1246,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1243
1246
|
get: /**
|
|
1244
1247
|
* Configured pass-through for {@link zohoCrmUpsertRecord}.
|
|
1245
1248
|
*
|
|
1246
|
-
* @returns
|
|
1249
|
+
* @returns Bound upsert record function.
|
|
1247
1250
|
*/ function get() {
|
|
1248
1251
|
return zoho.zohoCrmUpsertRecord(this.crmContext);
|
|
1249
1252
|
}
|
|
@@ -1253,7 +1256,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1253
1256
|
get: /**
|
|
1254
1257
|
* Configured pass-through for {@link zohoCrmUpdateRecord}.
|
|
1255
1258
|
*
|
|
1256
|
-
* @returns
|
|
1259
|
+
* @returns Bound update record function.
|
|
1257
1260
|
*/ function get() {
|
|
1258
1261
|
return zoho.zohoCrmUpdateRecord(this.crmContext);
|
|
1259
1262
|
}
|
|
@@ -1263,7 +1266,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1263
1266
|
get: /**
|
|
1264
1267
|
* Configured pass-through for {@link zohoCrmDeleteRecord}.
|
|
1265
1268
|
*
|
|
1266
|
-
* @returns
|
|
1269
|
+
* @returns Bound delete record function.
|
|
1267
1270
|
*/ function get() {
|
|
1268
1271
|
return zoho.zohoCrmDeleteRecord(this.crmContext);
|
|
1269
1272
|
}
|
|
@@ -1273,7 +1276,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1273
1276
|
get: /**
|
|
1274
1277
|
* Configured pass-through for {@link zohoCrmGetRecordById}.
|
|
1275
1278
|
*
|
|
1276
|
-
* @returns
|
|
1279
|
+
* @returns Bound get record by ID function.
|
|
1277
1280
|
*/ function get() {
|
|
1278
1281
|
return zoho.zohoCrmGetRecordById(this.crmContext);
|
|
1279
1282
|
}
|
|
@@ -1283,7 +1286,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1283
1286
|
get: /**
|
|
1284
1287
|
* Configured pass-through for {@link zohoCrmGetRecords}.
|
|
1285
1288
|
*
|
|
1286
|
-
* @returns
|
|
1289
|
+
* @returns Bound get records function.
|
|
1287
1290
|
*/ function get() {
|
|
1288
1291
|
return zoho.zohoCrmGetRecords(this.crmContext);
|
|
1289
1292
|
}
|
|
@@ -1293,7 +1296,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1293
1296
|
get: /**
|
|
1294
1297
|
* Configured pass-through for {@link zohoCrmSearchRecords}.
|
|
1295
1298
|
*
|
|
1296
|
-
* @returns
|
|
1299
|
+
* @returns Bound search records function.
|
|
1297
1300
|
*/ function get() {
|
|
1298
1301
|
return zoho.zohoCrmSearchRecords(this.crmContext);
|
|
1299
1302
|
}
|
|
@@ -1303,7 +1306,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1303
1306
|
get: /**
|
|
1304
1307
|
* Configured pass-through for {@link zohoCrmSearchRecordsPageFactory}.
|
|
1305
1308
|
*
|
|
1306
|
-
* @returns
|
|
1309
|
+
* @returns Bound search records page factory function.
|
|
1307
1310
|
*/ function get() {
|
|
1308
1311
|
return zoho.zohoCrmSearchRecordsPageFactory(this.crmContext);
|
|
1309
1312
|
}
|
|
@@ -1313,7 +1316,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1313
1316
|
get: /**
|
|
1314
1317
|
* Configured pass-through for {@link zohoCrmGetRelatedRecordsFunctionFactory}.
|
|
1315
1318
|
*
|
|
1316
|
-
* @returns
|
|
1319
|
+
* @returns Bound get related records factory function.
|
|
1317
1320
|
*/ function get() {
|
|
1318
1321
|
return zoho.zohoCrmGetRelatedRecordsFunctionFactory(this.crmContext);
|
|
1319
1322
|
}
|
|
@@ -1323,7 +1326,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1323
1326
|
get: /**
|
|
1324
1327
|
* Configured pass-through for {@link zohoCrmGetEmailsForRecord}.
|
|
1325
1328
|
*
|
|
1326
|
-
* @returns
|
|
1329
|
+
* @returns Bound get emails for record function.
|
|
1327
1330
|
*/ function get() {
|
|
1328
1331
|
return zoho.zohoCrmGetEmailsForRecord(this.crmContext);
|
|
1329
1332
|
}
|
|
@@ -1333,7 +1336,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1333
1336
|
get: /**
|
|
1334
1337
|
* Configured pass-through for {@link zohoCrmGetEmailsForRecordPageFactory}.
|
|
1335
1338
|
*
|
|
1336
|
-
* @returns
|
|
1339
|
+
* @returns Bound get emails page factory function.
|
|
1337
1340
|
*/ function get() {
|
|
1338
1341
|
return zoho.zohoCrmGetEmailsForRecordPageFactory(this.crmContext);
|
|
1339
1342
|
}
|
|
@@ -1343,7 +1346,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1343
1346
|
get: /**
|
|
1344
1347
|
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecord}.
|
|
1345
1348
|
*
|
|
1346
|
-
* @returns
|
|
1349
|
+
* @returns Bound get attachments for record function.
|
|
1347
1350
|
*/ function get() {
|
|
1348
1351
|
return zoho.zohoCrmGetAttachmentsForRecord(this.crmContext);
|
|
1349
1352
|
}
|
|
@@ -1353,7 +1356,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1353
1356
|
get: /**
|
|
1354
1357
|
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecordPageFactory}.
|
|
1355
1358
|
*
|
|
1356
|
-
* @returns
|
|
1359
|
+
* @returns Bound get attachments page factory function.
|
|
1357
1360
|
*/ function get() {
|
|
1358
1361
|
return zoho.zohoCrmGetAttachmentsForRecordPageFactory(this.crmContext);
|
|
1359
1362
|
}
|
|
@@ -1363,7 +1366,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1363
1366
|
get: /**
|
|
1364
1367
|
* Configured pass-through for {@link zohoCrmUploadAttachmentForRecord}.
|
|
1365
1368
|
*
|
|
1366
|
-
* @returns
|
|
1369
|
+
* @returns Bound upload attachment function.
|
|
1367
1370
|
*/ function get() {
|
|
1368
1371
|
return zoho.zohoCrmUploadAttachmentForRecord(this.crmContext);
|
|
1369
1372
|
}
|
|
@@ -1373,7 +1376,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1373
1376
|
get: /**
|
|
1374
1377
|
* Configured pass-through for {@link zohoCrmDownloadAttachmentForRecord}.
|
|
1375
1378
|
*
|
|
1376
|
-
* @returns
|
|
1379
|
+
* @returns Bound download attachment function.
|
|
1377
1380
|
*/ function get() {
|
|
1378
1381
|
return zoho.zohoCrmDownloadAttachmentForRecord(this.crmContext);
|
|
1379
1382
|
}
|
|
@@ -1383,7 +1386,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1383
1386
|
get: /**
|
|
1384
1387
|
* Configured pass-through for {@link zohoCrmDeleteAttachmentFromRecord}.
|
|
1385
1388
|
*
|
|
1386
|
-
* @returns
|
|
1389
|
+
* @returns Bound delete attachment function.
|
|
1387
1390
|
*/ function get() {
|
|
1388
1391
|
return zoho.zohoCrmDeleteAttachmentFromRecord(this.crmContext);
|
|
1389
1392
|
}
|
|
@@ -1393,7 +1396,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1393
1396
|
get: /**
|
|
1394
1397
|
* Configured pass-through for {@link zohoCrmCreateNotes}.
|
|
1395
1398
|
*
|
|
1396
|
-
* @returns
|
|
1399
|
+
* @returns Bound create notes function.
|
|
1397
1400
|
*/ function get() {
|
|
1398
1401
|
return zoho.zohoCrmCreateNotes(this.crmContext);
|
|
1399
1402
|
}
|
|
@@ -1403,7 +1406,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1403
1406
|
get: /**
|
|
1404
1407
|
* Configured pass-through for {@link zohoCrmDeleteNotes}.
|
|
1405
1408
|
*
|
|
1406
|
-
* @returns
|
|
1409
|
+
* @returns Bound delete notes function.
|
|
1407
1410
|
*/ function get() {
|
|
1408
1411
|
return zoho.zohoCrmDeleteNotes(this.crmContext);
|
|
1409
1412
|
}
|
|
@@ -1413,7 +1416,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1413
1416
|
get: /**
|
|
1414
1417
|
* Configured pass-through for {@link zohoCrmCreateNotesForRecord}.
|
|
1415
1418
|
*
|
|
1416
|
-
* @returns
|
|
1419
|
+
* @returns Bound create notes for record function.
|
|
1417
1420
|
*/ function get() {
|
|
1418
1421
|
return zoho.zohoCrmCreateNotesForRecord(this.crmContext);
|
|
1419
1422
|
}
|
|
@@ -1423,7 +1426,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1423
1426
|
get: /**
|
|
1424
1427
|
* Configured pass-through for {@link zohoCrmGetNotesForRecord}.
|
|
1425
1428
|
*
|
|
1426
|
-
* @returns
|
|
1429
|
+
* @returns Bound get notes for record function.
|
|
1427
1430
|
*/ function get() {
|
|
1428
1431
|
return zoho.zohoCrmGetNotesForRecord(this.crmContext);
|
|
1429
1432
|
}
|
|
@@ -1433,7 +1436,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1433
1436
|
get: /**
|
|
1434
1437
|
* Configured pass-through for {@link zohoCrmGetNotesForRecordPageFactory}.
|
|
1435
1438
|
*
|
|
1436
|
-
* @returns
|
|
1439
|
+
* @returns Bound get notes page factory function.
|
|
1437
1440
|
*/ function get() {
|
|
1438
1441
|
return zoho.zohoCrmGetNotesForRecordPageFactory(this.crmContext);
|
|
1439
1442
|
}
|
|
@@ -1443,7 +1446,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1443
1446
|
get: /**
|
|
1444
1447
|
* Configured pass-through for {@link zohoCrmExecuteRestApiFunction}.
|
|
1445
1448
|
*
|
|
1446
|
-
* @returns
|
|
1449
|
+
* @returns Bound execute REST API function.
|
|
1447
1450
|
*/ function get() {
|
|
1448
1451
|
return zoho.zohoCrmExecuteRestApiFunction(this.crmContext);
|
|
1449
1452
|
}
|
|
@@ -1453,7 +1456,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1453
1456
|
get: /**
|
|
1454
1457
|
* Configured pass-through for {@link zohoCrmCreateTagsForModule}.
|
|
1455
1458
|
*
|
|
1456
|
-
* @returns
|
|
1459
|
+
* @returns Bound create tags for module function.
|
|
1457
1460
|
*/ function get() {
|
|
1458
1461
|
return zoho.zohoCrmCreateTagsForModule(this.crmContext);
|
|
1459
1462
|
}
|
|
@@ -1463,7 +1466,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1463
1466
|
get: /**
|
|
1464
1467
|
* Configured pass-through for {@link zohoCrmDeleteTag}.
|
|
1465
1468
|
*
|
|
1466
|
-
* @returns
|
|
1469
|
+
* @returns Bound delete tag function.
|
|
1467
1470
|
*/ function get() {
|
|
1468
1471
|
return zoho.zohoCrmDeleteTag(this.crmContext);
|
|
1469
1472
|
}
|
|
@@ -1473,7 +1476,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1473
1476
|
get: /**
|
|
1474
1477
|
* Configured pass-through for {@link zohoCrmGetTagsForModule}.
|
|
1475
1478
|
*
|
|
1476
|
-
* @returns
|
|
1479
|
+
* @returns Bound get tags for module function.
|
|
1477
1480
|
*/ function get() {
|
|
1478
1481
|
return zoho.zohoCrmGetTagsForModule(this.crmContext);
|
|
1479
1482
|
}
|
|
@@ -1483,7 +1486,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1483
1486
|
get: /**
|
|
1484
1487
|
* Configured pass-through for {@link zohoCrmAddTagsToRecords}.
|
|
1485
1488
|
*
|
|
1486
|
-
* @returns
|
|
1489
|
+
* @returns Bound add tags to records function.
|
|
1487
1490
|
*/ function get() {
|
|
1488
1491
|
return zoho.zohoCrmAddTagsToRecords(this.crmContext);
|
|
1489
1492
|
}
|
|
@@ -1493,7 +1496,7 @@ function _object_spread_props$4(target, source) {
|
|
|
1493
1496
|
get: /**
|
|
1494
1497
|
* Configured pass-through for {@link zohoCrmRemoveTagsFromRecords}.
|
|
1495
1498
|
*
|
|
1496
|
-
* @returns
|
|
1499
|
+
* @returns Bound remove tags from records function.
|
|
1497
1500
|
*/ function get() {
|
|
1498
1501
|
return zoho.zohoCrmRemoveTagsFromRecords(this.crmContext);
|
|
1499
1502
|
}
|
|
@@ -1540,9 +1543,9 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
1540
1543
|
* Resolves the API URL via environment variables following the naming convention
|
|
1541
1544
|
* `ZOHO_CRM_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
|
|
1542
1545
|
*
|
|
1543
|
-
* @param configService - NestJS config service populated with Zoho environment variables
|
|
1544
|
-
* @returns Validated Zoho CRM service configuration
|
|
1545
|
-
* @throws {Error} If required config values (e.g. API URL) are missing
|
|
1546
|
+
* @param configService - NestJS config service populated with Zoho environment variables.
|
|
1547
|
+
* @returns Validated Zoho CRM service configuration.
|
|
1548
|
+
* @throws {Error} If required config values (e.g. API URL) are missing.
|
|
1546
1549
|
*
|
|
1547
1550
|
* @example
|
|
1548
1551
|
* ```typescript
|
|
@@ -1566,8 +1569,8 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
1566
1569
|
* Reads Zoho Accounts (OAuth) settings scoped to the CRM service from
|
|
1567
1570
|
* the NestJS ConfigService and returns an accounts service config.
|
|
1568
1571
|
*
|
|
1569
|
-
* @param configService - NestJS config service populated with Zoho OAuth environment variables
|
|
1570
|
-
* @returns Zoho Accounts service config scoped to the CRM service access token
|
|
1572
|
+
* @param configService - NestJS config service populated with Zoho OAuth environment variables.
|
|
1573
|
+
* @returns Zoho Accounts service config scoped to the CRM service access token.
|
|
1571
1574
|
*
|
|
1572
1575
|
* @example
|
|
1573
1576
|
* ```typescript
|
|
@@ -1597,14 +1600,10 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
1597
1600
|
* exports {@link ZohoCrmApi} by default. Additional imports, exports, and providers
|
|
1598
1601
|
* from the config are merged in.
|
|
1599
1602
|
*
|
|
1600
|
-
* @param config - Module configuration with optional dependency module and extra metadata
|
|
1603
|
+
* @param config - Module configuration with optional dependency module and extra metadata.
|
|
1601
1604
|
* @returns Complete NestJS module metadata ready to pass to `@Module()`
|
|
1602
1605
|
*
|
|
1603
|
-
* @
|
|
1604
|
-
* ```typescript
|
|
1605
|
-
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
1606
|
-
*
|
|
1607
|
-
* @Module({
|
|
1606
|
+
* @Module ({
|
|
1608
1607
|
* providers: [
|
|
1609
1608
|
* {
|
|
1610
1609
|
* provide: ZohoAccountsAccessTokenCacheService,
|
|
@@ -1614,10 +1613,13 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
1614
1613
|
* exports: [ZohoAccountsAccessTokenCacheService]
|
|
1615
1614
|
* })
|
|
1616
1615
|
* export class ZohoCrmDependencyModule {}
|
|
1617
|
-
*
|
|
1618
|
-
* @Module(appZohoCrmModuleMetadata({ dependencyModule: ZohoCrmDependencyModule }))
|
|
1616
|
+
* @Module (appZohoCrmModuleMetadata({ dependencyModule: ZohoCrmDependencyModule }))
|
|
1619
1617
|
* export class AppZohoCrmModule {}
|
|
1620
1618
|
* ```
|
|
1619
|
+
*
|
|
1620
|
+
* @example
|
|
1621
|
+
* ```typescript
|
|
1622
|
+
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
1621
1623
|
*/ function appZohoCrmModuleMetadata(config$1) {
|
|
1622
1624
|
var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
|
|
1623
1625
|
var dependencyModuleImport = dependencyModule ? [
|
|
@@ -1704,7 +1706,7 @@ function _define_property$9(obj, key, value) {
|
|
|
1704
1706
|
value: /**
|
|
1705
1707
|
* Validates that the required Zoho Recruit connection fields are present and well-formed.
|
|
1706
1708
|
*
|
|
1707
|
-
* @param config -
|
|
1709
|
+
* @param config - The Recruit service config to validate.
|
|
1708
1710
|
*/ function assertValidConfig(config) {
|
|
1709
1711
|
assertValidZohoConfig(config.zohoRecruit);
|
|
1710
1712
|
}
|
|
@@ -1804,7 +1806,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1804
1806
|
get: /**
|
|
1805
1807
|
* The authenticated Recruit context used by all operation accessors.
|
|
1806
1808
|
*
|
|
1807
|
-
* @returns
|
|
1809
|
+
* @returns The Recruit context from the underlying client.
|
|
1808
1810
|
*/ function get() {
|
|
1809
1811
|
return this.zohoRecruit.recruitContext;
|
|
1810
1812
|
}
|
|
@@ -1814,7 +1816,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1814
1816
|
get: /**
|
|
1815
1817
|
* Rate limiter shared across all Recruit requests to respect Zoho API quotas.
|
|
1816
1818
|
*
|
|
1817
|
-
* @returns
|
|
1819
|
+
* @returns The shared rate limiter instance.
|
|
1818
1820
|
*/ function get() {
|
|
1819
1821
|
return this.zohoRecruit.recruitContext.zohoRateLimiter;
|
|
1820
1822
|
}
|
|
@@ -1825,7 +1827,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1825
1827
|
/**
|
|
1826
1828
|
* Configured pass-through for {@link zohoRecruitInsertRecord}.
|
|
1827
1829
|
*
|
|
1828
|
-
* @returns
|
|
1830
|
+
* @returns Bound insert record function.
|
|
1829
1831
|
*/ function get() {
|
|
1830
1832
|
return zoho.zohoRecruitInsertRecord(this.recruitContext);
|
|
1831
1833
|
}
|
|
@@ -1835,7 +1837,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1835
1837
|
get: /**
|
|
1836
1838
|
* Configured pass-through for {@link zohoRecruitUpsertRecord}.
|
|
1837
1839
|
*
|
|
1838
|
-
* @returns
|
|
1840
|
+
* @returns Bound upsert record function.
|
|
1839
1841
|
*/ function get() {
|
|
1840
1842
|
return zoho.zohoRecruitUpsertRecord(this.recruitContext);
|
|
1841
1843
|
}
|
|
@@ -1845,7 +1847,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1845
1847
|
get: /**
|
|
1846
1848
|
* Configured pass-through for {@link zohoRecruitUpdateRecord}.
|
|
1847
1849
|
*
|
|
1848
|
-
* @returns
|
|
1850
|
+
* @returns Bound update record function.
|
|
1849
1851
|
*/ function get() {
|
|
1850
1852
|
return zoho.zohoRecruitUpdateRecord(this.recruitContext);
|
|
1851
1853
|
}
|
|
@@ -1855,7 +1857,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1855
1857
|
get: /**
|
|
1856
1858
|
* Configured pass-through for {@link zohoRecruitDeleteRecord}.
|
|
1857
1859
|
*
|
|
1858
|
-
* @returns
|
|
1860
|
+
* @returns Bound delete record function.
|
|
1859
1861
|
*/ function get() {
|
|
1860
1862
|
return zoho.zohoRecruitDeleteRecord(this.recruitContext);
|
|
1861
1863
|
}
|
|
@@ -1865,7 +1867,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1865
1867
|
get: /**
|
|
1866
1868
|
* Configured pass-through for {@link zohoRecruitGetRecordById}.
|
|
1867
1869
|
*
|
|
1868
|
-
* @returns
|
|
1870
|
+
* @returns Bound get record by ID function.
|
|
1869
1871
|
*/ function get() {
|
|
1870
1872
|
return zoho.zohoRecruitGetRecordById(this.recruitContext);
|
|
1871
1873
|
}
|
|
@@ -1875,7 +1877,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1875
1877
|
get: /**
|
|
1876
1878
|
* Configured pass-through for {@link zohoRecruitGetRecords}.
|
|
1877
1879
|
*
|
|
1878
|
-
* @returns
|
|
1880
|
+
* @returns Bound get records function.
|
|
1879
1881
|
*/ function get() {
|
|
1880
1882
|
return zoho.zohoRecruitGetRecords(this.recruitContext);
|
|
1881
1883
|
}
|
|
@@ -1885,7 +1887,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1885
1887
|
get: /**
|
|
1886
1888
|
* Configured pass-through for {@link zohoRecruitSearchRecords}.
|
|
1887
1889
|
*
|
|
1888
|
-
* @returns
|
|
1890
|
+
* @returns Bound search records function.
|
|
1889
1891
|
*/ function get() {
|
|
1890
1892
|
return zoho.zohoRecruitSearchRecords(this.recruitContext);
|
|
1891
1893
|
}
|
|
@@ -1895,7 +1897,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1895
1897
|
get: /**
|
|
1896
1898
|
* Configured pass-through for {@link zohoRecruitSearchRecordsPageFactory}.
|
|
1897
1899
|
*
|
|
1898
|
-
* @returns
|
|
1900
|
+
* @returns Bound search records page factory function.
|
|
1899
1901
|
*/ function get() {
|
|
1900
1902
|
return zoho.zohoRecruitSearchRecordsPageFactory(this.recruitContext);
|
|
1901
1903
|
}
|
|
@@ -1905,7 +1907,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1905
1907
|
get: /**
|
|
1906
1908
|
* Configured pass-through for {@link zohoRecruitGetRelatedRecordsFunctionFactory}.
|
|
1907
1909
|
*
|
|
1908
|
-
* @returns
|
|
1910
|
+
* @returns Bound get related records factory function.
|
|
1909
1911
|
*/ function get() {
|
|
1910
1912
|
return zoho.zohoRecruitGetRelatedRecordsFunctionFactory(this.recruitContext);
|
|
1911
1913
|
}
|
|
@@ -1915,7 +1917,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1915
1917
|
get: /**
|
|
1916
1918
|
* Configured pass-through for {@link zohoRecruitGetEmailsForRecord}.
|
|
1917
1919
|
*
|
|
1918
|
-
* @returns
|
|
1920
|
+
* @returns Bound get emails for record function.
|
|
1919
1921
|
*/ function get() {
|
|
1920
1922
|
return zoho.zohoRecruitGetEmailsForRecord(this.recruitContext);
|
|
1921
1923
|
}
|
|
@@ -1925,7 +1927,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1925
1927
|
get: /**
|
|
1926
1928
|
* Configured pass-through for {@link zohoRecruitGetEmailsForRecordPageFactory}.
|
|
1927
1929
|
*
|
|
1928
|
-
* @returns
|
|
1930
|
+
* @returns Bound get emails page factory function.
|
|
1929
1931
|
*/ function get() {
|
|
1930
1932
|
return zoho.zohoRecruitGetEmailsForRecordPageFactory(this.recruitContext);
|
|
1931
1933
|
}
|
|
@@ -1935,7 +1937,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1935
1937
|
get: /**
|
|
1936
1938
|
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecord}.
|
|
1937
1939
|
*
|
|
1938
|
-
* @returns
|
|
1940
|
+
* @returns Bound get attachments for record function.
|
|
1939
1941
|
*/ function get() {
|
|
1940
1942
|
return zoho.zohoRecruitGetAttachmentsForRecord(this.recruitContext);
|
|
1941
1943
|
}
|
|
@@ -1945,7 +1947,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1945
1947
|
get: /**
|
|
1946
1948
|
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecordPageFactory}.
|
|
1947
1949
|
*
|
|
1948
|
-
* @returns
|
|
1950
|
+
* @returns Bound get attachments page factory function.
|
|
1949
1951
|
*/ function get() {
|
|
1950
1952
|
return zoho.zohoRecruitGetAttachmentsForRecordPageFactory(this.recruitContext);
|
|
1951
1953
|
}
|
|
@@ -1955,7 +1957,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1955
1957
|
get: /**
|
|
1956
1958
|
* Configured pass-through for {@link zohoRecruitUploadAttachmentForRecord}.
|
|
1957
1959
|
*
|
|
1958
|
-
* @returns
|
|
1960
|
+
* @returns Bound upload attachment function.
|
|
1959
1961
|
*/ function get() {
|
|
1960
1962
|
return zoho.zohoRecruitUploadAttachmentForRecord(this.recruitContext);
|
|
1961
1963
|
}
|
|
@@ -1965,7 +1967,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1965
1967
|
get: /**
|
|
1966
1968
|
* Configured pass-through for {@link zohoRecruitDownloadAttachmentForRecord}.
|
|
1967
1969
|
*
|
|
1968
|
-
* @returns
|
|
1970
|
+
* @returns Bound download attachment function.
|
|
1969
1971
|
*/ function get() {
|
|
1970
1972
|
return zoho.zohoRecruitDownloadAttachmentForRecord(this.recruitContext);
|
|
1971
1973
|
}
|
|
@@ -1975,7 +1977,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1975
1977
|
get: /**
|
|
1976
1978
|
* Configured pass-through for {@link zohoRecruitDeleteAttachmentFromRecord}.
|
|
1977
1979
|
*
|
|
1978
|
-
* @returns
|
|
1980
|
+
* @returns Bound delete attachment function.
|
|
1979
1981
|
*/ function get() {
|
|
1980
1982
|
return zoho.zohoRecruitDeleteAttachmentFromRecord(this.recruitContext);
|
|
1981
1983
|
}
|
|
@@ -1985,7 +1987,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1985
1987
|
get: /**
|
|
1986
1988
|
* Configured pass-through for {@link zohoRecruitCreateNotes}.
|
|
1987
1989
|
*
|
|
1988
|
-
* @returns
|
|
1990
|
+
* @returns Bound create notes function.
|
|
1989
1991
|
*/ function get() {
|
|
1990
1992
|
return zoho.zohoRecruitCreateNotes(this.recruitContext);
|
|
1991
1993
|
}
|
|
@@ -1995,7 +1997,7 @@ function _object_spread_props$3(target, source) {
|
|
|
1995
1997
|
get: /**
|
|
1996
1998
|
* Configured pass-through for {@link zohoRecruitDeleteNotes}.
|
|
1997
1999
|
*
|
|
1998
|
-
* @returns
|
|
2000
|
+
* @returns Bound delete notes function.
|
|
1999
2001
|
*/ function get() {
|
|
2000
2002
|
return zoho.zohoRecruitDeleteNotes(this.recruitContext);
|
|
2001
2003
|
}
|
|
@@ -2005,7 +2007,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2005
2007
|
get: /**
|
|
2006
2008
|
* Configured pass-through for {@link zohoRecruitCreateNotesForRecord}.
|
|
2007
2009
|
*
|
|
2008
|
-
* @returns
|
|
2010
|
+
* @returns Bound create notes for record function.
|
|
2009
2011
|
*/ function get() {
|
|
2010
2012
|
return zoho.zohoRecruitCreateNotesForRecord(this.recruitContext);
|
|
2011
2013
|
}
|
|
@@ -2015,7 +2017,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2015
2017
|
get: /**
|
|
2016
2018
|
* Configured pass-through for {@link zohoRecruitGetNotesForRecord}.
|
|
2017
2019
|
*
|
|
2018
|
-
* @returns
|
|
2020
|
+
* @returns Bound get notes for record function.
|
|
2019
2021
|
*/ function get() {
|
|
2020
2022
|
return zoho.zohoRecruitGetNotesForRecord(this.recruitContext);
|
|
2021
2023
|
}
|
|
@@ -2025,7 +2027,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2025
2027
|
get: /**
|
|
2026
2028
|
* Configured pass-through for {@link zohoRecruitGetNotesForRecordPageFactory}.
|
|
2027
2029
|
*
|
|
2028
|
-
* @returns
|
|
2030
|
+
* @returns Bound get notes page factory function.
|
|
2029
2031
|
*/ function get() {
|
|
2030
2032
|
return zoho.zohoRecruitGetNotesForRecordPageFactory(this.recruitContext);
|
|
2031
2033
|
}
|
|
@@ -2035,7 +2037,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2035
2037
|
get: /**
|
|
2036
2038
|
* Configured pass-through for {@link zohoRecruitExecuteRestApiFunction}.
|
|
2037
2039
|
*
|
|
2038
|
-
* @returns
|
|
2040
|
+
* @returns Bound execute REST API function.
|
|
2039
2041
|
*/ function get() {
|
|
2040
2042
|
return zoho.zohoRecruitExecuteRestApiFunction(this.recruitContext);
|
|
2041
2043
|
}
|
|
@@ -2045,7 +2047,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2045
2047
|
get: /**
|
|
2046
2048
|
* Configured pass-through for {@link zohoRecruitAssociateCandidateRecordsWithJobOpenings}.
|
|
2047
2049
|
*
|
|
2048
|
-
* @returns
|
|
2050
|
+
* @returns Bound associate candidates with job openings function.
|
|
2049
2051
|
*/ function get() {
|
|
2050
2052
|
return zoho.zohoRecruitAssociateCandidateRecordsWithJobOpenings(this.recruitContext);
|
|
2051
2053
|
}
|
|
@@ -2055,7 +2057,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2055
2057
|
get: /**
|
|
2056
2058
|
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecords}.
|
|
2057
2059
|
*
|
|
2058
|
-
* @returns
|
|
2060
|
+
* @returns Bound search candidate associated job openings function.
|
|
2059
2061
|
*/ function get() {
|
|
2060
2062
|
return zoho.zohoRecruitSearchCandidateAssociatedJobOpeningRecords(this.recruitContext);
|
|
2061
2063
|
}
|
|
@@ -2065,7 +2067,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2065
2067
|
get: /**
|
|
2066
2068
|
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory}.
|
|
2067
2069
|
*
|
|
2068
|
-
* @returns
|
|
2070
|
+
* @returns Bound search candidate job openings page factory function.
|
|
2069
2071
|
*/ function get() {
|
|
2070
2072
|
return zoho.zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory(this.recruitContext);
|
|
2071
2073
|
}
|
|
@@ -2075,7 +2077,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2075
2077
|
get: /**
|
|
2076
2078
|
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecords}.
|
|
2077
2079
|
*
|
|
2078
|
-
* @returns
|
|
2080
|
+
* @returns Bound search job opening associated candidates function.
|
|
2079
2081
|
*/ function get() {
|
|
2080
2082
|
return zoho.zohoRecruitSearchJobOpeningAssociatedCandidateRecords(this.recruitContext);
|
|
2081
2083
|
}
|
|
@@ -2085,7 +2087,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2085
2087
|
get: /**
|
|
2086
2088
|
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory}.
|
|
2087
2089
|
*
|
|
2088
|
-
* @returns
|
|
2090
|
+
* @returns Bound search job opening candidates page factory function.
|
|
2089
2091
|
*/ function get() {
|
|
2090
2092
|
return zoho.zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory(this.recruitContext);
|
|
2091
2093
|
}
|
|
@@ -2095,7 +2097,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2095
2097
|
get: /**
|
|
2096
2098
|
* Configured pass-through for {@link zohoRecruitCreateTagsForModule}.
|
|
2097
2099
|
*
|
|
2098
|
-
* @returns
|
|
2100
|
+
* @returns Bound create tags for module function.
|
|
2099
2101
|
*/ function get() {
|
|
2100
2102
|
return zoho.zohoRecruitCreateTagsForModule(this.recruitContext);
|
|
2101
2103
|
}
|
|
@@ -2105,7 +2107,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2105
2107
|
get: /**
|
|
2106
2108
|
* Configured pass-through for {@link zohoRecruitGetTagsForModule}.
|
|
2107
2109
|
*
|
|
2108
|
-
* @returns
|
|
2110
|
+
* @returns Bound get tags for module function.
|
|
2109
2111
|
*/ function get() {
|
|
2110
2112
|
return zoho.zohoRecruitGetTagsForModule(this.recruitContext);
|
|
2111
2113
|
}
|
|
@@ -2115,7 +2117,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2115
2117
|
get: /**
|
|
2116
2118
|
* Configured pass-through for {@link zohoRecruitAddTagsToRecords}.
|
|
2117
2119
|
*
|
|
2118
|
-
* @returns
|
|
2120
|
+
* @returns Bound add tags to records function.
|
|
2119
2121
|
*/ function get() {
|
|
2120
2122
|
return zoho.zohoRecruitAddTagsToRecords(this.recruitContext);
|
|
2121
2123
|
}
|
|
@@ -2125,7 +2127,7 @@ function _object_spread_props$3(target, source) {
|
|
|
2125
2127
|
get: /**
|
|
2126
2128
|
* Configured pass-through for {@link zohoRecruitRemoveTagsFromRecords}.
|
|
2127
2129
|
*
|
|
2128
|
-
* @returns
|
|
2130
|
+
* @returns Bound remove tags from records function.
|
|
2129
2131
|
*/ function get() {
|
|
2130
2132
|
return zoho.zohoRecruitRemoveTagsFromRecords(this.recruitContext);
|
|
2131
2133
|
}
|
|
@@ -2172,9 +2174,9 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
2172
2174
|
* Resolves the API URL via environment variables following the naming convention
|
|
2173
2175
|
* `ZOHO_RECRUIT_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
|
|
2174
2176
|
*
|
|
2175
|
-
* @param configService - NestJS config service populated with Zoho environment variables
|
|
2176
|
-
* @returns Validated Zoho Recruit service configuration
|
|
2177
|
-
* @throws {Error} If required config values (e.g. API URL) are missing
|
|
2177
|
+
* @param configService - NestJS config service populated with Zoho environment variables.
|
|
2178
|
+
* @returns Validated Zoho Recruit service configuration.
|
|
2179
|
+
* @throws {Error} If required config values (e.g. API URL) are missing.
|
|
2178
2180
|
*
|
|
2179
2181
|
* @example
|
|
2180
2182
|
* ```typescript
|
|
@@ -2198,8 +2200,8 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
2198
2200
|
* Reads Zoho Accounts (OAuth) settings scoped to the Recruit service from
|
|
2199
2201
|
* the NestJS ConfigService and returns an accounts service config.
|
|
2200
2202
|
*
|
|
2201
|
-
* @param configService - NestJS config service populated with Zoho OAuth environment variables
|
|
2202
|
-
* @returns Zoho Accounts service config scoped to the Recruit service access token
|
|
2203
|
+
* @param configService - NestJS config service populated with Zoho OAuth environment variables.
|
|
2204
|
+
* @returns Zoho Accounts service config scoped to the Recruit service access token.
|
|
2203
2205
|
*
|
|
2204
2206
|
* @example
|
|
2205
2207
|
* ```typescript
|
|
@@ -2229,14 +2231,10 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
2229
2231
|
* exports {@link ZohoRecruitApi} by default. Additional imports, exports, and providers
|
|
2230
2232
|
* from the config are merged in.
|
|
2231
2233
|
*
|
|
2232
|
-
* @param config - Module configuration with optional dependency module and extra metadata
|
|
2234
|
+
* @param config - Module configuration with optional dependency module and extra metadata.
|
|
2233
2235
|
* @returns Complete NestJS module metadata ready to pass to `@Module()`
|
|
2234
2236
|
*
|
|
2235
|
-
* @
|
|
2236
|
-
* ```typescript
|
|
2237
|
-
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
2238
|
-
*
|
|
2239
|
-
* @Module({
|
|
2237
|
+
* @Module ({
|
|
2240
2238
|
* providers: [
|
|
2241
2239
|
* {
|
|
2242
2240
|
* provide: ZohoAccountsAccessTokenCacheService,
|
|
@@ -2246,10 +2244,13 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
2246
2244
|
* exports: [ZohoAccountsAccessTokenCacheService]
|
|
2247
2245
|
* })
|
|
2248
2246
|
* export class ZohoRecruitDependencyModule {}
|
|
2249
|
-
*
|
|
2250
|
-
* @Module(appZohoRecruitModuleMetadata({ dependencyModule: ZohoRecruitDependencyModule }))
|
|
2247
|
+
* @Module (appZohoRecruitModuleMetadata({ dependencyModule: ZohoRecruitDependencyModule }))
|
|
2251
2248
|
* export class AppZohoRecruitModule {}
|
|
2252
2249
|
* ```
|
|
2250
|
+
*
|
|
2251
|
+
* @example
|
|
2252
|
+
* ```typescript
|
|
2253
|
+
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
2253
2254
|
*/ function appZohoRecruitModuleMetadata(config$1) {
|
|
2254
2255
|
var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
|
|
2255
2256
|
var dependencyModuleImport = dependencyModule ? [
|
|
@@ -2425,7 +2426,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2425
2426
|
get: /**
|
|
2426
2427
|
* The authenticated Sign context used by all operation accessors.
|
|
2427
2428
|
*
|
|
2428
|
-
* @returns
|
|
2429
|
+
* @returns The Sign context from the underlying client.
|
|
2429
2430
|
*/ function get() {
|
|
2430
2431
|
return this.zohoSign.signContext;
|
|
2431
2432
|
}
|
|
@@ -2435,7 +2436,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2435
2436
|
get: /**
|
|
2436
2437
|
* Rate limiter shared across all Sign requests to respect Zoho API quotas.
|
|
2437
2438
|
*
|
|
2438
|
-
* @returns
|
|
2439
|
+
* @returns The shared rate limiter instance.
|
|
2439
2440
|
*/ function get() {
|
|
2440
2441
|
return this.zohoSign.signContext.zohoRateLimiter;
|
|
2441
2442
|
}
|
|
@@ -2446,7 +2447,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2446
2447
|
/**
|
|
2447
2448
|
* Configured pass-through for {@link zohoSignGetDocument}.
|
|
2448
2449
|
*
|
|
2449
|
-
* @returns
|
|
2450
|
+
* @returns Bound get document function.
|
|
2450
2451
|
*/ function get() {
|
|
2451
2452
|
return zoho.zohoSignGetDocument(this.signContext);
|
|
2452
2453
|
}
|
|
@@ -2456,7 +2457,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2456
2457
|
get: /**
|
|
2457
2458
|
* Configured pass-through for {@link zohoSignGetDocuments}.
|
|
2458
2459
|
*
|
|
2459
|
-
* @returns
|
|
2460
|
+
* @returns Bound get documents function.
|
|
2460
2461
|
*/ function get() {
|
|
2461
2462
|
return zoho.zohoSignGetDocuments(this.signContext);
|
|
2462
2463
|
}
|
|
@@ -2466,7 +2467,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2466
2467
|
get: /**
|
|
2467
2468
|
* Configured pass-through for {@link zohoSignGetDocumentsPageFactory}.
|
|
2468
2469
|
*
|
|
2469
|
-
* @returns
|
|
2470
|
+
* @returns Bound get documents page factory function.
|
|
2470
2471
|
*/ function get() {
|
|
2471
2472
|
return zoho.zohoSignGetDocumentsPageFactory(this.signContext);
|
|
2472
2473
|
}
|
|
@@ -2476,7 +2477,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2476
2477
|
get: /**
|
|
2477
2478
|
* Configured pass-through for {@link zohoSignGetDocumentFormData}.
|
|
2478
2479
|
*
|
|
2479
|
-
* @returns
|
|
2480
|
+
* @returns Bound get document form data function.
|
|
2480
2481
|
*/ function get() {
|
|
2481
2482
|
return zoho.zohoSignGetDocumentFormData(this.signContext);
|
|
2482
2483
|
}
|
|
@@ -2486,7 +2487,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2486
2487
|
get: /**
|
|
2487
2488
|
* Configured pass-through for {@link zohoSignRetrieveFieldTypes}.
|
|
2488
2489
|
*
|
|
2489
|
-
* @returns
|
|
2490
|
+
* @returns Bound retrieve field types function.
|
|
2490
2491
|
*/ function get() {
|
|
2491
2492
|
return zoho.zohoSignRetrieveFieldTypes(this.signContext);
|
|
2492
2493
|
}
|
|
@@ -2496,7 +2497,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2496
2497
|
get: /**
|
|
2497
2498
|
* Configured pass-through for {@link zohoSignDownloadPdf}.
|
|
2498
2499
|
*
|
|
2499
|
-
* @returns
|
|
2500
|
+
* @returns Bound download PDF function.
|
|
2500
2501
|
*/ function get() {
|
|
2501
2502
|
return zoho.zohoSignDownloadPdf(this.signContext);
|
|
2502
2503
|
}
|
|
@@ -2506,7 +2507,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2506
2507
|
get: /**
|
|
2507
2508
|
* Configured pass-through for {@link zohoSignDownloadCompletionCertificate}.
|
|
2508
2509
|
*
|
|
2509
|
-
* @returns
|
|
2510
|
+
* @returns Bound download completion certificate function.
|
|
2510
2511
|
*/ function get() {
|
|
2511
2512
|
return zoho.zohoSignDownloadCompletionCertificate(this.signContext);
|
|
2512
2513
|
}
|
|
@@ -2516,7 +2517,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2516
2517
|
get: /**
|
|
2517
2518
|
* Configured pass-through for {@link zohoSignCreateDocument}.
|
|
2518
2519
|
*
|
|
2519
|
-
* @returns
|
|
2520
|
+
* @returns Bound create document function.
|
|
2520
2521
|
*/ function get() {
|
|
2521
2522
|
return zoho.zohoSignCreateDocument(this.signContext);
|
|
2522
2523
|
}
|
|
@@ -2526,7 +2527,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2526
2527
|
get: /**
|
|
2527
2528
|
* Configured pass-through for {@link zohoSignUpdateDocument}.
|
|
2528
2529
|
*
|
|
2529
|
-
* @returns
|
|
2530
|
+
* @returns Bound update document function.
|
|
2530
2531
|
*/ function get() {
|
|
2531
2532
|
return zoho.zohoSignUpdateDocument(this.signContext);
|
|
2532
2533
|
}
|
|
@@ -2536,7 +2537,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2536
2537
|
get: /**
|
|
2537
2538
|
* Configured pass-through for {@link zohoSignSendDocumentForSignature}.
|
|
2538
2539
|
*
|
|
2539
|
-
* @returns
|
|
2540
|
+
* @returns Bound send document for signature function.
|
|
2540
2541
|
*/ function get() {
|
|
2541
2542
|
return zoho.zohoSignSendDocumentForSignature(this.signContext);
|
|
2542
2543
|
}
|
|
@@ -2546,7 +2547,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2546
2547
|
get: /**
|
|
2547
2548
|
* Configured pass-through for {@link zohoSignExtendDocument}.
|
|
2548
2549
|
*
|
|
2549
|
-
* @returns
|
|
2550
|
+
* @returns Bound extend document function.
|
|
2550
2551
|
*/ function get() {
|
|
2551
2552
|
return zoho.zohoSignExtendDocument(this.signContext);
|
|
2552
2553
|
}
|
|
@@ -2556,7 +2557,7 @@ function _object_spread_props$2(target, source) {
|
|
|
2556
2557
|
get: /**
|
|
2557
2558
|
* Configured pass-through for {@link zohoSignDeleteDocument}.
|
|
2558
2559
|
*
|
|
2559
|
-
* @returns
|
|
2560
|
+
* @returns Bound delete document function.
|
|
2560
2561
|
*/ function get() {
|
|
2561
2562
|
return zoho.zohoSignDeleteDocument(this.signContext);
|
|
2562
2563
|
}
|
|
@@ -2603,9 +2604,9 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2603
2604
|
* Resolves the API URL via environment variables following the naming convention
|
|
2604
2605
|
* `ZOHO_SIGN_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
|
|
2605
2606
|
*
|
|
2606
|
-
* @param configService - NestJS config service populated with Zoho environment variables
|
|
2607
|
-
* @returns Validated Zoho Sign service configuration
|
|
2608
|
-
* @throws {Error} If required config values (e.g. API URL) are missing
|
|
2607
|
+
* @param configService - NestJS config service populated with Zoho environment variables.
|
|
2608
|
+
* @returns Validated Zoho Sign service configuration.
|
|
2609
|
+
* @throws {Error} If required config values (e.g. API URL) are missing.
|
|
2609
2610
|
*
|
|
2610
2611
|
* @example
|
|
2611
2612
|
* ```typescript
|
|
@@ -2630,8 +2631,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2630
2631
|
* Reads Zoho Accounts (OAuth) settings scoped to the Sign service from
|
|
2631
2632
|
* the NestJS ConfigService and returns an accounts service config.
|
|
2632
2633
|
*
|
|
2633
|
-
* @param configService - NestJS config service populated with Zoho OAuth environment variables
|
|
2634
|
-
* @returns Zoho Accounts service config scoped to the Sign service access token
|
|
2634
|
+
* @param configService - NestJS config service populated with Zoho OAuth environment variables.
|
|
2635
|
+
* @returns Zoho Accounts service config scoped to the Sign service access token.
|
|
2635
2636
|
*
|
|
2636
2637
|
* @example
|
|
2637
2638
|
* ```typescript
|
|
@@ -2661,14 +2662,10 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2661
2662
|
* exports {@link ZohoSignApi} by default. Additional imports, exports, and providers
|
|
2662
2663
|
* from the config are merged in.
|
|
2663
2664
|
*
|
|
2664
|
-
* @param config - Module configuration with optional dependency module and extra metadata
|
|
2665
|
+
* @param config - Module configuration with optional dependency module and extra metadata.
|
|
2665
2666
|
* @returns Complete NestJS module metadata ready to pass to `@Module()`
|
|
2666
2667
|
*
|
|
2667
|
-
* @
|
|
2668
|
-
* ```typescript
|
|
2669
|
-
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
2670
|
-
*
|
|
2671
|
-
* @Module({
|
|
2668
|
+
* @Module ({
|
|
2672
2669
|
* providers: [
|
|
2673
2670
|
* {
|
|
2674
2671
|
* provide: ZohoAccountsAccessTokenCacheService,
|
|
@@ -2678,10 +2675,13 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
2678
2675
|
* exports: [ZohoAccountsAccessTokenCacheService]
|
|
2679
2676
|
* })
|
|
2680
2677
|
* export class ZohoSignDependencyModule {}
|
|
2681
|
-
*
|
|
2682
|
-
* @Module(appZohoSignModuleMetadata({ dependencyModule: ZohoSignDependencyModule }))
|
|
2678
|
+
* @Module (appZohoSignModuleMetadata({ dependencyModule: ZohoSignDependencyModule }))
|
|
2683
2679
|
* export class AppZohoSignModule {}
|
|
2684
2680
|
* ```
|
|
2681
|
+
*
|
|
2682
|
+
* @example
|
|
2683
|
+
* ```typescript
|
|
2684
|
+
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
2685
2685
|
*/ function appZohoSignModuleMetadata(config$1) {
|
|
2686
2686
|
var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
|
|
2687
2687
|
var dependencyModuleImport = dependencyModule ? [
|
|
@@ -2766,8 +2766,8 @@ function _object_spread_props$1(target, source) {
|
|
|
2766
2766
|
/**
|
|
2767
2767
|
* Creates a {@link ZohoSignWebhookEvent} from a raw payload.
|
|
2768
2768
|
*
|
|
2769
|
-
* @param payload -
|
|
2770
|
-
* @returns
|
|
2769
|
+
* @param payload - The raw Zoho Sign webhook payload to convert.
|
|
2770
|
+
* @returns A webhook event with the operation type extracted for convenience.
|
|
2771
2771
|
*/ function zohoSignWebhookEvent(payload) {
|
|
2772
2772
|
return _object_spread_props$1(_object_spread$1({}, payload), {
|
|
2773
2773
|
operationType: payload.notifications.operation_type
|
|
@@ -2986,8 +2986,8 @@ function _ts_generator$2(thisArg, body) {
|
|
|
2986
2986
|
* in the `X-ZS-WEBHOOK-SIGNATURE` header. This verifier recomputes the signature
|
|
2987
2987
|
* from the raw request body and compares using timing-safe equality.
|
|
2988
2988
|
*
|
|
2989
|
-
* @param config - Configuration containing the webhook secret key
|
|
2990
|
-
* @returns
|
|
2989
|
+
* @param config - Configuration containing the webhook secret key.
|
|
2990
|
+
* @returns Verifies webhook requests.
|
|
2991
2991
|
*
|
|
2992
2992
|
* @example
|
|
2993
2993
|
* ```typescript
|
|
@@ -3002,53 +3002,45 @@ function _ts_generator$2(thisArg, body) {
|
|
|
3002
3002
|
var secret = config.secret;
|
|
3003
3003
|
return function(request, rawBody) {
|
|
3004
3004
|
return _async_to_generator$2(function() {
|
|
3005
|
-
var receivedSignature, payloadString, computedSignature, valid, receivedBuffer, computedBuffer, event, payload;
|
|
3005
|
+
var receivedSignature, result, payloadString, computedSignature, valid, receivedBuffer, computedBuffer, event, payload;
|
|
3006
3006
|
return _ts_generator$2(this, function(_state) {
|
|
3007
3007
|
receivedSignature = request.headers[ZOHO_SIGN_WEBHOOK_SIGNATURE_HEADER];
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
payloadString = rawBody.toString('utf-8');
|
|
3017
|
-
// Compute HMAC-SHA256 and base64 encode
|
|
3018
|
-
computedSignature = node_crypto.createHmac('sha256', secret).update(payloadString, 'utf-8').digest('base64');
|
|
3019
|
-
// Use timing-safe comparison
|
|
3020
|
-
valid = false;
|
|
3021
|
-
try {
|
|
3022
|
-
receivedBuffer = Buffer.from(receivedSignature, 'base64');
|
|
3023
|
-
computedBuffer = Buffer.from(computedSignature, 'base64');
|
|
3024
|
-
if (receivedBuffer.length === computedBuffer.length) {
|
|
3025
|
-
valid = node_crypto.timingSafeEqual(receivedBuffer, computedBuffer);
|
|
3026
|
-
}
|
|
3027
|
-
} catch (unused) {
|
|
3008
|
+
result = {
|
|
3009
|
+
valid: false
|
|
3010
|
+
};
|
|
3011
|
+
if (receivedSignature) {
|
|
3012
|
+
payloadString = rawBody.toString('utf-8');
|
|
3013
|
+
// Compute HMAC-SHA256 and base64 encode
|
|
3014
|
+
computedSignature = node_crypto.createHmac('sha256', secret).update(payloadString, 'utf-8').digest('base64');
|
|
3015
|
+
// Use timing-safe comparison
|
|
3028
3016
|
valid = false;
|
|
3029
|
-
}
|
|
3030
|
-
if (valid) {
|
|
3031
3017
|
try {
|
|
3032
|
-
|
|
3033
|
-
|
|
3018
|
+
receivedBuffer = Buffer.from(receivedSignature, 'base64');
|
|
3019
|
+
computedBuffer = Buffer.from(computedSignature, 'base64');
|
|
3020
|
+
if (receivedBuffer.length === computedBuffer.length) {
|
|
3021
|
+
valid = node_crypto.timingSafeEqual(receivedBuffer, computedBuffer);
|
|
3022
|
+
}
|
|
3034
3023
|
} catch (unused) {
|
|
3035
3024
|
valid = false;
|
|
3036
3025
|
}
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
{
|
|
3026
|
+
if (valid) {
|
|
3027
|
+
try {
|
|
3028
|
+
payload = JSON.parse(payloadString);
|
|
3029
|
+
event = zohoSignWebhookEvent(payload);
|
|
3030
|
+
} catch (unused) {
|
|
3031
|
+
valid = false;
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
if (valid && event) {
|
|
3035
|
+
result = {
|
|
3042
3036
|
valid: true,
|
|
3043
3037
|
event: event
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3046
3040
|
}
|
|
3047
3041
|
return [
|
|
3048
3042
|
2,
|
|
3049
|
-
|
|
3050
|
-
valid: false
|
|
3051
|
-
}
|
|
3043
|
+
result
|
|
3052
3044
|
];
|
|
3053
3045
|
});
|
|
3054
3046
|
})();
|
|
@@ -3511,9 +3503,9 @@ function _class_call_check$2(instance, Constructor) {
|
|
|
3511
3503
|
* Reads the Zoho Sign webhook secret from the NestJS ConfigService
|
|
3512
3504
|
* and returns a validated webhook service config.
|
|
3513
3505
|
*
|
|
3514
|
-
* @param configService - NestJS config service populated with webhook environment variables
|
|
3515
|
-
* @returns Validated Zoho Sign webhook service configuration
|
|
3516
|
-
* @throws {Error} If the webhook secret is not configured
|
|
3506
|
+
* @param configService - NestJS config service populated with webhook environment variables.
|
|
3507
|
+
* @returns Validated Zoho Sign webhook service configuration.
|
|
3508
|
+
* @throws {Error} If the webhook secret is not configured.
|
|
3517
3509
|
*/ function zohoSignWebhookServiceConfigFactory(configService) {
|
|
3518
3510
|
var config = {
|
|
3519
3511
|
zohoSignWebhook: {
|
|
@@ -3602,7 +3594,8 @@ function _define_property$1(obj, key, value) {
|
|
|
3602
3594
|
value: /**
|
|
3603
3595
|
* Validates that the required Zoho Desk connection fields are present and well-formed.
|
|
3604
3596
|
*
|
|
3605
|
-
* @param config -
|
|
3597
|
+
* @param config - The Desk service config to validate.
|
|
3598
|
+
* @throws {Error} When `config.zohoDesk.orgId` is missing or fails the shared Zoho config assertion.
|
|
3606
3599
|
*/ function assertValidConfig(config) {
|
|
3607
3600
|
assertValidZohoConfig(config.zohoDesk);
|
|
3608
3601
|
if (!config.zohoDesk.orgId) {
|
|
@@ -3705,7 +3698,7 @@ function _object_spread_props(target, source) {
|
|
|
3705
3698
|
get: /**
|
|
3706
3699
|
* The authenticated Desk context used by all operation accessors.
|
|
3707
3700
|
*
|
|
3708
|
-
* @returns
|
|
3701
|
+
* @returns The Desk context from the underlying client.
|
|
3709
3702
|
*/ function get() {
|
|
3710
3703
|
return this.zohoDesk.deskContext;
|
|
3711
3704
|
}
|
|
@@ -3715,7 +3708,7 @@ function _object_spread_props(target, source) {
|
|
|
3715
3708
|
get: /**
|
|
3716
3709
|
* Rate limiter shared across all Desk requests to respect Zoho API quotas.
|
|
3717
3710
|
*
|
|
3718
|
-
* @returns
|
|
3711
|
+
* @returns The shared rate limiter instance.
|
|
3719
3712
|
*/ function get() {
|
|
3720
3713
|
return this.zohoDesk.deskContext.zohoRateLimiter;
|
|
3721
3714
|
}
|
|
@@ -3726,7 +3719,7 @@ function _object_spread_props(target, source) {
|
|
|
3726
3719
|
/**
|
|
3727
3720
|
* Configured pass-through for {@link zohoDeskGetTickets}.
|
|
3728
3721
|
*
|
|
3729
|
-
* @returns
|
|
3722
|
+
* @returns Lists Desk tickets matching the supplied filter/pagination input.
|
|
3730
3723
|
*/ function get() {
|
|
3731
3724
|
return zoho.zohoDeskGetTickets(this.deskContext);
|
|
3732
3725
|
}
|
|
@@ -3736,7 +3729,7 @@ function _object_spread_props(target, source) {
|
|
|
3736
3729
|
get: /**
|
|
3737
3730
|
* Configured pass-through for {@link zohoDeskGetTicketById}.
|
|
3738
3731
|
*
|
|
3739
|
-
* @returns
|
|
3732
|
+
* @returns Fetches a single Desk ticket by its identifier.
|
|
3740
3733
|
*/ function get() {
|
|
3741
3734
|
return zoho.zohoDeskGetTicketById(this.deskContext);
|
|
3742
3735
|
}
|
|
@@ -3746,7 +3739,7 @@ function _object_spread_props(target, source) {
|
|
|
3746
3739
|
get: /**
|
|
3747
3740
|
* Configured pass-through for {@link zohoDeskSearchTickets}.
|
|
3748
3741
|
*
|
|
3749
|
-
* @returns
|
|
3742
|
+
* @returns Runs a Desk ticket search with the provided criteria.
|
|
3750
3743
|
*/ function get() {
|
|
3751
3744
|
return zoho.zohoDeskSearchTickets(this.deskContext);
|
|
3752
3745
|
}
|
|
@@ -3756,7 +3749,7 @@ function _object_spread_props(target, source) {
|
|
|
3756
3749
|
get: /**
|
|
3757
3750
|
* Configured pass-through for {@link zohoDeskGetTicketsForContact}.
|
|
3758
3751
|
*
|
|
3759
|
-
* @returns
|
|
3752
|
+
* @returns Lists Desk tickets associated with the given contact id.
|
|
3760
3753
|
*/ function get() {
|
|
3761
3754
|
return zoho.zohoDeskGetTicketsForContact(this.deskContext);
|
|
3762
3755
|
}
|
|
@@ -3766,7 +3759,7 @@ function _object_spread_props(target, source) {
|
|
|
3766
3759
|
get: /**
|
|
3767
3760
|
* Configured pass-through for {@link zohoDeskGetTicketsForProduct}.
|
|
3768
3761
|
*
|
|
3769
|
-
* @returns
|
|
3762
|
+
* @returns Lists Desk tickets associated with the given product id.
|
|
3770
3763
|
*/ function get() {
|
|
3771
3764
|
return zoho.zohoDeskGetTicketsForProduct(this.deskContext);
|
|
3772
3765
|
}
|
|
@@ -3776,7 +3769,7 @@ function _object_spread_props(target, source) {
|
|
|
3776
3769
|
get: /**
|
|
3777
3770
|
* Configured pass-through for {@link zohoDeskGetTicketMetrics}.
|
|
3778
3771
|
*
|
|
3779
|
-
* @returns
|
|
3772
|
+
* @returns Fetches aggregated metrics for the requested Desk tickets.
|
|
3780
3773
|
*/ function get() {
|
|
3781
3774
|
return zoho.zohoDeskGetTicketMetrics(this.deskContext);
|
|
3782
3775
|
}
|
|
@@ -3786,7 +3779,7 @@ function _object_spread_props(target, source) {
|
|
|
3786
3779
|
get: /**
|
|
3787
3780
|
* Configured pass-through for {@link zohoDeskGetAgentsTicketsCount}.
|
|
3788
3781
|
*
|
|
3789
|
-
* @returns
|
|
3782
|
+
* @returns Returns ticket counts grouped by agent for the requested filter.
|
|
3790
3783
|
*/ function get() {
|
|
3791
3784
|
return zoho.zohoDeskGetAgentsTicketsCount(this.deskContext);
|
|
3792
3785
|
}
|
|
@@ -3796,7 +3789,7 @@ function _object_spread_props(target, source) {
|
|
|
3796
3789
|
get: /**
|
|
3797
3790
|
* Configured pass-through for {@link zohoDeskGetTicketsPageFactory}.
|
|
3798
3791
|
*
|
|
3799
|
-
* @returns
|
|
3792
|
+
* @returns A paged result factory for iterating over Desk ticket list responses.
|
|
3800
3793
|
*/ function get() {
|
|
3801
3794
|
return zoho.zohoDeskGetTicketsPageFactory(this.deskContext);
|
|
3802
3795
|
}
|
|
@@ -3806,7 +3799,7 @@ function _object_spread_props(target, source) {
|
|
|
3806
3799
|
get: /**
|
|
3807
3800
|
* Configured pass-through for {@link zohoDeskSearchTicketsPageFactory}.
|
|
3808
3801
|
*
|
|
3809
|
-
* @returns
|
|
3802
|
+
* @returns A paged result factory for iterating over Desk ticket search responses.
|
|
3810
3803
|
*/ function get() {
|
|
3811
3804
|
return zoho.zohoDeskSearchTicketsPageFactory(this.deskContext);
|
|
3812
3805
|
}
|
|
@@ -3817,7 +3810,7 @@ function _object_spread_props(target, source) {
|
|
|
3817
3810
|
/**
|
|
3818
3811
|
* Configured pass-through for {@link zohoDeskGetDepartments}.
|
|
3819
3812
|
*
|
|
3820
|
-
* @returns
|
|
3813
|
+
* @returns Lists Desk departments visible to the authenticated portal.
|
|
3821
3814
|
*/ function get() {
|
|
3822
3815
|
return zoho.zohoDeskGetDepartments(this.deskContext);
|
|
3823
3816
|
}
|
|
@@ -3827,7 +3820,7 @@ function _object_spread_props(target, source) {
|
|
|
3827
3820
|
get: /**
|
|
3828
3821
|
* Configured pass-through for {@link zohoDeskGetDepartmentById}.
|
|
3829
3822
|
*
|
|
3830
|
-
* @returns
|
|
3823
|
+
* @returns Fetches a single Desk department by its identifier.
|
|
3831
3824
|
*/ function get() {
|
|
3832
3825
|
return zoho.zohoDeskGetDepartmentById(this.deskContext);
|
|
3833
3826
|
}
|
|
@@ -3838,7 +3831,7 @@ function _object_spread_props(target, source) {
|
|
|
3838
3831
|
/**
|
|
3839
3832
|
* Configured pass-through for {@link zohoDeskGetContacts}.
|
|
3840
3833
|
*
|
|
3841
|
-
* @returns
|
|
3834
|
+
* @returns Lists Desk contacts matching the supplied filter/pagination input.
|
|
3842
3835
|
*/ function get() {
|
|
3843
3836
|
return zoho.zohoDeskGetContacts(this.deskContext);
|
|
3844
3837
|
}
|
|
@@ -3848,7 +3841,7 @@ function _object_spread_props(target, source) {
|
|
|
3848
3841
|
get: /**
|
|
3849
3842
|
* Configured pass-through for {@link zohoDeskGetContactById}.
|
|
3850
3843
|
*
|
|
3851
|
-
* @returns
|
|
3844
|
+
* @returns Fetches a single Desk contact by its identifier.
|
|
3852
3845
|
*/ function get() {
|
|
3853
3846
|
return zoho.zohoDeskGetContactById(this.deskContext);
|
|
3854
3847
|
}
|
|
@@ -3858,7 +3851,7 @@ function _object_spread_props(target, source) {
|
|
|
3858
3851
|
get: /**
|
|
3859
3852
|
* Configured pass-through for {@link zohoDeskGetContactsByIds}.
|
|
3860
3853
|
*
|
|
3861
|
-
* @returns
|
|
3854
|
+
* @returns Fetches multiple Desk contacts in a single request by their identifiers.
|
|
3862
3855
|
*/ function get() {
|
|
3863
3856
|
return zoho.zohoDeskGetContactsByIds(this.deskContext);
|
|
3864
3857
|
}
|
|
@@ -3868,7 +3861,7 @@ function _object_spread_props(target, source) {
|
|
|
3868
3861
|
get: /**
|
|
3869
3862
|
* Configured pass-through for {@link zohoDeskGetContactsPageFactory}.
|
|
3870
3863
|
*
|
|
3871
|
-
* @returns
|
|
3864
|
+
* @returns A paged result factory for iterating over Desk contact list responses.
|
|
3872
3865
|
*/ function get() {
|
|
3873
3866
|
return zoho.zohoDeskGetContactsPageFactory(this.deskContext);
|
|
3874
3867
|
}
|
|
@@ -3879,7 +3872,7 @@ function _object_spread_props(target, source) {
|
|
|
3879
3872
|
/**
|
|
3880
3873
|
* Configured pass-through for {@link zohoDeskGetTicketTags}.
|
|
3881
3874
|
*
|
|
3882
|
-
* @returns
|
|
3875
|
+
* @returns Lists the tags currently associated with a given Desk ticket.
|
|
3883
3876
|
*/ function get() {
|
|
3884
3877
|
return zoho.zohoDeskGetTicketTags(this.deskContext);
|
|
3885
3878
|
}
|
|
@@ -3889,7 +3882,7 @@ function _object_spread_props(target, source) {
|
|
|
3889
3882
|
get: /**
|
|
3890
3883
|
* Configured pass-through for {@link zohoDeskAssociateTicketTags}.
|
|
3891
3884
|
*
|
|
3892
|
-
* @returns
|
|
3885
|
+
* @returns Associates one or more tags with a Desk ticket.
|
|
3893
3886
|
*/ function get() {
|
|
3894
3887
|
return zoho.zohoDeskAssociateTicketTags(this.deskContext);
|
|
3895
3888
|
}
|
|
@@ -3899,7 +3892,7 @@ function _object_spread_props(target, source) {
|
|
|
3899
3892
|
get: /**
|
|
3900
3893
|
* Configured pass-through for {@link zohoDeskDissociateTicketTag}.
|
|
3901
3894
|
*
|
|
3902
|
-
* @returns
|
|
3895
|
+
* @returns Removes a single tag association from a Desk ticket.
|
|
3903
3896
|
*/ function get() {
|
|
3904
3897
|
return zoho.zohoDeskDissociateTicketTag(this.deskContext);
|
|
3905
3898
|
}
|
|
@@ -3909,7 +3902,7 @@ function _object_spread_props(target, source) {
|
|
|
3909
3902
|
get: /**
|
|
3910
3903
|
* Configured pass-through for {@link zohoDeskSearchTags}.
|
|
3911
3904
|
*
|
|
3912
|
-
* @returns
|
|
3905
|
+
* @returns Searches the Desk tag catalog by the supplied criteria.
|
|
3913
3906
|
*/ function get() {
|
|
3914
3907
|
return zoho.zohoDeskSearchTags(this.deskContext);
|
|
3915
3908
|
}
|
|
@@ -3919,7 +3912,7 @@ function _object_spread_props(target, source) {
|
|
|
3919
3912
|
get: /**
|
|
3920
3913
|
* Configured pass-through for {@link zohoDeskGetAllTags}.
|
|
3921
3914
|
*
|
|
3922
|
-
* @returns
|
|
3915
|
+
* @returns Lists every tag defined on the Desk portal.
|
|
3923
3916
|
*/ function get() {
|
|
3924
3917
|
return zoho.zohoDeskGetAllTags(this.deskContext);
|
|
3925
3918
|
}
|
|
@@ -3930,7 +3923,7 @@ function _object_spread_props(target, source) {
|
|
|
3930
3923
|
/**
|
|
3931
3924
|
* Configured pass-through for {@link zohoDeskGetTicketFollowers}.
|
|
3932
3925
|
*
|
|
3933
|
-
* @returns
|
|
3926
|
+
* @returns Lists the agents following a given Desk ticket.
|
|
3934
3927
|
*/ function get() {
|
|
3935
3928
|
return zoho.zohoDeskGetTicketFollowers(this.deskContext);
|
|
3936
3929
|
}
|
|
@@ -3940,7 +3933,7 @@ function _object_spread_props(target, source) {
|
|
|
3940
3933
|
get: /**
|
|
3941
3934
|
* Configured pass-through for {@link zohoDeskAddTicketFollowers}.
|
|
3942
3935
|
*
|
|
3943
|
-
* @returns
|
|
3936
|
+
* @returns Adds one or more agents as followers of a Desk ticket.
|
|
3944
3937
|
*/ function get() {
|
|
3945
3938
|
return zoho.zohoDeskAddTicketFollowers(this.deskContext);
|
|
3946
3939
|
}
|
|
@@ -3950,7 +3943,7 @@ function _object_spread_props(target, source) {
|
|
|
3950
3943
|
get: /**
|
|
3951
3944
|
* Configured pass-through for {@link zohoDeskRemoveTicketFollowers}.
|
|
3952
3945
|
*
|
|
3953
|
-
* @returns
|
|
3946
|
+
* @returns Removes one or more agents from a Desk ticket's follower list.
|
|
3954
3947
|
*/ function get() {
|
|
3955
3948
|
return zoho.zohoDeskRemoveTicketFollowers(this.deskContext);
|
|
3956
3949
|
}
|
|
@@ -3961,7 +3954,7 @@ function _object_spread_props(target, source) {
|
|
|
3961
3954
|
/**
|
|
3962
3955
|
* Configured pass-through for {@link zohoDeskGetTicketAttachments}.
|
|
3963
3956
|
*
|
|
3964
|
-
* @returns
|
|
3957
|
+
* @returns Lists the file attachments on a given Desk ticket.
|
|
3965
3958
|
*/ function get() {
|
|
3966
3959
|
return zoho.zohoDeskGetTicketAttachments(this.deskContext);
|
|
3967
3960
|
}
|
|
@@ -3971,7 +3964,7 @@ function _object_spread_props(target, source) {
|
|
|
3971
3964
|
get: /**
|
|
3972
3965
|
* Configured pass-through for {@link zohoDeskDeleteTicketAttachment}.
|
|
3973
3966
|
*
|
|
3974
|
-
* @returns
|
|
3967
|
+
* @returns Deletes a single attachment from a Desk ticket by attachment id.
|
|
3975
3968
|
*/ function get() {
|
|
3976
3969
|
return zoho.zohoDeskDeleteTicketAttachment(this.deskContext);
|
|
3977
3970
|
}
|
|
@@ -3982,7 +3975,7 @@ function _object_spread_props(target, source) {
|
|
|
3982
3975
|
/**
|
|
3983
3976
|
* Configured pass-through for {@link zohoDeskGetTicketComments}.
|
|
3984
3977
|
*
|
|
3985
|
-
* @returns
|
|
3978
|
+
* @returns Lists the comments on a given Desk ticket.
|
|
3986
3979
|
*/ function get() {
|
|
3987
3980
|
return zoho.zohoDeskGetTicketComments(this.deskContext);
|
|
3988
3981
|
}
|
|
@@ -3992,7 +3985,7 @@ function _object_spread_props(target, source) {
|
|
|
3992
3985
|
get: /**
|
|
3993
3986
|
* Configured pass-through for {@link zohoDeskGetTicketCommentById}.
|
|
3994
3987
|
*
|
|
3995
|
-
* @returns
|
|
3988
|
+
* @returns Fetches a single comment on a Desk ticket by comment id.
|
|
3996
3989
|
*/ function get() {
|
|
3997
3990
|
return zoho.zohoDeskGetTicketCommentById(this.deskContext);
|
|
3998
3991
|
}
|
|
@@ -4002,7 +3995,7 @@ function _object_spread_props(target, source) {
|
|
|
4002
3995
|
get: /**
|
|
4003
3996
|
* Configured pass-through for {@link zohoDeskCreateTicketComment}.
|
|
4004
3997
|
*
|
|
4005
|
-
* @returns
|
|
3998
|
+
* @returns Creates a new comment on a Desk ticket from the supplied body.
|
|
4006
3999
|
*/ function get() {
|
|
4007
4000
|
return zoho.zohoDeskCreateTicketComment(this.deskContext);
|
|
4008
4001
|
}
|
|
@@ -4012,7 +4005,7 @@ function _object_spread_props(target, source) {
|
|
|
4012
4005
|
get: /**
|
|
4013
4006
|
* Configured pass-through for {@link zohoDeskDeleteTicketComment}.
|
|
4014
4007
|
*
|
|
4015
|
-
* @returns
|
|
4008
|
+
* @returns Deletes a single comment from a Desk ticket by comment id.
|
|
4016
4009
|
*/ function get() {
|
|
4017
4010
|
return zoho.zohoDeskDeleteTicketComment(this.deskContext);
|
|
4018
4011
|
}
|
|
@@ -4023,7 +4016,7 @@ function _object_spread_props(target, source) {
|
|
|
4023
4016
|
/**
|
|
4024
4017
|
* Configured pass-through for {@link zohoDeskGetTicketTimer}.
|
|
4025
4018
|
*
|
|
4026
|
-
* @returns
|
|
4019
|
+
* @returns Fetches the current timer state for a Desk ticket.
|
|
4027
4020
|
*/ function get() {
|
|
4028
4021
|
return zoho.zohoDeskGetTicketTimer(this.deskContext);
|
|
4029
4022
|
}
|
|
@@ -4033,7 +4026,7 @@ function _object_spread_props(target, source) {
|
|
|
4033
4026
|
get: /**
|
|
4034
4027
|
* Configured pass-through for {@link zohoDeskPerformTicketTimerAction}.
|
|
4035
4028
|
*
|
|
4036
|
-
* @returns
|
|
4029
|
+
* @returns Performs a timer action (start/pause/stop) on a Desk ticket.
|
|
4037
4030
|
*/ function get() {
|
|
4038
4031
|
return zoho.zohoDeskPerformTicketTimerAction(this.deskContext);
|
|
4039
4032
|
}
|
|
@@ -4043,7 +4036,7 @@ function _object_spread_props(target, source) {
|
|
|
4043
4036
|
get: /**
|
|
4044
4037
|
* Configured pass-through for {@link zohoDeskGetTicketTimeEntries}.
|
|
4045
4038
|
*
|
|
4046
|
-
* @returns
|
|
4039
|
+
* @returns Lists the time entries logged against a Desk ticket.
|
|
4047
4040
|
*/ function get() {
|
|
4048
4041
|
return zoho.zohoDeskGetTicketTimeEntries(this.deskContext);
|
|
4049
4042
|
}
|
|
@@ -4053,7 +4046,7 @@ function _object_spread_props(target, source) {
|
|
|
4053
4046
|
get: /**
|
|
4054
4047
|
* Configured pass-through for {@link zohoDeskGetTicketTimeEntryById}.
|
|
4055
4048
|
*
|
|
4056
|
-
* @returns
|
|
4049
|
+
* @returns Fetches a single time entry on a Desk ticket by entry id.
|
|
4057
4050
|
*/ function get() {
|
|
4058
4051
|
return zoho.zohoDeskGetTicketTimeEntryById(this.deskContext);
|
|
4059
4052
|
}
|
|
@@ -4063,7 +4056,7 @@ function _object_spread_props(target, source) {
|
|
|
4063
4056
|
get: /**
|
|
4064
4057
|
* Configured pass-through for {@link zohoDeskGetTicketTimeEntrySummation}.
|
|
4065
4058
|
*
|
|
4066
|
-
* @returns
|
|
4059
|
+
* @returns Fetches the aggregated time-entry totals for a Desk ticket.
|
|
4067
4060
|
*/ function get() {
|
|
4068
4061
|
return zoho.zohoDeskGetTicketTimeEntrySummation(this.deskContext);
|
|
4069
4062
|
}
|
|
@@ -4074,7 +4067,7 @@ function _object_spread_props(target, source) {
|
|
|
4074
4067
|
/**
|
|
4075
4068
|
* Configured pass-through for {@link zohoDeskGetTicketThreads}.
|
|
4076
4069
|
*
|
|
4077
|
-
* @returns
|
|
4070
|
+
* @returns Lists the conversation threads on a given Desk ticket.
|
|
4078
4071
|
*/ function get() {
|
|
4079
4072
|
return zoho.zohoDeskGetTicketThreads(this.deskContext);
|
|
4080
4073
|
}
|
|
@@ -4084,7 +4077,7 @@ function _object_spread_props(target, source) {
|
|
|
4084
4077
|
get: /**
|
|
4085
4078
|
* Configured pass-through for {@link zohoDeskGetTicketThreadById}.
|
|
4086
4079
|
*
|
|
4087
|
-
* @returns
|
|
4080
|
+
* @returns Fetches a single thread on a Desk ticket by thread id.
|
|
4088
4081
|
*/ function get() {
|
|
4089
4082
|
return zoho.zohoDeskGetTicketThreadById(this.deskContext);
|
|
4090
4083
|
}
|
|
@@ -4094,7 +4087,7 @@ function _object_spread_props(target, source) {
|
|
|
4094
4087
|
get: /**
|
|
4095
4088
|
* Configured pass-through for {@link zohoDeskGetTicketThreadsPageFactory}.
|
|
4096
4089
|
*
|
|
4097
|
-
* @returns
|
|
4090
|
+
* @returns A paged result factory for iterating over Desk ticket thread responses.
|
|
4098
4091
|
*/ function get() {
|
|
4099
4092
|
return zoho.zohoDeskGetTicketThreadsPageFactory(this.deskContext);
|
|
4100
4093
|
}
|
|
@@ -4105,7 +4098,7 @@ function _object_spread_props(target, source) {
|
|
|
4105
4098
|
/**
|
|
4106
4099
|
* Configured pass-through for {@link zohoDeskGetTicketActivities}.
|
|
4107
4100
|
*
|
|
4108
|
-
* @returns
|
|
4101
|
+
* @returns Lists the activity log entries for a given Desk ticket.
|
|
4109
4102
|
*/ function get() {
|
|
4110
4103
|
return zoho.zohoDeskGetTicketActivities(this.deskContext);
|
|
4111
4104
|
}
|
|
@@ -4115,7 +4108,7 @@ function _object_spread_props(target, source) {
|
|
|
4115
4108
|
get: /**
|
|
4116
4109
|
* Configured pass-through for {@link zohoDeskGetTicketActivitiesPageFactory}.
|
|
4117
4110
|
*
|
|
4118
|
-
* @returns
|
|
4111
|
+
* @returns A paged result factory for iterating over Desk ticket activity responses.
|
|
4119
4112
|
*/ function get() {
|
|
4120
4113
|
return zoho.zohoDeskGetTicketActivitiesPageFactory(this.deskContext);
|
|
4121
4114
|
}
|
|
@@ -4126,7 +4119,7 @@ function _object_spread_props(target, source) {
|
|
|
4126
4119
|
/**
|
|
4127
4120
|
* Configured pass-through for {@link zohoDeskGetAgents}.
|
|
4128
4121
|
*
|
|
4129
|
-
* @returns
|
|
4122
|
+
* @returns Lists Desk agents matching the supplied filter/pagination input.
|
|
4130
4123
|
*/ function get() {
|
|
4131
4124
|
return zoho.zohoDeskGetAgents(this.deskContext);
|
|
4132
4125
|
}
|
|
@@ -4136,7 +4129,7 @@ function _object_spread_props(target, source) {
|
|
|
4136
4129
|
get: /**
|
|
4137
4130
|
* Configured pass-through for {@link zohoDeskGetAgentById}.
|
|
4138
4131
|
*
|
|
4139
|
-
* @returns
|
|
4132
|
+
* @returns Fetches a single Desk agent by agent id.
|
|
4140
4133
|
*/ function get() {
|
|
4141
4134
|
return zoho.zohoDeskGetAgentById(this.deskContext);
|
|
4142
4135
|
}
|
|
@@ -4146,7 +4139,7 @@ function _object_spread_props(target, source) {
|
|
|
4146
4139
|
get: /**
|
|
4147
4140
|
* Configured pass-through for {@link zohoDeskGetAgentsByIds}.
|
|
4148
4141
|
*
|
|
4149
|
-
* @returns
|
|
4142
|
+
* @returns Fetches multiple Desk agents in a single request by their identifiers.
|
|
4150
4143
|
*/ function get() {
|
|
4151
4144
|
return zoho.zohoDeskGetAgentsByIds(this.deskContext);
|
|
4152
4145
|
}
|
|
@@ -4156,7 +4149,7 @@ function _object_spread_props(target, source) {
|
|
|
4156
4149
|
get: /**
|
|
4157
4150
|
* Configured pass-through for {@link zohoDeskGetMyInfo}.
|
|
4158
4151
|
*
|
|
4159
|
-
* @returns
|
|
4152
|
+
* @returns Fetches the profile information for the currently authenticated agent.
|
|
4160
4153
|
*/ function get() {
|
|
4161
4154
|
return zoho.zohoDeskGetMyInfo(this.deskContext);
|
|
4162
4155
|
}
|
|
@@ -4166,7 +4159,7 @@ function _object_spread_props(target, source) {
|
|
|
4166
4159
|
get: /**
|
|
4167
4160
|
* Configured pass-through for {@link zohoDeskGetAgentsPageFactory}.
|
|
4168
4161
|
*
|
|
4169
|
-
* @returns
|
|
4162
|
+
* @returns A paged result factory for iterating over Desk agent list responses.
|
|
4170
4163
|
*/ function get() {
|
|
4171
4164
|
return zoho.zohoDeskGetAgentsPageFactory(this.deskContext);
|
|
4172
4165
|
}
|
|
@@ -4218,9 +4211,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
4218
4211
|
* `ZOHO_DESK_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
|
|
4219
4212
|
* The organization ID is read from `ZOHO_DESK_ORG_ID` or `ZOHO_ORG_ID`.
|
|
4220
4213
|
*
|
|
4221
|
-
* @param configService - NestJS config service populated with Zoho environment variables
|
|
4222
|
-
* @returns Validated Zoho Desk service configuration
|
|
4223
|
-
* @throws {Error} If required config values (API URL or orgId) are missing
|
|
4214
|
+
* @param configService - NestJS config service populated with Zoho environment variables.
|
|
4215
|
+
* @returns Validated Zoho Desk service configuration.
|
|
4216
|
+
* @throws {Error} If required config values (API URL or orgId) are missing.
|
|
4224
4217
|
*/ function zohoDeskServiceConfigFactory(configService) {
|
|
4225
4218
|
var getFromConfigService = zohoConfigServiceReaderFunction(zoho.ZOHO_DESK_SERVICE_NAME, configService);
|
|
4226
4219
|
var config = {
|
|
@@ -4236,8 +4229,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
4236
4229
|
* Reads Zoho Accounts (OAuth) settings scoped to the Desk service from
|
|
4237
4230
|
* the NestJS ConfigService and returns an accounts service config.
|
|
4238
4231
|
*
|
|
4239
|
-
* @param configService - NestJS config service populated with Zoho OAuth environment variables
|
|
4240
|
-
* @returns Zoho Accounts service config scoped to the Desk service access token
|
|
4232
|
+
* @param configService - NestJS config service populated with Zoho OAuth environment variables.
|
|
4233
|
+
* @returns Zoho Accounts service config scoped to the Desk service access token.
|
|
4241
4234
|
*/ function zohoDeskAccountServiceConfigFactory(configService) {
|
|
4242
4235
|
return zohoAccountsServiceConfigFromConfigService({
|
|
4243
4236
|
configService: configService,
|
|
@@ -4258,7 +4251,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
4258
4251
|
* exports {@link ZohoDeskApi} by default. Additional imports, exports, and providers
|
|
4259
4252
|
* from the config are merged in.
|
|
4260
4253
|
*
|
|
4261
|
-
* @param config - Module configuration with optional dependency module and extra metadata
|
|
4254
|
+
* @param config - Module configuration with optional dependency module and extra metadata.
|
|
4262
4255
|
* @returns Complete NestJS module metadata ready to pass to `@Module()`
|
|
4263
4256
|
*/ function appZohoDeskModuleMetadata(config$1) {
|
|
4264
4257
|
var dependencyModule = config$1.dependencyModule, imports = config$1.imports, exports$1 = config$1.exports, providers = config$1.providers;
|