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