@dereekb/zoho 13.11.2 → 13.11.3
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/cli/index.js +2 -2
- package/cli/package.json +7 -7
- package/index.cjs.js +37 -0
- package/index.esm.js +37 -0
- package/nestjs/package.json +5 -5
- package/package.json +8 -8
- package/src/lib/accounts/accounts.d.ts +1 -0
- package/src/lib/accounts/accounts.factory.d.ts +2 -0
- package/src/lib/crm/crm.api.d.ts +5 -0
- package/src/lib/crm/crm.api.notes.d.ts +1 -0
- package/src/lib/crm/crm.api.tags.d.ts +1 -0
- package/src/lib/crm/crm.factory.d.ts +1 -0
- package/src/lib/desk/desk.api.activities.d.ts +1 -0
- package/src/lib/desk/desk.api.agents.d.ts +1 -0
- package/src/lib/desk/desk.api.contacts.d.ts +1 -0
- package/src/lib/desk/desk.api.page.d.ts +1 -0
- package/src/lib/desk/desk.api.threads.d.ts +1 -0
- package/src/lib/desk/desk.api.tickets.d.ts +2 -0
- package/src/lib/desk/desk.factory.d.ts +1 -0
- package/src/lib/recruit/recruit.api.candidates.d.ts +2 -0
- package/src/lib/recruit/recruit.api.d.ts +5 -0
- package/src/lib/recruit/recruit.api.notes.d.ts +1 -0
- package/src/lib/recruit/recruit.api.tags.d.ts +1 -0
- package/src/lib/recruit/recruit.factory.d.ts +1 -0
- package/src/lib/sign/sign.api.d.ts +1 -0
- package/src/lib/sign/sign.api.page.d.ts +1 -0
- package/src/lib/sign/sign.factory.d.ts +1 -0
- package/src/lib/zoho.api.page.d.ts +1 -0
- package/src/lib/zoho.error.api.d.ts +3 -0
- package/src/lib/zoho.limit.d.ts +1 -0
package/cli/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/cli",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"zoho-cli": "index.js"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/dbx-cli": "13.11.
|
|
10
|
-
"@dereekb/nestjs": "13.11.
|
|
11
|
-
"@dereekb/rxjs": "13.11.
|
|
12
|
-
"@dereekb/util": "13.11.
|
|
13
|
-
"@dereekb/zoho": "13.11.
|
|
14
|
-
"@dereekb/zoho/nestjs": "13.11.
|
|
9
|
+
"@dereekb/dbx-cli": "13.11.3",
|
|
10
|
+
"@dereekb/nestjs": "13.11.3",
|
|
11
|
+
"@dereekb/rxjs": "13.11.3",
|
|
12
|
+
"@dereekb/util": "13.11.3",
|
|
13
|
+
"@dereekb/zoho": "13.11.3",
|
|
14
|
+
"@dereekb/zoho/nestjs": "13.11.3",
|
|
15
15
|
"yargs": "^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
package/index.cjs.js
CHANGED
|
@@ -88,6 +88,7 @@ function _object_spread_props$n(target, source) {
|
|
|
88
88
|
* const secondPage = await firstPage.fetchNext();
|
|
89
89
|
* }
|
|
90
90
|
* ```
|
|
91
|
+
* @__NO_SIDE_EFFECTS__
|
|
91
92
|
*/ function zohoFetchPageFactory(fetch$1, defaults) {
|
|
92
93
|
return fetch.fetchPageFactory(_object_spread_props$n(_object_spread$o({}, defaults), {
|
|
93
94
|
fetch: fetch$1,
|
|
@@ -652,6 +653,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
652
653
|
* @param zohoApiNamePrefix - Prefix to use when logging (e.g. 'ZohoRecruit', 'ZohoSign')
|
|
653
654
|
* @param options - Optional configuration for controlling which error types are logged
|
|
654
655
|
* @returns A function that logs Zoho server errors to the console
|
|
656
|
+
* @__NO_SIDE_EFFECTS__
|
|
655
657
|
*/ function logZohoServerErrorFunction(zohoApiNamePrefix, options) {
|
|
656
658
|
var _ref = options !== null && options !== void 0 ? options : {}, _ref_logDataArrayErrors = _ref.logDataArrayErrors, logDataArrayErrors = _ref_logDataArrayErrors === void 0 ? false : _ref_logDataArrayErrors;
|
|
657
659
|
return function(error) {
|
|
@@ -677,6 +679,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
677
679
|
* @param parseZohoError - Function that parses a fetch response error into a Zoho-specific error
|
|
678
680
|
* @param defaultLogError - Default error logging function used when no custom logger is provided
|
|
679
681
|
* @returns Factory that wraps a ConfiguredFetch with Zoho error handling
|
|
682
|
+
* @__NO_SIDE_EFFECTS__
|
|
680
683
|
*/ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
|
|
681
684
|
return function(fetch$1) {
|
|
682
685
|
var logError = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultLogError, onError = arguments.length > 2 ? arguments[2] : void 0;
|
|
@@ -736,6 +739,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
736
739
|
*
|
|
737
740
|
* @param parseZohoServerErrorResponseData - Function that parses raw error response data into a structured error
|
|
738
741
|
* @returns Interceptor function that detects and throws hidden errors in 200 responses
|
|
742
|
+
* @__NO_SIDE_EFFECTS__
|
|
739
743
|
*/ function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
|
|
740
744
|
return function(json, response) {
|
|
741
745
|
var error = json === null || json === void 0 ? void 0 : json.error;
|
|
@@ -1750,6 +1754,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1750
1754
|
* const firstPage = await fetchPage.fetchNext();
|
|
1751
1755
|
* const secondPage = await firstPage.fetchNext();
|
|
1752
1756
|
* ```
|
|
1757
|
+
* @__NO_SIDE_EFFECTS__
|
|
1753
1758
|
*/ function zohoRecruitSearchRecordsPageFactory(context) {
|
|
1754
1759
|
return zohoFetchPageFactory(zohoRecruitSearchRecords(context));
|
|
1755
1760
|
}
|
|
@@ -1781,6 +1786,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1781
1786
|
* ```
|
|
1782
1787
|
*
|
|
1783
1788
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1789
|
+
* @__NO_SIDE_EFFECTS__
|
|
1784
1790
|
*/ function zohoRecruitGetRelatedRecordsFunctionFactory(context) {
|
|
1785
1791
|
return function(config) {
|
|
1786
1792
|
var targetModule = config.targetModule, _config_returnEmptyRecordsInsteadOfNull = config.returnEmptyRecordsInsteadOfNull, returnEmptyRecordsInsteadOfNull = _config_returnEmptyRecordsInsteadOfNull === void 0 ? true : _config_returnEmptyRecordsInsteadOfNull;
|
|
@@ -1847,6 +1853,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1847
1853
|
* ```
|
|
1848
1854
|
*
|
|
1849
1855
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1856
|
+
* @__NO_SIDE_EFFECTS__
|
|
1850
1857
|
*/ function zohoRecruitGetEmailsForRecordPageFactory(context) {
|
|
1851
1858
|
return zohoFetchPageFactory(zohoRecruitGetEmailsForRecord(context));
|
|
1852
1859
|
}
|
|
@@ -1912,6 +1919,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1912
1919
|
* ```
|
|
1913
1920
|
*
|
|
1914
1921
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1922
|
+
* @__NO_SIDE_EFFECTS__
|
|
1915
1923
|
*/ function zohoRecruitGetAttachmentsForRecordPageFactory(context) {
|
|
1916
1924
|
return zohoFetchPageFactory(zohoRecruitGetAttachmentsForRecord(context));
|
|
1917
1925
|
}
|
|
@@ -2098,6 +2106,7 @@ function _is_native_reflect_construct$3() {
|
|
|
2098
2106
|
* apiUrl: 'production'
|
|
2099
2107
|
* });
|
|
2100
2108
|
* ```
|
|
2109
|
+
* @__NO_SIDE_EFFECTS__
|
|
2101
2110
|
*/ function zohoRecruitExecuteRestApiFunction(context) {
|
|
2102
2111
|
return function(input) {
|
|
2103
2112
|
var inputSearchParams = fetch.makeUrlSearchParams(input.params);
|
|
@@ -2393,6 +2402,7 @@ function _object_spread_props$l(target, source) {
|
|
|
2393
2402
|
*
|
|
2394
2403
|
* @param context - Zoho Recruit API context providing fetch and authentication
|
|
2395
2404
|
* @returns Page factory for iterating through associated job openings
|
|
2405
|
+
* @__NO_SIDE_EFFECTS__
|
|
2396
2406
|
*/ function zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory(context) {
|
|
2397
2407
|
return zohoFetchPageFactory(zohoRecruitSearchCandidateAssociatedJobOpeningRecords(context));
|
|
2398
2408
|
}
|
|
@@ -2416,6 +2426,7 @@ function _object_spread_props$l(target, source) {
|
|
|
2416
2426
|
*
|
|
2417
2427
|
* @param context - Zoho Recruit API context providing fetch and authentication
|
|
2418
2428
|
* @returns Page factory for iterating through associated candidates
|
|
2429
|
+
* @__NO_SIDE_EFFECTS__
|
|
2419
2430
|
*/ function zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory(context) {
|
|
2420
2431
|
return zohoFetchPageFactory(zohoRecruitSearchJobOpeningAssociatedCandidateRecords(context));
|
|
2421
2432
|
}
|
|
@@ -2557,6 +2568,7 @@ function _object_spread_props$k(target, source) {
|
|
|
2557
2568
|
*
|
|
2558
2569
|
* @param context - Authenticated Zoho Recruit context providing fetch and rate limiting
|
|
2559
2570
|
* @returns Page factory for iterating over record notes
|
|
2571
|
+
* @__NO_SIDE_EFFECTS__
|
|
2560
2572
|
*/ function zohoRecruitGetNotesForRecordPageFactory(context) {
|
|
2561
2573
|
return zohoFetchPageFactory(zohoRecruitGetNotesForRecord(context));
|
|
2562
2574
|
}
|
|
@@ -2744,6 +2756,7 @@ function _object_spread_props$j(target, source) {
|
|
|
2744
2756
|
*
|
|
2745
2757
|
* @param context - Authenticated Zoho Recruit context providing fetch and rate limiting
|
|
2746
2758
|
* @returns Page factory for iterating over module tags
|
|
2759
|
+
* @__NO_SIDE_EFFECTS__
|
|
2747
2760
|
*/ function zohoRecruitGetTagsForModulePageFactory(context) {
|
|
2748
2761
|
return zohoFetchPageFactory(zohoRecruitGetTagsForModule(context));
|
|
2749
2762
|
}
|
|
@@ -3273,6 +3286,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
3273
3286
|
*
|
|
3274
3287
|
* @param zohoAccessTokenFactory - Factory that produces ZohoAccessToken instances
|
|
3275
3288
|
* @returns A factory function that resolves to the access token string
|
|
3289
|
+
* @__NO_SIDE_EFFECTS__
|
|
3276
3290
|
*/ function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
|
|
3277
3291
|
return function() {
|
|
3278
3292
|
return _async_to_generator$8(function() {
|
|
@@ -3371,6 +3385,7 @@ function _object_spread_props$i(target, source) {
|
|
|
3371
3385
|
*
|
|
3372
3386
|
* @param config - Configuration including the service-specific header reader, rate limit, reset period, and 429 handling
|
|
3373
3387
|
* @returns A rate-limited fetch handler with the underlying rate limiter accessible via `_rateLimiter`
|
|
3388
|
+
* @__NO_SIDE_EFFECTS__
|
|
3374
3389
|
*/ function makeZohoRateLimitedFetchHandler(config) {
|
|
3375
3390
|
var _config_onTooManyRequests, _config_maxRateLimit, _config_resetPeriod;
|
|
3376
3391
|
var readRateLimitDetails = config.readRateLimitDetails;
|
|
@@ -3681,6 +3696,7 @@ function _ts_generator$7(thisArg, body) {
|
|
|
3681
3696
|
* // Use the recruit context for API calls:
|
|
3682
3697
|
* const { recruitContext } = zohoRecruit;
|
|
3683
3698
|
* ```
|
|
3699
|
+
* @__NO_SIDE_EFFECTS__
|
|
3684
3700
|
*/ function zohoRecruitFactory(factoryConfig) {
|
|
3685
3701
|
var accountsContext = factoryConfig.accountsContext;
|
|
3686
3702
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -4662,6 +4678,7 @@ function _is_native_reflect_construct() {
|
|
|
4662
4678
|
* const firstPage = await fetchPage.fetchNext();
|
|
4663
4679
|
* const secondPage = await firstPage.fetchNext();
|
|
4664
4680
|
* ```
|
|
4681
|
+
* @__NO_SIDE_EFFECTS__
|
|
4665
4682
|
*/ function zohoCrmSearchRecordsPageFactory(context) {
|
|
4666
4683
|
return zohoFetchPageFactory(zohoCrmSearchRecords(context));
|
|
4667
4684
|
}
|
|
@@ -4693,6 +4710,7 @@ function _is_native_reflect_construct() {
|
|
|
4693
4710
|
* ```
|
|
4694
4711
|
*
|
|
4695
4712
|
* @see https://www.zoho.com/crm/developer-guide/apiv2/get-related-records.html
|
|
4713
|
+
* @__NO_SIDE_EFFECTS__
|
|
4696
4714
|
*/ function zohoCrmGetRelatedRecordsFunctionFactory(context) {
|
|
4697
4715
|
return function(config) {
|
|
4698
4716
|
var targetModule = config.targetModule, _config_returnEmptyRecordsInsteadOfNull = config.returnEmptyRecordsInsteadOfNull, returnEmptyRecordsInsteadOfNull = _config_returnEmptyRecordsInsteadOfNull === void 0 ? true : _config_returnEmptyRecordsInsteadOfNull;
|
|
@@ -4768,6 +4786,7 @@ function _is_native_reflect_construct() {
|
|
|
4768
4786
|
* ```
|
|
4769
4787
|
*
|
|
4770
4788
|
* @see https://www.zoho.com/crm/developer/docs/api/v8/get-email-rel-list.html
|
|
4789
|
+
* @__NO_SIDE_EFFECTS__
|
|
4771
4790
|
*/ function zohoCrmGetEmailsForRecordPageFactory(context) {
|
|
4772
4791
|
return zohoFetchPageFactory(zohoCrmGetEmailsForRecord(context));
|
|
4773
4792
|
}
|
|
@@ -4829,6 +4848,7 @@ function _is_native_reflect_construct() {
|
|
|
4829
4848
|
* ```
|
|
4830
4849
|
*
|
|
4831
4850
|
* @see https://www.zoho.com/crm/developer-guide/apiv2/get-related-records.html
|
|
4851
|
+
* @__NO_SIDE_EFFECTS__
|
|
4832
4852
|
*/ function zohoCrmGetAttachmentsForRecordPageFactory(context) {
|
|
4833
4853
|
return zohoFetchPageFactory(zohoCrmGetAttachmentsForRecord(context));
|
|
4834
4854
|
}
|
|
@@ -4993,6 +5013,7 @@ function _is_native_reflect_construct() {
|
|
|
4993
5013
|
* apiUrl: 'production'
|
|
4994
5014
|
* });
|
|
4995
5015
|
* ```
|
|
5016
|
+
* @__NO_SIDE_EFFECTS__
|
|
4996
5017
|
*/ function zohoCrmExecuteRestApiFunction(context) {
|
|
4997
5018
|
return function(input) {
|
|
4998
5019
|
var inputSearchParams = fetch.makeUrlSearchParams(input.params);
|
|
@@ -5241,6 +5262,7 @@ function _object_spread_props$f(target, source) {
|
|
|
5241
5262
|
*
|
|
5242
5263
|
* @param context - Authenticated Zoho CRM context for making API calls
|
|
5243
5264
|
* @returns Page factory for paginating through notes for a record
|
|
5265
|
+
* @__NO_SIDE_EFFECTS__
|
|
5244
5266
|
*/ function zohoCrmGetNotesForRecordPageFactory(context) {
|
|
5245
5267
|
return zohoFetchPageFactory(zohoCrmGetNotesForRecord(context));
|
|
5246
5268
|
}
|
|
@@ -5427,6 +5449,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
5427
5449
|
*
|
|
5428
5450
|
* @param context - Authenticated Zoho CRM context for making API calls
|
|
5429
5451
|
* @returns Page factory for paginating through tags in a module
|
|
5452
|
+
* @__NO_SIDE_EFFECTS__
|
|
5430
5453
|
*/ function zohoCrmGetTagsForModulePageFactory(context) {
|
|
5431
5454
|
return zohoFetchPageFactory(zohoCrmGetTagsForModule(context));
|
|
5432
5455
|
}
|
|
@@ -5708,6 +5731,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5708
5731
|
* // Use the CRM context for API calls:
|
|
5709
5732
|
* const { crmContext } = zohoCrm;
|
|
5710
5733
|
* ```
|
|
5734
|
+
* @__NO_SIDE_EFFECTS__
|
|
5711
5735
|
*/ function zohoCrmFactory(factoryConfig) {
|
|
5712
5736
|
var accountsContext = factoryConfig.accountsContext;
|
|
5713
5737
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -5852,6 +5876,7 @@ function _object_spread_props$c(target, source) {
|
|
|
5852
5876
|
* const secondPage = await firstPage.fetchNext();
|
|
5853
5877
|
* }
|
|
5854
5878
|
* ```
|
|
5879
|
+
* @__NO_SIDE_EFFECTS__
|
|
5855
5880
|
*/ function zohoSignFetchPageFactory(fetch$1, defaults) {
|
|
5856
5881
|
return fetch.fetchPageFactory(_object_spread_props$c(_object_spread$d({}, defaults), {
|
|
5857
5882
|
fetch: fetch$1,
|
|
@@ -6029,6 +6054,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6029
6054
|
* const firstPage = await fetchPage.fetchNext();
|
|
6030
6055
|
* const secondPage = await firstPage.fetchNext();
|
|
6031
6056
|
* ```
|
|
6057
|
+
* @__NO_SIDE_EFFECTS__
|
|
6032
6058
|
*/ function zohoSignGetDocumentsPageFactory(context) {
|
|
6033
6059
|
var getDocuments = zohoSignGetDocuments(context);
|
|
6034
6060
|
return zohoSignFetchPageFactory(getDocuments);
|
|
@@ -6750,6 +6776,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6750
6776
|
* // Use the sign context for API calls:
|
|
6751
6777
|
* const { signContext } = zohoSign;
|
|
6752
6778
|
* ```
|
|
6779
|
+
* @__NO_SIDE_EFFECTS__
|
|
6753
6780
|
*/ function zohoSignFactory(factoryConfig) {
|
|
6754
6781
|
var accountsContext = factoryConfig.accountsContext;
|
|
6755
6782
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -7342,6 +7369,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
7342
7369
|
*
|
|
7343
7370
|
* @param factoryConfig - Configuration providing account credentials and optional overrides
|
|
7344
7371
|
* @returns A factory function that creates authenticated Zoho Desk clients
|
|
7372
|
+
* @__NO_SIDE_EFFECTS__
|
|
7345
7373
|
*/ function zohoDeskFactory(factoryConfig) {
|
|
7346
7374
|
var accountsContext = factoryConfig.accountsContext;
|
|
7347
7375
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -7494,6 +7522,7 @@ function _object_spread_props$8(target, source) {
|
|
|
7494
7522
|
* const secondPage = await firstPage.fetchNext();
|
|
7495
7523
|
* }
|
|
7496
7524
|
* ```
|
|
7525
|
+
* @__NO_SIDE_EFFECTS__
|
|
7497
7526
|
*/ function zohoDeskFetchPageFactory(fetch$1, defaults) {
|
|
7498
7527
|
return fetch.fetchPageFactory(_object_spread_props$8(_object_spread$8({}, defaults), {
|
|
7499
7528
|
fetch: fetch$1,
|
|
@@ -7782,6 +7811,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
7782
7811
|
*
|
|
7783
7812
|
* @param context - Authenticated Zoho Desk context
|
|
7784
7813
|
* @returns Page factory for iterating over ticket results
|
|
7814
|
+
* @__NO_SIDE_EFFECTS__
|
|
7785
7815
|
*/ function zohoDeskGetTicketsPageFactory(context) {
|
|
7786
7816
|
return zohoDeskFetchPageFactory(zohoDeskGetTickets(context));
|
|
7787
7817
|
}
|
|
@@ -7790,6 +7820,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
7790
7820
|
*
|
|
7791
7821
|
* @param context - Authenticated Zoho Desk context
|
|
7792
7822
|
* @returns Page factory for iterating over search results
|
|
7823
|
+
* @__NO_SIDE_EFFECTS__
|
|
7793
7824
|
*/ function zohoDeskSearchTicketsPageFactory(context) {
|
|
7794
7825
|
return zohoDeskFetchPageFactory(zohoDeskSearchTickets(context));
|
|
7795
7826
|
}
|
|
@@ -7999,6 +8030,7 @@ function zohoDeskContactApiFetchJsonInput(method) {
|
|
|
7999
8030
|
*
|
|
8000
8031
|
* @param context - Authenticated Zoho Desk context
|
|
8001
8032
|
* @returns Page factory for iterating over contact results
|
|
8033
|
+
* @__NO_SIDE_EFFECTS__
|
|
8002
8034
|
*/ function zohoDeskGetContactsPageFactory(context) {
|
|
8003
8035
|
return zohoDeskFetchPageFactory(zohoDeskGetContacts(context));
|
|
8004
8036
|
}
|
|
@@ -8678,6 +8710,7 @@ function joinThreadInclude(include) {
|
|
|
8678
8710
|
*
|
|
8679
8711
|
* @param context - Authenticated Zoho Desk context
|
|
8680
8712
|
* @returns Page factory for iterating over thread results
|
|
8713
|
+
* @__NO_SIDE_EFFECTS__
|
|
8681
8714
|
*/ function zohoDeskGetTicketThreadsPageFactory(context) {
|
|
8682
8715
|
return zohoDeskFetchPageFactory(zohoDeskGetTicketThreads(context));
|
|
8683
8716
|
}
|
|
@@ -8808,6 +8841,7 @@ function joinActivityInclude(include) {
|
|
|
8808
8841
|
*
|
|
8809
8842
|
* @param context - Authenticated Zoho Desk context
|
|
8810
8843
|
* @returns Page factory for iterating over activity results
|
|
8844
|
+
* @__NO_SIDE_EFFECTS__
|
|
8811
8845
|
*/ function zohoDeskGetTicketActivitiesPageFactory(context) {
|
|
8812
8846
|
return zohoDeskFetchPageFactory(zohoDeskGetTicketActivities(context));
|
|
8813
8847
|
}
|
|
@@ -8986,6 +9020,7 @@ function joinAgentInclude(include) {
|
|
|
8986
9020
|
*
|
|
8987
9021
|
* @param context - Authenticated Zoho Desk context
|
|
8988
9022
|
* @returns Page factory for iterating over agent results
|
|
9023
|
+
* @__NO_SIDE_EFFECTS__
|
|
8989
9024
|
*/ function zohoDeskGetAgentsPageFactory(context) {
|
|
8990
9025
|
return zohoDeskFetchPageFactory(zohoDeskGetAgents(context));
|
|
8991
9026
|
}
|
|
@@ -9312,6 +9347,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9312
9347
|
* accountsContext: zohoAccounts.accountsContext
|
|
9313
9348
|
* });
|
|
9314
9349
|
* ```
|
|
9350
|
+
* @__NO_SIDE_EFFECTS__
|
|
9315
9351
|
*/ function zohoAccountsFactory(factoryConfig) {
|
|
9316
9352
|
var fetchHandler = zohoRateLimitedFetchHandler();
|
|
9317
9353
|
var logZohoServerErrorFunction = factoryConfig.logZohoServerErrorFunction, _factoryConfig_fetchFactory = factoryConfig.fetchFactory, fetchFactory = _factoryConfig_fetchFactory === void 0 ? function(input) {
|
|
@@ -9418,6 +9454,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9418
9454
|
* @param config - Token refresh, caching, and expiration buffer configuration
|
|
9419
9455
|
* @returns A token factory function with `resetAccessToken` for cache invalidation
|
|
9420
9456
|
* @throws {ZohoAccountsAuthFailureError} If the token refresher fails
|
|
9457
|
+
* @__NO_SIDE_EFFECTS__
|
|
9421
9458
|
*/ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
9422
9459
|
var tokenRefresher = config.tokenRefresher, accessTokenCache = config.accessTokenCache, inputTokenExpirationBuffer = config.tokenExpirationBuffer;
|
|
9423
9460
|
var tokenExpirationBuffer = inputTokenExpirationBuffer !== null && inputTokenExpirationBuffer !== void 0 ? inputTokenExpirationBuffer : util.MS_IN_MINUTE;
|
package/index.esm.js
CHANGED
|
@@ -86,6 +86,7 @@ function _object_spread_props$n(target, source) {
|
|
|
86
86
|
* const secondPage = await firstPage.fetchNext();
|
|
87
87
|
* }
|
|
88
88
|
* ```
|
|
89
|
+
* @__NO_SIDE_EFFECTS__
|
|
89
90
|
*/ function zohoFetchPageFactory(fetch, defaults) {
|
|
90
91
|
return fetchPageFactory(_object_spread_props$n(_object_spread$o({}, defaults), {
|
|
91
92
|
fetch: fetch,
|
|
@@ -650,6 +651,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
650
651
|
* @param zohoApiNamePrefix - Prefix to use when logging (e.g. 'ZohoRecruit', 'ZohoSign')
|
|
651
652
|
* @param options - Optional configuration for controlling which error types are logged
|
|
652
653
|
* @returns A function that logs Zoho server errors to the console
|
|
654
|
+
* @__NO_SIDE_EFFECTS__
|
|
653
655
|
*/ function logZohoServerErrorFunction(zohoApiNamePrefix, options) {
|
|
654
656
|
var _ref = options !== null && options !== void 0 ? options : {}, _ref_logDataArrayErrors = _ref.logDataArrayErrors, logDataArrayErrors = _ref_logDataArrayErrors === void 0 ? false : _ref_logDataArrayErrors;
|
|
655
657
|
return function(error) {
|
|
@@ -675,6 +677,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
675
677
|
* @param parseZohoError - Function that parses a fetch response error into a Zoho-specific error
|
|
676
678
|
* @param defaultLogError - Default error logging function used when no custom logger is provided
|
|
677
679
|
* @returns Factory that wraps a ConfiguredFetch with Zoho error handling
|
|
680
|
+
* @__NO_SIDE_EFFECTS__
|
|
678
681
|
*/ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
|
|
679
682
|
return function(fetch) {
|
|
680
683
|
var logError = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultLogError, onError = arguments.length > 2 ? arguments[2] : void 0;
|
|
@@ -734,6 +737,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
734
737
|
*
|
|
735
738
|
* @param parseZohoServerErrorResponseData - Function that parses raw error response data into a structured error
|
|
736
739
|
* @returns Interceptor function that detects and throws hidden errors in 200 responses
|
|
740
|
+
* @__NO_SIDE_EFFECTS__
|
|
737
741
|
*/ function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
|
|
738
742
|
return function(json, response) {
|
|
739
743
|
var error = json === null || json === void 0 ? void 0 : json.error;
|
|
@@ -1748,6 +1752,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1748
1752
|
* const firstPage = await fetchPage.fetchNext();
|
|
1749
1753
|
* const secondPage = await firstPage.fetchNext();
|
|
1750
1754
|
* ```
|
|
1755
|
+
* @__NO_SIDE_EFFECTS__
|
|
1751
1756
|
*/ function zohoRecruitSearchRecordsPageFactory(context) {
|
|
1752
1757
|
return zohoFetchPageFactory(zohoRecruitSearchRecords(context));
|
|
1753
1758
|
}
|
|
@@ -1779,6 +1784,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1779
1784
|
* ```
|
|
1780
1785
|
*
|
|
1781
1786
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1787
|
+
* @__NO_SIDE_EFFECTS__
|
|
1782
1788
|
*/ function zohoRecruitGetRelatedRecordsFunctionFactory(context) {
|
|
1783
1789
|
return function(config) {
|
|
1784
1790
|
var targetModule = config.targetModule, _config_returnEmptyRecordsInsteadOfNull = config.returnEmptyRecordsInsteadOfNull, returnEmptyRecordsInsteadOfNull = _config_returnEmptyRecordsInsteadOfNull === void 0 ? true : _config_returnEmptyRecordsInsteadOfNull;
|
|
@@ -1845,6 +1851,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1845
1851
|
* ```
|
|
1846
1852
|
*
|
|
1847
1853
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1854
|
+
* @__NO_SIDE_EFFECTS__
|
|
1848
1855
|
*/ function zohoRecruitGetEmailsForRecordPageFactory(context) {
|
|
1849
1856
|
return zohoFetchPageFactory(zohoRecruitGetEmailsForRecord(context));
|
|
1850
1857
|
}
|
|
@@ -1910,6 +1917,7 @@ function _is_native_reflect_construct$3() {
|
|
|
1910
1917
|
* ```
|
|
1911
1918
|
*
|
|
1912
1919
|
* @see https://www.zoho.com/recruit/developer-guide/apiv2/get-related-records.html
|
|
1920
|
+
* @__NO_SIDE_EFFECTS__
|
|
1913
1921
|
*/ function zohoRecruitGetAttachmentsForRecordPageFactory(context) {
|
|
1914
1922
|
return zohoFetchPageFactory(zohoRecruitGetAttachmentsForRecord(context));
|
|
1915
1923
|
}
|
|
@@ -2096,6 +2104,7 @@ function _is_native_reflect_construct$3() {
|
|
|
2096
2104
|
* apiUrl: 'production'
|
|
2097
2105
|
* });
|
|
2098
2106
|
* ```
|
|
2107
|
+
* @__NO_SIDE_EFFECTS__
|
|
2099
2108
|
*/ function zohoRecruitExecuteRestApiFunction(context) {
|
|
2100
2109
|
return function(input) {
|
|
2101
2110
|
var inputSearchParams = makeUrlSearchParams(input.params);
|
|
@@ -2391,6 +2400,7 @@ function _object_spread_props$l(target, source) {
|
|
|
2391
2400
|
*
|
|
2392
2401
|
* @param context - Zoho Recruit API context providing fetch and authentication
|
|
2393
2402
|
* @returns Page factory for iterating through associated job openings
|
|
2403
|
+
* @__NO_SIDE_EFFECTS__
|
|
2394
2404
|
*/ function zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory(context) {
|
|
2395
2405
|
return zohoFetchPageFactory(zohoRecruitSearchCandidateAssociatedJobOpeningRecords(context));
|
|
2396
2406
|
}
|
|
@@ -2414,6 +2424,7 @@ function _object_spread_props$l(target, source) {
|
|
|
2414
2424
|
*
|
|
2415
2425
|
* @param context - Zoho Recruit API context providing fetch and authentication
|
|
2416
2426
|
* @returns Page factory for iterating through associated candidates
|
|
2427
|
+
* @__NO_SIDE_EFFECTS__
|
|
2417
2428
|
*/ function zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory(context) {
|
|
2418
2429
|
return zohoFetchPageFactory(zohoRecruitSearchJobOpeningAssociatedCandidateRecords(context));
|
|
2419
2430
|
}
|
|
@@ -2555,6 +2566,7 @@ function _object_spread_props$k(target, source) {
|
|
|
2555
2566
|
*
|
|
2556
2567
|
* @param context - Authenticated Zoho Recruit context providing fetch and rate limiting
|
|
2557
2568
|
* @returns Page factory for iterating over record notes
|
|
2569
|
+
* @__NO_SIDE_EFFECTS__
|
|
2558
2570
|
*/ function zohoRecruitGetNotesForRecordPageFactory(context) {
|
|
2559
2571
|
return zohoFetchPageFactory(zohoRecruitGetNotesForRecord(context));
|
|
2560
2572
|
}
|
|
@@ -2742,6 +2754,7 @@ function _object_spread_props$j(target, source) {
|
|
|
2742
2754
|
*
|
|
2743
2755
|
* @param context - Authenticated Zoho Recruit context providing fetch and rate limiting
|
|
2744
2756
|
* @returns Page factory for iterating over module tags
|
|
2757
|
+
* @__NO_SIDE_EFFECTS__
|
|
2745
2758
|
*/ function zohoRecruitGetTagsForModulePageFactory(context) {
|
|
2746
2759
|
return zohoFetchPageFactory(zohoRecruitGetTagsForModule(context));
|
|
2747
2760
|
}
|
|
@@ -3271,6 +3284,7 @@ function _ts_generator$8(thisArg, body) {
|
|
|
3271
3284
|
*
|
|
3272
3285
|
* @param zohoAccessTokenFactory - Factory that produces ZohoAccessToken instances
|
|
3273
3286
|
* @returns A factory function that resolves to the access token string
|
|
3287
|
+
* @__NO_SIDE_EFFECTS__
|
|
3274
3288
|
*/ function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
|
|
3275
3289
|
return function() {
|
|
3276
3290
|
return _async_to_generator$8(function() {
|
|
@@ -3369,6 +3383,7 @@ function _object_spread_props$i(target, source) {
|
|
|
3369
3383
|
*
|
|
3370
3384
|
* @param config - Configuration including the service-specific header reader, rate limit, reset period, and 429 handling
|
|
3371
3385
|
* @returns A rate-limited fetch handler with the underlying rate limiter accessible via `_rateLimiter`
|
|
3386
|
+
* @__NO_SIDE_EFFECTS__
|
|
3372
3387
|
*/ function makeZohoRateLimitedFetchHandler(config) {
|
|
3373
3388
|
var _config_onTooManyRequests, _config_maxRateLimit, _config_resetPeriod;
|
|
3374
3389
|
var readRateLimitDetails = config.readRateLimitDetails;
|
|
@@ -3679,6 +3694,7 @@ function _ts_generator$7(thisArg, body) {
|
|
|
3679
3694
|
* // Use the recruit context for API calls:
|
|
3680
3695
|
* const { recruitContext } = zohoRecruit;
|
|
3681
3696
|
* ```
|
|
3697
|
+
* @__NO_SIDE_EFFECTS__
|
|
3682
3698
|
*/ function zohoRecruitFactory(factoryConfig) {
|
|
3683
3699
|
var accountsContext = factoryConfig.accountsContext;
|
|
3684
3700
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -4660,6 +4676,7 @@ function _is_native_reflect_construct() {
|
|
|
4660
4676
|
* const firstPage = await fetchPage.fetchNext();
|
|
4661
4677
|
* const secondPage = await firstPage.fetchNext();
|
|
4662
4678
|
* ```
|
|
4679
|
+
* @__NO_SIDE_EFFECTS__
|
|
4663
4680
|
*/ function zohoCrmSearchRecordsPageFactory(context) {
|
|
4664
4681
|
return zohoFetchPageFactory(zohoCrmSearchRecords(context));
|
|
4665
4682
|
}
|
|
@@ -4691,6 +4708,7 @@ function _is_native_reflect_construct() {
|
|
|
4691
4708
|
* ```
|
|
4692
4709
|
*
|
|
4693
4710
|
* @see https://www.zoho.com/crm/developer-guide/apiv2/get-related-records.html
|
|
4711
|
+
* @__NO_SIDE_EFFECTS__
|
|
4694
4712
|
*/ function zohoCrmGetRelatedRecordsFunctionFactory(context) {
|
|
4695
4713
|
return function(config) {
|
|
4696
4714
|
var targetModule = config.targetModule, _config_returnEmptyRecordsInsteadOfNull = config.returnEmptyRecordsInsteadOfNull, returnEmptyRecordsInsteadOfNull = _config_returnEmptyRecordsInsteadOfNull === void 0 ? true : _config_returnEmptyRecordsInsteadOfNull;
|
|
@@ -4766,6 +4784,7 @@ function _is_native_reflect_construct() {
|
|
|
4766
4784
|
* ```
|
|
4767
4785
|
*
|
|
4768
4786
|
* @see https://www.zoho.com/crm/developer/docs/api/v8/get-email-rel-list.html
|
|
4787
|
+
* @__NO_SIDE_EFFECTS__
|
|
4769
4788
|
*/ function zohoCrmGetEmailsForRecordPageFactory(context) {
|
|
4770
4789
|
return zohoFetchPageFactory(zohoCrmGetEmailsForRecord(context));
|
|
4771
4790
|
}
|
|
@@ -4827,6 +4846,7 @@ function _is_native_reflect_construct() {
|
|
|
4827
4846
|
* ```
|
|
4828
4847
|
*
|
|
4829
4848
|
* @see https://www.zoho.com/crm/developer-guide/apiv2/get-related-records.html
|
|
4849
|
+
* @__NO_SIDE_EFFECTS__
|
|
4830
4850
|
*/ function zohoCrmGetAttachmentsForRecordPageFactory(context) {
|
|
4831
4851
|
return zohoFetchPageFactory(zohoCrmGetAttachmentsForRecord(context));
|
|
4832
4852
|
}
|
|
@@ -4991,6 +5011,7 @@ function _is_native_reflect_construct() {
|
|
|
4991
5011
|
* apiUrl: 'production'
|
|
4992
5012
|
* });
|
|
4993
5013
|
* ```
|
|
5014
|
+
* @__NO_SIDE_EFFECTS__
|
|
4994
5015
|
*/ function zohoCrmExecuteRestApiFunction(context) {
|
|
4995
5016
|
return function(input) {
|
|
4996
5017
|
var inputSearchParams = makeUrlSearchParams(input.params);
|
|
@@ -5239,6 +5260,7 @@ function _object_spread_props$f(target, source) {
|
|
|
5239
5260
|
*
|
|
5240
5261
|
* @param context - Authenticated Zoho CRM context for making API calls
|
|
5241
5262
|
* @returns Page factory for paginating through notes for a record
|
|
5263
|
+
* @__NO_SIDE_EFFECTS__
|
|
5242
5264
|
*/ function zohoCrmGetNotesForRecordPageFactory(context) {
|
|
5243
5265
|
return zohoFetchPageFactory(zohoCrmGetNotesForRecord(context));
|
|
5244
5266
|
}
|
|
@@ -5425,6 +5447,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
5425
5447
|
*
|
|
5426
5448
|
* @param context - Authenticated Zoho CRM context for making API calls
|
|
5427
5449
|
* @returns Page factory for paginating through tags in a module
|
|
5450
|
+
* @__NO_SIDE_EFFECTS__
|
|
5428
5451
|
*/ function zohoCrmGetTagsForModulePageFactory(context) {
|
|
5429
5452
|
return zohoFetchPageFactory(zohoCrmGetTagsForModule(context));
|
|
5430
5453
|
}
|
|
@@ -5706,6 +5729,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
5706
5729
|
* // Use the CRM context for API calls:
|
|
5707
5730
|
* const { crmContext } = zohoCrm;
|
|
5708
5731
|
* ```
|
|
5732
|
+
* @__NO_SIDE_EFFECTS__
|
|
5709
5733
|
*/ function zohoCrmFactory(factoryConfig) {
|
|
5710
5734
|
var accountsContext = factoryConfig.accountsContext;
|
|
5711
5735
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -5850,6 +5874,7 @@ function _object_spread_props$c(target, source) {
|
|
|
5850
5874
|
* const secondPage = await firstPage.fetchNext();
|
|
5851
5875
|
* }
|
|
5852
5876
|
* ```
|
|
5877
|
+
* @__NO_SIDE_EFFECTS__
|
|
5853
5878
|
*/ function zohoSignFetchPageFactory(fetch, defaults) {
|
|
5854
5879
|
return fetchPageFactory(_object_spread_props$c(_object_spread$d({}, defaults), {
|
|
5855
5880
|
fetch: fetch,
|
|
@@ -6027,6 +6052,7 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6027
6052
|
* const firstPage = await fetchPage.fetchNext();
|
|
6028
6053
|
* const secondPage = await firstPage.fetchNext();
|
|
6029
6054
|
* ```
|
|
6055
|
+
* @__NO_SIDE_EFFECTS__
|
|
6030
6056
|
*/ function zohoSignGetDocumentsPageFactory(context) {
|
|
6031
6057
|
var getDocuments = zohoSignGetDocuments(context);
|
|
6032
6058
|
return zohoSignFetchPageFactory(getDocuments);
|
|
@@ -6748,6 +6774,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6748
6774
|
* // Use the sign context for API calls:
|
|
6749
6775
|
* const { signContext } = zohoSign;
|
|
6750
6776
|
* ```
|
|
6777
|
+
* @__NO_SIDE_EFFECTS__
|
|
6751
6778
|
*/ function zohoSignFactory(factoryConfig) {
|
|
6752
6779
|
var accountsContext = factoryConfig.accountsContext;
|
|
6753
6780
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -7340,6 +7367,7 @@ function _ts_generator$1(thisArg, body) {
|
|
|
7340
7367
|
*
|
|
7341
7368
|
* @param factoryConfig - Configuration providing account credentials and optional overrides
|
|
7342
7369
|
* @returns A factory function that creates authenticated Zoho Desk clients
|
|
7370
|
+
* @__NO_SIDE_EFFECTS__
|
|
7343
7371
|
*/ function zohoDeskFactory(factoryConfig) {
|
|
7344
7372
|
var accountsContext = factoryConfig.accountsContext;
|
|
7345
7373
|
var accessTokenStringFactory = zohoAccessTokenStringFactory(accountsContext.loadAccessToken);
|
|
@@ -7492,6 +7520,7 @@ function _object_spread_props$8(target, source) {
|
|
|
7492
7520
|
* const secondPage = await firstPage.fetchNext();
|
|
7493
7521
|
* }
|
|
7494
7522
|
* ```
|
|
7523
|
+
* @__NO_SIDE_EFFECTS__
|
|
7495
7524
|
*/ function zohoDeskFetchPageFactory(fetch, defaults) {
|
|
7496
7525
|
return fetchPageFactory(_object_spread_props$8(_object_spread$8({}, defaults), {
|
|
7497
7526
|
fetch: fetch,
|
|
@@ -7780,6 +7809,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
7780
7809
|
*
|
|
7781
7810
|
* @param context - Authenticated Zoho Desk context
|
|
7782
7811
|
* @returns Page factory for iterating over ticket results
|
|
7812
|
+
* @__NO_SIDE_EFFECTS__
|
|
7783
7813
|
*/ function zohoDeskGetTicketsPageFactory(context) {
|
|
7784
7814
|
return zohoDeskFetchPageFactory(zohoDeskGetTickets(context));
|
|
7785
7815
|
}
|
|
@@ -7788,6 +7818,7 @@ function _object_without_properties_loose$7(source, excluded) {
|
|
|
7788
7818
|
*
|
|
7789
7819
|
* @param context - Authenticated Zoho Desk context
|
|
7790
7820
|
* @returns Page factory for iterating over search results
|
|
7821
|
+
* @__NO_SIDE_EFFECTS__
|
|
7791
7822
|
*/ function zohoDeskSearchTicketsPageFactory(context) {
|
|
7792
7823
|
return zohoDeskFetchPageFactory(zohoDeskSearchTickets(context));
|
|
7793
7824
|
}
|
|
@@ -7997,6 +8028,7 @@ function zohoDeskContactApiFetchJsonInput(method) {
|
|
|
7997
8028
|
*
|
|
7998
8029
|
* @param context - Authenticated Zoho Desk context
|
|
7999
8030
|
* @returns Page factory for iterating over contact results
|
|
8031
|
+
* @__NO_SIDE_EFFECTS__
|
|
8000
8032
|
*/ function zohoDeskGetContactsPageFactory(context) {
|
|
8001
8033
|
return zohoDeskFetchPageFactory(zohoDeskGetContacts(context));
|
|
8002
8034
|
}
|
|
@@ -8676,6 +8708,7 @@ function joinThreadInclude(include) {
|
|
|
8676
8708
|
*
|
|
8677
8709
|
* @param context - Authenticated Zoho Desk context
|
|
8678
8710
|
* @returns Page factory for iterating over thread results
|
|
8711
|
+
* @__NO_SIDE_EFFECTS__
|
|
8679
8712
|
*/ function zohoDeskGetTicketThreadsPageFactory(context) {
|
|
8680
8713
|
return zohoDeskFetchPageFactory(zohoDeskGetTicketThreads(context));
|
|
8681
8714
|
}
|
|
@@ -8806,6 +8839,7 @@ function joinActivityInclude(include) {
|
|
|
8806
8839
|
*
|
|
8807
8840
|
* @param context - Authenticated Zoho Desk context
|
|
8808
8841
|
* @returns Page factory for iterating over activity results
|
|
8842
|
+
* @__NO_SIDE_EFFECTS__
|
|
8809
8843
|
*/ function zohoDeskGetTicketActivitiesPageFactory(context) {
|
|
8810
8844
|
return zohoDeskFetchPageFactory(zohoDeskGetTicketActivities(context));
|
|
8811
8845
|
}
|
|
@@ -8984,6 +9018,7 @@ function joinAgentInclude(include) {
|
|
|
8984
9018
|
*
|
|
8985
9019
|
* @param context - Authenticated Zoho Desk context
|
|
8986
9020
|
* @returns Page factory for iterating over agent results
|
|
9021
|
+
* @__NO_SIDE_EFFECTS__
|
|
8987
9022
|
*/ function zohoDeskGetAgentsPageFactory(context) {
|
|
8988
9023
|
return zohoDeskFetchPageFactory(zohoDeskGetAgents(context));
|
|
8989
9024
|
}
|
|
@@ -9310,6 +9345,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9310
9345
|
* accountsContext: zohoAccounts.accountsContext
|
|
9311
9346
|
* });
|
|
9312
9347
|
* ```
|
|
9348
|
+
* @__NO_SIDE_EFFECTS__
|
|
9313
9349
|
*/ function zohoAccountsFactory(factoryConfig) {
|
|
9314
9350
|
var fetchHandler = zohoRateLimitedFetchHandler();
|
|
9315
9351
|
var logZohoServerErrorFunction = factoryConfig.logZohoServerErrorFunction, _factoryConfig_fetchFactory = factoryConfig.fetchFactory, fetchFactory = _factoryConfig_fetchFactory === void 0 ? function(input) {
|
|
@@ -9416,6 +9452,7 @@ function _ts_generator(thisArg, body) {
|
|
|
9416
9452
|
* @param config - Token refresh, caching, and expiration buffer configuration
|
|
9417
9453
|
* @returns A token factory function with `resetAccessToken` for cache invalidation
|
|
9418
9454
|
* @throws {ZohoAccountsAuthFailureError} If the token refresher fails
|
|
9455
|
+
* @__NO_SIDE_EFFECTS__
|
|
9419
9456
|
*/ function zohoAccountsZohoAccessTokenFactory(config) {
|
|
9420
9457
|
var tokenRefresher = config.tokenRefresher, accessTokenCache = config.accessTokenCache, inputTokenExpirationBuffer = config.tokenExpirationBuffer;
|
|
9421
9458
|
var tokenExpirationBuffer = inputTokenExpirationBuffer !== null && inputTokenExpirationBuffer !== void 0 ? inputTokenExpirationBuffer : MS_IN_MINUTE;
|
package/nestjs/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/nestjs",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/nestjs": "13.11.
|
|
6
|
-
"@dereekb/rxjs": "13.11.
|
|
7
|
-
"@dereekb/util": "13.11.
|
|
8
|
-
"@dereekb/zoho": "13.11.
|
|
5
|
+
"@dereekb/nestjs": "13.11.3",
|
|
6
|
+
"@dereekb/rxjs": "13.11.3",
|
|
7
|
+
"@dereekb/util": "13.11.3",
|
|
8
|
+
"@dereekb/zoho": "13.11.3",
|
|
9
9
|
"@nestjs/common": "^11.1.19",
|
|
10
10
|
"@nestjs/config": "^4.0.4",
|
|
11
11
|
"express": "^5.2.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.3",
|
|
4
4
|
"bin": {
|
|
5
5
|
"zoho-cli": "cli/index.js"
|
|
6
6
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@dereekb/date": "13.11.
|
|
27
|
-
"@dereekb/dbx-cli": "13.11.
|
|
28
|
-
"@dereekb/firebase": "13.11.
|
|
29
|
-
"@dereekb/model": "13.11.
|
|
30
|
-
"@dereekb/nestjs": "13.11.
|
|
31
|
-
"@dereekb/rxjs": "13.11.
|
|
32
|
-
"@dereekb/util": "13.11.
|
|
26
|
+
"@dereekb/date": "13.11.3",
|
|
27
|
+
"@dereekb/dbx-cli": "13.11.3",
|
|
28
|
+
"@dereekb/firebase": "13.11.3",
|
|
29
|
+
"@dereekb/model": "13.11.3",
|
|
30
|
+
"@dereekb/nestjs": "13.11.3",
|
|
31
|
+
"@dereekb/rxjs": "13.11.3",
|
|
32
|
+
"@dereekb/util": "13.11.3",
|
|
33
33
|
"@nestjs/common": "^11.1.19",
|
|
34
34
|
"@nestjs/config": "^4.0.4",
|
|
35
35
|
"express": "^5.2.1",
|
|
@@ -83,5 +83,6 @@ export type ZohoAccessTokenStringFactory = () => Promise<ZohoAccessTokenString>;
|
|
|
83
83
|
*
|
|
84
84
|
* @param zohoAccessTokenFactory - Factory that produces ZohoAccessToken instances
|
|
85
85
|
* @returns A factory function that resolves to the access token string
|
|
86
|
+
* @__NO_SIDE_EFFECTS__
|
|
86
87
|
*/
|
|
87
88
|
export declare function zohoAccessTokenStringFactory(zohoAccessTokenFactory: ZohoAccessTokenFactory): ZohoAccessTokenStringFactory;
|
|
@@ -57,6 +57,7 @@ export type ZohoAccountsFactory = (config: ZohoAccountsConfig) => ZohoAccounts;
|
|
|
57
57
|
* accountsContext: zohoAccounts.accountsContext
|
|
58
58
|
* });
|
|
59
59
|
* ```
|
|
60
|
+
* @__NO_SIDE_EFFECTS__
|
|
60
61
|
*/
|
|
61
62
|
export declare function zohoAccountsFactory(factoryConfig: ZohoAccountsFactoryConfig): ZohoAccountsFactory;
|
|
62
63
|
/**
|
|
@@ -97,5 +98,6 @@ export interface ZohoAccountsZohoAccessTokenFactoryConfig {
|
|
|
97
98
|
* @param config - Token refresh, caching, and expiration buffer configuration
|
|
98
99
|
* @returns A token factory function with `resetAccessToken` for cache invalidation
|
|
99
100
|
* @throws {ZohoAccountsAuthFailureError} If the token refresher fails
|
|
101
|
+
* @__NO_SIDE_EFFECTS__
|
|
100
102
|
*/
|
|
101
103
|
export declare function zohoAccountsZohoAccessTokenFactory(config: ZohoAccountsZohoAccessTokenFactoryConfig): ZohoAccessTokenFactory;
|