@dereekb/zoho 11.0.5 → 11.0.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 +35 -0
- package/index.esm.js +91 -9
- 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 +97 -18
- package/src/lib/zoho.api.page.d.ts +9 -2
package/index.cjs.js
CHANGED
|
@@ -2482,6 +2482,10 @@ 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';
|
|
2485
2489
|
/**
|
|
2486
2490
|
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
2487
2491
|
*/
|
|
@@ -3979,6 +3983,33 @@ function searchRecords(context) {
|
|
|
3979
3983
|
data: []
|
|
3980
3984
|
});
|
|
3981
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
|
+
}
|
|
3982
4013
|
// MARK: Util
|
|
3983
4014
|
function zohoRecruitUrlSearchParamsMinusModule(input) {
|
|
3984
4015
|
const searchParams = new URLSearchParams(input);
|
|
@@ -4437,6 +4468,7 @@ exports.ZOHO_INVALID_AUTHORIZATION_ERROR_CODE = ZOHO_INVALID_AUTHORIZATION_ERROR
|
|
|
4437
4468
|
exports.ZOHO_INVALID_DATA_ERROR_CODE = ZOHO_INVALID_DATA_ERROR_CODE;
|
|
4438
4469
|
exports.ZOHO_INVALID_QUERY_ERROR_CODE = ZOHO_INVALID_QUERY_ERROR_CODE;
|
|
4439
4470
|
exports.ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE = ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE;
|
|
4471
|
+
exports.ZOHO_RECRUIT_CANDIDATES_MODULE = ZOHO_RECRUIT_CANDIDATES_MODULE;
|
|
4440
4472
|
exports.ZOHO_RECRUIT_SERVICE_NAME = ZOHO_RECRUIT_SERVICE_NAME;
|
|
4441
4473
|
exports.ZOHO_SUCCESS_CODE = ZOHO_SUCCESS_CODE;
|
|
4442
4474
|
exports.ZohoAccountsAccessTokenError = ZohoAccountsAccessTokenError;
|
|
@@ -4454,7 +4486,10 @@ exports.ZohoServerError = ZohoServerError;
|
|
|
4454
4486
|
exports.ZohoServerFetchResponseError = ZohoServerFetchResponseError;
|
|
4455
4487
|
exports.accessToken = accessToken;
|
|
4456
4488
|
exports.assertRecordDataArrayResultHasContent = assertRecordDataArrayResultHasContent;
|
|
4489
|
+
exports.createNotes = createNotes;
|
|
4490
|
+
exports.createNotesForRecord = createNotesForRecord;
|
|
4457
4491
|
exports.escapeZohoFieldValueForCriteriaString = escapeZohoFieldValueForCriteriaString;
|
|
4492
|
+
exports.getNotesForRecord = getNotesForRecord;
|
|
4458
4493
|
exports.getRecordById = getRecordById;
|
|
4459
4494
|
exports.getRecords = getRecords;
|
|
4460
4495
|
exports.handleZohoAccountsErrorFetch = handleZohoAccountsErrorFetch;
|
package/index.esm.js
CHANGED
|
@@ -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
|
*/
|
|
@@ -2507,19 +2527,25 @@ addToUnscopables('flatMap');
|
|
|
2507
2527
|
*/
|
|
2508
2528
|
|
|
2509
2529
|
/**
|
|
2510
|
-
*
|
|
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
|
|
2511
2535
|
*/
|
|
2512
2536
|
|
|
2513
2537
|
/**
|
|
2514
|
-
*
|
|
2538
|
+
* Update details returned by the server for a created/updated object.
|
|
2515
2539
|
*/
|
|
2516
2540
|
|
|
2541
|
+
// MARK: Zoho Recruit Record
|
|
2542
|
+
|
|
2517
2543
|
/**
|
|
2518
|
-
*
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
*
|
|
2544
|
+
* A ZohoRecruit record containing the corresponding record's id.
|
|
2545
|
+
*/
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* A ZohoRecruit record containing record details.
|
|
2523
2549
|
*/
|
|
2524
2550
|
|
|
2525
2551
|
/**
|
|
@@ -2528,7 +2554,9 @@ addToUnscopables('flatMap');
|
|
|
2528
2554
|
const isZohoRecruitValidUrl = isStandardInternetAccessibleWebsiteUrl;
|
|
2529
2555
|
|
|
2530
2556
|
/**
|
|
2531
|
-
* Update details returned by the server for an updated
|
|
2557
|
+
* Update details returned by the server for an updated record.
|
|
2558
|
+
*
|
|
2559
|
+
* @deprecated use ZohoRecruitChangeObjectDetails instead.
|
|
2532
2560
|
*/
|
|
2533
2561
|
|
|
2534
2562
|
/**
|
|
@@ -2622,6 +2650,15 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
|
|
|
2622
2650
|
return `(${entry.field}:${entry.filter}:${escapedValue})`;
|
|
2623
2651
|
}
|
|
2624
2652
|
|
|
2653
|
+
// MARK: Notes
|
|
2654
|
+
|
|
2655
|
+
// TODO
|
|
2656
|
+
|
|
2657
|
+
// MARK: Compat
|
|
2658
|
+
/**
|
|
2659
|
+
* @deprecated use NewZohoRecruitNewNoteData instead.
|
|
2660
|
+
*/
|
|
2661
|
+
|
|
2625
2662
|
var global$6 = global$k;
|
|
2626
2663
|
var classof = classofRaw$2;
|
|
2627
2664
|
|
|
@@ -4021,6 +4058,36 @@ function searchRecords(context) {
|
|
|
4021
4058
|
});
|
|
4022
4059
|
}
|
|
4023
4060
|
|
|
4061
|
+
// MARK: Notes
|
|
4062
|
+
|
|
4063
|
+
function createNotes(context) {
|
|
4064
|
+
return input => context.fetchJson(`/v2/Notes`, zohoRecruitApiFetchJsonInput('POST', {
|
|
4065
|
+
data: input.data
|
|
4066
|
+
})).then(x => {
|
|
4067
|
+
return zohoRecruitMultiRecordResult(asArray(input.data), x.data);
|
|
4068
|
+
});
|
|
4069
|
+
}
|
|
4070
|
+
function getNotesForRecord(context) {
|
|
4071
|
+
return input => context.fetchJson(`/v2/${input.module}/${input.id}/Notes?${zohoRecruitUrlSearchParamsMinusModule(input.filter).toString()}`, zohoRecruitApiFetchJsonInput('GET'));
|
|
4072
|
+
}
|
|
4073
|
+
function createNotesForRecord(context) {
|
|
4074
|
+
const createNotesInstance = createNotes(context);
|
|
4075
|
+
return input => {
|
|
4076
|
+
const {
|
|
4077
|
+
module: se_module,
|
|
4078
|
+
id: Parent_Id,
|
|
4079
|
+
notes
|
|
4080
|
+
} = input;
|
|
4081
|
+
const createNotesRequest = {
|
|
4082
|
+
data: asArray(notes).map(x => Object.assign({}, x, {
|
|
4083
|
+
se_module,
|
|
4084
|
+
Parent_Id
|
|
4085
|
+
}))
|
|
4086
|
+
};
|
|
4087
|
+
return createNotesInstance(createNotesRequest);
|
|
4088
|
+
};
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4024
4091
|
// MARK: Util
|
|
4025
4092
|
function zohoRecruitUrlSearchParamsMinusModule(input) {
|
|
4026
4093
|
const searchParams = new URLSearchParams(input);
|
|
@@ -4037,6 +4104,8 @@ function zohoRecruitApiFetchJsonInput(method, body) {
|
|
|
4037
4104
|
return result;
|
|
4038
4105
|
}
|
|
4039
4106
|
|
|
4107
|
+
// MARK: Results
|
|
4108
|
+
|
|
4040
4109
|
// MARK: Multi-Record Results
|
|
4041
4110
|
|
|
4042
4111
|
function zohoRecruitMultiRecordResult(input, results) {
|
|
@@ -4063,6 +4132,19 @@ function zohoRecruitMultiRecordResult(input, results) {
|
|
|
4063
4132
|
return result;
|
|
4064
4133
|
}
|
|
4065
4134
|
|
|
4135
|
+
// MARK: COMPAT
|
|
4136
|
+
/**
|
|
4137
|
+
* @deprecated use ZohoRecruitChangeObjectResponseEntry instead.
|
|
4138
|
+
*/
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
* @deprecated use ZohoRecruitChangeObjectResponseSuccessEntry instead.
|
|
4142
|
+
*/
|
|
4143
|
+
|
|
4144
|
+
/**
|
|
4145
|
+
* @deprecated use ZohoRecruitChangeObjectResponseErrorEntry instead.
|
|
4146
|
+
*/
|
|
4147
|
+
|
|
4066
4148
|
const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
|
|
4067
4149
|
function zohoRecruitConfigApiUrl(input) {
|
|
4068
4150
|
switch (input) {
|
|
@@ -4409,4 +4491,4 @@ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
|
4409
4491
|
};
|
|
4410
4492
|
}
|
|
4411
4493
|
|
|
4412
|
-
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, 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 };
|
|
4494
|
+
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.7](https://github.com/dereekb/dbx-components/compare/v11.0.6-dev...v11.0.7) (2024-11-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [11.0.6](https://github.com/dereekb/dbx-components/compare/v11.0.5-dev...v11.0.6) (2024-11-20)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [11.0.5](https://github.com/dereekb/dbx-components/compare/v11.0.4-dev...v11.0.5) (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").NewZohoRecruitNoteData, 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 { NewZohoRecruitNoteData, 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 = NewZohoRecruitNoteData;
|
|
116
|
+
export type ZohoRecruitCreateNotesResponse = ZohoRecruitChangeObjectResponse;
|
|
117
|
+
export type ZohoRecruitCreateNotesFunction = (input: ZohoRecruitCreateNotesRequest) => Promise<ZohoRecruitCreateNotesResult>;
|
|
118
|
+
export declare function createNotes(context: ZohoRecruitContext): (input: ZohoRecruitCreateNotesRequest) => Promise<ZohoRecruitMultiRecordResult<NewZohoRecruitNoteData, 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<NewZohoRecruitNoteData, '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;
|
|
@@ -5,12 +5,32 @@ import { CommaSeparatedString, ISO8601DateString, Maybe, UniqueModelWithId, Webs
|
|
|
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 {
|
|
@@ -51,28 +96,16 @@ export type UpdateZohoRecruitRecordData = UniqueModelWithId & ZohoRecruitRecordF
|
|
|
51
96
|
* A ZohoRecruit record containing record details.
|
|
52
97
|
*/
|
|
53
98
|
export type ZohoRecruitRecord = UniqueModelWithId & ZohoRecruitRecordFieldsData;
|
|
54
|
-
/**
|
|
55
|
-
* Zoho Recruit only allows URLs that can be resolved via the internet (I.E. uses a normal tdl)
|
|
56
|
-
*
|
|
57
|
-
* The following are considered invalid:
|
|
58
|
-
* - localhost:8080
|
|
59
|
-
* - ht://dereekb.com
|
|
60
|
-
*/
|
|
61
|
-
export type ZohoRecruitValidUrl = WebsiteUrl;
|
|
62
99
|
/**
|
|
63
100
|
* Returns true if it is a valid ZohoRecruitValidUrl.
|
|
64
101
|
*/
|
|
65
102
|
export declare const isZohoRecruitValidUrl: (input: WebsiteUrl) => input is ZohoRecruitValidUrl;
|
|
66
103
|
/**
|
|
67
|
-
* Update details returned by the server for an updated
|
|
104
|
+
* Update details returned by the server for an updated record.
|
|
105
|
+
*
|
|
106
|
+
* @deprecated use ZohoRecruitChangeObjectDetails instead.
|
|
68
107
|
*/
|
|
69
|
-
export
|
|
70
|
-
id: ZohoRecruitRecordId;
|
|
71
|
-
Modified_Time: ISO8601DateString;
|
|
72
|
-
Modified_By: ZohoRecruitCreatedByData;
|
|
73
|
-
Created_Time: ISO8601DateString;
|
|
74
|
-
Created_By: ZohoRecruitCreatedByData;
|
|
75
|
-
}
|
|
108
|
+
export type ZohoRecruitRecordUpdateDetails = ZohoRecruitChangeObjectDetails;
|
|
76
109
|
/**
|
|
77
110
|
* Encoded criteria string.
|
|
78
111
|
*/
|
|
@@ -118,3 +151,49 @@ export declare const escapeZohoFieldValueForCriteriaString: import("@dereekb/uti
|
|
|
118
151
|
* @returns
|
|
119
152
|
*/
|
|
120
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 NewZohoRecruitNoteData 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;
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated use NewZohoRecruitNewNoteData instead.
|
|
198
|
+
*/
|
|
199
|
+
export type NewZohoRecruitNewNoteData = NewZohoRecruitNoteData;
|
|
@@ -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
|