@dereekb/zoho 13.23.0 → 13.25.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.
- package/cli/index.js +3 -3
- package/cli/package.json +7 -7
- package/index.cjs.js +96 -0
- package/index.esm.js +95 -1
- package/nestjs/index.cjs.js +20 -0
- package/nestjs/index.esm.js +21 -1
- package/nestjs/package.json +5 -5
- package/nestjs/src/lib/sign/sign.api.d.ts +12 -0
- package/package.json +8 -8
- package/src/lib/sign/sign.api.d.ts +90 -1
- package/src/lib/sign/sign.d.ts +38 -0
package/cli/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/cli",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.25.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"zoho-cli": "index.js"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/dbx-cli": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
13
|
-
"@dereekb/zoho": "13.
|
|
14
|
-
"@dereekb/zoho/nestjs": "13.
|
|
9
|
+
"@dereekb/dbx-cli": "13.25.0",
|
|
10
|
+
"@dereekb/nestjs": "13.25.0",
|
|
11
|
+
"@dereekb/rxjs": "13.25.0",
|
|
12
|
+
"@dereekb/util": "13.25.0",
|
|
13
|
+
"@dereekb/zoho": "13.25.0",
|
|
14
|
+
"@dereekb/zoho/nestjs": "13.25.0",
|
|
15
15
|
"yargs": "^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
package/index.cjs.js
CHANGED
|
@@ -6272,6 +6272,63 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6272
6272
|
});
|
|
6273
6273
|
};
|
|
6274
6274
|
}
|
|
6275
|
+
/**
|
|
6276
|
+
* Creates a {@link ZohoSignCreateDocumentFromTemplateFunction} bound to the given context.
|
|
6277
|
+
*
|
|
6278
|
+
* Instantiates a new signing request from a pre-built Zoho Sign template, addressing it to the
|
|
6279
|
+
* recipient action(s) supplied in {@link ZohoSignCreateDocumentFromTemplateData} and optionally
|
|
6280
|
+
* prefilling template fields. The template payload is wrapped in a `templates` envelope and sent
|
|
6281
|
+
* as a URL-encoded `data` form field; `is_quicksend` (default true) submits the request for
|
|
6282
|
+
* signature immediately, while `false` leaves it as a draft that can be sent later via
|
|
6283
|
+
* {@link zohoSignSendDocumentForSignature}.
|
|
6284
|
+
*
|
|
6285
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
6286
|
+
* @returns Function that creates a document from a template.
|
|
6287
|
+
*
|
|
6288
|
+
* @see https://www.zoho.com/sign/api/template-managment/send-documents-using-template.html
|
|
6289
|
+
*
|
|
6290
|
+
* @example
|
|
6291
|
+
* ```typescript
|
|
6292
|
+
* const createFromTemplate = zohoSignCreateDocumentFromTemplate(context);
|
|
6293
|
+
*
|
|
6294
|
+
* const response = await createFromTemplate({
|
|
6295
|
+
* templateId: '286906000001616000',
|
|
6296
|
+
* data: {
|
|
6297
|
+
* request_name: 'Employee Agreement',
|
|
6298
|
+
* actions: [
|
|
6299
|
+
* {
|
|
6300
|
+
* action_type: 'SIGN',
|
|
6301
|
+
* recipient_name: 'Jane Doe',
|
|
6302
|
+
* recipient_email: 'jane@example.com'
|
|
6303
|
+
* }
|
|
6304
|
+
* ]
|
|
6305
|
+
* }
|
|
6306
|
+
* });
|
|
6307
|
+
*
|
|
6308
|
+
* const requestId = response.requests.request_id;
|
|
6309
|
+
* ```
|
|
6310
|
+
*/ function zohoSignCreateDocumentFromTemplate(context) {
|
|
6311
|
+
return function(param) {
|
|
6312
|
+
var templateId = param.templateId, data = param.data, _param_isQuickSend = param.isQuickSend, isQuickSend = _param_isQuickSend === void 0 ? true : _param_isQuickSend;
|
|
6313
|
+
var form = fetch.makeUrlSearchParams({
|
|
6314
|
+
data: JSON.stringify({
|
|
6315
|
+
templates: data
|
|
6316
|
+
})
|
|
6317
|
+
});
|
|
6318
|
+
return context.fetchJson({
|
|
6319
|
+
url: "/templates/".concat(templateId, "/createdocument"),
|
|
6320
|
+
queryParams: {
|
|
6321
|
+
is_quicksend: String(isQuickSend)
|
|
6322
|
+
}
|
|
6323
|
+
}, {
|
|
6324
|
+
method: 'POST',
|
|
6325
|
+
headers: {
|
|
6326
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
6327
|
+
},
|
|
6328
|
+
body: form.toString()
|
|
6329
|
+
});
|
|
6330
|
+
};
|
|
6331
|
+
}
|
|
6275
6332
|
/**
|
|
6276
6333
|
* Creates a {@link ZohoSignUpdateDocumentFunction} bound to the given context.
|
|
6277
6334
|
*
|
|
@@ -6411,6 +6468,43 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6411
6468
|
} : {}));
|
|
6412
6469
|
};
|
|
6413
6470
|
}
|
|
6471
|
+
/**
|
|
6472
|
+
* Creates a {@link ZohoSignGetEmbeddedSigningUrlFunction} bound to the given context.
|
|
6473
|
+
*
|
|
6474
|
+
* Generates an embedded signing URL (embed token) for a single recipient action, letting
|
|
6475
|
+
* consumers surface an in-app signing link instead of relying on the Zoho Sign email. The
|
|
6476
|
+
* recipient action must have been created with `is_embedded: true` (see
|
|
6477
|
+
* {@link ZohoSignAction.is_embedded}), otherwise no URL is issued. The returned `sign_url` is
|
|
6478
|
+
* short-lived (~2 minutes) and single-use — regenerate it via a new call when it expires.
|
|
6479
|
+
*
|
|
6480
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
6481
|
+
* @returns Function that generates an embedded signing URL for a recipient action.
|
|
6482
|
+
*
|
|
6483
|
+
* @see https://www.zoho.com/sign/api/embedded-signing.html
|
|
6484
|
+
*
|
|
6485
|
+
* @example
|
|
6486
|
+
* ```typescript
|
|
6487
|
+
* const getSigningUrl = zohoSignGetEmbeddedSigningUrl(context);
|
|
6488
|
+
*
|
|
6489
|
+
* const response = await getSigningUrl({
|
|
6490
|
+
* requestId: '12345',
|
|
6491
|
+
* actionId: '67890',
|
|
6492
|
+
* host: 'https://app.example.com'
|
|
6493
|
+
* });
|
|
6494
|
+
*
|
|
6495
|
+
* const signUrl = response.sign_url;
|
|
6496
|
+
* ```
|
|
6497
|
+
*/ function zohoSignGetEmbeddedSigningUrl(context) {
|
|
6498
|
+
return function(param) {
|
|
6499
|
+
var requestId = param.requestId, actionId = param.actionId, host = param.host;
|
|
6500
|
+
return context.fetchJson({
|
|
6501
|
+
url: "/requests/".concat(requestId, "/actions/").concat(actionId, "/embedtoken"),
|
|
6502
|
+
queryParams: {
|
|
6503
|
+
host: host
|
|
6504
|
+
}
|
|
6505
|
+
}, zohoSignApiFetchJsonInput('POST'));
|
|
6506
|
+
};
|
|
6507
|
+
}
|
|
6414
6508
|
|
|
6415
6509
|
var ZOHO_SIGN_SERVICE_NAME = 'sign';
|
|
6416
6510
|
/**
|
|
@@ -9948,6 +10042,7 @@ exports.zohoRecruitUrlSearchParamsMinusModule = zohoRecruitUrlSearchParamsMinusM
|
|
|
9948
10042
|
exports.zohoServerErrorData = zohoServerErrorData;
|
|
9949
10043
|
exports.zohoSignConfigApiUrl = zohoSignConfigApiUrl;
|
|
9950
10044
|
exports.zohoSignCreateDocument = zohoSignCreateDocument;
|
|
10045
|
+
exports.zohoSignCreateDocumentFromTemplate = zohoSignCreateDocumentFromTemplate;
|
|
9951
10046
|
exports.zohoSignDeleteDocument = zohoSignDeleteDocument;
|
|
9952
10047
|
exports.zohoSignDownloadCompletionCertificate = zohoSignDownloadCompletionCertificate;
|
|
9953
10048
|
exports.zohoSignDownloadPdf = zohoSignDownloadPdf;
|
|
@@ -9958,6 +10053,7 @@ exports.zohoSignGetDocument = zohoSignGetDocument;
|
|
|
9958
10053
|
exports.zohoSignGetDocumentFormData = zohoSignGetDocumentFormData;
|
|
9959
10054
|
exports.zohoSignGetDocuments = zohoSignGetDocuments;
|
|
9960
10055
|
exports.zohoSignGetDocumentsPageFactory = zohoSignGetDocumentsPageFactory;
|
|
10056
|
+
exports.zohoSignGetEmbeddedSigningUrl = zohoSignGetEmbeddedSigningUrl;
|
|
9961
10057
|
exports.zohoSignRetrieveFieldTypes = zohoSignRetrieveFieldTypes;
|
|
9962
10058
|
exports.zohoSignSendDocumentForSignature = zohoSignSendDocumentForSignature;
|
|
9963
10059
|
exports.zohoSignUpdateDocument = zohoSignUpdateDocument;
|
package/index.esm.js
CHANGED
|
@@ -6270,6 +6270,63 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6270
6270
|
});
|
|
6271
6271
|
};
|
|
6272
6272
|
}
|
|
6273
|
+
/**
|
|
6274
|
+
* Creates a {@link ZohoSignCreateDocumentFromTemplateFunction} bound to the given context.
|
|
6275
|
+
*
|
|
6276
|
+
* Instantiates a new signing request from a pre-built Zoho Sign template, addressing it to the
|
|
6277
|
+
* recipient action(s) supplied in {@link ZohoSignCreateDocumentFromTemplateData} and optionally
|
|
6278
|
+
* prefilling template fields. The template payload is wrapped in a `templates` envelope and sent
|
|
6279
|
+
* as a URL-encoded `data` form field; `is_quicksend` (default true) submits the request for
|
|
6280
|
+
* signature immediately, while `false` leaves it as a draft that can be sent later via
|
|
6281
|
+
* {@link zohoSignSendDocumentForSignature}.
|
|
6282
|
+
*
|
|
6283
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
6284
|
+
* @returns Function that creates a document from a template.
|
|
6285
|
+
*
|
|
6286
|
+
* @see https://www.zoho.com/sign/api/template-managment/send-documents-using-template.html
|
|
6287
|
+
*
|
|
6288
|
+
* @example
|
|
6289
|
+
* ```typescript
|
|
6290
|
+
* const createFromTemplate = zohoSignCreateDocumentFromTemplate(context);
|
|
6291
|
+
*
|
|
6292
|
+
* const response = await createFromTemplate({
|
|
6293
|
+
* templateId: '286906000001616000',
|
|
6294
|
+
* data: {
|
|
6295
|
+
* request_name: 'Employee Agreement',
|
|
6296
|
+
* actions: [
|
|
6297
|
+
* {
|
|
6298
|
+
* action_type: 'SIGN',
|
|
6299
|
+
* recipient_name: 'Jane Doe',
|
|
6300
|
+
* recipient_email: 'jane@example.com'
|
|
6301
|
+
* }
|
|
6302
|
+
* ]
|
|
6303
|
+
* }
|
|
6304
|
+
* });
|
|
6305
|
+
*
|
|
6306
|
+
* const requestId = response.requests.request_id;
|
|
6307
|
+
* ```
|
|
6308
|
+
*/ function zohoSignCreateDocumentFromTemplate(context) {
|
|
6309
|
+
return function(param) {
|
|
6310
|
+
var templateId = param.templateId, data = param.data, _param_isQuickSend = param.isQuickSend, isQuickSend = _param_isQuickSend === void 0 ? true : _param_isQuickSend;
|
|
6311
|
+
var form = makeUrlSearchParams({
|
|
6312
|
+
data: JSON.stringify({
|
|
6313
|
+
templates: data
|
|
6314
|
+
})
|
|
6315
|
+
});
|
|
6316
|
+
return context.fetchJson({
|
|
6317
|
+
url: "/templates/".concat(templateId, "/createdocument"),
|
|
6318
|
+
queryParams: {
|
|
6319
|
+
is_quicksend: String(isQuickSend)
|
|
6320
|
+
}
|
|
6321
|
+
}, {
|
|
6322
|
+
method: 'POST',
|
|
6323
|
+
headers: {
|
|
6324
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
6325
|
+
},
|
|
6326
|
+
body: form.toString()
|
|
6327
|
+
});
|
|
6328
|
+
};
|
|
6329
|
+
}
|
|
6273
6330
|
/**
|
|
6274
6331
|
* Creates a {@link ZohoSignUpdateDocumentFunction} bound to the given context.
|
|
6275
6332
|
*
|
|
@@ -6409,6 +6466,43 @@ function _object_without_properties_loose$8(source, excluded) {
|
|
|
6409
6466
|
} : {}));
|
|
6410
6467
|
};
|
|
6411
6468
|
}
|
|
6469
|
+
/**
|
|
6470
|
+
* Creates a {@link ZohoSignGetEmbeddedSigningUrlFunction} bound to the given context.
|
|
6471
|
+
*
|
|
6472
|
+
* Generates an embedded signing URL (embed token) for a single recipient action, letting
|
|
6473
|
+
* consumers surface an in-app signing link instead of relying on the Zoho Sign email. The
|
|
6474
|
+
* recipient action must have been created with `is_embedded: true` (see
|
|
6475
|
+
* {@link ZohoSignAction.is_embedded}), otherwise no URL is issued. The returned `sign_url` is
|
|
6476
|
+
* short-lived (~2 minutes) and single-use — regenerate it via a new call when it expires.
|
|
6477
|
+
*
|
|
6478
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
6479
|
+
* @returns Function that generates an embedded signing URL for a recipient action.
|
|
6480
|
+
*
|
|
6481
|
+
* @see https://www.zoho.com/sign/api/embedded-signing.html
|
|
6482
|
+
*
|
|
6483
|
+
* @example
|
|
6484
|
+
* ```typescript
|
|
6485
|
+
* const getSigningUrl = zohoSignGetEmbeddedSigningUrl(context);
|
|
6486
|
+
*
|
|
6487
|
+
* const response = await getSigningUrl({
|
|
6488
|
+
* requestId: '12345',
|
|
6489
|
+
* actionId: '67890',
|
|
6490
|
+
* host: 'https://app.example.com'
|
|
6491
|
+
* });
|
|
6492
|
+
*
|
|
6493
|
+
* const signUrl = response.sign_url;
|
|
6494
|
+
* ```
|
|
6495
|
+
*/ function zohoSignGetEmbeddedSigningUrl(context) {
|
|
6496
|
+
return function(param) {
|
|
6497
|
+
var requestId = param.requestId, actionId = param.actionId, host = param.host;
|
|
6498
|
+
return context.fetchJson({
|
|
6499
|
+
url: "/requests/".concat(requestId, "/actions/").concat(actionId, "/embedtoken"),
|
|
6500
|
+
queryParams: {
|
|
6501
|
+
host: host
|
|
6502
|
+
}
|
|
6503
|
+
}, zohoSignApiFetchJsonInput('POST'));
|
|
6504
|
+
};
|
|
6505
|
+
}
|
|
6412
6506
|
|
|
6413
6507
|
var ZOHO_SIGN_SERVICE_NAME = 'sign';
|
|
6414
6508
|
/**
|
|
@@ -9643,4 +9737,4 @@ function safeZohoDateTimeString(date) {
|
|
|
9643
9737
|
return isoDate.substring(0, isoDate.length - 5) + 'Z';
|
|
9644
9738
|
}
|
|
9645
9739
|
|
|
9646
|
-
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_DESK_API_RATE_LIMIT, DEFAULT_ZOHO_DESK_PAGE_LIMIT, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUESTS_LOG_FUNCTION, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, MAX_ZOHO_CRM_SEARCH_MODULE_RECORDS_CRITERIA, MAX_ZOHO_RECRUIT_SEARCH_MODULE_RECORDS_CRITERIA, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_CRM_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED, ZOHO_CRM_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_CRM_ATTACHMENTS_MODULE, ZOHO_CRM_ATTACHMENT_MAX_SIZE, ZOHO_CRM_CONTACTS_MODULE, ZOHO_CRM_CRUD_FUNCTION_MAX_RECORDS_LIMIT, ZOHO_CRM_EMAILS_MODULE, ZOHO_CRM_LEADS_MODULE, ZOHO_CRM_NOTES_MODULE, ZOHO_CRM_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_CRM_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED, ZOHO_CRM_SERVICE_NAME, ZOHO_CRM_TAG_NAME_MAX_LENGTH, ZOHO_CRM_TASKS_MODULE, ZOHO_DATA_ARRAY_BLANK_ERROR_CODE, ZOHO_DESK_MAX_PAGE_LIMIT, ZOHO_DESK_RATE_LIMIT_REMAINING_HEADER, ZOHO_DESK_RATE_LIMIT_WEIGHT_HEADER, ZOHO_DESK_RETRY_AFTER_HEADER, ZOHO_DESK_SERVICE_NAME, ZOHO_DUPLICATE_DATA_ERROR_CODE, ZOHO_ERROR_STATUS, ZOHO_FAILURE_ERROR_CODE, ZOHO_INTERNAL_ERROR_CODE, ZOHO_INVALID_AUTHORIZATION_ERROR_CODE, ZOHO_INVALID_DATA_ERROR_CODE, ZOHO_INVALID_QUERY_ERROR_CODE, ZOHO_INVALID_TOKEN_ERROR_CODE, ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE, ZOHO_RATE_LIMIT_LIMIT_HEADER, ZOHO_RATE_LIMIT_REMAINING_HEADER, ZOHO_RATE_LIMIT_RESET_HEADER, ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_RECRUIT_ATTACHMENTS_MODULE, ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE, ZOHO_RECRUIT_CANDIDATES_MODULE, ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT, ZOHO_RECRUIT_EMAILS_MODULE, ZOHO_RECRUIT_JOB_OPENINGS_MODULE, ZOHO_RECRUIT_NOTES_MODULE, ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH, ZOHO_SIGN_SERVICE_NAME, ZOHO_SUCCESS_CODE, ZOHO_SUCCESS_STATUS, ZOHO_TOO_MANY_REQUESTS_ERROR_CODE, ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoCrmExecuteRestApiFunctionError, ZohoCrmRecordCrudDuplicateDataError, ZohoCrmRecordCrudError, ZohoCrmRecordCrudInvalidDataError, ZohoCrmRecordCrudMandatoryFieldNotFoundError, ZohoCrmRecordCrudNoMatchingRecordError, ZohoCrmRecordNoContentError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoInvalidTokenError, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseDataArrayError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, addTagsToRecords, assertRecordDataArrayResultHasContent, assertZohoCrmRecordDataArrayResultHasContent, assertZohoRecruitRecordDataArrayResultHasContent, createNotes, createNotesForRecord, createTagsForModule, deleteAttachmentFromRecord, deleteNotes, deleteRecord, downloadAttachmentForRecord, emptyZohoPageResult, escapeZohoCrmFieldValueForCriteriaString, executeRestApiFunction, getAttachmentsForRecord, getAttachmentsForRecordPageFactory, getEmailsForRecord, getEmailsForRecordPageFactory, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, getRelatedRecordsFunctionFactory, getTagsForModule, getTagsForModulePageFactory, handleZohoAccountsErrorFetch, handleZohoCrmErrorFetch, handleZohoDeskErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, handleZohoSignErrorFetch, insertRecord, interceptZohoAccounts200StatusWithErrorResponse, interceptZohoCrm200StatusWithErrorResponse, interceptZohoDesk200StatusWithErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruit200StatusWithErrorResponse, interceptZohoSign200StatusWithErrorResponse, isZohoCrmValidUrl, isZohoRecruitValidUrl, isZohoServerErrorResponseDataArrayRef, logZohoAccountsErrorToConsole, logZohoCrmErrorToConsole, logZohoDeskErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, logZohoSignErrorToConsole, makeZohoRateLimitedFetchHandler, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoCrmError, parseZohoCrmServerErrorResponseData, parseZohoDeskError, parseZohoDeskServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, parseZohoSignError, parseZohoSignServerErrorResponseData, removeTagsFromRecords, safeZohoDateTimeString, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, uploadAttachmentForRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsAccessToken, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsRefreshTokenFromAuthorizationCode, zohoAccountsZohoAccessTokenFactory, zohoCrmAddTagsToRecords, zohoCrmAddTagsToRecordsRequestBody, zohoCrmApiFetchJsonInput, zohoCrmCatchZohoCrmChangeObjectLikeResponseError, zohoCrmChangeObjectLikeResponseSuccessAndErrorPairs, zohoCrmConfigApiUrl, zohoCrmCreateNotes, zohoCrmCreateNotesForRecord, zohoCrmCreateTagsForModule, zohoCrmDeleteAttachmentFromRecord, zohoCrmDeleteNotes, zohoCrmDeleteRecord, zohoCrmDeleteTag, zohoCrmDownloadAttachmentForRecord, zohoCrmExecuteRestApiFunction, zohoCrmFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetTagsForModule, zohoCrmGetTagsForModulePageFactory, zohoCrmInsertRecord, zohoCrmMultiRecordResult, zohoCrmRecordCrudError, zohoCrmRemoveTagsFromRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsCriteriaEntryToCriteriaString, zohoCrmSearchRecordsCriteriaString, zohoCrmSearchRecordsCriteriaStringForTree, zohoCrmSearchRecordsPageFactory, zohoCrmUpdateRecord, zohoCrmUploadAttachmentForRecord, zohoCrmUpsertRecord, zohoCrmUrlSearchParams, zohoCrmUrlSearchParamsMinusIdAndModule, zohoCrmUrlSearchParamsMinusModule, zohoDateTimeString, zohoDeskAddTicketFollowers, zohoDeskApiFetchJsonInput, zohoDeskAssociateTicketTags, zohoDeskConfigApiUrl, zohoDeskCreateTicketComment, zohoDeskDeleteTicketAttachment, zohoDeskDeleteTicketComment, zohoDeskDissociateTicketTag, zohoDeskFactory, zohoDeskFetchPageFactory, zohoDeskGetAgentById, zohoDeskGetAgents, zohoDeskGetAgentsByIds, zohoDeskGetAgentsPageFactory, zohoDeskGetAgentsTicketsCount, zohoDeskGetAllTags, zohoDeskGetContactById, zohoDeskGetContacts, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetDepartmentById, zohoDeskGetDepartments, zohoDeskGetMyInfo, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetTicketAttachments, zohoDeskGetTicketById, zohoDeskGetTicketCommentById, zohoDeskGetTicketComments, zohoDeskGetTicketFollowers, zohoDeskGetTicketMetrics, zohoDeskGetTicketTags, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketTimer, zohoDeskGetTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketsPageFactory, zohoDeskPerformTicketTimerAction, zohoDeskRateLimitDetailsReader, zohoDeskRateLimitedFetchHandler, zohoDeskRemoveTicketFollowers, zohoDeskSearchTags, zohoDeskSearchTickets, zohoDeskSearchTicketsPageFactory, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitAddTagsToRecords, zohoRecruitApiFetchJsonInput, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitChangeObjectLikeResponseSuccessAndErrorPairs, zohoRecruitConfigApiUrl, zohoRecruitCreateNotes, zohoRecruitCreateNotesForRecord, zohoRecruitCreateTagsForModule, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitDeleteNotes, zohoRecruitDeleteRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitExecuteRestApiFunction, zohoRecruitFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetTagsForModule, zohoRecruitGetTagsForModulePageFactory, zohoRecruitInsertRecord, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitRemoveTagsFromRecords, zohoRecruitSearchAssociatedRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitSearchRecords, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitSearchRecordsPageFactory, zohoRecruitUpdateRecord, zohoRecruitUploadAttachmentForRecord, zohoRecruitUpsertRecord, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData, zohoSignConfigApiUrl, zohoSignCreateDocument, zohoSignDeleteDocument, zohoSignDownloadCompletionCertificate, zohoSignDownloadPdf, zohoSignExtendDocument, zohoSignFactory, zohoSignFetchPageFactory, zohoSignGetDocument, zohoSignGetDocumentFormData, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignRetrieveFieldTypes, zohoSignSendDocumentForSignature, zohoSignUpdateDocument, zohoStandardRateLimitDetailsReader };
|
|
9740
|
+
export { DEFAULT_ZOHO_API_RATE_LIMIT, DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD, DEFAULT_ZOHO_DESK_API_RATE_LIMIT, DEFAULT_ZOHO_DESK_PAGE_LIMIT, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUESTS_LOG_FUNCTION, DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION, MAX_ZOHO_CRM_SEARCH_MODULE_RECORDS_CRITERIA, MAX_ZOHO_RECRUIT_SEARCH_MODULE_RECORDS_CRITERIA, ZOHO_ACCOUNTS_INVALID_CLIENT_ERROR_CODE, ZOHO_ACCOUNTS_INVALID_CODE_ERROR_CODE, ZOHO_ACCOUNTS_US_API_URL, ZOHO_CRM_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED, ZOHO_CRM_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_CRM_ATTACHMENTS_MODULE, ZOHO_CRM_ATTACHMENT_MAX_SIZE, ZOHO_CRM_CONTACTS_MODULE, ZOHO_CRM_CRUD_FUNCTION_MAX_RECORDS_LIMIT, ZOHO_CRM_EMAILS_MODULE, ZOHO_CRM_LEADS_MODULE, ZOHO_CRM_NOTES_MODULE, ZOHO_CRM_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_CRM_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED, ZOHO_CRM_SERVICE_NAME, ZOHO_CRM_TAG_NAME_MAX_LENGTH, ZOHO_CRM_TASKS_MODULE, ZOHO_DATA_ARRAY_BLANK_ERROR_CODE, ZOHO_DESK_MAX_PAGE_LIMIT, ZOHO_DESK_RATE_LIMIT_REMAINING_HEADER, ZOHO_DESK_RATE_LIMIT_WEIGHT_HEADER, ZOHO_DESK_RETRY_AFTER_HEADER, ZOHO_DESK_SERVICE_NAME, ZOHO_DUPLICATE_DATA_ERROR_CODE, ZOHO_ERROR_STATUS, ZOHO_FAILURE_ERROR_CODE, ZOHO_INTERNAL_ERROR_CODE, ZOHO_INVALID_AUTHORIZATION_ERROR_CODE, ZOHO_INVALID_DATA_ERROR_CODE, ZOHO_INVALID_QUERY_ERROR_CODE, ZOHO_INVALID_TOKEN_ERROR_CODE, ZOHO_MANDATORY_NOT_FOUND_ERROR_CODE, ZOHO_RATE_LIMIT_LIMIT_HEADER, ZOHO_RATE_LIMIT_REMAINING_HEADER, ZOHO_RATE_LIMIT_RESET_HEADER, ZOHO_RECRUIT_ADD_TAGS_TO_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_ALREADY_ASSOCIATED_ERROR_CODE, ZOHO_RECRUIT_ATTACHMENTS_MODULE, ZOHO_RECRUIT_ATTACHMENT_MAX_SIZE, ZOHO_RECRUIT_CANDIDATES_MODULE, ZOHO_RECRUIT_CRUD_FUNCTION_MAX_RECORDS_LIMIT, ZOHO_RECRUIT_EMAILS_MODULE, ZOHO_RECRUIT_JOB_OPENINGS_MODULE, ZOHO_RECRUIT_NOTES_MODULE, ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME, ZOHO_RECRUIT_REMOVE_TAGS_FROM_RECORDS_MAX_IDS_ALLOWED, ZOHO_RECRUIT_SERVICE_NAME, ZOHO_RECRUIT_TAG_NAME_MAX_LENGTH, ZOHO_SIGN_SERVICE_NAME, ZOHO_SUCCESS_CODE, ZOHO_SUCCESS_STATUS, ZOHO_TOO_MANY_REQUESTS_ERROR_CODE, ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE, ZohoAccountsAccessTokenError, ZohoAccountsAuthFailureError, ZohoCrmExecuteRestApiFunctionError, ZohoCrmRecordCrudDuplicateDataError, ZohoCrmRecordCrudError, ZohoCrmRecordCrudInvalidDataError, ZohoCrmRecordCrudMandatoryFieldNotFoundError, ZohoCrmRecordCrudNoMatchingRecordError, ZohoCrmRecordNoContentError, ZohoInternalError, ZohoInvalidAuthorizationError, ZohoInvalidQueryError, ZohoInvalidTokenError, ZohoRecruitExecuteRestApiFunctionError, ZohoRecruitRecordCrudDuplicateDataError, ZohoRecruitRecordCrudError, ZohoRecruitRecordCrudInvalidDataError, ZohoRecruitRecordCrudMandatoryFieldNotFoundError, ZohoRecruitRecordCrudNoMatchingRecordError, ZohoRecruitRecordNoContentError, ZohoServerError, ZohoServerFetchResponseDataArrayError, ZohoServerFetchResponseError, ZohoTooManyRequestsError, addTagsToRecords, assertRecordDataArrayResultHasContent, assertZohoCrmRecordDataArrayResultHasContent, assertZohoRecruitRecordDataArrayResultHasContent, createNotes, createNotesForRecord, createTagsForModule, deleteAttachmentFromRecord, deleteNotes, deleteRecord, downloadAttachmentForRecord, emptyZohoPageResult, escapeZohoCrmFieldValueForCriteriaString, executeRestApiFunction, getAttachmentsForRecord, getAttachmentsForRecordPageFactory, getEmailsForRecord, getEmailsForRecordPageFactory, getNotesForRecord, getNotesForRecordPageFactory, getRecordById, getRecords, getRelatedRecordsFunctionFactory, getTagsForModule, getTagsForModulePageFactory, handleZohoAccountsErrorFetch, handleZohoCrmErrorFetch, handleZohoDeskErrorFetch, handleZohoErrorFetchFactory, handleZohoRecruitErrorFetch, handleZohoSignErrorFetch, insertRecord, interceptZohoAccounts200StatusWithErrorResponse, interceptZohoCrm200StatusWithErrorResponse, interceptZohoDesk200StatusWithErrorResponse, interceptZohoErrorResponseFactory, interceptZohoRecruit200StatusWithErrorResponse, interceptZohoSign200StatusWithErrorResponse, isZohoCrmValidUrl, isZohoRecruitValidUrl, isZohoServerErrorResponseDataArrayRef, logZohoAccountsErrorToConsole, logZohoCrmErrorToConsole, logZohoDeskErrorToConsole, logZohoRecruitErrorToConsole, logZohoServerErrorFunction, logZohoSignErrorToConsole, makeZohoRateLimitedFetchHandler, parseZohoAccountsError, parseZohoAccountsServerErrorResponseData, parseZohoCrmError, parseZohoCrmServerErrorResponseData, parseZohoDeskError, parseZohoDeskServerErrorResponseData, parseZohoRecruitError, parseZohoRecruitServerErrorResponseData, parseZohoServerErrorResponseData, parseZohoSignError, parseZohoSignServerErrorResponseData, removeTagsFromRecords, safeZohoDateTimeString, searchRecords, searchRecordsPageFactory, tryFindZohoServerErrorData, updateRecord, uploadAttachmentForRecord, upsertRecord, zohoAccessTokenStringFactory, zohoAccountsAccessToken, zohoAccountsApiFetchJsonInput, zohoAccountsConfigApiUrl, zohoAccountsFactory, zohoAccountsRefreshTokenFromAuthorizationCode, zohoAccountsZohoAccessTokenFactory, zohoCrmAddTagsToRecords, zohoCrmAddTagsToRecordsRequestBody, zohoCrmApiFetchJsonInput, zohoCrmCatchZohoCrmChangeObjectLikeResponseError, zohoCrmChangeObjectLikeResponseSuccessAndErrorPairs, zohoCrmConfigApiUrl, zohoCrmCreateNotes, zohoCrmCreateNotesForRecord, zohoCrmCreateTagsForModule, zohoCrmDeleteAttachmentFromRecord, zohoCrmDeleteNotes, zohoCrmDeleteRecord, zohoCrmDeleteTag, zohoCrmDownloadAttachmentForRecord, zohoCrmExecuteRestApiFunction, zohoCrmFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetTagsForModule, zohoCrmGetTagsForModulePageFactory, zohoCrmInsertRecord, zohoCrmMultiRecordResult, zohoCrmRecordCrudError, zohoCrmRemoveTagsFromRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsCriteriaEntryToCriteriaString, zohoCrmSearchRecordsCriteriaString, zohoCrmSearchRecordsCriteriaStringForTree, zohoCrmSearchRecordsPageFactory, zohoCrmUpdateRecord, zohoCrmUploadAttachmentForRecord, zohoCrmUpsertRecord, zohoCrmUrlSearchParams, zohoCrmUrlSearchParamsMinusIdAndModule, zohoCrmUrlSearchParamsMinusModule, zohoDateTimeString, zohoDeskAddTicketFollowers, zohoDeskApiFetchJsonInput, zohoDeskAssociateTicketTags, zohoDeskConfigApiUrl, zohoDeskCreateTicketComment, zohoDeskDeleteTicketAttachment, zohoDeskDeleteTicketComment, zohoDeskDissociateTicketTag, zohoDeskFactory, zohoDeskFetchPageFactory, zohoDeskGetAgentById, zohoDeskGetAgents, zohoDeskGetAgentsByIds, zohoDeskGetAgentsPageFactory, zohoDeskGetAgentsTicketsCount, zohoDeskGetAllTags, zohoDeskGetContactById, zohoDeskGetContacts, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetDepartmentById, zohoDeskGetDepartments, zohoDeskGetMyInfo, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetTicketAttachments, zohoDeskGetTicketById, zohoDeskGetTicketCommentById, zohoDeskGetTicketComments, zohoDeskGetTicketFollowers, zohoDeskGetTicketMetrics, zohoDeskGetTicketTags, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketTimer, zohoDeskGetTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketsPageFactory, zohoDeskPerformTicketTimerAction, zohoDeskRateLimitDetailsReader, zohoDeskRateLimitedFetchHandler, zohoDeskRemoveTicketFollowers, zohoDeskSearchTags, zohoDeskSearchTickets, zohoDeskSearchTicketsPageFactory, zohoFetchPageFactory, zohoRateLimitHeaderDetails, zohoRateLimitedFetchHandler, zohoRecruitAddTagsToRecords, zohoRecruitApiFetchJsonInput, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitChangeObjectLikeResponseSuccessAndErrorPairs, zohoRecruitConfigApiUrl, zohoRecruitCreateNotes, zohoRecruitCreateNotesForRecord, zohoRecruitCreateTagsForModule, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitDeleteNotes, zohoRecruitDeleteRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitExecuteRestApiFunction, zohoRecruitFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetTagsForModule, zohoRecruitGetTagsForModulePageFactory, zohoRecruitInsertRecord, zohoRecruitMultiRecordResult, zohoRecruitRecordCrudError, zohoRecruitRemoveTagsFromRecords, zohoRecruitSearchAssociatedRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitSearchRecords, zohoRecruitSearchRecordsCriteriaEntryToCriteriaString, zohoRecruitSearchRecordsCriteriaString, zohoRecruitSearchRecordsCriteriaStringForTree, zohoRecruitSearchRecordsPageFactory, zohoRecruitUpdateRecord, zohoRecruitUploadAttachmentForRecord, zohoRecruitUpsertRecord, zohoRecruitUrlSearchParams, zohoRecruitUrlSearchParamsMinusIdAndModule, zohoRecruitUrlSearchParamsMinusModule, zohoServerErrorData, zohoSignConfigApiUrl, zohoSignCreateDocument, zohoSignCreateDocumentFromTemplate, zohoSignDeleteDocument, zohoSignDownloadCompletionCertificate, zohoSignDownloadPdf, zohoSignExtendDocument, zohoSignFactory, zohoSignFetchPageFactory, zohoSignGetDocument, zohoSignGetDocumentFormData, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignGetEmbeddedSigningUrl, zohoSignRetrieveFieldTypes, zohoSignSendDocumentForSignature, zohoSignUpdateDocument, zohoStandardRateLimitDetailsReader };
|
package/nestjs/index.cjs.js
CHANGED
|
@@ -2522,6 +2522,16 @@ function _object_spread_props$2(target, source) {
|
|
|
2522
2522
|
return zoho.zohoSignCreateDocument(this.signContext);
|
|
2523
2523
|
}
|
|
2524
2524
|
},
|
|
2525
|
+
{
|
|
2526
|
+
key: "createDocumentFromTemplate",
|
|
2527
|
+
get: /**
|
|
2528
|
+
* Configured pass-through for {@link zohoSignCreateDocumentFromTemplate}.
|
|
2529
|
+
*
|
|
2530
|
+
* @returns Bound create document from template function.
|
|
2531
|
+
*/ function get() {
|
|
2532
|
+
return zoho.zohoSignCreateDocumentFromTemplate(this.signContext);
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2525
2535
|
{
|
|
2526
2536
|
key: "updateDocument",
|
|
2527
2537
|
get: /**
|
|
@@ -2561,6 +2571,16 @@ function _object_spread_props$2(target, source) {
|
|
|
2561
2571
|
*/ function get() {
|
|
2562
2572
|
return zoho.zohoSignDeleteDocument(this.signContext);
|
|
2563
2573
|
}
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
key: "getEmbeddedSigningUrl",
|
|
2577
|
+
get: /**
|
|
2578
|
+
* Configured pass-through for {@link zohoSignGetEmbeddedSigningUrl}.
|
|
2579
|
+
*
|
|
2580
|
+
* @returns Bound get embedded signing URL function.
|
|
2581
|
+
*/ function get() {
|
|
2582
|
+
return zoho.zohoSignGetEmbeddedSigningUrl(this.signContext);
|
|
2583
|
+
}
|
|
2564
2584
|
}
|
|
2565
2585
|
]);
|
|
2566
2586
|
return ZohoSignApi;
|
package/nestjs/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injectable, Inject, Logger, Post, Req, Controller, Module } from '@nestjs/common';
|
|
2
|
-
import { zohoAccountsFactory, zohoAccountsAccessToken, zohoCrmFactory, zohoCrmInsertRecord, zohoCrmUpsertRecord, zohoCrmUpdateRecord, zohoCrmDeleteRecord, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsPageFactory, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmUploadAttachmentForRecord, zohoCrmDownloadAttachmentForRecord, zohoCrmDeleteAttachmentFromRecord, zohoCrmCreateNotes, zohoCrmDeleteNotes, zohoCrmCreateNotesForRecord, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmExecuteRestApiFunction, zohoCrmCreateTagsForModule, zohoCrmDeleteTag, zohoCrmGetTagsForModule, zohoCrmAddTagsToRecords, zohoCrmRemoveTagsFromRecords, ZOHO_CRM_SERVICE_NAME, zohoRecruitFactory, zohoRecruitInsertRecord, zohoRecruitUpsertRecord, zohoRecruitUpdateRecord, zohoRecruitDeleteRecord, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitSearchRecords, zohoRecruitSearchRecordsPageFactory, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitUploadAttachmentForRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitCreateNotes, zohoRecruitDeleteNotes, zohoRecruitCreateNotesForRecord, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitExecuteRestApiFunction, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitCreateTagsForModule, zohoRecruitGetTagsForModule, zohoRecruitAddTagsToRecords, zohoRecruitRemoveTagsFromRecords, ZOHO_RECRUIT_SERVICE_NAME, zohoSignFactory, zohoSignGetDocument, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignGetDocumentFormData, zohoSignRetrieveFieldTypes, zohoSignDownloadPdf, zohoSignDownloadCompletionCertificate, zohoSignCreateDocument, zohoSignUpdateDocument, zohoSignSendDocumentForSignature, zohoSignExtendDocument, zohoSignDeleteDocument, ZOHO_SIGN_SERVICE_NAME, zohoDeskFactory, zohoDeskGetTickets, zohoDeskGetTicketById, zohoDeskSearchTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketMetrics, zohoDeskGetAgentsTicketsCount, zohoDeskGetTicketsPageFactory, zohoDeskSearchTicketsPageFactory, zohoDeskGetDepartments, zohoDeskGetDepartmentById, zohoDeskGetContacts, zohoDeskGetContactById, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetTicketTags, zohoDeskAssociateTicketTags, zohoDeskDissociateTicketTag, zohoDeskSearchTags, zohoDeskGetAllTags, zohoDeskGetTicketFollowers, zohoDeskAddTicketFollowers, zohoDeskRemoveTicketFollowers, zohoDeskGetTicketAttachments, zohoDeskDeleteTicketAttachment, zohoDeskGetTicketComments, zohoDeskGetTicketCommentById, zohoDeskCreateTicketComment, zohoDeskDeleteTicketComment, zohoDeskGetTicketTimer, zohoDeskPerformTicketTimerAction, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetAgents, zohoDeskGetAgentById, zohoDeskGetAgentsByIds, zohoDeskGetMyInfo, zohoDeskGetAgentsPageFactory, ZOHO_DESK_SERVICE_NAME } from '@dereekb/zoho';
|
|
2
|
+
import { zohoAccountsFactory, zohoAccountsAccessToken, zohoCrmFactory, zohoCrmInsertRecord, zohoCrmUpsertRecord, zohoCrmUpdateRecord, zohoCrmDeleteRecord, zohoCrmGetRecordById, zohoCrmGetRecords, zohoCrmSearchRecords, zohoCrmSearchRecordsPageFactory, zohoCrmGetRelatedRecordsFunctionFactory, zohoCrmGetEmailsForRecord, zohoCrmGetEmailsForRecordPageFactory, zohoCrmGetAttachmentsForRecord, zohoCrmGetAttachmentsForRecordPageFactory, zohoCrmUploadAttachmentForRecord, zohoCrmDownloadAttachmentForRecord, zohoCrmDeleteAttachmentFromRecord, zohoCrmCreateNotes, zohoCrmDeleteNotes, zohoCrmCreateNotesForRecord, zohoCrmGetNotesForRecord, zohoCrmGetNotesForRecordPageFactory, zohoCrmExecuteRestApiFunction, zohoCrmCreateTagsForModule, zohoCrmDeleteTag, zohoCrmGetTagsForModule, zohoCrmAddTagsToRecords, zohoCrmRemoveTagsFromRecords, ZOHO_CRM_SERVICE_NAME, zohoRecruitFactory, zohoRecruitInsertRecord, zohoRecruitUpsertRecord, zohoRecruitUpdateRecord, zohoRecruitDeleteRecord, zohoRecruitGetRecordById, zohoRecruitGetRecords, zohoRecruitSearchRecords, zohoRecruitSearchRecordsPageFactory, zohoRecruitGetRelatedRecordsFunctionFactory, zohoRecruitGetEmailsForRecord, zohoRecruitGetEmailsForRecordPageFactory, zohoRecruitGetAttachmentsForRecord, zohoRecruitGetAttachmentsForRecordPageFactory, zohoRecruitUploadAttachmentForRecord, zohoRecruitDownloadAttachmentForRecord, zohoRecruitDeleteAttachmentFromRecord, zohoRecruitCreateNotes, zohoRecruitDeleteNotes, zohoRecruitCreateNotesForRecord, zohoRecruitGetNotesForRecord, zohoRecruitGetNotesForRecordPageFactory, zohoRecruitExecuteRestApiFunction, zohoRecruitAssociateCandidateRecordsWithJobOpenings, zohoRecruitSearchCandidateAssociatedJobOpeningRecords, zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory, zohoRecruitSearchJobOpeningAssociatedCandidateRecords, zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory, zohoRecruitCreateTagsForModule, zohoRecruitGetTagsForModule, zohoRecruitAddTagsToRecords, zohoRecruitRemoveTagsFromRecords, ZOHO_RECRUIT_SERVICE_NAME, zohoSignFactory, zohoSignGetDocument, zohoSignGetDocuments, zohoSignGetDocumentsPageFactory, zohoSignGetDocumentFormData, zohoSignRetrieveFieldTypes, zohoSignDownloadPdf, zohoSignDownloadCompletionCertificate, zohoSignCreateDocument, zohoSignCreateDocumentFromTemplate, zohoSignUpdateDocument, zohoSignSendDocumentForSignature, zohoSignExtendDocument, zohoSignDeleteDocument, zohoSignGetEmbeddedSigningUrl, ZOHO_SIGN_SERVICE_NAME, zohoDeskFactory, zohoDeskGetTickets, zohoDeskGetTicketById, zohoDeskSearchTickets, zohoDeskGetTicketsForContact, zohoDeskGetTicketsForProduct, zohoDeskGetTicketMetrics, zohoDeskGetAgentsTicketsCount, zohoDeskGetTicketsPageFactory, zohoDeskSearchTicketsPageFactory, zohoDeskGetDepartments, zohoDeskGetDepartmentById, zohoDeskGetContacts, zohoDeskGetContactById, zohoDeskGetContactsByIds, zohoDeskGetContactsPageFactory, zohoDeskGetTicketTags, zohoDeskAssociateTicketTags, zohoDeskDissociateTicketTag, zohoDeskSearchTags, zohoDeskGetAllTags, zohoDeskGetTicketFollowers, zohoDeskAddTicketFollowers, zohoDeskRemoveTicketFollowers, zohoDeskGetTicketAttachments, zohoDeskDeleteTicketAttachment, zohoDeskGetTicketComments, zohoDeskGetTicketCommentById, zohoDeskCreateTicketComment, zohoDeskDeleteTicketComment, zohoDeskGetTicketTimer, zohoDeskPerformTicketTimerAction, zohoDeskGetTicketTimeEntries, zohoDeskGetTicketTimeEntryById, zohoDeskGetTicketTimeEntrySummation, zohoDeskGetTicketThreads, zohoDeskGetTicketThreadById, zohoDeskGetTicketThreadsPageFactory, zohoDeskGetTicketActivities, zohoDeskGetTicketActivitiesPageFactory, zohoDeskGetAgents, zohoDeskGetAgentById, zohoDeskGetAgentsByIds, zohoDeskGetMyInfo, zohoDeskGetAgentsPageFactory, ZOHO_DESK_SERVICE_NAME } from '@dereekb/zoho';
|
|
3
3
|
import { memoizeAsyncKeyedValueCache, inMemoryAsyncKeyedValueCache, mergeAsyncValueCaches, isExpired, filterMaybeArrayValues, handlerFactory, handlerConfigurerFactory, handlerMappedSetFunctionFactory } from '@dereekb/util';
|
|
4
4
|
import { createJsonFileAsyncKeyedValueCache, readJsonFile, RawBody } from '@dereekb/nestjs';
|
|
5
5
|
import { ConfigService, ConfigModule } from '@nestjs/config';
|
|
@@ -2520,6 +2520,16 @@ function _object_spread_props$2(target, source) {
|
|
|
2520
2520
|
return zohoSignCreateDocument(this.signContext);
|
|
2521
2521
|
}
|
|
2522
2522
|
},
|
|
2523
|
+
{
|
|
2524
|
+
key: "createDocumentFromTemplate",
|
|
2525
|
+
get: /**
|
|
2526
|
+
* Configured pass-through for {@link zohoSignCreateDocumentFromTemplate}.
|
|
2527
|
+
*
|
|
2528
|
+
* @returns Bound create document from template function.
|
|
2529
|
+
*/ function get() {
|
|
2530
|
+
return zohoSignCreateDocumentFromTemplate(this.signContext);
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2523
2533
|
{
|
|
2524
2534
|
key: "updateDocument",
|
|
2525
2535
|
get: /**
|
|
@@ -2559,6 +2569,16 @@ function _object_spread_props$2(target, source) {
|
|
|
2559
2569
|
*/ function get() {
|
|
2560
2570
|
return zohoSignDeleteDocument(this.signContext);
|
|
2561
2571
|
}
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
key: "getEmbeddedSigningUrl",
|
|
2575
|
+
get: /**
|
|
2576
|
+
* Configured pass-through for {@link zohoSignGetEmbeddedSigningUrl}.
|
|
2577
|
+
*
|
|
2578
|
+
* @returns Bound get embedded signing URL function.
|
|
2579
|
+
*/ function get() {
|
|
2580
|
+
return zohoSignGetEmbeddedSigningUrl(this.signContext);
|
|
2581
|
+
}
|
|
2562
2582
|
}
|
|
2563
2583
|
]);
|
|
2564
2584
|
return ZohoSignApi;
|
package/nestjs/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho/nestjs",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.25.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/nestjs": "13.
|
|
6
|
-
"@dereekb/rxjs": "13.
|
|
7
|
-
"@dereekb/util": "13.
|
|
8
|
-
"@dereekb/zoho": "13.
|
|
5
|
+
"@dereekb/nestjs": "13.25.0",
|
|
6
|
+
"@dereekb/rxjs": "13.25.0",
|
|
7
|
+
"@dereekb/util": "13.25.0",
|
|
8
|
+
"@dereekb/zoho": "13.25.0",
|
|
9
9
|
"@nestjs/common": "^11.1.19",
|
|
10
10
|
"@nestjs/config": "^4.0.4",
|
|
11
11
|
"express": "^5.2.1"
|
|
@@ -82,6 +82,12 @@ export declare class ZohoSignApi {
|
|
|
82
82
|
* @returns Bound create document function.
|
|
83
83
|
*/
|
|
84
84
|
get createDocument(): import("@dereekb/zoho").ZohoSignCreateDocumentFunction;
|
|
85
|
+
/**
|
|
86
|
+
* Configured pass-through for {@link zohoSignCreateDocumentFromTemplate}.
|
|
87
|
+
*
|
|
88
|
+
* @returns Bound create document from template function.
|
|
89
|
+
*/
|
|
90
|
+
get createDocumentFromTemplate(): import("@dereekb/zoho").ZohoSignCreateDocumentFromTemplateFunction;
|
|
85
91
|
/**
|
|
86
92
|
* Configured pass-through for {@link zohoSignUpdateDocument}.
|
|
87
93
|
*
|
|
@@ -106,4 +112,10 @@ export declare class ZohoSignApi {
|
|
|
106
112
|
* @returns Bound delete document function.
|
|
107
113
|
*/
|
|
108
114
|
get deleteDocument(): import("@dereekb/zoho").ZohoSignDeleteDocumentFunction;
|
|
115
|
+
/**
|
|
116
|
+
* Configured pass-through for {@link zohoSignGetEmbeddedSigningUrl}.
|
|
117
|
+
*
|
|
118
|
+
* @returns Bound get embedded signing URL function.
|
|
119
|
+
*/
|
|
120
|
+
get getEmbeddedSigningUrl(): import("@dereekb/zoho").ZohoSignGetEmbeddedSigningUrlFunction;
|
|
109
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/zoho",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.25.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"zoho-cli": "cli/index.js"
|
|
6
6
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@dereekb/date": "13.
|
|
27
|
-
"@dereekb/dbx-cli": "13.
|
|
28
|
-
"@dereekb/firebase": "13.
|
|
29
|
-
"@dereekb/model": "13.
|
|
30
|
-
"@dereekb/nestjs": "13.
|
|
31
|
-
"@dereekb/rxjs": "13.
|
|
32
|
-
"@dereekb/util": "13.
|
|
26
|
+
"@dereekb/date": "13.25.0",
|
|
27
|
+
"@dereekb/dbx-cli": "13.25.0",
|
|
28
|
+
"@dereekb/firebase": "13.25.0",
|
|
29
|
+
"@dereekb/model": "13.25.0",
|
|
30
|
+
"@dereekb/nestjs": "13.25.0",
|
|
31
|
+
"@dereekb/rxjs": "13.25.0",
|
|
32
|
+
"@dereekb/util": "13.25.0",
|
|
33
33
|
"@nestjs/common": "^11.1.19",
|
|
34
34
|
"@nestjs/config": "^4.0.4",
|
|
35
35
|
"express": "^5.2.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ZohoSignContext } from './sign.config';
|
|
2
|
-
import { type ZohoSignRequest, type ZohoSignRequestId, type ZohoSignRequestData, type ZohoSignFieldType, type ZohoSignDocumentFormData } from './sign';
|
|
2
|
+
import { type ZohoSignRequest, type ZohoSignRequestId, type ZohoSignRequestData, type ZohoSignFieldType, type ZohoSignDocumentFormData, type ZohoSignTemplateId, type ZohoSignActionId, type ZohoSignCreateDocumentFromTemplateData } from './sign';
|
|
3
3
|
import { type ZohoSignPageFilter, type ZohoSignPageResult, type ZohoSignSearchColumns } from './sign.api.page';
|
|
4
4
|
/**
|
|
5
5
|
* Base response shape for Zoho Sign API calls.
|
|
@@ -265,6 +265,52 @@ export type ZohoSignCreateDocumentFunction = (input: ZohoSignCreateDocumentInput
|
|
|
265
265
|
* ```
|
|
266
266
|
*/
|
|
267
267
|
export declare function zohoSignCreateDocument(context: ZohoSignContext): ZohoSignCreateDocumentFunction;
|
|
268
|
+
export interface ZohoSignCreateDocumentFromTemplateInput {
|
|
269
|
+
readonly templateId: ZohoSignTemplateId;
|
|
270
|
+
readonly data: ZohoSignCreateDocumentFromTemplateData;
|
|
271
|
+
/**
|
|
272
|
+
* Send the request immediately (true, the default) or leave it as a draft (false).
|
|
273
|
+
*/
|
|
274
|
+
readonly isQuickSend?: boolean;
|
|
275
|
+
}
|
|
276
|
+
export type ZohoSignCreateDocumentFromTemplateFunction = (input: ZohoSignCreateDocumentFromTemplateInput) => Promise<ZohoSignDocumentOperationResponse>;
|
|
277
|
+
/**
|
|
278
|
+
* Creates a {@link ZohoSignCreateDocumentFromTemplateFunction} bound to the given context.
|
|
279
|
+
*
|
|
280
|
+
* Instantiates a new signing request from a pre-built Zoho Sign template, addressing it to the
|
|
281
|
+
* recipient action(s) supplied in {@link ZohoSignCreateDocumentFromTemplateData} and optionally
|
|
282
|
+
* prefilling template fields. The template payload is wrapped in a `templates` envelope and sent
|
|
283
|
+
* as a URL-encoded `data` form field; `is_quicksend` (default true) submits the request for
|
|
284
|
+
* signature immediately, while `false` leaves it as a draft that can be sent later via
|
|
285
|
+
* {@link zohoSignSendDocumentForSignature}.
|
|
286
|
+
*
|
|
287
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
288
|
+
* @returns Function that creates a document from a template.
|
|
289
|
+
*
|
|
290
|
+
* @see https://www.zoho.com/sign/api/template-managment/send-documents-using-template.html
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```typescript
|
|
294
|
+
* const createFromTemplate = zohoSignCreateDocumentFromTemplate(context);
|
|
295
|
+
*
|
|
296
|
+
* const response = await createFromTemplate({
|
|
297
|
+
* templateId: '286906000001616000',
|
|
298
|
+
* data: {
|
|
299
|
+
* request_name: 'Employee Agreement',
|
|
300
|
+
* actions: [
|
|
301
|
+
* {
|
|
302
|
+
* action_type: 'SIGN',
|
|
303
|
+
* recipient_name: 'Jane Doe',
|
|
304
|
+
* recipient_email: 'jane@example.com'
|
|
305
|
+
* }
|
|
306
|
+
* ]
|
|
307
|
+
* }
|
|
308
|
+
* });
|
|
309
|
+
*
|
|
310
|
+
* const requestId = response.requests.request_id;
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
export declare function zohoSignCreateDocumentFromTemplate(context: ZohoSignContext): ZohoSignCreateDocumentFromTemplateFunction;
|
|
268
314
|
export interface ZohoSignUpdateDocumentInput {
|
|
269
315
|
readonly requestId: ZohoSignRequestId;
|
|
270
316
|
readonly data: Partial<ZohoSignRequestData>;
|
|
@@ -397,3 +443,46 @@ export type ZohoSignDeleteDocumentFunction = (input: ZohoSignDeleteDocumentInput
|
|
|
397
443
|
* ```
|
|
398
444
|
*/
|
|
399
445
|
export declare function zohoSignDeleteDocument(context: ZohoSignContext): ZohoSignDeleteDocumentFunction;
|
|
446
|
+
export interface ZohoSignGetEmbeddedSigningUrlInput {
|
|
447
|
+
readonly requestId: ZohoSignRequestId;
|
|
448
|
+
readonly actionId: ZohoSignActionId;
|
|
449
|
+
/**
|
|
450
|
+
* Hosting origin embedded in the returned token, e.g. 'https://app.example.com'.
|
|
451
|
+
*/
|
|
452
|
+
readonly host: string;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Response containing a short-lived embedded signing URL.
|
|
456
|
+
*/
|
|
457
|
+
export interface ZohoSignGetEmbeddedSigningUrlResponse extends ZohoSignApiResponse {
|
|
458
|
+
readonly sign_url: string;
|
|
459
|
+
}
|
|
460
|
+
export type ZohoSignGetEmbeddedSigningUrlFunction = (input: ZohoSignGetEmbeddedSigningUrlInput) => Promise<ZohoSignGetEmbeddedSigningUrlResponse>;
|
|
461
|
+
/**
|
|
462
|
+
* Creates a {@link ZohoSignGetEmbeddedSigningUrlFunction} bound to the given context.
|
|
463
|
+
*
|
|
464
|
+
* Generates an embedded signing URL (embed token) for a single recipient action, letting
|
|
465
|
+
* consumers surface an in-app signing link instead of relying on the Zoho Sign email. The
|
|
466
|
+
* recipient action must have been created with `is_embedded: true` (see
|
|
467
|
+
* {@link ZohoSignAction.is_embedded}), otherwise no URL is issued. The returned `sign_url` is
|
|
468
|
+
* short-lived (~2 minutes) and single-use — regenerate it via a new call when it expires.
|
|
469
|
+
*
|
|
470
|
+
* @param context - Authenticated Zoho Sign context providing fetch and rate limiting.
|
|
471
|
+
* @returns Function that generates an embedded signing URL for a recipient action.
|
|
472
|
+
*
|
|
473
|
+
* @see https://www.zoho.com/sign/api/embedded-signing.html
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* ```typescript
|
|
477
|
+
* const getSigningUrl = zohoSignGetEmbeddedSigningUrl(context);
|
|
478
|
+
*
|
|
479
|
+
* const response = await getSigningUrl({
|
|
480
|
+
* requestId: '12345',
|
|
481
|
+
* actionId: '67890',
|
|
482
|
+
* host: 'https://app.example.com'
|
|
483
|
+
* });
|
|
484
|
+
*
|
|
485
|
+
* const signUrl = response.sign_url;
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
export declare function zohoSignGetEmbeddedSigningUrl(context: ZohoSignContext): ZohoSignGetEmbeddedSigningUrlFunction;
|
package/src/lib/sign/sign.d.ts
CHANGED
|
@@ -132,6 +132,24 @@ export interface ZohoSignAction {
|
|
|
132
132
|
readonly private_notes?: string;
|
|
133
133
|
readonly in_person_name?: string;
|
|
134
134
|
readonly in_person_email?: EmailAddress;
|
|
135
|
+
/**
|
|
136
|
+
* Template placeholder role this recipient fills in. Used when creating a document from a template.
|
|
137
|
+
*/
|
|
138
|
+
readonly role?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Recipient phone number, used for SMS verification.
|
|
141
|
+
*/
|
|
142
|
+
readonly recipient_phonenumber?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Country code for the recipient phone number.
|
|
145
|
+
*/
|
|
146
|
+
readonly recipient_countrycode?: string;
|
|
147
|
+
/**
|
|
148
|
+
* When true, this recipient signs within your application (embedded signing) rather than via the Zoho Sign email.
|
|
149
|
+
*
|
|
150
|
+
* Required for {@link ZohoSignGetEmbeddedSigningUrlFunction} to return a signing URL for this action.
|
|
151
|
+
*/
|
|
152
|
+
readonly is_embedded?: boolean;
|
|
135
153
|
readonly fields?: ZohoSignActionFields;
|
|
136
154
|
}
|
|
137
155
|
/**
|
|
@@ -233,3 +251,23 @@ export interface ZohoSignRequestData {
|
|
|
233
251
|
readonly folder_id?: ZohoSignFolderId;
|
|
234
252
|
readonly actions: ZohoSignAction[];
|
|
235
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* Prefill values for a template's fields, keyed by field label, grouped by value type.
|
|
256
|
+
*/
|
|
257
|
+
export interface ZohoSignTemplateFieldData {
|
|
258
|
+
readonly field_text_data?: Record<string, string>;
|
|
259
|
+
readonly field_boolean_data?: Record<string, boolean>;
|
|
260
|
+
readonly field_date_data?: Record<string, string>;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Input data for creating a Zoho Sign request from a template.
|
|
264
|
+
*
|
|
265
|
+
* Sent inside the `templates` envelope of the create-document-from-template call. Each entry in
|
|
266
|
+
* {@link actions} addresses a template placeholder recipient (matched by `action_id` or `role`).
|
|
267
|
+
*/
|
|
268
|
+
export interface ZohoSignCreateDocumentFromTemplateData {
|
|
269
|
+
readonly request_name?: string;
|
|
270
|
+
readonly notes?: string;
|
|
271
|
+
readonly field_data?: ZohoSignTemplateFieldData;
|
|
272
|
+
readonly actions: ZohoSignAction[];
|
|
273
|
+
}
|