@dereekb/zoho 11.0.3 → 11.0.5

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 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
+ * Returns true if it is a valid ZohoRecruitValidUrl.
2487
+ */
2488
+ const isZohoRecruitValidUrl = util.isStandardInternetAccessibleWebsiteUrl;
2485
2489
  /**
2486
2490
  * Creates a ZohoRecruitSearchRecordsCriteriaString from a ZohoRecruitSearchRecordsCriteriaTree.
2487
2491
  *
@@ -3765,6 +3769,10 @@ function tryFindZohoServerErrorData(errorResponseData, responseError) {
3765
3769
  return error;
3766
3770
  }
3767
3771
 
3772
+ /**
3773
+ * Thrown when a record with the given id has no content. Typically also means it does not exist.
3774
+ */
3775
+
3768
3776
  function _await$2(value, then, direct) {
3769
3777
  if (direct) {
3770
3778
  return then ? then(value) : value;
@@ -4456,6 +4464,7 @@ exports.insertRecord = insertRecord;
4456
4464
  exports.interceptZohoAccountsErrorResponse = interceptZohoAccountsErrorResponse;
4457
4465
  exports.interceptZohoErrorResponseFactory = interceptZohoErrorResponseFactory;
4458
4466
  exports.interceptZohoRecruitErrorResponse = interceptZohoRecruitErrorResponse;
4467
+ exports.isZohoRecruitValidUrl = isZohoRecruitValidUrl;
4459
4468
  exports.logZohoAccountsErrorToConsole = logZohoAccountsErrorToConsole;
4460
4469
  exports.logZohoRecruitErrorToConsole = logZohoRecruitErrorToConsole;
4461
4470
  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
 
@@ -2514,6 +2514,19 @@ addToUnscopables('flatMap');
2514
2514
  * A ZohoRecruit record containing record details.
2515
2515
  */
2516
2516
 
2517
+ /**
2518
+ * Zoho Recruit only allows URLs that can be resolved via the internet (I.E. uses a normal tdl)
2519
+ *
2520
+ * The following are considered invalid:
2521
+ * - localhost:8080
2522
+ * - ht://dereekb.com
2523
+ */
2524
+
2525
+ /**
2526
+ * Returns true if it is a valid ZohoRecruitValidUrl.
2527
+ */
2528
+ const isZohoRecruitValidUrl = isStandardInternetAccessibleWebsiteUrl;
2529
+
2517
2530
  /**
2518
2531
  * Update details returned by the server for an updated object.
2519
2532
  */
@@ -3797,6 +3810,9 @@ function tryFindZohoServerErrorData(errorResponseData, responseError) {
3797
3810
  return error;
3798
3811
  }
3799
3812
 
3813
+ /**
3814
+ * Thrown when a record with the given id has no content. Typically also means it does not exist.
3815
+ */
3800
3816
  class ZohoRecruitRecordNoContentError extends BaseError {
3801
3817
  constructor(moduleName, recordId) {
3802
3818
  super(`There was no content or matching records for the content. It may not exist.`);
@@ -4393,4 +4409,4 @@ function zohoAccountsZohoAccessTokenFactory(config) {
4393
4409
  };
4394
4410
  }
4395
4411
 
4396
- 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 };
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 };
@@ -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.5](https://github.com/dereekb/dbx-components/compare/v11.0.4-dev...v11.0.5) (2024-11-19)
6
+
7
+
8
+
9
+ ## [11.0.4](https://github.com/dereekb/dbx-components/compare/v11.0.3-dev...v11.0.4) (2024-11-19)
10
+
11
+
12
+
5
13
  ## [11.0.3](https://github.com/dereekb/dbx-components/compare/v11.0.2-dev...v11.0.3) (2024-11-15)
6
14
 
7
15
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho/nestjs",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -1,4 +1,4 @@
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
  *
@@ -51,6 +51,18 @@ export type UpdateZohoRecruitRecordData = UniqueModelWithId & ZohoRecruitRecordF
51
51
  * A ZohoRecruit record containing record details.
52
52
  */
53
53
  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
+ /**
63
+ * Returns true if it is a valid ZohoRecruitValidUrl.
64
+ */
65
+ export declare const isZohoRecruitValidUrl: (input: WebsiteUrl) => input is ZohoRecruitValidUrl;
54
66
  /**
55
67
  * Update details returned by the server for an updated object.
56
68
  */
@@ -3,6 +3,9 @@ import { BaseError } from 'make-error';
3
3
  import { ZohoServerErrorDataWithDetails, ZohoServerErrorResponseData, ZohoServerError, ParsedZohoServerError } from '../zoho.error.api';
4
4
  import { ZohoRecruitModuleName, ZohoRecruitRecordId } from './recruit';
5
5
  import { ZohoDataArrayResultRef } from '../zoho.api.page';
6
+ /**
7
+ * Thrown when a record with the given id has no content. Typically also means it does not exist.
8
+ */
6
9
  export declare class ZohoRecruitRecordNoContentError extends BaseError {
7
10
  readonly moduleName?: string | undefined;
8
11
  readonly recordId?: string | undefined;