@dereekb/zoho 12.0.5 → 12.1.0
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 +8 -10
- package/index.esm.js +7 -9
- package/nestjs/CHANGELOG.md +13 -0
- package/nestjs/package.json +1 -1
- package/nestjs/src/lib/recruit/recruit.api.d.ts +1 -0
- package/nestjs/src/lib/recruit/recruit.api.js +5 -1
- package/nestjs/src/lib/recruit/recruit.api.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/accounts/accounts.error.api.d.ts +1 -1
- package/src/lib/recruit/recruit.config.d.ts +1 -2
- package/src/lib/recruit/recruit.error.api.d.ts +1 -1
- package/src/lib/zoho.error.api.d.ts +1 -3
package/index.cjs.js
CHANGED
|
@@ -3297,9 +3297,7 @@ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
|
|
|
3297
3297
|
};
|
|
3298
3298
|
}
|
|
3299
3299
|
/**
|
|
3300
|
-
* FetchJsonInterceptJsonResponseFunction that intercepts ZohoServerError
|
|
3301
|
-
*
|
|
3302
|
-
* @returns
|
|
3300
|
+
* FetchJsonInterceptJsonResponseFunction that intercepts a 200 response that actually contains a ZohoServerError and throws a ZohoServerError for the error handling to catch.
|
|
3303
3301
|
*/
|
|
3304
3302
|
function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
|
|
3305
3303
|
return (json, response) => {
|
|
@@ -3372,7 +3370,7 @@ const ZOHO_RATE_LIMIT_RESET_HEADER = 'X-RATELIMIT-RESET';
|
|
|
3372
3370
|
const DEFAULT_ZOHO_API_RATE_LIMIT = 100;
|
|
3373
3371
|
const DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD = util.MS_IN_MINUTE;
|
|
3374
3372
|
function zohoRateLimitHeaderDetails(headers) {
|
|
3375
|
-
const limitHeader = headers.
|
|
3373
|
+
const limitHeader = headers.get(ZOHO_RATE_LIMIT_LIMIT_HEADER);
|
|
3376
3374
|
const remainingHeader = headers.get(ZOHO_RATE_LIMIT_REMAINING_HEADER);
|
|
3377
3375
|
const resetHeader = headers.get(ZOHO_RATE_LIMIT_RESET_HEADER);
|
|
3378
3376
|
let result = null;
|
|
@@ -3519,7 +3517,7 @@ function parseZohoRecruitServerErrorResponseData(errorResponseData, responseErro
|
|
|
3519
3517
|
}
|
|
3520
3518
|
return result;
|
|
3521
3519
|
}
|
|
3522
|
-
const
|
|
3520
|
+
const interceptZohoRecruit200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoRecruitServerErrorResponseData);
|
|
3523
3521
|
const handleZohoRecruitErrorFetch = handleZohoErrorFetchFactory(parseZohoRecruitError, logZohoRecruitErrorToConsole);
|
|
3524
3522
|
|
|
3525
3523
|
/**
|
|
@@ -4015,7 +4013,7 @@ function parseZohoAccountsServerErrorResponseData(errorResponseData, responseErr
|
|
|
4015
4013
|
}
|
|
4016
4014
|
return result;
|
|
4017
4015
|
}
|
|
4018
|
-
const
|
|
4016
|
+
const interceptZohoAccounts200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoAccountsServerErrorResponseData);
|
|
4019
4017
|
const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccountsError, logZohoAccountsErrorToConsole);
|
|
4020
4018
|
|
|
4021
4019
|
/**
|
|
@@ -4123,7 +4121,7 @@ function zohoRecruitFactory(factoryConfig) {
|
|
|
4123
4121
|
});
|
|
4124
4122
|
const fetch$1 = handleZohoRecruitErrorFetch(baseFetch, logZohoServerErrorFunction);
|
|
4125
4123
|
const fetchJson = fetch.fetchJsonFunction(fetch$1, {
|
|
4126
|
-
interceptJsonResponse:
|
|
4124
|
+
interceptJsonResponse: interceptZohoRecruit200StatusWithErrorResponse,
|
|
4127
4125
|
// intercept errors that return status 200
|
|
4128
4126
|
handleFetchJsonParseErrorFunction: fetch.returnNullHandleFetchJsonParseErrorFunction
|
|
4129
4127
|
});
|
|
@@ -4208,7 +4206,7 @@ function zohoAccountsFactory(factoryConfig) {
|
|
|
4208
4206
|
});
|
|
4209
4207
|
const fetch$1 = handleZohoAccountsErrorFetch(baseFetch, logZohoServerErrorFunction);
|
|
4210
4208
|
const fetchJson = fetch.fetchJsonFunction(fetch$1, {
|
|
4211
|
-
interceptJsonResponse:
|
|
4209
|
+
interceptJsonResponse: interceptZohoAccounts200StatusWithErrorResponse,
|
|
4212
4210
|
// intercept errors that return status 200
|
|
4213
4211
|
handleFetchJsonParseErrorFunction: fetch.returnNullHandleFetchJsonParseErrorFunction
|
|
4214
4212
|
});
|
|
@@ -4363,9 +4361,9 @@ exports.handleZohoAccountsErrorFetch = handleZohoAccountsErrorFetch;
|
|
|
4363
4361
|
exports.handleZohoErrorFetchFactory = handleZohoErrorFetchFactory;
|
|
4364
4362
|
exports.handleZohoRecruitErrorFetch = handleZohoRecruitErrorFetch;
|
|
4365
4363
|
exports.insertRecord = insertRecord;
|
|
4366
|
-
exports.
|
|
4364
|
+
exports.interceptZohoAccounts200StatusWithErrorResponse = interceptZohoAccounts200StatusWithErrorResponse;
|
|
4367
4365
|
exports.interceptZohoErrorResponseFactory = interceptZohoErrorResponseFactory;
|
|
4368
|
-
exports.
|
|
4366
|
+
exports.interceptZohoRecruit200StatusWithErrorResponse = interceptZohoRecruit200StatusWithErrorResponse;
|
|
4369
4367
|
exports.isZohoRecruitValidUrl = isZohoRecruitValidUrl;
|
|
4370
4368
|
exports.logZohoAccountsErrorToConsole = logZohoAccountsErrorToConsole;
|
|
4371
4369
|
exports.logZohoRecruitErrorToConsole = logZohoRecruitErrorToConsole;
|
package/index.esm.js
CHANGED
|
@@ -3295,9 +3295,7 @@ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
|
|
|
3295
3295
|
};
|
|
3296
3296
|
}
|
|
3297
3297
|
/**
|
|
3298
|
-
* FetchJsonInterceptJsonResponseFunction that intercepts ZohoServerError
|
|
3299
|
-
*
|
|
3300
|
-
* @returns
|
|
3298
|
+
* FetchJsonInterceptJsonResponseFunction that intercepts a 200 response that actually contains a ZohoServerError and throws a ZohoServerError for the error handling to catch.
|
|
3301
3299
|
*/
|
|
3302
3300
|
function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
|
|
3303
3301
|
return (json, response) => {
|
|
@@ -3370,7 +3368,7 @@ const ZOHO_RATE_LIMIT_RESET_HEADER = 'X-RATELIMIT-RESET';
|
|
|
3370
3368
|
const DEFAULT_ZOHO_API_RATE_LIMIT = 100;
|
|
3371
3369
|
const DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD = MS_IN_MINUTE;
|
|
3372
3370
|
function zohoRateLimitHeaderDetails(headers) {
|
|
3373
|
-
const limitHeader = headers.
|
|
3371
|
+
const limitHeader = headers.get(ZOHO_RATE_LIMIT_LIMIT_HEADER);
|
|
3374
3372
|
const remainingHeader = headers.get(ZOHO_RATE_LIMIT_REMAINING_HEADER);
|
|
3375
3373
|
const resetHeader = headers.get(ZOHO_RATE_LIMIT_RESET_HEADER);
|
|
3376
3374
|
let result = null;
|
|
@@ -3517,7 +3515,7 @@ function parseZohoRecruitServerErrorResponseData(errorResponseData, responseErro
|
|
|
3517
3515
|
}
|
|
3518
3516
|
return result;
|
|
3519
3517
|
}
|
|
3520
|
-
const
|
|
3518
|
+
const interceptZohoRecruit200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoRecruitServerErrorResponseData);
|
|
3521
3519
|
const handleZohoRecruitErrorFetch = handleZohoErrorFetchFactory(parseZohoRecruitError, logZohoRecruitErrorToConsole);
|
|
3522
3520
|
|
|
3523
3521
|
/**
|
|
@@ -4013,7 +4011,7 @@ function parseZohoAccountsServerErrorResponseData(errorResponseData, responseErr
|
|
|
4013
4011
|
}
|
|
4014
4012
|
return result;
|
|
4015
4013
|
}
|
|
4016
|
-
const
|
|
4014
|
+
const interceptZohoAccounts200StatusWithErrorResponse = interceptZohoErrorResponseFactory(parseZohoAccountsServerErrorResponseData);
|
|
4017
4015
|
const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccountsError, logZohoAccountsErrorToConsole);
|
|
4018
4016
|
|
|
4019
4017
|
/**
|
|
@@ -4121,7 +4119,7 @@ function zohoRecruitFactory(factoryConfig) {
|
|
|
4121
4119
|
});
|
|
4122
4120
|
const fetch = handleZohoRecruitErrorFetch(baseFetch, logZohoServerErrorFunction);
|
|
4123
4121
|
const fetchJson = fetchJsonFunction(fetch, {
|
|
4124
|
-
interceptJsonResponse:
|
|
4122
|
+
interceptJsonResponse: interceptZohoRecruit200StatusWithErrorResponse,
|
|
4125
4123
|
// intercept errors that return status 200
|
|
4126
4124
|
handleFetchJsonParseErrorFunction: returnNullHandleFetchJsonParseErrorFunction
|
|
4127
4125
|
});
|
|
@@ -4206,7 +4204,7 @@ function zohoAccountsFactory(factoryConfig) {
|
|
|
4206
4204
|
});
|
|
4207
4205
|
const fetch = handleZohoAccountsErrorFetch(baseFetch, logZohoServerErrorFunction);
|
|
4208
4206
|
const fetchJson = fetchJsonFunction(fetch, {
|
|
4209
|
-
interceptJsonResponse:
|
|
4207
|
+
interceptJsonResponse: interceptZohoAccounts200StatusWithErrorResponse,
|
|
4210
4208
|
// intercept errors that return status 200
|
|
4211
4209
|
handleFetchJsonParseErrorFunction: returnNullHandleFetchJsonParseErrorFunction
|
|
4212
4210
|
});
|
|
@@ -4311,4 +4309,4 @@ function zohoDateTimeString(date) {
|
|
|
4311
4309
|
return isoDate.substring(0, isoDate.length - 5) + 'Z';
|
|
4312
4310
|
}
|
|
4313
4311
|
|
|
4314
|
-
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_DUPLICATE_DATA_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_CANDIDATES_MODULE, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_SUCCESS_CODE, 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, assertRecordDataArrayResultHasContent, createNotes, createNotesForRecord, deleteNotes, escapeZohoFieldValueForCriteriaString, executeRestApiFunction, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord,
|
|
4312
|
+
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_DUPLICATE_DATA_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_CANDIDATES_MODULE, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_SUCCESS_CODE, 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, assertRecordDataArrayResultHasContent, createNotes, createNotesForRecord, deleteNotes, escapeZohoFieldValueForCriteriaString, executeRestApiFunction, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord, interceptZohoAccounts200StatusWithErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruit200StatusWithErrorResponse, isZohoRecruitValidUrl, logZohoAccountsErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, safeZohoDateTimeString, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoDateTimeString, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitApiFetchJsonInput, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData };
|
package/nestjs/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [12.1.0](https://github.com/dereekb/dbx-components/compare/v12.0.6-dev...v12.1.0) (2025-05-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* zoom api ([#29](https://github.com/dereekb/dbx-components/issues/29)) ([555a82a](https://github.com/dereekb/dbx-components/commit/555a82a321c82884d51bcff8bd54ad8c7b4e9f17))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [12.0.6](https://github.com/dereekb/dbx-components/compare/v12.0.5-dev...v12.0.6) (2025-05-07)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [12.0.5](https://github.com/dereekb/dbx-components/compare/v12.0.4-dev...v12.0.5) (2025-05-02)
|
|
6
19
|
|
|
7
20
|
|
package/nestjs/package.json
CHANGED
|
@@ -19,5 +19,6 @@ export declare class ZohoRecruitApi {
|
|
|
19
19
|
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>>;
|
|
20
20
|
get createNotesForRecord(): import("@dereekb/zoho").ZohoRecruitCreateNotesForRecordFunction;
|
|
21
21
|
get getNotesForRecord(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordFunction;
|
|
22
|
+
get getNotesForRecordPageFactory(): import("@dereekb/zoho").GetNotesForRecordPageFactory;
|
|
22
23
|
get executeRestApiFunction(): import("@dereekb/zoho").ZohoRecruitExecuteRestApiFunctionFunction;
|
|
23
24
|
}
|
|
@@ -58,6 +58,9 @@ let ZohoRecruitApi = class ZohoRecruitApi {
|
|
|
58
58
|
get getNotesForRecord() {
|
|
59
59
|
return (0, zoho_1.getNotesForRecord)(this.recruitContext);
|
|
60
60
|
}
|
|
61
|
+
get getNotesForRecordPageFactory() {
|
|
62
|
+
return (0, zoho_1.getNotesForRecordPageFactory)(this.recruitContext);
|
|
63
|
+
}
|
|
61
64
|
get executeRestApiFunction() {
|
|
62
65
|
return (0, zoho_1.executeRestApiFunction)(this.recruitContext);
|
|
63
66
|
}
|
|
@@ -67,6 +70,7 @@ exports.ZohoRecruitApi = ZohoRecruitApi = tslib_1.__decorate([
|
|
|
67
70
|
(0, common_1.Injectable)(),
|
|
68
71
|
tslib_1.__param(0, (0, common_1.Inject)(recruit_config_1.ZohoRecruitServiceConfig)),
|
|
69
72
|
tslib_1.__param(1, (0, common_1.Inject)(accounts_api_1.ZohoAccountsApi)),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [recruit_config_1.ZohoRecruitServiceConfig,
|
|
73
|
+
tslib_1.__metadata("design:paramtypes", [recruit_config_1.ZohoRecruitServiceConfig,
|
|
74
|
+
accounts_api_1.ZohoAccountsApi])
|
|
71
75
|
], ZohoRecruitApi);
|
|
72
76
|
//# sourceMappingURL=recruit.api.js.map
|
|
@@ -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,wCAA2T;AAC3T,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,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACzB,CAAC;IAED,kBAAkB;IAClB,IAAI,YAAY;QACd,OAAO,IAAA,mBAAY,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAA,mBAAY,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAA,mBAAY,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAA,oBAAa,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAA,iBAAU,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAA,oBAAa,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAA,+BAAwB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAA,kBAAW,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAA,kBAAW,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,IAAA,2BAAoB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,iBAAiB;QACnB,OAAO,IAAA,wBAAiB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,4BAA4B;QAC9B,OAAO,IAAA,mCAA4B,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3D,CAAC;IAED,IAAI,sBAAsB;QACxB,OAAO,IAAA,6BAAsB,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAzEY,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,CAyE1B"}
|
package/package.json
CHANGED
|
@@ -24,5 +24,5 @@ export declare class ZohoAccountsAuthFailureError extends FetchRequestFactoryErr
|
|
|
24
24
|
export declare const logZohoAccountsErrorToConsole: import("../zoho.error.api").LogZohoServerErrorFunction;
|
|
25
25
|
export declare function parseZohoAccountsError(responseError: FetchResponseError): Promise<ParsedZohoServerError>;
|
|
26
26
|
export declare function parseZohoAccountsServerErrorResponseData(errorResponseData: ZohoServerErrorResponseData, responseError: FetchResponseError): ParsedZohoServerError;
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const interceptZohoAccounts200StatusWithErrorResponse: import("@dereekb/util/fetch").FetchJsonInterceptJsonResponseFunction;
|
|
28
28
|
export declare const handleZohoAccountsErrorFetch: import("../zoho.error.api").HandleZohoErrorFetchFactory;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FactoryWithRequiredInput } from '@dereekb/util';
|
|
2
2
|
import { ConfiguredFetch, FetchJsonFunction } from '@dereekb/util/fetch';
|
|
3
|
-
import { ZohoApiUrl,
|
|
3
|
+
import { ZohoApiUrl, ZohoApiUrlKey, ZohoConfig, ZohoApiServiceName } from '../zoho.config';
|
|
4
4
|
import { ZohoServiceAccessTokenKey } from '../accounts';
|
|
5
5
|
import { ZohoRateLimiterRef } from '../zoho.limit';
|
|
6
6
|
export declare const ZOHO_RECRUIT_SERVICE_NAME: ZohoApiServiceName | ZohoServiceAccessTokenKey;
|
|
7
7
|
export type ZohoRecruitApiUrl = ZohoApiUrl;
|
|
8
|
-
export type ZohoRecruitApiKey = ZohoRefreshToken;
|
|
9
8
|
export type ZohoRecruitApiUrlKey = ZohoApiUrlKey;
|
|
10
9
|
export type ZohoRecruitConfigApiUrlInput = ZohoRecruitApiUrlKey | ZohoRecruitApiUrl;
|
|
11
10
|
export declare function zohoRecruitConfigApiUrl(input: ZohoRecruitConfigApiUrlInput): ZohoApiUrl;
|
|
@@ -28,5 +28,5 @@ export declare function assertRecordDataArrayResultHasContent<T>(moduleName?: Zo
|
|
|
28
28
|
export declare const logZohoRecruitErrorToConsole: import("../zoho.error.api").LogZohoServerErrorFunction;
|
|
29
29
|
export declare function parseZohoRecruitError(responseError: FetchResponseError): Promise<ParsedZohoServerError>;
|
|
30
30
|
export declare function parseZohoRecruitServerErrorResponseData(errorResponseData: ZohoServerErrorResponseData, responseError: FetchResponseError): ParsedZohoServerError;
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const interceptZohoRecruit200StatusWithErrorResponse: import("@dereekb/util/fetch").FetchJsonInterceptJsonResponseFunction;
|
|
32
32
|
export declare const handleZohoRecruitErrorFetch: import("../zoho.error.api").HandleZohoErrorFetchFactory;
|
|
@@ -74,9 +74,7 @@ export type ParseZohoFetchResponseErrorFunction = (responseError: FetchResponseE
|
|
|
74
74
|
export declare function handleZohoErrorFetchFactory(parseZohoError: ParseZohoFetchResponseErrorFunction, defaultLogError: LogZohoServerErrorFunction): HandleZohoErrorFetchFactory;
|
|
75
75
|
export type ParseZohoServerErrorResponseData = (zohoServerErrorResponseData: ZohoServerErrorResponseData, fetchResponseError: FetchResponseError) => ParsedZohoServerError;
|
|
76
76
|
/**
|
|
77
|
-
* FetchJsonInterceptJsonResponseFunction that intercepts ZohoServerError
|
|
78
|
-
*
|
|
79
|
-
* @returns
|
|
77
|
+
* FetchJsonInterceptJsonResponseFunction that intercepts a 200 response that actually contains a ZohoServerError and throws a ZohoServerError for the error handling to catch.
|
|
80
78
|
*/
|
|
81
79
|
export declare function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData: ParseZohoServerErrorResponseData): FetchJsonInterceptJsonResponseFunction;
|
|
82
80
|
/**
|