@dereekb/zoho 11.0.4 → 11.0.6
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 +40 -0
- package/index.esm.js +93 -3
- package/nestjs/CHANGELOG.md +8 -0
- package/nestjs/package.json +1 -1
- package/nestjs/src/lib/recruit/recruit.api.d.ts +3 -0
- package/nestjs/src/lib/recruit/recruit.api.js +9 -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 +52 -23
- package/src/lib/recruit/recruit.d.ts +98 -11
- package/src/lib/zoho.api.page.d.ts +9 -2
package/index.cjs.js
CHANGED
|
@@ -2482,6 +2482,14 @@ var addToUnscopables = addToUnscopables$2;
|
|
|
2482
2482
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2483
2483
|
addToUnscopables('flatMap');
|
|
2484
2484
|
|
|
2485
|
+
/**
|
|
2486
|
+
* Candidates module name
|
|
2487
|
+
*/
|
|
2488
|
+
const ZOHO_RECRUIT_CANDIDATES_MODULE = 'Candidates';
|
|
2489
|
+
/**
|
|
2490
|
+
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
2491
|
+
*/
|
|
2492
|
+
const isZohoRecruitValidUrl = util.isStandardInternetAccessibleWebsiteUrl;
|
|
2485
2493
|
/**
|
|
2486
2494
|
* Creates a ZohoRecruitSearchRecordsCriteriaString from a ZohoRecruitSearchRecordsCriteriaTree.
|
|
2487
2495
|
*
|
|
@@ -3975,6 +3983,33 @@ function searchRecords(context) {
|
|
|
3975
3983
|
data: []
|
|
3976
3984
|
});
|
|
3977
3985
|
}
|
|
3986
|
+
function createNotes(context) {
|
|
3987
|
+
return input => context.fetchJson(`/v2/Notes`, zohoRecruitApiFetchJsonInput('POST', {
|
|
3988
|
+
data: input.data
|
|
3989
|
+
})).then(x => {
|
|
3990
|
+
return zohoRecruitMultiRecordResult(util.asArray(input.data), x.data);
|
|
3991
|
+
});
|
|
3992
|
+
}
|
|
3993
|
+
function getNotesForRecord(context) {
|
|
3994
|
+
return input => context.fetchJson(`/v2/${input.module}/${input.id}/Notes?${zohoRecruitUrlSearchParamsMinusModule(input.filter).toString()}`, zohoRecruitApiFetchJsonInput('GET'));
|
|
3995
|
+
}
|
|
3996
|
+
function createNotesForRecord(context) {
|
|
3997
|
+
const createNotesInstance = createNotes(context);
|
|
3998
|
+
return input => {
|
|
3999
|
+
const {
|
|
4000
|
+
module: se_module,
|
|
4001
|
+
id: Parent_Id,
|
|
4002
|
+
notes
|
|
4003
|
+
} = input;
|
|
4004
|
+
const createNotesRequest = {
|
|
4005
|
+
data: util.asArray(notes).map(x => Object.assign({}, x, {
|
|
4006
|
+
se_module,
|
|
4007
|
+
Parent_Id
|
|
4008
|
+
}))
|
|
4009
|
+
};
|
|
4010
|
+
return createNotesInstance(createNotesRequest);
|
|
4011
|
+
};
|
|
4012
|
+
}
|
|
3978
4013
|
// MARK: Util
|
|
3979
4014
|
function zohoRecruitUrlSearchParamsMinusModule(input) {
|
|
3980
4015
|
const searchParams = new URLSearchParams(input);
|
|
@@ -4433,6 +4468,7 @@ exports.ZOHO_INVALID_AUTHORIZATION_ERROR_CODE = ZOHO_INVALID_AUTHORIZATION_ERROR
|
|
|
4433
4468
|
exports.ZOHO_INVALID_DATA_ERROR_CODE = ZOHO_INVALID_DATA_ERROR_CODE;
|
|
4434
4469
|
exports.ZOHO_INVALID_QUERY_ERROR_CODE = ZOHO_INVALID_QUERY_ERROR_CODE;
|
|
4435
4470
|
exports.ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE = ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE;
|
|
4471
|
+
exports.ZOHO_RECRUIT_CANDIDATES_MODULE = ZOHO_RECRUIT_CANDIDATES_MODULE;
|
|
4436
4472
|
exports.ZOHO_RECRUIT_SERVICE_NAME = ZOHO_RECRUIT_SERVICE_NAME;
|
|
4437
4473
|
exports.ZOHO_SUCCESS_CODE = ZOHO_SUCCESS_CODE;
|
|
4438
4474
|
exports.ZohoAccountsAccessTokenError = ZohoAccountsAccessTokenError;
|
|
@@ -4450,7 +4486,10 @@ exports.ZohoServerError = ZohoServerError;
|
|
|
4450
4486
|
exports.ZohoServerFetchResponseError = ZohoServerFetchResponseError;
|
|
4451
4487
|
exports.accessToken = accessToken;
|
|
4452
4488
|
exports.assertRecordDataArrayResultHasContent = assertRecordDataArrayResultHasContent;
|
|
4489
|
+
exports.createNotes = createNotes;
|
|
4490
|
+
exports.createNotesForRecord = createNotesForRecord;
|
|
4453
4491
|
exports.escapeZohoFieldValueForCriteriaString = escapeZohoFieldValueForCriteriaString;
|
|
4492
|
+
exports.getNotesForRecord = getNotesForRecord;
|
|
4454
4493
|
exports.getRecordById = getRecordById;
|
|
4455
4494
|
exports.getRecords = getRecords;
|
|
4456
4495
|
exports.handleZohoAccountsErrorFetch = handleZohoAccountsErrorFetch;
|
|
@@ -4460,6 +4499,7 @@ exports.insertRecord = insertRecord;
|
|
|
4460
4499
|
exports.interceptZohoAccountsErrorResponse = interceptZohoAccountsErrorResponse;
|
|
4461
4500
|
exports.interceptZohoErrorResponseFactory = interceptZohoErrorResponseFactory;
|
|
4462
4501
|
exports.interceptZohoRecruitErrorResponse = interceptZohoRecruitErrorResponse;
|
|
4502
|
+
exports.isZohoRecruitValidUrl = isZohoRecruitValidUrl;
|
|
4463
4503
|
exports.logZohoAccountsErrorToConsole = logZohoAccountsErrorToConsole;
|
|
4464
4504
|
exports.logZohoRecruitErrorToConsole = logZohoRecruitErrorToConsole;
|
|
4465
4505
|
exports.logZohoServerErrorFunction = logZohoServerErrorFunction;
|
package/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { escapeStringCharactersFunction, filterMaybeValues, asArray, MS_IN_MINUTE, MS_IN_SECOND } from '@dereekb/util';
|
|
1
|
+
import { escapeStringCharactersFunction, isStandardInternetAccessibleWebsiteUrl, filterMaybeValues, asArray, MS_IN_MINUTE, MS_IN_SECOND } from '@dereekb/util';
|
|
2
2
|
import { BaseError } from 'make-error';
|
|
3
3
|
import { FetchResponseError, FetchRequestFactoryError, fetchJsonFunction, returnNullHandleFetchJsonParseErrorFunction, nodeFetchService } from '@dereekb/util/fetch';
|
|
4
4
|
|
|
@@ -2478,18 +2478,38 @@ var addToUnscopables = addToUnscopables$2;
|
|
|
2478
2478
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2479
2479
|
addToUnscopables('flatMap');
|
|
2480
2480
|
|
|
2481
|
+
// MARK: Data Types
|
|
2481
2482
|
/**
|
|
2482
2483
|
* Zoho Recruit module name.
|
|
2483
2484
|
*
|
|
2484
2485
|
* Example "Candidates"
|
|
2485
2486
|
*/
|
|
2486
2487
|
|
|
2488
|
+
/**
|
|
2489
|
+
* Candidates module name
|
|
2490
|
+
*/
|
|
2491
|
+
const ZOHO_RECRUIT_CANDIDATES_MODULE = 'Candidates';
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Contains a reference to a module.
|
|
2495
|
+
*/
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* An identifier in Zoho Recruit.
|
|
2499
|
+
*/
|
|
2500
|
+
|
|
2487
2501
|
/**
|
|
2488
2502
|
* Zoho Recruit record id
|
|
2489
2503
|
*
|
|
2490
2504
|
* Example "576214000000569001"
|
|
2491
2505
|
*/
|
|
2492
2506
|
|
|
2507
|
+
/**
|
|
2508
|
+
* Zoho Recruit type id
|
|
2509
|
+
*
|
|
2510
|
+
* Example "576214000000820595"
|
|
2511
|
+
*/
|
|
2512
|
+
|
|
2493
2513
|
/**
|
|
2494
2514
|
* Zoho Recruit custom view id
|
|
2495
2515
|
*/
|
|
@@ -2506,6 +2526,20 @@ addToUnscopables('flatMap');
|
|
|
2506
2526
|
* Comma separated list of field names
|
|
2507
2527
|
*/
|
|
2508
2528
|
|
|
2529
|
+
/**
|
|
2530
|
+
* Zoho Recruit only allows URLs that can be resolved via the internet (I.E. uses a normal tdl)
|
|
2531
|
+
*
|
|
2532
|
+
* The following are considered invalid:
|
|
2533
|
+
* - localhost:8080
|
|
2534
|
+
* - ht://dereekb.com
|
|
2535
|
+
*/
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Update details returned by the server for a created/updated object.
|
|
2539
|
+
*/
|
|
2540
|
+
|
|
2541
|
+
// MARK: Zoho Recruit Record
|
|
2542
|
+
|
|
2509
2543
|
/**
|
|
2510
2544
|
* A ZohoRecruit record containing the corresponding record's id.
|
|
2511
2545
|
*/
|
|
@@ -2515,7 +2549,14 @@ addToUnscopables('flatMap');
|
|
|
2515
2549
|
*/
|
|
2516
2550
|
|
|
2517
2551
|
/**
|
|
2518
|
-
*
|
|
2552
|
+
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
2553
|
+
*/
|
|
2554
|
+
const isZohoRecruitValidUrl = isStandardInternetAccessibleWebsiteUrl;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Update details returned by the server for an updated record.
|
|
2558
|
+
*
|
|
2559
|
+
* @deprecated use ZohoRecruitChangeObjectDetails instead.
|
|
2519
2560
|
*/
|
|
2520
2561
|
|
|
2521
2562
|
/**
|
|
@@ -2609,6 +2650,10 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
|
|
|
2609
2650
|
return `(${entry.field}:${entry.filter}:${escapedValue})`;
|
|
2610
2651
|
}
|
|
2611
2652
|
|
|
2653
|
+
// MARK: Notes
|
|
2654
|
+
|
|
2655
|
+
// TODO
|
|
2656
|
+
|
|
2612
2657
|
var global$6 = global$k;
|
|
2613
2658
|
var classof = classofRaw$2;
|
|
2614
2659
|
|
|
@@ -4008,6 +4053,36 @@ function searchRecords(context) {
|
|
|
4008
4053
|
});
|
|
4009
4054
|
}
|
|
4010
4055
|
|
|
4056
|
+
// MARK: Notes
|
|
4057
|
+
|
|
4058
|
+
function createNotes(context) {
|
|
4059
|
+
return input => context.fetchJson(`/v2/Notes`, zohoRecruitApiFetchJsonInput('POST', {
|
|
4060
|
+
data: input.data
|
|
4061
|
+
})).then(x => {
|
|
4062
|
+
return zohoRecruitMultiRecordResult(asArray(input.data), x.data);
|
|
4063
|
+
});
|
|
4064
|
+
}
|
|
4065
|
+
function getNotesForRecord(context) {
|
|
4066
|
+
return input => context.fetchJson(`/v2/${input.module}/${input.id}/Notes?${zohoRecruitUrlSearchParamsMinusModule(input.filter).toString()}`, zohoRecruitApiFetchJsonInput('GET'));
|
|
4067
|
+
}
|
|
4068
|
+
function createNotesForRecord(context) {
|
|
4069
|
+
const createNotesInstance = createNotes(context);
|
|
4070
|
+
return input => {
|
|
4071
|
+
const {
|
|
4072
|
+
module: se_module,
|
|
4073
|
+
id: Parent_Id,
|
|
4074
|
+
notes
|
|
4075
|
+
} = input;
|
|
4076
|
+
const createNotesRequest = {
|
|
4077
|
+
data: asArray(notes).map(x => Object.assign({}, x, {
|
|
4078
|
+
se_module,
|
|
4079
|
+
Parent_Id
|
|
4080
|
+
}))
|
|
4081
|
+
};
|
|
4082
|
+
return createNotesInstance(createNotesRequest);
|
|
4083
|
+
};
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4011
4086
|
// MARK: Util
|
|
4012
4087
|
function zohoRecruitUrlSearchParamsMinusModule(input) {
|
|
4013
4088
|
const searchParams = new URLSearchParams(input);
|
|
@@ -4024,6 +4099,8 @@ function zohoRecruitApiFetchJsonInput(method, body) {
|
|
|
4024
4099
|
return result;
|
|
4025
4100
|
}
|
|
4026
4101
|
|
|
4102
|
+
// MARK: Results
|
|
4103
|
+
|
|
4027
4104
|
// MARK: Multi-Record Results
|
|
4028
4105
|
|
|
4029
4106
|
function zohoRecruitMultiRecordResult(input, results) {
|
|
@@ -4050,6 +4127,19 @@ function zohoRecruitMultiRecordResult(input, results) {
|
|
|
4050
4127
|
return result;
|
|
4051
4128
|
}
|
|
4052
4129
|
|
|
4130
|
+
// MARK: COMPAT
|
|
4131
|
+
/**
|
|
4132
|
+
* @deprecated use ZohoRecruitChangeObjectResponseEntry instead.
|
|
4133
|
+
*/
|
|
4134
|
+
|
|
4135
|
+
/**
|
|
4136
|
+
* @deprecated use ZohoRecruitChangeObjectResponseSuccessEntry instead.
|
|
4137
|
+
*/
|
|
4138
|
+
|
|
4139
|
+
/**
|
|
4140
|
+
* @deprecated use ZohoRecruitChangeObjectResponseErrorEntry instead.
|
|
4141
|
+
*/
|
|
4142
|
+
|
|
4053
4143
|
const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
|
|
4054
4144
|
function zohoRecruitConfigApiUrl(input) {
|
|
4055
4145
|
switch (input) {
|
|
@@ -4396,4 +4486,4 @@ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
|
4396
4486
|
};
|
|
4397
4487
|
}
|
|
4398
4488
|
|
|
4399
|
-
export { 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_RECRUIT_SERVICE_NAME, ZOHO_SUCCESS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, accessToken, assertRecordDataArrayResultHasContent, escapeZohoFieldValueForCriteriaString, getRecordById, getRecords, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord, interceptZohoAccountsErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruitErrorResponse, logZohoAccountsErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, searchRecords, tryFindZohoServerErrorData, updateRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoRecruitApiFetchJsonInput, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData };
|
|
4489
|
+
export { 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_RECRUIT_CANDIDATES_MODULE, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_SUCCESS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseError, accessToken, assertRecordDataArrayResultHasContent, createNotes, createNotesForRecord, escapeZohoFieldValueForCriteriaString, getNotesForRecord, getRecordById, getRecords, handleZohoAccountsErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, insertRecord, interceptZohoAccountsErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruitErrorResponse, isZohoRecruitValidUrl, logZohoAccountsErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, searchRecords, tryFindZohoServerErrorData, updateRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsZohoAccessTokenFactory, zohoRecruitApiFetchJsonInput, zohoRecruitConfigApiUrl, zohoRecruitFactory, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, 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
|
+
## [11.0.6](https://github.com/dereekb/dbx-components/compare/v11.0.5-dev...v11.0.6) (2024-11-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [11.0.5](https://github.com/dereekb/dbx-components/compare/v11.0.4-dev...v11.0.5) (2024-11-19)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [11.0.4](https://github.com/dereekb/dbx-components/compare/v11.0.3-dev...v11.0.4) (2024-11-19)
|
|
6
14
|
|
|
7
15
|
|
package/nestjs/package.json
CHANGED
|
@@ -13,4 +13,7 @@ export declare class ZohoRecruitApi {
|
|
|
13
13
|
get getRecordById(): import("@dereekb/zoho").ZohoRecruitGetRecordByIdFunction;
|
|
14
14
|
get getRecords(): import("@dereekb/zoho").ZohoRecruitGetRecordsFunction;
|
|
15
15
|
get searchRecords(): import("@dereekb/zoho").ZohoRecruitSearchRecordsFunction;
|
|
16
|
+
get createNotes(): (input: import("@dereekb/zoho").ZohoRecruitCreateNotesRequest) => Promise<import("@dereekb/zoho").ZohoRecruitMultiRecordResult<import("@dereekb/zoho").NewZohoRecruitNewNoteData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>>;
|
|
17
|
+
get createNotesForRecord(): import("@dereekb/zoho").ZohoRecruitCreateNotesForRecordFunction;
|
|
18
|
+
get getNotesForRecord(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordFunction;
|
|
16
19
|
}
|
|
@@ -40,6 +40,15 @@ let ZohoRecruitApi = exports.ZohoRecruitApi = class ZohoRecruitApi {
|
|
|
40
40
|
get searchRecords() {
|
|
41
41
|
return (0, zoho_1.searchRecords)(this.recruitContext);
|
|
42
42
|
}
|
|
43
|
+
get createNotes() {
|
|
44
|
+
return (0, zoho_1.createNotes)(this.recruitContext);
|
|
45
|
+
}
|
|
46
|
+
get createNotesForRecord() {
|
|
47
|
+
return (0, zoho_1.createNotesForRecord)(this.recruitContext);
|
|
48
|
+
}
|
|
49
|
+
get getNotesForRecord() {
|
|
50
|
+
return (0, zoho_1.getNotesForRecord)(this.recruitContext);
|
|
51
|
+
}
|
|
43
52
|
};
|
|
44
53
|
exports.ZohoRecruitApi = ZohoRecruitApi = tslib_1.__decorate([
|
|
45
54
|
(0, common_1.Injectable)(),
|
|
@@ -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,wCAA8N;AAC9N,qDAA4D;AAC5D,2DAA2D;AAGpD,IAAM,cAAc,4BAApB,MAAM,cAAc;IAO8B;IAAoE;IANlH,WAAW,CAAc;IAElC,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;IACzC,CAAC;IAED,YAAuD,MAAgC,EAAoC,eAAgC;QAApG,WAAM,GAAN,MAAM,CAA0B;QAAoC,oBAAe,GAAf,eAAe,CAAiB;QACzJ,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,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;CACF,CAAA;yBAlDY,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAQE,mBAAA,IAAA,eAAM,EAAC,yCAAwB,CAAC,CAAA;IAA6C,mBAAA,IAAA,eAAM,EAAC,8BAAe,CAAC,CAAA;6CAAlD,yCAAwB,EAAqD,8BAAe;GAPhJ,cAAc,CAkD1B"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
import { ZohoDataArrayResultRef, ZohoPageResult } from './../zoho.api.page';
|
|
1
|
+
import { ZohoDataArrayResultRef, ZohoPageFilter, ZohoPageResult } from './../zoho.api.page';
|
|
2
2
|
import { FetchJsonBody, FetchJsonInput } from '@dereekb/util/fetch';
|
|
3
3
|
import { ZohoRecruitContext } from './recruit.config';
|
|
4
|
-
import { NewZohoRecruitRecordData, UpdateZohoRecruitRecordData, ZohoRecruitCommaSeparateFieldNames, ZohoRecruitCustomViewId, ZohoRecruitDraftOrSaveState, ZohoRecruitFieldName,
|
|
5
|
-
import { EmailAddress, Maybe, PhoneNumber, SortingOrder } from '@dereekb/util';
|
|
4
|
+
import { NewZohoRecruitNewNoteData, NewZohoRecruitRecordData, UpdateZohoRecruitRecordData, ZohoRecruitCommaSeparateFieldNames, ZohoRecruitCustomViewId, ZohoRecruitDraftOrSaveState, ZohoRecruitFieldName, ZohoRecruitModuleNameRef, ZohoRecruitChangeObjectDetails, ZohoRecruitRecord, ZohoRecruitRecordFieldsData, ZohoRecruitRecordId, ZohoRecruitRecordNote, ZohoRecruitSearchRecordsCriteriaTreeElement, ZohoRecruitTerritoryId, ZohoRecruitTrueFalseBoth } from './recruit';
|
|
5
|
+
import { ArrayOrValue, EmailAddress, Maybe, PhoneNumber, SortingOrder } from '@dereekb/util';
|
|
6
6
|
import { ZohoServerErrorDataWithDetails, ZohoServerErrorStatus, ZohoServerSuccessCode, ZohoServerSuccessStatus } from '../zoho.error.api';
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export type ZohoRecruitUpdateRecordResult<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = ZohoRecruitMultiRecordResult<RECORD_INPUT_TYPE, ZohoRecruitUpdateRecordResponseSuccessEntry, ZohoRecruitUpdateRecordResponseErrorEntry>;
|
|
11
|
-
export type ZohoRecruitUpdateRecordResponse = ZohoDataArrayResultRef<ZohoRecruitUpdateRecordResponseEntry>;
|
|
12
|
-
export type ZohoRecruitUpdateRecordResponseEntry = ZohoRecruitUpdateRecordResponseSuccessEntry | ZohoRecruitUpdateRecordResponseErrorEntry;
|
|
13
|
-
export interface ZohoRecruitUpdateRecordResponseSuccessEntry {
|
|
14
|
-
readonly code: ZohoServerSuccessCode;
|
|
15
|
-
readonly details: ZohoRecruitRecordUpdateDetails;
|
|
16
|
-
readonly status: ZohoServerSuccessStatus;
|
|
17
|
-
readonly message: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ZohoRecruitUpdateRecordResponseErrorEntry extends ZohoServerErrorDataWithDetails {
|
|
20
|
-
readonly status: ZohoServerErrorStatus;
|
|
21
|
-
}
|
|
7
|
+
export type ZohoRecruitUpdateRecordResult<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = ZohoRecruitMultiRecordResult<RECORD_INPUT_TYPE, ZohoRecruitChangeObjectResponseSuccessEntry, ZohoRecruitChangeObjectResponseErrorEntry>;
|
|
8
|
+
export type ZohoRecruitUpdateRecordResponse = ZohoRecruitChangeObjectResponse;
|
|
22
9
|
export type ZohoRecruitUpdateRecordInput<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = ZohoRecruitUpdateSingleRecordInput<RECORD_INPUT_TYPE> | ZohoRecruitUpdateMultiRecordInput<RECORD_INPUT_TYPE>;
|
|
23
10
|
export interface ZohoRecruitUpdateSingleRecordInput<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> extends ZohoRecruitModuleNameRef {
|
|
24
11
|
readonly data: RECORD_INPUT_TYPE;
|
|
@@ -27,7 +14,7 @@ export interface ZohoRecruitUpdateMultiRecordInput<RECORD_INPUT_TYPE extends Zoh
|
|
|
27
14
|
readonly data: RECORD_INPUT_TYPE[];
|
|
28
15
|
}
|
|
29
16
|
export type ZohoRecruitUpdateRecordLikeFunction<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = ZohoRecruitUpdateMultiRecordFunction<RECORD_INPUT_TYPE> & ZohoRecruitUpdateSingleRecordFunction<RECORD_INPUT_TYPE>;
|
|
30
|
-
export type ZohoRecruitUpdateSingleRecordFunction<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = (input: ZohoRecruitUpdateSingleRecordInput<RECORD_INPUT_TYPE>) => Promise<
|
|
17
|
+
export type ZohoRecruitUpdateSingleRecordFunction<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = (input: ZohoRecruitUpdateSingleRecordInput<RECORD_INPUT_TYPE>) => Promise<ZohoRecruitChangeObjectDetails>;
|
|
31
18
|
export type ZohoRecruitUpdateMultiRecordFunction<RECORD_INPUT_TYPE extends ZohoRecruitRecordFieldsData> = (input: ZohoRecruitUpdateMultiRecordInput<RECORD_INPUT_TYPE>) => Promise<ZohoRecruitUpdateRecordResult<RECORD_INPUT_TYPE>>;
|
|
32
19
|
export type ZohoRecruitInsertRecordFunction = ZohoRecruitUpdateRecordLikeFunction<NewZohoRecruitRecordData>;
|
|
33
20
|
/**
|
|
@@ -74,11 +61,9 @@ export type ZohoRecruitGetRecordByIdFunction = <T extends ZohoRecruitRecordField
|
|
|
74
61
|
* @returns
|
|
75
62
|
*/
|
|
76
63
|
export declare function getRecordById(context: ZohoRecruitContext): ZohoRecruitGetRecordByIdFunction;
|
|
77
|
-
export interface ZohoRecruitGetRecordsPageFilter {
|
|
64
|
+
export interface ZohoRecruitGetRecordsPageFilter extends ZohoPageFilter {
|
|
78
65
|
readonly converted?: ZohoRecruitTrueFalseBoth;
|
|
79
66
|
readonly approved?: ZohoRecruitTrueFalseBoth;
|
|
80
|
-
readonly page?: number;
|
|
81
|
-
readonly per_page?: number;
|
|
82
67
|
}
|
|
83
68
|
export interface ZohoRecruitGetRecordsInput extends ZohoRecruitModuleNameRef, ZohoRecruitGetRecordsPageFilter {
|
|
84
69
|
readonly fields?: ZohoRecruitCommaSeparateFieldNames;
|
|
@@ -122,8 +107,40 @@ export type ZohoRecruitSearchRecordsFunction = <T extends ZohoRecruitRecordField
|
|
|
122
107
|
* @returns
|
|
123
108
|
*/
|
|
124
109
|
export declare function searchRecords(context: ZohoRecruitContext): ZohoRecruitSearchRecordsFunction;
|
|
125
|
-
export
|
|
110
|
+
export type ZohoRecruitGetNotesPageFilter = ZohoPageFilter;
|
|
111
|
+
export interface ZohoRecruitCreateNotesRequest {
|
|
112
|
+
readonly data: ZohoRecruitCreateNotesRequestEntry[];
|
|
113
|
+
}
|
|
114
|
+
export type ZohoRecruitCreateNotesResult = ZohoRecruitMultiRecordResult<ZohoRecruitCreateNotesRequestEntry, ZohoRecruitChangeObjectResponseSuccessEntry, ZohoRecruitChangeObjectResponseErrorEntry>;
|
|
115
|
+
export type ZohoRecruitCreateNotesRequestEntry = NewZohoRecruitNewNoteData;
|
|
116
|
+
export type ZohoRecruitCreateNotesResponse = ZohoRecruitChangeObjectResponse;
|
|
117
|
+
export type ZohoRecruitCreateNotesFunction = (input: ZohoRecruitCreateNotesRequest) => Promise<ZohoRecruitCreateNotesResult>;
|
|
118
|
+
export declare function createNotes(context: ZohoRecruitContext): (input: ZohoRecruitCreateNotesRequest) => Promise<ZohoRecruitMultiRecordResult<NewZohoRecruitNewNoteData, ZohoRecruitChangeObjectResponseSuccessEntry<ZohoRecruitChangeObjectDetails>, ZohoRecruitChangeObjectResponseErrorEntry>>;
|
|
119
|
+
export interface ZohoRecruitGetNotesForRecordRequest extends ZohoRecruitGetRecordByIdInput {
|
|
120
|
+
filter?: Maybe<ZohoRecruitGetNotesPageFilter>;
|
|
121
|
+
}
|
|
122
|
+
export type ZohoRecruitGetNotesForRecordResponse = ZohoPageResult<ZohoRecruitRecordNote>;
|
|
123
|
+
export type ZohoRecruitGetNotesForRecordFunction = (input: ZohoRecruitGetNotesForRecordRequest) => Promise<ZohoRecruitGetNotesForRecordResponse>;
|
|
124
|
+
export declare function getNotesForRecord(context: ZohoRecruitContext): ZohoRecruitGetNotesForRecordFunction;
|
|
125
|
+
export interface ZohoRecruitCreateNotesForRecordRequest extends ZohoRecruitModuleNameRef {
|
|
126
|
+
readonly id: ZohoRecruitRecordId;
|
|
127
|
+
readonly notes: ArrayOrValue<Omit<NewZohoRecruitNewNoteData, 'se_module' | 'Parent_Id'>>;
|
|
128
|
+
}
|
|
129
|
+
export type ZohoRecruitCreateNotesForRecordFunction = (input: ZohoRecruitCreateNotesForRecordRequest) => Promise<ZohoRecruitCreateNotesResult>;
|
|
130
|
+
export declare function createNotesForRecord(context: ZohoRecruitContext): ZohoRecruitCreateNotesForRecordFunction;
|
|
131
|
+
export declare function zohoRecruitUrlSearchParamsMinusModule(input: Maybe<object | Record<string, string | number>>): URLSearchParams;
|
|
126
132
|
export declare function zohoRecruitApiFetchJsonInput(method: string, body?: FetchJsonBody): FetchJsonInput;
|
|
133
|
+
export type ZohoRecruitChangeObjectResponse<T extends ZohoRecruitChangeObjectResponseEntry = ZohoRecruitChangeObjectResponseEntry> = ZohoDataArrayResultRef<T>;
|
|
134
|
+
export type ZohoRecruitChangeObjectResponseEntry<E extends ZohoRecruitChangeObjectResponseSuccessEntry = ZohoRecruitChangeObjectResponseSuccessEntry> = E | ZohoRecruitUpdateRecordResponseErrorEntry;
|
|
135
|
+
export interface ZohoRecruitChangeObjectResponseSuccessEntry<D extends ZohoRecruitChangeObjectDetails = ZohoRecruitChangeObjectDetails> {
|
|
136
|
+
readonly code: ZohoServerSuccessCode;
|
|
137
|
+
readonly details: D;
|
|
138
|
+
readonly status: ZohoServerSuccessStatus;
|
|
139
|
+
readonly message: string;
|
|
140
|
+
}
|
|
141
|
+
export interface ZohoRecruitChangeObjectResponseErrorEntry extends ZohoServerErrorDataWithDetails {
|
|
142
|
+
readonly status: ZohoServerErrorStatus;
|
|
143
|
+
}
|
|
127
144
|
export interface ZohoRecruitMultiRecordResult<I, OS, OE> {
|
|
128
145
|
readonly successItems: ZohoRecruitMultiRecordResultEntry<I, OS>[];
|
|
129
146
|
readonly errorItems: ZohoRecruitMultiRecordResultEntry<I, OE>[];
|
|
@@ -142,3 +159,15 @@ export interface ZohoRecruitMultiRecordResultEntry<I, O> {
|
|
|
142
159
|
*/
|
|
143
160
|
readonly result: O;
|
|
144
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated use ZohoRecruitChangeObjectResponseEntry instead.
|
|
164
|
+
*/
|
|
165
|
+
export type ZohoRecruitUpdateRecordResponseEntry = ZohoRecruitChangeObjectResponseEntry;
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated use ZohoRecruitChangeObjectResponseSuccessEntry instead.
|
|
168
|
+
*/
|
|
169
|
+
export type ZohoRecruitUpdateRecordResponseSuccessEntry = ZohoRecruitChangeObjectResponseSuccessEntry;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated use ZohoRecruitChangeObjectResponseErrorEntry instead.
|
|
172
|
+
*/
|
|
173
|
+
export type ZohoRecruitUpdateRecordResponseErrorEntry = ZohoRecruitChangeObjectResponseErrorEntry;
|
|
@@ -1,16 +1,36 @@
|
|
|
1
|
-
import { CommaSeparatedString, ISO8601DateString, Maybe, UniqueModelWithId } from '@dereekb/util';
|
|
1
|
+
import { CommaSeparatedString, ISO8601DateString, Maybe, UniqueModelWithId, WebsiteUrl } from '@dereekb/util';
|
|
2
2
|
/**
|
|
3
3
|
* Zoho Recruit module name.
|
|
4
4
|
*
|
|
5
5
|
* Example "Candidates"
|
|
6
6
|
*/
|
|
7
7
|
export type ZohoRecruitModuleName = string;
|
|
8
|
+
/**
|
|
9
|
+
* Candidates module name
|
|
10
|
+
*/
|
|
11
|
+
export declare const ZOHO_RECRUIT_CANDIDATES_MODULE = "Candidates";
|
|
12
|
+
/**
|
|
13
|
+
* Contains a reference to a module.
|
|
14
|
+
*/
|
|
15
|
+
export interface ZohoRecruitModuleNameRef {
|
|
16
|
+
readonly module: ZohoRecruitModuleName;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An identifier in Zoho Recruit.
|
|
20
|
+
*/
|
|
21
|
+
export type ZohoRecruitId = string;
|
|
8
22
|
/**
|
|
9
23
|
* Zoho Recruit record id
|
|
10
24
|
*
|
|
11
25
|
* Example "576214000000569001"
|
|
12
26
|
*/
|
|
13
27
|
export type ZohoRecruitRecordId = string;
|
|
28
|
+
/**
|
|
29
|
+
* Zoho Recruit type id
|
|
30
|
+
*
|
|
31
|
+
* Example "576214000000820595"
|
|
32
|
+
*/
|
|
33
|
+
export type ZohoRecruitTypeId = string;
|
|
14
34
|
/**
|
|
15
35
|
* Zoho Recruit custom view id
|
|
16
36
|
*/
|
|
@@ -29,9 +49,34 @@ export type ZohoRecruitDraftOrSaveState = 'draft' | 'save';
|
|
|
29
49
|
*/
|
|
30
50
|
export type ZohoRecruitCommaSeparateFieldNames = CommaSeparatedString;
|
|
31
51
|
export type ZohoRecruitTrueFalseBoth = 'true' | 'false' | 'both';
|
|
32
|
-
export interface
|
|
52
|
+
export interface ZohoRecruitReferenceData {
|
|
33
53
|
name: string;
|
|
34
|
-
id:
|
|
54
|
+
id: ZohoRecruitId;
|
|
55
|
+
}
|
|
56
|
+
export interface ZohoRecruitReferenceDataWithModule extends ZohoRecruitReferenceData, ZohoRecruitModuleNameRef {
|
|
57
|
+
}
|
|
58
|
+
export type ZohoRecruitCreatedByData = ZohoRecruitReferenceData;
|
|
59
|
+
export interface ZohoRecruitModifiedByData extends ZohoRecruitReferenceData {
|
|
60
|
+
zuid: ZohoRecruitId;
|
|
61
|
+
}
|
|
62
|
+
export type ZohoRecruitParentReferenceData = ZohoRecruitReferenceDataWithModule;
|
|
63
|
+
/**
|
|
64
|
+
* Zoho Recruit only allows URLs that can be resolved via the internet (I.E. uses a normal tdl)
|
|
65
|
+
*
|
|
66
|
+
* The following are considered invalid:
|
|
67
|
+
* - localhost:8080
|
|
68
|
+
* - ht://dereekb.com
|
|
69
|
+
*/
|
|
70
|
+
export type ZohoRecruitValidUrl = WebsiteUrl;
|
|
71
|
+
/**
|
|
72
|
+
* Update details returned by the server for a created/updated object.
|
|
73
|
+
*/
|
|
74
|
+
export interface ZohoRecruitChangeObjectDetails {
|
|
75
|
+
id: ZohoRecruitRecordId;
|
|
76
|
+
Modified_Time: ISO8601DateString;
|
|
77
|
+
Modified_By: ZohoRecruitCreatedByData;
|
|
78
|
+
Created_Time: ISO8601DateString;
|
|
79
|
+
Created_By: ZohoRecruitCreatedByData;
|
|
35
80
|
}
|
|
36
81
|
export type ZohoRecruitRecordFieldsData = Record<ZohoRecruitFieldName, any>;
|
|
37
82
|
export interface ZohoRecordDraftStateData {
|
|
@@ -52,15 +97,15 @@ export type UpdateZohoRecruitRecordData = UniqueModelWithId & ZohoRecruitRecordF
|
|
|
52
97
|
*/
|
|
53
98
|
export type ZohoRecruitRecord = UniqueModelWithId & ZohoRecruitRecordFieldsData;
|
|
54
99
|
/**
|
|
55
|
-
*
|
|
100
|
+
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
56
101
|
*/
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
102
|
+
export declare const isZohoRecruitValidUrl: (input: WebsiteUrl) => input is ZohoRecruitValidUrl;
|
|
103
|
+
/**
|
|
104
|
+
* Update details returned by the server for an updated record.
|
|
105
|
+
*
|
|
106
|
+
* @deprecated use ZohoRecruitChangeObjectDetails instead.
|
|
107
|
+
*/
|
|
108
|
+
export type ZohoRecruitRecordUpdateDetails = ZohoRecruitChangeObjectDetails;
|
|
64
109
|
/**
|
|
65
110
|
* Encoded criteria string.
|
|
66
111
|
*/
|
|
@@ -106,3 +151,45 @@ export declare const escapeZohoFieldValueForCriteriaString: import("@dereekb/uti
|
|
|
106
151
|
* @returns
|
|
107
152
|
*/
|
|
108
153
|
export declare function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString<T extends ZohoRecruitRecordFieldsData = ZohoRecruitRecordFieldsData>(entry: ZohoRecruitSearchRecordsCriteriaEntry<T>): ZohoRecruitSearchRecordsCriteriaString;
|
|
154
|
+
export type ZohoRecruitNoteId = string;
|
|
155
|
+
export interface ZohoRecruitNoteAction {
|
|
156
|
+
$is_system_action: boolean;
|
|
157
|
+
}
|
|
158
|
+
export type ZohoRecruitNoteSourceName = 'NORMAL_USER';
|
|
159
|
+
export type ZohoRecruitNoteSourceType = number;
|
|
160
|
+
export interface ZohoRecruitNoteSource {
|
|
161
|
+
name: ZohoRecruitNoteSourceName;
|
|
162
|
+
type: ZohoRecruitNoteSourceType;
|
|
163
|
+
}
|
|
164
|
+
export type ZohoRecruitNoteOwnerData = ZohoRecruitReferenceData;
|
|
165
|
+
export interface ZohoRecruitNoteData {
|
|
166
|
+
Note_Title: string;
|
|
167
|
+
Note_Content: string;
|
|
168
|
+
Parent_Id: ZohoRecruitParentReferenceData;
|
|
169
|
+
Created_Time: ISO8601DateString;
|
|
170
|
+
Modified_Time: ISO8601DateString;
|
|
171
|
+
$attachments: null;
|
|
172
|
+
$is_edit_allowed: boolean;
|
|
173
|
+
$editable: boolean;
|
|
174
|
+
$type_id: ZohoRecruitTypeId;
|
|
175
|
+
$is_delete_allowed: boolean;
|
|
176
|
+
$note_action: ZohoRecruitNoteAction;
|
|
177
|
+
$source: ZohoRecruitNoteSource;
|
|
178
|
+
$se_module: ZohoRecruitModuleName;
|
|
179
|
+
$is_shared_to_client: boolean;
|
|
180
|
+
Note_Owner: ZohoRecruitNoteOwnerData;
|
|
181
|
+
Created_By: ZohoRecruitCreatedByData;
|
|
182
|
+
Modified_By: ZohoRecruitModifiedByData;
|
|
183
|
+
$size: ZohoRecruitNoteFileSize | null;
|
|
184
|
+
$voice_note: boolean;
|
|
185
|
+
$status: ZohoRecruitNoteStatus;
|
|
186
|
+
}
|
|
187
|
+
export interface NewZohoRecruitNewNoteData extends Pick<ZohoRecruitNoteData, 'Note_Title' | 'Note_Content'> {
|
|
188
|
+
Parent_Id: Pick<ZohoRecruitParentReferenceData, 'id'> | ZohoRecruitId;
|
|
189
|
+
se_module: ZohoRecruitModuleName;
|
|
190
|
+
}
|
|
191
|
+
export type ZohoRecruitNoteStatus = string;
|
|
192
|
+
export type ZohoRecruitNoteFileSize = number;
|
|
193
|
+
export interface ZohoRecruitNote extends ZohoRecruitNoteData, UniqueModelWithId {
|
|
194
|
+
}
|
|
195
|
+
export type ZohoRecruitRecordNote = ZohoRecruitNote;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { PageNumber } from '@dereekb/util';
|
|
2
|
+
/**
|
|
3
|
+
* Base page filter
|
|
4
|
+
*/
|
|
5
|
+
export interface ZohoPageFilter {
|
|
6
|
+
readonly page?: number;
|
|
7
|
+
readonly per_page?: number;
|
|
8
|
+
}
|
|
2
9
|
export interface ZohoDataArrayResultRef<T> {
|
|
3
10
|
/**
|
|
4
11
|
* Array of data returned.
|
|
@@ -8,11 +15,11 @@ export interface ZohoDataArrayResultRef<T> {
|
|
|
8
15
|
/**
|
|
9
16
|
* Page result that contains an array of data and page information.
|
|
10
17
|
*/
|
|
11
|
-
export interface ZohoPageResult<T> extends ZohoDataArrayResultRef<T> {
|
|
18
|
+
export interface ZohoPageResult<T, I extends ZohoPageResultInfo = ZohoPageResultInfo> extends ZohoDataArrayResultRef<T> {
|
|
12
19
|
/**
|
|
13
20
|
* Current page information
|
|
14
21
|
*/
|
|
15
|
-
readonly info:
|
|
22
|
+
readonly info: I;
|
|
16
23
|
}
|
|
17
24
|
/**
|
|
18
25
|
* Page information within a ZohoPageResult
|