├── storage └── downloads │ └── .gitignore ├── examples ├── _data │ ├── bulk_invite.csv │ └── demo.pdf ├── documentInvite │ └── freeForm.ts ├── user │ └── userGet.ts ├── document │ ├── documentPost.ts │ ├── documentGet.ts │ ├── documentFields.ts │ └── documentDownloadGet.ts ├── webhook │ └── subscriptionGet.ts └── documentGroup │ └── delete.ts ├── tests ├── _data │ └── demo.pdf ├── resources │ ├── wiremock-config.env │ └── wiremock │ │ └── mappings │ │ ├── merge_documents_post.json │ │ ├── user_email_verify_put.json │ │ ├── create_event_subscription_post.json │ │ ├── status.json │ │ ├── get_event_subscriptions_v2_get.json │ │ ├── cancel_free_form_invite_put.json │ │ ├── delete_document_delete.json │ │ ├── reset_password_post.json │ │ ├── update_event_subscription_put.json │ │ ├── delete_event_subscription_delete.json │ │ ├── prefill_text_fields_put.json │ │ ├── download_document_group_post.json │ │ ├── get_all_event_subscriptions_callbacks_v2_get.json │ │ ├── get_event_subscription_v2_get.json │ │ ├── move_document_post.json │ │ ├── create_template_post.json │ │ ├── delete_event_subscription_v2_delete.json │ │ ├── update_document_group_template_put.json │ │ ├── upload_document_post.json │ │ ├── bulk_invite_post.json │ │ ├── cancel_invite_put.json │ │ ├── delete_embedded_invite_delete.json │ │ ├── create_document_group_post.json │ │ ├── delete_document_group_delete.json │ │ ├── update_event_subscriptions_subscription_v2_put.json │ │ ├── get_event_subscription_callbacks_v2_get.json │ │ ├── delete_embedded_doc_group_invites_delete.json │ │ ├── get_event_subscription_callback_get.json │ │ ├── update_document_put.json │ │ ├── prefill_smart_fields_post.json │ │ ├── upload_document_with_tags_extract_post.json │ │ ├── update_user_put.json │ │ ├── create_user_post.json │ │ ├── cancel_document_group_invite_post.json │ │ ├── resend_document_group_invite_post.json │ │ ├── create_document_with_template_post.json │ │ ├── invite_to_sign_document_group_post.json │ │ ├── update_user_initials_put.json │ │ ├── create_document_group_embedded_editor_link_post.json │ │ ├── send_field_invite_post.json │ │ ├── reassign_signer_for_document_group_invite_post.json │ │ ├── create_embedded_invite_for_document_group_post.json │ │ ├── create_document_download_link_post.json │ │ ├── create_document_embedded_sending_link_post.json │ │ ├── get_document_fields_get.json │ │ ├── verify_access_token_get.json │ │ ├── create_document_embedded_editor_link_post.json │ │ ├── create_document_group_embedded_sending_link_post.json │ │ ├── create_signing_link_post.json │ │ ├── create_link_for_embedded_invite_document_group_post.json │ │ ├── create_link_for_embedded_invite_post.json │ │ ├── get_document_free_form_invites_get.json │ │ ├── create_embedded_invite_post.json │ │ ├── create_routing_details_post.json │ │ ├── create_free_form_invite_post.json │ │ ├── get_user_initials_get.json │ │ ├── generate_access_token_post.json │ │ ├── refresh_access_token_post.json │ │ ├── get_pending_document_group_invites_get.json │ │ ├── download_document_get.json │ │ └── get_document_group_invite_get.json └── core │ ├── exception │ └── runtimeTestException.ts │ └── mock │ └── mockConfig.ts ├── src ├── core │ ├── index.ts │ ├── error │ │ └── signNowApiException.ts │ └── constants.ts ├── api │ ├── webhook │ │ ├── response │ │ │ ├── subscriptionPut.ts │ │ │ ├── subscriptionPost.ts │ │ │ ├── subscriptionDelete.ts │ │ │ ├── subscriptionGet.ts │ │ │ └── data │ │ │ │ └── data │ │ │ │ ├── content.ts │ │ │ │ ├── header.ts │ │ │ │ ├── jsonAttribute.ts │ │ │ │ └── data.ts │ │ └── request │ │ │ └── data │ │ │ ├── header.ts │ │ │ └── attribute.ts │ ├── template │ │ ├── response │ │ │ ├── groupTemplatePut.ts │ │ │ ├── templatePost.ts │ │ │ ├── bulkInvitePost.ts │ │ │ ├── cloneTemplatePost.ts │ │ │ ├── data │ │ │ │ ├── routingDetail │ │ │ │ │ ├── authentication.ts │ │ │ │ │ ├── reminder.ts │ │ │ │ │ ├── routingDetail.ts │ │ │ │ │ ├── inviteStep.ts │ │ │ │ │ ├── inviteEmail.ts │ │ │ │ │ └── inviteAction.ts │ │ │ │ ├── ccStep.ts │ │ │ │ ├── data.ts │ │ │ │ ├── template │ │ │ │ │ ├── thumbnail.ts │ │ │ │ │ └── template.ts │ │ │ │ ├── viewer.ts │ │ │ │ ├── approver.ts │ │ │ │ ├── attribute.ts │ │ │ │ ├── shareInfo.ts │ │ │ │ └── routingDetail.ts │ │ │ ├── routingDetailsPost.ts │ │ │ ├── routingDetailsPut.ts │ │ │ └── routingDetailsGet.ts │ │ └── request │ │ │ └── data │ │ │ ├── ccStep.ts │ │ │ ├── templateDataObject.ts │ │ │ ├── viewer.ts │ │ │ ├── approver.ts │ │ │ ├── templateData.ts │ │ │ └── routingDetail │ │ │ ├── routingDetail.ts │ │ │ ├── inviteEmail.ts │ │ │ ├── inviteAction.ts │ │ │ └── inviteStep.ts │ ├── document │ │ ├── response │ │ │ ├── documentDownloadGet.ts │ │ │ ├── documentPost.ts │ │ │ ├── documentPut.ts │ │ │ ├── data │ │ │ │ ├── tag.ts │ │ │ │ ├── shareInfo.ts │ │ │ │ ├── size.ts │ │ │ │ ├── fieldInvite │ │ │ │ │ ├── declined.ts │ │ │ │ │ ├── emailGroup.ts │ │ │ │ │ ├── embeddedSigner.ts │ │ │ │ │ └── emailStatus.ts │ │ │ │ ├── freeformInvite.ts │ │ │ │ ├── exportedTo │ │ │ │ │ ├── storage.ts │ │ │ │ │ └── exportedTo.ts │ │ │ │ ├── signingSessionSettings.ts │ │ │ │ ├── page.ts │ │ │ │ ├── role.ts │ │ │ │ ├── thumbnail.ts │ │ │ │ ├── data.ts │ │ │ │ ├── viewerFieldInvite │ │ │ │ │ ├── emailGroup.ts │ │ │ │ │ ├── emailStatus.ts │ │ │ │ │ └── viewerFieldInvite.ts │ │ │ │ ├── viewerRole.ts │ │ │ │ ├── entityLabel.ts │ │ │ │ ├── integration.ts │ │ │ │ ├── originatorOrganizationSettings.ts │ │ │ │ ├── fieldsData.ts │ │ │ │ ├── request │ │ │ │ │ ├── emailStatus.ts │ │ │ │ │ └── request.ts │ │ │ │ ├── insert.ts │ │ │ │ ├── routingDetail │ │ │ │ │ ├── routingDetail.ts │ │ │ │ │ └── data.ts │ │ │ │ ├── documentGroupTemplateInfo.ts │ │ │ │ ├── radiobutton │ │ │ │ │ ├── radio.ts │ │ │ │ │ └── radiobutton.ts │ │ │ │ ├── enumerationOption.ts │ │ │ │ ├── displayJsonAttribute.ts │ │ │ │ ├── check.ts │ │ │ │ ├── jsonAttribute.ts │ │ │ │ ├── seal.ts │ │ │ │ ├── fieldValidator.ts │ │ │ │ ├── hyperlink.ts │ │ │ │ ├── payment.ts │ │ │ │ ├── line │ │ │ │ │ └── line.ts │ │ │ │ ├── signature.ts │ │ │ │ ├── documentGroupInfo.ts │ │ │ │ ├── field.ts │ │ │ │ ├── integrationObject.ts │ │ │ │ └── attachment.ts │ │ │ ├── fieldExtractPost.ts │ │ │ ├── documentMovePost.ts │ │ │ ├── documentDownloadLinkPost.ts │ │ │ ├── documentMergePost.ts │ │ │ └── fieldsGet.ts │ │ └── request │ │ │ └── data │ │ │ ├── attachment.ts │ │ │ ├── deactivateElement.ts │ │ │ ├── check.ts │ │ │ ├── radiobutton │ │ │ ├── radio.ts │ │ │ └── radiobutton.ts │ │ │ ├── hyperlink.ts │ │ │ ├── tag │ │ │ ├── radio.ts │ │ │ └── tag.ts │ │ │ ├── line │ │ │ └── line.ts │ │ │ ├── text.ts │ │ │ ├── signature.ts │ │ │ ├── integrationObject.ts │ │ │ └── field.ts │ ├── embeddedEditor │ │ ├── response │ │ │ ├── data │ │ │ │ └── data.ts │ │ │ ├── documentEmbeddedEditorLinkPost.ts │ │ │ └── documentGroupEmbeddedEditorLinkPost.ts │ │ └── index.ts │ ├── documentField │ │ ├── response │ │ │ └── documentPrefillPut.ts │ │ ├── request │ │ │ └── data │ │ │ │ └── field.ts │ │ └── index.ts │ ├── embeddedInvite │ │ ├── response │ │ │ ├── data │ │ │ │ └── data.ts │ │ │ ├── documentInviteDelete.ts │ │ │ ├── documentInvitePost.ts │ │ │ └── documentInviteLinkPost.ts │ │ └── request │ │ │ └── data │ │ │ ├── authentication.ts │ │ │ └── invite.ts │ ├── embeddedSending │ │ ├── response │ │ │ ├── data │ │ │ │ └── data.ts │ │ │ ├── documentEmbeddedSendingLinkPost.ts │ │ │ └── documentGroupEmbeddedSendingLinkPost.ts │ │ └── index.ts │ ├── smartFields │ │ ├── request │ │ │ └── data │ │ │ │ └── data.ts │ │ ├── response │ │ │ └── documentPrefillSmartFieldPost.ts │ │ └── index.ts │ ├── webhookV2 │ │ ├── response │ │ │ ├── eventSubscriptionPut.ts │ │ │ ├── eventSubscriptionDelete.ts │ │ │ ├── callbackGet.ts │ │ │ ├── callbacksAllGet.ts │ │ │ ├── eventSubscriptionGet.ts │ │ │ ├── eventSubscriptionAllGet.ts │ │ │ ├── data │ │ │ │ ├── content.ts │ │ │ │ ├── data │ │ │ │ │ ├── content.ts │ │ │ │ │ ├── header.ts │ │ │ │ │ ├── requestContent.ts │ │ │ │ │ ├── requestHeader.ts │ │ │ │ │ ├── meta.ts │ │ │ │ │ └── jsonAttribute.ts │ │ │ │ ├── header.ts │ │ │ │ ├── requestContent.ts │ │ │ │ ├── requestHeader.ts │ │ │ │ ├── meta.ts │ │ │ │ ├── jsonAttribute.ts │ │ │ │ └── data.ts │ │ │ └── eventSubscriptionsCallbacksAllGet.ts │ │ └── request │ │ │ └── data │ │ │ ├── header.ts │ │ │ └── attribute.ts │ ├── embeddedGroupInvite │ │ ├── response │ │ │ ├── data │ │ │ │ └── data.ts │ │ │ ├── groupInviteDelete.ts │ │ │ ├── groupInvitePost.ts │ │ │ └── groupInviteLinkPost.ts │ │ └── request │ │ │ └── data │ │ │ └── invite │ │ │ ├── document.ts │ │ │ ├── invite.ts │ │ │ └── signer.ts │ ├── user │ │ └── response │ │ │ ├── data │ │ │ ├── team.ts │ │ │ ├── domain.ts │ │ │ ├── company.ts │ │ │ ├── premiumAccess │ │ │ │ ├── marketplace.ts │ │ │ │ ├── api.ts │ │ │ │ ├── gatewaySubscription.ts │ │ │ │ ├── user.ts │ │ │ │ ├── plan.ts │ │ │ │ ├── premiumAccess.ts │ │ │ │ └── subscription.ts │ │ │ ├── logo.ts │ │ │ ├── activeLogo.ts │ │ │ ├── issueNotification.ts │ │ │ ├── organizationSettings.ts │ │ │ ├── gatewaySubscription.ts │ │ │ ├── billingPeriod.ts │ │ │ ├── team │ │ │ │ ├── admin.ts │ │ │ │ └── team.ts │ │ │ ├── cloudExportAccountDetail.ts │ │ │ ├── status.ts │ │ │ ├── merchantAccount │ │ │ │ └── merchantAccount.ts │ │ │ ├── organization.ts │ │ │ └── subscription.ts │ │ │ ├── emailVerifyPut.ts │ │ │ ├── resetPasswordPost.ts │ │ │ ├── userPost.ts │ │ │ ├── userPut.ts │ │ │ ├── initialPut.ts │ │ │ └── initialGet.ts │ ├── documentInvite │ │ ├── request │ │ │ └── data │ │ │ │ ├── emailGroup │ │ │ │ ├── email.ts │ │ │ │ └── emailGroup.ts │ │ │ │ ├── to │ │ │ │ ├── emailGroup.ts │ │ │ │ └── signature.ts │ │ │ │ ├── ccStep.ts │ │ │ │ └── viewer.ts │ │ └── response │ │ │ ├── cancelInvitePut.ts │ │ │ ├── sendInvitePost.ts │ │ │ ├── cancelFreeFormInvitePut.ts │ │ │ ├── signingLinkPost.ts │ │ │ ├── data │ │ │ ├── data.ts │ │ │ └── meta │ │ │ │ ├── meta.ts │ │ │ │ └── pagination.ts │ │ │ ├── freeFormInvitePost.ts │ │ │ └── freeFormInviteGet.ts │ ├── documentGroup │ │ └── response │ │ │ ├── data │ │ │ ├── data │ │ │ │ ├── emailGroup.ts │ │ │ │ ├── document.ts │ │ │ │ ├── unmappedDocument.ts │ │ │ │ ├── reminder.ts │ │ │ │ ├── authentication.ts │ │ │ │ ├── allowedUnmappedSignDocument.ts │ │ │ │ ├── recipient.ts │ │ │ │ ├── data.ts │ │ │ │ └── attribute.ts │ │ │ ├── document │ │ │ │ ├── thumbnail.ts │ │ │ │ └── document.ts │ │ │ └── originatorOrganizationSettings.ts │ │ │ ├── documentGroupPost.ts │ │ │ ├── downloadDocumentGroupPost.ts │ │ │ ├── documentGroupDelete.ts │ │ │ ├── documentGroupRecipientsGet.ts │ │ │ └── documentGroupGet.ts │ ├── documentGroupInvite │ │ ├── request │ │ │ └── data │ │ │ │ ├── emailGroup │ │ │ │ ├── email.ts │ │ │ │ └── emailGroup.ts │ │ │ │ ├── inviteStep │ │ │ │ ├── emailGroup.ts │ │ │ │ ├── paymentRequest.ts │ │ │ │ ├── authentication.ts │ │ │ │ ├── inviteStep.ts │ │ │ │ └── inviteEmail.ts │ │ │ │ ├── inviteEmail.ts │ │ │ │ ├── completionEmail.ts │ │ │ │ └── updateInviteActionAttribute.ts │ │ └── response │ │ │ ├── reassignSignerPost.ts │ │ │ ├── cancelGroupInvitePost.ts │ │ │ ├── resendGroupInvitePost.ts │ │ │ ├── groupInvitePost.ts │ │ │ ├── groupInviteGet.ts │ │ │ ├── data │ │ │ ├── invite │ │ │ │ ├── invite.ts │ │ │ │ ├── action.ts │ │ │ │ └── step.ts │ │ │ └── invite.ts │ │ │ └── pendingInviteGet.ts │ ├── folder │ │ └── response │ │ │ ├── data │ │ │ ├── document │ │ │ │ ├── tag.ts │ │ │ │ ├── freeformInvite.ts │ │ │ │ ├── emailGroup.ts │ │ │ │ ├── role.ts │ │ │ │ ├── thumbnail.ts │ │ │ │ ├── reminder.ts │ │ │ │ ├── emailSentStatus.ts │ │ │ │ ├── request.ts │ │ │ │ ├── seal.ts │ │ │ │ ├── check.ts │ │ │ │ ├── insert.ts │ │ │ │ ├── routingDetail.ts │ │ │ │ ├── signature.ts │ │ │ │ ├── integration.ts │ │ │ │ ├── radiobutton.ts │ │ │ │ ├── text.ts │ │ │ │ ├── enumerationOption.ts │ │ │ │ ├── documentGroupInfo.ts │ │ │ │ ├── field.ts │ │ │ │ ├── attachment.ts │ │ │ │ ├── data.ts │ │ │ │ └── jsonAttribute.ts │ │ │ └── folder.ts │ │ │ ├── folderDocumentsGet.ts │ │ │ └── folderGet.ts │ ├── documentGroupTemplate │ │ └── response │ │ │ ├── data │ │ │ └── data │ │ │ │ ├── organization.ts │ │ │ │ ├── thumbnail.ts │ │ │ │ ├── owner.ts │ │ │ │ ├── document.ts │ │ │ │ └── data.ts │ │ │ └── documentGroupTemplatePost.ts │ └── auth │ │ ├── response │ │ ├── tokenGet.ts │ │ ├── tokenPost.ts │ │ └── refreshTokenPost.ts │ │ └── index.ts ├── types │ ├── baseClass.ts │ └── metaPagination.ts └── index.ts ├── .gitignore ├── .env.test.dist ├── jest.config.ts ├── .env.example └── tsconfig.json /storage/downloads/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /examples/_data/bulk_invite.csv: -------------------------------------------------------------------------------- 1 | Recipient 1|test@signnow.com,blank_0_test 2 | -------------------------------------------------------------------------------- /examples/documentInvite/freeForm.ts: -------------------------------------------------------------------------------- 1 | // This file is currently empty in the original examples -------------------------------------------------------------------------------- /tests/_data/demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signnow/SignNowNodeSDK/HEAD/tests/_data/demo.pdf -------------------------------------------------------------------------------- /examples/_data/demo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signnow/SignNowNodeSDK/HEAD/examples/_data/demo.pdf -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- 1 | export { Sdk } from './sdk'; 2 | export { displayResult as displayResultError } from './error/displayResult'; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.fleet 3 | /.vscode 4 | /.netbeans 5 | /node_modules 6 | /target 7 | .env 8 | .env.backup 9 | .env.test 10 | .env.production 11 | .env.development 12 | package-lock.json 13 | -------------------------------------------------------------------------------- /tests/resources/wiremock-config.env: -------------------------------------------------------------------------------- 1 | ## 2 | ## WireMock configuration to mock signNow API request 3 | ## during the test phase 4 | ## 5 | 6 | WIREMOCK_PORT=8086 7 | WIREMOCK_ROOT_DIR="$(pwd)/tests/resources/wiremock/mappings" 8 | WIREMOCK_IMAGE=wiremock/wiremock:3.9.1 9 | -------------------------------------------------------------------------------- /.env.test.dist: -------------------------------------------------------------------------------- 1 | ## 2 | ## signNow API SDK configuration for tests running 3 | ## 4 | SIGNNOW_API_HOST=http://0.0.0.0:8086 5 | SIGNNOW_API_BASIC_TOKEN=c2lnbk5vdyBBUEkgc2FtcGxlIEFwcCB2MS4wCg== 6 | SIGNNOW_API_USERNAME=user@signnow.com 7 | SIGNNOW_API_PASSWORD=coolest_pazzw0rd 8 | 9 | SIGNNOW_DOWNLOADS_DIR=./storage/downloads 10 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/merge_documents_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/document/merge" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/user_email_verify_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "url": "/user/email/verify" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_event_subscription_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/api/v2/events" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/status.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "url": "/status" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"server\":\"signNow API mock server\",\"based\":\"WireMock v3.9.1\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/webhook/response/subscriptionPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SubscriptionPut { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/template/response/groupTemplatePut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface GroupTemplatePut { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/webhook/response/subscriptionPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SubscriptionPost { 11 | } 12 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_event_subscriptions_v2_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "url": "/v2/event-subscriptions" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/documentDownloadGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentDownloadGet { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/embeddedEditor/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | url: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/webhook/response/subscriptionDelete.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SubscriptionDelete { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/document/response/documentPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentPost { 11 | id: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/document/response/documentPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentPut { 11 | id: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentField/response/documentPrefillPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentPrefillPut { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/embeddedInvite/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | link: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/embeddedSending/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | url: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/smartFields/request/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | field_name?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/template/response/templatePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface TemplatePost { 11 | id: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/eventSubscriptionPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EventSubscriptionPut { 11 | } 12 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/cancel_free_form_invite_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/invite/[0-9a-z]{40}/cancel" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_document_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/document/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"ducimus\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/reset_password_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/user/forgotpassword" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | link: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/response/groupInviteDelete.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface GroupInviteDelete { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/embeddedInvite/response/documentInviteDelete.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentInviteDelete { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/user/response/data/team.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Team { 11 | id: string; 12 | name: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/emailVerifyPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailVerifyPut { 11 | email?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/eventSubscriptionDelete.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EventSubscriptionDelete { 11 | } 12 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_event_subscription_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/api/v2/events/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/tag.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Tag { 11 | type: string; 12 | name: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/fieldExtractPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface FieldExtractPost { 11 | id: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/emailGroup/email.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Email { 11 | email: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/to/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | name: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/to/signature.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Signature { 11 | type: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/template/response/bulkInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface BulkInvitePost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/user/response/resetPasswordPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ResetPasswordPost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_event_subscription_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/api/v2/events/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/prefill_text_fields_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/prefill-texts" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/shareInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ShareInfo { 11 | is_team_shared: boolean; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/document/response/data/size.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Size { 11 | width: number; 12 | height: number; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/documentMovePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentMovePost { 11 | result: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | id?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/documentGroupPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentGroupPost { 11 | id: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/downloadDocumentGroupPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DownloadDocumentGroupPost { 11 | } 12 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/emailGroup/email.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Email { 11 | email: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/cancelInvitePut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CancelInvitePut { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/sendInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SendInvitePost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/user/response/data/domain.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Domain { 11 | id: string; 12 | domain: string; 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/download_document_group_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/downloadall" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_all_event_subscriptions_callbacks_v2_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "url": "/v2/event-subscriptions/callbacks" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_event_subscription_v2_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/move_document_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/move" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"result\":\"itaque\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldInvite/declined.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Declined { 11 | declined_text: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/document/response/data/freeformInvite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface FreeformInvite { 11 | id?: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/tag.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Tag { 11 | type: string; 12 | name: string; 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_template_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/template" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"cfbc3f5c5d33434c200def3e41549b87b3749acd\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_event_subscription_v2_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_document_group_template_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/documentgroup/template/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/upload_document_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/document" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"f7a05b0f82152552840b0c4a4544f69233b1f427\"}", 9 | "headers": { 10 | "Content-Type": "multipart/form-data" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/documentDownloadLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentDownloadLinkPost { 11 | link: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/document/response/documentMergePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentMergePost { 11 | document_id?: string[]; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/documentGroupDelete.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentGroupDelete { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteStep/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | name?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/freeformInvite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface FreeformInvite { 11 | id?: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/user/response/data/company.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Company { 11 | name?: string; 12 | full_access?: boolean; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/marketplace.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Marketplace { 11 | name?: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/bulk_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/template/[0-9a-z]{40}/bulkinvite" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "multipart/form-data" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/cancel_invite_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/fieldinvitecancel" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_embedded_invite_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/reassignSignerPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ReassignSignerPost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/data/data/organization.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Organization { 11 | id?: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/cancelFreeFormInvitePut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CancelFreeFormInvitePut { 11 | id?: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/template/response/cloneTemplatePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CloneTemplatePost { 11 | id: string; 12 | name: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/data/logo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Logo { 11 | id: string; 12 | name: string; 13 | active: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_group_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/documentgroup" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"163df679f737ecfd00f4cddba2ec09d9bf19affa\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_document_group_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_event_subscriptions_subscription_v2_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentField/request/data/field.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Field { 11 | field_name: string; 12 | prefilled_text: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/cancelGroupInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CancelGroupInvitePost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/resendGroupInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ResendGroupInvitePost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/authentication.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Authentication { 11 | type?: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/user/response/data/activeLogo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ActiveLogo { 11 | id?: string | null; 12 | uri?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/userPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface UserPost { 11 | id: string; 12 | verified: number; 13 | email: string; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_event_subscription_callbacks_v2_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}/callbacks" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/exportedTo/storage.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Storage { 11 | is_active: boolean; 12 | account?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/smartFields/response/documentPrefillSmartFieldPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentPrefillSmartFieldPost { 11 | status: string; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/template/request/data/ccStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CcStep { 11 | email: string; 12 | name: string; 13 | step: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/ccStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CcStep { 11 | email: string; 12 | name: string; 13 | step: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/userPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface UserPut { 11 | id: string; 12 | first_name: string; 13 | last_name: string; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/delete_embedded_doc_group_invites_delete.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "DELETE", 4 | "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_event_subscription_callback_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/v2/event-subscriptions/[0-9a-z]{40}/callbacks/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_document_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "urlPathPattern": "/document/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"f29dc255ecaac21406925a55f6f5c2fd8d09af88\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/request/data/attachment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Attachment { 11 | attachment_unique_id?: string; 12 | field_id?: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/request/data/deactivateElement.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DeactivateElement { 11 | type: string; 12 | unique_id: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/signingSessionSettings.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SigningSessionSettings { 11 | welcome_message: string | null; 12 | } 13 | -------------------------------------------------------------------------------- /src/api/document/response/fieldsGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface FieldsGet { 13 | data: Data[]; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/ccStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CcStep { 11 | name: string; 12 | email: string; 13 | step: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/signingLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface SigningLinkPost { 11 | url: string; 12 | url_no_signup: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | id?: string | null; 12 | name?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/template/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | name: string; 12 | role_id: string; 13 | signing_order: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/data/issueNotification.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface IssueNotification { 11 | title: string; 12 | description: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/data/organizationSettings.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface OrganizationSettings { 11 | setting: string; 12 | value: string; 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/prefill_smart_fields_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/integration/object/smartfields" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"est\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldInvite/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | id?: string | null; 12 | name?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/page.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Size } from './size'; 11 | 12 | export interface Page { 13 | src: string; 14 | size: Size; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/role.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Role { 11 | unique_id: string; 12 | signing_order: string; 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/thumbnail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Thumbnail { 11 | small: string; 12 | medium: string; 13 | large: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/document.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Document { 11 | id: string; 12 | role: string; 13 | action: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/data/gatewaySubscription.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface GatewaySubscription { 11 | gateway?: string; 12 | auto_renew?: boolean; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/callbackGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface CallbackGet { 13 | data?: Data; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/upload_document_with_tags_extract_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/document/fieldextract" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"81ed436fd4b0761f510371935e64280369610f4c\"}", 9 | "headers": { 10 | "Content-Type": "multipart/form-data" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | id: string; 12 | name: string; 13 | type: string; 14 | value?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldInvite/embeddedSigner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmbeddedSigner { 11 | first_name: string; 12 | last_name: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/viewerFieldInvite/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailGroup { 11 | id?: string | null; 12 | name?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/role.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Role { 11 | unique_id: string; 12 | signing_order: string; 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/thumbnail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Thumbnail { 11 | small: string; 12 | medium: string; 13 | large: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/template/thumbnail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Thumbnail { 11 | small: string; 12 | medium: string; 13 | large: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/viewer.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Viewer { 11 | default_email: string; 12 | name: string; 13 | signing_order: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/callbacksAllGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface CallbacksAllGet { 13 | data?: Data; 14 | } 15 | -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- 1 | const config = { 2 | testEnvironment: 'node', 3 | testMatch: ['/tests/**/*.test.[jt]s?(x)'], 4 | setupFiles: ['dotenv/config'], 5 | preset: 'ts-jest/presets/default-esm', // or other ESM presets 6 | moduleNameMapper: { 7 | '^(\\.{1,2}/.*)\\.js$': '$1', 8 | }, 9 | transform: { 10 | '^.+.tsx?$': ['ts-jest', {}], 11 | }, 12 | }; 13 | 14 | export default config; 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/viewerRole.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ViewerRole { 11 | unique_id: string; 12 | signing_order: string; 13 | name: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/document/thumbnail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Thumbnail { 11 | small: string; 12 | medium: string; 13 | large: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/groupInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface GroupInvitePost { 11 | id: string; 12 | pending_invite_link?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/template/request/data/templateDataObject.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface TemplateDataObject { 11 | name?: string | null; 12 | role_id?: string | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/template/response/data/approver.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Approver { 11 | default_email: string; 12 | name: string; 13 | signing_order: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/initialPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface InitialPut { 11 | id: string; 12 | width: string; 13 | height: string; 14 | created: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhook/response/subscriptionGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data/data'; 11 | 12 | export interface SubscriptionGet { 13 | data: Data[]; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_user_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "url": "/user" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"d74103ef85c2d42daa377b04113492bb2d46b85e\",\"first_name\":\"minus\",\"last_name\":\"debitis\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/entityLabel.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EntityLabel { 11 | label_name: string; 12 | is_system: boolean; 13 | updated: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/integration.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Integration { 11 | id: string; 12 | integration_id?: string | null; 13 | data?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/data/data/thumbnail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Thumbnail { 11 | small: string; 12 | medium: string; 13 | large: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | id: string; 12 | status: string; 13 | created: number; 14 | email: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/data/meta/meta.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Pagination } from './pagination'; 11 | 12 | export interface Meta { 13 | pagination: Pagination; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/request/data/invite/document.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Document { 11 | id: string; 12 | action: string; 13 | role?: string | null; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/response/groupInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface GroupInvitePost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/attribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Attribute { 11 | brand_id: string; 12 | redirect_uri: string; 13 | on_complete: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/eventSubscriptionGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface EventSubscriptionGet { 13 | data?: Data; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_user_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/user" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"6ec532c0312c9014ca87c260ef73ebac0f7c236b\",\"verified\":70647,\"email\":\"wkonopelski@crist.com\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/originatorOrganizationSettings.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface OriginatorOrganizationSettings { 11 | setting: string; 12 | value: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/unmappedDocument.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface UnmappedDocument { 11 | id: string; 12 | role: string; 13 | action: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/freeFormInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface FreeFormInvitePost { 11 | result: string; 12 | id: string; 13 | callback_url: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedInvite/response/documentInvitePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentInvitePost { 13 | data: Data[]; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/cancel_document_group_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/cancelinvite" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/resend_document_group_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/resendinvites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/auth/response/tokenGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface TokenGet { 11 | access_token: string; 12 | scope: string; 13 | expires_in: string; 14 | token_type: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldsData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface FieldsData { 11 | id: string; 12 | name: string; 13 | type: string; 14 | value?: string | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/request/emailStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailStatus { 11 | status: string; 12 | created_at: number; 13 | last_reaction_at: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/originatorOrganizationSettings.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface OriginatorOrganizationSettings { 11 | setting: string; 12 | value: string; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteEmail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface InviteEmail { 11 | email?: string; 12 | reminder?: number; 13 | expiration_days?: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/response/groupInviteLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface GroupInviteLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedInvite/response/documentInviteLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentInviteLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/api.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Api { 11 | key: string; 12 | created_at: number; 13 | expired_at: number; 14 | level: string; 15 | } 16 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_with_template_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/template/[0-9a-z]{40}/copy" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"b3b2e1e26c78074bd605cb8ac741f237abe1f86f\",\"name\":\"et\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/invite_to_sign_document_group_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"7db86fcd838e5983526e3093212c9f7251f447fc\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldInvite/emailStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailStatus { 11 | status: string; 12 | created_at: number; 13 | last_reaction_at: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/insert.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Insert { 11 | id: string; 12 | location: string; 13 | email?: string; 14 | transaction_id?: string | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/reminder.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Reminder { 11 | remind_after?: number; 12 | remind_before?: number; 13 | remind_repeat?: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/groupInviteGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Invite } from './data/invite/invite'; 11 | 12 | export interface GroupInviteGet { 13 | invite: Invite; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/reminder.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Reminder { 11 | reminder_before?: number; 12 | remind_after?: number; 13 | remind_repeat?: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/reminder.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Reminder { 11 | remind_after: number; 12 | remind_before: number; 13 | remind_repeat: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/response/data/shareInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface ShareInfo { 11 | is_team_shared: boolean; 12 | role: string; 13 | is_personally_shared_to_others: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/gatewaySubscription.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface GatewaySubscription { 11 | gateway?: string | null; 12 | auto_renew?: boolean | null; 13 | } 14 | -------------------------------------------------------------------------------- /src/api/webhookV2/request/data/header.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Header { 11 | string_head: string; 12 | int_head: number; 13 | bool_head: boolean; 14 | float_head: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/eventSubscriptionAllGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data/data'; 11 | 12 | export interface EventSubscriptionAllGet { 13 | data?: Data[]; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/viewerFieldInvite/emailStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailStatus { 11 | status: string; 12 | created_at: number; 13 | last_reaction_at: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/documentGroupRecipientsGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data/data'; 11 | 12 | export interface DocumentGroupRecipientsGet { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/request/data/invite/invite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Signer } from './signer'; 11 | 12 | export interface Invite { 13 | order: number; 14 | signers: Signer[]; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/emailSentStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EmailSentStatus { 11 | status: string; 12 | created_at: number; 13 | last_reaction_at: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/request/data/viewer.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Viewer { 11 | name: string; 12 | signing_order: number; 13 | default_email?: string; 14 | inviter_role?: boolean; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhook/request/data/header.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Header { 11 | string_head?: string; 12 | int_head?: number; 13 | bool_head?: boolean; 14 | float_head?: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/authentication.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Authentication { 11 | type: string; 12 | value: string; 13 | phone?: string; 14 | method?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/documentGroupTemplatePost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data/data'; 11 | 12 | export interface DocumentGroupTemplatePost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedEditor/response/documentEmbeddedEditorLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentEmbeddedEditorLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/template/request/data/approver.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Approver { 11 | name: string; 12 | signing_order: number; 13 | default_email?: string; 14 | inviter_role?: boolean; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/user/response/initialGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface InitialGet { 11 | unique_id: string; 12 | width: string; 13 | height: string; 14 | data: string; 15 | created: string; 16 | } 17 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/update_user_initials_put.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "PUT", 4 | "url": "/user/initial" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"id\":\"03629d93ddf8c3cd22b219c0b80e8147db58d938\",\"width\":\"33118\",\"height\":\"23324\",\"created\":\"795835049\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/allowedUnmappedSignDocument.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface AllowedUnmappedSignDocument { 11 | id: string; 12 | role: string; 13 | recipient: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/embeddedSending/response/documentEmbeddedSendingLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentEmbeddedSendingLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/request.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { EmailSentStatus } from './emailSentStatus'; 11 | 12 | export interface Request { 13 | email_sent_statuses: EmailSentStatus[]; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_group_embedded_editor_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-editor" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"url\":\"http:\\/\\/www.connelly.org\\/\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/send_field_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/invite", 5 | "bodyPatterns": [{"matchesJsonPath": "$.to[?(@.email)]"}] 6 | }, 7 | "response": { 8 | "status": 200, 9 | "body": "{\"status\":\"success\"}", 10 | "headers": { 11 | "Content-Type": "application/json" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/data/invite/invite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Step } from './step'; 11 | 12 | export interface Invite { 13 | id: string; 14 | status: string; 15 | steps: Step[]; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/embeddedEditor/response/documentGroupEmbeddedEditorLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentGroupEmbeddedEditorLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/user/response/data/billingPeriod.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface BillingPeriod { 11 | start_date: string; 12 | end_date: string; 13 | start_timestamp: number; 14 | end_timestamp: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhook/response/data/data/content.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Content { 11 | key?: string; 12 | key1?: string; 13 | key2?: string; 14 | account_id?: string; 15 | source?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/content.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Content { 11 | document_id: string; 12 | document_name: string; 13 | user_id: string; 14 | viewer_user_unique_id: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/eventSubscriptionsCallbacksAllGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data/data'; 11 | 12 | export interface EventSubscriptionsCallbacksAllGet { 13 | data?: Data[]; 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/reassign_signer_for_document_group_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/invitestep/[0-9a-z]{40}/update" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"status\":\"success\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/request/data/check.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Check { 11 | x: number; 12 | y: number; 13 | width: number; 14 | height: number; 15 | subtype: string; 16 | page_number: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/emailGroup/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Email } from './email'; 11 | 12 | export interface EmailGroup { 13 | id: string; 14 | name: string; 15 | emails: Email[]; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/embeddedSending/response/documentGroupEmbeddedSendingLinkPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | 12 | export interface DocumentGroupEmbeddedSendingLinkPost { 13 | data: Data; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/content.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Content { 11 | document_id: string; 12 | document_name: string; 13 | user_id: string; 14 | viewer_user_unique_id: string; 15 | } 16 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_embedded_invite_for_document_group_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"id\":\"6326c6582ecdd0b85d03919990c8442fae941499\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/routingDetail/routingDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data'; 11 | 12 | export interface RoutingDetail { 13 | id: string; 14 | data: Data[]; 15 | created: number; 16 | } 17 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_download_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/download/link" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"link\":\"https:\\/\\/www.reichert.com\\/est-quia-non-quia-placeat-quo-animi-eos-doloribus\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/emailGroup/emailGroup.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Email } from './email'; 11 | 12 | export interface EmailGroup { 13 | id: string; 14 | name: string; 15 | emails?: Email[]; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteStep/paymentRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface PaymentRequest { 11 | merchant_id?: string; 12 | currency?: string; 13 | type?: string; 14 | amount?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/data/invite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Invite { 11 | link: string; 12 | document_name: string; 13 | inviter_email: string; 14 | action: string; 15 | status: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/data/invite/action.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Action { 11 | action: string; 12 | document_id: string; 13 | status: string; 14 | role_name: string; 15 | email?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/header.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Header { 11 | string_head?: string | null; 12 | int_head?: number | null; 13 | bool_head?: boolean | null; 14 | float_head?: number | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/routingDetail/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Data { 11 | default_email: string; 12 | inviter_role: boolean; 13 | name: string; 14 | role_id: string; 15 | signing_order: number; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/completionEmail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CompletionEmail { 11 | email?: string; 12 | disable_document_attachment?: number; 13 | subject?: string; 14 | message?: string; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/embeddedInvite/request/data/authentication.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Authentication { 11 | type: string; 12 | password?: string; 13 | method?: string; 14 | phone?: string; 15 | sms_message?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/template/request/data/templateData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface TemplateData { 11 | inviter_role: boolean; 12 | name: string; 13 | role_id: string; 14 | signing_order: number; 15 | default_email?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/webhook/response/data/data/header.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Header { 11 | string_head?: string | null; 12 | int_head?: number | null; 13 | bool_head?: boolean | null; 14 | float_head?: number | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/header.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Header { 11 | string_head?: string | null; 12 | int_head?: number | null; 13 | bool_head?: boolean | null; 14 | float_head?: number | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/requestContent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Meta } from './meta'; 11 | import { Content } from './content'; 12 | 13 | export interface RequestContent { 14 | meta: Meta; 15 | content: Content; 16 | } 17 | -------------------------------------------------------------------------------- /tests/core/exception/runtimeTestException.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export class RuntimeTestException extends Error { 11 | constructor(message: string) { 12 | super(message); 13 | this.name = 'RuntimeTestException'; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_embedded_sending_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-sending" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"url\":\"https:\\/\\/www.langworth.com\\/in-incidunt-est-fugiat-voluptas\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/documentGroupTemplateInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DocumentGroupTemplateInfo { 11 | document_group_template_id: string; 12 | document_group_template_name: string; 13 | shared: number; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteStep/authentication.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Authentication { 11 | type: string; 12 | value: string; 13 | method?: string; 14 | phone?: string; 15 | message?: string; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/updateInviteActionAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface UpdateInviteActionAttribute { 11 | document_id?: string; 12 | allow_reassign?: number; 13 | decline_by_signature?: string; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/data/invite/step.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Action } from './action'; 11 | 12 | export interface Step { 13 | id: string; 14 | status: string; 15 | order: number; 16 | actions: Action[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/data/data/owner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Organization } from './organization'; 11 | 12 | export interface Owner { 13 | id: string; 14 | email: string; 15 | organization: Organization; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/user/response/data/team/admin.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Admin { 11 | id: string; 12 | is_secondary: string; 13 | email: string; 14 | billing: number; 15 | document_access: number; 16 | primary: boolean; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/requestContent.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Meta } from './meta'; 11 | import { Content } from './content'; 12 | 13 | export interface RequestContent { 14 | meta: Meta; 15 | content: Content; 16 | } 17 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_document_fields_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/fields" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":[{\"id\":\"bf3d237e71dbada5c47408a251dcce1704fc1d6f\",\"name\":\"qui\",\"type\":\"similique\",\"value\":\"id\"}]}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/freeFormInviteGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | import { Meta } from './data/meta/meta'; 12 | 13 | export interface FreeFormInviteGet { 14 | meta: Meta; 15 | data?: Data[]; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/requestHeader.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface RequestHeader { 11 | string_head?: string | null; 12 | int_head?: number | null; 13 | bool_head?: boolean | null; 14 | float_head?: number | null; 15 | } 16 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/verify_access_token_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "url": "/oauth2/token" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"access_token\":\"320d88e4ca62bfaef22f1e78b20339ba9a858b44e64b75dcd33a076972c5403b\",\"scope\":\"*\",\"expires_in\":\"1096626775\",\"token_type\":\"bearer\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/auth/response/tokenPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface TokenPost { 11 | expires_in: number; 12 | token_type: string; 13 | access_token: string; 14 | refresh_token: string; 15 | scope: string; 16 | last_login: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/template/request/data/routingDetail/routingDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { InviteStep } from './inviteStep'; 11 | 12 | export interface RoutingDetail { 13 | invite_steps: InviteStep[]; 14 | include_email_attachments: number; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/user/response/data/cloudExportAccountDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface CloudExportAccountDetail { 11 | username?: string | null; 12 | short_files_servicename?: string | null; 13 | long_files_servicename?: string | null; 14 | } 15 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/requestHeader.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface RequestHeader { 11 | string_head?: string | null; 12 | int_head?: number | null; 13 | bool_head?: boolean | null; 14 | float_head?: number | null; 15 | } 16 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/meta.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Meta { 11 | timestamp: number; 12 | event: string; 13 | environment: string; 14 | initiator_id: string; 15 | callback_url: string; 16 | access_token: string; 17 | } 18 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_embedded_editor_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-editor" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"url\":\"https:\\/\\/www.bahringer.com\\/quis-ducimus-temporibus-est-omnis-praesentium-est\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/request/data/radiobutton/radio.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Radio { 11 | x: number; 12 | y: number; 13 | width: number; 14 | height: number; 15 | value: string; 16 | checked: number; 17 | page_number: number; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/meta.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Meta { 11 | timestamp: number; 12 | event: string; 13 | environment: string; 14 | callback_url: string; 15 | initiator_id: string; 16 | access_token: string; 17 | } 18 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_document_group_embedded_sending_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-sending" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"url\":\"http:\\/\\/cremin.com\\/vero-eos-accusantium-error-eum-suscipit-magni\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentInvite/response/data/meta/pagination.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Pagination { 11 | total: number; 12 | count: number; 13 | per_page: number; 14 | current_page: number; 15 | total_pages: number; 16 | links: string[]; 17 | } 18 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_signing_link_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/link" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"url\":\"http:\\/\\/walsh.com\\/voluptatem-nemo-veniam-dolor-modi-repellendus\",\"url_no_signup\":\"http:\\/\\/www.smitham.info\\/aut-quae-vitae-eos-assumenda-veniam-saepe.html\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/auth/response/refreshTokenPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface RefreshTokenPost { 11 | expires_in: number; 12 | token_type: string; 13 | access_token: string; 14 | refresh_token: string; 15 | scope: string; 16 | last_login: number; 17 | } 18 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_link_for_embedded_invite_document_group_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/document-groups/[0-9a-z]{40}/embedded-invites/[0-9a-z]{40}/link" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"link\":\"http:\\/\\/brekke.com\\/laudantium-rerum-quos-fugit-ut.html\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/user.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface User { 11 | username: string; 12 | email: string; 13 | added_date: number; 14 | status: string; 15 | admin: string; 16 | first_name?: string; 17 | last_name?: string; 18 | } 19 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_link_for_embedded_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites/[0-9a-z]{40}/link" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":{\"link\":\"http:\\/\\/jones.com\\/consectetur-quia-quo-excepturi-modi-asperiores-aut-iusto-placeat\"}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/user/userGet.ts: -------------------------------------------------------------------------------- 1 | import { UserGetRequest, UserGetResponse } from '@signnow/api-client/api/user'; 2 | import { Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function getUser(): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const userGetRequest = new UserGetRequest(); 9 | const response = await client.send(userGetRequest); 10 | 11 | return response; 12 | } 13 | 14 | getUser().then(console.log, console.error); -------------------------------------------------------------------------------- /src/api/documentInvite/request/data/viewer.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Viewer { 11 | email: string; 12 | role: string; 13 | order: number; 14 | subject: string; 15 | message: string; 16 | close_redirect_uri?: string; 17 | redirect_target?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/template/request/data/routingDetail/inviteEmail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface InviteEmail { 11 | email: string; 12 | subject: string; 13 | message: string; 14 | allow_reassign: string; 15 | expiration_days?: number; 16 | reminder?: number; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/user/response/data/status.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Status { 11 | bad_copy_token?: boolean; 12 | has_copy_token?: boolean; 13 | has_cloud_export_token?: boolean; 14 | bad_cloud_export_token?: boolean; 15 | has_salesforce_token?: boolean; 16 | } 17 | -------------------------------------------------------------------------------- /src/api/document/response/data/exportedTo/exportedTo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Storage } from './storage'; 11 | 12 | export interface ExportedTo { 13 | export_domain: string; 14 | is_exported: boolean; 15 | exported_user_ids: string[]; 16 | storages?: Storage[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/seal.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Seal { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/folder/response/data/folder.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Folder { 11 | id: string; 12 | user_id: string; 13 | name: string; 14 | created: string; 15 | shared: boolean; 16 | document_count: string; 17 | template_count: string; 18 | folder_count: string; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/routingDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { InviteStep } from './inviteStep'; 11 | 12 | export interface RoutingDetail { 13 | sign_as_merged: boolean; 14 | invite_steps: InviteStep[]; 15 | include_email_attachments?: string | null; 16 | } 17 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_document_free_form_invites_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/free-form-invites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"meta\":{\"pagination\":{\"total\":33773,\"count\":54180,\"per_page\":51444,\"current_page\":29590,\"total_pages\":44811,\"links\":[\"eveniet\"]}}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/check.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Check { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/insert.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Insert { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/routingDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data'; 11 | 12 | export interface RoutingDetail { 13 | id: string; 14 | created: string; 15 | updated: string; 16 | data?: Data | null; 17 | invite_link_instructions?: string | null; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/webhook/request/data/attribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Header } from './header'; 11 | 12 | export interface Attribute { 13 | callback: string; 14 | use_tls_12?: boolean; 15 | integration_id?: string; 16 | docid_queryparam?: boolean; 17 | headers?: Header | null; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/document/request/data/hyperlink.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Hyperlink { 11 | x: number; 12 | y: number; 13 | size: number; 14 | width: number; 15 | height: number; 16 | page_number: number; 17 | font: string; 18 | line_height: number; 19 | field_id?: string; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/document/request/data/tag/radio.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Radio { 11 | page_number: number; 12 | x: number; 13 | y: number; 14 | width: number; 15 | height: number; 16 | checked?: string; 17 | value?: string; 18 | x_offset?: number; 19 | y_offset?: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/signature.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Signature { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/document/response/data/radiobutton/radio.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Radio { 11 | radio_id: string; 12 | created: string; 13 | page_number: string; 14 | x: string; 15 | y: string; 16 | width: string; 17 | height: string; 18 | checked: string; 19 | value: string; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/response/pendingInviteGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Invite } from './data/invite'; 11 | 12 | export interface PendingInviteGet { 13 | invites: Invite[]; 14 | document_group_name: string; 15 | sign_as_merged: boolean; 16 | owner_organization_id?: string | null; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/integration.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Integration { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/radiobutton.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Radiobutton { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | page_number: string; 15 | width: string; 16 | height: string; 17 | x: string; 18 | y: string; 19 | created: number; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/document/request/data/line/line.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Line { 11 | x: number; 12 | y: number; 13 | width: number; 14 | height: number; 15 | subtype: string; 16 | page_number: number; 17 | fill_color: string; 18 | line_width: number; 19 | control_points?: number[]; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/template/request/data/routingDetail/inviteAction.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface InviteAction { 11 | email: string; 12 | role_name: string; 13 | action: string; 14 | document_id: string; 15 | document_name: string; 16 | allow_reassign?: string; 17 | decline_by_signature?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface RoutingDetail { 11 | name: string; 12 | role_id: string; 13 | default_email: string; 14 | inviter_role: boolean; 15 | signing_order: number; 16 | decline_by_signature?: boolean; 17 | delivery_type?: string | null; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/user/response/data/merchantAccount/merchantAccount.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface MerchantAccount { 11 | id: string; 12 | scope: string; 13 | merchant_type: string; 14 | merchant_account_name: string; 15 | currencies: string[]; 16 | currency: string; 17 | currency_name: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/template/request/data/routingDetail/inviteStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { InviteEmail } from './inviteEmail'; 11 | import { InviteAction } from './inviteAction'; 12 | 13 | export interface InviteStep { 14 | order: number; 15 | invite_actions: InviteAction[]; 16 | invite_emails?: InviteEmail[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/inviteStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { InviteEmail } from './inviteEmail'; 11 | import { InviteAction } from './inviteAction'; 12 | 13 | export interface InviteStep { 14 | order: number; 15 | invite_actions: InviteAction[]; 16 | invite_emails?: InviteEmail[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/template/response/data/template/template.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Thumbnail } from './thumbnail'; 11 | 12 | export interface Template { 13 | roles: string[]; 14 | template_name: string; 15 | id: string; 16 | owner_email: string; 17 | thumbnail: Thumbnail; 18 | readable?: boolean | null; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/documentField/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export type { DocumentPrefillPut as DocumentPrefillPutResponse } from './response/documentPrefillPut'; 11 | export type { Field as FieldRequestAttribute } from './request/data/field'; 12 | export { DocumentPrefillPut as DocumentPrefillPutRequest } from './request/documentPrefillPut'; -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteStep/inviteStep.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { InviteEmail } from './inviteEmail'; 11 | import { InviteAction } from './inviteAction'; 12 | 13 | export interface InviteStep { 14 | order: number; 15 | invite_actions: InviteAction[]; 16 | invite_emails?: InviteEmail[]; 17 | } 18 | -------------------------------------------------------------------------------- /src/api/document/response/data/enumerationOption.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | 12 | export interface EnumerationOption { 13 | id: string; 14 | enumeration_id: string; 15 | data: string; 16 | created: string; 17 | updated: string; 18 | json_attributes: JsonAttribute; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/inviteEmail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Reminder } from './reminder'; 11 | 12 | export interface InviteEmail { 13 | email: string; 14 | subject: string; 15 | message: string; 16 | expiration_days: number; 17 | has_sign_actions: boolean; 18 | reminder?: Reminder; 19 | } 20 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_embedded_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/v2/documents/[0-9a-z]{40}/embedded-invites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"data\":[{\"id\":\"092b57b0e7b5aef63d066c7d5fbe6471d319b0a2\",\"email\":\"coconnell@gmail.com\",\"role_id\":\"ea4d4f0159273555f0f1712d2d945ce1c20e1b88\",\"order\":62272,\"status\":\"success\"}]}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/request/data/text.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Text { 11 | x: number; 12 | y: number; 13 | size: number; 14 | width: number; 15 | height: number; 16 | subtype: string; 17 | page_number: number; 18 | data: string; 19 | font: string; 20 | line_height: number; 21 | field_id?: string; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/documentGroupInvite/request/data/inviteStep/inviteEmail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { EmailGroup } from './emailGroup'; 11 | 12 | export interface InviteEmail { 13 | email: string; 14 | subject: string; 15 | message: string; 16 | email_group?: EmailGroup; 17 | expiration_days?: number; 18 | reminder?: number; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/text.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Text { 11 | id: string; 12 | user_id: string; 13 | page_number: string; 14 | email: string; 15 | font: string; 16 | size: string; 17 | data: string; 18 | x: string; 19 | y: string; 20 | line_height: string; 21 | created: number; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/user/response/data/team/team.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Admin } from './admin'; 11 | 12 | export interface Team { 13 | id: string; 14 | team: string; 15 | type: string; 16 | created_since: string; 17 | role: string; 18 | document_count: number; 19 | admins: Admin[]; 20 | workspace_id?: string | null; 21 | } 22 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_routing_details_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/template/routing/detail" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"routing_details\":[{\"default_email\":\"stroman.vergie@ziemann.com\",\"inviter_role\":false,\"name\":\"voluptas\",\"role_id\":\"58d17313c97523fdbdbc5582fbaff3795fc4f145\",\"signing_order\":43559}]}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/webhook/response/data/data/jsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Header } from './header'; 11 | 12 | export interface JsonAttribute { 13 | use_tls12: boolean; 14 | docid_queryparam: boolean; 15 | callback_url: string; 16 | integration_id?: string | null; 17 | headers?: Header | null; 18 | secret_key?: string; 19 | } 20 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | ## 2 | ## signNow API SDK configuration 3 | ## 4 | 5 | ## Replace these dummy values with your actual credentials except API_HOST 6 | SIGNNOW_API_HOST=https://api.signnow.com 7 | SIGNNOW_API_BASIC_TOKEN=c2lnbk5vdyBBUEkgc2FtcGxlIEFwcCB2MS4wCg== 8 | SIGNNOW_API_USERNAME=user@signnow.com 9 | SIGNNOW_API_PASSWORD=coolest_pazzw0rd 10 | 11 | # Absolute or relative (starts with .) path to the directory 12 | # where the downloaded files will be stored (make sure you have write permissions to this directory) 13 | # 14 | # Default: ./storage/downloads 15 | SIGNNOW_DOWNLOADS_DIR=./storage/downloads 16 | -------------------------------------------------------------------------------- /src/api/document/response/data/displayJsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface DisplayJsonAttribute { 11 | web_short_name: string; 12 | web_description: string; 13 | common: boolean; 14 | disabled: boolean; 15 | date_time_field_order?: number | null; 16 | text_field_order?: number | null; 17 | web_locale_key?: string; 18 | } 19 | -------------------------------------------------------------------------------- /src/api/document/response/data/check.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Check { 11 | id: string; 12 | page_number: string; 13 | x: string; 14 | y: string; 15 | width: string; 16 | height: string; 17 | created: string; 18 | allow_editing: boolean; 19 | owner_as_recipient: boolean; 20 | user_id?: string | null; 21 | email?: string; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/webhook/response/data/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | import { Content } from './content'; 12 | 13 | export interface Data { 14 | id: string; 15 | event: string; 16 | entity_id: number; 17 | action: string; 18 | json_attributes: JsonAttribute; 19 | created: number; 20 | content?: Content; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/jsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Header } from './header'; 11 | 12 | export interface JsonAttribute { 13 | use_tls12: boolean; 14 | docid_queryparam: boolean; 15 | callback_url: string; 16 | delete_access_token: boolean; 17 | include_metadata: boolean; 18 | integration_id?: string; 19 | headers?: Header | null; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/data/data/document.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Thumbnail } from './thumbnail'; 11 | 12 | export interface Document { 13 | roles: string[]; 14 | document_name: string; 15 | id: string; 16 | thumbnail: Thumbnail; 17 | origin_document_id: string; 18 | has_unassigned_field: boolean; 19 | has_credit_card_number: boolean; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/document/request/data/signature.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Signature { 11 | x: number; 12 | y: number; 13 | width: number; 14 | height: number; 15 | page_number: number; 16 | data: string; 17 | subtype?: string; 18 | signature_request_id?: string; 19 | field_id?: string; 20 | signing_reason?: string; 21 | owner_as_recipient?: boolean; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/document/document.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Thumbnail } from './thumbnail'; 11 | 12 | export interface Document { 13 | id: string; 14 | roles: string[]; 15 | document_name: string; 16 | thumbnail: Thumbnail; 17 | origin_document_id?: string | null; 18 | has_unassigned_field?: boolean; 19 | has_credit_card_number?: boolean; 20 | } 21 | -------------------------------------------------------------------------------- /src/api/smartFields/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export type { DocumentPrefillSmartFieldPost as DocumentPrefillSmartFieldPostResponse } from './response/documentPrefillSmartFieldPost'; 11 | export type { Data as DataRequestAttribute } from './request/data/data'; 12 | export { DocumentPrefillSmartFieldPost as DocumentPrefillSmartFieldPostRequest } from './request/documentPrefillSmartFieldPost'; -------------------------------------------------------------------------------- /src/types/baseClass.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface BaseClass { 11 | getPayload(): Record | null; 12 | 13 | getMethod(): string; 14 | 15 | getUrl(): string; 16 | 17 | getUriParams(): Record | null; 18 | 19 | getQueryParams(): Record; 20 | 21 | getAuthMethod(): string; 22 | 23 | getContentType(): string; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/document/response/data/jsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface JsonAttribute { 11 | page_number: number; 12 | x: number; 13 | y: number; 14 | width: number; 15 | height: number; 16 | required: boolean; 17 | name?: string; 18 | label?: string; 19 | bold?: boolean; 20 | underline?: boolean; 21 | max_lines?: number; 22 | validator_id?: string; 23 | } 24 | -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data/jsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Header } from './header'; 11 | 12 | export interface JsonAttribute { 13 | use_tls12: boolean; 14 | callback_url: string; 15 | docid_queryparam?: boolean; 16 | integration_id?: string | null; 17 | headers?: Header | null; 18 | include_metadata?: boolean; 19 | delete_access_token?: boolean; 20 | } 21 | -------------------------------------------------------------------------------- /src/core/error/signNowApiException.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Response } from 'node-fetch'; 11 | 12 | export class SignNowApiException extends Error { 13 | constructor(message: string, private response: Response) { 14 | super(message); 15 | this.name = 'SignNowApiException'; 16 | } 17 | 18 | public getResponse(): Response { 19 | return this.response; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/document/documentPost.ts: -------------------------------------------------------------------------------- 1 | import { DocumentPostRequest, DocumentPostResponse } from '@signnow/api-client/api/document'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function postDocument(): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const documentPost = new DocumentPostRequest('./examples/_data/demo.pdf', 'test.pdf'); 9 | const response = await client.send(documentPost); 10 | 11 | return response; 12 | } 13 | 14 | postDocument().then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /src/api/document/response/data/seal.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Seal { 11 | id: string; 12 | page_number: string; 13 | x: string; 14 | y: string; 15 | width: string; 16 | height: string; 17 | created: string; 18 | unique_id?: string | null; 19 | customer_user_id?: string | null; 20 | email?: string; 21 | transaction_id?: string | null; 22 | data?: string; 23 | } 24 | -------------------------------------------------------------------------------- /src/api/webhookV2/request/data/attribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Header } from './header'; 11 | 12 | export interface Attribute { 13 | callback: string; 14 | delete_access_token?: boolean; 15 | use_tls12?: boolean; 16 | integration_id?: string; 17 | docid_queryparam?: boolean; 18 | headers?: Header | null; 19 | include_metadata?: boolean; 20 | secret_key?: string; 21 | } 22 | -------------------------------------------------------------------------------- /src/core/constants.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export enum HttpStatusCode { 11 | REDIRECT = 300, 12 | CLIENT_ERROR = 400, 13 | SERVER_ERROR = 500, 14 | } 15 | 16 | export enum HttpMethod { 17 | PUT = 'put', 18 | GET = 'get', 19 | POST = 'post', 20 | DELETE = 'delete', 21 | PATCH = 'patch', 22 | } 23 | 24 | export enum HttpAuthType { 25 | BEARER = 'bearer', 26 | BASIC = 'basic', 27 | } 28 | -------------------------------------------------------------------------------- /examples/webhook/subscriptionGet.ts: -------------------------------------------------------------------------------- 1 | import { SubscriptionGetRequest, SubscriptionGetResponse } from '@signnow/api-client/api/webhook'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function getWebhookSubscriptions(): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const subscriptionRequest = new SubscriptionGetRequest(); 9 | const response = await client.send(subscriptionRequest); 10 | return response; 11 | } 12 | 13 | getWebhookSubscriptions().then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/create_free_form_invite_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/invite", 5 | "bodyPatterns": [{"matchesJsonPath": "$.[?(@.to =~ /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/)]"}] 6 | }, 7 | "response": { 8 | "status": 200, 9 | "body": "{\"result\":\"success\",\"id\":\"2bdb4ce13705895b1cd67f32cb63072079bb3f78\",\"callback_url\":\"https:\\/\\/www.gutmann.biz\\/in-laborum-quia-enim-ut-et-nisi-neque\"}", 10 | "headers": { 11 | "Content-Type": "application/json" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/document/documentGet.ts: -------------------------------------------------------------------------------- 1 | import { DocumentGetRequest, DocumentGetResponse } from '@signnow/api-client/api/document'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function getDocument(documentId: string): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const documentGet = new DocumentGetRequest(documentId); 9 | const response = await client.send(documentGet); 10 | 11 | return response; 12 | } 13 | 14 | getDocument('29db9956636d481f9c532ef64951ae78209f7483').then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/recipient.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { EmailGroup } from './emailGroup'; 11 | import { Attribute } from './attribute'; 12 | import { Document } from './document'; 13 | 14 | export interface Recipient { 15 | name: string; 16 | email: string | null; 17 | order: number; 18 | documents: Document[]; 19 | email_group?: EmailGroup; 20 | attributes?: Attribute; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/plan.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Plan { 11 | id: number; 12 | plan_id: string; 13 | name: string; 14 | price: string; 15 | billing_cycle: number; 16 | active: boolean; 17 | groups: string[]; 18 | level: string; 19 | type: string; 20 | api_requests: number; 21 | unit_price: number; 22 | is_trial: boolean; 23 | is_marketplace: boolean; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/document/response/data/fieldValidator.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { DisplayJsonAttribute } from './displayJsonAttribute'; 11 | 12 | export interface FieldValidator { 13 | id: string; 14 | name: string; 15 | regex_expression: string; 16 | description: string; 17 | scope: string; 18 | error_message?: string; 19 | display_json_attributes?: DisplayJsonAttribute; 20 | formula_calculation?: string; 21 | } 22 | -------------------------------------------------------------------------------- /examples/document/documentFields.ts: -------------------------------------------------------------------------------- 1 | import { FieldsGetRequest, FieldsGetResponse } from '@signnow/api-client/api/document'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function getDocumentFields(documentId: string): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const fieldsGetRequest = new FieldsGetRequest(documentId); 9 | const response = await client.send(fieldsGetRequest); 10 | 11 | return response; 12 | } 13 | 14 | getDocumentFields('6c9f255cfb7c42cbbe74b8fba05ca97c90467730').then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /src/api/document/request/data/radiobutton/radiobutton.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Radio } from './radio'; 11 | 12 | export interface Radiobutton { 13 | page_number: number; 14 | x: number; 15 | y: number; 16 | line_height: number; 17 | status: number; 18 | is_printed: number; 19 | size: number; 20 | subtype: string; 21 | name: string; 22 | font: string; 23 | radio: Radio[]; 24 | field_id?: string; 25 | } 26 | -------------------------------------------------------------------------------- /src/api/document/response/data/hyperlink.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Hyperlink { 11 | id: string; 12 | page_number: string; 13 | x: string; 14 | y: string; 15 | font: string; 16 | size: string; 17 | data: string; 18 | label: string; 19 | line_height: string; 20 | original_font_size: string; 21 | created: string; 22 | allow_editing: boolean; 23 | user_id?: string | null; 24 | email?: string; 25 | } 26 | -------------------------------------------------------------------------------- /src/api/documentGroupTemplate/response/data/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Document } from './document'; 11 | import { Owner } from './owner'; 12 | 13 | export interface Data { 14 | unique_id: string; 15 | name: string; 16 | created: number; 17 | state: string; 18 | owner_email: string; 19 | documents: Document[]; 20 | owner: Owner; 21 | invite_id?: string | null; 22 | last_invite_id?: string | null; 23 | } 24 | -------------------------------------------------------------------------------- /src/api/template/response/data/routingDetail/inviteAction.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Authentication } from './authentication'; 11 | 12 | export interface InviteAction { 13 | email: string; 14 | document_id: string; 15 | document_name: string; 16 | allow_reassign: number; 17 | decline_by_signature: number; 18 | lock: boolean; 19 | action: string; 20 | role_name: string; 21 | authentication?: Authentication; 22 | } 23 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_user_initials_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "url": "/user/initial" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"unique_id\":\"ba7b8649b4387e5538dcaceb3f4001e3b467f2b5\",\"width\":\"77177\",\"height\":\"21925\",\"data\":\"iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAApSURBVAiZVcvBCQAgEMTAObH\\/itX1IYgG8ksqc8RDA9WO6CDrFpXkWzZ2uwn\\/AFD5ZAAAAABJRU5ErkJggg==\",\"created\":\"254071286\"}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/document/response/data/payment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Payment { 11 | id: string; 12 | user_id: string; 13 | email: string; 14 | created: string; 15 | amount: string; 16 | payment_request_id?: string | null; 17 | merchant_id?: string | null; 18 | merchant_type?: string | null; 19 | merchant_account_name?: string | null; 20 | currency_name?: string | null; 21 | currency?: string | null; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/enumerationOption.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface EnumerationOption { 11 | id: string; 12 | page_number: string | null; 13 | width: string | null; 14 | height: string | null; 15 | created: number; 16 | enumeration_id?: string | null; 17 | user_id?: string | null; 18 | data?: string | null; 19 | email?: string | null; 20 | x?: string | null; 21 | y?: string | null; 22 | } 23 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/generate_access_token_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/oauth2/token", 5 | "bodyPatterns": [{"matches": "(.*)password=(.*)"}] 6 | }, 7 | "response": { 8 | "status": 200, 9 | "body": "{\"expires_in\":382973089,\"token_type\":\"bearer\",\"access_token\":\"b4c2eb71b3ca97699743d66dc09aceb6670ed61568558185b28fa33236254e56\",\"refresh_token\":\"a794a110b29cd6b543f6a4ac31138fb6406b8ce5b225518cba739bb9841a3225\",\"scope\":\"*\",\"last_login\":644336355}", 10 | "headers": { 11 | "Content-Type": "application/x-www-form-urlencoded" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/refresh_access_token_post.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "POST", 4 | "url": "/oauth2/token", 5 | "bodyPatterns": [{"matches": "(.*)refresh_token=(.*)"}] 6 | }, 7 | "response": { 8 | "status": 200, 9 | "body": "{\"expires_in\":1489230235,\"token_type\":\"bearer\",\"access_token\":\"170393c3ea4ebf3769ef3b87de0f9d6f1e1772177a4ed64b0841d2a8df869c62\",\"refresh_token\":\"0bedcb556b757cd2a273e08db0f2f4f1f75e9b2e12b4471c1c9ad17ad1cd94e6\",\"scope\":\"*\",\"last_login\":793660579}", 10 | "headers": { 11 | "Content-Type": "application/x-www-form-urlencoded" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/api/document/response/data/line/line.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Line { 11 | id: string; 12 | page_number: string; 13 | subtype: string; 14 | x: string; 15 | y: string; 16 | width: string; 17 | height: string; 18 | line_width: string; 19 | control_points: number[]; 20 | created: string; 21 | allow_editing: boolean; 22 | user_id?: string | null; 23 | email?: string; 24 | fill_color?: string | null; 25 | } 26 | -------------------------------------------------------------------------------- /src/api/document/response/data/signature.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Signature { 11 | id: string; 12 | user_id: string; 13 | signature_request_id: string | null; 14 | email: string; 15 | page_number: string; 16 | width: string; 17 | height: string; 18 | x: string; 19 | y: string; 20 | subtype: string; 21 | allow_editing: boolean; 22 | created: number; 23 | owner_as_recipient?: boolean; 24 | data?: string; 25 | } 26 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/documentGroupGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Document } from './data/document/document'; 11 | import { OriginatorOrganizationSettings } from './data/originatorOrganizationSettings'; 12 | 13 | export interface DocumentGroupGet { 14 | id: string; 15 | group_name: string; 16 | documents: Document[]; 17 | originator_organization_settings: OriginatorOrganizationSettings[]; 18 | invite_id?: string | null; 19 | } 20 | -------------------------------------------------------------------------------- /tests/core/mock/mockConfig.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export class MockConfig { 11 | public readonly port: number; 12 | 13 | public readonly ip: string; 14 | 15 | public readonly expectationsDir: string; 16 | 17 | public readonly debug: number; 18 | 19 | constructor() { 20 | this.port = 8086; 21 | this.ip = '0.0.0.0'; 22 | this.expectationsDir = `${__dirname}/../../resources/wiremock/mappings`; 23 | this.debug = 1; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_pending_document_group_invites_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}/pendinginvites" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"invites\":[{\"link\":\"http:\\/\\/jakubowski.com\\/magni-vero-enim-ut-dolores-ut-dignissimos.html\",\"document_name\":\"facere sed\",\"inviter_email\":\"kovacek.carroll@yahoo.com\",\"action\":\"molestias\",\"status\":\"occaecati\"}],\"document_group_name\":\"quo\",\"sign_as_merged\":false}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Recipient } from './recipient'; 11 | import { UnmappedDocument } from './unmappedDocument'; 12 | import { AllowedUnmappedSignDocument } from './allowedUnmappedSignDocument'; 13 | 14 | export interface Data { 15 | recipients: Recipient[]; 16 | unmapped_documents?: UnmappedDocument[]; 17 | allowed_unmapped_sign_documents?: AllowedUnmappedSignDocument[]; 18 | cc?: string[]; 19 | } 20 | -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/premiumAccess.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { User } from './user'; 11 | import { Subscription } from './subscription'; 12 | import { Api } from './api'; 13 | 14 | export interface PremiumAccess { 15 | subscription: Subscription; 16 | api: Api; 17 | error?: boolean; 18 | user?: User; 19 | active?: boolean; 20 | plan?: string; 21 | business?: boolean; 22 | trial?: boolean; 23 | credit_card?: boolean; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/document/response/data/documentGroupInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { FreeformInvite } from './freeformInvite'; 11 | 12 | export interface DocumentGroupInfo { 13 | document_group_id?: string | null; 14 | document_group_name?: string | null; 15 | invite_id?: string | null; 16 | invite_status?: string | null; 17 | sign_as_merged?: boolean; 18 | doc_count_in_group?: number; 19 | freeform_invite?: FreeformInvite; 20 | state?: string | null; 21 | } 22 | -------------------------------------------------------------------------------- /src/types/metaPagination.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | type PaginationObjectLinks = { 11 | next?: string; 12 | previous?: string; 13 | }; 14 | 15 | type PaginationLinks = PaginationObjectLinks | string[]; 16 | 17 | interface Pagination { 18 | count: number; 19 | currentPage: number; 20 | perPage: number; 21 | total: number; 22 | totalPages: number; 23 | links?: PaginationLinks; 24 | } 25 | 26 | export interface MetaPagination { 27 | pagination: Pagination; 28 | } -------------------------------------------------------------------------------- /src/api/documentGroup/response/data/data/attribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Reminder } from './reminder'; 11 | import { Authentication } from './authentication'; 12 | 13 | export interface Attribute { 14 | allow_forwarding: boolean; 15 | show_decline_button: boolean; 16 | i_am_recipient: boolean; 17 | message?: string; 18 | subject?: string; 19 | expiration_days?: number | null; 20 | reminder?: Reminder; 21 | authentication?: Authentication; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/document/response/data/radiobutton/radiobutton.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Radio } from './radio'; 11 | 12 | export interface Radiobutton { 13 | id: string; 14 | user_id: string; 15 | name: string; 16 | server_created_timestamp: string; 17 | x: string; 18 | y: string; 19 | size: string; 20 | line_height: string; 21 | page_number: string; 22 | is_printed: boolean; 23 | font: string; 24 | original_font_size: string; 25 | radio: Radio[]; 26 | } 27 | -------------------------------------------------------------------------------- /src/api/folder/response/folderDocumentsGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Folder } from './data/folder'; 11 | import { Document } from './data/document/document'; 12 | 13 | export interface FolderDocumentsGet { 14 | id: string; 15 | created: string; 16 | name: string; 17 | user_id: string; 18 | system_folder: boolean; 19 | shared: boolean; 20 | folders: Folder[]; 21 | total_documents: number; 22 | documents: Document[]; 23 | parent_id?: string | null; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/documentGroupInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { FreeformInvite } from './freeformInvite'; 11 | 12 | export interface DocumentGroupInfo { 13 | freeform_invite: FreeformInvite; 14 | document_group_id?: string | null; 15 | document_group_name?: string | null; 16 | invite_id?: string | null; 17 | invite_status?: string | null; 18 | state?: string | null; 19 | doc_count_in_group?: number | null; 20 | sign_as_merged?: boolean | null; 21 | } 22 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/field.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | 12 | export interface Field { 13 | id: string; 14 | type: string; 15 | role_id: string; 16 | json_attributes: JsonAttribute; 17 | role: string; 18 | originator: string; 19 | fulfiller?: string | null; 20 | field_request_id?: string | null; 21 | element_id?: string | null; 22 | template_field_id?: string | null; 23 | field_id?: string | null; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/attachment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Attachment { 11 | id: string; 12 | user_id: string; 13 | page_number: string; 14 | width: string; 15 | height: string; 16 | x: string; 17 | y: string; 18 | created: string; 19 | line_height?: string | null; 20 | original_attachment_name?: string | null; 21 | filename?: string | null; 22 | file_type?: string | null; 23 | mime_type?: string | null; 24 | file_size?: string | null; 25 | } 26 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/download_document_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/document/[0-9a-z]{40}/download" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "%PDF-1.4\\n1 0 obj\\n<< /Type /Catalog /Pages 2 0 R >>\\nendobj\\n2 0 obj\\n<< /Type /Pages /Count 1 /Kids [3 0 R] >>\\nendobj\\n3 0 obj\\n<< /Type /Page /Parent 2 0 R /Resources << >> /MediaBox [0 0 612 792] >>\\nendobj\\nxref\\n0 4\\n0000000000 65535 f \\n0000000010 00000 n \\n0000000050 00000 n \\n0000000100 00000 n \\ntrailer\\n<< /Size 4 /Root 1 0 R >>\\nstartxref\\n150\\n%%EOF\\n", 9 | "headers": { 10 | "Content-Type": "application/pdf" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/api/template/response/routingDetailsPost.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { RoutingDetail } from './data/routingDetail'; 11 | import { CcStep } from './data/ccStep'; 12 | import { Viewer } from './data/viewer'; 13 | import { Approver } from './data/approver'; 14 | 15 | export interface RoutingDetailsPost { 16 | routing_details: RoutingDetail[]; 17 | cc?: string[]; 18 | cc_step?: CcStep[]; 19 | viewers?: Viewer[]; 20 | approvers?: Approver[]; 21 | invite_link_instructions?: string[]; 22 | } 23 | -------------------------------------------------------------------------------- /src/api/template/response/routingDetailsPut.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Data } from './data/data'; 11 | import { CcStep } from './data/ccStep'; 12 | import { Viewer } from './data/viewer'; 13 | import { Approver } from './data/approver'; 14 | 15 | export interface RoutingDetailsPut { 16 | id: string; 17 | document_id: string; 18 | data: Data; 19 | cc: string[]; 20 | cc_step: CcStep[]; 21 | viewers: Viewer[]; 22 | approvers: Approver[]; 23 | invite_link_instructions: string[]; 24 | } 25 | -------------------------------------------------------------------------------- /examples/documentGroup/delete.ts: -------------------------------------------------------------------------------- 1 | import { DocumentGroupDeleteRequest, DocumentGroupDeleteResponse } from '@signnow/api-client/api/documentGroup'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function deleteDocumentGroup(documentGroupId: string): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const documentGroupDelete = new DocumentGroupDeleteRequest(documentGroupId); 9 | 10 | const response = await client.send(documentGroupDelete); 11 | 12 | return response; 13 | } 14 | 15 | deleteDocumentGroup('4612b8e9ef3e4fe8aa999ea4ab43619e56a32692').then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /src/api/embeddedGroupInvite/request/data/invite/signer.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Document } from './document'; 11 | 12 | export interface Signer { 13 | email: string; 14 | auth_method: string; 15 | documents: Document[]; 16 | first_name?: string | null; 17 | last_name?: string | null; 18 | language?: string; 19 | required_preset_signature_name?: string; 20 | redirect_uri?: string; 21 | decline_redirect_uri?: string; 22 | redirect_target?: string; 23 | delivery_type?: string; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Reminder } from './reminder'; 11 | 12 | export interface Data { 13 | name?: string | null; 14 | inviter_role?: boolean | null; 15 | signing_order?: number | null; 16 | delivery_type?: string | null; 17 | default_email?: string | null; 18 | role_id?: string | null; 19 | decline_by_signature?: boolean | null; 20 | reassign?: boolean | null; 21 | expiration_days?: number | null; 22 | reminder?: Reminder | null; 23 | } 24 | -------------------------------------------------------------------------------- /tests/resources/wiremock/mappings/get_document_group_invite_get.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "method": "GET", 4 | "urlPathPattern": "/documentgroup/[0-9a-z]{40}/groupinvite/[0-9a-z]{40}" 5 | }, 6 | "response": { 7 | "status": 200, 8 | "body": "{\"invite\":{\"id\":\"f469f80c441e5547a173b15981ee4c17bcf644c5\",\"status\":\"soluta\",\"steps\":[{\"id\":\"95883ffb2d1971d02604f1814765be89fc75f6aa\",\"status\":\"praesentium\",\"order\":53494,\"actions\":[{\"action\":\"qui\",\"email\":\"abbigail.abshire@hotmail.com\",\"document_id\":\"db631f0c4998e012e1519aaa7cc3ad276c935a51\",\"status\":\"non\",\"role_name\":\"nemo\"}]}]}}", 9 | "headers": { 10 | "Content-Type": "application/json" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "module": "commonjs", 5 | "moduleResolution": "node", 6 | 7 | "outDir": "dist", 8 | "declaration": true, 9 | "sourceMap": false, 10 | "declarationMap": false, 11 | 12 | "esModuleInterop": true, 13 | "resolveJsonModule": true, 14 | "isolatedModules": true, 15 | 16 | "strict": true, 17 | "noImplicitAny": true, 18 | "noUnusedLocals": true, 19 | "noUnusedParameters": true, 20 | "noImplicitReturns": true, 21 | "noFallthroughCasesInSwitch": true, 22 | 23 | "forceConsistentCasingInFileNames": true, 24 | "removeComments": true 25 | }, 26 | "include": ["src/**/*"], 27 | "exclude": ["dist", "node_modules", "tests", "examples"] 28 | } 29 | -------------------------------------------------------------------------------- /src/api/auth/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export type { RefreshTokenPost as RefreshTokenPostResponse } from './response/refreshTokenPost'; 11 | export type { TokenGet as TokenGetResponse } from './response/tokenGet'; 12 | export type { TokenPost as TokenPostResponse } from './response/tokenPost'; 13 | export { RefreshTokenPost as RefreshTokenPostRequest } from './request/refreshTokenPost'; 14 | export { TokenGet as TokenGetRequest } from './request/tokenGet'; 15 | export { TokenPost as TokenPostRequest } from './request/tokenPost'; -------------------------------------------------------------------------------- /src/api/document/response/data/field.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | 12 | export interface Field { 13 | id: string; 14 | type: string; 15 | role_id: string; 16 | json_attributes: JsonAttribute; 17 | role: string; 18 | originator: string; 19 | fulfiller?: string | null; 20 | field_request_id?: string | null; 21 | field_request_canceled?: string | null; 22 | element_id?: string | null; 23 | field_id?: string | null; 24 | template_field_id?: string | null; 25 | } 26 | -------------------------------------------------------------------------------- /src/api/document/request/data/integrationObject.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface IntegrationObject { 11 | x: number; 12 | y: number; 13 | size: number; 14 | width: number; 15 | height: number; 16 | page_number: number; 17 | font: string; 18 | data: string; 19 | status: number; 20 | color: string; 21 | created: number; 22 | active: boolean; 23 | line_height: number; 24 | bold?: boolean; 25 | italic?: boolean; 26 | underline?: boolean; 27 | field_id?: string; 28 | api_integration_id?: string | null; 29 | } 30 | -------------------------------------------------------------------------------- /src/api/folder/response/folderGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Folder } from './data/folder'; 11 | import { Document } from './data/document/document'; 12 | 13 | export interface FolderGet { 14 | id: string; 15 | created: number; 16 | name: string; 17 | user_id: string; 18 | system_folder: boolean; 19 | shared: boolean; 20 | folders: Folder[]; 21 | total_documents: number; 22 | documents: Document[]; 23 | parent_id?: string | null; 24 | team_name?: string | null; 25 | team_id?: string | null; 26 | team_type?: string | null; 27 | } 28 | -------------------------------------------------------------------------------- /src/api/user/response/data/organization.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Domain } from './domain'; 11 | import { Logo } from './logo'; 12 | import { ActiveLogo } from './activeLogo'; 13 | import { Team } from './team'; 14 | 15 | export interface Organization { 16 | is_admin: boolean; 17 | is_superadmin: boolean; 18 | is_workspace: boolean; 19 | id?: string; 20 | name?: string; 21 | deleted?: string; 22 | created?: string; 23 | updated?: string; 24 | domains?: Domain[]; 25 | logos?: Logo[]; 26 | active_logo?: ActiveLogo[]; 27 | teams?: Team[]; 28 | } 29 | -------------------------------------------------------------------------------- /src/api/template/response/routingDetailsGet.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { RoutingDetail } from './data/routingDetail'; 11 | import { CcStep } from './data/ccStep'; 12 | import { Viewer } from './data/viewer'; 13 | import { Approver } from './data/approver'; 14 | import { Attribute } from './data/attribute'; 15 | 16 | export interface RoutingDetailsGet { 17 | routing_details: RoutingDetail[]; 18 | cc: string[]; 19 | cc_step: CcStep[]; 20 | viewers: Viewer[]; 21 | approvers: Approver[]; 22 | attributes: Attribute; 23 | invite_link_instructions?: string[]; 24 | } 25 | -------------------------------------------------------------------------------- /src/api/document/response/data/viewerFieldInvite/viewerFieldInvite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { EmailGroup } from './emailGroup'; 11 | import { EmailStatus } from './emailStatus'; 12 | 13 | export interface ViewerFieldInvite { 14 | id: string; 15 | status: string; 16 | created: string; 17 | updated: string; 18 | email: string; 19 | redirect_target: string; 20 | email_group: EmailGroup; 21 | email_statuses: EmailStatus[]; 22 | signer_user_id?: string | null; 23 | role?: string | null; 24 | role_id?: string | null; 25 | close_redirect_uri?: string | null; 26 | } 27 | -------------------------------------------------------------------------------- /src/api/document/response/data/integrationObject.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | 12 | export interface IntegrationObject { 13 | id: string; 14 | page_number: string; 15 | font: string; 16 | size: string; 17 | data: string; 18 | x: string; 19 | y: string; 20 | json_attributes: JsonAttribute; 21 | line_height: number; 22 | user_id?: string | null; 23 | email?: string | null; 24 | api_integration_id?: string | null; 25 | created?: string; 26 | allow_editing?: boolean; 27 | width?: string; 28 | height?: string; 29 | } 30 | -------------------------------------------------------------------------------- /examples/document/documentDownloadGet.ts: -------------------------------------------------------------------------------- 1 | import { DocumentDownloadGetRequest, DocumentDownloadGetResponse } from '@signnow/api-client/api/document'; 2 | import { displayResultError, Sdk } from '@signnow/api-client/core'; 3 | 4 | export async function documentDownloadGet(documentId: string): Promise { 5 | const sdk = await new Sdk().authenticate(); 6 | const client = sdk.getClient(); 7 | 8 | const documentDownloadGet = new DocumentDownloadGetRequest(documentId); 9 | 10 | documentDownloadGet.withHistory('no'); 11 | documentDownloadGet.withType('collapsed'); 12 | 13 | const response = await client.send(documentDownloadGet); 14 | 15 | return response; 16 | } 17 | 18 | documentDownloadGet('8612b8e9ea3e4fe8aa997ea4ab43619e56a32691').then(displayResultError).catch(displayResultError); -------------------------------------------------------------------------------- /src/api/embeddedInvite/request/data/invite.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Authentication } from './authentication'; 11 | 12 | export interface Invite { 13 | email: string; 14 | role_id: string; 15 | order: number; 16 | auth_method: string; 17 | language?: string; 18 | first_name?: string; 19 | last_name?: string; 20 | prefill_signature_name?: string; 21 | required_preset_signature_name?: string; 22 | force_new_signature?: number; 23 | redirect_uri?: string; 24 | decline_redirect_uri?: string; 25 | redirect_target?: string; 26 | authentication?: Authentication | null; 27 | } 28 | -------------------------------------------------------------------------------- /src/api/document/response/data/attachment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { JsonAttribute } from './jsonAttribute'; 11 | 12 | export interface Attachment { 13 | id: string; 14 | user_id: string; 15 | page_number: string; 16 | width: string; 17 | height: string; 18 | x: string; 19 | y: string; 20 | line_height: number; 21 | created: string; 22 | json_attributes: JsonAttribute; 23 | original_attachment_name?: string | null; 24 | filename?: string | null; 25 | file_type?: string | null; 26 | mime_type?: string | null; 27 | file_size?: string | null; 28 | allow_editing?: boolean; 29 | } 30 | -------------------------------------------------------------------------------- /src/api/document/response/data/request/request.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { EmailStatus } from './emailStatus'; 11 | 12 | export interface Request { 13 | id: string; 14 | unique_id: string; 15 | user_id: string; 16 | created: string; 17 | originator_email: string | null; 18 | signer_email: string | null; 19 | redirect_target: string; 20 | signature_id?: string | null; 21 | signer_user_id?: string | null; 22 | canceled?: boolean | null; 23 | redirect_uri?: string | null; 24 | close_redirect_uri?: string | null; 25 | language?: string | null; 26 | email_statuses?: EmailStatus[]; 27 | } 28 | -------------------------------------------------------------------------------- /src/api/user/response/data/subscription.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { GatewaySubscription } from './gatewaySubscription'; 11 | 12 | export interface Subscription { 13 | id: string; 14 | subscription_id: string; 15 | name: string; 16 | expired: number; 17 | created: number; 18 | updated: number; 19 | plan: string; 20 | mobile_plan_type: string; 21 | credit_card: boolean; 22 | trial: boolean; 23 | term: number; 24 | seat_admin_email: string; 25 | plan_version: number; 26 | is_usage_based: boolean; 27 | is_usage_based_seat_free: boolean; 28 | gateway_subscription?: GatewaySubscription; 29 | } 30 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * as auth from './api/auth'; 2 | export * as document from './api/document'; 3 | export * as documentField from './api/documentField'; 4 | export * as documentGroup from './api/documentGroup'; 5 | export * as documentGroupInvite from './api/documentGroupInvite'; 6 | export * as documentInvite from './api/documentInvite'; 7 | export * as embeddedEditor from './api/embeddedEditor'; 8 | export * as embeddedGroupInvite from './api/embeddedGroupInvite'; 9 | export * as embeddedInvite from './api/embeddedInvite'; 10 | export * as embeddedSending from './api/embeddedSending'; 11 | export * as folder from './api/folder'; 12 | export * as smartFields from './api/smartFields'; 13 | export * as template from './api/template'; 14 | export * as user from './api/user'; 15 | export * as webhook from './api/webhook'; 16 | export * as webhookV2 from './api/webhookV2'; 17 | export { Sdk } from './core/sdk'; -------------------------------------------------------------------------------- /src/api/user/response/data/premiumAccess/subscription.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Plan } from './plan'; 11 | import { Marketplace } from './marketplace'; 12 | import { GatewaySubscription } from './gatewaySubscription'; 13 | 14 | export interface Subscription { 15 | serial_number: string; 16 | name: string; 17 | term: number; 18 | seats: number; 19 | used_seats: number; 20 | expired_at: number; 21 | created_at: number; 22 | updated_at: number; 23 | key: string; 24 | version: string; 25 | plan: Plan; 26 | admin_email: string; 27 | status: string; 28 | marketplace?: Marketplace; 29 | gateway_subscription?: GatewaySubscription; 30 | } 31 | -------------------------------------------------------------------------------- /src/api/folder/response/data/document/jsonAttribute.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface JsonAttribute { 11 | page_number: number; 12 | x: number; 13 | y: number; 14 | width: number; 15 | height: number; 16 | required: boolean; 17 | label?: string | null; 18 | name?: string | null; 19 | color?: string | null; 20 | bold?: boolean | null; 21 | italic?: boolean | null; 22 | underline?: boolean | null; 23 | align?: string | null; 24 | valign?: string | null; 25 | font?: string | null; 26 | size?: number | null; 27 | font_size?: number | null; 28 | arrangement?: string | null; 29 | max_lines?: number | null; 30 | max_chars?: number | null; 31 | } 32 | -------------------------------------------------------------------------------- /src/api/document/request/data/tag/tag.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { Radio } from './radio'; 11 | 12 | export interface Tag { 13 | type: string; 14 | x: number; 15 | y: number; 16 | page_number: number; 17 | role: string; 18 | required: boolean; 19 | width: number; 20 | height: number; 21 | tag_name?: string; 22 | name?: string; 23 | label?: string; 24 | align?: string; 25 | valign?: string; 26 | prefilled_text?: string; 27 | validator_id?: string; 28 | dependency?: string; 29 | hint?: string; 30 | link?: string; 31 | custom_defined_option?: boolean; 32 | lock_to_sign_date?: boolean; 33 | radio?: Radio[]; 34 | enumeration_options?: string[]; 35 | } 36 | -------------------------------------------------------------------------------- /src/api/document/request/data/field.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export interface Field { 11 | x: number; 12 | y: number; 13 | width: number; 14 | height: number; 15 | type: string; 16 | page_number: number; 17 | required: boolean; 18 | role: string; 19 | custom_defined_option?: boolean; 20 | name?: string; 21 | tooltip?: string; 22 | formula?: string; 23 | conditional?: boolean; 24 | stretch_to_grid?: boolean; 25 | active?: boolean; 26 | bold?: boolean; 27 | italic?: boolean; 28 | underline?: boolean; 29 | subtype?: string; 30 | align?: string; 31 | calculation_precision?: string; 32 | color?: string; 33 | label?: string; 34 | validator_id?: string; 35 | } 36 | -------------------------------------------------------------------------------- /src/api/embeddedEditor/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export type { DocumentEmbeddedEditorLinkPost as DocumentEmbeddedEditorLinkPostResponse } from './response/documentEmbeddedEditorLinkPost'; 11 | export type { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostResponse } from './response/documentGroupEmbeddedEditorLinkPost'; 12 | export type { Data as DataResponseAttribute } from './response/data/data'; 13 | export { DocumentEmbeddedEditorLinkPost as DocumentEmbeddedEditorLinkPostRequest } from './request/documentEmbeddedEditorLinkPost'; 14 | export { DocumentGroupEmbeddedEditorLinkPost as DocumentGroupEmbeddedEditorLinkPostRequest } from './request/documentGroupEmbeddedEditorLinkPost'; -------------------------------------------------------------------------------- /src/api/embeddedSending/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | export type { DocumentEmbeddedSendingLinkPost as DocumentEmbeddedSendingLinkPostResponse } from './response/documentEmbeddedSendingLinkPost'; 11 | export type { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostResponse } from './response/documentGroupEmbeddedSendingLinkPost'; 12 | export type { Data as DataResponseAttribute } from './response/data/data'; 13 | export { DocumentEmbeddedSendingLinkPost as DocumentEmbeddedSendingLinkPostRequest } from './request/documentEmbeddedSendingLinkPost'; 14 | export { DocumentGroupEmbeddedSendingLinkPost as DocumentGroupEmbeddedSendingLinkPostRequest } from './request/documentGroupEmbeddedSendingLinkPost'; -------------------------------------------------------------------------------- /src/api/webhookV2/response/data/data.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a part of signNow SDK API client. 3 | * 4 | * (с) Copyright © 2011-present airSlate Inc. (https://www.signnow.com) 5 | * 6 | * For more details on copyright, see LICENSE.md file 7 | * that was distributed with this source code. 8 | */ 9 | 10 | import { RequestHeader } from './requestHeader'; 11 | import { RequestContent } from './requestContent'; 12 | 13 | export interface Data { 14 | id: string; 15 | application_name: string; 16 | entity_id: string; 17 | entity_type: string; 18 | event_subscription_id: string; 19 | event_subscription_active: boolean; 20 | event_name: string; 21 | callback_url: string; 22 | request_method: string; 23 | duration: number; 24 | request_start_time: number; 25 | request_end_time: number; 26 | request_content: RequestContent; 27 | response_content: string; 28 | response_status_code: number; 29 | request_headers?: RequestHeader; 30 | } 31 | --------------------------------------------------------------------------------