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