@dereekb/zoho 12.3.5 → 12.3.7
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 +17 -0
- package/index.esm.js +14 -1
- package/nestjs/CHANGELOG.md +8 -0
- package/nestjs/package.json +1 -1
- package/nestjs/src/lib/recruit/recruit.api.d.ts +2 -0
- package/nestjs/src/lib/recruit/recruit.api.js +6 -0
- package/nestjs/src/lib/recruit/recruit.api.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/recruit/recruit.api.d.ts +7 -1
- package/src/lib/recruit/recruit.d.ts +93 -0
package/index.cjs.js
CHANGED
|
@@ -1810,10 +1810,15 @@ const ZOHO_RECRUIT_NOTES_MODULE = 'Notes';
|
|
|
1810
1810
|
* Emails module name
|
|
1811
1811
|
*/
|
|
1812
1812
|
const ZOHO_RECRUIT_EMAILS_MODULE = 'Emails';
|
|
1813
|
+
/**
|
|
1814
|
+
* Attachments module name
|
|
1815
|
+
*/
|
|
1816
|
+
const ZOHO_RECRUIT_ATTACHMENTS_MODULE = 'Attachments';
|
|
1813
1817
|
/**
|
|
1814
1818
|
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
1815
1819
|
*/
|
|
1816
1820
|
const isZohoRecruitValidUrl = util.isStandardInternetAccessibleWebsiteUrl;
|
|
1821
|
+
const ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = 'Resume';
|
|
1817
1822
|
|
|
1818
1823
|
var call$2 = functionCall;
|
|
1819
1824
|
var anObject$2 = anObject$e;
|
|
@@ -2484,6 +2489,14 @@ function getEmailsForRecord(context) {
|
|
|
2484
2489
|
function getEmailsForRecordPageFactory(context) {
|
|
2485
2490
|
return zohoFetchPageFactory(getEmailsForRecord(context));
|
|
2486
2491
|
}
|
|
2492
|
+
function getAttachmentsForRecord(context) {
|
|
2493
|
+
return getRelatedRecordsFunctionFactory(context)({
|
|
2494
|
+
targetModule: ZOHO_RECRUIT_ATTACHMENTS_MODULE
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
function getAttachmentsForRecordPageFactory(context) {
|
|
2498
|
+
return zohoFetchPageFactory(getAttachmentsForRecord(context));
|
|
2499
|
+
}
|
|
2487
2500
|
class ZohoRecruitExecuteRestApiFunctionError extends makeError.BaseError {
|
|
2488
2501
|
constructor(error) {
|
|
2489
2502
|
super(`An error occured during the execution of the function. Code: ${error.code}, Message: ${error.message}`);
|
|
@@ -3140,10 +3153,12 @@ exports.ZOHO_RATE_LIMIT_LIMIT_HEADER = ZOHO_RATE_LIMIT_LIMIT_HEADER;
|
|
|
3140
3153
|
exports.ZOHO_RATE_LIMIT_REMAINING_HEADER = ZOHO_RATE_LIMIT_REMAINING_HEADER;
|
|
3141
3154
|
exports.ZOHO_RATE_LIMIT_RESET_HEADER = ZOHO_RATE_LIMIT_RESET_HEADER;
|
|
3142
3155
|
exports.ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE = ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE;
|
|
3156
|
+
exports.ZOHO_RECRUIT_ATTACHMENTS_MODULE = ZOHO_RECRUIT_ATTACHMENTS_MODULE;
|
|
3143
3157
|
exports.ZOHO_RECRUIT_CANDIDATES_MODULE = ZOHO_RECRUIT_CANDIDATES_MODULE;
|
|
3144
3158
|
exports.ZOHO_RECRUIT_EMAILS_MODULE = ZOHO_RECRUIT_EMAILS_MODULE;
|
|
3145
3159
|
exports.ZOHO_RECRUIT_JOB_OPENINGS_MODULE = ZOHO_RECRUIT_JOB_OPENINGS_MODULE;
|
|
3146
3160
|
exports.ZOHO_RECRUIT_NOTES_MODULE = ZOHO_RECRUIT_NOTES_MODULE;
|
|
3161
|
+
exports.ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME;
|
|
3147
3162
|
exports.ZOHO_RECRUIT_SERVICE_NAME = ZOHO_RECRUIT_SERVICE_NAME;
|
|
3148
3163
|
exports.ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH = ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH;
|
|
3149
3164
|
exports.ZOHO_SUCCESS_CODE = ZOHO_SUCCESS_CODE;
|
|
@@ -3177,6 +3192,8 @@ exports.deleteRecord = deleteRecord;
|
|
|
3177
3192
|
exports.emptyZohoPageResult = emptyZohoPageResult;
|
|
3178
3193
|
exports.escapeZohoFieldValueForCriteriaString = escapeZohoFieldValueForCriteriaString;
|
|
3179
3194
|
exports.executeRestApiFunction = executeRestApiFunction;
|
|
3195
|
+
exports.getAttachmentsForRecord = getAttachmentsForRecord;
|
|
3196
|
+
exports.getAttachmentsForRecordPageFactory = getAttachmentsForRecordPageFactory;
|
|
3180
3197
|
exports.getEmailsForRecord = getEmailsForRecord;
|
|
3181
3198
|
exports.getEmailsForRecordPageFactory = getEmailsForRecordPageFactory;
|
|
3182
3199
|
exports.getNotesForRecord = getNotesForRecord;
|
package/index.esm.js
CHANGED
|
@@ -1808,10 +1808,15 @@ const ZOHO_RECRUIT_NOTES_MODULE = 'Notes';
|
|
|
1808
1808
|
* Emails module name
|
|
1809
1809
|
*/
|
|
1810
1810
|
const ZOHO_RECRUIT_EMAILS_MODULE = 'Emails';
|
|
1811
|
+
/**
|
|
1812
|
+
* Attachments module name
|
|
1813
|
+
*/
|
|
1814
|
+
const ZOHO_RECRUIT_ATTACHMENTS_MODULE = 'Attachments';
|
|
1811
1815
|
/**
|
|
1812
1816
|
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
1813
1817
|
*/
|
|
1814
1818
|
const isZohoRecruitValidUrl = isStandardInternetAccessibleWebsiteUrl;
|
|
1819
|
+
const ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = 'Resume';
|
|
1815
1820
|
|
|
1816
1821
|
var call$2 = functionCall;
|
|
1817
1822
|
var anObject$2 = anObject$e;
|
|
@@ -2482,6 +2487,14 @@ function getEmailsForRecord(context) {
|
|
|
2482
2487
|
function getEmailsForRecordPageFactory(context) {
|
|
2483
2488
|
return zohoFetchPageFactory(getEmailsForRecord(context));
|
|
2484
2489
|
}
|
|
2490
|
+
function getAttachmentsForRecord(context) {
|
|
2491
|
+
return getRelatedRecordsFunctionFactory(context)({
|
|
2492
|
+
targetModule: ZOHO_RECRUIT_ATTACHMENTS_MODULE
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
function getAttachmentsForRecordPageFactory(context) {
|
|
2496
|
+
return zohoFetchPageFactory(getAttachmentsForRecord(context));
|
|
2497
|
+
}
|
|
2485
2498
|
class ZohoRecruitExecuteRestApiFunctionError extends BaseError {
|
|
2486
2499
|
constructor(error) {
|
|
2487
2500
|
super(`An error occured during the execution of the function. Code: ${error.code}, Message: ${error.message}`);
|
|
@@ -3119,4 +3132,4 @@ function zohoDateTimeString(date) {
|
|
|
3119
3132
|
return isoDate.substring(0, isoDate.length - 5) + 'Z';
|
|
3120
3133
|
}
|
|
3121
3134
|
|
|
3122
|
-
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_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_CANDIDATES_MODULE, ZOHO_RECRUIT_EMAILS_MODULE, ZOHO_RECRUIT_JOB_OPENINGS_MODULE, ZOHO_RECRUIT_NOTES_MODULE, 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, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, accessToken, addTagsToRecords, assertRecordDataArrayResultHasContent, associateCandidateRecordsWithJobOpenings, createNotes, createNotesForRecord, createTagsForModule, deleteNotes, deleteRecord, emptyZohoPageResult, escapeZohoFieldValueForCriteriaString, executeRestApiFunction, 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, safeZohoDateTimeString, searchAssociatedRecords, searchCandidateAssociatedJobOpeningRecords, searchCandidateAssociatedJobOpeningRecordsPageFactory, searchJobOpeningAssociatedCandidateRecords, searchJobOpeningAssociatedCandidateRecordsPageFactory, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoDateTimeString, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitApiFetchJsonInput, zohoRecruitChangeObjectLikeResponseSuccessAndErrorPairs, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntriesForEmails, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData };
|
|
3135
|
+
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_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_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, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, accessToken, addTagsToRecords, assertRecordDataArrayResultHasContent, associateCandidateRecordsWithJobOpenings, createNotes, createNotesForRecord, createTagsForModule, deleteNotes, deleteRecord, 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, safeZohoDateTimeString, searchAssociatedRecords, searchCandidateAssociatedJobOpeningRecords, searchCandidateAssociatedJobOpeningRecordsPageFactory, searchJobOpeningAssociatedCandidateRecords, searchJobOpeningAssociatedCandidateRecordsPageFactory, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, 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.3.7](https://github.com/dereekb/dbx-components/compare/v12.3.6-dev...v12.3.7) (2025-08-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [12.3.6](https://github.com/dereekb/dbx-components/compare/v12.3.5-dev...v12.3.6) (2025-08-13)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [12.3.5](https://github.com/dereekb/dbx-components/compare/v12.3.4-dev...v12.3.5) (2025-08-12)
|
|
6
14
|
|
|
7
15
|
|
package/nestjs/package.json
CHANGED
|
@@ -19,6 +19,8 @@ export declare class ZohoRecruitApi {
|
|
|
19
19
|
get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoRecruitGetRelatedRecordsFunctionFactory;
|
|
20
20
|
get getEmailsForRecord(): import("@dereekb/zoho").ZohoRecruitGetEmailsForRecordFunction;
|
|
21
21
|
get getEmailsForRecordPageFactory(): import("@dereekb/zoho").GetEmailsForRecordPageFactory;
|
|
22
|
+
get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoRecruitGetAttachmentsForRecordFunction;
|
|
23
|
+
get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").GetAttachmentsForRecordPageFactory;
|
|
22
24
|
get createNotes(): (input: import("@dereekb/zoho").ZohoRecruitCreateNotesRequest) => Promise<import("@dereekb/zoho").ZohoRecruitMultiRecordResult<import("@dereekb/zoho").NewZohoRecruitNoteData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>>;
|
|
23
25
|
get deleteNotes(): (input: import("@dereekb/zoho").ZohoRecruitDeleteNotesRequest) => Promise<import("@dereekb/zoho").ZohoRecruitMultiRecordResult<string, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>>;
|
|
24
26
|
get createNotesForRecord(): import("@dereekb/zoho").ZohoRecruitCreateNotesForRecordFunction;
|
|
@@ -58,6 +58,12 @@ let ZohoRecruitApi = class ZohoRecruitApi {
|
|
|
58
58
|
get getEmailsForRecordPageFactory() {
|
|
59
59
|
return (0, zoho_1.getEmailsForRecordPageFactory)(this.recruitContext);
|
|
60
60
|
}
|
|
61
|
+
get getAttachmentsForRecord() {
|
|
62
|
+
return (0, zoho_1.getAttachmentsForRecord)(this.recruitContext);
|
|
63
|
+
}
|
|
64
|
+
get getAttachmentsForRecordPageFactory() {
|
|
65
|
+
return (0, zoho_1.getAttachmentsForRecordPageFactory)(this.recruitContext);
|
|
66
|
+
}
|
|
61
67
|
get createNotes() {
|
|
62
68
|
return (0, zoho_1.createNotes)(this.recruitContext);
|
|
63
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recruit.api.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/recruit/recruit.api.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"recruit.api.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/recruit/recruit.api.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,wCA+BuB;AACvB,qDAA4D;AAC5D,2DAA2D;AAGpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAYoB;IACT;IAZ3B,WAAW,CAAc;IAElC,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;IACzC,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,eAAe,CAAC;IACzD,CAAC;IAED,YAC6C,MAAgC,EACzC,eAAgC;QADvB,WAAM,GAAN,MAAM,CAA0B;QACzC,oBAAe,GAAf,eAAe,CAAiB;QAElE,IAAI,CAAC,WAAW,GAAG,IAAA,yBAAkB,EAAC;YACpC,GAAG,MAAM,CAAC,aAAa;YACvB,eAAe,EAAE,eAAe,CAAC,eAAe;SACjD,CA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C,CAAC;IAC/C,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAA,uBAAgB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC/C,CAAC;CACF,CAAA;AAjIY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAaR,mBAAA,IAAA,eAAM,EAAC,yCAAwB,CAAC,CAAA;IAChC,mBAAA,IAAA,eAAM,EAAC,8BAAe,CAAC,CAAA;6CAD2B,yCAAwB;QACxB,8BAAe;GAbzD,cAAc,CAiI1B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZohoDataArrayResultRef, ZohoPageFilter, ZohoPageResult } from './../zoho.api.page';
|
|
2
2
|
import { FetchJsonBody, FetchJsonInput, FetchPage, FetchPageFactory, FetchPageFactoryOptions, makeUrlSearchParams } from '@dereekb/util/fetch';
|
|
3
3
|
import { ZohoRecruitConfigApiUrlInput, ZohoRecruitContext } from './recruit.config';
|
|
4
|
-
import { ZohoRecruitCommaSeparateFieldNames, ZohoRecruitCustomViewId, ZohoRecruitDraftOrSaveState, ZohoRecruitFieldName, ZohoRecruitModuleNameRef, ZohoRecruitChangeObjectDetails, ZohoRecruitRecord, ZohoRecruitRecordId, ZohoRecruitTerritoryId, ZohoRecruitTrueFalseBoth, ZohoRecruitRestFunctionApiName, ZohoRecruitUserId, ZohoRecruitModuleName, ZohoRecruitRecordEmailMetadata } from './recruit';
|
|
4
|
+
import { ZohoRecruitCommaSeparateFieldNames, ZohoRecruitCustomViewId, ZohoRecruitDraftOrSaveState, ZohoRecruitFieldName, ZohoRecruitModuleNameRef, ZohoRecruitChangeObjectDetails, ZohoRecruitRecord, ZohoRecruitRecordId, ZohoRecruitTerritoryId, ZohoRecruitTrueFalseBoth, ZohoRecruitRestFunctionApiName, ZohoRecruitUserId, ZohoRecruitModuleName, ZohoRecruitRecordEmailMetadata, ZohoRecruitRecordAttachmentMetadata } from './recruit';
|
|
5
5
|
import { ZohoRecruitSearchRecordsCriteriaTreeElement } from './recruit.criteria';
|
|
6
6
|
import { ArrayOrValue, EmailAddress, Maybe, PhoneNumber, SortingOrder, UniqueModelWithId } from '@dereekb/util';
|
|
7
7
|
import { ZohoServerErrorDataWithDetails, ZohoServerErrorStatus, ZohoServerSuccessCode, ZohoServerSuccessStatus } from '../zoho.error.api';
|
|
@@ -203,6 +203,12 @@ export type ZohoRecruitGetEmailsForRecordFunction = (input: ZohoRecruitGetEmails
|
|
|
203
203
|
export declare function getEmailsForRecord(context: ZohoRecruitContext): ZohoRecruitGetEmailsForRecordFunction;
|
|
204
204
|
export type GetEmailsForRecordPageFactory = FetchPageFactory<ZohoRecruitGetEmailsForRecordRequest, ZohoRecruitGetEmailsForRecordResponse>;
|
|
205
205
|
export declare function getEmailsForRecordPageFactory(context: ZohoRecruitContext): GetEmailsForRecordPageFactory;
|
|
206
|
+
export type ZohoRecruitGetAttachmentsForRecordRequest = ZohoRecruitGetRelatedRecordsRequest;
|
|
207
|
+
export type ZohoRecruitGetAttachmentsForRecordResponse = ZohoPageResult<ZohoRecruitRecordAttachmentMetadata>;
|
|
208
|
+
export type ZohoRecruitGetAttachmentsForRecordFunction = (input: ZohoRecruitGetAttachmentsForRecordRequest) => Promise<ZohoRecruitGetAttachmentsForRecordResponse>;
|
|
209
|
+
export declare function getAttachmentsForRecord(context: ZohoRecruitContext): ZohoRecruitGetAttachmentsForRecordFunction;
|
|
210
|
+
export type GetAttachmentsForRecordPageFactory = FetchPageFactory<ZohoRecruitGetAttachmentsForRecordRequest, ZohoRecruitGetAttachmentsForRecordResponse>;
|
|
211
|
+
export declare function getAttachmentsForRecordPageFactory(context: ZohoRecruitContext): GetAttachmentsForRecordPageFactory;
|
|
206
212
|
export type ZohoRecruitExecuteRestApiFunctionRequest = ZohoRecruitExecuteRestApiFunctionNormalRequest | ZohoRecruitExecuteRestApiFunctionApiSpecificRequest;
|
|
207
213
|
export interface ZohoRecruitExecuteRestApiFunctionNormalRequest {
|
|
208
214
|
readonly functionName: ZohoRecruitRestFunctionApiName;
|
|
@@ -21,6 +21,10 @@ export declare const ZOHO_RECRUIT_NOTES_MODULE = "Notes";
|
|
|
21
21
|
* Emails module name
|
|
22
22
|
*/
|
|
23
23
|
export declare const ZOHO_RECRUIT_EMAILS_MODULE = "Emails";
|
|
24
|
+
/**
|
|
25
|
+
* Attachments module name
|
|
26
|
+
*/
|
|
27
|
+
export declare const ZOHO_RECRUIT_ATTACHMENTS_MODULE = "Attachments";
|
|
24
28
|
/**
|
|
25
29
|
* Contains a reference to a module.
|
|
26
30
|
*/
|
|
@@ -183,6 +187,95 @@ export type ZohoRecruitRecordEmailMetadataStatusType = 'sent' | string;
|
|
|
183
187
|
export interface ZohoRecruitRecordEmailMetadataStatus {
|
|
184
188
|
type: ZohoRecruitRecordEmailMetadataStatusType;
|
|
185
189
|
}
|
|
190
|
+
export declare const ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = "Resume";
|
|
191
|
+
export interface ZohoRecruitRecordAttachmentMetadataAttachType extends ZohoRecruitReferenceData {
|
|
192
|
+
name: typeof ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME | string;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Record id for an attachment.
|
|
196
|
+
*/
|
|
197
|
+
export type ZohoRecruitAttachmentRecordId = ZohoRecruitRecordId;
|
|
198
|
+
/**
|
|
199
|
+
* The size of the attachment in bytes, stored as a string.
|
|
200
|
+
*/
|
|
201
|
+
export type ZohoRecruitRecordAttachmentMetadataSize = string;
|
|
202
|
+
/**
|
|
203
|
+
* Metadata for a record's attachment.
|
|
204
|
+
*/
|
|
205
|
+
export interface ZohoRecruitRecordAttachmentMetadata {
|
|
206
|
+
/**
|
|
207
|
+
* The type of attachment
|
|
208
|
+
*/
|
|
209
|
+
$attach_type: ZohoRecruitRecordAttachmentMetadataAttachType;
|
|
210
|
+
/**
|
|
211
|
+
* Last time the attachment was modified
|
|
212
|
+
*/
|
|
213
|
+
Modified_Time: ISO8601DateString;
|
|
214
|
+
/**
|
|
215
|
+
* The category of the attachment
|
|
216
|
+
*/
|
|
217
|
+
Category: ZohoRecruitRecordAttachmentMetadataAttachType;
|
|
218
|
+
/**
|
|
219
|
+
* The name of the attachment
|
|
220
|
+
*/
|
|
221
|
+
File_Name: string;
|
|
222
|
+
/**
|
|
223
|
+
* The size of the attachment in bytes, stored as a string.
|
|
224
|
+
*/
|
|
225
|
+
Size: ZohoRecruitRecordAttachmentMetadataSize;
|
|
226
|
+
/**
|
|
227
|
+
* The time the attachment was created
|
|
228
|
+
*/
|
|
229
|
+
Created_Time: ISO8601DateString;
|
|
230
|
+
/**
|
|
231
|
+
* The parent record id for this attachment
|
|
232
|
+
*/
|
|
233
|
+
Parent_Id: ZohoRecruitRecordId;
|
|
234
|
+
/**
|
|
235
|
+
* Owner of the attachment
|
|
236
|
+
*/
|
|
237
|
+
Attachment_Owner: ZohoRecruitUserReferenceData;
|
|
238
|
+
/**
|
|
239
|
+
* Internal file identifier for the attachment
|
|
240
|
+
*/
|
|
241
|
+
$file_id: string;
|
|
242
|
+
/**
|
|
243
|
+
* Type marker (e.g., "Attachment")
|
|
244
|
+
*/
|
|
245
|
+
$type: 'Attachment' | string;
|
|
246
|
+
/**
|
|
247
|
+
* Direct URL to the attachment, when available
|
|
248
|
+
*/
|
|
249
|
+
Attachment_URL: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* User who last modified this attachment
|
|
252
|
+
*/
|
|
253
|
+
Modified_By: ZohoRecruitUserReferenceData;
|
|
254
|
+
/**
|
|
255
|
+
* Attachment record id
|
|
256
|
+
*/
|
|
257
|
+
id: ZohoRecruitAttachmentRecordId;
|
|
258
|
+
/**
|
|
259
|
+
* User who created this attachment
|
|
260
|
+
*/
|
|
261
|
+
Created_By: ZohoRecruitUserReferenceData;
|
|
262
|
+
/**
|
|
263
|
+
* Whether the attachment is editable
|
|
264
|
+
*/
|
|
265
|
+
$editable: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Module this attachment belongs to (e.g., Candidates)
|
|
268
|
+
*/
|
|
269
|
+
$se_module: ZohoRecruitModuleName;
|
|
270
|
+
/**
|
|
271
|
+
* Link URL when the attachment is a link
|
|
272
|
+
*/
|
|
273
|
+
$link_url?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Number of linked documents
|
|
276
|
+
*/
|
|
277
|
+
$link_docs: number;
|
|
278
|
+
}
|
|
186
279
|
/**
|
|
187
280
|
* Update details returned by the server for an updated record.
|
|
188
281
|
*
|