UNPKG

@signnow/api-client

Version:
44 lines (43 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentEmbeddedEditorLinkPost = void 0; const constants_1 = require("../../../core/constants"); const constants_2 = require("../../../core/constants"); class DocumentEmbeddedEditorLinkPost { constructor(documentId, redirectUri = '', redirectTarget = '', linkExpiration = 0) { this.documentId = documentId; this.redirectUri = redirectUri; this.redirectTarget = redirectTarget; this.linkExpiration = linkExpiration; this.queryParams = {}; } getPayload() { return { document_id: this.documentId, redirect_uri: this.redirectUri, redirect_target: this.redirectTarget, link_expiration: this.linkExpiration, }; } getMethod() { return constants_1.HttpMethod.POST; } getUrl() { return '/v2/documents/{document_id}/embedded-editor'; } getAuthMethod() { return constants_2.HttpAuthType.BEARER; } getContentType() { return 'application/json'; } getQueryParams() { return this.queryParams; } getUriParams() { return { document_id: this.documentId, }; } } exports.DocumentEmbeddedEditorLinkPost = DocumentEmbeddedEditorLinkPost;