@dereekb/zoho 12.4.3 → 12.4.5
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 +44 -14
- package/index.esm.js +42 -15
- package/nestjs/CHANGELOG.md +8 -0
- package/nestjs/package.json +1 -1
- package/package.json +1 -1
- package/src/lib/recruit/recruit.api.d.ts +6 -0
- package/src/lib/recruit/recruit.api.tags.d.ts +10 -0
package/index.cjs.js
CHANGED
|
@@ -2335,6 +2335,13 @@ function parseZohoRecruitServerErrorResponseData(errorResponseData, responseErro
|
|
|
2335
2335
|
const interceptZohoRecruit200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoRecruitServerErrorResponseData);
|
|
2336
2336
|
const handleZohoRecruitErrorFetch = handleZohoErrorFetchFactory(parseZohoRecruitError, logZohoRecruitErrorToConsole);
|
|
2337
2337
|
|
|
2338
|
+
// MARK: Insert/Update/Upsert Response
|
|
2339
|
+
/**
|
|
2340
|
+
* The maximum number of records allowed for most CRUD functions.
|
|
2341
|
+
*
|
|
2342
|
+
* This is a limit enforced by the Zoho Recruit API
|
|
2343
|
+
*/
|
|
2344
|
+
const ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT = 100;
|
|
2338
2345
|
/**
|
|
2339
2346
|
* The APIs for Insert, Upsert, and Update have the same structure.
|
|
2340
2347
|
*
|
|
@@ -2849,6 +2856,11 @@ function getTagsForModule(context) {
|
|
|
2849
2856
|
function getTagsForModulePageFactory(context) {
|
|
2850
2857
|
return zohoFetchPageFactory(getTagsForModule(context));
|
|
2851
2858
|
}
|
|
2859
|
+
// MARK: Add Tag To Record
|
|
2860
|
+
/**
|
|
2861
|
+
* Limit enforced by Zoho Recruit
|
|
2862
|
+
*/
|
|
2863
|
+
const ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
2852
2864
|
/**
|
|
2853
2865
|
* Adds one or more tags to one or more records.
|
|
2854
2866
|
*
|
|
@@ -2858,14 +2870,24 @@ function getTagsForModulePageFactory(context) {
|
|
|
2858
2870
|
* @returns
|
|
2859
2871
|
*/
|
|
2860
2872
|
function addTagsToRecords(context) {
|
|
2861
|
-
return input =>
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2873
|
+
return input => {
|
|
2874
|
+
if (Array.isArray(input.ids) && input.ids.length > ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED) {
|
|
2875
|
+
throw new Error(`Cannot add tags to more than ${ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED} records at once.`);
|
|
2876
|
+
}
|
|
2877
|
+
return context.fetchJson(`/v2/${ZOHO_RECRUIT_CANDIDATES_MODULE}/actions/add_tags?${fetch.makeUrlSearchParams({
|
|
2878
|
+
tag_names: input.tag_names,
|
|
2879
|
+
ids: input.ids
|
|
2880
|
+
})}`, zohoRecruitApiFetchJsonInput('POST')).then(x => {
|
|
2881
|
+
const resultInputMap = x.data.map(() => input); // assign "input" to each value for now
|
|
2882
|
+
return zohoRecruitMultiRecordResult(resultInputMap, x.data);
|
|
2883
|
+
});
|
|
2884
|
+
};
|
|
2868
2885
|
}
|
|
2886
|
+
// MARK: Remove Tag From Record
|
|
2887
|
+
/**
|
|
2888
|
+
* Limit enforced by Zoho Recruit
|
|
2889
|
+
*/
|
|
2890
|
+
const ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
2869
2891
|
/**
|
|
2870
2892
|
* Removes one or more tags from one or more records.
|
|
2871
2893
|
*
|
|
@@ -2875,13 +2897,18 @@ function addTagsToRecords(context) {
|
|
|
2875
2897
|
* @returns
|
|
2876
2898
|
*/
|
|
2877
2899
|
function removeTagsFromRecords(context) {
|
|
2878
|
-
return input =>
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2900
|
+
return input => {
|
|
2901
|
+
if (Array.isArray(input.ids) && input.ids.length > ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED) {
|
|
2902
|
+
throw new Error(`Cannot remove tags from more than ${ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED} records at once.`);
|
|
2903
|
+
}
|
|
2904
|
+
return context.fetchJson(`/v2/${ZOHO_RECRUIT_CANDIDATES_MODULE}/actions/remove_tags?${fetch.makeUrlSearchParams({
|
|
2905
|
+
tag_names: input.tag_names,
|
|
2906
|
+
ids: input.ids
|
|
2907
|
+
})}`, zohoRecruitApiFetchJsonInput('POST')).then(x => {
|
|
2908
|
+
const resultInputMap = x.data.map(() => input); // assign "input" to each value for now
|
|
2909
|
+
return zohoRecruitMultiRecordResult(resultInputMap, x.data);
|
|
2910
|
+
});
|
|
2911
|
+
};
|
|
2885
2912
|
}
|
|
2886
2913
|
|
|
2887
2914
|
/**
|
|
@@ -3287,14 +3314,17 @@ exports.ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE = ZOHO_MANDATORY_NOT_FOUND_ERROR_COD
|
|
|
3287
3314
|
exports.ZOHO_RATE_LIMIT_LIMIT_HEADER = ZOHO_RATE_LIMIT_LIMIT_HEADER;
|
|
3288
3315
|
exports.ZOHO_RATE_LIMIT_REMAINING_HEADER = ZOHO_RATE_LIMIT_REMAINING_HEADER;
|
|
3289
3316
|
exports.ZOHO_RATE_LIMIT_RESET_HEADER = ZOHO_RATE_LIMIT_RESET_HEADER;
|
|
3317
|
+
exports.ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED = ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED;
|
|
3290
3318
|
exports.ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE = ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE;
|
|
3291
3319
|
exports.ZOHO_RECRUIT_ATTACHMENTS_MODULE = ZOHO_RECRUIT_ATTACHMENTS_MODULE;
|
|
3292
3320
|
exports.ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE = ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE;
|
|
3293
3321
|
exports.ZOHO_RECRUIT_CANDIDATES_MODULE = ZOHO_RECRUIT_CANDIDATES_MODULE;
|
|
3322
|
+
exports.ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT = ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT;
|
|
3294
3323
|
exports.ZOHO_RECRUIT_EMAILS_MODULE = ZOHO_RECRUIT_EMAILS_MODULE;
|
|
3295
3324
|
exports.ZOHO_RECRUIT_JOB_OPENINGS_MODULE = ZOHO_RECRUIT_JOB_OPENINGS_MODULE;
|
|
3296
3325
|
exports.ZOHO_RECRUIT_NOTES_MODULE = ZOHO_RECRUIT_NOTES_MODULE;
|
|
3297
3326
|
exports.ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME;
|
|
3327
|
+
exports.ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED = ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED;
|
|
3298
3328
|
exports.ZOHO_RECRUIT_SERVICE_NAME = ZOHO_RECRUIT_SERVICE_NAME;
|
|
3299
3329
|
exports.ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH = ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH;
|
|
3300
3330
|
exports.ZOHO_SUCCESS_CODE = ZOHO_SUCCESS_CODE;
|
package/index.esm.js
CHANGED
|
@@ -2333,6 +2333,13 @@ function parseZohoRecruitServerErrorResponseData(errorResponseData, responseErro
|
|
|
2333
2333
|
const interceptZohoRecruit200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoRecruitServerErrorResponseData);
|
|
2334
2334
|
const handleZohoRecruitErrorFetch = handleZohoErrorFetchFactory(parseZohoRecruitError, logZohoRecruitErrorToConsole);
|
|
2335
2335
|
|
|
2336
|
+
// MARK: Insert/Update/Upsert Response
|
|
2337
|
+
/**
|
|
2338
|
+
* The maximum number of records allowed for most CRUD functions.
|
|
2339
|
+
*
|
|
2340
|
+
* This is a limit enforced by the Zoho Recruit API
|
|
2341
|
+
*/
|
|
2342
|
+
const ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT = 100;
|
|
2336
2343
|
/**
|
|
2337
2344
|
* The APIs for Insert, Upsert, and Update have the same structure.
|
|
2338
2345
|
*
|
|
@@ -2847,6 +2854,11 @@ function getTagsForModule(context) {
|
|
|
2847
2854
|
function getTagsForModulePageFactory(context) {
|
|
2848
2855
|
return zohoFetchPageFactory(getTagsForModule(context));
|
|
2849
2856
|
}
|
|
2857
|
+
// MARK: Add Tag To Record
|
|
2858
|
+
/**
|
|
2859
|
+
* Limit enforced by Zoho Recruit
|
|
2860
|
+
*/
|
|
2861
|
+
const ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
2850
2862
|
/**
|
|
2851
2863
|
* Adds one or more tags to one or more records.
|
|
2852
2864
|
*
|
|
@@ -2856,14 +2868,24 @@ function getTagsForModulePageFactory(context) {
|
|
|
2856
2868
|
* @returns
|
|
2857
2869
|
*/
|
|
2858
2870
|
function addTagsToRecords(context) {
|
|
2859
|
-
return input =>
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2871
|
+
return input => {
|
|
2872
|
+
if (Array.isArray(input.ids) && input.ids.length > ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED) {
|
|
2873
|
+
throw new Error(`Cannot add tags to more than ${ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED} records at once.`);
|
|
2874
|
+
}
|
|
2875
|
+
return context.fetchJson(`/v2/${ZOHO_RECRUIT_CANDIDATES_MODULE}/actions/add_tags?${makeUrlSearchParams({
|
|
2876
|
+
tag_names: input.tag_names,
|
|
2877
|
+
ids: input.ids
|
|
2878
|
+
})}`, zohoRecruitApiFetchJsonInput('POST')).then(x => {
|
|
2879
|
+
const resultInputMap = x.data.map(() => input); // assign "input" to each value for now
|
|
2880
|
+
return zohoRecruitMultiRecordResult(resultInputMap, x.data);
|
|
2881
|
+
});
|
|
2882
|
+
};
|
|
2866
2883
|
}
|
|
2884
|
+
// MARK: Remove Tag From Record
|
|
2885
|
+
/**
|
|
2886
|
+
* Limit enforced by Zoho Recruit
|
|
2887
|
+
*/
|
|
2888
|
+
const ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
2867
2889
|
/**
|
|
2868
2890
|
* Removes one or more tags from one or more records.
|
|
2869
2891
|
*
|
|
@@ -2873,13 +2895,18 @@ function addTagsToRecords(context) {
|
|
|
2873
2895
|
* @returns
|
|
2874
2896
|
*/
|
|
2875
2897
|
function removeTagsFromRecords(context) {
|
|
2876
|
-
return input =>
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2898
|
+
return input => {
|
|
2899
|
+
if (Array.isArray(input.ids) && input.ids.length > ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED) {
|
|
2900
|
+
throw new Error(`Cannot remove tags from more than ${ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED} records at once.`);
|
|
2901
|
+
}
|
|
2902
|
+
return context.fetchJson(`/v2/${ZOHO_RECRUIT_CANDIDATES_MODULE}/actions/remove_tags?${makeUrlSearchParams({
|
|
2903
|
+
tag_names: input.tag_names,
|
|
2904
|
+
ids: input.ids
|
|
2905
|
+
})}`, zohoRecruitApiFetchJsonInput('POST')).then(x => {
|
|
2906
|
+
const resultInputMap = x.data.map(() => input); // assign "input" to each value for now
|
|
2907
|
+
return zohoRecruitMultiRecordResult(resultInputMap, x.data);
|
|
2908
|
+
});
|
|
2909
|
+
};
|
|
2883
2910
|
}
|
|
2884
2911
|
|
|
2885
2912
|
/**
|
|
@@ -3266,4 +3293,4 @@ function zohoDateTimeString(date) {
|
|
|
3266
3293
|
return isoDate.substring(0, isoDate.length - 5) + 'Z';
|
|
3267
3294
|
}
|
|
3268
3295
|
|
|
3269
|
-
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, MAX_ZOHO_RECRUIT_SEARCH_MODULE_RECORDS_CRITERIA, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_DUPLICATE_DATA_ERROR_CODE, ZOHO_ERROR_STATUS, ZOHO_FAILURE_ERROR_CODE, ZOHO_INTERNAL_ERROR_CODE, ZOHO_INVALID_AUTHORIZATION_ERROR_CODE, ZOHO_INVALID_DATA_ERROR_CODE, ZOHO_INVALID_QUERY_ERROR_CODE, ZOHO_INVALID_TOKEN_ERROR_CODE, ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE, ZOHO_RATE_LIMIT_LIMIT_HEADER, ZOHO_RATE_LIMIT_REMAINING_HEADER, ZOHO_RATE_LIMIT_RESET_HEADER, ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_RECRUIT_ATTACHMENTS_MODULE, ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE, ZOHO_RECRUIT_CANDIDATES_MODULE, ZOHO_RECRUIT_EMAILS_MODULE, ZOHO_RECRUIT_JOB_OPENINGS_MODULE, ZOHO_RECRUIT_NOTES_MODULE, ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH, ZOHO_SUCCESS_CODE, ZOHO_SUCCESS_STATUS, ZOHO_TOO_MANY_REQUESTS_ERROR_CODE, ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoInvalidTokenError, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, accessToken, addTagsToRecords, assertRecordDataArrayResultHasContent, associateCandidateRecordsWithJobOpenings, createNotes, createNotesForRecord, createTagsForModule, deleteAttachmentFromRecord, deleteNotes, deleteRecord, downloadAttachmentForRecord, emptyZohoPageResult, escapeZohoFieldValueForCriteriaString, executeRestApiFunction, getAttachmentsForRecord, getAttachmentsForRecordPageFactory, getEmailsForRecord, getEmailsForRecordPageFactory, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, getRelatedRecordsFunctionFactory, getTagsForModule, getTagsForModulePageFactory, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord, interceptZohoAccounts200StatusWithErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruit200StatusWithErrorResponse, isZohoRecruitValidUrl, logZohoAccountsErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, removeTagsFromRecords, safeZohoDateTimeString, searchAssociatedRecords, searchCandidateAssociatedJobOpeningRecords, searchCandidateAssociatedJobOpeningRecordsPageFactory, searchJobOpeningAssociatedCandidateRecords, searchJobOpeningAssociatedCandidateRecordsPageFactory, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, uploadAttachmentForRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoDateTimeString, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitApiFetchJsonInput, zohoRecruitChangeObjectLikeResponseSuccessAndErrorPairs, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntriesForEmails, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData };
|
|
3296
|
+
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, MAX_ZOHO_RECRUIT_SEARCH_MODULE_RECORDS_CRITERIA, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_DUPLICATE_DATA_ERROR_CODE, ZOHO_ERROR_STATUS, ZOHO_FAILURE_ERROR_CODE, ZOHO_INTERNAL_ERROR_CODE, ZOHO_INVALID_AUTHORIZATION_ERROR_CODE, ZOHO_INVALID_DATA_ERROR_CODE, ZOHO_INVALID_QUERY_ERROR_CODE, ZOHO_INVALID_TOKEN_ERROR_CODE, ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE, ZOHO_RATE_LIMIT_LIMIT_HEADER, ZOHO_RATE_LIMIT_REMAINING_HEADER, ZOHO_RATE_LIMIT_RESET_HEADER, ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_RECRUIT_ATTACHMENTS_MODULE, ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE, ZOHO_RECRUIT_CANDIDATES_MODULE, ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT, ZOHO_RECRUIT_EMAILS_MODULE, ZOHO_RECRUIT_JOB_OPENINGS_MODULE, ZOHO_RECRUIT_NOTES_MODULE, ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH, ZOHO_SUCCESS_CODE, ZOHO_SUCCESS_STATUS, ZOHO_TOO_MANY_REQUESTS_ERROR_CODE, ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoInvalidTokenError, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, accessToken, addTagsToRecords, assertRecordDataArrayResultHasContent, associateCandidateRecordsWithJobOpenings, createNotes, createNotesForRecord, createTagsForModule, deleteAttachmentFromRecord, deleteNotes, deleteRecord, downloadAttachmentForRecord, emptyZohoPageResult, escapeZohoFieldValueForCriteriaString, executeRestApiFunction, getAttachmentsForRecord, getAttachmentsForRecordPageFactory, getEmailsForRecord, getEmailsForRecordPageFactory, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, getRelatedRecordsFunctionFactory, getTagsForModule, getTagsForModulePageFactory, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord, interceptZohoAccounts200StatusWithErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruit200StatusWithErrorResponse, isZohoRecruitValidUrl, logZohoAccountsErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, removeTagsFromRecords, safeZohoDateTimeString, searchAssociatedRecords, searchCandidateAssociatedJobOpeningRecords, searchCandidateAssociatedJobOpeningRecordsPageFactory, searchJobOpeningAssociatedCandidateRecords, searchJobOpeningAssociatedCandidateRecordsPageFactory, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, uploadAttachmentForRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoDateTimeString, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitApiFetchJsonInput, zohoRecruitChangeObjectLikeResponseSuccessAndErrorPairs, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntriesForEmails, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData };
|
package/nestjs/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [12.4.5](https://github.com/dereekb/dbx-components/compare/v12.4.4-dev...v12.4.5) (2025-09-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [12.4.4](https://github.com/dereekb/dbx-components/compare/v12.4.3-dev...v12.4.4) (2025-09-11)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [12.4.3](https://github.com/dereekb/dbx-components/compare/v12.4.2-dev...v12.4.3) (2025-09-11)
|
|
6
14
|
|
|
7
15
|
|
package/nestjs/package.json
CHANGED
package/package.json
CHANGED
|
@@ -7,6 +7,12 @@ import { ArrayOrValue, EmailAddress, Maybe, PhoneNumber, SortingOrder, UniqueMod
|
|
|
7
7
|
import { ZohoServerErrorDataWithDetails, ZohoServerErrorStatus, ZohoServerSuccessCode, ZohoServerSuccessStatus } from '../zoho.error.api';
|
|
8
8
|
import { ZohoDateTimeString } from '../zoho.type';
|
|
9
9
|
import { BaseError } from 'make-error';
|
|
10
|
+
/**
|
|
11
|
+
* The maximum number of records allowed for most CRUD functions.
|
|
12
|
+
*
|
|
13
|
+
* This is a limit enforced by the Zoho Recruit API
|
|
14
|
+
*/
|
|
15
|
+
export declare const ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT = 100;
|
|
10
16
|
export type ZohoRecruitUpdateRecordResult<T> = ZohoRecruitMultiRecordResult<T, ZohoRecruitChangeObjectResponseSuccessEntry, ZohoRecruitChangeObjectResponseErrorEntry>;
|
|
11
17
|
export type ZohoRecruitUpdateRecordResponse = ZohoRecruitChangeObjectResponse;
|
|
12
18
|
export type ZohoRecruitCreateRecordData<T> = Omit<T, 'id'>;
|
|
@@ -42,6 +42,10 @@ export type ZohoRecruitGetTagsFunction = (input: ZohoRecruitGetTagsRequest) => P
|
|
|
42
42
|
export declare function getTagsForModule(context: ZohoRecruitContext): ZohoRecruitGetTagsFunction;
|
|
43
43
|
export type GetTagsForModulePageFactory = (input: ZohoRecruitGetTagsRequest, options?: Maybe<FetchPageFactoryOptions<ZohoRecruitGetTagsRequest, ZohoRecruitGetTagsResult>>) => FetchPage<ZohoRecruitGetTagsRequest, ZohoRecruitGetTagsResult>;
|
|
44
44
|
export declare function getTagsForModulePageFactory(context: ZohoRecruitContext): GetTagsForModulePageFactory;
|
|
45
|
+
/**
|
|
46
|
+
* Limit enforced by Zoho Recruit
|
|
47
|
+
*/
|
|
48
|
+
export declare const ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
45
49
|
export interface ZohoRecruitAddTagsToRecordsRequest extends ZohoRecruitModuleNameRef {
|
|
46
50
|
/**
|
|
47
51
|
* Tag names to add to the records.
|
|
@@ -49,6 +53,8 @@ export interface ZohoRecruitAddTagsToRecordsRequest extends ZohoRecruitModuleNam
|
|
|
49
53
|
readonly tag_names: ArrayOrValue<ZohoRecruitTagName>;
|
|
50
54
|
/**
|
|
51
55
|
* Ids corresponding to the records in the module to add the tags to.
|
|
56
|
+
*
|
|
57
|
+
* Max of 100 ids.
|
|
52
58
|
*/
|
|
53
59
|
readonly ids: ArrayOrValue<ZohoRecruitRecordId>;
|
|
54
60
|
}
|
|
@@ -84,6 +90,10 @@ export type ZohoRecruitAddTagsToRecordsFunction = (input: ZohoRecruitAddTagsToRe
|
|
|
84
90
|
* @returns
|
|
85
91
|
*/
|
|
86
92
|
export declare function addTagsToRecords(context: ZohoRecruitContext): ZohoRecruitAddTagsToRecordsFunction;
|
|
93
|
+
/**
|
|
94
|
+
* Limit enforced by Zoho Recruit
|
|
95
|
+
*/
|
|
96
|
+
export declare const ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED = 100;
|
|
87
97
|
export type ZohoRecruitRemoveTagsFromRecordsRequest = ZohoRecruitAddTagsToRecordsRequest;
|
|
88
98
|
export type ZohoRecruitRemoveTagsFromRecordsResultDetails = ZohoRecruitAddTagsToRecordsResultDetails;
|
|
89
99
|
export interface ZohoRecruitRemoveTagsFromRecordsSuccessEntry extends ZohoRecruitChangeObjectLikeResponseSuccessEntryMeta {
|