@dereekb/zoho 13.11.14 → 13.11.15
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 +5 -5
- package/cli/package.json +7 -7
- package/index.cjs.js +569 -503
- package/index.esm.js +569 -503
- package/nestjs/index.cjs.js +248 -255
- package/nestjs/index.esm.js +248 -255
- package/nestjs/package.json +5 -5
- package/nestjs/src/lib/accounts/accounts.config.d.ts +1 -1
- package/nestjs/src/lib/accounts/accounts.service.d.ts +11 -11
- package/nestjs/src/lib/crm/crm.api.d.ts +31 -31
- package/nestjs/src/lib/crm/crm.config.d.ts +1 -1
- package/nestjs/src/lib/crm/crm.module.d.ts +12 -13
- package/nestjs/src/lib/desk/desk.api.d.ts +48 -48
- package/nestjs/src/lib/desk/desk.config.d.ts +2 -1
- package/nestjs/src/lib/desk/desk.module.d.ts +6 -6
- package/nestjs/src/lib/recruit/recruit.api.d.ts +35 -35
- package/nestjs/src/lib/recruit/recruit.config.d.ts +1 -1
- package/nestjs/src/lib/recruit/recruit.module.d.ts +12 -13
- package/nestjs/src/lib/sign/sign.api.d.ts +16 -16
- package/nestjs/src/lib/sign/sign.module.d.ts +12 -13
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.d.ts +2 -2
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.module.d.ts +3 -3
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.verify.d.ts +2 -2
- package/nestjs/src/lib/zoho.config.d.ts +2 -1
- package/package.json +8 -8
- package/src/lib/accounts/accounts.api.d.ts +10 -10
- package/src/lib/accounts/accounts.config.d.ts +2 -2
- package/src/lib/accounts/accounts.d.ts +3 -2
- package/src/lib/accounts/accounts.error.api.d.ts +5 -5
- package/src/lib/accounts/accounts.factory.d.ts +8 -6
- package/src/lib/crm/crm.api.d.ts +87 -81
- package/src/lib/crm/crm.api.notes.d.ts +11 -10
- package/src/lib/crm/crm.api.tags.d.ts +16 -14
- package/src/lib/crm/crm.config.d.ts +2 -2
- package/src/lib/crm/crm.d.ts +2 -2
- package/src/lib/crm/crm.error.api.d.ts +10 -10
- package/src/lib/crm/crm.factory.d.ts +3 -2
- package/src/lib/crm/crm.notes.d.ts +2 -2
- package/src/lib/desk/desk.agent.d.ts +2 -2
- package/src/lib/desk/desk.api.activities.d.ts +5 -4
- package/src/lib/desk/desk.api.agents.d.ts +11 -10
- package/src/lib/desk/desk.api.attachments.d.ts +4 -4
- package/src/lib/desk/desk.api.comments.d.ts +8 -8
- package/src/lib/desk/desk.api.contacts.d.ts +9 -8
- package/src/lib/desk/desk.api.departments.d.ts +4 -4
- package/src/lib/desk/desk.api.followers.d.ts +6 -6
- package/src/lib/desk/desk.api.page.d.ts +6 -5
- package/src/lib/desk/desk.api.tags.d.ts +10 -10
- package/src/lib/desk/desk.api.threads.d.ts +7 -6
- package/src/lib/desk/desk.api.tickets.d.ts +23 -21
- package/src/lib/desk/desk.api.time.d.ts +10 -10
- package/src/lib/desk/desk.config.d.ts +2 -2
- package/src/lib/desk/desk.error.api.d.ts +5 -5
- package/src/lib/desk/desk.factory.d.ts +3 -2
- package/src/lib/desk/desk.limit.d.ts +3 -3
- package/src/lib/desk/desk.ticket.d.ts +4 -4
- package/src/lib/recruit/recruit.api.candidates.d.ts +15 -13
- package/src/lib/recruit/recruit.api.d.ts +85 -80
- package/src/lib/recruit/recruit.api.notes.d.ts +11 -10
- package/src/lib/recruit/recruit.api.tags.d.ts +19 -18
- package/src/lib/recruit/recruit.config.d.ts +2 -2
- package/src/lib/recruit/recruit.d.ts +2 -2
- package/src/lib/recruit/recruit.error.api.d.ts +10 -10
- package/src/lib/recruit/recruit.factory.d.ts +3 -2
- package/src/lib/recruit/recruit.notes.d.ts +2 -2
- package/src/lib/shared/criteria.d.ts +5 -5
- package/src/lib/shared/criteria.util.d.ts +2 -2
- package/src/lib/sign/sign.api.d.ts +47 -46
- package/src/lib/sign/sign.api.page.d.ts +6 -5
- package/src/lib/sign/sign.config.d.ts +2 -2
- package/src/lib/sign/sign.d.ts +4 -4
- package/src/lib/sign/sign.error.api.d.ts +5 -5
- package/src/lib/sign/sign.factory.d.ts +3 -2
- package/src/lib/zoho.api.page.d.ts +5 -4
- package/src/lib/zoho.error.api.d.ts +17 -14
- package/src/lib/zoho.limit.d.ts +6 -5
- package/src/lib/zoho.type.d.ts +1 -1
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.15",
|
|
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.15",
|
|
6
|
+
"@dereekb/rxjs": "13.11.15",
|
|
7
|
+
"@dereekb/util": "13.11.15",
|
|
8
|
+
"@dereekb/zoho": "13.11.15",
|
|
9
9
|
"@nestjs/common": "^11.1.19",
|
|
10
10
|
"@nestjs/config": "^4.0.4",
|
|
11
11
|
"express": "^5.2.1"
|
|
@@ -42,6 +42,6 @@ export type ZohoAccountsServiceConfigFromConfigServiceInput = ZohoConfigServiceR
|
|
|
42
42
|
* @param input - The {@link ZohoAccountsServiceConfigFromConfigServiceInput} containing the
|
|
43
43
|
* `ConfigService` and the `serviceAccessTokenKey` for the target Zoho service.
|
|
44
44
|
* @returns A validated {@link ZohoAccountsServiceConfig} ready for use with `ZohoAccountsApi`.
|
|
45
|
-
* @throws If any required credential (apiUrl, refreshToken, clientId) is missing.
|
|
45
|
+
* @throws {Error} If any required credential (apiUrl, refreshToken, clientId) is missing.
|
|
46
46
|
*/
|
|
47
47
|
export declare function zohoAccountsServiceConfigFromConfigService(input: ZohoAccountsServiceConfigFromConfigServiceInput): ZohoAccountsServiceConfig;
|
|
@@ -16,7 +16,7 @@ export type LogMergeZohoAccountsAccessTokenCacheServiceErrorFunction = (failedUp
|
|
|
16
16
|
/**
|
|
17
17
|
* Default error logging function for merged Zoho access token cache services.
|
|
18
18
|
*
|
|
19
|
-
* @param failedUpdates -
|
|
19
|
+
* @param failedUpdates - Array of cache/error tuples that failed during update.
|
|
20
20
|
*/
|
|
21
21
|
export declare function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates: (readonly [ZohoAccessTokenCache, unknown])[]): void;
|
|
22
22
|
/**
|
|
@@ -31,10 +31,10 @@ export declare function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction
|
|
|
31
31
|
* never short-circuits the lookup. Updates and clears run across all services in parallel
|
|
32
32
|
* via `Promise.allSettled`, mirroring the previous behavior, with optional error logging.
|
|
33
33
|
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @
|
|
37
|
-
* @
|
|
34
|
+
* @param inputServicesToMerge - Cache services to merge in priority order. Must include at least one service.
|
|
35
|
+
* @param logError - Optional error logging toggle or custom logging function.
|
|
36
|
+
* @returns A merged ZohoAccountsAccessTokenCacheService that delegates across all inputs.
|
|
37
|
+
* @throws {Error} When `inputServicesToMerge` is empty.
|
|
38
38
|
*/
|
|
39
39
|
export declare function mergeZohoAccountsAccessTokenCacheServices(inputServicesToMerge: ZohoAccountsAccessTokenCacheService[], logError?: Maybe<boolean | LogMergeZohoAccountsAccessTokenCacheServiceErrorFunction>): ZohoAccountsAccessTokenCacheService;
|
|
40
40
|
/**
|
|
@@ -43,9 +43,9 @@ export declare function mergeZohoAccountsAccessTokenCacheServices(inputServicesT
|
|
|
43
43
|
* Backed by {@link inMemoryAsyncKeyedValueCache} so all per-service caches share the
|
|
44
44
|
* same record instance.
|
|
45
45
|
*
|
|
46
|
-
* @param existingCache -
|
|
47
|
-
* @param logAccessToConsole -
|
|
48
|
-
* @returns
|
|
46
|
+
* @param existingCache - Optional pre-populated token cache record to use as initial state.
|
|
47
|
+
* @param logAccessToConsole - Whether to log cache reads and writes to the console.
|
|
48
|
+
* @returns A ZohoAccountsAccessTokenCacheService backed by in-memory storage.
|
|
49
49
|
*/
|
|
50
50
|
export declare function memoryZohoAccountsAccessTokenCacheService(existingCache?: ZohoAccountsAccessTokenCacheRecord, logAccessToConsole?: boolean): ZohoAccountsAccessTokenCacheService;
|
|
51
51
|
export interface FileSystemZohoAccountsAccessTokenCacheService extends ZohoAccountsAccessTokenCacheService {
|
|
@@ -62,8 +62,8 @@ export declare const DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH
|
|
|
62
62
|
*
|
|
63
63
|
* Useful for testing.
|
|
64
64
|
*
|
|
65
|
-
* @param filename -
|
|
66
|
-
* @param useMemoryCache -
|
|
67
|
-
* @returns
|
|
65
|
+
* @param filename - Path to the JSON file used for token persistence.
|
|
66
|
+
* @param useMemoryCache - Whether to also cache tokens in memory for faster reads.
|
|
67
|
+
* @returns A FileSystemZohoAccountsAccessTokenCacheService backed by file storage.
|
|
68
68
|
*/
|
|
69
69
|
export declare function fileZohoAccountsAccessTokenCacheService(filename?: string, useMemoryCache?: boolean): FileSystemZohoAccountsAccessTokenCacheService;
|
|
@@ -17,159 +17,159 @@ export declare class ZohoCrmApi {
|
|
|
17
17
|
/**
|
|
18
18
|
* The authenticated CRM context used by all operation accessors.
|
|
19
19
|
*
|
|
20
|
-
* @returns
|
|
20
|
+
* @returns The CRM context from the underlying client.
|
|
21
21
|
*/
|
|
22
22
|
get crmContext(): ZohoCrmContext;
|
|
23
23
|
/**
|
|
24
24
|
* Rate limiter shared across all CRM requests to respect Zoho API quotas.
|
|
25
25
|
*
|
|
26
|
-
* @returns
|
|
26
|
+
* @returns The shared rate limiter instance.
|
|
27
27
|
*/
|
|
28
28
|
get zohoRateLimiter(): import("@dereekb/util").ResetPeriodPromiseRateLimiter;
|
|
29
29
|
/**
|
|
30
30
|
* Initializes the CRM client by combining the service config with the
|
|
31
31
|
* accounts context for OAuth token management.
|
|
32
32
|
*
|
|
33
|
-
* @param config - Zoho CRM service configuration
|
|
34
|
-
* @param zohoAccountsApi -
|
|
33
|
+
* @param config - Zoho CRM service configuration.
|
|
34
|
+
* @param zohoAccountsApi - Accounts API used for OAuth token management.
|
|
35
35
|
*/
|
|
36
36
|
constructor(config: ZohoCrmServiceConfig, zohoAccountsApi: ZohoAccountsApi);
|
|
37
37
|
/**
|
|
38
38
|
* Configured pass-through for {@link zohoCrmInsertRecord}.
|
|
39
39
|
*
|
|
40
|
-
* @returns
|
|
40
|
+
* @returns Bound insert record function.
|
|
41
41
|
*/
|
|
42
42
|
get insertRecord(): import("@dereekb/zoho").ZohoCrmCreateRecordLikeFunction;
|
|
43
43
|
/**
|
|
44
44
|
* Configured pass-through for {@link zohoCrmUpsertRecord}.
|
|
45
45
|
*
|
|
46
|
-
* @returns
|
|
46
|
+
* @returns Bound upsert record function.
|
|
47
47
|
*/
|
|
48
48
|
get upsertRecord(): import("@dereekb/zoho").ZohoCrmUpsertRecordLikeFunction;
|
|
49
49
|
/**
|
|
50
50
|
* Configured pass-through for {@link zohoCrmUpdateRecord}.
|
|
51
51
|
*
|
|
52
|
-
* @returns
|
|
52
|
+
* @returns Bound update record function.
|
|
53
53
|
*/
|
|
54
54
|
get updateRecord(): import("@dereekb/zoho").ZohoCrmUpdateRecordLikeFunction;
|
|
55
55
|
/**
|
|
56
56
|
* Configured pass-through for {@link zohoCrmDeleteRecord}.
|
|
57
57
|
*
|
|
58
|
-
* @returns
|
|
58
|
+
* @returns Bound delete record function.
|
|
59
59
|
*/
|
|
60
60
|
get deleteRecord(): import("@dereekb/zoho").ZohoCrmDeleteRecordFunction;
|
|
61
61
|
/**
|
|
62
62
|
* Configured pass-through for {@link zohoCrmGetRecordById}.
|
|
63
63
|
*
|
|
64
|
-
* @returns
|
|
64
|
+
* @returns Bound get record by ID function.
|
|
65
65
|
*/
|
|
66
66
|
get getRecordById(): import("@dereekb/zoho").ZohoCrmGetRecordByIdFunction;
|
|
67
67
|
/**
|
|
68
68
|
* Configured pass-through for {@link zohoCrmGetRecords}.
|
|
69
69
|
*
|
|
70
|
-
* @returns
|
|
70
|
+
* @returns Bound get records function.
|
|
71
71
|
*/
|
|
72
72
|
get getRecords(): import("@dereekb/zoho").ZohoCrmGetRecordsFunction;
|
|
73
73
|
/**
|
|
74
74
|
* Configured pass-through for {@link zohoCrmSearchRecords}.
|
|
75
75
|
*
|
|
76
|
-
* @returns
|
|
76
|
+
* @returns Bound search records function.
|
|
77
77
|
*/
|
|
78
78
|
get searchRecords(): import("@dereekb/zoho").ZohoCrmSearchRecordsFunction;
|
|
79
79
|
/**
|
|
80
80
|
* Configured pass-through for {@link zohoCrmSearchRecordsPageFactory}.
|
|
81
81
|
*
|
|
82
|
-
* @returns
|
|
82
|
+
* @returns Bound search records page factory function.
|
|
83
83
|
*/
|
|
84
84
|
get searchRecordsPageFactory(): import("@dereekb/zoho").ZohoCrmSearchRecordsPageFactory;
|
|
85
85
|
/**
|
|
86
86
|
* Configured pass-through for {@link zohoCrmGetRelatedRecordsFunctionFactory}.
|
|
87
87
|
*
|
|
88
|
-
* @returns
|
|
88
|
+
* @returns Bound get related records factory function.
|
|
89
89
|
*/
|
|
90
90
|
get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoCrmGetRelatedRecordsFunctionFactory;
|
|
91
91
|
/**
|
|
92
92
|
* Configured pass-through for {@link zohoCrmGetEmailsForRecord}.
|
|
93
93
|
*
|
|
94
|
-
* @returns
|
|
94
|
+
* @returns Bound get emails for record function.
|
|
95
95
|
*/
|
|
96
96
|
get getEmailsForRecord(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordFunction;
|
|
97
97
|
/**
|
|
98
98
|
* Configured pass-through for {@link zohoCrmGetEmailsForRecordPageFactory}.
|
|
99
99
|
*
|
|
100
|
-
* @returns
|
|
100
|
+
* @returns Bound get emails page factory function.
|
|
101
101
|
*/
|
|
102
102
|
get getEmailsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordPageFactory;
|
|
103
103
|
/**
|
|
104
104
|
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecord}.
|
|
105
105
|
*
|
|
106
|
-
* @returns
|
|
106
|
+
* @returns Bound get attachments for record function.
|
|
107
107
|
*/
|
|
108
108
|
get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordFunction;
|
|
109
109
|
/**
|
|
110
110
|
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecordPageFactory}.
|
|
111
111
|
*
|
|
112
|
-
* @returns
|
|
112
|
+
* @returns Bound get attachments page factory function.
|
|
113
113
|
*/
|
|
114
114
|
get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordPageFactory;
|
|
115
115
|
/**
|
|
116
116
|
* Configured pass-through for {@link zohoCrmUploadAttachmentForRecord}.
|
|
117
117
|
*
|
|
118
|
-
* @returns
|
|
118
|
+
* @returns Bound upload attachment function.
|
|
119
119
|
*/
|
|
120
120
|
get uploadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmUploadAttachmentForRecordFunction;
|
|
121
121
|
/**
|
|
122
122
|
* Configured pass-through for {@link zohoCrmDownloadAttachmentForRecord}.
|
|
123
123
|
*
|
|
124
|
-
* @returns
|
|
124
|
+
* @returns Bound download attachment function.
|
|
125
125
|
*/
|
|
126
126
|
get downloadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmDownloadAttachmentForRecordFunction;
|
|
127
127
|
/**
|
|
128
128
|
* Configured pass-through for {@link zohoCrmDeleteAttachmentFromRecord}.
|
|
129
129
|
*
|
|
130
|
-
* @returns
|
|
130
|
+
* @returns Bound delete attachment function.
|
|
131
131
|
*/
|
|
132
132
|
get deleteAttachmentFromRecord(): import("@dereekb/zoho").ZohoCrmDeleteAttachmentFromRecordFunction;
|
|
133
133
|
/**
|
|
134
134
|
* Configured pass-through for {@link zohoCrmCreateNotes}.
|
|
135
135
|
*
|
|
136
|
-
* @returns
|
|
136
|
+
* @returns Bound create notes function.
|
|
137
137
|
*/
|
|
138
138
|
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>>;
|
|
139
139
|
/**
|
|
140
140
|
* Configured pass-through for {@link zohoCrmDeleteNotes}.
|
|
141
141
|
*
|
|
142
|
-
* @returns
|
|
142
|
+
* @returns Bound delete notes function.
|
|
143
143
|
*/
|
|
144
144
|
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>>;
|
|
145
145
|
/**
|
|
146
146
|
* Configured pass-through for {@link zohoCrmCreateNotesForRecord}.
|
|
147
147
|
*
|
|
148
|
-
* @returns
|
|
148
|
+
* @returns Bound create notes for record function.
|
|
149
149
|
*/
|
|
150
150
|
get createNotesForRecord(): import("@dereekb/zoho").ZohoCrmCreateNotesForRecordFunction;
|
|
151
151
|
/**
|
|
152
152
|
* Configured pass-through for {@link zohoCrmGetNotesForRecord}.
|
|
153
153
|
*
|
|
154
|
-
* @returns
|
|
154
|
+
* @returns Bound get notes for record function.
|
|
155
155
|
*/
|
|
156
156
|
get getNotesForRecord(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordFunction;
|
|
157
157
|
/**
|
|
158
158
|
* Configured pass-through for {@link zohoCrmGetNotesForRecordPageFactory}.
|
|
159
159
|
*
|
|
160
|
-
* @returns
|
|
160
|
+
* @returns Bound get notes page factory function.
|
|
161
161
|
*/
|
|
162
162
|
get getNotesForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordPageFactory;
|
|
163
163
|
/**
|
|
164
164
|
* Configured pass-through for {@link zohoCrmExecuteRestApiFunction}.
|
|
165
165
|
*
|
|
166
|
-
* @returns
|
|
166
|
+
* @returns Bound execute REST API function.
|
|
167
167
|
*/
|
|
168
168
|
get executeRestApiFunction(): import("@dereekb/zoho").ZohoCrmExecuteRestApiFunctionFunction;
|
|
169
169
|
/**
|
|
170
170
|
* Configured pass-through for {@link zohoCrmCreateTagsForModule}.
|
|
171
171
|
*
|
|
172
|
-
* @returns
|
|
172
|
+
* @returns Bound create tags for module function.
|
|
173
173
|
*/
|
|
174
174
|
get createTagsForModule(): (input: import("@dereekb/zoho").ZohoCrmCreateTagsRequest) => Promise<{
|
|
175
175
|
errorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
|
|
@@ -180,25 +180,25 @@ export declare class ZohoCrmApi {
|
|
|
180
180
|
/**
|
|
181
181
|
* Configured pass-through for {@link zohoCrmDeleteTag}.
|
|
182
182
|
*
|
|
183
|
-
* @returns
|
|
183
|
+
* @returns Bound delete tag function.
|
|
184
184
|
*/
|
|
185
185
|
get deleteTag(): import("@dereekb/zoho").ZohoCrmDeleteTagFunction;
|
|
186
186
|
/**
|
|
187
187
|
* Configured pass-through for {@link zohoCrmGetTagsForModule}.
|
|
188
188
|
*
|
|
189
|
-
* @returns
|
|
189
|
+
* @returns Bound get tags for module function.
|
|
190
190
|
*/
|
|
191
191
|
get getTagsForModule(): import("@dereekb/zoho").ZohoCrmGetTagsFunction;
|
|
192
192
|
/**
|
|
193
193
|
* Configured pass-through for {@link zohoCrmAddTagsToRecords}.
|
|
194
194
|
*
|
|
195
|
-
* @returns
|
|
195
|
+
* @returns Bound add tags to records function.
|
|
196
196
|
*/
|
|
197
197
|
get addTagsToRecords(): import("@dereekb/zoho").ZohoCrmAddTagsToRecordsFunction;
|
|
198
198
|
/**
|
|
199
199
|
* Configured pass-through for {@link zohoCrmRemoveTagsFromRecords}.
|
|
200
200
|
*
|
|
201
|
-
* @returns
|
|
201
|
+
* @returns Bound remove tags from records function.
|
|
202
202
|
*/
|
|
203
203
|
get removeTagsFromRecords(): import("@dereekb/zoho").ZohoCrmRemoveTagsFromRecordsFunction;
|
|
204
204
|
}
|
|
@@ -21,7 +21,7 @@ export declare abstract class ZohoCrmServiceConfig {
|
|
|
21
21
|
/**
|
|
22
22
|
* Validates that the required Zoho CRM connection fields are present and well-formed.
|
|
23
23
|
*
|
|
24
|
-
* @param config -
|
|
24
|
+
* @param config - The CRM service config to validate.
|
|
25
25
|
*/
|
|
26
26
|
static assertValidConfig(config: ZohoCrmServiceConfig): void;
|
|
27
27
|
}
|
|
@@ -10,9 +10,9 @@ import { type Maybe } from '@dereekb/util';
|
|
|
10
10
|
* Resolves the API URL via environment variables following the naming convention
|
|
11
11
|
* `ZOHO_CRM_API_URL` (service-specific) or `ZOHO_API_URL` (shared fallback).
|
|
12
12
|
*
|
|
13
|
-
* @param configService - NestJS config service populated with Zoho environment variables
|
|
14
|
-
* @returns Validated Zoho CRM service configuration
|
|
15
|
-
* @throws {Error} If required config values (e.g. API URL) are missing
|
|
13
|
+
* @param configService - NestJS config service populated with Zoho environment variables.
|
|
14
|
+
* @returns Validated Zoho CRM service configuration.
|
|
15
|
+
* @throws {Error} If required config values (e.g. API URL) are missing.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```typescript
|
|
@@ -28,8 +28,8 @@ export declare function zohoCrmServiceConfigFactory(configService: ConfigService
|
|
|
28
28
|
* Reads Zoho Accounts (OAuth) settings scoped to the CRM service from
|
|
29
29
|
* the NestJS ConfigService and returns an accounts service config.
|
|
30
30
|
*
|
|
31
|
-
* @param configService - NestJS config service populated with Zoho OAuth environment variables
|
|
32
|
-
* @returns Zoho Accounts service config scoped to the CRM service access token
|
|
31
|
+
* @param configService - NestJS config service populated with Zoho OAuth environment variables.
|
|
32
|
+
* @returns Zoho Accounts service config scoped to the CRM service access token.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ```typescript
|
|
@@ -68,14 +68,10 @@ export interface ProvideAppZohoCrmMetadataConfig extends Pick<ModuleMetadata, 'i
|
|
|
68
68
|
* exports {@link ZohoCrmApi} by default. Additional imports, exports, and providers
|
|
69
69
|
* from the config are merged in.
|
|
70
70
|
*
|
|
71
|
-
* @param config - Module configuration with optional dependency module and extra metadata
|
|
71
|
+
* @param config - Module configuration with optional dependency module and extra metadata.
|
|
72
72
|
* @returns Complete NestJS module metadata ready to pass to `@Module()`
|
|
73
73
|
*
|
|
74
|
-
* @
|
|
75
|
-
* ```typescript
|
|
76
|
-
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
77
|
-
*
|
|
78
|
-
* @Module({
|
|
74
|
+
* @Module ({
|
|
79
75
|
* providers: [
|
|
80
76
|
* {
|
|
81
77
|
* provide: ZohoAccountsAccessTokenCacheService,
|
|
@@ -85,9 +81,12 @@ export interface ProvideAppZohoCrmMetadataConfig extends Pick<ModuleMetadata, 'i
|
|
|
85
81
|
* exports: [ZohoAccountsAccessTokenCacheService]
|
|
86
82
|
* })
|
|
87
83
|
* export class ZohoCrmDependencyModule {}
|
|
88
|
-
*
|
|
89
|
-
* @Module(appZohoCrmModuleMetadata({ dependencyModule: ZohoCrmDependencyModule }))
|
|
84
|
+
* @Module (appZohoCrmModuleMetadata({ dependencyModule: ZohoCrmDependencyModule }))
|
|
90
85
|
* export class AppZohoCrmModule {}
|
|
91
86
|
* ```
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```typescript
|
|
90
|
+
* const cacheService = fileZohoAccountsAccessTokenCacheService();
|
|
92
91
|
*/
|
|
93
92
|
export declare function appZohoCrmModuleMetadata(config: ProvideAppZohoCrmMetadataConfig): ModuleMetadata;
|