@dereekb/zoho 13.4.0 → 13.4.2
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/index.cjs.js +272 -92
- package/index.esm.js +272 -93
- package/nestjs/index.cjs.js +404 -90
- package/nestjs/index.esm.js +404 -90
- package/nestjs/package.json +4 -4
- package/nestjs/src/lib/accounts/accounts.service.d.ts +14 -2
- package/nestjs/src/lib/crm/crm.api.d.ts +142 -27
- package/nestjs/src/lib/crm/crm.config.d.ts +2 -0
- package/nestjs/src/lib/recruit/recruit.api.d.ts +162 -31
- package/nestjs/src/lib/recruit/recruit.config.d.ts +2 -0
- package/nestjs/src/lib/sign/sign.api.d.ts +67 -12
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.d.ts +3 -0
- package/nestjs/src/lib/zoho.config.d.ts +26 -2
- package/package.json +3 -3
- package/src/lib/accounts/accounts.api.d.ts +9 -5
- package/src/lib/accounts/accounts.config.d.ts +12 -2
- package/src/lib/accounts/accounts.d.ts +6 -3
- package/src/lib/accounts/accounts.error.api.d.ts +13 -0
- package/src/lib/accounts/accounts.factory.d.ts +2 -2
- package/src/lib/crm/crm.api.d.ts +13 -0
- package/src/lib/crm/crm.api.notes.d.ts +15 -0
- package/src/lib/crm/crm.api.tags.d.ts +17 -8
- package/src/lib/crm/crm.config.d.ts +9 -2
- package/src/lib/crm/crm.d.ts +12 -12
- package/src/lib/crm/crm.error.api.d.ts +14 -0
- package/src/lib/crm/crm.factory.d.ts +3 -3
- package/src/lib/crm/crm.notes.d.ts +23 -23
- package/src/lib/crm/crm.tags.d.ts +3 -3
- package/src/lib/recruit/recruit.api.candidates.d.ts +19 -0
- package/src/lib/recruit/recruit.api.d.ts +10 -0
- package/src/lib/recruit/recruit.config.d.ts +9 -2
- package/src/lib/recruit/recruit.d.ts +12 -12
- package/src/lib/recruit/recruit.error.api.d.ts +14 -0
- package/src/lib/recruit/recruit.factory.d.ts +3 -3
- package/src/lib/sign/sign.config.d.ts +12 -2
- package/src/lib/sign/sign.d.ts +14 -14
- package/src/lib/sign/sign.error.api.d.ts +13 -0
- package/src/lib/sign/sign.factory.d.ts +3 -3
- package/src/lib/zoho.error.api.d.ts +25 -8
- package/src/lib/zoho.limit.d.ts +8 -1
package/nestjs/index.cjs.js
CHANGED
|
@@ -50,27 +50,33 @@ function zohoConfigServiceReaderFunction(inputOrKey, inputConfigService) {
|
|
|
50
50
|
return (_configService_get = configService.get(serviceSpecificConfigKey)) !== null && _configService_get !== void 0 ? _configService_get : configService.get(baseConfigKey);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
* Reads the ZohoConfig config from the ConfigService.
|
|
55
|
-
*
|
|
56
|
-
* @param configService
|
|
57
|
-
* @param prefix
|
|
58
|
-
*/ function readZohoConfigFromConfigService(configService, servicePrefix) {
|
|
53
|
+
function readZohoConfigFromConfigService(configOrService, servicePrefix) {
|
|
59
54
|
var assertValid = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
|
|
60
55
|
var _configService_get;
|
|
56
|
+
var configService;
|
|
57
|
+
if ('configService' in configOrService) {
|
|
58
|
+
var _configOrService_assertValid;
|
|
59
|
+
configService = configOrService.configService;
|
|
60
|
+
servicePrefix = configOrService.servicePrefix;
|
|
61
|
+
assertValid = (_configOrService_assertValid = configOrService.assertValid) !== null && _configOrService_assertValid !== void 0 ? _configOrService_assertValid : true;
|
|
62
|
+
} else {
|
|
63
|
+
configService = configOrService;
|
|
64
|
+
}
|
|
61
65
|
var servicePrefixString = servicePrefix ? "".concat(servicePrefix, "_") : '';
|
|
62
66
|
var apiUrlConfigKey = "".concat(servicePrefixString).concat(ZOHO_API_URL_CONFIG_KEY);
|
|
63
67
|
var config = {
|
|
64
68
|
apiUrl: (_configService_get = configService.get(apiUrlConfigKey)) !== null && _configService_get !== void 0 ? _configService_get : configService.get(ZOHO_API_URL_CONFIG_KEY)
|
|
65
69
|
};
|
|
66
|
-
if (assertValid) {
|
|
67
|
-
|
|
68
|
-
throw new Error('No Zoho API url or type specified for key "'.concat(apiUrlConfigKey, '".'));
|
|
69
|
-
}
|
|
70
|
+
if (assertValid && !config.apiUrl) {
|
|
71
|
+
throw new Error('No Zoho API url or type specified for key "'.concat(apiUrlConfigKey, '".'));
|
|
70
72
|
}
|
|
71
73
|
return config;
|
|
72
74
|
}
|
|
73
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Asserts that the provided ZohoConfig has a valid API URL configured.
|
|
77
|
+
*
|
|
78
|
+
* @param config - the Zoho config to validate
|
|
79
|
+
*/ function assertValidZohoConfig(config) {
|
|
74
80
|
if (!config.apiUrl) {
|
|
75
81
|
throw new Error("No Zoho API url or type specified.");
|
|
76
82
|
}
|
|
@@ -406,7 +412,11 @@ function _ts_generator$3(thisArg, body) {
|
|
|
406
412
|
exports.ZohoAccountsAccessTokenCacheService = __decorate([
|
|
407
413
|
common.Injectable()
|
|
408
414
|
], exports.ZohoAccountsAccessTokenCacheService);
|
|
409
|
-
|
|
415
|
+
/**
|
|
416
|
+
* Default error logging function for merged Zoho access token cache services.
|
|
417
|
+
*
|
|
418
|
+
* @param failedUpdates - array of cache/error tuples that failed during update
|
|
419
|
+
*/ function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates) {
|
|
410
420
|
console.warn("mergeZohoAccountsAccessTokenCacheServices(): failed updating ".concat(failedUpdates.length, " caches."));
|
|
411
421
|
failedUpdates.forEach(function(param, i) {
|
|
412
422
|
var _param = _sliced_to_array(param, 2); _param[0]; var e = _param[1];
|
|
@@ -421,6 +431,9 @@ function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates)
|
|
|
421
431
|
* When updating a cached token, it will update the token across all services.
|
|
422
432
|
*
|
|
423
433
|
* @param servicesToMerge Must include atleast one service. Empty arrays will throw an error.
|
|
434
|
+
* @param inputServicesToMerge - cache services to merge in priority order
|
|
435
|
+
* @param logError - optional error logging toggle or custom logging function
|
|
436
|
+
* @returns a merged ZohoAccountsAccessTokenCacheService that delegates across all inputs
|
|
424
437
|
*/ function mergeZohoAccountsAccessTokenCacheServices(inputServicesToMerge, logError) {
|
|
425
438
|
var services = _to_consumable_array$3(inputServicesToMerge);
|
|
426
439
|
var logErrorFunction = typeof logError === 'function' ? logError : logError !== false ? logMergeZohoAccountsAccessTokenCacheServiceErrorFunction : undefined;
|
|
@@ -512,7 +525,9 @@ function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates)
|
|
|
512
525
|
/**
|
|
513
526
|
* Creates a ZohoAccountsAccessTokenCacheService that uses in-memory storage.
|
|
514
527
|
*
|
|
515
|
-
* @
|
|
528
|
+
* @param existingCache - optional pre-populated token cache record to use as initial state
|
|
529
|
+
* @param logAccessToConsole - whether to log cache reads and writes to the console
|
|
530
|
+
* @returns a ZohoAccountsAccessTokenCacheService backed by in-memory storage
|
|
516
531
|
*/ function memoryZohoAccountsAccessTokenCacheService(existingCache, logAccessToConsole) {
|
|
517
532
|
var tokens = existingCache !== null && existingCache !== void 0 ? existingCache : {};
|
|
518
533
|
function loadZohoAccessTokenCache(service) {
|
|
@@ -580,7 +595,9 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
580
595
|
*
|
|
581
596
|
* Useful for testing.
|
|
582
597
|
*
|
|
583
|
-
* @
|
|
598
|
+
* @param filename - path to the JSON file used for token persistence
|
|
599
|
+
* @param useMemoryCache - whether to also cache tokens in memory for faster reads
|
|
600
|
+
* @returns a FileSystemZohoAccountsAccessTokenCacheService backed by file storage
|
|
584
601
|
*/ function fileZohoAccountsAccessTokenCacheService() {
|
|
585
602
|
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;
|
|
586
603
|
var loadedTokens = null;
|
|
@@ -687,7 +704,7 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
687
704
|
var accessTokenCache = {
|
|
688
705
|
loadCachedToken: function loadCachedToken() {
|
|
689
706
|
return _async_to_generator$3(function() {
|
|
690
|
-
var tokens
|
|
707
|
+
var tokens;
|
|
691
708
|
return _ts_generator$3(this, function(_state) {
|
|
692
709
|
switch(_state.label){
|
|
693
710
|
case 0:
|
|
@@ -697,11 +714,10 @@ var DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH = '.tmp/zoho-acce
|
|
|
697
714
|
];
|
|
698
715
|
case 1:
|
|
699
716
|
tokens = _state.sent();
|
|
700
|
-
token = tokens[service];
|
|
701
717
|
// console.log('retrieving access token from file: ', { token, service });
|
|
702
718
|
return [
|
|
703
719
|
2,
|
|
704
|
-
|
|
720
|
+
tokens[service]
|
|
705
721
|
];
|
|
706
722
|
}
|
|
707
723
|
});
|
|
@@ -852,13 +868,13 @@ function _object_spread$4(target) {
|
|
|
852
868
|
exports.ZohoAccountsApi = /*#__PURE__*/ function() {
|
|
853
869
|
function ZohoAccountsApi(config, cacheService) {
|
|
854
870
|
_class_call_check$a(this, ZohoAccountsApi);
|
|
855
|
-
var _config_factoryConfig;
|
|
871
|
+
var _config_zohoAccounts_accessTokenCache, _config_factoryConfig;
|
|
856
872
|
_define_property$a(this, "config", void 0);
|
|
857
873
|
_define_property$a(this, "cacheService", void 0);
|
|
858
874
|
_define_property$a(this, "zohoAccounts", void 0);
|
|
859
875
|
this.config = config;
|
|
860
876
|
this.cacheService = cacheService;
|
|
861
|
-
var accessTokenCache = config.zohoAccounts.accessTokenCache ?
|
|
877
|
+
var accessTokenCache = (_config_zohoAccounts_accessTokenCache = config.zohoAccounts.accessTokenCache) !== null && _config_zohoAccounts_accessTokenCache !== void 0 ? _config_zohoAccounts_accessTokenCache : cacheService.loadZohoAccessTokenCache(config.zohoAccounts.serviceAccessTokenKey);
|
|
862
878
|
this.zohoAccounts = zoho.zohoAccountsFactory((_config_factoryConfig = config.factoryConfig) !== null && _config_factoryConfig !== void 0 ? _config_factoryConfig : {})(_object_spread$4({
|
|
863
879
|
accessTokenCache: accessTokenCache
|
|
864
880
|
}, config.zohoAccounts));
|
|
@@ -937,6 +953,8 @@ function _define_property$9(obj, key, value) {
|
|
|
937
953
|
key: "assertValidConfig",
|
|
938
954
|
value: /**
|
|
939
955
|
* Validates that the required Zoho CRM connection fields are present and well-formed.
|
|
956
|
+
*
|
|
957
|
+
* @param config - the CRM service config to validate
|
|
940
958
|
*/ function assertValidConfig(config) {
|
|
941
959
|
assertValidZohoConfig(config.zohoCrm);
|
|
942
960
|
}
|
|
@@ -1035,6 +1053,8 @@ function _object_spread_props$3(target, source) {
|
|
|
1035
1053
|
key: "crmContext",
|
|
1036
1054
|
get: /**
|
|
1037
1055
|
* The authenticated CRM context used by all operation accessors.
|
|
1056
|
+
*
|
|
1057
|
+
* @returns the CRM context from the underlying client
|
|
1038
1058
|
*/ function get() {
|
|
1039
1059
|
return this.zohoCrm.crmContext;
|
|
1040
1060
|
}
|
|
@@ -1043,6 +1063,8 @@ function _object_spread_props$3(target, source) {
|
|
|
1043
1063
|
key: "zohoRateLimiter",
|
|
1044
1064
|
get: /**
|
|
1045
1065
|
* Rate limiter shared across all CRM requests to respect Zoho API quotas.
|
|
1066
|
+
*
|
|
1067
|
+
* @returns the shared rate limiter instance
|
|
1046
1068
|
*/ function get() {
|
|
1047
1069
|
return this.zohoCrm.crmContext.zohoRateLimiter;
|
|
1048
1070
|
}
|
|
@@ -1050,163 +1072,271 @@ function _object_spread_props$3(target, source) {
|
|
|
1050
1072
|
{
|
|
1051
1073
|
key: "insertRecord",
|
|
1052
1074
|
get: // MARK: Accessors
|
|
1053
|
-
/**
|
|
1075
|
+
/**
|
|
1076
|
+
* Configured pass-through for {@link zohoCrmInsertRecord}.
|
|
1077
|
+
*
|
|
1078
|
+
* @returns bound insert record function
|
|
1079
|
+
*/ function get() {
|
|
1054
1080
|
return zoho.zohoCrmInsertRecord(this.crmContext);
|
|
1055
1081
|
}
|
|
1056
1082
|
},
|
|
1057
1083
|
{
|
|
1058
1084
|
key: "upsertRecord",
|
|
1059
|
-
get: /**
|
|
1085
|
+
get: /**
|
|
1086
|
+
* Configured pass-through for {@link zohoCrmUpsertRecord}.
|
|
1087
|
+
*
|
|
1088
|
+
* @returns bound upsert record function
|
|
1089
|
+
*/ function get() {
|
|
1060
1090
|
return zoho.zohoCrmUpsertRecord(this.crmContext);
|
|
1061
1091
|
}
|
|
1062
1092
|
},
|
|
1063
1093
|
{
|
|
1064
1094
|
key: "updateRecord",
|
|
1065
|
-
get: /**
|
|
1095
|
+
get: /**
|
|
1096
|
+
* Configured pass-through for {@link zohoCrmUpdateRecord}.
|
|
1097
|
+
*
|
|
1098
|
+
* @returns bound update record function
|
|
1099
|
+
*/ function get() {
|
|
1066
1100
|
return zoho.zohoCrmUpdateRecord(this.crmContext);
|
|
1067
1101
|
}
|
|
1068
1102
|
},
|
|
1069
1103
|
{
|
|
1070
1104
|
key: "deleteRecord",
|
|
1071
|
-
get: /**
|
|
1105
|
+
get: /**
|
|
1106
|
+
* Configured pass-through for {@link zohoCrmDeleteRecord}.
|
|
1107
|
+
*
|
|
1108
|
+
* @returns bound delete record function
|
|
1109
|
+
*/ function get() {
|
|
1072
1110
|
return zoho.zohoCrmDeleteRecord(this.crmContext);
|
|
1073
1111
|
}
|
|
1074
1112
|
},
|
|
1075
1113
|
{
|
|
1076
1114
|
key: "getRecordById",
|
|
1077
|
-
get: /**
|
|
1115
|
+
get: /**
|
|
1116
|
+
* Configured pass-through for {@link zohoCrmGetRecordById}.
|
|
1117
|
+
*
|
|
1118
|
+
* @returns bound get record by ID function
|
|
1119
|
+
*/ function get() {
|
|
1078
1120
|
return zoho.zohoCrmGetRecordById(this.crmContext);
|
|
1079
1121
|
}
|
|
1080
1122
|
},
|
|
1081
1123
|
{
|
|
1082
1124
|
key: "getRecords",
|
|
1083
|
-
get: /**
|
|
1125
|
+
get: /**
|
|
1126
|
+
* Configured pass-through for {@link zohoCrmGetRecords}.
|
|
1127
|
+
*
|
|
1128
|
+
* @returns bound get records function
|
|
1129
|
+
*/ function get() {
|
|
1084
1130
|
return zoho.zohoCrmGetRecords(this.crmContext);
|
|
1085
1131
|
}
|
|
1086
1132
|
},
|
|
1087
1133
|
{
|
|
1088
1134
|
key: "searchRecords",
|
|
1089
|
-
get: /**
|
|
1135
|
+
get: /**
|
|
1136
|
+
* Configured pass-through for {@link zohoCrmSearchRecords}.
|
|
1137
|
+
*
|
|
1138
|
+
* @returns bound search records function
|
|
1139
|
+
*/ function get() {
|
|
1090
1140
|
return zoho.zohoCrmSearchRecords(this.crmContext);
|
|
1091
1141
|
}
|
|
1092
1142
|
},
|
|
1093
1143
|
{
|
|
1094
1144
|
key: "searchRecordsPageFactory",
|
|
1095
|
-
get: /**
|
|
1145
|
+
get: /**
|
|
1146
|
+
* Configured pass-through for {@link zohoCrmSearchRecordsPageFactory}.
|
|
1147
|
+
*
|
|
1148
|
+
* @returns bound search records page factory function
|
|
1149
|
+
*/ function get() {
|
|
1096
1150
|
return zoho.zohoCrmSearchRecordsPageFactory(this.crmContext);
|
|
1097
1151
|
}
|
|
1098
1152
|
},
|
|
1099
1153
|
{
|
|
1100
1154
|
key: "getRelatedRecordsFunctionFactory",
|
|
1101
|
-
get: /**
|
|
1155
|
+
get: /**
|
|
1156
|
+
* Configured pass-through for {@link zohoCrmGetRelatedRecordsFunctionFactory}.
|
|
1157
|
+
*
|
|
1158
|
+
* @returns bound get related records factory function
|
|
1159
|
+
*/ function get() {
|
|
1102
1160
|
return zoho.zohoCrmGetRelatedRecordsFunctionFactory(this.crmContext);
|
|
1103
1161
|
}
|
|
1104
1162
|
},
|
|
1105
1163
|
{
|
|
1106
1164
|
key: "getEmailsForRecord",
|
|
1107
|
-
get: /**
|
|
1165
|
+
get: /**
|
|
1166
|
+
* Configured pass-through for {@link zohoCrmGetEmailsForRecord}.
|
|
1167
|
+
*
|
|
1168
|
+
* @returns bound get emails for record function
|
|
1169
|
+
*/ function get() {
|
|
1108
1170
|
return zoho.zohoCrmGetEmailsForRecord(this.crmContext);
|
|
1109
1171
|
}
|
|
1110
1172
|
},
|
|
1111
1173
|
{
|
|
1112
1174
|
key: "getEmailsForRecordPageFactory",
|
|
1113
|
-
get: /**
|
|
1175
|
+
get: /**
|
|
1176
|
+
* Configured pass-through for {@link zohoCrmGetEmailsForRecordPageFactory}.
|
|
1177
|
+
*
|
|
1178
|
+
* @returns bound get emails page factory function
|
|
1179
|
+
*/ function get() {
|
|
1114
1180
|
return zoho.zohoCrmGetEmailsForRecordPageFactory(this.crmContext);
|
|
1115
1181
|
}
|
|
1116
1182
|
},
|
|
1117
1183
|
{
|
|
1118
1184
|
key: "getAttachmentsForRecord",
|
|
1119
|
-
get: /**
|
|
1185
|
+
get: /**
|
|
1186
|
+
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecord}.
|
|
1187
|
+
*
|
|
1188
|
+
* @returns bound get attachments for record function
|
|
1189
|
+
*/ function get() {
|
|
1120
1190
|
return zoho.zohoCrmGetAttachmentsForRecord(this.crmContext);
|
|
1121
1191
|
}
|
|
1122
1192
|
},
|
|
1123
1193
|
{
|
|
1124
1194
|
key: "getAttachmentsForRecordPageFactory",
|
|
1125
|
-
get: /**
|
|
1195
|
+
get: /**
|
|
1196
|
+
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecordPageFactory}.
|
|
1197
|
+
*
|
|
1198
|
+
* @returns bound get attachments page factory function
|
|
1199
|
+
*/ function get() {
|
|
1126
1200
|
return zoho.zohoCrmGetAttachmentsForRecordPageFactory(this.crmContext);
|
|
1127
1201
|
}
|
|
1128
1202
|
},
|
|
1129
1203
|
{
|
|
1130
1204
|
key: "uploadAttachmentForRecord",
|
|
1131
|
-
get: /**
|
|
1205
|
+
get: /**
|
|
1206
|
+
* Configured pass-through for {@link zohoCrmUploadAttachmentForRecord}.
|
|
1207
|
+
*
|
|
1208
|
+
* @returns bound upload attachment function
|
|
1209
|
+
*/ function get() {
|
|
1132
1210
|
return zoho.zohoCrmUploadAttachmentForRecord(this.crmContext);
|
|
1133
1211
|
}
|
|
1134
1212
|
},
|
|
1135
1213
|
{
|
|
1136
1214
|
key: "downloadAttachmentForRecord",
|
|
1137
|
-
get: /**
|
|
1215
|
+
get: /**
|
|
1216
|
+
* Configured pass-through for {@link zohoCrmDownloadAttachmentForRecord}.
|
|
1217
|
+
*
|
|
1218
|
+
* @returns bound download attachment function
|
|
1219
|
+
*/ function get() {
|
|
1138
1220
|
return zoho.zohoCrmDownloadAttachmentForRecord(this.crmContext);
|
|
1139
1221
|
}
|
|
1140
1222
|
},
|
|
1141
1223
|
{
|
|
1142
1224
|
key: "deleteAttachmentFromRecord",
|
|
1143
|
-
get: /**
|
|
1225
|
+
get: /**
|
|
1226
|
+
* Configured pass-through for {@link zohoCrmDeleteAttachmentFromRecord}.
|
|
1227
|
+
*
|
|
1228
|
+
* @returns bound delete attachment function
|
|
1229
|
+
*/ function get() {
|
|
1144
1230
|
return zoho.zohoCrmDeleteAttachmentFromRecord(this.crmContext);
|
|
1145
1231
|
}
|
|
1146
1232
|
},
|
|
1147
1233
|
{
|
|
1148
1234
|
key: "createNotes",
|
|
1149
|
-
get: /**
|
|
1235
|
+
get: /**
|
|
1236
|
+
* Configured pass-through for {@link zohoCrmCreateNotes}.
|
|
1237
|
+
*
|
|
1238
|
+
* @returns bound create notes function
|
|
1239
|
+
*/ function get() {
|
|
1150
1240
|
return zoho.zohoCrmCreateNotes(this.crmContext);
|
|
1151
1241
|
}
|
|
1152
1242
|
},
|
|
1153
1243
|
{
|
|
1154
1244
|
key: "deleteNotes",
|
|
1155
|
-
get: /**
|
|
1245
|
+
get: /**
|
|
1246
|
+
* Configured pass-through for {@link zohoCrmDeleteNotes}.
|
|
1247
|
+
*
|
|
1248
|
+
* @returns bound delete notes function
|
|
1249
|
+
*/ function get() {
|
|
1156
1250
|
return zoho.zohoCrmDeleteNotes(this.crmContext);
|
|
1157
1251
|
}
|
|
1158
1252
|
},
|
|
1159
1253
|
{
|
|
1160
1254
|
key: "createNotesForRecord",
|
|
1161
|
-
get: /**
|
|
1255
|
+
get: /**
|
|
1256
|
+
* Configured pass-through for {@link zohoCrmCreateNotesForRecord}.
|
|
1257
|
+
*
|
|
1258
|
+
* @returns bound create notes for record function
|
|
1259
|
+
*/ function get() {
|
|
1162
1260
|
return zoho.zohoCrmCreateNotesForRecord(this.crmContext);
|
|
1163
1261
|
}
|
|
1164
1262
|
},
|
|
1165
1263
|
{
|
|
1166
1264
|
key: "getNotesForRecord",
|
|
1167
|
-
get: /**
|
|
1265
|
+
get: /**
|
|
1266
|
+
* Configured pass-through for {@link zohoCrmGetNotesForRecord}.
|
|
1267
|
+
*
|
|
1268
|
+
* @returns bound get notes for record function
|
|
1269
|
+
*/ function get() {
|
|
1168
1270
|
return zoho.zohoCrmGetNotesForRecord(this.crmContext);
|
|
1169
1271
|
}
|
|
1170
1272
|
},
|
|
1171
1273
|
{
|
|
1172
1274
|
key: "getNotesForRecordPageFactory",
|
|
1173
|
-
get: /**
|
|
1275
|
+
get: /**
|
|
1276
|
+
* Configured pass-through for {@link zohoCrmGetNotesForRecordPageFactory}.
|
|
1277
|
+
*
|
|
1278
|
+
* @returns bound get notes page factory function
|
|
1279
|
+
*/ function get() {
|
|
1174
1280
|
return zoho.zohoCrmGetNotesForRecordPageFactory(this.crmContext);
|
|
1175
1281
|
}
|
|
1176
1282
|
},
|
|
1177
1283
|
{
|
|
1178
1284
|
key: "executeRestApiFunction",
|
|
1179
|
-
get: /**
|
|
1285
|
+
get: /**
|
|
1286
|
+
* Configured pass-through for {@link zohoCrmExecuteRestApiFunction}.
|
|
1287
|
+
*
|
|
1288
|
+
* @returns bound execute REST API function
|
|
1289
|
+
*/ function get() {
|
|
1180
1290
|
return zoho.zohoCrmExecuteRestApiFunction(this.crmContext);
|
|
1181
1291
|
}
|
|
1182
1292
|
},
|
|
1183
1293
|
{
|
|
1184
1294
|
key: "createTagsForModule",
|
|
1185
|
-
get: /**
|
|
1295
|
+
get: /**
|
|
1296
|
+
* Configured pass-through for {@link zohoCrmCreateTagsForModule}.
|
|
1297
|
+
*
|
|
1298
|
+
* @returns bound create tags for module function
|
|
1299
|
+
*/ function get() {
|
|
1186
1300
|
return zoho.zohoCrmCreateTagsForModule(this.crmContext);
|
|
1187
1301
|
}
|
|
1188
1302
|
},
|
|
1189
1303
|
{
|
|
1190
1304
|
key: "deleteTag",
|
|
1191
|
-
get: /**
|
|
1305
|
+
get: /**
|
|
1306
|
+
* Configured pass-through for {@link zohoCrmDeleteTag}.
|
|
1307
|
+
*
|
|
1308
|
+
* @returns bound delete tag function
|
|
1309
|
+
*/ function get() {
|
|
1192
1310
|
return zoho.zohoCrmDeleteTag(this.crmContext);
|
|
1193
1311
|
}
|
|
1194
1312
|
},
|
|
1195
1313
|
{
|
|
1196
1314
|
key: "getTagsForModule",
|
|
1197
|
-
get: /**
|
|
1315
|
+
get: /**
|
|
1316
|
+
* Configured pass-through for {@link zohoCrmGetTagsForModule}.
|
|
1317
|
+
*
|
|
1318
|
+
* @returns bound get tags for module function
|
|
1319
|
+
*/ function get() {
|
|
1198
1320
|
return zoho.zohoCrmGetTagsForModule(this.crmContext);
|
|
1199
1321
|
}
|
|
1200
1322
|
},
|
|
1201
1323
|
{
|
|
1202
1324
|
key: "addTagsToRecords",
|
|
1203
|
-
get: /**
|
|
1325
|
+
get: /**
|
|
1326
|
+
* Configured pass-through for {@link zohoCrmAddTagsToRecords}.
|
|
1327
|
+
*
|
|
1328
|
+
* @returns bound add tags to records function
|
|
1329
|
+
*/ function get() {
|
|
1204
1330
|
return zoho.zohoCrmAddTagsToRecords(this.crmContext);
|
|
1205
1331
|
}
|
|
1206
1332
|
},
|
|
1207
1333
|
{
|
|
1208
1334
|
key: "removeTagsFromRecords",
|
|
1209
|
-
get: /**
|
|
1335
|
+
get: /**
|
|
1336
|
+
* Configured pass-through for {@link zohoCrmRemoveTagsFromRecords}.
|
|
1337
|
+
*
|
|
1338
|
+
* @returns bound remove tags from records function
|
|
1339
|
+
*/ function get() {
|
|
1210
1340
|
return zoho.zohoCrmRemoveTagsFromRecords(this.crmContext);
|
|
1211
1341
|
}
|
|
1212
1342
|
}
|
|
@@ -1415,6 +1545,8 @@ function _define_property$7(obj, key, value) {
|
|
|
1415
1545
|
key: "assertValidConfig",
|
|
1416
1546
|
value: /**
|
|
1417
1547
|
* Validates that the required Zoho Recruit connection fields are present and well-formed.
|
|
1548
|
+
*
|
|
1549
|
+
* @param config - the Recruit service config to validate
|
|
1418
1550
|
*/ function assertValidConfig(config) {
|
|
1419
1551
|
assertValidZohoConfig(config.zohoRecruit);
|
|
1420
1552
|
}
|
|
@@ -1513,6 +1645,8 @@ function _object_spread_props$2(target, source) {
|
|
|
1513
1645
|
key: "recruitContext",
|
|
1514
1646
|
get: /**
|
|
1515
1647
|
* The authenticated Recruit context used by all operation accessors.
|
|
1648
|
+
*
|
|
1649
|
+
* @returns the Recruit context from the underlying client
|
|
1516
1650
|
*/ function get() {
|
|
1517
1651
|
return this.zohoRecruit.recruitContext;
|
|
1518
1652
|
}
|
|
@@ -1521,6 +1655,8 @@ function _object_spread_props$2(target, source) {
|
|
|
1521
1655
|
key: "zohoRateLimiter",
|
|
1522
1656
|
get: /**
|
|
1523
1657
|
* Rate limiter shared across all Recruit requests to respect Zoho API quotas.
|
|
1658
|
+
*
|
|
1659
|
+
* @returns the shared rate limiter instance
|
|
1524
1660
|
*/ function get() {
|
|
1525
1661
|
return this.zohoRecruit.recruitContext.zohoRateLimiter;
|
|
1526
1662
|
}
|
|
@@ -1528,187 +1664,311 @@ function _object_spread_props$2(target, source) {
|
|
|
1528
1664
|
{
|
|
1529
1665
|
key: "insertRecord",
|
|
1530
1666
|
get: // MARK: Accessors
|
|
1531
|
-
/**
|
|
1667
|
+
/**
|
|
1668
|
+
* Configured pass-through for {@link zohoRecruitInsertRecord}.
|
|
1669
|
+
*
|
|
1670
|
+
* @returns bound insert record function
|
|
1671
|
+
*/ function get() {
|
|
1532
1672
|
return zoho.zohoRecruitInsertRecord(this.recruitContext);
|
|
1533
1673
|
}
|
|
1534
1674
|
},
|
|
1535
1675
|
{
|
|
1536
1676
|
key: "upsertRecord",
|
|
1537
|
-
get: /**
|
|
1677
|
+
get: /**
|
|
1678
|
+
* Configured pass-through for {@link zohoRecruitUpsertRecord}.
|
|
1679
|
+
*
|
|
1680
|
+
* @returns bound upsert record function
|
|
1681
|
+
*/ function get() {
|
|
1538
1682
|
return zoho.zohoRecruitUpsertRecord(this.recruitContext);
|
|
1539
1683
|
}
|
|
1540
1684
|
},
|
|
1541
1685
|
{
|
|
1542
1686
|
key: "updateRecord",
|
|
1543
|
-
get: /**
|
|
1687
|
+
get: /**
|
|
1688
|
+
* Configured pass-through for {@link zohoRecruitUpdateRecord}.
|
|
1689
|
+
*
|
|
1690
|
+
* @returns bound update record function
|
|
1691
|
+
*/ function get() {
|
|
1544
1692
|
return zoho.zohoRecruitUpdateRecord(this.recruitContext);
|
|
1545
1693
|
}
|
|
1546
1694
|
},
|
|
1547
1695
|
{
|
|
1548
1696
|
key: "deleteRecord",
|
|
1549
|
-
get: /**
|
|
1697
|
+
get: /**
|
|
1698
|
+
* Configured pass-through for {@link zohoRecruitDeleteRecord}.
|
|
1699
|
+
*
|
|
1700
|
+
* @returns bound delete record function
|
|
1701
|
+
*/ function get() {
|
|
1550
1702
|
return zoho.zohoRecruitDeleteRecord(this.recruitContext);
|
|
1551
1703
|
}
|
|
1552
1704
|
},
|
|
1553
1705
|
{
|
|
1554
1706
|
key: "getRecordById",
|
|
1555
|
-
get: /**
|
|
1707
|
+
get: /**
|
|
1708
|
+
* Configured pass-through for {@link zohoRecruitGetRecordById}.
|
|
1709
|
+
*
|
|
1710
|
+
* @returns bound get record by ID function
|
|
1711
|
+
*/ function get() {
|
|
1556
1712
|
return zoho.zohoRecruitGetRecordById(this.recruitContext);
|
|
1557
1713
|
}
|
|
1558
1714
|
},
|
|
1559
1715
|
{
|
|
1560
1716
|
key: "getRecords",
|
|
1561
|
-
get: /**
|
|
1717
|
+
get: /**
|
|
1718
|
+
* Configured pass-through for {@link zohoRecruitGetRecords}.
|
|
1719
|
+
*
|
|
1720
|
+
* @returns bound get records function
|
|
1721
|
+
*/ function get() {
|
|
1562
1722
|
return zoho.zohoRecruitGetRecords(this.recruitContext);
|
|
1563
1723
|
}
|
|
1564
1724
|
},
|
|
1565
1725
|
{
|
|
1566
1726
|
key: "searchRecords",
|
|
1567
|
-
get: /**
|
|
1727
|
+
get: /**
|
|
1728
|
+
* Configured pass-through for {@link zohoRecruitSearchRecords}.
|
|
1729
|
+
*
|
|
1730
|
+
* @returns bound search records function
|
|
1731
|
+
*/ function get() {
|
|
1568
1732
|
return zoho.zohoRecruitSearchRecords(this.recruitContext);
|
|
1569
1733
|
}
|
|
1570
1734
|
},
|
|
1571
1735
|
{
|
|
1572
1736
|
key: "searchRecordsPageFactory",
|
|
1573
|
-
get: /**
|
|
1737
|
+
get: /**
|
|
1738
|
+
* Configured pass-through for {@link zohoRecruitSearchRecordsPageFactory}.
|
|
1739
|
+
*
|
|
1740
|
+
* @returns bound search records page factory function
|
|
1741
|
+
*/ function get() {
|
|
1574
1742
|
return zoho.zohoRecruitSearchRecordsPageFactory(this.recruitContext);
|
|
1575
1743
|
}
|
|
1576
1744
|
},
|
|
1577
1745
|
{
|
|
1578
1746
|
key: "getRelatedRecordsFunctionFactory",
|
|
1579
|
-
get: /**
|
|
1747
|
+
get: /**
|
|
1748
|
+
* Configured pass-through for {@link zohoRecruitGetRelatedRecordsFunctionFactory}.
|
|
1749
|
+
*
|
|
1750
|
+
* @returns bound get related records factory function
|
|
1751
|
+
*/ function get() {
|
|
1580
1752
|
return zoho.zohoRecruitGetRelatedRecordsFunctionFactory(this.recruitContext);
|
|
1581
1753
|
}
|
|
1582
1754
|
},
|
|
1583
1755
|
{
|
|
1584
1756
|
key: "getEmailsForRecord",
|
|
1585
|
-
get: /**
|
|
1757
|
+
get: /**
|
|
1758
|
+
* Configured pass-through for {@link zohoRecruitGetEmailsForRecord}.
|
|
1759
|
+
*
|
|
1760
|
+
* @returns bound get emails for record function
|
|
1761
|
+
*/ function get() {
|
|
1586
1762
|
return zoho.zohoRecruitGetEmailsForRecord(this.recruitContext);
|
|
1587
1763
|
}
|
|
1588
1764
|
},
|
|
1589
1765
|
{
|
|
1590
1766
|
key: "getEmailsForRecordPageFactory",
|
|
1591
|
-
get: /**
|
|
1767
|
+
get: /**
|
|
1768
|
+
* Configured pass-through for {@link zohoRecruitGetEmailsForRecordPageFactory}.
|
|
1769
|
+
*
|
|
1770
|
+
* @returns bound get emails page factory function
|
|
1771
|
+
*/ function get() {
|
|
1592
1772
|
return zoho.zohoRecruitGetEmailsForRecordPageFactory(this.recruitContext);
|
|
1593
1773
|
}
|
|
1594
1774
|
},
|
|
1595
1775
|
{
|
|
1596
1776
|
key: "getAttachmentsForRecord",
|
|
1597
|
-
get: /**
|
|
1777
|
+
get: /**
|
|
1778
|
+
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecord}.
|
|
1779
|
+
*
|
|
1780
|
+
* @returns bound get attachments for record function
|
|
1781
|
+
*/ function get() {
|
|
1598
1782
|
return zoho.zohoRecruitGetAttachmentsForRecord(this.recruitContext);
|
|
1599
1783
|
}
|
|
1600
1784
|
},
|
|
1601
1785
|
{
|
|
1602
1786
|
key: "getAttachmentsForRecordPageFactory",
|
|
1603
|
-
get: /**
|
|
1787
|
+
get: /**
|
|
1788
|
+
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecordPageFactory}.
|
|
1789
|
+
*
|
|
1790
|
+
* @returns bound get attachments page factory function
|
|
1791
|
+
*/ function get() {
|
|
1604
1792
|
return zoho.zohoRecruitGetAttachmentsForRecordPageFactory(this.recruitContext);
|
|
1605
1793
|
}
|
|
1606
1794
|
},
|
|
1607
1795
|
{
|
|
1608
1796
|
key: "uploadAttachmentForRecord",
|
|
1609
|
-
get: /**
|
|
1797
|
+
get: /**
|
|
1798
|
+
* Configured pass-through for {@link zohoRecruitUploadAttachmentForRecord}.
|
|
1799
|
+
*
|
|
1800
|
+
* @returns bound upload attachment function
|
|
1801
|
+
*/ function get() {
|
|
1610
1802
|
return zoho.zohoRecruitUploadAttachmentForRecord(this.recruitContext);
|
|
1611
1803
|
}
|
|
1612
1804
|
},
|
|
1613
1805
|
{
|
|
1614
1806
|
key: "downloadAttachmentForRecord",
|
|
1615
|
-
get: /**
|
|
1807
|
+
get: /**
|
|
1808
|
+
* Configured pass-through for {@link zohoRecruitDownloadAttachmentForRecord}.
|
|
1809
|
+
*
|
|
1810
|
+
* @returns bound download attachment function
|
|
1811
|
+
*/ function get() {
|
|
1616
1812
|
return zoho.zohoRecruitDownloadAttachmentForRecord(this.recruitContext);
|
|
1617
1813
|
}
|
|
1618
1814
|
},
|
|
1619
1815
|
{
|
|
1620
1816
|
key: "deleteAttachmentFromRecord",
|
|
1621
|
-
get: /**
|
|
1817
|
+
get: /**
|
|
1818
|
+
* Configured pass-through for {@link zohoRecruitDeleteAttachmentFromRecord}.
|
|
1819
|
+
*
|
|
1820
|
+
* @returns bound delete attachment function
|
|
1821
|
+
*/ function get() {
|
|
1622
1822
|
return zoho.zohoRecruitDeleteAttachmentFromRecord(this.recruitContext);
|
|
1623
1823
|
}
|
|
1624
1824
|
},
|
|
1625
1825
|
{
|
|
1626
1826
|
key: "createNotes",
|
|
1627
|
-
get: /**
|
|
1827
|
+
get: /**
|
|
1828
|
+
* Configured pass-through for {@link zohoRecruitCreateNotes}.
|
|
1829
|
+
*
|
|
1830
|
+
* @returns bound create notes function
|
|
1831
|
+
*/ function get() {
|
|
1628
1832
|
return zoho.zohoRecruitCreateNotes(this.recruitContext);
|
|
1629
1833
|
}
|
|
1630
1834
|
},
|
|
1631
1835
|
{
|
|
1632
1836
|
key: "deleteNotes",
|
|
1633
|
-
get: /**
|
|
1837
|
+
get: /**
|
|
1838
|
+
* Configured pass-through for {@link zohoRecruitDeleteNotes}.
|
|
1839
|
+
*
|
|
1840
|
+
* @returns bound delete notes function
|
|
1841
|
+
*/ function get() {
|
|
1634
1842
|
return zoho.zohoRecruitDeleteNotes(this.recruitContext);
|
|
1635
1843
|
}
|
|
1636
1844
|
},
|
|
1637
1845
|
{
|
|
1638
1846
|
key: "createNotesForRecord",
|
|
1639
|
-
get: /**
|
|
1847
|
+
get: /**
|
|
1848
|
+
* Configured pass-through for {@link zohoRecruitCreateNotesForRecord}.
|
|
1849
|
+
*
|
|
1850
|
+
* @returns bound create notes for record function
|
|
1851
|
+
*/ function get() {
|
|
1640
1852
|
return zoho.zohoRecruitCreateNotesForRecord(this.recruitContext);
|
|
1641
1853
|
}
|
|
1642
1854
|
},
|
|
1643
1855
|
{
|
|
1644
1856
|
key: "getNotesForRecord",
|
|
1645
|
-
get: /**
|
|
1857
|
+
get: /**
|
|
1858
|
+
* Configured pass-through for {@link zohoRecruitGetNotesForRecord}.
|
|
1859
|
+
*
|
|
1860
|
+
* @returns bound get notes for record function
|
|
1861
|
+
*/ function get() {
|
|
1646
1862
|
return zoho.zohoRecruitGetNotesForRecord(this.recruitContext);
|
|
1647
1863
|
}
|
|
1648
1864
|
},
|
|
1649
1865
|
{
|
|
1650
1866
|
key: "getNotesForRecordPageFactory",
|
|
1651
|
-
get: /**
|
|
1867
|
+
get: /**
|
|
1868
|
+
* Configured pass-through for {@link zohoRecruitGetNotesForRecordPageFactory}.
|
|
1869
|
+
*
|
|
1870
|
+
* @returns bound get notes page factory function
|
|
1871
|
+
*/ function get() {
|
|
1652
1872
|
return zoho.zohoRecruitGetNotesForRecordPageFactory(this.recruitContext);
|
|
1653
1873
|
}
|
|
1654
1874
|
},
|
|
1655
1875
|
{
|
|
1656
1876
|
key: "executeRestApiFunction",
|
|
1657
|
-
get: /**
|
|
1877
|
+
get: /**
|
|
1878
|
+
* Configured pass-through for {@link zohoRecruitExecuteRestApiFunction}.
|
|
1879
|
+
*
|
|
1880
|
+
* @returns bound execute REST API function
|
|
1881
|
+
*/ function get() {
|
|
1658
1882
|
return zoho.zohoRecruitExecuteRestApiFunction(this.recruitContext);
|
|
1659
1883
|
}
|
|
1660
1884
|
},
|
|
1661
1885
|
{
|
|
1662
1886
|
key: "associateCandidateRecordsWithJobOpenings",
|
|
1663
|
-
get: /**
|
|
1887
|
+
get: /**
|
|
1888
|
+
* Configured pass-through for {@link zohoRecruitAssociateCandidateRecordsWithJobOpenings}.
|
|
1889
|
+
*
|
|
1890
|
+
* @returns bound associate candidates with job openings function
|
|
1891
|
+
*/ function get() {
|
|
1664
1892
|
return zoho.zohoRecruitAssociateCandidateRecordsWithJobOpenings(this.recruitContext);
|
|
1665
1893
|
}
|
|
1666
1894
|
},
|
|
1667
1895
|
{
|
|
1668
1896
|
key: "searchCandidateAssociatedJobOpeningRecords",
|
|
1669
|
-
get: /**
|
|
1897
|
+
get: /**
|
|
1898
|
+
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecords}.
|
|
1899
|
+
*
|
|
1900
|
+
* @returns bound search candidate associated job openings function
|
|
1901
|
+
*/ function get() {
|
|
1670
1902
|
return zoho.zohoRecruitSearchCandidateAssociatedJobOpeningRecords(this.recruitContext);
|
|
1671
1903
|
}
|
|
1672
1904
|
},
|
|
1673
1905
|
{
|
|
1674
1906
|
key: "searchCandidateAssociatedJobOpeningRecordsPageFactory",
|
|
1675
|
-
get: /**
|
|
1907
|
+
get: /**
|
|
1908
|
+
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory}.
|
|
1909
|
+
*
|
|
1910
|
+
* @returns bound search candidate job openings page factory function
|
|
1911
|
+
*/ function get() {
|
|
1676
1912
|
return zoho.zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory(this.recruitContext);
|
|
1677
1913
|
}
|
|
1678
1914
|
},
|
|
1679
1915
|
{
|
|
1680
1916
|
key: "searchJobOpeningAssociatedCandidateRecords",
|
|
1681
|
-
get: /**
|
|
1917
|
+
get: /**
|
|
1918
|
+
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecords}.
|
|
1919
|
+
*
|
|
1920
|
+
* @returns bound search job opening associated candidates function
|
|
1921
|
+
*/ function get() {
|
|
1682
1922
|
return zoho.zohoRecruitSearchJobOpeningAssociatedCandidateRecords(this.recruitContext);
|
|
1683
1923
|
}
|
|
1684
1924
|
},
|
|
1685
1925
|
{
|
|
1686
1926
|
key: "searchJobOpeningAssociatedCandidateRecordsPageFactory",
|
|
1687
|
-
get: /**
|
|
1927
|
+
get: /**
|
|
1928
|
+
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory}.
|
|
1929
|
+
*
|
|
1930
|
+
* @returns bound search job opening candidates page factory function
|
|
1931
|
+
*/ function get() {
|
|
1688
1932
|
return zoho.zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory(this.recruitContext);
|
|
1689
1933
|
}
|
|
1690
1934
|
},
|
|
1691
1935
|
{
|
|
1692
1936
|
key: "createTagsForModule",
|
|
1693
|
-
get: /**
|
|
1937
|
+
get: /**
|
|
1938
|
+
* Configured pass-through for {@link zohoRecruitCreateTagsForModule}.
|
|
1939
|
+
*
|
|
1940
|
+
* @returns bound create tags for module function
|
|
1941
|
+
*/ function get() {
|
|
1694
1942
|
return zoho.zohoRecruitCreateTagsForModule(this.recruitContext);
|
|
1695
1943
|
}
|
|
1696
1944
|
},
|
|
1697
1945
|
{
|
|
1698
1946
|
key: "getTagsForModule",
|
|
1699
|
-
get: /**
|
|
1947
|
+
get: /**
|
|
1948
|
+
* Configured pass-through for {@link zohoRecruitGetTagsForModule}.
|
|
1949
|
+
*
|
|
1950
|
+
* @returns bound get tags for module function
|
|
1951
|
+
*/ function get() {
|
|
1700
1952
|
return zoho.zohoRecruitGetTagsForModule(this.recruitContext);
|
|
1701
1953
|
}
|
|
1702
1954
|
},
|
|
1703
1955
|
{
|
|
1704
1956
|
key: "addTagsToRecords",
|
|
1705
|
-
get: /**
|
|
1957
|
+
get: /**
|
|
1958
|
+
* Configured pass-through for {@link zohoRecruitAddTagsToRecords}.
|
|
1959
|
+
*
|
|
1960
|
+
* @returns bound add tags to records function
|
|
1961
|
+
*/ function get() {
|
|
1706
1962
|
return zoho.zohoRecruitAddTagsToRecords(this.recruitContext);
|
|
1707
1963
|
}
|
|
1708
1964
|
},
|
|
1709
1965
|
{
|
|
1710
1966
|
key: "removeTagsFromRecords",
|
|
1711
|
-
get: /**
|
|
1967
|
+
get: /**
|
|
1968
|
+
* Configured pass-through for {@link zohoRecruitRemoveTagsFromRecords}.
|
|
1969
|
+
*
|
|
1970
|
+
* @returns bound remove tags from records function
|
|
1971
|
+
*/ function get() {
|
|
1712
1972
|
return zoho.zohoRecruitRemoveTagsFromRecords(this.recruitContext);
|
|
1713
1973
|
}
|
|
1714
1974
|
}
|
|
@@ -2006,6 +2266,8 @@ function _object_spread_props$1(target, source) {
|
|
|
2006
2266
|
key: "signContext",
|
|
2007
2267
|
get: /**
|
|
2008
2268
|
* The authenticated Sign context used by all operation accessors.
|
|
2269
|
+
*
|
|
2270
|
+
* @returns the Sign context from the underlying client
|
|
2009
2271
|
*/ function get() {
|
|
2010
2272
|
return this.zohoSign.signContext;
|
|
2011
2273
|
}
|
|
@@ -2014,6 +2276,8 @@ function _object_spread_props$1(target, source) {
|
|
|
2014
2276
|
key: "zohoRateLimiter",
|
|
2015
2277
|
get: /**
|
|
2016
2278
|
* Rate limiter shared across all Sign requests to respect Zoho API quotas.
|
|
2279
|
+
*
|
|
2280
|
+
* @returns the shared rate limiter instance
|
|
2017
2281
|
*/ function get() {
|
|
2018
2282
|
return this.zohoSign.signContext.zohoRateLimiter;
|
|
2019
2283
|
}
|
|
@@ -2021,73 +2285,121 @@ function _object_spread_props$1(target, source) {
|
|
|
2021
2285
|
{
|
|
2022
2286
|
key: "getDocument",
|
|
2023
2287
|
get: // MARK: Accessors
|
|
2024
|
-
/**
|
|
2288
|
+
/**
|
|
2289
|
+
* Configured pass-through for {@link zohoSignGetDocument}.
|
|
2290
|
+
*
|
|
2291
|
+
* @returns bound get document function
|
|
2292
|
+
*/ function get() {
|
|
2025
2293
|
return zoho.zohoSignGetDocument(this.signContext);
|
|
2026
2294
|
}
|
|
2027
2295
|
},
|
|
2028
2296
|
{
|
|
2029
2297
|
key: "getDocuments",
|
|
2030
|
-
get: /**
|
|
2298
|
+
get: /**
|
|
2299
|
+
* Configured pass-through for {@link zohoSignGetDocuments}.
|
|
2300
|
+
*
|
|
2301
|
+
* @returns bound get documents function
|
|
2302
|
+
*/ function get() {
|
|
2031
2303
|
return zoho.zohoSignGetDocuments(this.signContext);
|
|
2032
2304
|
}
|
|
2033
2305
|
},
|
|
2034
2306
|
{
|
|
2035
2307
|
key: "getDocumentsPageFactory",
|
|
2036
|
-
get: /**
|
|
2308
|
+
get: /**
|
|
2309
|
+
* Configured pass-through for {@link zohoSignGetDocumentsPageFactory}.
|
|
2310
|
+
*
|
|
2311
|
+
* @returns bound get documents page factory function
|
|
2312
|
+
*/ function get() {
|
|
2037
2313
|
return zoho.zohoSignGetDocumentsPageFactory(this.signContext);
|
|
2038
2314
|
}
|
|
2039
2315
|
},
|
|
2040
2316
|
{
|
|
2041
2317
|
key: "getDocumentFormData",
|
|
2042
|
-
get: /**
|
|
2318
|
+
get: /**
|
|
2319
|
+
* Configured pass-through for {@link zohoSignGetDocumentFormData}.
|
|
2320
|
+
*
|
|
2321
|
+
* @returns bound get document form data function
|
|
2322
|
+
*/ function get() {
|
|
2043
2323
|
return zoho.zohoSignGetDocumentFormData(this.signContext);
|
|
2044
2324
|
}
|
|
2045
2325
|
},
|
|
2046
2326
|
{
|
|
2047
2327
|
key: "retrieveFieldTypes",
|
|
2048
|
-
get: /**
|
|
2328
|
+
get: /**
|
|
2329
|
+
* Configured pass-through for {@link zohoSignRetrieveFieldTypes}.
|
|
2330
|
+
*
|
|
2331
|
+
* @returns bound retrieve field types function
|
|
2332
|
+
*/ function get() {
|
|
2049
2333
|
return zoho.zohoSignRetrieveFieldTypes(this.signContext);
|
|
2050
2334
|
}
|
|
2051
2335
|
},
|
|
2052
2336
|
{
|
|
2053
2337
|
key: "downloadPdf",
|
|
2054
|
-
get: /**
|
|
2338
|
+
get: /**
|
|
2339
|
+
* Configured pass-through for {@link zohoSignDownloadPdf}.
|
|
2340
|
+
*
|
|
2341
|
+
* @returns bound download PDF function
|
|
2342
|
+
*/ function get() {
|
|
2055
2343
|
return zoho.zohoSignDownloadPdf(this.signContext);
|
|
2056
2344
|
}
|
|
2057
2345
|
},
|
|
2058
2346
|
{
|
|
2059
2347
|
key: "downloadCompletionCertificate",
|
|
2060
|
-
get: /**
|
|
2348
|
+
get: /**
|
|
2349
|
+
* Configured pass-through for {@link zohoSignDownloadCompletionCertificate}.
|
|
2350
|
+
*
|
|
2351
|
+
* @returns bound download completion certificate function
|
|
2352
|
+
*/ function get() {
|
|
2061
2353
|
return zoho.zohoSignDownloadCompletionCertificate(this.signContext);
|
|
2062
2354
|
}
|
|
2063
2355
|
},
|
|
2064
2356
|
{
|
|
2065
2357
|
key: "createDocument",
|
|
2066
|
-
get: /**
|
|
2358
|
+
get: /**
|
|
2359
|
+
* Configured pass-through for {@link zohoSignCreateDocument}.
|
|
2360
|
+
*
|
|
2361
|
+
* @returns bound create document function
|
|
2362
|
+
*/ function get() {
|
|
2067
2363
|
return zoho.zohoSignCreateDocument(this.signContext);
|
|
2068
2364
|
}
|
|
2069
2365
|
},
|
|
2070
2366
|
{
|
|
2071
2367
|
key: "updateDocument",
|
|
2072
|
-
get: /**
|
|
2368
|
+
get: /**
|
|
2369
|
+
* Configured pass-through for {@link zohoSignUpdateDocument}.
|
|
2370
|
+
*
|
|
2371
|
+
* @returns bound update document function
|
|
2372
|
+
*/ function get() {
|
|
2073
2373
|
return zoho.zohoSignUpdateDocument(this.signContext);
|
|
2074
2374
|
}
|
|
2075
2375
|
},
|
|
2076
2376
|
{
|
|
2077
2377
|
key: "sendDocumentForSignature",
|
|
2078
|
-
get: /**
|
|
2378
|
+
get: /**
|
|
2379
|
+
* Configured pass-through for {@link zohoSignSendDocumentForSignature}.
|
|
2380
|
+
*
|
|
2381
|
+
* @returns bound send document for signature function
|
|
2382
|
+
*/ function get() {
|
|
2079
2383
|
return zoho.zohoSignSendDocumentForSignature(this.signContext);
|
|
2080
2384
|
}
|
|
2081
2385
|
},
|
|
2082
2386
|
{
|
|
2083
2387
|
key: "extendDocument",
|
|
2084
|
-
get: /**
|
|
2388
|
+
get: /**
|
|
2389
|
+
* Configured pass-through for {@link zohoSignExtendDocument}.
|
|
2390
|
+
*
|
|
2391
|
+
* @returns bound extend document function
|
|
2392
|
+
*/ function get() {
|
|
2085
2393
|
return zoho.zohoSignExtendDocument(this.signContext);
|
|
2086
2394
|
}
|
|
2087
2395
|
},
|
|
2088
2396
|
{
|
|
2089
2397
|
key: "deleteDocument",
|
|
2090
|
-
get: /**
|
|
2398
|
+
get: /**
|
|
2399
|
+
* Configured pass-through for {@link zohoSignDeleteDocument}.
|
|
2400
|
+
*
|
|
2401
|
+
* @returns bound delete document function
|
|
2402
|
+
*/ function get() {
|
|
2091
2403
|
return zoho.zohoSignDeleteDocument(this.signContext);
|
|
2092
2404
|
}
|
|
2093
2405
|
}
|
|
@@ -2295,6 +2607,9 @@ function _object_spread_props(target, source) {
|
|
|
2295
2607
|
}
|
|
2296
2608
|
/**
|
|
2297
2609
|
* Creates a {@link ZohoSignWebhookEvent} from a raw payload.
|
|
2610
|
+
*
|
|
2611
|
+
* @param payload - the raw Zoho Sign webhook payload to convert
|
|
2612
|
+
* @returns a webhook event with the operation type extracted for convenience
|
|
2298
2613
|
*/ function zohoSignWebhookEvent(payload) {
|
|
2299
2614
|
return _object_spread_props(_object_spread({}, payload), {
|
|
2300
2615
|
operationType: payload.notifications.operation_type
|
|
@@ -2305,7 +2620,6 @@ var zohoSignEventHandlerFactory = util.handlerFactory(function(x) {
|
|
|
2305
2620
|
});
|
|
2306
2621
|
var zohoSignEventHandlerConfigurerFactory = util.handlerConfigurerFactory({
|
|
2307
2622
|
configurerForAccessor: function configurerForAccessor(accessor) {
|
|
2308
|
-
// eslint-disable-next-line
|
|
2309
2623
|
var fnWithKey = util.handlerMappedSetFunctionFactory(accessor, function(x) {
|
|
2310
2624
|
return x;
|
|
2311
2625
|
});
|