@dereekb/zoho 12.6.21 → 12.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/index.cjs.js +1786 -419
  2. package/index.esm.js +1678 -417
  3. package/nestjs/CHANGELOG.md +9 -0
  4. package/nestjs/package.json +1 -1
  5. package/nestjs/src/lib/accounts/accounts.api.js +3 -2
  6. package/nestjs/src/lib/accounts/accounts.api.js.map +1 -1
  7. package/nestjs/src/lib/accounts/accounts.config.d.ts +32 -0
  8. package/nestjs/src/lib/accounts/accounts.config.js +29 -4
  9. package/nestjs/src/lib/accounts/accounts.config.js.map +1 -1
  10. package/nestjs/src/lib/crm/crm.api.d.ts +42 -0
  11. package/nestjs/src/lib/crm/crm.api.js +115 -0
  12. package/nestjs/src/lib/crm/crm.api.js.map +1 -0
  13. package/nestjs/src/lib/crm/crm.config.d.ts +10 -0
  14. package/nestjs/src/lib/crm/crm.config.js +16 -0
  15. package/nestjs/src/lib/crm/crm.config.js.map +1 -0
  16. package/nestjs/src/lib/crm/crm.module.d.ts +24 -0
  17. package/nestjs/src/lib/crm/crm.module.js +61 -0
  18. package/nestjs/src/lib/crm/crm.module.js.map +1 -0
  19. package/nestjs/src/lib/crm/index.d.ts +3 -0
  20. package/nestjs/src/lib/crm/index.js +7 -0
  21. package/nestjs/src/lib/crm/index.js.map +1 -0
  22. package/nestjs/src/lib/recruit/recruit.api.d.ts +4 -4
  23. package/nestjs/src/lib/recruit/recruit.api.js +31 -31
  24. package/nestjs/src/lib/recruit/recruit.api.js.map +1 -1
  25. package/nestjs/src/lib/recruit/recruit.module.js +1 -1
  26. package/nestjs/src/lib/recruit/recruit.module.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/accounts/accounts.api.d.ts +1 -1
  29. package/src/lib/crm/crm.api.d.ts +430 -0
  30. package/src/lib/crm/crm.api.notes.d.ts +40 -0
  31. package/src/lib/crm/crm.api.tags.d.ts +136 -0
  32. package/src/lib/crm/crm.config.d.ts +24 -0
  33. package/src/lib/crm/crm.criteria.d.ts +19 -0
  34. package/src/lib/crm/crm.d.ts +325 -0
  35. package/src/lib/crm/crm.error.api.d.ts +52 -0
  36. package/src/lib/crm/crm.factory.d.ts +22 -0
  37. package/src/lib/crm/crm.notes.d.ts +48 -0
  38. package/src/lib/crm/crm.tags.d.ts +40 -0
  39. package/src/lib/crm/index.d.ts +10 -0
  40. package/src/lib/index.d.ts +1 -0
  41. package/src/lib/recruit/index.d.ts +0 -1
  42. package/src/lib/recruit/recruit.api.candidates.d.ts +30 -6
  43. package/src/lib/recruit/recruit.api.d.ts +102 -22
  44. package/src/lib/recruit/recruit.api.notes.d.ts +30 -6
  45. package/src/lib/recruit/recruit.api.tags.d.ts +30 -6
  46. package/src/lib/recruit/recruit.criteria.d.ts +8 -44
  47. package/src/lib/recruit/recruit.d.ts +7 -3
  48. package/src/lib/recruit/recruit.error.api.d.ts +5 -1
  49. package/src/lib/shared/criteria.d.ts +55 -0
  50. package/src/lib/shared/criteria.util.d.ts +10 -0
  51. package/src/lib/zoho.error.api.d.ts +62 -4
  52. package/src/lib/recruit/recruit.criteria.util.d.ts +0 -10
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [12.7.0](https://github.com/dereekb/dbx-components/compare/v12.6.21-dev...v12.7.0) (2026-02-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * zoho crm ([#32](https://github.com/dereekb/dbx-components/issues/32)) ([abe424b](https://github.com/dereekb/dbx-components/commit/abe424b4ee58cef605a29a5839a2e36d22d24866))
11
+
12
+
13
+
5
14
  ## [12.6.21](https://github.com/dereekb/dbx-components/compare/v12.6.20-dev...v12.6.21) (2026-02-18)
6
15
 
7
16
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/zoho/nestjs",
3
- "version": "12.6.21",
3
+ "version": "12.7.0",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "main": "./src/index.js"
@@ -24,7 +24,7 @@ let ZohoAccountsApi = class ZohoAccountsApi {
24
24
  }
25
25
  // MARK: Accessors
26
26
  get accessToken() {
27
- return (0, zoho_1.accessToken)(this.accountsContext);
27
+ return (0, zoho_1.zohoAccountsAccessToken)(this.accountsContext);
28
28
  }
29
29
  };
30
30
  exports.ZohoAccountsApi = ZohoAccountsApi;
@@ -32,6 +32,7 @@ exports.ZohoAccountsApi = ZohoAccountsApi = tslib_1.__decorate([
32
32
  (0, common_1.Injectable)(),
33
33
  tslib_1.__param(0, (0, common_1.Inject)(accounts_config_1.ZohoAccountsServiceConfig)),
34
34
  tslib_1.__param(1, (0, common_1.Inject)(accounts_service_1.ZohoAccountsAccessTokenCacheService)),
35
- tslib_1.__metadata("design:paramtypes", [accounts_config_1.ZohoAccountsServiceConfig, accounts_service_1.ZohoAccountsAccessTokenCacheService])
35
+ tslib_1.__metadata("design:paramtypes", [accounts_config_1.ZohoAccountsServiceConfig,
36
+ accounts_service_1.ZohoAccountsAccessTokenCacheService])
36
37
  ], ZohoAccountsApi);
37
38
  //# sourceMappingURL=accounts.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.api.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/accounts/accounts.api.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,wCAAoG;AACpG,uDAA8D;AAC9D,yDAAyE;AAGlE,IAAM,eAAe,GAArB,MAAM,eAAe;IAO8B;IAAyF;IANxI,YAAY,CAAe;IAEpC,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC;IAC3C,CAAC;IAED,YAAwD,MAAiC,EAAwD,YAAiD;QAA1I,WAAM,GAAN,MAAM,CAA2B;QAAwD,iBAAY,GAAZ,YAAY,CAAqC;QAChM,MAAM,gBAAgB,GAAG,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;QACxL,IAAI,CAAC,YAAY,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;YAClE,gBAAgB;YAChB,GAAG,MAAM,CAAC,YAAY;SACvB,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB;IAClB,IAAI,WAAW;QACb,OAAO,IAAA,kBAAW,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAnBY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAQE,mBAAA,IAAA,eAAM,EAAC,2CAAyB,CAAC,CAAA;IAA8C,mBAAA,IAAA,eAAM,EAAC,sDAAmC,CAAC,CAAA;6CAAvE,2CAAyB,EAAsE,sDAAmC;GAPvL,eAAe,CAmB3B"}
1
+ {"version":3,"file":"accounts.api.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/accounts/accounts.api.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,wCAAgH;AAChH,uDAA8D;AAC9D,yDAAyE;AAGlE,IAAM,eAAe,GAArB,MAAM,eAAe;IAQoB;IACU;IAR/C,YAAY,CAAe;IAEpC,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC;IAC3C,CAAC;IAED,YAC8C,MAAiC,EACvB,YAAiD;QAD3D,WAAM,GAAN,MAAM,CAA2B;QACvB,iBAAY,GAAZ,YAAY,CAAqC;QAEvG,MAAM,gBAAgB,GAAG,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;QACxL,IAAI,CAAC,YAAY,GAAG,IAAA,0BAAmB,EAAC,MAAM,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;YAClE,gBAAgB;YAChB,GAAG,MAAM,CAAC,YAAY;SACvB,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB;IAClB,IAAI,WAAW;QACb,OAAO,IAAA,8BAAuB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AAtBY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IASR,mBAAA,IAAA,eAAM,EAAC,2CAAyB,CAAC,CAAA;IACjC,mBAAA,IAAA,eAAM,EAAC,sDAAmC,CAAC,CAAA;6CADQ,2CAAyB;QACT,sDAAmC;GAT9F,eAAe,CAsB3B"}
@@ -11,5 +11,37 @@ export declare abstract class ZohoAccountsServiceConfig {
11
11
  readonly factoryConfig?: ZohoAccountsFactoryConfig;
12
12
  static assertValidConfig(config: ZohoAccountsServiceConfig): void;
13
13
  }
14
+ /**
15
+ * Input configuration for {@link zohoAccountsServiceConfigFromConfigService}.
16
+ *
17
+ * Requires a NestJS `ConfigService` instance (typically populated from environment variables)
18
+ * and a `serviceAccessTokenKey` that identifies which Zoho service (e.g. `'crm'` or `'recruit'`)
19
+ * is being configured. The key is used to derive service-specific environment variable names.
20
+ */
14
21
  export type ZohoAccountsServiceConfigFromConfigServiceInput = ZohoConfigServiceReaderConfig;
22
+ /**
23
+ * Builds a {@link ZohoAccountsServiceConfig} by reading Zoho Accounts OAuth credentials
24
+ * from a NestJS `ConfigService` (typically backed by environment variables).
25
+ *
26
+ * ## Environment Variable Resolution
27
+ *
28
+ * For each credential, the function first looks for a **service-specific** environment variable
29
+ * (e.g. `ZOHO_CRM_ACCOUNTS_URL`), then falls back to the **shared** variable
30
+ * (e.g. `ZOHO_ACCOUNTS_URL`). The service prefix is derived from `serviceAccessTokenKey`
31
+ * uppercased (e.g. `'crm'` → `ZOHO_CRM_`, `'recruit'` → `ZOHO_RECRUIT_`).
32
+ *
33
+ * | Credential | Shared env var | Service-specific env var (example: CRM) |
34
+ * |------------------|-------------------------------|----------------------------------------------|
35
+ * | Accounts API URL | `ZOHO_ACCOUNTS_URL` | `ZOHO_CRM_ACCOUNTS_URL` |
36
+ * | Refresh Token | `ZOHO_ACCOUNTS_REFRESH_TOKEN` | `ZOHO_CRM_ACCOUNTS_REFRESH_TOKEN` |
37
+ * | Client ID | `ZOHO_ACCOUNTS_CLIENT_ID` | `ZOHO_CRM_ACCOUNTS_CLIENT_ID` |
38
+ * | Client Secret | `ZOHO_ACCOUNTS_CLIENT_SECRET` | `ZOHO_CRM_ACCOUNTS_CLIENT_SECRET` |
39
+ *
40
+ * When using Zoho Recruit, replace `CRM` with `RECRUIT` in the service-specific variable names.
41
+ *
42
+ * @param input - The {@link ZohoAccountsServiceConfigFromConfigServiceInput} containing the
43
+ * `ConfigService` and the `serviceAccessTokenKey` for the target Zoho service.
44
+ * @returns A validated {@link ZohoAccountsServiceConfig} ready for use with `ZohoAccountsApi`.
45
+ * @throws If any required credential (apiUrl, refreshToken, clientId) is missing.
46
+ */
15
47
  export declare function zohoAccountsServiceConfigFromConfigService(input: ZohoAccountsServiceConfigFromConfigServiceInput): ZohoAccountsServiceConfig;
@@ -31,15 +31,40 @@ class ZohoAccountsServiceConfig {
31
31
  }
32
32
  }
33
33
  exports.ZohoAccountsServiceConfig = ZohoAccountsServiceConfig;
34
+ /**
35
+ * Builds a {@link ZohoAccountsServiceConfig} by reading Zoho Accounts OAuth credentials
36
+ * from a NestJS `ConfigService` (typically backed by environment variables).
37
+ *
38
+ * ## Environment Variable Resolution
39
+ *
40
+ * For each credential, the function first looks for a **service-specific** environment variable
41
+ * (e.g. `ZOHO_CRM_ACCOUNTS_URL`), then falls back to the **shared** variable
42
+ * (e.g. `ZOHO_ACCOUNTS_URL`). The service prefix is derived from `serviceAccessTokenKey`
43
+ * uppercased (e.g. `'crm'` → `ZOHO_CRM_`, `'recruit'` → `ZOHO_RECRUIT_`).
44
+ *
45
+ * | Credential | Shared env var | Service-specific env var (example: CRM) |
46
+ * |------------------|-------------------------------|----------------------------------------------|
47
+ * | Accounts API URL | `ZOHO_ACCOUNTS_URL` | `ZOHO_CRM_ACCOUNTS_URL` |
48
+ * | Refresh Token | `ZOHO_ACCOUNTS_REFRESH_TOKEN` | `ZOHO_CRM_ACCOUNTS_REFRESH_TOKEN` |
49
+ * | Client ID | `ZOHO_ACCOUNTS_CLIENT_ID` | `ZOHO_CRM_ACCOUNTS_CLIENT_ID` |
50
+ * | Client Secret | `ZOHO_ACCOUNTS_CLIENT_SECRET` | `ZOHO_CRM_ACCOUNTS_CLIENT_SECRET` |
51
+ *
52
+ * When using Zoho Recruit, replace `CRM` with `RECRUIT` in the service-specific variable names.
53
+ *
54
+ * @param input - The {@link ZohoAccountsServiceConfigFromConfigServiceInput} containing the
55
+ * `ConfigService` and the `serviceAccessTokenKey` for the target Zoho service.
56
+ * @returns A validated {@link ZohoAccountsServiceConfig} ready for use with `ZohoAccountsApi`.
57
+ * @throws If any required credential (apiUrl, refreshToken, clientId) is missing.
58
+ */
34
59
  function zohoAccountsServiceConfigFromConfigService(input) {
35
60
  const { serviceAccessTokenKey } = input;
36
61
  const getFromConfigService = (0, zoho_config_1.zohoConfigServiceReaderFunction)(input);
37
62
  const zohoAccounts = {
38
63
  serviceAccessTokenKey,
39
- apiUrl: getFromConfigService('ACCOUNTS_URL'), // ZOHO_ACCOUNTS_URL, ZOHO_RECRUIT_ACCOUNTS_URL
40
- refreshToken: getFromConfigService('ACCOUNTS_REFRESH_TOKEN'), // ZOHO_ACCOUNTS_REFRESH_TOKEN, ZOHO_RECRUIT_ACCOUNTS_REFRESH_TOKEN
41
- clientId: getFromConfigService('ACCOUNTS_CLIENT_ID'), // ZOHO_ACCOUNTS_CLIENT_ID, ZOHO_RECRUIT_ACCOUNTS_CLIENT_ID
42
- clientSecret: getFromConfigService('ACCOUNTS_CLIENT_SECRET') // ZOHO_ACCOUNTS_CLIENT_SECRET, ZOHO_RECRUIT_ACCOUNTS_CLIENT_SECRET
64
+ apiUrl: getFromConfigService('ACCOUNTS_URL'), // ZOHO_<SERVICE>_ACCOUNTS_URL, ZOHO_ACCOUNTS_URL
65
+ refreshToken: getFromConfigService('ACCOUNTS_REFRESH_TOKEN'), // ZOHO_<SERVICE>_ACCOUNTS_REFRESH_TOKEN, ZOHO_ACCOUNTS_REFRESH_TOKEN
66
+ clientId: getFromConfigService('ACCOUNTS_CLIENT_ID'), // ZOHO_<SERVICE>_ACCOUNTS_CLIENT_ID, ZOHO_ACCOUNTS_CLIENT_ID
67
+ clientSecret: getFromConfigService('ACCOUNTS_CLIENT_SECRET') // ZOHO_<SERVICE>_ACCOUNTS_CLIENT_SECRET, ZOHO_ACCOUNTS_CLIENT_SECRET
43
68
  };
44
69
  const config = {
45
70
  zohoAccounts
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.config.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/accounts/accounts.config.ts"],"names":[],"mappings":";;;AAmCA,gGAkBC;AApDD,gDAAqG;AAMrG;;GAEG;AACH,MAAsB,yBAAyB;IACpC,YAAY,CAAgC;IAC5C,aAAa,CAA6B;IAEnD,MAAM,CAAC,iBAAiB,CAAC,MAAiC;QACxD,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAEhC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;gBACxC,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;YAC9F,CAAC;iBAAM,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;YACrF,CAAC;iBAAM,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;gBAChC,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;YAC/E,CAAC;iBAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;gBAClC,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;YACjF,CAAC;QACH,CAAC;IACH,CAAC;CACF;AArBD,8DAqBC;AAID,SAAgB,0CAA0C,CAAC,KAAsD;IAC/G,MAAM,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,oBAAoB,GAAG,IAAA,6CAA+B,EAAC,KAAK,CAAC,CAAC;IAEpE,MAAM,YAAY,GAA8C;QAC9D,qBAAqB;QACrB,MAAM,EAAE,oBAAoB,CAAC,cAAc,CAAC,EAAE,+CAA+C;QAC7F,YAAY,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,EAAE,mEAAmE;QACjI,QAAQ,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,EAAE,2DAA2D;QACjH,YAAY,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,mEAAmE;KACjI,CAAC;IAEF,MAAM,MAAM,GAA8B;QACxC,YAAY;KACb,CAAC;IAEF,yBAAyB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACpD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"accounts.config.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/accounts/accounts.config.ts"],"names":[],"mappings":";;;AAmEA,gGAkBC;AApFD,gDAAqG;AAMrG;;GAEG;AACH,MAAsB,yBAAyB;IACpC,YAAY,CAAgC;IAC5C,aAAa,CAA6B;IAEnD,MAAM,CAAC,iBAAiB,CAAC,MAAiC;QACxD,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAEhC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;aAAM,CAAC;YACN,I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ccountsApi } from '../accounts/accounts.api';
4
+ export declare class ZohoCrmApi {
5
+ readonly config: ZohoCrmServiceConfig;
6
+ readonly zohoAccountsApi: ZohoAccountsApi;
7
+ readonly zohoCrm: ZohoCrm;
8
+ get crmContext(): ZohoCrmContext;
9
+ get zohoRateLimiter(): import("dist/packages/util/src").ResetPeriodPromiseRateLimiter;
10
+ constructor(config: ZohoCrmServiceConfig, zohoAccountsApi: ZohoAccountsApi);
11
+ get insertRecord(): import("@dereekb/zoho").ZohoCrmCreateRecordLikeFunction;
12
+ get upsertRecord(): import("@dereekb/zoho").ZohoCrmUpsertRecordLikeFunction;
13
+ get updateRecord(): import("@dereekb/zoho").ZohoCrmUpdateRecordLikeFunction;
14
+ get deleteRecord(): import("@dereekb/zoho").ZohoCrmDeleteRecordFunction;
15
+ get getRecordById(): import("@dereekb/zoho").ZohoCrmGetRecordByIdFunction;
16
+ get getRecords(): import("@dereekb/zoho").ZohoCrmGetRecordsFunction;
17
+ get searchRecords(): import("@dereekb/zoho").ZohoCrmSearchRecordsFunction;
18
+ get searchRecordsPageFactory(): import("@dereekb/zoho").ZohoCrmSearchRecordsPageFactory;
19
+ get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoCrmGetRelatedRecordsFunctionFactory;
20
+ get getEmailsForRecord(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordFunction;
21
+ get getEmailsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordPageFactory;
22
+ get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordFunction;
23
+ get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordPageFactory;
24
+ get uploadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmUploadAttachmentForRecordFunction;
25
+ get downloadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmDownloadAttachmentForRecordFunction;
26
+ get deleteAttachmentFromRecord(): import("@dereekb/zoho").ZohoCrmDeleteAttachmentFromRecordFunction;
27
+ get createNotes(): (input: import("@dereekb/zoho").ZohoCrmCreateNotesRequest) => Promise<import("@dereekb/zoho").ZohoCrmMultiRecordResult<import("@dereekb/zoho").NewZohoCrmNoteData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoCrmChangeObjectDetails>, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>>;
28
+ get deleteNotes(): (input: import("@dereekb/zoho").ZohoCrmDeleteNotesRequest) => Promise<import("@dereekb/zoho").ZohoCrmMultiRecordResult<string, import("@dereekb/zoho").ZohoCrmChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoCrmChangeObjectDetails>, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>>;
29
+ get createNotesForRecord(): import("@dereekb/zoho").ZohoCrmCreateNotesForRecordFunction;
30
+ get getNotesForRecord(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordFunction;
31
+ get getNotesForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordPageFactory;
32
+ get executeRestApiFunction(): import("@dereekb/zoho").ZohoCrmExecuteRestApiFunctionFunction;
33
+ get createTagsForModule(): (input: import("@dereekb/zoho").ZohoCrmCreateTagsRequest) => Promise<{
34
+ errorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
35
+ duplicateErrorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
36
+ allErrorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
37
+ successItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoCrmChangeObjectDetails>>[];
38
+ }>;
39
+ get getTagsForModule(): import("@dereekb/zoho").ZohoCrmGetTagsFunction;
40
+ get addTagsToRecords(): import("@dereekb/zoho").ZohoCrmAddTagsToRecordsFunction;
41
+ get removeTagsFromRecords(): import("@dereekb/zoho").ZohoCrmRemoveTagsFromRecordsFunction;
42
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZohoCrmApi = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const zoho_1 = require("@dereekb/zoho");
7
+ const crm_config_1 = require("./crm.config");
8
+ const accounts_api_1 = require("../accounts/accounts.api");
9
+ let ZohoCrmApi = class ZohoCrmApi {
10
+ config;
11
+ zohoAccountsApi;
12
+ zohoCrm;
13
+ get crmContext() {
14
+ return this.zohoCrm.crmContext;
15
+ }
16
+ get zohoRateLimiter() {
17
+ return this.zohoCrm.crmContext.zohoRateLimiter;
18
+ }
19
+ constructor(config, zohoAccountsApi) {
20
+ this.config = config;
21
+ this.zohoAccountsApi = zohoAccountsApi;
22
+ this.zohoCrm = (0, zoho_1.zohoCrmFactory)({
23
+ ...config.factoryConfig,
24
+ accountsContext: zohoAccountsApi.accountsContext
25
+ })(config.zohoCrm);
26
+ }
27
+ // MARK: Accessors
28
+ get insertRecord() {
29
+ return (0, zoho_1.zohoCrmInsertRecord)(this.crmContext);
30
+ }
31
+ get upsertRecord() {
32
+ return (0, zoho_1.zohoCrmUpsertRecord)(this.crmContext);
33
+ }
34
+ get updateRecord() {
35
+ return (0, zoho_1.zohoCrmUpdateRecord)(this.crmContext);
36
+ }
37
+ get deleteRecord() {
38
+ return (0, zoho_1.zohoCrmDeleteRecord)(this.crmContext);
39
+ }
40
+ get getRecordById() {
41
+ return (0, zoho_1.zohoCrmGetRecordById)(this.crmContext);
42
+ }
43
+ get getRecords() {
44
+ return (0, zoho_1.zohoCrmGetRecords)(this.crmContext);
45
+ }
46
+ get searchRecords() {
47
+ return (0, zoho_1.zohoCrmSearchRecords)(this.crmContext);
48
+ }
49
+ get searchRecordsPageFactory() {
50
+ return (0, zoho_1.zohoCrmSearchRecordsPageFactory)(this.crmContext);
51
+ }
52
+ get getRelatedRecordsFunctionFactory() {
53
+ return (0, zoho_1.zohoCrmGetRelatedRecordsFunctionFactory)(this.crmContext);
54
+ }
55
+ get getEmailsForRecord() {
56
+ return (0, zoho_1.zohoCrmGetEmailsForRecord)(this.crmContext);
57
+ }
58
+ get getEmailsForRecordPageFactory() {
59
+ return (0, zoho_1.zohoCrmGetEmailsForRecordPageFactory)(this.crmContext);
60
+ }
61
+ get getAttachmentsForRecord() {
62
+ return (0, zoho_1.zohoCrmGetAttachmentsForRecord)(this.crmContext);
63
+ }
64
+ get getAttachmentsForRecordPageFactory() {
65
+ return (0, zoho_1.zohoCrmGetAttachmentsForRecordPageFactory)(this.crmContext);
66
+ }
67
+ get uploadAttachmentForRecord() {
68
+ return (0, zoho_1.zohoCrmUploadAttachmentForRecord)(this.crmContext);
69
+ }
70
+ get downloadAttachmentForRecord() {
71
+ return (0, zoho_1.zohoCrmDownloadAttachmentForRecord)(this.crmContext);
72
+ }
73
+ get deleteAttachmentFromRecord() {
74
+ return (0, zoho_1.zohoCrmDeleteAttachmentFromRecord)(this.crmContext);
75
+ }
76
+ get createNotes() {
77
+ return (0, zoho_1.zohoCrmCreateNotes)(this.crmContext);
78
+ }
79
+ get deleteNotes() {
80
+ return (0, zoho_1.zohoCrmDeleteNotes)(this.crmContext);
81
+ }
82
+ get createNotesForRecord() {
83
+ return (0, zoho_1.zohoCrmCreateNotesForRecord)(this.crmContext);
84
+ }
85
+ get getNotesForRecord() {
86
+ return (0, zoho_1.zohoCrmGetNotesForRecord)(this.crmContext);
87
+ }
88
+ get getNotesForRecordPageFactory() {
89
+ return (0, zoho_1.zohoCrmGetNotesForRecordPageFactory)(this.crmContext);
90
+ }
91
+ get executeRestApiFunction() {
92
+ return (0, zoho_1.zohoCrmExecuteRestApiFunction)(this.crmContext);
93
+ }
94
+ get createTagsForModule() {
95
+ return (0, zoho_1.zohoCrmCreateTagsForModule)(this.crmContext);
96
+ }
97
+ get getTagsForModule() {
98
+ return (0, zoho_1.zohoCrmGetTagsForModule)(this.crmContext);
99
+ }
100
+ get addTagsToRecords() {
101
+ return (0, zoho_1.zohoCrmAddTagsToRecords)(this.crmContext);
102
+ }
103
+ get removeTagsFromRecords() {
104
+ return (0, zoho_1.zohoCrmRemoveTagsFromRecords)(this.crmContext);
105
+ }
106
+ };
107
+ exports.ZohoCrmApi = ZohoCrmApi;
108
+ exports.ZohoCrmApi = ZohoCrmApi = tslib_1.__decorate([
109
+ (0, common_1.Injectable)(),
110
+ tslib_1.__param(0, (0, common_1.Inject)(crm_config_1.ZohoCrmServiceConfig)),
111
+ tslib_1.__param(1, (0, common_1.Inject)(accounts_api_1.ZohoAccountsApi)),
112
+ tslib_1.__metadata("design:paramtypes", [crm_config_1.ZohoCrmServiceConfig,
113
+ accounts_api_1.ZohoAccountsApi])
114
+ ], ZohoCrmApi);
115
+ //# sourceMappingURL=crm.api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.api.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/crm/crm.api.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AACpD,wCA8BuB;AACvB,6CAAoD;AACpD,2DAA2D;AAGpD,IAAM,UAAU,GAAhB,MAAM,UAAU;IAYoB;IACL;IAZ3B,OAAO,CAAU;IAE1B,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;IACjC,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IACjD,CAAC;IAED,YACyC,MAA4B,EACjC,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AC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAA,8BAAuB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAA,mCAA4B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AA7HY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;IAaR,mBAAA,IAAA,eAAM,EAAC,iCAAoB,CAAC,CAAA;IAC5B,mBAAA,IAAA,eAAM,EAAC,8BAAe,CAAC,CAAA;6CADuB,iCAAoB;QAChB,8BAAe;GAbzD,UAAU,CA6HtB"}
@@ -0,0 +1,10 @@
1
+ import { type ZohoCrmConfig, type ZohoCrmFactoryConfig } from '@dereekb/zoho';
2
+ export type ZohoCrmServiceApiConfig = ZohoCrmConfig & {};
3
+ /**
4
+ * Configuration for ZohoCrmService
5
+ */
6
+ export declare abstract class ZohoCrmServiceConfig {
7
+ readonly zohoCrm: ZohoCrmServiceApiConfig;
8
+ readonly factoryConfig?: ZohoCrmFactoryConfig;
9
+ static assertValidConfig(config: ZohoCrmServiceConfig): void;
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZohoCrmServiceConfig = void 0;
4
+ const zoho_config_1 = require("../zoho.config");
5
+ /**
6
+ * Configuration for ZohoCrmService
7
+ */
8
+ class ZohoCrmServiceConfig {
9
+ zohoCrm;
10
+ factoryConfig;
11
+ static assertValidConfig(config) {
12
+ (0, zoho_config_1.assertValidZohoConfig)(config.zohoCrm);
13
+ }
14
+ }
15
+ exports.ZohoCrmServiceConfig = ZohoCrmServiceConfig;
16
+ //# sourceMappingURL=crm.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.config.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/crm/crm.config.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AAIvD;;GAEG;AACH,MAAsB,oBAAoB;IAC/B,OAAO,CAA2B;IAClC,aAAa,CAAwB;IAE9C,MAAM,CAAC,iBAAiB,CAAC,MAA4B;QACnD,IAAA,mCAAqB,EAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACF;AAPD,oDAOC"}
@@ -0,0 +1,24 @@
1
+ import { type ModuleMetadata } from '@nestjs/common';
2
+ import { ConfigService } from '@nestjs/config';
3
+ import { ZohoCrmServiceConfig } from './crm.config';
4
+ import { ZohoAccountsServiceConfig } from '../accounts/accounts.config';
5
+ import { type Maybe } from '@dereekb/util';
6
+ export declare function zohoCrmServiceConfigFactory(configService: ConfigService): ZohoCrmServiceConfig;
7
+ export declare function zohoCrmAccountServiceConfigFactory(configService: ConfigService): ZohoAccountsServiceConfig;
8
+ export interface ProvideAppZohoCrmMetadataConfig extends Pick<ModuleMetadata, 'imports' | 'exports' | 'providers'> {
9
+ /**
10
+ * The ZohoCrmModule requires the following dependencies in order to initialze properly:
11
+ * - ZohoAccountsAccessTokenCacheService
12
+ *
13
+ * This module declaration makes it easier to import a module that exports those depenendencies.
14
+ */
15
+ readonly dependencyModule?: Maybe<Required<ModuleMetadata>['imports']['0']>;
16
+ }
17
+ /**
18
+ * Convenience function used to generate ModuleMetadata for an app's ZohoCrmModule.
19
+ *
20
+ * @param provide
21
+ * @param useFactory
22
+ * @returns
23
+ */
24
+ export declare function appZohoCrmModuleMetadata(config: ProvideAppZohoCrmMetadataConfig): ModuleMetadata;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zohoCrmServiceConfigFactory = zohoCrmServiceConfigFactory;
4
+ exports.zohoCrmAccountServiceConfigFactory = zohoCrmAccountServiceConfigFactory;
5
+ exports.appZohoCrmModuleMetadata = appZohoCrmModuleMetadata;
6
+ const config_1 = require("@nestjs/config");
7
+ const crm_api_1 = require("./crm.api");
8
+ const crm_config_1 = require("./crm.config");
9
+ const zoho_config_1 = require("../zoho.config");
10
+ const accounts_api_1 = require("../accounts/accounts.api");
11
+ const accounts_config_1 = require("../accounts/accounts.config");
12
+ const zoho_1 = require("@dereekb/zoho");
13
+ // MARK: Provider Factories
14
+ function zohoCrmServiceConfigFactory(configService) {
15
+ const getFromConfigService = (0, zoho_config_1.zohoConfigServiceReaderFunction)(zoho_1.ZOHO_CRM_SERVICE_NAME, configService);
16
+ const config = {
17
+ zohoCrm: {
18
+ apiUrl: getFromConfigService(zoho_config_1.ZOHO_API_URL_CONFIG_KEY)
19
+ }
20
+ };
21
+ crm_config_1.ZohoCrmServiceConfig.assertValidConfig(config);
22
+ return config;
23
+ }
24
+ function zohoCrmAccountServiceConfigFactory(configService) {
25
+ return (0, accounts_config_1.zohoAccountsServiceConfigFromConfigService)({
26
+ configService,
27
+ serviceAccessTokenKey: zoho_1.ZOHO_CRM_SERVICE_NAME
28
+ });
29
+ }
30
+ /**
31
+ * Convenience function used to generate ModuleMetadata for an app's ZohoCrmModule.
32
+ *
33
+ * @param provide
34
+ * @param useFactory
35
+ * @returns
36
+ */
37
+ function appZohoCrmModuleMetadata(config) {
38
+ const { dependencyModule, imports, exports, providers } = config;
39
+ const dependencyModuleImport = dependencyModule ? [dependencyModule] : [];
40
+ return {
41
+ imports: [config_1.ConfigModule, ...dependencyModuleImport, ...(imports ?? [])],
42
+ exports: [crm_api_1.ZohoCrmApi, ...(exports ?? [])],
43
+ providers: [
44
+ {
45
+ provide: crm_config_1.ZohoCrmServiceConfig,
46
+ inject: [config_1.ConfigService],
47
+ useFactory: zohoCrmServiceConfigFactory
48
+ },
49
+ crm_api_1.ZohoCrmApi,
50
+ // Accounts
51
+ {
52
+ provide: accounts_config_1.ZohoAccountsServiceConfig,
53
+ inject: [config_1.ConfigService],
54
+ useFactory: zohoCrmAccountServiceConfigFactory
55
+ },
56
+ accounts_api_1.ZohoAccountsApi,
57
+ ...(providers ?? [])
58
+ ]
59
+ };
60
+ }
61
+ //# sourceMappingURL=crm.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm.module.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/crm/crm.module.ts"],"names":[],"mappings":";;AAWA,kEAWC;AAED,gFAKC;AAoBD,4DAwBC;AAxED,2CAA6D;AAC7D,uCAAuC;AACvC,6CAAoD;AACpD,gDAA0F;AAC1F,2DAA2D;AAC3D,iEAAoH;AACpH,wCAAsD;AAGtD,2BAA2B;AAC3B,SAAgB,2BAA2B,CAAC,aAA4B;IACtE,MAAM,oBAAoB,GAAG,IAAA,6CAA+B,EAAC,4BAAqB,EAAE,aAAa,CAAC,CAAC;IAEnG,MAAM,MAAM,GAAyB;QACnC,OAAO,EAAE;YACP,MAAM,EAAE,oBAAoB,CAAC,qCAAuB,CAAC;SACtD;KACF,CAAC;IAEF,iCAAoB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/C,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,aAA4B;IAC7E,OAAO,IAAA,4DAA0C,EAAC;QAChD,aAAa;QACb,qBAAqB,EAAE,4BAAqB;KAC7C,CAAC,CAAC;AACL,CAAC;AAaD;;;;;;GAMG;AACH,SAAgB,wBAAwB,CAAC,MAAuC;IAC9E,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IACjE,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE1E,OAAO;QACL,OAAO,EAAE,CAAC,qBAAY,EAAE,GAAG,sBAAsB,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACtE,OAAO,EAAE,CAAC,oBAAU,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACzC,SAAS,EAAE;YACT;gBACE,OAAO,EAAE,iCAAoB;gBAC7B,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,2BAA2B;aACxC;YACD,oBAAU;YACV,WAAW;YACX;gBACE,OAAO,EAAE,2CAAyB;gBAClC,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,kCAAkC;aAC/C;YACD,8BAAe;YACf,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;SACrB;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './crm.api';
2
+ export * from './crm.config';
3
+ export * from './crm.module';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./crm.api"), exports);
5
+ tslib_1.__exportStar(require("./crm.config"), exports);
6
+ tslib_1.__exportStar(require("./crm.module"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/zoho/nestjs/src/lib/crm/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,uDAA6B;AAC7B,uDAA6B"}
@@ -15,12 +15,12 @@ export declare class ZohoRecruitApi {
15
15
  get getRecordById(): import("@dereekb/zoho").ZohoRecruitGetRecordByIdFunction;
16
16
  get getRecords(): import("@dereekb/zoho").ZohoRecruitGetRecordsFunction;
17
17
  get searchRecords(): import("@dereekb/zoho").ZohoRecruitSearchRecordsFunction;
18
- get searchRecordsPageFactory(): import("@dereekb/zoho").SearchRecordsPageFactory;
18
+ get searchRecordsPageFactory(): import("@dereekb/zoho").ZohoRecruitSearchRecordsPageFactory;
19
19
  get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoRecruitGetRelatedRecordsFunctionFactory;
20
20
  get getEmailsForRecord(): import("@dereekb/zoho").ZohoRecruitGetEmailsForRecordFunction;
21
- get getEmailsForRecordPageFactory(): import("@dereekb/zoho").GetEmailsForRecordPageFactory;
21
+ get getEmailsForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetEmailsForRecordPageFactory;
22
22
  get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoRecruitGetAttachmentsForRecordFunction;
23
- get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").GetAttachmentsForRecordPageFactory;
23
+ get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetAttachmentsForRecordPageFactory;
24
24
  get uploadAttachmentForRecord(): import("@dereekb/zoho").ZohoRecruitUploadAttachmentForRecordFunction;
25
25
  get downloadAttachmentForRecord(): import("@dereekb/zoho").ZohoRecruitDownloadAttachmentForRecordFunction;
26
26
  get deleteAttachmentFromRecord(): import("@dereekb/zoho").ZohoRecruitDeleteAttachmentFromRecordFunction;
@@ -28,7 +28,7 @@ export declare class ZohoRecruitApi {
28
28
  get deleteNotes(): (input: import("@dereekb/zoho").ZohoRecruitDeleteNotesRequest) => Promise<import("@dereekb/zoho").ZohoRecruitMultiRecordResult<string, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>>;
29
29
  get createNotesForRecord(): import("@dereekb/zoho").ZohoRecruitCreateNotesForRecordFunction;
30
30
  get getNotesForRecord(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordFunction;
31
- get getNotesForRecordPageFactory(): import("@dereekb/zoho").GetNotesForRecordPageFactory;
31
+ get getNotesForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordPageFactory;
32
32
  get executeRestApiFunction(): import("@dereekb/zoho").ZohoRecruitExecuteRestApiFunctionFunction;
33
33
  get associateCandidateRecordsWithJobOpenings(): import("@dereekb/zoho").ZohoRecruitAssociateCandidateRecordsWithJobOpeningsFunction;
34
34
  get searchCandidateAssociatedJobOpeningRecords(): import("@dereekb/zoho").ZohoRecruitSearchCandidateAssociatedJobOpeningRecordsFunction<import("@dereekb/zoho").ZohoRecruitRecord>;
@@ -26,97 +26,97 @@ let ZohoRecruitApi = class ZohoRecruitApi {
26
26
  }
27
27
  // MARK: Accessors
28
28
  get insertRecord() {
29
- return (0, zoho_1.insertRecord)(this.recruitContext);
29
+ return (0, zoho_1.zohoRecruitInsertRecord)(this.recruitContext);
30
30
  }
31
31
  get upsertRecord() {
32
- return (0, zoho_1.upsertRecord)(this.recruitContext);
32
+ return (0, zoho_1.zohoRecruitUpsertRecord)(this.recruitContext);
33
33
  }
34
34
  get updateRecord() {
35
- return (0, zoho_1.updateRecord)(this.recruitContext);
35
+ return (0, zoho_1.zohoRecruitUpdateRecord)(this.recruitContext);
36
36
  }
37
37
  get deleteRecord() {
38
- return (0, zoho_1.deleteRecord)(this.recruitContext);
38
+ return (0, zoho_1.zohoRecruitDeleteRecord)(this.recruitContext);
39
39
  }
40
40
  get getRecordById() {
41
- return (0, zoho_1.getRecordById)(this.recruitContext);
41
+ return (0, zoho_1.zohoRecruitGetRecordById)(this.recruitContext);
42
42
  }
43
43
  get getRecords() {
44
- return (0, zoho_1.getRecords)(this.recruitContext);
44
+ return (0, zoho_1.zohoRecruitGetRecords)(this.recruitContext);
45
45
  }
46
46
  get searchRecords() {
47
- return (0, zoho_1.searchRecords)(this.recruitContext);
47
+ return (0, zoho_1.zohoRecruitSearchRecords)(this.recruitContext);
48
48
  }
49
49
  get searchRecordsPageFactory() {
50
- return (0, zoho_1.searchRecordsPageFactory)(this.recruitContext);
50
+ return (0, zoho_1.zohoRecruitSearchRecordsPageFactory)(this.recruitContext);
51
51
  }
52
52
  get getRelatedRecordsFunctionFactory() {
53
- return (0, zoho_1.getRelatedRecordsFunctionFactory)(this.recruitContext);
53
+ return (0, zoho_1.zohoRecruitGetRelatedRecordsFunctionFactory)(this.recruitContext);
54
54
  }
55
55
  get getEmailsForRecord() {
56
- return (0, zoho_1.getEmailsForRecord)(this.recruitContext);
56
+ return (0, zoho_1.zohoRecruitGetEmailsForRecord)(this.recruitContext);
57
57
  }
58
58
  get getEmailsForRecordPageFactory() {
59
- return (0, zoho_1.getEmailsForRecordPageFactory)(this.recruitContext);
59
+ return (0, zoho_1.zohoRecruitGetEmailsForRecordPageFactory)(this.recruitContext);
60
60
  }
61
61
  get getAttachmentsForRecord() {
62
- return (0, zoho_1.getAttachmentsForRecord)(this.recruitContext);
62
+ return (0, zoho_1.zohoRecruitGetAttachmentsForRecord)(this.recruitContext);
63
63
  }
64
64
  get getAttachmentsForRecordPageFactory() {
65
- return (0, zoho_1.getAttachmentsForRecordPageFactory)(this.recruitContext);
65
+ return (0, zoho_1.zohoRecruitGetAttachmentsForRecordPageFactory)(this.recruitContext);
66
66
  }
67
67
  get uploadAttachmentForRecord() {
68
- return (0, zoho_1.uploadAttachmentForRecord)(this.recruitContext);
68
+ return (0, zoho_1.zohoRecruitUploadAttachmentForRecord)(this.recruitContext);
69
69
  }
70
70
  get downloadAttachmentForRecord() {
71
- return (0, zoho_1.downloadAttachmentForRecord)(this.recruitContext);
71
+ return (0, zoho_1.zohoRecruitDownloadAttachmentForRecord)(this.recruitContext);
72
72
  }
73
73
  get deleteAttachmentFromRecord() {
74
- return (0, zoho_1.deleteAttachmentFromRecord)(this.recruitContext);
74
+ return (0, zoho_1.zohoRecruitDeleteAttachmentFromRecord)(this.recruitContext);
75
75
  }
76
76
  get createNotes() {
77
- return (0, zoho_1.createNotes)(this.recruitContext);
77
+ return (0, zoho_1.zohoRecruitCreateNotes)(this.recruitContext);
78
78
  }
79
79
  get deleteNotes() {
80
- return (0, zoho_1.deleteNotes)(this.recruitContext);
80
+ return (0, zoho_1.zohoRecruitDeleteNotes)(this.recruitContext);
81
81
  }
82
82
  get createNotesForRecord() {
83
- return (0, zoho_1.createNotesForRecord)(this.recruitContext);
83
+ return (0, zoho_1.zohoRecruitCreateNotesForRecord)(this.recruitContext);
84
84
  }
85
85
  get getNotesForRecord() {
86
- return (0, zoho_1.getNotesForRecord)(this.recruitContext);
86
+ return (0, zoho_1.zohoRecruitGetNotesForRecord)(this.recruitContext);
87
87
  }
88
88
  get getNotesForRecordPageFactory() {
89
- return (0, zoho_1.getNotesForRecordPageFactory)(this.recruitContext);
89
+ return (0, zoho_1.zohoRecruitGetNotesForRecordPageFactory)(this.recruitContext);
90
90
  }
91
91
  get executeRestApiFunction() {
92
- return (0, zoho_1.executeRestApiFunction)(this.recruitContext);
92
+ return (0, zoho_1.zohoRecruitExecuteRestApiFunction)(this.recruitContext);
93
93
  }
94
94
  get associateCandidateRecordsWithJobOpenings() {
95
- return (0, zoho_1.associateCandidateRecordsWithJobOpenings)(this.recruitContext);
95
+ return (0, zoho_1.zohoRecruitAssociateCandidateRecordsWithJobOpenings)(this.recruitContext);
96
96
  }
97
97
  get searchCandidateAssociatedJobOpeningRecords() {
98
- return (0, zoho_1.searchCandidateAssociatedJobOpeningRecords)(this.recruitContext);
98
+ return (0, zoho_1.zohoRecruitSearchCandidateAssociatedJobOpeningRecords)(this.recruitContext);
99
99
  }
100
100
  get searchCandidateAssociatedJobOpeningRecordsPageFactory() {
101
- return (0, zoho_1.searchCandidateAssociatedJobOpeningRecordsPageFactory)(this.recruitContext);
101
+ return (0, zoho_1.zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory)(this.recruitContext);
102
102
  }
103
103
  get searchJobOpeningAssociatedCandidateRecords() {
104
- return (0, zoho_1.searchJobOpeningAssociatedCandidateRecords)(this.recruitContext);
104
+ return (0, zoho_1.zohoRecruitSearchJobOpeningAssociatedCandidateRecords)(this.recruitContext);
105
105
  }
106
106
  get searchJobOpeningAssociatedCandidateRecordsPageFactory() {
107
- return (0, zoho_1.searchJobOpeningAssociatedCandidateRecordsPageFactory)(this.recruitContext);
107
+ return (0, zoho_1.zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory)(this.recruitContext);
108
108
  }
109
109
  get createTagsForModule() {
110
- return (0, zoho_1.createTagsForModule)(this.recruitContext);
110
+ return (0, zoho_1.zohoRecruitCreateTagsForModule)(this.recruitContext);
111
111
  }
112
112
  get getTagsForModule() {
113
- return (0, zoho_1.getTagsForModule)(this.recruitContext);
113
+ return (0, zoho_1.zohoRecruitGetTagsForModule)(this.recruitContext);
114
114
  }
115
115
  get addTagsToRecords() {
116
- return (0, zoho_1.addTagsToRecords)(this.recruitContext);
116
+ return (0, zoho_1.zohoRecruitAddTagsToRecords)(this.recruitContext);
117
117
  }
118
118
  get removeTagsFromRecords() {
119
- return (0, zoho_1.removeTagsFromRecords)(this.recruitContext);
119
+ return (0, zoho_1.zohoRecruitRemoveTagsFromRecords)(this.recruitContext);
120
120
  }
121
121
  };
122
122
  exports.ZohoRecruitApi = ZohoRecruitApi;