@dereekb/zoho 13.4.0 → 13.4.2
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 +272 -92
- package/index.esm.js +272 -93
- package/nestjs/index.cjs.js +404 -90
- package/nestjs/index.esm.js +404 -90
- package/nestjs/package.json +4 -4
- package/nestjs/src/lib/accounts/accounts.service.d.ts +14 -2
- package/nestjs/src/lib/crm/crm.api.d.ts +142 -27
- package/nestjs/src/lib/crm/crm.config.d.ts +2 -0
- package/nestjs/src/lib/recruit/recruit.api.d.ts +162 -31
- package/nestjs/src/lib/recruit/recruit.config.d.ts +2 -0
- package/nestjs/src/lib/sign/sign.api.d.ts +67 -12
- package/nestjs/src/lib/sign/webhook/webhook.zoho.sign.d.ts +3 -0
- package/nestjs/src/lib/zoho.config.d.ts +26 -2
- package/package.json +3 -3
- package/src/lib/accounts/accounts.api.d.ts +9 -5
- package/src/lib/accounts/accounts.config.d.ts +12 -2
- package/src/lib/accounts/accounts.d.ts +6 -3
- package/src/lib/accounts/accounts.error.api.d.ts +13 -0
- package/src/lib/accounts/accounts.factory.d.ts +2 -2
- package/src/lib/crm/crm.api.d.ts +13 -0
- package/src/lib/crm/crm.api.notes.d.ts +15 -0
- package/src/lib/crm/crm.api.tags.d.ts +17 -8
- package/src/lib/crm/crm.config.d.ts +9 -2
- package/src/lib/crm/crm.d.ts +12 -12
- package/src/lib/crm/crm.error.api.d.ts +14 -0
- package/src/lib/crm/crm.factory.d.ts +3 -3
- package/src/lib/crm/crm.notes.d.ts +23 -23
- package/src/lib/crm/crm.tags.d.ts +3 -3
- package/src/lib/recruit/recruit.api.candidates.d.ts +19 -0
- package/src/lib/recruit/recruit.api.d.ts +10 -0
- package/src/lib/recruit/recruit.config.d.ts +9 -2
- package/src/lib/recruit/recruit.d.ts +12 -12
- package/src/lib/recruit/recruit.error.api.d.ts +14 -0
- package/src/lib/recruit/recruit.factory.d.ts +3 -3
- package/src/lib/sign/sign.config.d.ts +12 -2
- package/src/lib/sign/sign.d.ts +14 -14
- package/src/lib/sign/sign.error.api.d.ts +13 -0
- package/src/lib/sign/sign.factory.d.ts +3 -3
- package/src/lib/zoho.error.api.d.ts +25 -8
- package/src/lib/zoho.limit.d.ts +8 -1
package/nestjs/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/nestjs",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/nestjs": "13.4.
|
|
6
|
-
"@dereekb/util": "13.4.
|
|
7
|
-
"@dereekb/zoho": "13.4.
|
|
5
|
+
"@dereekb/nestjs": "13.4.2",
|
|
6
|
+
"@dereekb/util": "13.4.2",
|
|
7
|
+
"@dereekb/zoho": "13.4.2",
|
|
8
8
|
"@nestjs/common": "^11.1.16",
|
|
9
9
|
"@nestjs/config": "^4.0.3",
|
|
10
10
|
"express": "^5.0.0"
|
|
@@ -13,6 +13,11 @@ export declare abstract class ZohoAccountsAccessTokenCacheService {
|
|
|
13
13
|
abstract loadZohoAccessTokenCache(service: ZohoServiceAccessTokenKey): ZohoAccessTokenCache;
|
|
14
14
|
}
|
|
15
15
|
export type LogMergeZohoAccountsAccessTokenCacheServiceErrorFunction = (failedUpdates: (readonly [ZohoAccessTokenCache, unknown])[]) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Default error logging function for merged Zoho access token cache services.
|
|
18
|
+
*
|
|
19
|
+
* @param failedUpdates - array of cache/error tuples that failed during update
|
|
20
|
+
*/
|
|
16
21
|
export declare function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction(failedUpdates: (readonly [ZohoAccessTokenCache, unknown])[]): void;
|
|
17
22
|
/**
|
|
18
23
|
* Merges the input services in order to use some as a backup source.
|
|
@@ -22,12 +27,17 @@ export declare function logMergeZohoAccountsAccessTokenCacheServiceErrorFunction
|
|
|
22
27
|
* When updating a cached token, it will update the token across all services.
|
|
23
28
|
*
|
|
24
29
|
* @param servicesToMerge Must include atleast one service. Empty arrays will throw an error.
|
|
30
|
+
* @param inputServicesToMerge - cache services to merge in priority order
|
|
31
|
+
* @param logError - optional error logging toggle or custom logging function
|
|
32
|
+
* @returns a merged ZohoAccountsAccessTokenCacheService that delegates across all inputs
|
|
25
33
|
*/
|
|
26
34
|
export declare function mergeZohoAccountsAccessTokenCacheServices(inputServicesToMerge: ZohoAccountsAccessTokenCacheService[], logError?: Maybe<boolean | LogMergeZohoAccountsAccessTokenCacheServiceErrorFunction>): ZohoAccountsAccessTokenCacheService;
|
|
27
35
|
/**
|
|
28
36
|
* Creates a ZohoAccountsAccessTokenCacheService that uses in-memory storage.
|
|
29
37
|
*
|
|
30
|
-
* @
|
|
38
|
+
* @param existingCache - optional pre-populated token cache record to use as initial state
|
|
39
|
+
* @param logAccessToConsole - whether to log cache reads and writes to the console
|
|
40
|
+
* @returns a ZohoAccountsAccessTokenCacheService backed by in-memory storage
|
|
31
41
|
*/
|
|
32
42
|
export declare function memoryZohoAccountsAccessTokenCacheService(existingCache?: ZohoAccountsAccessTokenCacheRecord, logAccessToConsole?: boolean): ZohoAccountsAccessTokenCacheService;
|
|
33
43
|
export interface FileSystemZohoAccountsAccessTokenCacheService extends ZohoAccountsAccessTokenCacheService {
|
|
@@ -41,6 +51,8 @@ export declare const DEFAULT_FILE_ZOHO_ACCOUNTS_ACCESS_TOKEN_CACHE_SERVICE_PATH
|
|
|
41
51
|
*
|
|
42
52
|
* Useful for testing.
|
|
43
53
|
*
|
|
44
|
-
* @
|
|
54
|
+
* @param filename - path to the JSON file used for token persistence
|
|
55
|
+
* @param useMemoryCache - whether to also cache tokens in memory for faster reads
|
|
56
|
+
* @returns a FileSystemZohoAccountsAccessTokenCacheService backed by file storage
|
|
45
57
|
*/
|
|
46
58
|
export declare function fileZohoAccountsAccessTokenCacheService(filename?: string, useMemoryCache?: boolean): FileSystemZohoAccountsAccessTokenCacheService;
|
|
@@ -16,74 +16,189 @@ export declare class ZohoCrmApi {
|
|
|
16
16
|
readonly zohoCrm: ZohoCrm;
|
|
17
17
|
/**
|
|
18
18
|
* The authenticated CRM context used by all operation accessors.
|
|
19
|
+
*
|
|
20
|
+
* @returns the CRM context from the underlying client
|
|
19
21
|
*/
|
|
20
22
|
get crmContext(): ZohoCrmContext;
|
|
21
23
|
/**
|
|
22
24
|
* Rate limiter shared across all CRM requests to respect Zoho API quotas.
|
|
25
|
+
*
|
|
26
|
+
* @returns the shared rate limiter instance
|
|
23
27
|
*/
|
|
24
28
|
get zohoRateLimiter(): import("@dereekb/util").ResetPeriodPromiseRateLimiter;
|
|
25
29
|
/**
|
|
26
30
|
* Initializes the CRM client by combining the service config with the
|
|
27
31
|
* accounts context for OAuth token management.
|
|
32
|
+
*
|
|
33
|
+
* @param config - Zoho CRM service configuration
|
|
34
|
+
* @param zohoAccountsApi - accounts API used for OAuth token management
|
|
28
35
|
*/
|
|
29
36
|
constructor(config: ZohoCrmServiceConfig, zohoAccountsApi: ZohoAccountsApi);
|
|
30
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Configured pass-through for {@link zohoCrmInsertRecord}.
|
|
39
|
+
*
|
|
40
|
+
* @returns bound insert record function
|
|
41
|
+
*/
|
|
31
42
|
get insertRecord(): import("@dereekb/zoho").ZohoCrmCreateRecordLikeFunction;
|
|
32
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Configured pass-through for {@link zohoCrmUpsertRecord}.
|
|
45
|
+
*
|
|
46
|
+
* @returns bound upsert record function
|
|
47
|
+
*/
|
|
33
48
|
get upsertRecord(): import("@dereekb/zoho").ZohoCrmUpsertRecordLikeFunction;
|
|
34
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Configured pass-through for {@link zohoCrmUpdateRecord}.
|
|
51
|
+
*
|
|
52
|
+
* @returns bound update record function
|
|
53
|
+
*/
|
|
35
54
|
get updateRecord(): import("@dereekb/zoho").ZohoCrmUpdateRecordLikeFunction;
|
|
36
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Configured pass-through for {@link zohoCrmDeleteRecord}.
|
|
57
|
+
*
|
|
58
|
+
* @returns bound delete record function
|
|
59
|
+
*/
|
|
37
60
|
get deleteRecord(): import("@dereekb/zoho").ZohoCrmDeleteRecordFunction;
|
|
38
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Configured pass-through for {@link zohoCrmGetRecordById}.
|
|
63
|
+
*
|
|
64
|
+
* @returns bound get record by ID function
|
|
65
|
+
*/
|
|
39
66
|
get getRecordById(): import("@dereekb/zoho").ZohoCrmGetRecordByIdFunction;
|
|
40
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Configured pass-through for {@link zohoCrmGetRecords}.
|
|
69
|
+
*
|
|
70
|
+
* @returns bound get records function
|
|
71
|
+
*/
|
|
41
72
|
get getRecords(): import("@dereekb/zoho").ZohoCrmGetRecordsFunction;
|
|
42
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Configured pass-through for {@link zohoCrmSearchRecords}.
|
|
75
|
+
*
|
|
76
|
+
* @returns bound search records function
|
|
77
|
+
*/
|
|
43
78
|
get searchRecords(): import("@dereekb/zoho").ZohoCrmSearchRecordsFunction;
|
|
44
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Configured pass-through for {@link zohoCrmSearchRecordsPageFactory}.
|
|
81
|
+
*
|
|
82
|
+
* @returns bound search records page factory function
|
|
83
|
+
*/
|
|
45
84
|
get searchRecordsPageFactory(): import("@dereekb/zoho").ZohoCrmSearchRecordsPageFactory;
|
|
46
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Configured pass-through for {@link zohoCrmGetRelatedRecordsFunctionFactory}.
|
|
87
|
+
*
|
|
88
|
+
* @returns bound get related records factory function
|
|
89
|
+
*/
|
|
47
90
|
get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoCrmGetRelatedRecordsFunctionFactory;
|
|
48
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Configured pass-through for {@link zohoCrmGetEmailsForRecord}.
|
|
93
|
+
*
|
|
94
|
+
* @returns bound get emails for record function
|
|
95
|
+
*/
|
|
49
96
|
get getEmailsForRecord(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordFunction;
|
|
50
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Configured pass-through for {@link zohoCrmGetEmailsForRecordPageFactory}.
|
|
99
|
+
*
|
|
100
|
+
* @returns bound get emails page factory function
|
|
101
|
+
*/
|
|
51
102
|
get getEmailsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetEmailsForRecordPageFactory;
|
|
52
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecord}.
|
|
105
|
+
*
|
|
106
|
+
* @returns bound get attachments for record function
|
|
107
|
+
*/
|
|
53
108
|
get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordFunction;
|
|
54
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Configured pass-through for {@link zohoCrmGetAttachmentsForRecordPageFactory}.
|
|
111
|
+
*
|
|
112
|
+
* @returns bound get attachments page factory function
|
|
113
|
+
*/
|
|
55
114
|
get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetAttachmentsForRecordPageFactory;
|
|
56
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Configured pass-through for {@link zohoCrmUploadAttachmentForRecord}.
|
|
117
|
+
*
|
|
118
|
+
* @returns bound upload attachment function
|
|
119
|
+
*/
|
|
57
120
|
get uploadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmUploadAttachmentForRecordFunction;
|
|
58
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Configured pass-through for {@link zohoCrmDownloadAttachmentForRecord}.
|
|
123
|
+
*
|
|
124
|
+
* @returns bound download attachment function
|
|
125
|
+
*/
|
|
59
126
|
get downloadAttachmentForRecord(): import("@dereekb/zoho").ZohoCrmDownloadAttachmentForRecordFunction;
|
|
60
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Configured pass-through for {@link zohoCrmDeleteAttachmentFromRecord}.
|
|
129
|
+
*
|
|
130
|
+
* @returns bound delete attachment function
|
|
131
|
+
*/
|
|
61
132
|
get deleteAttachmentFromRecord(): import("@dereekb/zoho").ZohoCrmDeleteAttachmentFromRecordFunction;
|
|
62
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Configured pass-through for {@link zohoCrmCreateNotes}.
|
|
135
|
+
*
|
|
136
|
+
* @returns bound create notes function
|
|
137
|
+
*/
|
|
63
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>>;
|
|
64
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* Configured pass-through for {@link zohoCrmDeleteNotes}.
|
|
141
|
+
*
|
|
142
|
+
* @returns bound delete notes function
|
|
143
|
+
*/
|
|
65
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>>;
|
|
66
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Configured pass-through for {@link zohoCrmCreateNotesForRecord}.
|
|
147
|
+
*
|
|
148
|
+
* @returns bound create notes for record function
|
|
149
|
+
*/
|
|
67
150
|
get createNotesForRecord(): import("@dereekb/zoho").ZohoCrmCreateNotesForRecordFunction;
|
|
68
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Configured pass-through for {@link zohoCrmGetNotesForRecord}.
|
|
153
|
+
*
|
|
154
|
+
* @returns bound get notes for record function
|
|
155
|
+
*/
|
|
69
156
|
get getNotesForRecord(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordFunction;
|
|
70
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Configured pass-through for {@link zohoCrmGetNotesForRecordPageFactory}.
|
|
159
|
+
*
|
|
160
|
+
* @returns bound get notes page factory function
|
|
161
|
+
*/
|
|
71
162
|
get getNotesForRecordPageFactory(): import("@dereekb/zoho").ZohoCrmGetNotesForRecordPageFactory;
|
|
72
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Configured pass-through for {@link zohoCrmExecuteRestApiFunction}.
|
|
165
|
+
*
|
|
166
|
+
* @returns bound execute REST API function
|
|
167
|
+
*/
|
|
73
168
|
get executeRestApiFunction(): import("@dereekb/zoho").ZohoCrmExecuteRestApiFunctionFunction;
|
|
74
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Configured pass-through for {@link zohoCrmCreateTagsForModule}.
|
|
171
|
+
*
|
|
172
|
+
* @returns bound create tags for module function
|
|
173
|
+
*/
|
|
75
174
|
get createTagsForModule(): (input: import("@dereekb/zoho").ZohoCrmCreateTagsRequest) => Promise<{
|
|
76
175
|
errorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
|
|
77
176
|
duplicateErrorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
|
|
78
177
|
allErrorItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseErrorEntry>[];
|
|
79
178
|
successItems: import("@dereekb/zoho").ZohoCrmMultiRecordResultEntry<import("@dereekb/zoho").ZohoCrmCreateTagData, import("@dereekb/zoho").ZohoCrmChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoCrmChangeObjectDetails>>[];
|
|
80
179
|
}>;
|
|
81
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Configured pass-through for {@link zohoCrmDeleteTag}.
|
|
182
|
+
*
|
|
183
|
+
* @returns bound delete tag function
|
|
184
|
+
*/
|
|
82
185
|
get deleteTag(): import("@dereekb/zoho").ZohoCrmDeleteTagFunction;
|
|
83
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Configured pass-through for {@link zohoCrmGetTagsForModule}.
|
|
188
|
+
*
|
|
189
|
+
* @returns bound get tags for module function
|
|
190
|
+
*/
|
|
84
191
|
get getTagsForModule(): import("@dereekb/zoho").ZohoCrmGetTagsFunction;
|
|
85
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* Configured pass-through for {@link zohoCrmAddTagsToRecords}.
|
|
194
|
+
*
|
|
195
|
+
* @returns bound add tags to records function
|
|
196
|
+
*/
|
|
86
197
|
get addTagsToRecords(): import("@dereekb/zoho").ZohoCrmAddTagsToRecordsFunction;
|
|
87
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Configured pass-through for {@link zohoCrmRemoveTagsFromRecords}.
|
|
200
|
+
*
|
|
201
|
+
* @returns bound remove tags from records function
|
|
202
|
+
*/
|
|
88
203
|
get removeTagsFromRecords(): import("@dereekb/zoho").ZohoCrmRemoveTagsFromRecordsFunction;
|
|
89
204
|
}
|
|
@@ -20,6 +20,8 @@ export declare abstract class ZohoCrmServiceConfig {
|
|
|
20
20
|
readonly factoryConfig?: ZohoCrmFactoryConfig;
|
|
21
21
|
/**
|
|
22
22
|
* Validates that the required Zoho CRM connection fields are present and well-formed.
|
|
23
|
+
*
|
|
24
|
+
* @param config - the CRM service config to validate
|
|
23
25
|
*/
|
|
24
26
|
static assertValidConfig(config: ZohoCrmServiceConfig): void;
|
|
25
27
|
}
|
|
@@ -16,82 +16,213 @@ export declare class ZohoRecruitApi {
|
|
|
16
16
|
readonly zohoRecruit: ZohoRecruit;
|
|
17
17
|
/**
|
|
18
18
|
* The authenticated Recruit context used by all operation accessors.
|
|
19
|
+
*
|
|
20
|
+
* @returns the Recruit context from the underlying client
|
|
19
21
|
*/
|
|
20
22
|
get recruitContext(): ZohoRecruitContext;
|
|
21
23
|
/**
|
|
22
24
|
* Rate limiter shared across all Recruit requests to respect Zoho API quotas.
|
|
25
|
+
*
|
|
26
|
+
* @returns the shared rate limiter instance
|
|
23
27
|
*/
|
|
24
28
|
get zohoRateLimiter(): import("@dereekb/util").ResetPeriodPromiseRateLimiter;
|
|
25
29
|
/**
|
|
26
30
|
* Initializes the Recruit client by combining the service config with the
|
|
27
31
|
* accounts context for OAuth token management.
|
|
32
|
+
*
|
|
33
|
+
* @param config - Zoho Recruit service configuration
|
|
34
|
+
* @param zohoAccountsApi - accounts API used for OAuth token management
|
|
28
35
|
*/
|
|
29
36
|
constructor(config: ZohoRecruitServiceConfig, zohoAccountsApi: ZohoAccountsApi);
|
|
30
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Configured pass-through for {@link zohoRecruitInsertRecord}.
|
|
39
|
+
*
|
|
40
|
+
* @returns bound insert record function
|
|
41
|
+
*/
|
|
31
42
|
get insertRecord(): import("@dereekb/zoho").ZohoRecruitCreateRecordLikeFunction;
|
|
32
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Configured pass-through for {@link zohoRecruitUpsertRecord}.
|
|
45
|
+
*
|
|
46
|
+
* @returns bound upsert record function
|
|
47
|
+
*/
|
|
33
48
|
get upsertRecord(): import("@dereekb/zoho").ZohoRecruitUpsertRecordLikeFunction;
|
|
34
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Configured pass-through for {@link zohoRecruitUpdateRecord}.
|
|
51
|
+
*
|
|
52
|
+
* @returns bound update record function
|
|
53
|
+
*/
|
|
35
54
|
get updateRecord(): import("@dereekb/zoho").ZohoRecruitUpdateRecordLikeFunction;
|
|
36
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Configured pass-through for {@link zohoRecruitDeleteRecord}.
|
|
57
|
+
*
|
|
58
|
+
* @returns bound delete record function
|
|
59
|
+
*/
|
|
37
60
|
get deleteRecord(): import("@dereekb/zoho").ZohoRecruitDeleteRecordFunction;
|
|
38
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Configured pass-through for {@link zohoRecruitGetRecordById}.
|
|
63
|
+
*
|
|
64
|
+
* @returns bound get record by ID function
|
|
65
|
+
*/
|
|
39
66
|
get getRecordById(): import("@dereekb/zoho").ZohoRecruitGetRecordByIdFunction;
|
|
40
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Configured pass-through for {@link zohoRecruitGetRecords}.
|
|
69
|
+
*
|
|
70
|
+
* @returns bound get records function
|
|
71
|
+
*/
|
|
41
72
|
get getRecords(): import("@dereekb/zoho").ZohoRecruitGetRecordsFunction;
|
|
42
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Configured pass-through for {@link zohoRecruitSearchRecords}.
|
|
75
|
+
*
|
|
76
|
+
* @returns bound search records function
|
|
77
|
+
*/
|
|
43
78
|
get searchRecords(): import("@dereekb/zoho").ZohoRecruitSearchRecordsFunction;
|
|
44
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Configured pass-through for {@link zohoRecruitSearchRecordsPageFactory}.
|
|
81
|
+
*
|
|
82
|
+
* @returns bound search records page factory function
|
|
83
|
+
*/
|
|
45
84
|
get searchRecordsPageFactory(): import("@dereekb/zoho").ZohoRecruitSearchRecordsPageFactory;
|
|
46
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Configured pass-through for {@link zohoRecruitGetRelatedRecordsFunctionFactory}.
|
|
87
|
+
*
|
|
88
|
+
* @returns bound get related records factory function
|
|
89
|
+
*/
|
|
47
90
|
get getRelatedRecordsFunctionFactory(): import("@dereekb/zoho").ZohoRecruitGetRelatedRecordsFunctionFactory;
|
|
48
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Configured pass-through for {@link zohoRecruitGetEmailsForRecord}.
|
|
93
|
+
*
|
|
94
|
+
* @returns bound get emails for record function
|
|
95
|
+
*/
|
|
49
96
|
get getEmailsForRecord(): import("@dereekb/zoho").ZohoRecruitGetEmailsForRecordFunction;
|
|
50
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Configured pass-through for {@link zohoRecruitGetEmailsForRecordPageFactory}.
|
|
99
|
+
*
|
|
100
|
+
* @returns bound get emails page factory function
|
|
101
|
+
*/
|
|
51
102
|
get getEmailsForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetEmailsForRecordPageFactory;
|
|
52
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecord}.
|
|
105
|
+
*
|
|
106
|
+
* @returns bound get attachments for record function
|
|
107
|
+
*/
|
|
53
108
|
get getAttachmentsForRecord(): import("@dereekb/zoho").ZohoRecruitGetAttachmentsForRecordFunction;
|
|
54
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Configured pass-through for {@link zohoRecruitGetAttachmentsForRecordPageFactory}.
|
|
111
|
+
*
|
|
112
|
+
* @returns bound get attachments page factory function
|
|
113
|
+
*/
|
|
55
114
|
get getAttachmentsForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetAttachmentsForRecordPageFactory;
|
|
56
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Configured pass-through for {@link zohoRecruitUploadAttachmentForRecord}.
|
|
117
|
+
*
|
|
118
|
+
* @returns bound upload attachment function
|
|
119
|
+
*/
|
|
57
120
|
get uploadAttachmentForRecord(): import("@dereekb/zoho").ZohoRecruitUploadAttachmentForRecordFunction;
|
|
58
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Configured pass-through for {@link zohoRecruitDownloadAttachmentForRecord}.
|
|
123
|
+
*
|
|
124
|
+
* @returns bound download attachment function
|
|
125
|
+
*/
|
|
59
126
|
get downloadAttachmentForRecord(): import("@dereekb/zoho").ZohoRecruitDownloadAttachmentForRecordFunction;
|
|
60
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Configured pass-through for {@link zohoRecruitDeleteAttachmentFromRecord}.
|
|
129
|
+
*
|
|
130
|
+
* @returns bound delete attachment function
|
|
131
|
+
*/
|
|
61
132
|
get deleteAttachmentFromRecord(): import("@dereekb/zoho").ZohoRecruitDeleteAttachmentFromRecordFunction;
|
|
62
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Configured pass-through for {@link zohoRecruitCreateNotes}.
|
|
135
|
+
*
|
|
136
|
+
* @returns bound create notes function
|
|
137
|
+
*/
|
|
63
138
|
get createNotes(): (input: import("@dereekb/zoho").ZohoRecruitCreateNotesRequest) => Promise<import("@dereekb/zoho").ZohoRecruitMultiRecordResult<import("@dereekb/zoho").NewZohoRecruitNoteData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>>;
|
|
64
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* Configured pass-through for {@link zohoRecruitDeleteNotes}.
|
|
141
|
+
*
|
|
142
|
+
* @returns bound delete notes function
|
|
143
|
+
*/
|
|
65
144
|
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>>;
|
|
66
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Configured pass-through for {@link zohoRecruitCreateNotesForRecord}.
|
|
147
|
+
*
|
|
148
|
+
* @returns bound create notes for record function
|
|
149
|
+
*/
|
|
67
150
|
get createNotesForRecord(): import("@dereekb/zoho").ZohoRecruitCreateNotesForRecordFunction;
|
|
68
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Configured pass-through for {@link zohoRecruitGetNotesForRecord}.
|
|
153
|
+
*
|
|
154
|
+
* @returns bound get notes for record function
|
|
155
|
+
*/
|
|
69
156
|
get getNotesForRecord(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordFunction;
|
|
70
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Configured pass-through for {@link zohoRecruitGetNotesForRecordPageFactory}.
|
|
159
|
+
*
|
|
160
|
+
* @returns bound get notes page factory function
|
|
161
|
+
*/
|
|
71
162
|
get getNotesForRecordPageFactory(): import("@dereekb/zoho").ZohoRecruitGetNotesForRecordPageFactory;
|
|
72
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Configured pass-through for {@link zohoRecruitExecuteRestApiFunction}.
|
|
165
|
+
*
|
|
166
|
+
* @returns bound execute REST API function
|
|
167
|
+
*/
|
|
73
168
|
get executeRestApiFunction(): import("@dereekb/zoho").ZohoRecruitExecuteRestApiFunctionFunction;
|
|
74
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Configured pass-through for {@link zohoRecruitAssociateCandidateRecordsWithJobOpenings}.
|
|
171
|
+
*
|
|
172
|
+
* @returns bound associate candidates with job openings function
|
|
173
|
+
*/
|
|
75
174
|
get associateCandidateRecordsWithJobOpenings(): import("@dereekb/zoho").ZohoRecruitAssociateCandidateRecordsWithJobOpeningsFunction;
|
|
76
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecords}.
|
|
177
|
+
*
|
|
178
|
+
* @returns bound search candidate associated job openings function
|
|
179
|
+
*/
|
|
77
180
|
get searchCandidateAssociatedJobOpeningRecords(): import("@dereekb/zoho").ZohoRecruitSearchCandidateAssociatedJobOpeningRecordsFunction<import("@dereekb/zoho").ZohoRecruitRecord>;
|
|
78
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Configured pass-through for {@link zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory}.
|
|
183
|
+
*
|
|
184
|
+
* @returns bound search candidate job openings page factory function
|
|
185
|
+
*/
|
|
79
186
|
get searchCandidateAssociatedJobOpeningRecordsPageFactory(): import("@dereekb/util/fetch").FetchPageFactory<import("@dereekb/zoho").ZohoRecruitSearchCandidateAssociatedJobOpeningRecordsInput, import("@dereekb/zoho").ZohoRecruitSearchAssociatedRecordsResponse<import("@dereekb/zoho").ZohoRecruitRecord>>;
|
|
80
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecords}.
|
|
189
|
+
*
|
|
190
|
+
* @returns bound search job opening associated candidates function
|
|
191
|
+
*/
|
|
81
192
|
get searchJobOpeningAssociatedCandidateRecords(): import("@dereekb/zoho").ZohoRecruitSearchJobOpeningAssociatedCandidateRecordsFunction<import("@dereekb/zoho").ZohoRecruitRecord>;
|
|
82
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Configured pass-through for {@link zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory}.
|
|
195
|
+
*
|
|
196
|
+
* @returns bound search job opening candidates page factory function
|
|
197
|
+
*/
|
|
83
198
|
get searchJobOpeningAssociatedCandidateRecordsPageFactory(): import("@dereekb/util/fetch").FetchPageFactory<import("@dereekb/zoho").ZohoRecruitSearchJobOpeningAssociatedCandidateRecordsInput, import("@dereekb/zoho").ZohoRecruitSearchAssociatedRecordsResponse<import("@dereekb/zoho").ZohoRecruitRecord>>;
|
|
84
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Configured pass-through for {@link zohoRecruitCreateTagsForModule}.
|
|
201
|
+
*
|
|
202
|
+
* @returns bound create tags for module function
|
|
203
|
+
*/
|
|
85
204
|
get createTagsForModule(): (input: import("@dereekb/zoho").ZohoRecruitCreateTagsRequest) => Promise<{
|
|
86
205
|
errorItems: import("@dereekb/zoho").ZohoRecruitMultiRecordResultEntry<import("@dereekb/zoho").ZohoRecruitCreateTagData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>[];
|
|
87
206
|
duplicateErrorItems: import("@dereekb/zoho").ZohoRecruitMultiRecordResultEntry<import("@dereekb/zoho").ZohoRecruitCreateTagData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>[];
|
|
88
207
|
allErrorItems: import("@dereekb/zoho").ZohoRecruitMultiRecordResultEntry<import("@dereekb/zoho").ZohoRecruitCreateTagData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseErrorEntry>[];
|
|
89
208
|
successItems: import("@dereekb/zoho").ZohoRecruitMultiRecordResultEntry<import("@dereekb/zoho").ZohoRecruitCreateTagData, import("@dereekb/zoho").ZohoRecruitChangeObjectResponseSuccessEntry<import("@dereekb/zoho").ZohoRecruitChangeObjectDetails>>[];
|
|
90
209
|
}>;
|
|
91
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Configured pass-through for {@link zohoRecruitGetTagsForModule}.
|
|
212
|
+
*
|
|
213
|
+
* @returns bound get tags for module function
|
|
214
|
+
*/
|
|
92
215
|
get getTagsForModule(): import("@dereekb/zoho").ZohoRecruitGetTagsFunction;
|
|
93
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* Configured pass-through for {@link zohoRecruitAddTagsToRecords}.
|
|
218
|
+
*
|
|
219
|
+
* @returns bound add tags to records function
|
|
220
|
+
*/
|
|
94
221
|
get addTagsToRecords(): import("@dereekb/zoho").ZohoRecruitAddTagsToRecordsFunction;
|
|
95
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* Configured pass-through for {@link zohoRecruitRemoveTagsFromRecords}.
|
|
224
|
+
*
|
|
225
|
+
* @returns bound remove tags from records function
|
|
226
|
+
*/
|
|
96
227
|
get removeTagsFromRecords(): import("@dereekb/zoho").ZohoRecruitRemoveTagsFromRecordsFunction;
|
|
97
228
|
}
|
|
@@ -20,6 +20,8 @@ export declare abstract class ZohoRecruitServiceConfig {
|
|
|
20
20
|
readonly factoryConfig?: ZohoRecruitFactoryConfig;
|
|
21
21
|
/**
|
|
22
22
|
* Validates that the required Zoho Recruit connection fields are present and well-formed.
|
|
23
|
+
*
|
|
24
|
+
* @param config - the Recruit service config to validate
|
|
23
25
|
*/
|
|
24
26
|
static assertValidConfig(config: ZohoRecruitServiceConfig): void;
|
|
25
27
|
}
|
|
@@ -16,39 +16,94 @@ export declare class ZohoSignApi {
|
|
|
16
16
|
readonly zohoSign: ZohoSign;
|
|
17
17
|
/**
|
|
18
18
|
* The authenticated Sign context used by all operation accessors.
|
|
19
|
+
*
|
|
20
|
+
* @returns the Sign context from the underlying client
|
|
19
21
|
*/
|
|
20
22
|
get signContext(): ZohoSignContext;
|
|
21
23
|
/**
|
|
22
24
|
* Rate limiter shared across all Sign requests to respect Zoho API quotas.
|
|
25
|
+
*
|
|
26
|
+
* @returns the shared rate limiter instance
|
|
23
27
|
*/
|
|
24
28
|
get zohoRateLimiter(): import("@dereekb/util").ResetPeriodPromiseRateLimiter;
|
|
25
29
|
/**
|
|
26
30
|
* Initializes the Sign client by combining the service config with the
|
|
27
31
|
* accounts context for OAuth token management.
|
|
32
|
+
*
|
|
33
|
+
* @param config - Zoho Sign service configuration
|
|
34
|
+
* @param zohoAccountsApi - accounts API used for OAuth token management
|
|
28
35
|
*/
|
|
29
36
|
constructor(config: ZohoSignServiceConfig, zohoAccountsApi: ZohoAccountsApi);
|
|
30
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Configured pass-through for {@link zohoSignGetDocument}.
|
|
39
|
+
*
|
|
40
|
+
* @returns bound get document function
|
|
41
|
+
*/
|
|
31
42
|
get getDocument(): import("@dereekb/zoho").ZohoSignGetDocumentFunction;
|
|
32
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Configured pass-through for {@link zohoSignGetDocuments}.
|
|
45
|
+
*
|
|
46
|
+
* @returns bound get documents function
|
|
47
|
+
*/
|
|
33
48
|
get getDocuments(): import("@dereekb/zoho").ZohoSignGetDocumentsFunction;
|
|
34
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Configured pass-through for {@link zohoSignGetDocumentsPageFactory}.
|
|
51
|
+
*
|
|
52
|
+
* @returns bound get documents page factory function
|
|
53
|
+
*/
|
|
35
54
|
get getDocumentsPageFactory(): import("@dereekb/util/fetch").FetchPageFactory<import("@dereekb/zoho").ZohoSignGetDocumentsInput, import("@dereekb/zoho").ZohoSignGetDocumentsResponse>;
|
|
36
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Configured pass-through for {@link zohoSignGetDocumentFormData}.
|
|
57
|
+
*
|
|
58
|
+
* @returns bound get document form data function
|
|
59
|
+
*/
|
|
37
60
|
get getDocumentFormData(): import("@dereekb/zoho").ZohoSignGetDocumentFormDataFunction;
|
|
38
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Configured pass-through for {@link zohoSignRetrieveFieldTypes}.
|
|
63
|
+
*
|
|
64
|
+
* @returns bound retrieve field types function
|
|
65
|
+
*/
|
|
39
66
|
get retrieveFieldTypes(): import("@dereekb/zoho").ZohoSignRetrieveFieldTypesFunction;
|
|
40
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Configured pass-through for {@link zohoSignDownloadPdf}.
|
|
69
|
+
*
|
|
70
|
+
* @returns bound download PDF function
|
|
71
|
+
*/
|
|
41
72
|
get downloadPdf(): import("@dereekb/zoho").ZohoSignDownloadPdfFunction;
|
|
42
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Configured pass-through for {@link zohoSignDownloadCompletionCertificate}.
|
|
75
|
+
*
|
|
76
|
+
* @returns bound download completion certificate function
|
|
77
|
+
*/
|
|
43
78
|
get downloadCompletionCertificate(): import("@dereekb/zoho").ZohoSignDownloadCompletionCertificateFunction;
|
|
44
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Configured pass-through for {@link zohoSignCreateDocument}.
|
|
81
|
+
*
|
|
82
|
+
* @returns bound create document function
|
|
83
|
+
*/
|
|
45
84
|
get createDocument(): import("@dereekb/zoho").ZohoSignCreateDocumentFunction;
|
|
46
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Configured pass-through for {@link zohoSignUpdateDocument}.
|
|
87
|
+
*
|
|
88
|
+
* @returns bound update document function
|
|
89
|
+
*/
|
|
47
90
|
get updateDocument(): import("@dereekb/zoho").ZohoSignUpdateDocumentFunction;
|
|
48
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Configured pass-through for {@link zohoSignSendDocumentForSignature}.
|
|
93
|
+
*
|
|
94
|
+
* @returns bound send document for signature function
|
|
95
|
+
*/
|
|
49
96
|
get sendDocumentForSignature(): import("@dereekb/zoho").ZohoSignSendDocumentForSignatureFunction;
|
|
50
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Configured pass-through for {@link zohoSignExtendDocument}.
|
|
99
|
+
*
|
|
100
|
+
* @returns bound extend document function
|
|
101
|
+
*/
|
|
51
102
|
get extendDocument(): import("@dereekb/zoho").ZohoSignExtendDocumentFunction;
|
|
52
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Configured pass-through for {@link zohoSignDeleteDocument}.
|
|
105
|
+
*
|
|
106
|
+
* @returns bound delete document function
|
|
107
|
+
*/
|
|
53
108
|
get deleteDocument(): import("@dereekb/zoho").ZohoSignDeleteDocumentFunction;
|
|
54
109
|
}
|
|
@@ -106,6 +106,9 @@ export type ZohoSignWebhookEvent<T extends ZohoSignWebhookOperationType = ZohoSi
|
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
108
|
* Creates a {@link ZohoSignWebhookEvent} from a raw payload.
|
|
109
|
+
*
|
|
110
|
+
* @param payload - the raw Zoho Sign webhook payload to convert
|
|
111
|
+
* @returns a webhook event with the operation type extracted for convenience
|
|
109
112
|
*/
|
|
110
113
|
export declare function zohoSignWebhookEvent(payload: ZohoSignWebhookPayload): ZohoSignWebhookEvent;
|
|
111
114
|
export type ZohoSignEventHandler = Handler<ZohoSignWebhookEvent, ZohoSignWebhookOperationType>;
|