boldsign 3.1.4 → 3.2.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/.openapi-generator/FILES +188 -184
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +23 -23
- package/LICENSE +21 -21
- package/README.md +350 -345
- package/api/apis.ts +208 -208
- package/api/brandingApi.ts +1233 -1233
- package/api/contactsApi.ts +772 -772
- package/api/customFieldApi.ts +817 -817
- package/api/documentApi.ts +3470 -3470
- package/api/groupContactsApi.ts +779 -779
- package/api/identityVerificationApi.ts +586 -586
- package/api/index.ts +38 -38
- package/api/planApi.ts +274 -274
- package/api/senderIdentitiesApi.ts +1017 -1017
- package/api/teamsApi.ts +661 -661
- package/api/templateApi.ts +2188 -2046
- package/api/userApi.ts +1094 -1094
- package/api.ts +3 -3
- package/dist/api/apis.d.ts +1 -1
- package/dist/api/apis.js +1 -1
- package/dist/api/templateApi.d.ts +2 -1
- package/dist/api/templateApi.js +90 -0
- package/dist/api/templateApi.js.map +1 -1
- package/dist/model/documentProperties.d.ts +3 -0
- package/dist/model/documentProperties.js +15 -0
- package/dist/model/documentProperties.js.map +1 -1
- package/dist/model/errorResponse.d.ts +15 -0
- package/dist/model/errorResponse.js +23 -0
- package/dist/model/errorResponse.js.map +1 -0
- package/dist/model/index.d.ts +5 -1
- package/dist/model/index.js +17 -3
- package/dist/model/index.js.map +1 -1
- package/dist/model/templateProperties.d.ts +1 -0
- package/dist/model/templateProperties.js +5 -0
- package/dist/model/templateProperties.js.map +1 -1
- package/dist/model/templateShareErrorResponse.d.ts +17 -0
- package/dist/model/templateShareErrorResponse.js +33 -0
- package/dist/model/templateShareErrorResponse.js.map +1 -0
- package/dist/model/templateShareRequest.d.ts +15 -0
- package/dist/model/templateShareRequest.js +18 -0
- package/dist/model/templateShareRequest.js.map +1 -0
- package/dist/model/templateTeamShareRequest.d.ts +26 -0
- package/dist/model/templateTeamShareRequest.js +40 -0
- package/dist/model/templateTeamShareRequest.js.map +1 -0
- package/dist/model/textTagDefinition.d.ts +2 -0
- package/dist/model/textTagDefinition.js +5 -0
- package/dist/model/textTagDefinition.js.map +1 -1
- package/docs/AccessCodeDetail.md +19 -19
- package/docs/AccessCodeDetails.md +13 -13
- package/docs/Added.md +13 -13
- package/docs/Address.md +16 -16
- package/docs/AttachmentInfo.md +14 -14
- package/docs/AuditTrail.md +25 -25
- package/docs/AuthenticationSettings.md +11 -11
- package/docs/Base64File.md +12 -12
- package/docs/BehalfDocument.md +29 -29
- package/docs/BehalfDocumentRecords.md +12 -12
- package/docs/BehalfOf.md +12 -12
- package/docs/BillingViewModel.md +11 -11
- package/docs/BrandCreated.md +11 -11
- package/docs/BrandCustomFieldDetails.md +16 -16
- package/docs/BrandingApi.md +268 -268
- package/docs/BrandingMessage.md +11 -11
- package/docs/BrandingRecords.md +11 -11
- package/docs/ChangeRecipient.md +18 -18
- package/docs/ChangeTeamRequest.md +12 -12
- package/docs/CollaborationSettings.md +14 -14
- package/docs/ConditionalRule.md +13 -13
- package/docs/ContactCreated.md +12 -12
- package/docs/ContactDetails.md +15 -15
- package/docs/ContactPageDetails.md +13 -13
- package/docs/ContactsApi.md +176 -176
- package/docs/ContactsDetails.md +16 -16
- package/docs/ContactsList.md +12 -12
- package/docs/CreateContactResponse.md +11 -11
- package/docs/CreateGroupContactResponse.md +12 -12
- package/docs/CreateSenderIdentityRequest.md +17 -17
- package/docs/CreateTeamRequest.md +11 -11
- package/docs/CreateTemplateRequest.md +39 -39
- package/docs/CreateUser.md +14 -14
- package/docs/Creators.md +12 -12
- package/docs/CustomDomainSettings.md +12 -12
- package/docs/CustomFieldApi.md +174 -174
- package/docs/CustomFieldCollection.md +11 -11
- package/docs/CustomFieldMessage.md +12 -12
- package/docs/CustomFormField.md +44 -44
- package/docs/Date.md +13 -13
- package/docs/DeleteCustomFieldReply.md +11 -11
- package/docs/Document.md +28 -28
- package/docs/DocumentApi.md +891 -891
- package/docs/DocumentCC.md +11 -11
- package/docs/DocumentCcDetails.md +12 -12
- package/docs/DocumentCreated.md +11 -11
- package/docs/DocumentEdited.md +11 -11
- package/docs/DocumentExpirySettings.md +16 -16
- package/docs/DocumentFiles.md +16 -16
- package/docs/DocumentFormFields.md +53 -53
- package/docs/DocumentInfo.md +14 -14
- package/docs/DocumentProperties.md +57 -54
- package/docs/DocumentReassign.md +13 -13
- package/docs/DocumentRecords.md +12 -12
- package/docs/DocumentSenderDetail.md +14 -14
- package/docs/DocumentSigner.md +34 -34
- package/docs/DocumentSignerDetails.md +41 -41
- package/docs/DocumentTags.md +12 -12
- package/docs/DownloadImageRequest.md +16 -16
- package/docs/EditDocumentFile.md +14 -14
- package/docs/EditDocumentRequest.md +41 -41
- package/docs/EditDocumentSigner.md +35 -35
- package/docs/EditFormField.md +52 -52
- package/docs/EditSenderIdentityRequest.md +15 -15
- package/docs/EditTemplateRequest.md +34 -34
- package/docs/EditableDateFieldSettings.md +14 -14
- package/docs/EmbeddedCreateTemplateRequest.md +50 -50
- package/docs/EmbeddedCustomFieldCreated.md +11 -11
- package/docs/EmbeddedDocumentEditJsonRequest.md +19 -19
- package/docs/EmbeddedDocumentEdited.md +11 -11
- package/docs/EmbeddedDocumentRequest.md +58 -58
- package/docs/EmbeddedFileDetails.md +16 -16
- package/docs/EmbeddedFileLink.md +11 -11
- package/docs/EmbeddedMergeTemplateFormRequest.md +59 -59
- package/docs/EmbeddedSendCreated.md +12 -12
- package/docs/EmbeddedSendTemplateFormRequest.md +56 -56
- package/docs/EmbeddedSigningLink.md +11 -11
- package/docs/EmbeddedTemplateCreated.md +12 -12
- package/docs/EmbeddedTemplateEditRequest.md +21 -21
- package/docs/EmbeddedTemplateEdited.md +11 -11
- package/docs/EmbeddedTemplatePreview.md +11 -11
- package/docs/EmbeddedTemplatePreviewJsonRequest.md +12 -12
- package/docs/Error.md +12 -12
- package/docs/ErrorResult.md +11 -11
- package/docs/ExistingFormField.md +15 -15
- package/docs/ExtendExpiry.md +14 -14
- package/docs/FileInfo.md +14 -14
- package/docs/Font.md +18 -18
- package/docs/FormField.md +53 -53
- package/docs/FormFieldPermission.md +13 -13
- package/docs/FormGroup.md +15 -15
- package/docs/FormulaFieldSettings.md +12 -12
- package/docs/GetGroupContactDetails.md +15 -15
- package/docs/GroupContact.md +14 -14
- package/docs/GroupContactDetails.md +13 -13
- package/docs/GroupContactsApi.md +177 -177
- package/docs/GroupContactsList.md +12 -12
- package/docs/GroupSigner.md +17 -17
- package/docs/GroupSignerSettings.md +12 -12
- package/docs/GroupUser.md +12 -12
- package/docs/IdDocument.md +21 -21
- package/docs/IdReport.md +14 -14
- package/docs/IdVerification.md +19 -19
- package/docs/IdVerificationDetails.md +20 -20
- package/docs/IdentityVerificationApi.md +109 -109
- package/docs/IdentityVerificationSettings.md +17 -17
- package/docs/ImageInfo.md +13 -13
- package/docs/MergeAndSendForSignForm.md +49 -49
- package/docs/ModificationDetails.md +12 -12
- package/docs/NotificationSettings.md +22 -22
- package/docs/PageDetails.md +16 -16
- package/docs/PhoneNumber.md +12 -12
- package/docs/PlanApi.md +38 -38
- package/docs/PrefillField.md +12 -12
- package/docs/PrefillFieldRequest.md +12 -12
- package/docs/ProblemDetails.md +15 -15
- package/docs/RecipientChangeLog.md +12 -12
- package/docs/RecipientNotificationSettings.md +22 -22
- package/docs/Rectangle.md +14 -14
- package/docs/ReminderMessage.md +13 -13
- package/docs/ReminderSettings.md +13 -13
- package/docs/RemoveAuthentication.md +14 -14
- package/docs/Removed.md +13 -13
- package/docs/RevokeDocument.md +12 -12
- package/docs/Role.md +35 -35
- package/docs/Roles.md +36 -36
- package/docs/SendForSign.md +48 -48
- package/docs/SendForSignFromTemplateForm.md +46 -46
- package/docs/SenderIdentitiesApi.md +243 -243
- package/docs/SenderIdentityCreated.md +11 -11
- package/docs/SenderIdentityList.md +12 -12
- package/docs/SenderIdentityViewModel.md +21 -21
- package/docs/SignatureFrameSettings.md +14 -14
- package/docs/SignerAuthenticationSettings.md +12 -12
- package/docs/Size.md +12 -12
- package/docs/TeamCreated.md +11 -11
- package/docs/TeamDocumentRecords.md +12 -12
- package/docs/TeamListResponse.md +12 -12
- package/docs/TeamPageDetails.md +12 -12
- package/docs/TeamResponse.md +15 -15
- package/docs/TeamUpdateRequest.md +12 -12
- package/docs/TeamUsers.md +16 -16
- package/docs/Teams.md +14 -14
- package/docs/TeamsApi.md +141 -141
- package/docs/Template.md +29 -29
- package/docs/TemplateApi.md +554 -520
- package/docs/TemplateCC.md +12 -12
- package/docs/TemplateCreated.md +11 -11
- package/docs/TemplateFiles.md +14 -14
- package/docs/TemplateFormFields.md +53 -53
- package/docs/TemplateGroupSigner.md +12 -12
- package/docs/TemplateProperties.md +42 -41
- package/docs/TemplateRecords.md +12 -12
- package/docs/TemplateRole.md +30 -30
- package/docs/TemplateSenderDetail.md +12 -12
- package/docs/TemplateSenderDetails.md +13 -13
- package/docs/TemplateSharedTemplateDetail.md +12 -12
- package/docs/TemplateSharing.md +11 -11
- package/docs/TemplateSignerDetails.md +29 -29
- package/docs/TemplateTag.md +14 -14
- package/docs/TemplateTeamShare.md +12 -12
- package/docs/TextTagDefinition.md +43 -42
- package/docs/TextTagOffset.md +12 -12
- package/docs/UpdateGroupContact.md +13 -13
- package/docs/UpdateUser.md +14 -14
- package/docs/UpdateUserMetaData.md +12 -12
- package/docs/UserApi.md +275 -275
- package/docs/UserPageDetails.md +12 -12
- package/docs/UserProperties.md +21 -21
- package/docs/UserRecords.md +12 -12
- package/docs/UsersDetails.md +21 -21
- package/docs/Validation.md +13 -13
- package/docs/VerificationDataRequest.md +15 -15
- package/docs/ViewBrandDetails.md +36 -36
- package/docs/ViewCustomFieldDetails.md +17 -17
- package/git_push.sh +57 -57
- package/model/accessCodeDetail.ts +91 -91
- package/model/accessCodeDetails.ts +44 -44
- package/model/added.ts +43 -43
- package/model/address.ts +61 -61
- package/model/attachmentInfo.ts +49 -49
- package/model/auditTrail.ts +201 -201
- package/model/authenticationSettings.ts +39 -39
- package/model/base64File.ts +37 -37
- package/model/behalfDocument.ts +154 -154
- package/model/behalfDocumentRecords.ts +39 -39
- package/model/behalfOf.ts +37 -37
- package/model/billingViewModel.ts +31 -31
- package/model/brandCreated.ts +31 -31
- package/model/brandCustomFieldDetails.ts +62 -62
- package/model/brandingMessage.ts +31 -31
- package/model/brandingRecords.ts +32 -32
- package/model/changeRecipient.ts +74 -74
- package/model/changeTeamRequest.ts +37 -37
- package/model/collaborationSettings.ts +49 -49
- package/model/conditionalRule.ts +43 -43
- package/model/contactCreated.ts +37 -37
- package/model/contactDetails.ts +56 -56
- package/model/contactPageDetails.ts +43 -43
- package/model/contactsDetails.ts +62 -62
- package/model/contactsList.ts +39 -39
- package/model/createContactResponse.ts +32 -32
- package/model/createGroupContactResponse.ts +37 -37
- package/model/createSenderIdentityRequest.ts +93 -93
- package/model/createTeamRequest.ts +31 -31
- package/model/createTemplateRequest.ts +214 -214
- package/model/createUser.ts +56 -56
- package/model/creators.ts +37 -37
- package/model/customDomainSettings.ts +37 -37
- package/model/customFieldCollection.ts +32 -32
- package/model/customFieldMessage.ts +37 -37
- package/model/customFormField.ts +282 -282
- package/model/deleteCustomFieldReply.ts +31 -31
- package/model/document.ts +147 -147
- package/model/documentCC.ts +31 -31
- package/model/documentCcDetails.ts +37 -37
- package/model/documentCreated.ts +31 -31
- package/model/documentEdited.ts +37 -37
- package/model/documentExpirySettings.ts +68 -68
- package/model/documentFiles.ts +61 -61
- package/model/documentFormFields.ts +316 -316
- package/model/documentInfo.ts +100 -100
- package/model/documentProperties.ts +364 -346
- package/model/documentReassign.ts +43 -43
- package/model/documentRecords.ts +39 -39
- package/model/documentSenderDetail.ts +49 -49
- package/model/documentSigner.ts +247 -247
- package/model/documentSignerDetails.ts +298 -298
- package/model/documentTags.ts +37 -37
- package/model/downloadImageRequest.ts +61 -61
- package/model/editDocumentFile.ts +56 -56
- package/model/editDocumentRequest.ts +236 -236
- package/model/editDocumentSigner.ts +255 -255
- package/model/editFormField.ts +338 -338
- package/model/editSenderIdentityRequest.ts +81 -81
- package/model/editTemplateRequest.ts +183 -183
- package/model/editableDateFieldSettings.ts +49 -49
- package/model/embeddedCreateTemplateRequest.ts +307 -307
- package/model/embeddedCustomFieldCreated.ts +31 -31
- package/model/embeddedDocumentEditJsonRequest.ts +108 -108
- package/model/embeddedDocumentEdited.ts +31 -31
- package/model/embeddedDocumentRequest.ts +364 -364
- package/model/embeddedFileDetails.ts +61 -61
- package/model/embeddedFileLink.ts +31 -31
- package/model/embeddedMergeTemplateFormRequest.ts +370 -370
- package/model/embeddedSendCreated.ts +37 -37
- package/model/embeddedSendTemplateFormRequest.ts +351 -351
- package/model/embeddedSigningLink.ts +31 -31
- package/model/embeddedTemplateCreated.ts +37 -37
- package/model/embeddedTemplateEditRequest.ts +120 -120
- package/model/embeddedTemplateEdited.ts +31 -31
- package/model/embeddedTemplatePreview.ts +31 -31
- package/model/embeddedTemplatePreviewJsonRequest.ts +37 -37
- package/model/errorResponse.ts +37 -0
- package/model/errorResult.ts +31 -31
- package/model/existingFormField.ts +55 -55
- package/model/extendExpiry.ts +49 -49
- package/model/fileInfo.ts +49 -49
- package/model/font.ts +88 -88
- package/model/formField.ts +340 -340
- package/model/formFieldPermission.ts +43 -43
- package/model/formGroup.ts +63 -63
- package/model/formulaFieldSettings.ts +37 -37
- package/model/getGroupContactDetails.ts +57 -57
- package/model/groupContact.ts +50 -50
- package/model/groupContactDetails.ts +44 -44
- package/model/groupContactsList.ts +39 -39
- package/model/groupSigner.ts +77 -77
- package/model/groupSignerSettings.ts +37 -37
- package/model/groupUser.ts +37 -37
- package/model/idDocument.ts +93 -93
- package/model/idReport.ts +50 -50
- package/model/idVerification.ts +79 -79
- package/model/idVerificationDetails.ts +85 -85
- package/model/identityVerificationSettings.ts +84 -84
- package/model/imageInfo.ts +43 -43
- package/model/index.ts +680 -666
- package/model/mergeAndSendForSignForm.ts +283 -283
- package/model/modelDate.ts +43 -43
- package/model/modelError.ts +37 -37
- package/model/models.ts +244 -244
- package/model/modificationDetails.ts +37 -37
- package/model/notificationSettings.ts +97 -97
- package/model/pageDetails.ts +61 -61
- package/model/phoneNumber.ts +37 -37
- package/model/prefillField.ts +37 -37
- package/model/prefillFieldRequest.ts +38 -38
- package/model/problemDetails.ts +55 -55
- package/model/recipientChangeLog.ts +39 -39
- package/model/recipientNotificationSettings.ts +97 -97
- package/model/rectangle.ts +49 -49
- package/model/reminderMessage.ts +44 -44
- package/model/reminderSettings.ts +43 -43
- package/model/removeAuthentication.ts +50 -50
- package/model/removed.ts +43 -43
- package/model/revokeDocument.ts +37 -37
- package/model/role.ts +254 -254
- package/model/roles.ts +258 -258
- package/model/sendForSign.ts +277 -277
- package/model/sendForSignFromTemplateForm.ts +264 -264
- package/model/senderIdentityCreated.ts +31 -31
- package/model/senderIdentityList.ts +39 -39
- package/model/senderIdentityViewModel.ts +92 -92
- package/model/signatureFrameSettings.ts +49 -49
- package/model/signerAuthenticationSettings.ts +37 -37
- package/model/size.ts +37 -37
- package/model/teamCreated.ts +31 -31
- package/model/teamDocumentRecords.ts +39 -39
- package/model/teamListResponse.ts +39 -39
- package/model/teamPageDetails.ts +37 -37
- package/model/teamResponse.ts +56 -56
- package/model/teamUpdateRequest.ts +37 -37
- package/model/teamUsers.ts +73 -73
- package/model/teams.ts +49 -49
- package/model/template.ts +159 -159
- package/model/templateCC.ts +37 -37
- package/model/templateCreated.ts +31 -31
- package/model/templateFiles.ts +49 -49
- package/model/templateFormFields.ts +315 -315
- package/model/templateGroupSigner.ts +37 -37
- package/model/templateProperties.ts +240 -234
- package/model/templateRecords.ts +39 -39
- package/model/templateRole.ts +221 -221
- package/model/templateSenderDetail.ts +37 -37
- package/model/templateSenderDetails.ts +43 -43
- package/model/templateShareErrorResponse.ts +49 -0
- package/model/templateShareRequest.ts +32 -0
- package/model/templateSharedTemplateDetail.ts +43 -43
- package/model/templateSharing.ts +32 -32
- package/model/templateSignerDetails.ts +173 -173
- package/model/templateTag.ts +49 -49
- package/model/templateTeamShare.ts +44 -44
- package/model/templateTeamShareRequest.ts +53 -0
- package/model/textTagDefinition.ts +268 -261
- package/model/textTagOffset.ts +37 -37
- package/model/updateGroupContact.ts +44 -44
- package/model/updateUser.ts +60 -60
- package/model/updateUserMetaData.ts +37 -37
- package/model/userPageDetails.ts +37 -37
- package/model/userProperties.ts +91 -91
- package/model/userRecords.ts +39 -39
- package/model/usersDetails.ts +91 -91
- package/model/validation.ts +52 -52
- package/model/verificationDataRequest.ts +55 -55
- package/model/viewBrandDetails.ts +190 -190
- package/model/viewCustomFieldDetails.ts +68 -68
- package/package.json +52 -52
- package/tsconfig.json +24 -24
- package/boldsign-3.1.4.tgz +0 -0
- package/dist/examples/DocumentProperties.d.ts +0 -1
- package/dist/examples/DocumentProperties.js +0 -28
- package/dist/examples/DocumentProperties.js.map +0 -1
- package/dist/examples/brandCreate.d.ts +0 -1
- package/dist/examples/brandCreate.js +0 -68
- package/dist/examples/brandCreate.js.map +0 -1
- package/dist/examples/brandDelete.d.ts +0 -1
- package/dist/examples/brandDelete.js +0 -28
- package/dist/examples/brandDelete.js.map +0 -1
- package/dist/examples/brandGet.d.ts +0 -1
- package/dist/examples/brandGet.js +0 -28
- package/dist/examples/brandGet.js.map +0 -1
- package/dist/examples/brandList.d.ts +0 -1
- package/dist/examples/brandList.js +0 -27
- package/dist/examples/brandList.js.map +0 -1
- package/dist/examples/brandResetDefault.d.ts +0 -1
- package/dist/examples/brandResetDefault.js +0 -28
- package/dist/examples/brandResetDefault.js.map +0 -1
- package/dist/examples/brandUpdate.d.ts +0 -1
- package/dist/examples/brandUpdate.js +0 -68
- package/dist/examples/brandUpdate.js.map +0 -1
- package/dist/examples/contactCreate.d.ts +0 -1
- package/dist/examples/contactCreate.js +0 -38
- package/dist/examples/contactCreate.js.map +0 -1
- package/dist/examples/contactDelete.d.ts +0 -1
- package/dist/examples/contactDelete.js +0 -28
- package/dist/examples/contactDelete.js.map +0 -1
- package/dist/examples/contactGet.d.ts +0 -1
- package/dist/examples/contactGet.js +0 -28
- package/dist/examples/contactGet.js.map +0 -1
- package/dist/examples/contactGroupDelete.d.ts +0 -1
- package/dist/examples/contactGroupDelete.js +0 -27
- package/dist/examples/contactGroupDelete.js.map +0 -1
- package/dist/examples/contactGroupGet.d.ts +0 -1
- package/dist/examples/contactGroupGet.js +0 -27
- package/dist/examples/contactGroupGet.js.map +0 -1
- package/dist/examples/contactGroupList.d.ts +0 -1
- package/dist/examples/contactGroupList.js +0 -29
- package/dist/examples/contactGroupList.js.map +0 -1
- package/dist/examples/contactGroupUpdate.d.ts +0 -1
- package/dist/examples/contactGroupUpdate.js +0 -34
- package/dist/examples/contactGroupUpdate.js.map +0 -1
- package/dist/examples/contactGroupsCreate.d.ts +0 -1
- package/dist/examples/contactGroupsCreate.js +0 -35
- package/dist/examples/contactGroupsCreate.js.map +0 -1
- package/dist/examples/contactList.d.ts +0 -1
- package/dist/examples/contactList.js +0 -29
- package/dist/examples/contactList.js.map +0 -1
- package/dist/examples/contactUpdate.d.ts +0 -1
- package/dist/examples/contactUpdate.js +0 -38
- package/dist/examples/contactUpdate.js.map +0 -1
- package/dist/examples/customFieldCreate.d.ts +0 -1
- package/dist/examples/customFieldCreate.js +0 -39
- package/dist/examples/customFieldCreate.js.map +0 -1
- package/dist/examples/customFieldDelete.d.ts +0 -1
- package/dist/examples/customFieldDelete.js +0 -28
- package/dist/examples/customFieldDelete.js.map +0 -1
- package/dist/examples/customFieldEdit.d.ts +0 -1
- package/dist/examples/customFieldEdit.js +0 -40
- package/dist/examples/customFieldEdit.js.map +0 -1
- package/dist/examples/customFieldEmbeddedCreateUrl.d.ts +0 -1
- package/dist/examples/customFieldEmbeddedCreateUrl.js +0 -31
- package/dist/examples/customFieldEmbeddedCreateUrl.js.map +0 -1
- package/dist/examples/customFieldList.d.ts +0 -1
- package/dist/examples/customFieldList.js +0 -28
- package/dist/examples/customFieldList.js.map +0 -1
- package/dist/examples/documentAddAuthentication.d.ts +0 -1
- package/dist/examples/documentAddAuthentication.js +0 -32
- package/dist/examples/documentAddAuthentication.js.map +0 -1
- package/dist/examples/documentAddTags.d.ts +0 -1
- package/dist/examples/documentAddTags.js +0 -31
- package/dist/examples/documentAddTags.js.map +0 -1
- package/dist/examples/documentCancelEditing.d.ts +0 -1
- package/dist/examples/documentCancelEditing.js +0 -27
- package/dist/examples/documentCancelEditing.js.map +0 -1
- package/dist/examples/documentChangeAccessCode.d.ts +0 -1
- package/dist/examples/documentChangeAccessCode.js +0 -32
- package/dist/examples/documentChangeAccessCode.js.map +0 -1
- package/dist/examples/documentChangeRecipients.d.ts +0 -1
- package/dist/examples/documentChangeRecipients.js +0 -34
- package/dist/examples/documentChangeRecipients.js.map +0 -1
- package/dist/examples/documentCreateEmbeddedEditUrl.d.ts +0 -1
- package/dist/examples/documentCreateEmbeddedEditUrl.js +0 -32
- package/dist/examples/documentCreateEmbeddedEditUrl.js.map +0 -1
- package/dist/examples/documentDelete.d.ts +0 -1
- package/dist/examples/documentDelete.js +0 -29
- package/dist/examples/documentDelete.js.map +0 -1
- package/dist/examples/documentDeleteTags.d.ts +0 -1
- package/dist/examples/documentDeleteTags.js +0 -31
- package/dist/examples/documentDeleteTags.js.map +0 -1
- package/dist/examples/documentDownload.d.ts +0 -1
- package/dist/examples/documentDownload.js +0 -29
- package/dist/examples/documentDownload.js.map +0 -1
- package/dist/examples/documentDownloadAttachment.d.ts +0 -1
- package/dist/examples/documentDownloadAttachment.js +0 -30
- package/dist/examples/documentDownloadAttachment.js.map +0 -1
- package/dist/examples/documentDownloadAuditTrial.d.ts +0 -1
- package/dist/examples/documentDownloadAuditTrial.js +0 -29
- package/dist/examples/documentDownloadAuditTrial.js.map +0 -1
- package/dist/examples/documentEdit.d.ts +0 -1
- package/dist/examples/documentEdit.js +0 -86
- package/dist/examples/documentEdit.js.map +0 -1
- package/dist/examples/documentEmbeddedRequestLink.d.ts +0 -1
- package/dist/examples/documentEmbeddedRequestLink.js +0 -96
- package/dist/examples/documentEmbeddedRequestLink.js.map +0 -1
- package/dist/examples/documentEmbeddedSignLink.d.ts +0 -1
- package/dist/examples/documentEmbeddedSignLink.js +0 -35
- package/dist/examples/documentEmbeddedSignLink.js.map +0 -1
- package/dist/examples/documentExtendExpiry.d.ts +0 -1
- package/dist/examples/documentExtendExpiry.js +0 -32
- package/dist/examples/documentExtendExpiry.js.map +0 -1
- package/dist/examples/documentList.d.ts +0 -1
- package/dist/examples/documentList.js +0 -29
- package/dist/examples/documentList.js.map +0 -1
- package/dist/examples/documentListBehalf.d.ts +0 -1
- package/dist/examples/documentListBehalf.js +0 -28
- package/dist/examples/documentListBehalf.js.map +0 -1
- package/dist/examples/documentListTeam.d.ts +0 -1
- package/dist/examples/documentListTeam.js +0 -28
- package/dist/examples/documentListTeam.js.map +0 -1
- package/dist/examples/documentPrefillFieldCheckBox.d.ts +0 -1
- package/dist/examples/documentPrefillFieldCheckBox.js +0 -34
- package/dist/examples/documentPrefillFieldCheckBox.js.map +0 -1
- package/dist/examples/documentPrefillFieldDropDown.d.ts +0 -1
- package/dist/examples/documentPrefillFieldDropDown.js +0 -34
- package/dist/examples/documentPrefillFieldDropDown.js.map +0 -1
- package/dist/examples/documentPrefillFieldEditableDate.d.ts +0 -1
- package/dist/examples/documentPrefillFieldEditableDate.js +0 -34
- package/dist/examples/documentPrefillFieldEditableDate.js.map +0 -1
- package/dist/examples/documentPrefillFieldImage.d.ts +0 -1
- package/dist/examples/documentPrefillFieldImage.js +0 -34
- package/dist/examples/documentPrefillFieldImage.js.map +0 -1
- package/dist/examples/documentPrefillFieldRadioButton.d.ts +0 -1
- package/dist/examples/documentPrefillFieldRadioButton.js +0 -34
- package/dist/examples/documentPrefillFieldRadioButton.js.map +0 -1
- package/dist/examples/documentPrefillFieldTextBox.d.ts +0 -1
- package/dist/examples/documentPrefillFieldTextBox.js +0 -34
- package/dist/examples/documentPrefillFieldTextBox.js.map +0 -1
- package/dist/examples/documentRemoveAuthentication.d.ts +0 -1
- package/dist/examples/documentRemoveAuthentication.js +0 -31
- package/dist/examples/documentRemoveAuthentication.js.map +0 -1
- package/dist/examples/documentRevoke.d.ts +0 -1
- package/dist/examples/documentRevoke.js +0 -31
- package/dist/examples/documentRevoke.js.map +0 -1
- package/dist/examples/documentSend.d.ts +0 -1
- package/dist/examples/documentSend.js +0 -90
- package/dist/examples/documentSend.js.map +0 -1
- package/dist/examples/documentSendOnBehalf.d.ts +0 -1
- package/dist/examples/documentSendOnBehalf.js +0 -101
- package/dist/examples/documentSendOnBehalf.js.map +0 -1
- package/dist/examples/documentSendReminder.d.ts +0 -1
- package/dist/examples/documentSendReminder.js +0 -32
- package/dist/examples/documentSendReminder.js.map +0 -1
- package/dist/examples/draftSend.d.ts +0 -1
- package/dist/examples/draftSend.js +0 -27
- package/dist/examples/draftSend.js.map +0 -1
- package/dist/examples/embeddedCreatePreviewUrl.d.ts +0 -1
- package/dist/examples/embeddedCreatePreviewUrl.js +0 -29
- package/dist/examples/embeddedCreatePreviewUrl.js.map +0 -1
- package/dist/examples/embeddedManualVerification.d.ts +0 -1
- package/dist/examples/embeddedManualVerification.js +0 -34
- package/dist/examples/embeddedManualVerification.js.map +0 -1
- package/dist/examples/identityVerificationImage.d.ts +0 -1
- package/dist/examples/identityVerificationImage.js +0 -34
- package/dist/examples/identityVerificationImage.js.map +0 -1
- package/dist/examples/identityVerificationReport.d.ts +0 -1
- package/dist/examples/identityVerificationReport.js +0 -33
- package/dist/examples/identityVerificationReport.js.map +0 -1
- package/dist/examples/listTemplate.d.ts +0 -1
- package/dist/examples/listTemplate.js +0 -29
- package/dist/examples/listTemplate.js.map +0 -1
- package/dist/examples/plan.d.ts +0 -1
- package/dist/examples/plan.js +0 -27
- package/dist/examples/plan.js.map +0 -1
- package/dist/examples/senderIdentityCreate.d.ts +0 -1
- package/dist/examples/senderIdentityCreate.js +0 -33
- package/dist/examples/senderIdentityCreate.js.map +0 -1
- package/dist/examples/senderIdentityDelete.d.ts +0 -1
- package/dist/examples/senderIdentityDelete.js +0 -28
- package/dist/examples/senderIdentityDelete.js.map +0 -1
- package/dist/examples/senderIdentityList.d.ts +0 -1
- package/dist/examples/senderIdentityList.js +0 -29
- package/dist/examples/senderIdentityList.js.map +0 -1
- package/dist/examples/senderIdentityProperties.d.ts +0 -1
- package/dist/examples/senderIdentityProperties.js +0 -27
- package/dist/examples/senderIdentityProperties.js.map +0 -1
- package/dist/examples/senderIdentityRerequest.d.ts +0 -1
- package/dist/examples/senderIdentityRerequest.js +0 -28
- package/dist/examples/senderIdentityRerequest.js.map +0 -1
- package/dist/examples/senderIdentityResendInvitation.d.ts +0 -1
- package/dist/examples/senderIdentityResendInvitation.js +0 -28
- package/dist/examples/senderIdentityResendInvitation.js.map +0 -1
- package/dist/examples/senderIdentityUpdate.d.ts +0 -1
- package/dist/examples/senderIdentityUpdate.js +0 -32
- package/dist/examples/senderIdentityUpdate.js.map +0 -1
- package/dist/examples/teamCreate.d.ts +0 -1
- package/dist/examples/teamCreate.js +0 -30
- package/dist/examples/teamCreate.js.map +0 -1
- package/dist/examples/teamGet.d.ts +0 -1
- package/dist/examples/teamGet.js +0 -28
- package/dist/examples/teamGet.js.map +0 -1
- package/dist/examples/teamList.d.ts +0 -1
- package/dist/examples/teamList.js +0 -29
- package/dist/examples/teamList.js.map +0 -1
- package/dist/examples/teamUpdate.d.ts +0 -1
- package/dist/examples/teamUpdate.js +0 -31
- package/dist/examples/teamUpdate.js.map +0 -1
- package/dist/examples/templateAddTag.d.ts +0 -1
- package/dist/examples/templateAddTag.js +0 -32
- package/dist/examples/templateAddTag.js.map +0 -1
- package/dist/examples/templateCreate.d.ts +0 -1
- package/dist/examples/templateCreate.js +0 -91
- package/dist/examples/templateCreate.js.map +0 -1
- package/dist/examples/templateDelete.d.ts +0 -1
- package/dist/examples/templateDelete.js +0 -28
- package/dist/examples/templateDelete.js.map +0 -1
- package/dist/examples/templateDeleteTag.d.ts +0 -1
- package/dist/examples/templateDeleteTag.js +0 -32
- package/dist/examples/templateDeleteTag.js.map +0 -1
- package/dist/examples/templateDetails.d.ts +0 -1
- package/dist/examples/templateDetails.js +0 -28
- package/dist/examples/templateDetails.js.map +0 -1
- package/dist/examples/templateDownload.d.ts +0 -1
- package/dist/examples/templateDownload.js +0 -28
- package/dist/examples/templateDownload.js.map +0 -1
- package/dist/examples/templateEdit.d.ts +0 -1
- package/dist/examples/templateEdit.js +0 -39
- package/dist/examples/templateEdit.js.map +0 -1
- package/dist/examples/templateEmbeddedCreate.d.ts +0 -1
- package/dist/examples/templateEmbeddedCreate.js +0 -76
- package/dist/examples/templateEmbeddedCreate.js.map +0 -1
- package/dist/examples/templateEmbeddedEdit.d.ts +0 -1
- package/dist/examples/templateEmbeddedEdit.js +0 -36
- package/dist/examples/templateEmbeddedEdit.js.map +0 -1
- package/dist/examples/templateEmbeddedRequestLink.d.ts +0 -1
- package/dist/examples/templateEmbeddedRequestLink.js +0 -78
- package/dist/examples/templateEmbeddedRequestLink.js.map +0 -1
- package/dist/examples/templateMergerEmbeddedRequestUrl.d.ts +0 -1
- package/dist/examples/templateMergerEmbeddedRequestUrl.js +0 -80
- package/dist/examples/templateMergerEmbeddedRequestUrl.js.map +0 -1
- package/dist/examples/templateSendDocument.d.ts +0 -1
- package/dist/examples/templateSendDocument.js +0 -102
- package/dist/examples/templateSendDocument.js.map +0 -1
- package/dist/examples/templateSendDocumentUsingMultipleTemplate.d.ts +0 -1
- package/dist/examples/templateSendDocumentUsingMultipleTemplate.js +0 -50
- package/dist/examples/templateSendDocumentUsingMultipleTemplate.js.map +0 -1
- package/dist/examples/userChangeTeam.d.ts +0 -1
- package/dist/examples/userChangeTeam.js +0 -30
- package/dist/examples/userChangeTeam.js.map +0 -1
- package/dist/examples/userCreate.d.ts +0 -1
- package/dist/examples/userCreate.js +0 -32
- package/dist/examples/userCreate.js.map +0 -1
- package/dist/examples/userGet.d.ts +0 -1
- package/dist/examples/userGet.js +0 -28
- package/dist/examples/userGet.js.map +0 -1
- package/dist/examples/userInvitationCancel.d.ts +0 -1
- package/dist/examples/userInvitationCancel.js +0 -28
- package/dist/examples/userInvitationCancel.js.map +0 -1
- package/dist/examples/userList.d.ts +0 -1
- package/dist/examples/userList.js +0 -29
- package/dist/examples/userList.js.map +0 -1
- package/dist/examples/userResendInvitation.d.ts +0 -1
- package/dist/examples/userResendInvitation.js +0 -28
- package/dist/examples/userResendInvitation.js.map +0 -1
- package/dist/examples/userUpdateRole.d.ts +0 -1
- package/dist/examples/userUpdateRole.js +0 -31
- package/dist/examples/userUpdateRole.js.map +0 -1
- package/dist/tests/config.d.ts +0 -5
- package/dist/tests/config.js +0 -43
- package/dist/tests/config.js.map +0 -1
- package/dist/tests/integration/BrandingApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/BrandingApiTest.spec.js +0 -310
- package/dist/tests/integration/BrandingApiTest.spec.js.map +0 -1
- package/dist/tests/integration/ContactsApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/ContactsApiTest.spec.js +0 -249
- package/dist/tests/integration/ContactsApiTest.spec.js.map +0 -1
- package/dist/tests/integration/CustomFieldApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/CustomFieldApiTest.spec.js +0 -289
- package/dist/tests/integration/CustomFieldApiTest.spec.js.map +0 -1
- package/dist/tests/integration/DocumentApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/DocumentApiTest.spec.js +0 -1710
- package/dist/tests/integration/DocumentApiTest.spec.js.map +0 -1
- package/dist/tests/integration/IdentityVerificationApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/IdentityVerificationApiTest.spec.js +0 -160
- package/dist/tests/integration/IdentityVerificationApiTest.spec.js.map +0 -1
- package/dist/tests/integration/TemplateApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/TemplateApiTest.spec.js +0 -1518
- package/dist/tests/integration/TemplateApiTest.spec.js.map +0 -1
- package/dist/tests/integration/planApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/planApiTest.spec.js +0 -41
- package/dist/tests/integration/planApiTest.spec.js.map +0 -1
- package/dist/tests/integration/senderIdentity.spec.d.ts +0 -1
- package/dist/tests/integration/senderIdentity.spec.js +0 -481
- package/dist/tests/integration/senderIdentity.spec.js.map +0 -1
- package/dist/tests/integration/teamsApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/teamsApiTest.spec.js +0 -230
- package/dist/tests/integration/teamsApiTest.spec.js.map +0 -1
- package/dist/tests/integration/usersApiTest.spec.d.ts +0 -1
- package/dist/tests/integration/usersApiTest.spec.js +0 -290
- package/dist/tests/integration/usersApiTest.spec.js.map +0 -1
- package/dist/tests/performance/performanceApiTest.spec.d.ts +0 -1
- package/dist/tests/performance/performanceApiTest.spec.js +0 -368
- package/dist/tests/performance/performanceApiTest.spec.js.map +0 -1
- package/dist/tests/unit/brandingApi.spec.d.ts +0 -1
- package/dist/tests/unit/brandingApi.spec.js +0 -174
- package/dist/tests/unit/brandingApi.spec.js.map +0 -1
- package/dist/tests/unit/contactsApi.spec.d.ts +0 -1
- package/dist/tests/unit/contactsApi.spec.js +0 -154
- package/dist/tests/unit/contactsApi.spec.js.map +0 -1
- package/dist/tests/unit/customFieldApi.spec.d.ts +0 -1
- package/dist/tests/unit/customFieldApi.spec.js +0 -140
- package/dist/tests/unit/customFieldApi.spec.js.map +0 -1
- package/dist/tests/unit/documentApi.spec.d.ts +0 -1
- package/dist/tests/unit/documentApi.spec.js +0 -476
- package/dist/tests/unit/documentApi.spec.js.map +0 -1
- package/dist/tests/unit/planApi.spec.d.ts +0 -1
- package/dist/tests/unit/planApi.spec.js +0 -69
- package/dist/tests/unit/planApi.spec.js.map +0 -1
- package/dist/tests/unit/senderIdentitiesApi.spec.d.ts +0 -1
- package/dist/tests/unit/senderIdentitiesApi.spec.js +0 -148
- package/dist/tests/unit/senderIdentitiesApi.spec.js.map +0 -1
- package/dist/tests/unit/teamApi.spec.d.ts +0 -1
- package/dist/tests/unit/teamApi.spec.js +0 -116
- package/dist/tests/unit/teamApi.spec.js.map +0 -1
- package/dist/tests/unit/templateApi.spec.d.ts +0 -1
- package/dist/tests/unit/templateApi.spec.js +0 -285
- package/dist/tests/unit/templateApi.spec.js.map +0 -1
- package/dist/tests/unit/userApi.spec.d.ts +0 -1
- package/dist/tests/unit/userApi.spec.js +0 -163
- package/dist/tests/unit/userApi.spec.js.map +0 -1
- package/examples/DocumentProperties.ts +0 -15
- package/examples/brandCreate.ts +0 -29
- package/examples/brandDelete.ts +0 -15
- package/examples/brandGet.ts +0 -15
- package/examples/brandList.ts +0 -14
- package/examples/brandResetDefault.ts +0 -15
- package/examples/brandUpdate.ts +0 -21
- package/examples/contactCreate.ts +0 -26
- package/examples/contactDelete.ts +0 -15
- package/examples/contactGet.ts +0 -15
- package/examples/contactGroupDelete.ts +0 -14
- package/examples/contactGroupGet.ts +0 -14
- package/examples/contactGroupList.ts +0 -16
- package/examples/contactGroupUpdate.ts +0 -21
- package/examples/contactGroupsCreate.ts +0 -24
- package/examples/contactList.ts +0 -16
- package/examples/contactUpdate.ts +0 -26
- package/examples/customFieldCreate.ts +0 -28
- package/examples/customFieldDelete.ts +0 -15
- package/examples/customFieldEdit.ts +0 -30
- package/examples/customFieldEmbeddedCreateUrl.ts +0 -19
- package/examples/customFieldList.ts +0 -15
- package/examples/documentAddAuthentication.ts +0 -20
- package/examples/documentAddTags.ts +0 -19
- package/examples/documentCancelEditing.ts +0 -14
- package/examples/documentChangeAccessCode.ts +0 -20
- package/examples/documentChangeRecipients.ts +0 -22
- package/examples/documentCreateEmbeddedEditUrl.ts +0 -19
- package/examples/documentDelete.ts +0 -16
- package/examples/documentDeleteTags.ts +0 -19
- package/examples/documentDownload.ts +0 -16
- package/examples/documentDownloadAttachment.ts +0 -17
- package/examples/documentDownloadAuditTrial.ts +0 -16
- package/examples/documentEdit.ts +0 -43
- package/examples/documentEmbeddedRequestLink.ts +0 -49
- package/examples/documentEmbeddedSignLink.ts +0 -23
- package/examples/documentExtendExpiry.ts +0 -20
- package/examples/documentList.ts +0 -19
- package/examples/documentListBehalf.ts +0 -15
- package/examples/documentListTeam.ts +0 -15
- package/examples/documentPrefillFieldCheckBox.ts +0 -23
- package/examples/documentPrefillFieldDropDown.ts +0 -23
- package/examples/documentPrefillFieldEditableDate.ts +0 -23
- package/examples/documentPrefillFieldImage.ts +0 -23
- package/examples/documentPrefillFieldRadioButton.ts +0 -23
- package/examples/documentPrefillFieldTextBox.ts +0 -23
- package/examples/documentRemoveAuthentication.ts +0 -19
- package/examples/documentRevoke.ts +0 -19
- package/examples/documentSend.ts +0 -51
- package/examples/documentSendOnBehalf.ts +0 -53
- package/examples/documentSendReminder.ts +0 -20
- package/examples/documents/agreement.pdf +0 -0
- package/examples/documents/logo.jpg +0 -0
- package/examples/draftSend.ts +0 -12
- package/examples/embeddedCreatePreviewUrl.ts +0 -15
- package/examples/embeddedManualVerification.ts +0 -22
- package/examples/identityVerificationImage.ts +0 -23
- package/examples/identityVerificationReport.ts +0 -21
- package/examples/listTemplate.ts +0 -16
- package/examples/plan.ts +0 -14
- package/examples/senderIdentityCreate.ts +0 -21
- package/examples/senderIdentityDelete.ts +0 -15
- package/examples/senderIdentityList.ts +0 -16
- package/examples/senderIdentityProperties.ts +0 -15
- package/examples/senderIdentityRerequest.ts +0 -15
- package/examples/senderIdentityResendInvitation.ts +0 -15
- package/examples/senderIdentityUpdate.ts +0 -20
- package/examples/teamCreate.ts +0 -18
- package/examples/teamGet.ts +0 -15
- package/examples/teamList.ts +0 -16
- package/examples/teamUpdate.ts +0 -19
- package/examples/templateAddTag.ts +0 -20
- package/examples/templateCreate.ts +0 -47
- package/examples/templateDelete.ts +0 -15
- package/examples/templateDeleteTag.ts +0 -20
- package/examples/templateDetails.ts +0 -15
- package/examples/templateDownload.ts +0 -15
- package/examples/templateEdit.ts +0 -28
- package/examples/templateEmbeddedCreate.ts +0 -29
- package/examples/templateEmbeddedEdit.ts +0 -24
- package/examples/templateEmbeddedRequestLink.ts +0 -34
- package/examples/templateMergerEmbeddedRequestUrl.ts +0 -37
- package/examples/templateSendDocument.ts +0 -60
- package/examples/templateSendDocumentUsingMultipleTemplate.ts +0 -40
- package/examples/userChangeTeam.ts +0 -15
- package/examples/userCreate.ts +0 -20
- package/examples/userGet.ts +0 -15
- package/examples/userInvitationCancel.ts +0 -15
- package/examples/userList.ts +0 -16
- package/examples/userResendInvitation.ts +0 -15
- package/examples/userUpdateRole.ts +0 -19
- package/tests/config.ts +0 -20
- package/tests/documents/agreement.pdf +0 -0
- package/tests/documents/logo.jpg +0 -0
- package/tests/integration/BrandingApiTest.spec.ts +0 -254
- package/tests/integration/ContactsApiTest.spec.ts +0 -222
- package/tests/integration/CustomFieldApiTest.spec.ts +0 -231
- package/tests/integration/DocumentApiTest.spec.ts +0 -1624
- package/tests/integration/IdentityVerificationApiTest.spec.ts +0 -114
- package/tests/integration/TemplateApiTest.spec.ts +0 -1420
- package/tests/integration/planApiTest.spec.ts +0 -26
- package/tests/integration/senderIdentity.spec.ts +0 -397
- package/tests/integration/teamsApiTest.spec.ts +0 -226
- package/tests/integration/usersApiTest.spec.ts +0 -251
- package/tests/performance/performanceApiTest.spec.ts +0 -362
- package/tests/unit/brandingApi.spec.ts +0 -163
- package/tests/unit/contactsApi.spec.ts +0 -143
- package/tests/unit/customFieldApi.spec.ts +0 -123
- package/tests/unit/documentApi.spec.ts +0 -545
- package/tests/unit/planApi.spec.ts +0 -34
- package/tests/unit/senderIdentitiesApi.spec.ts +0 -148
- package/tests/unit/teamApi.spec.ts +0 -94
- package/tests/unit/templateApi.spec.ts +0 -307
- package/tests/unit/userApi.spec.ts +0 -162
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { DocumentTags } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var documentTags = new DocumentTags();
|
|
8
|
-
documentTags.documentId = "YOUR_DOCUMENT_ID";
|
|
9
|
-
documentTags.tags = ["test", "api"];
|
|
10
|
-
|
|
11
|
-
async function addTagsToDocument() {
|
|
12
|
-
try {
|
|
13
|
-
await documentApi.addTag(documentTags);
|
|
14
|
-
console.log("Tags added successfully!");
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
addTagsToDocument();
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("API_KEY");
|
|
5
|
-
|
|
6
|
-
async function cancelEditing() {
|
|
7
|
-
try {
|
|
8
|
-
await documentApi.cancelEditing("DOCUMENT_ID");
|
|
9
|
-
console.log("Document Editing canceled successfully.");
|
|
10
|
-
} catch (error:any) {
|
|
11
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
cancelEditing();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { AccessCodeDetails } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var accessCodeDetails = new AccessCodeDetails();
|
|
8
|
-
accessCodeDetails.accessCode = "12345";
|
|
9
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
10
|
-
var email = "hankyWhites@cubeflakes.com";
|
|
11
|
-
|
|
12
|
-
async function changeDocumentAccessCode() {
|
|
13
|
-
try {
|
|
14
|
-
await documentApi.changeAccessCode(documentId, accessCodeDetails, email);
|
|
15
|
-
console.log("Access code changed successfully!");
|
|
16
|
-
} catch (error:any) {
|
|
17
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
changeDocumentAccessCode();
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { ChangeRecipient } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var changeRecipient = new ChangeRecipient();
|
|
8
|
-
changeRecipient.newSignerName = "David";
|
|
9
|
-
changeRecipient.newSignerEmail = "david@cubeflakes.com";
|
|
10
|
-
changeRecipient.oldSignerEmail = "hankyWhites@cubeflakes.com";
|
|
11
|
-
changeRecipient.reason = "Wrongly sent";
|
|
12
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
13
|
-
|
|
14
|
-
async function changeDocumentRecipient() {
|
|
15
|
-
try {
|
|
16
|
-
await documentApi.changeRecipient(documentId, changeRecipient);
|
|
17
|
-
console.log("Recipient changed successfully!");
|
|
18
|
-
} catch (error:any) {
|
|
19
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
changeDocumentRecipient();
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { EmbeddedDocumentEditJsonRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("API_KEY");
|
|
6
|
-
var editRequest = new EmbeddedDocumentEditJsonRequest();
|
|
7
|
-
editRequest.locale = EmbeddedDocumentEditJsonRequest.LocaleEnum.En;
|
|
8
|
-
editRequest.showToolbar = true;
|
|
9
|
-
editRequest.redirectUrl = "https://yourapp.com/redirect";
|
|
10
|
-
|
|
11
|
-
async function editDocument() {
|
|
12
|
-
try {
|
|
13
|
-
var editUrl = await documentApi.createEmbeddedEditUrl("DOCUMENT_ID",editRequest)
|
|
14
|
-
console.log("Embedded Edit URL:", editUrl);
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
editDocument();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var deletePermanently = false;
|
|
7
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
8
|
-
async function deleteDocument() {
|
|
9
|
-
try {
|
|
10
|
-
await documentApi.deleteDocument(documentId, deletePermanently);
|
|
11
|
-
console.log("Document deleted successfully!");
|
|
12
|
-
} catch (error:any) {
|
|
13
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
deleteDocument();
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { DocumentTags } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const documentTags = new DocumentTags();
|
|
8
|
-
documentTags.documentId = "YOUR_DOCUMENT_ID";
|
|
9
|
-
documentTags.tags = ["test", "api"];
|
|
10
|
-
|
|
11
|
-
async function deleteTagsFromDocument() {
|
|
12
|
-
try {
|
|
13
|
-
await documentApi.deleteTag(documentTags);
|
|
14
|
-
console.log("Tags deleted successfully!");
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
deleteTagsFromDocument();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
7
|
-
var onBehalfOf = "YOUR_BEHALF_EMAIL";
|
|
8
|
-
async function downloadDocument() {
|
|
9
|
-
try {
|
|
10
|
-
await documentApi.downloadDocument(documentId, onBehalfOf);
|
|
11
|
-
console.log("Document downloaded successfully!");
|
|
12
|
-
} catch (error:any) {
|
|
13
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
downloadDocument();
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
7
|
-
var attachmentId = "YOUR_ATTACHMENT_ID";
|
|
8
|
-
var onBehalfOf = "YOUR_BEHALF_EMAIL";
|
|
9
|
-
async function downloadAttachment() {
|
|
10
|
-
try {
|
|
11
|
-
await documentApi.downloadAttachment(documentId, attachmentId, onBehalfOf);
|
|
12
|
-
console.log("Attachment downloaded successfully!");
|
|
13
|
-
} catch (error:any) {
|
|
14
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
downloadAttachment();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
7
|
-
var onBehalfOf = "YOUR_BEHALF_EMAIL";
|
|
8
|
-
async function downloadAuditLog() {
|
|
9
|
-
try {
|
|
10
|
-
await documentApi.downloadAuditLog(documentId, onBehalfOf);
|
|
11
|
-
console.log("Audit log downloaded successfully!");
|
|
12
|
-
} catch (error:any) {
|
|
13
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
downloadAuditLog();
|
package/examples/documentEdit.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import { DocumentApi, EditDocumentFile, EditDocumentRequest, EditDocumentSigner, EditFormField, Rectangle } from '../api';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("API_KEY");
|
|
6
|
-
|
|
7
|
-
const bounds = new Rectangle();
|
|
8
|
-
bounds.x = 100;
|
|
9
|
-
bounds.y = 50;
|
|
10
|
-
bounds.width = 100;
|
|
11
|
-
bounds.height = 100;
|
|
12
|
-
|
|
13
|
-
const formField = new EditFormField();
|
|
14
|
-
formField.fieldType = EditFormField.FieldTypeEnum.Signature;
|
|
15
|
-
formField.pageNumber = 1;
|
|
16
|
-
formField.editAction = EditFormField.EditActionEnum.Add;
|
|
17
|
-
formField.bounds = bounds;
|
|
18
|
-
var signers = new EditDocumentSigner();
|
|
19
|
-
signers.editAction = EditDocumentSigner.EditActionEnum.Add,
|
|
20
|
-
signers.emailAddress = "signer1@gamil.com",
|
|
21
|
-
signers.name = "signer1",
|
|
22
|
-
signers.signerRole = "Signer";
|
|
23
|
-
signers.formFields = [formField];
|
|
24
|
-
|
|
25
|
-
var documentfile = new EditDocumentFile();
|
|
26
|
-
documentfile.file = fs.createReadStream("examples/documents/agreement.pdf");
|
|
27
|
-
documentfile.editAction = EditDocumentFile.EditActionEnum.Add;
|
|
28
|
-
var editDocumentRequest = new EditDocumentRequest();
|
|
29
|
-
editDocumentRequest.message = "Please review and sign the attached document.";
|
|
30
|
-
editDocumentRequest.signers = [signers];
|
|
31
|
-
editDocumentRequest.files = [documentfile]
|
|
32
|
-
var documentId = "DOCUMENT_ID" ;
|
|
33
|
-
|
|
34
|
-
async function editDocument() {
|
|
35
|
-
try {
|
|
36
|
-
debugger
|
|
37
|
-
var editDocumentResponse = await documentApi.editDocument(documentId, editDocumentRequest);
|
|
38
|
-
console.log("Document edited successfully!", editDocumentResponse);
|
|
39
|
-
} catch (error:any) {
|
|
40
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
editDocument();
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { DocumentSigner, EmbeddedDocumentRequest, FormField, Rectangle } from '../model';
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
import * as path from 'path';
|
|
5
|
-
|
|
6
|
-
const documentApi = new DocumentApi();
|
|
7
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
8
|
-
const formField = new FormField();
|
|
9
|
-
formField.fieldType = FormField.FieldTypeEnum.Signature;
|
|
10
|
-
formField.pageNumber = 1;
|
|
11
|
-
const bounds = new Rectangle();
|
|
12
|
-
bounds.x = 100;
|
|
13
|
-
bounds.y = 50;
|
|
14
|
-
bounds.width = 100;
|
|
15
|
-
bounds.height = 100;
|
|
16
|
-
formField.bounds = bounds;
|
|
17
|
-
const documentSigner = new DocumentSigner();
|
|
18
|
-
documentSigner.name = "David";
|
|
19
|
-
documentSigner.emailAddress = "david@cubeflakes.com";
|
|
20
|
-
documentSigner.signerOrder = 1;
|
|
21
|
-
documentSigner.signerType = DocumentSigner.SignerTypeEnum.Signer;
|
|
22
|
-
documentSigner.privateMessage = "This is private message for signer";
|
|
23
|
-
documentSigner.formFields = [formField];
|
|
24
|
-
const embeddedDocumentRequest = new EmbeddedDocumentRequest();
|
|
25
|
-
embeddedDocumentRequest.title = "Sent from API Node SDK";
|
|
26
|
-
embeddedDocumentRequest.showToolbar = true;
|
|
27
|
-
embeddedDocumentRequest.showNavigationButtons = true;
|
|
28
|
-
embeddedDocumentRequest.showPreviewButton = true;
|
|
29
|
-
embeddedDocumentRequest.showSendButton = true;
|
|
30
|
-
embeddedDocumentRequest.showSaveButton = true;
|
|
31
|
-
embeddedDocumentRequest.sendViewOption = EmbeddedDocumentRequest.SendViewOptionEnum.FillingPage;
|
|
32
|
-
embeddedDocumentRequest.locale = EmbeddedDocumentRequest.LocaleEnum.En;
|
|
33
|
-
embeddedDocumentRequest.showTooltip = false;
|
|
34
|
-
embeddedDocumentRequest.redirectUrl = "https://boldsign.dev/";
|
|
35
|
-
embeddedDocumentRequest.message = "This is document message sent from API Node SDK";
|
|
36
|
-
embeddedDocumentRequest.enableSigningOrder = false;
|
|
37
|
-
embeddedDocumentRequest.signers = [documentSigner];
|
|
38
|
-
const filePath = path.resolve("YOUR_FILE_PATH");
|
|
39
|
-
const files = fs.createReadStream(filePath);
|
|
40
|
-
embeddedDocumentRequest.files = [files];
|
|
41
|
-
async function createEmbeddedRequestUrlDocument() {
|
|
42
|
-
try {
|
|
43
|
-
const requestLinkResponse = await documentApi.createEmbeddedRequestUrlDocument(embeddedDocumentRequest);
|
|
44
|
-
console.log('Embedded Document URL:', requestLinkResponse.sendUrl);
|
|
45
|
-
} catch (error:any) {
|
|
46
|
-
console.error("Error occurred while calling the API for embedded template:", error.message);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
createEmbeddedRequestUrlDocument();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
7
|
-
var signerEmail = "david@cubeflakes.com";
|
|
8
|
-
var countryCode = "+91";
|
|
9
|
-
var phoneNumber = "6381261236";
|
|
10
|
-
var dateType: string = "2025-01-22";
|
|
11
|
-
var date: Date = new Date(dateType);
|
|
12
|
-
var signLinkValidTill = date;
|
|
13
|
-
var redirectUrl = "https://www.syncfusion.com/";
|
|
14
|
-
|
|
15
|
-
async function getEmbeddedSignLink() {
|
|
16
|
-
try {
|
|
17
|
-
var embeddedSignLinkResponse = await documentApi.getEmbeddedSignLink(documentId, signerEmail, countryCode, phoneNumber, signLinkValidTill, redirectUrl);
|
|
18
|
-
console.log("Embedded Sign Link created successfully:", embeddedSignLinkResponse);
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
getEmbeddedSignLink();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { ExtendExpiry } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const extendExpiry = new ExtendExpiry();
|
|
8
|
-
extendExpiry.newExpiryValue = "2025-03-18";
|
|
9
|
-
extendExpiry.warnPrior = true;
|
|
10
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
11
|
-
|
|
12
|
-
async function extendDocumentExpiry() {
|
|
13
|
-
try {
|
|
14
|
-
await documentApi.extendExpiry(documentId, extendExpiry);
|
|
15
|
-
console.log("Expiry extended successfully!");
|
|
16
|
-
} catch (error:any) {
|
|
17
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
extendDocumentExpiry();
|
package/examples/documentList.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var page = 1
|
|
7
|
-
const status: Array<
|
|
8
|
-
'None' | 'WaitingForMe' | 'WaitingForOthers' | 'NeedAttention' |
|
|
9
|
-
'Completed' | 'Declined' | 'Revoked' | 'Expired' | 'Draft' | 'Scheduled'
|
|
10
|
-
> = ['WaitingForOthers', 'Completed', 'Expired'];
|
|
11
|
-
async function listDocuments() {
|
|
12
|
-
try {
|
|
13
|
-
var listDocumentResponse = await documentApi.listDocuments(page,undefined,undefined,undefined,undefined,10,undefined,status);
|
|
14
|
-
console.log("Documents listed successfully:", listDocumentResponse);
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
listDocuments();
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var page = 1;
|
|
7
|
-
async function getBehalfDocuments() {
|
|
8
|
-
try {
|
|
9
|
-
var behalfDocumentResponse = await documentApi.behalfDocuments(page);
|
|
10
|
-
console.log("Behalf Documents fetched successfully:", behalfDocumentResponse);
|
|
11
|
-
} catch (error:any) {
|
|
12
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
getBehalfDocuments();
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
|
|
3
|
-
const documentApi = new DocumentApi();
|
|
4
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
5
|
-
|
|
6
|
-
var page = 1;
|
|
7
|
-
async function getTeamDocuments() {
|
|
8
|
-
try {
|
|
9
|
-
var teamDocumentResponse = await documentApi.teamDocuments(page);
|
|
10
|
-
console.log("Team Documents fetched successfully:", teamDocumentResponse);
|
|
11
|
-
} catch (error:any) {
|
|
12
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
getTeamDocuments();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "CheckBox1";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
var prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "Dropdown1";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
const prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "EditableDate1";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
const prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "Image1";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
const prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "radioChild_97gYJ";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
const prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { PrefillField, PrefillFieldRequest } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
const prefillField = new PrefillField();
|
|
8
|
-
prefillField.id = "TextBox1";
|
|
9
|
-
prefillField.value = "Prefill value";
|
|
10
|
-
|
|
11
|
-
const prefillFieldRequest = new PrefillFieldRequest();
|
|
12
|
-
prefillFieldRequest.fields = [prefillField];
|
|
13
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
14
|
-
|
|
15
|
-
async function prefillDocumentFields() {
|
|
16
|
-
try {
|
|
17
|
-
await documentApi.prefillFields(documentId, prefillFieldRequest);
|
|
18
|
-
console.log("Fields have been prefilled successfully!");
|
|
19
|
-
} catch (error:any) {
|
|
20
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
prefillDocumentFields();
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { RemoveAuthentication } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var removeAuthentication = new RemoveAuthentication();
|
|
8
|
-
removeAuthentication.emailId = "david@cubeflakes.com";
|
|
9
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
10
|
-
|
|
11
|
-
async function removeAuthenticationFromDocument() {
|
|
12
|
-
try {
|
|
13
|
-
await documentApi.removeAuthentication(documentId, removeAuthentication);
|
|
14
|
-
console.log("Authentication removed successfully!");
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
removeAuthenticationFromDocument();
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { RevokeDocument } from '../model';
|
|
3
|
-
|
|
4
|
-
const documentApi = new DocumentApi();
|
|
5
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
6
|
-
|
|
7
|
-
var revokeDocumentRequest = new RevokeDocument();
|
|
8
|
-
revokeDocumentRequest.message = "This is document revoke message";
|
|
9
|
-
var documentId = "YOUR_DOCUMENT_ID";
|
|
10
|
-
|
|
11
|
-
async function revokeDocument() {
|
|
12
|
-
try {
|
|
13
|
-
await documentApi.revokeDocument(documentId, revokeDocumentRequest);
|
|
14
|
-
console.log("Document revoked successfully!");
|
|
15
|
-
} catch (error:any) {
|
|
16
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
revokeDocument();
|
package/examples/documentSend.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { DocumentApi } from '../api/documentApi';
|
|
2
|
-
import { DocumentSigner, FormField, Rectangle, RequestDetailedFile, SendForSign } from '../model';
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
|
|
5
|
-
const documentApi = new DocumentApi();
|
|
6
|
-
documentApi.setApiKey("YOUR_API_KEY");
|
|
7
|
-
|
|
8
|
-
const bounds = new Rectangle();
|
|
9
|
-
bounds.x = 100;
|
|
10
|
-
bounds.y = 50;
|
|
11
|
-
bounds.width = 100;
|
|
12
|
-
bounds.height = 100;
|
|
13
|
-
|
|
14
|
-
var formField = new FormField();
|
|
15
|
-
formField.fieldType = FormField.FieldTypeEnum.Signature;
|
|
16
|
-
formField.pageNumber = 1;
|
|
17
|
-
formField.bounds = bounds;
|
|
18
|
-
|
|
19
|
-
var documentSigner = new DocumentSigner();
|
|
20
|
-
documentSigner.name = "SR";
|
|
21
|
-
documentSigner.emailAddress = "selvarani.s+stg1@syncfusion.com";
|
|
22
|
-
documentSigner.signerType = DocumentSigner.SignerTypeEnum.Signer;
|
|
23
|
-
documentSigner.formFields = [formField];
|
|
24
|
-
|
|
25
|
-
var documentSigner1 = new DocumentSigner();
|
|
26
|
-
documentSigner1.name = "SR1";
|
|
27
|
-
documentSigner1.emailAddress = "selvarani.s+stg11@syncfusion.com";
|
|
28
|
-
documentSigner1.signerType = DocumentSigner.SignerTypeEnum.Signer;
|
|
29
|
-
documentSigner1.formFields = [formField];
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var sendForSign = new SendForSign();
|
|
33
|
-
sendForSign.title = "Agreement";
|
|
34
|
-
sendForSign.signers = [documentSigner, documentSigner1];
|
|
35
|
-
var files = fs.createReadStream("examples/documents/agreement.pdf");
|
|
36
|
-
sendForSign.files = [files];
|
|
37
|
-
sendForSign.metaData = {
|
|
38
|
-
'DocumentType': 'new',
|
|
39
|
-
'DocumentCategory': 'Software'
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async function sendDocument() {
|
|
43
|
-
try {
|
|
44
|
-
var sendDocumentResponse = await documentApi.sendDocument(sendForSign);
|
|
45
|
-
console.log("Document sent successfully:", sendDocumentResponse.documentId);
|
|
46
|
-
} catch (error:any) {
|
|
47
|
-
console.error("Error occurred while calling the API:", error.message);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
sendDocument();
|