docspring 4.1.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -4
- package/README.md +10 -6
- package/dist/ApiClient.js +3 -3
- package/dist/RequestSchemas.js +94 -15
- package/dist/WebhookSignature.js +86 -0
- package/dist/api/Client.js +193 -57
- package/dist/index.js +42 -0
- package/dist/model/AddTemplateFieldsRequest.js +2 -2
- package/dist/model/AiFieldNamingLanguage.js +1 -1
- package/dist/model/AuthenticationCheck.js +2 -2
- package/dist/model/BarcodeSymbology.js +1 -1
- package/dist/model/CheckCharacter.js +1 -1
- package/dist/model/CombinedFieldType.js +1 -1
- package/dist/model/CombinedPdf.js +4 -4
- package/dist/model/CombinedPdfFiles.js +2 -2
- package/dist/model/CombinedPdfList.js +2 -2
- package/dist/model/CombinedPdfSource.js +2 -2
- package/dist/model/CombinedPdfSourceInput.js +2 -2
- package/dist/model/CombinedPdfSourcePdf.js +2 -2
- package/dist/model/CombinedPdfSourceType.js +1 -1
- package/dist/model/CombinedPdfState.js +1 -1
- package/dist/model/CopyTemplateRequest.js +2 -2
- package/dist/model/CreateCombinedPdfRequest.js +3 -3
- package/dist/model/CreateCustomFileFromUploadRequest.js +2 -2
- package/dist/model/CreateFolderRequest.js +2 -2
- package/dist/model/CreateSignatureRequestEventRequest.js +2 -2
- package/dist/model/CreateSignatureRequestTokenRequest.js +2 -2
- package/dist/model/CreateSubmissionBatchRequest.js +2 -2
- package/dist/model/CreateSubmissionRequest.js +7 -7
- package/dist/model/CreateTemplatePreviewRequest.js +112 -0
- package/dist/model/CreateTemplateRequest.js +32 -13
- package/dist/model/CreateWebhookRequest.js +2 -2
- package/dist/model/CustomFile.js +2 -2
- package/dist/model/CustomFileList.js +2 -2
- package/dist/model/CustomFileSourcePdf.js +2 -2
- package/dist/model/ErrorCode.js +12 -2
- package/dist/model/ErrorDetail.js +3 -3
- package/dist/model/ErrorInfo.js +7 -7
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/ExpirationInterval.js +1 -1
- package/dist/model/Field.js +3 -3
- package/dist/model/FieldComparisonCondition.js +2 -2
- package/dist/model/FieldComparisonOperator.js +1 -1
- package/dist/model/FieldDependency.js +2 -2
- package/dist/model/FieldDependencyInput.js +2 -2
- package/dist/model/FieldDisplayType.js +1 -1
- package/dist/model/FieldEqualsCondition.js +2 -2
- package/dist/model/FieldEqualsOperator.js +1 -1
- package/dist/model/FieldGroup.js +6 -6
- package/dist/model/FieldGroupInput.js +3 -3
- package/dist/model/FieldGroupType.js +1 -1
- package/dist/model/FieldInCondition.js +2 -2
- package/dist/model/FieldInput.js +3 -3
- package/dist/model/FieldOverride.js +2 -2
- package/dist/model/FieldPresenceCondition.js +2 -2
- package/dist/model/FieldPresenceOperator.js +1 -1
- package/dist/model/FieldRangeCondition.js +2 -2
- package/dist/model/FieldReimportState.js +1 -1
- package/dist/model/FieldSetupLogic.js +1 -1
- package/dist/model/FieldSetupNaming.js +1 -1
- package/dist/model/FieldSetupSource.js +1 -1
- package/dist/model/FieldType.js +1 -1
- package/dist/model/Folder.js +2 -2
- package/dist/model/FolderList.js +2 -2
- package/dist/model/GenerateFilesFormat.js +16 -1
- package/dist/model/GenerateSubmissionFilesRequest.js +4 -4
- package/dist/model/GeneratedFile.js +7 -7
- package/dist/model/GeneratedFileState.js +1 -1
- package/dist/model/HtmlEngineOptions.js +2 -2
- package/dist/model/HtmlEngineOptionsInput.js +2 -2
- package/dist/model/ImageGravity.js +1 -1
- package/dist/model/ImageScaleType.js +1 -1
- package/dist/model/ModelCodeLanguage.js +7 -2
- package/dist/model/MoveFolderRequest.js +2 -2
- package/dist/model/MoveTemplateRequest.js +2 -2
- package/dist/model/NumberConditionType.js +1 -1
- package/dist/model/OutputFormat.js +11 -1
- package/dist/model/PageFormat.js +1 -1
- package/dist/model/PageImage.js +2 -2
- package/dist/model/PageImages.js +2 -2
- package/dist/model/PredefinedField.js +2 -2
- package/dist/model/PredefinedFieldInput.js +2 -2
- package/dist/model/PublishTemplateVersionRequest.js +2 -2
- package/dist/model/RemoveTemplateFieldsRequest.js +2 -2
- package/dist/model/RenameFolderRequest.js +2 -2
- package/dist/model/ReorderTemplateFieldsRequest.js +2 -2
- package/dist/model/RestoreTemplateVersionRequest.js +2 -2
- package/dist/model/ShapeType.js +1 -1
- package/dist/model/SignatureRequest.js +2 -2
- package/dist/model/SignatureRequestAuthSecondFactorType.js +1 -1
- package/dist/model/SignatureRequestAuthType.js +1 -1
- package/dist/model/SignatureRequestEvent.js +2 -2
- package/dist/model/SignatureRequestEventType.js +1 -1
- package/dist/model/SignatureRequestInput.js +2 -2
- package/dist/model/SignatureRequestMessageType.js +1 -1
- package/dist/model/SignatureRequestState.js +1 -1
- package/dist/model/SignatureRequestToken.js +2 -2
- package/dist/model/SignatureRequestTokenType.js +1 -1
- package/dist/model/StringConditionType.js +1 -1
- package/dist/model/Submission.js +82 -82
- package/dist/model/SubmissionAction.js +2 -2
- package/dist/model/SubmissionActionState.js +1 -1
- package/dist/model/SubmissionActionType.js +1 -1
- package/dist/model/SubmissionBatch.js +9 -9
- package/dist/model/SubmissionBatchState.js +1 -1
- package/dist/model/SubmissionFiles.js +20 -2
- package/dist/model/SubmissionInput.js +7 -7
- package/dist/model/SubmissionList.js +6 -6
- package/dist/model/SubmissionSource.js +1 -1
- package/dist/model/SubmissionSourcePdf.js +2 -2
- package/dist/model/SubmissionState.js +1 -1
- package/dist/model/SubmissionSummary.js +343 -0
- package/dist/model/SubmissionValidation.js +2 -2
- package/dist/model/Template.js +95 -72
- package/dist/model/TemplateActor.js +4 -4
- package/dist/model/TemplateActorType.js +1 -1
- package/dist/model/TemplateDefaults.js +2 -2
- package/dist/model/TemplateDefaultsInput.js +2 -2
- package/dist/model/TemplateDiff.js +6 -6
- package/dist/model/TemplateDiffSummary.js +2 -2
- package/dist/model/TemplateDocument.js +49 -49
- package/dist/model/TemplateDocumentState.js +12 -2
- package/dist/model/TemplateDocumentSummary.js +152 -0
- package/dist/model/TemplateFieldChange.js +2 -2
- package/dist/model/TemplateFieldChanges.js +2 -2
- package/dist/model/TemplateFieldDependency.js +2 -2
- package/dist/model/TemplateFieldDependencyAction.js +1 -1
- package/dist/model/TemplateFieldDependencyCondition.js +2 -2
- package/dist/model/TemplateFieldDependencyConditionInput.js +2 -2
- package/dist/model/TemplateFieldDependencyInput.js +2 -2
- package/dist/model/TemplateFieldDependencyMatch.js +1 -1
- package/dist/model/TemplateFieldDependencyOperator.js +1 -1
- package/dist/model/TemplateFieldLogicStatus.js +1 -1
- package/dist/model/TemplateFieldMove.js +2 -2
- package/dist/model/TemplateFields.js +2 -2
- package/dist/model/TemplateFormMode.js +1 -1
- package/dist/model/TemplateModelCode.js +2 -2
- package/dist/model/TemplatePageAiError.js +1 -1
- package/dist/model/TemplatePageAiNamingStatus.js +1 -1
- package/dist/model/TemplatePageFieldsStatus.js +1 -1
- package/dist/model/TemplatePageImageStatus.js +1 -1
- package/dist/model/TemplatePageImages.js +2 -2
- package/dist/model/TemplatePageProcessingStatus.js +2 -2
- package/dist/model/TemplatePreview.js +211 -0
- package/dist/model/TemplatePreviewState.js +64 -0
- package/dist/model/TemplateSourcePdf.js +2 -2
- package/dist/model/TemplateSummary.js +29 -291
- package/dist/model/TemplateSummaryList.js +2 -2
- package/dist/model/TemplateType.js +7 -2
- package/dist/model/TemplateVersion.js +2 -2
- package/dist/model/TemplateVersionType.js +1 -1
- package/dist/model/TextAlignment.js +1 -1
- package/dist/model/TextOverflow.js +1 -1
- package/dist/model/TextVerticalAlignment.js +1 -1
- package/dist/model/Typeface.js +1 -1
- package/dist/model/UpdateSignatureRequestRequest.js +2 -2
- package/dist/model/UpdateTemplateDocumentRequest.js +8 -8
- package/dist/model/UpdateTemplateFieldsRequest.js +2 -2
- package/dist/model/UpdateTemplateRequest.js +26 -7
- package/dist/model/UpdateWebhookRequest.js +2 -2
- package/dist/model/UploadMethod.js +1 -1
- package/dist/model/UploadPresign.js +2 -2
- package/dist/model/UrlSourcePdf.js +2 -2
- package/dist/model/ValidateSubmissionRequest.js +7 -7
- package/dist/model/Webhook.js +2 -2
- package/dist/model/WebhookEventType.js +1 -1
- package/dist/model/WebhookList.js +2 -2
- package/dist/model/WebhookMode.js +1 -1
- package/package.json +4 -3
|
@@ -5,11 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var _TemplateActor = _interopRequireDefault(require("./TemplateActor"));
|
|
11
|
-
var _TemplateDocument = _interopRequireDefault(require("./TemplateDocument"));
|
|
12
|
-
var _TemplateFormMode = _interopRequireDefault(require("./TemplateFormMode"));
|
|
8
|
+
var _OutputFormat = _interopRequireDefault(require("./OutputFormat"));
|
|
9
|
+
var _TemplateDocumentSummary = _interopRequireDefault(require("./TemplateDocumentSummary"));
|
|
13
10
|
var _TemplateType = _interopRequireDefault(require("./TemplateType"));
|
|
14
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -22,7 +19,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
22
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
20
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
24
21
|
* DocSpring API
|
|
25
|
-
* Use DocSpring's API to
|
|
22
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
26
23
|
*
|
|
27
24
|
* The version of the OpenAPI document: v2
|
|
28
25
|
*
|
|
@@ -35,55 +32,33 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
35
32
|
/**
|
|
36
33
|
* The TemplateSummary model module.
|
|
37
34
|
* @module model/TemplateSummary
|
|
38
|
-
* @version 4.
|
|
35
|
+
* @version 4.3.0
|
|
39
36
|
*/
|
|
40
37
|
var TemplateSummary = /*#__PURE__*/function () {
|
|
41
38
|
/**
|
|
42
39
|
* Constructs a new <code>TemplateSummary</code>.
|
|
43
|
-
* A template in a list. Get a template by its ID for its HTML, defaults, field dependency rules and published versions.
|
|
40
|
+
* A template in a list: its name, type, folder, latest published version and whether it's ready. Get a template by its ID for its settings, its PDF in full, its HTML, defaults, field dependency rules and published versions.
|
|
44
41
|
* @alias module:model/TemplateSummary
|
|
45
42
|
* @extends Object
|
|
46
43
|
* @param id {String} The template's ID.
|
|
47
44
|
* @param name {String} The template's name.
|
|
48
45
|
* @param description {String} Shown under the template's name at the top of its hosted forms, and used as their meta description. Not shown on embedded forms or signature requests.
|
|
49
|
-
* @param template_type {module:model/TemplateType} `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. It can't be changed after the template is created.
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
46
|
+
* @param template_type {module:model/TemplateType} `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
|
|
47
|
+
* @param output_format {module:model/OutputFormat} What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; PDF and HTML templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
|
|
48
|
+
* @param ready {Boolean} Whether the template can make documents. HTML templates are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
49
|
+
* @param document {module:model/TemplateDocumentSummary} The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
52
50
|
* @param parent_folder_id {String} The ID of the folder the template is in. Null for a template at the root. Setting it moves the template and all of its published versions.
|
|
53
51
|
* @param path {String} The path of the folder the template is in, such as `/Contracts`. `/` for a template at the root.
|
|
54
|
-
* @param version {String} The published version this is, such as `1.2.0`. Null for the draft.
|
|
55
52
|
* @param latest_version {String} The template's latest published version. Null if no version has been published.
|
|
56
53
|
* @param version_published_at {Date} When this version was published. Null for the draft.
|
|
57
54
|
* @param locked {Boolean} A locked template can't be changed or deleted until it's unlocked (`locked` can always be changed).
|
|
58
|
-
* @param add_signature_request_submission_id_footers {Boolean} Print the submission ID in the footer of each page of PDFs signed through signature requests.
|
|
59
|
-
* @param ai_field_naming_language {module:model/AiFieldNamingLanguage} The language AI field setup names fields in: `auto` uses the form's language when it's written in the Latin alphabet without accents, and English otherwise; `english` always uses English; `form_language` uses the form's language and script. New templates take it from your account's template settings. Null for HTML templates.
|
|
60
|
-
* @param allow_additional_properties {Boolean} Accept submission data with properties that aren't fields of the template.
|
|
61
|
-
* @param allow_skipping_optional_fields {Boolean} Visual forms and signature request forms show the Continue button as soon as the required fields are filled in, without visiting each optional field. The `allowSkippingOptionalFields` embed option overrides it.
|
|
62
|
-
* @param default_form_mode {module:model/TemplateFormMode} The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). HTML templates have no visual form, so `web` is the only value they accept.
|
|
63
|
-
* @param editable_submissions {Boolean} Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
|
|
64
|
-
* @param embed_domains {Array.<String>} The sites where the template's signature requests, forms and embedded template editor can be loaded: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work). When it's empty, live signature requests don't load on any site, and the embedded template editor loads on every site.
|
|
65
|
-
* @param embed_edit_allow_settings {Boolean} Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
|
|
66
|
-
* @param embed_edit_allow_versioning {Boolean} Allow the embedded template editor to publish, restore, compare and delete published versions.
|
|
67
|
-
* @param embed_edit_allow_document_replacement {Boolean} Allow the embedded template editor to replace the template's PDF.
|
|
68
|
-
* @param encrypt_pdfs {Boolean} Encrypt generated PDFs with `encrypt_pdfs_password`.
|
|
69
|
-
* @param has_encrypt_pdfs_password {Boolean} Whether `encrypt_pdfs_password` is set.
|
|
70
|
-
* @param expire_submissions {Boolean} Delete each submission's data and PDF after `expire_after` `expiration_interval`.
|
|
71
|
-
* @param expire_after {Number} How many `expiration_interval`s a submission's data and PDF are kept for, when `expire_submissions` is on. At most 5256000 (10 years in minutes).
|
|
72
|
-
* @param expiration_interval {module:model/ExpirationInterval} The unit of `expire_after`.
|
|
73
|
-
* @param merge_audit_trail_pdf {Boolean} Add the audit trail to the end of PDFs signed through signature requests.
|
|
74
|
-
* @param parse_dates_using_template_date_format {Boolean} Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
|
|
75
|
-
* @param public_submissions {Boolean} Allow anyone with a submission's ID to download its PDF.
|
|
76
|
-
* @param public_web_form {Boolean} Allow anyone to fill in the template's web form.
|
|
77
|
-
* @param redirect_url {String} Where the web form sends people after they submit it.
|
|
78
|
-
* @param has_slack_webhook_url {Boolean} Whether `slack_webhook_url` is set.
|
|
79
55
|
* @param last_changed_at {Date} When the draft was last changed.
|
|
80
|
-
* @param last_changed_by {module:model/TemplateActor} Who last changed the draft: a user in your account, an API token, or someone using the embedded template editor. Null if no change has been recorded.
|
|
81
56
|
* @param created_at {Date} When the template was created.
|
|
82
57
|
* @param updated_at {Date} When the template was last updated.
|
|
83
58
|
*/
|
|
84
|
-
function TemplateSummary(id, name, description, template_type, ready, document, parent_folder_id, path,
|
|
59
|
+
function TemplateSummary(id, name, description, template_type, output_format, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at) {
|
|
85
60
|
_classCallCheck(this, TemplateSummary);
|
|
86
|
-
TemplateSummary.initialize(this, id, name, description, template_type, ready, document, parent_folder_id, path,
|
|
61
|
+
TemplateSummary.initialize(this, id, name, description, template_type, output_format, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at);
|
|
87
62
|
}
|
|
88
63
|
|
|
89
64
|
/**
|
|
@@ -93,42 +68,20 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
93
68
|
*/
|
|
94
69
|
return _createClass(TemplateSummary, null, [{
|
|
95
70
|
key: "initialize",
|
|
96
|
-
value: function initialize(obj, id, name, description, template_type, ready, document, parent_folder_id, path,
|
|
71
|
+
value: function initialize(obj, id, name, description, template_type, output_format, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at) {
|
|
97
72
|
obj['id'] = id;
|
|
98
73
|
obj['name'] = name;
|
|
99
74
|
obj['description'] = description;
|
|
100
75
|
obj['template_type'] = template_type;
|
|
76
|
+
obj['output_format'] = output_format;
|
|
101
77
|
obj['ready'] = ready;
|
|
102
78
|
obj['document'] = document;
|
|
103
79
|
obj['parent_folder_id'] = parent_folder_id;
|
|
104
80
|
obj['path'] = path;
|
|
105
|
-
obj['version'] = version;
|
|
106
81
|
obj['latest_version'] = latest_version;
|
|
107
82
|
obj['version_published_at'] = version_published_at;
|
|
108
83
|
obj['locked'] = locked;
|
|
109
|
-
obj['add_signature_request_submission_id_footers'] = add_signature_request_submission_id_footers;
|
|
110
|
-
obj['ai_field_naming_language'] = ai_field_naming_language;
|
|
111
|
-
obj['allow_additional_properties'] = allow_additional_properties;
|
|
112
|
-
obj['allow_skipping_optional_fields'] = allow_skipping_optional_fields;
|
|
113
|
-
obj['default_form_mode'] = default_form_mode;
|
|
114
|
-
obj['editable_submissions'] = editable_submissions;
|
|
115
|
-
obj['embed_domains'] = embed_domains;
|
|
116
|
-
obj['embed_edit_allow_settings'] = embed_edit_allow_settings;
|
|
117
|
-
obj['embed_edit_allow_versioning'] = embed_edit_allow_versioning;
|
|
118
|
-
obj['embed_edit_allow_document_replacement'] = embed_edit_allow_document_replacement;
|
|
119
|
-
obj['encrypt_pdfs'] = encrypt_pdfs;
|
|
120
|
-
obj['has_encrypt_pdfs_password'] = has_encrypt_pdfs_password;
|
|
121
|
-
obj['expire_submissions'] = expire_submissions;
|
|
122
|
-
obj['expire_after'] = expire_after;
|
|
123
|
-
obj['expiration_interval'] = expiration_interval;
|
|
124
|
-
obj['merge_audit_trail_pdf'] = merge_audit_trail_pdf;
|
|
125
|
-
obj['parse_dates_using_template_date_format'] = parse_dates_using_template_date_format;
|
|
126
|
-
obj['public_submissions'] = public_submissions;
|
|
127
|
-
obj['public_web_form'] = public_web_form;
|
|
128
|
-
obj['redirect_url'] = redirect_url;
|
|
129
|
-
obj['has_slack_webhook_url'] = has_slack_webhook_url;
|
|
130
84
|
obj['last_changed_at'] = last_changed_at;
|
|
131
|
-
obj['last_changed_by'] = last_changed_by;
|
|
132
85
|
obj['created_at'] = created_at;
|
|
133
86
|
obj['updated_at'] = updated_at;
|
|
134
87
|
}
|
|
@@ -158,11 +111,14 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
158
111
|
if (data.hasOwnProperty('template_type')) {
|
|
159
112
|
obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'], _TemplateType["default"]);
|
|
160
113
|
}
|
|
114
|
+
if (data.hasOwnProperty('output_format')) {
|
|
115
|
+
obj['output_format'] = _ApiClient["default"].convertToType(data['output_format'], _OutputFormat["default"]);
|
|
116
|
+
}
|
|
161
117
|
if (data.hasOwnProperty('ready')) {
|
|
162
118
|
obj['ready'] = _ApiClient["default"].convertToType(data['ready'], 'Boolean');
|
|
163
119
|
}
|
|
164
120
|
if (data.hasOwnProperty('document')) {
|
|
165
|
-
obj['document'] = _ApiClient["default"].convertToType(data['document'],
|
|
121
|
+
obj['document'] = _ApiClient["default"].convertToType(data['document'], _TemplateDocumentSummary["default"]);
|
|
166
122
|
}
|
|
167
123
|
if (data.hasOwnProperty('parent_folder_id')) {
|
|
168
124
|
obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
|
|
@@ -170,9 +126,6 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
170
126
|
if (data.hasOwnProperty('path')) {
|
|
171
127
|
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
|
172
128
|
}
|
|
173
|
-
if (data.hasOwnProperty('version')) {
|
|
174
|
-
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
175
|
-
}
|
|
176
129
|
if (data.hasOwnProperty('latest_version')) {
|
|
177
130
|
obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'String');
|
|
178
131
|
}
|
|
@@ -182,75 +135,9 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
182
135
|
if (data.hasOwnProperty('locked')) {
|
|
183
136
|
obj['locked'] = _ApiClient["default"].convertToType(data['locked'], 'Boolean');
|
|
184
137
|
}
|
|
185
|
-
if (data.hasOwnProperty('add_signature_request_submission_id_footers')) {
|
|
186
|
-
obj['add_signature_request_submission_id_footers'] = _ApiClient["default"].convertToType(data['add_signature_request_submission_id_footers'], 'Boolean');
|
|
187
|
-
}
|
|
188
|
-
if (data.hasOwnProperty('ai_field_naming_language')) {
|
|
189
|
-
obj['ai_field_naming_language'] = _ApiClient["default"].convertToType(data['ai_field_naming_language'], _AiFieldNamingLanguage["default"]);
|
|
190
|
-
}
|
|
191
|
-
if (data.hasOwnProperty('allow_additional_properties')) {
|
|
192
|
-
obj['allow_additional_properties'] = _ApiClient["default"].convertToType(data['allow_additional_properties'], 'Boolean');
|
|
193
|
-
}
|
|
194
|
-
if (data.hasOwnProperty('allow_skipping_optional_fields')) {
|
|
195
|
-
obj['allow_skipping_optional_fields'] = _ApiClient["default"].convertToType(data['allow_skipping_optional_fields'], 'Boolean');
|
|
196
|
-
}
|
|
197
|
-
if (data.hasOwnProperty('default_form_mode')) {
|
|
198
|
-
obj['default_form_mode'] = _ApiClient["default"].convertToType(data['default_form_mode'], _TemplateFormMode["default"]);
|
|
199
|
-
}
|
|
200
|
-
if (data.hasOwnProperty('editable_submissions')) {
|
|
201
|
-
obj['editable_submissions'] = _ApiClient["default"].convertToType(data['editable_submissions'], 'Boolean');
|
|
202
|
-
}
|
|
203
|
-
if (data.hasOwnProperty('embed_domains')) {
|
|
204
|
-
obj['embed_domains'] = _ApiClient["default"].convertToType(data['embed_domains'], ['String']);
|
|
205
|
-
}
|
|
206
|
-
if (data.hasOwnProperty('embed_edit_allow_settings')) {
|
|
207
|
-
obj['embed_edit_allow_settings'] = _ApiClient["default"].convertToType(data['embed_edit_allow_settings'], 'Boolean');
|
|
208
|
-
}
|
|
209
|
-
if (data.hasOwnProperty('embed_edit_allow_versioning')) {
|
|
210
|
-
obj['embed_edit_allow_versioning'] = _ApiClient["default"].convertToType(data['embed_edit_allow_versioning'], 'Boolean');
|
|
211
|
-
}
|
|
212
|
-
if (data.hasOwnProperty('embed_edit_allow_document_replacement')) {
|
|
213
|
-
obj['embed_edit_allow_document_replacement'] = _ApiClient["default"].convertToType(data['embed_edit_allow_document_replacement'], 'Boolean');
|
|
214
|
-
}
|
|
215
|
-
if (data.hasOwnProperty('encrypt_pdfs')) {
|
|
216
|
-
obj['encrypt_pdfs'] = _ApiClient["default"].convertToType(data['encrypt_pdfs'], 'Boolean');
|
|
217
|
-
}
|
|
218
|
-
if (data.hasOwnProperty('has_encrypt_pdfs_password')) {
|
|
219
|
-
obj['has_encrypt_pdfs_password'] = _ApiClient["default"].convertToType(data['has_encrypt_pdfs_password'], 'Boolean');
|
|
220
|
-
}
|
|
221
|
-
if (data.hasOwnProperty('expire_submissions')) {
|
|
222
|
-
obj['expire_submissions'] = _ApiClient["default"].convertToType(data['expire_submissions'], 'Boolean');
|
|
223
|
-
}
|
|
224
|
-
if (data.hasOwnProperty('expire_after')) {
|
|
225
|
-
obj['expire_after'] = _ApiClient["default"].convertToType(data['expire_after'], 'Number');
|
|
226
|
-
}
|
|
227
|
-
if (data.hasOwnProperty('expiration_interval')) {
|
|
228
|
-
obj['expiration_interval'] = _ApiClient["default"].convertToType(data['expiration_interval'], _ExpirationInterval["default"]);
|
|
229
|
-
}
|
|
230
|
-
if (data.hasOwnProperty('merge_audit_trail_pdf')) {
|
|
231
|
-
obj['merge_audit_trail_pdf'] = _ApiClient["default"].convertToType(data['merge_audit_trail_pdf'], 'Boolean');
|
|
232
|
-
}
|
|
233
|
-
if (data.hasOwnProperty('parse_dates_using_template_date_format')) {
|
|
234
|
-
obj['parse_dates_using_template_date_format'] = _ApiClient["default"].convertToType(data['parse_dates_using_template_date_format'], 'Boolean');
|
|
235
|
-
}
|
|
236
|
-
if (data.hasOwnProperty('public_submissions')) {
|
|
237
|
-
obj['public_submissions'] = _ApiClient["default"].convertToType(data['public_submissions'], 'Boolean');
|
|
238
|
-
}
|
|
239
|
-
if (data.hasOwnProperty('public_web_form')) {
|
|
240
|
-
obj['public_web_form'] = _ApiClient["default"].convertToType(data['public_web_form'], 'Boolean');
|
|
241
|
-
}
|
|
242
|
-
if (data.hasOwnProperty('redirect_url')) {
|
|
243
|
-
obj['redirect_url'] = _ApiClient["default"].convertToType(data['redirect_url'], 'String');
|
|
244
|
-
}
|
|
245
|
-
if (data.hasOwnProperty('has_slack_webhook_url')) {
|
|
246
|
-
obj['has_slack_webhook_url'] = _ApiClient["default"].convertToType(data['has_slack_webhook_url'], 'Boolean');
|
|
247
|
-
}
|
|
248
138
|
if (data.hasOwnProperty('last_changed_at')) {
|
|
249
139
|
obj['last_changed_at'] = _ApiClient["default"].convertToType(data['last_changed_at'], 'Date');
|
|
250
140
|
}
|
|
251
|
-
if (data.hasOwnProperty('last_changed_by')) {
|
|
252
|
-
obj['last_changed_by'] = _ApiClient["default"].convertToType(data['last_changed_by'], _TemplateActor["default"]);
|
|
253
|
-
}
|
|
254
141
|
if (data.hasOwnProperty('created_at')) {
|
|
255
142
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
256
143
|
}
|
|
@@ -299,7 +186,7 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
299
186
|
// validate the optional field `document`
|
|
300
187
|
if (data['document']) {
|
|
301
188
|
// data not null
|
|
302
|
-
|
|
189
|
+
_TemplateDocumentSummary["default"].validateJSON(data['document']);
|
|
303
190
|
}
|
|
304
191
|
// ensure the json data is a string
|
|
305
192
|
if (data['parent_folder_id'] && !(typeof data['parent_folder_id'] === 'string' || data['parent_folder_id'] instanceof String)) {
|
|
@@ -310,31 +197,14 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
310
197
|
throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
|
|
311
198
|
}
|
|
312
199
|
// ensure the json data is a string
|
|
313
|
-
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
314
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
315
|
-
}
|
|
316
|
-
// ensure the json data is a string
|
|
317
200
|
if (data['latest_version'] && !(typeof data['latest_version'] === 'string' || data['latest_version'] instanceof String)) {
|
|
318
201
|
throw new Error("Expected the field `latest_version` to be a primitive type in the JSON string but got " + data['latest_version']);
|
|
319
202
|
}
|
|
320
|
-
// ensure the json data is an array
|
|
321
|
-
if (!Array.isArray(data['embed_domains'])) {
|
|
322
|
-
throw new Error("Expected the field `embed_domains` to be an array in the JSON data but got " + data['embed_domains']);
|
|
323
|
-
}
|
|
324
|
-
// ensure the json data is a string
|
|
325
|
-
if (data['redirect_url'] && !(typeof data['redirect_url'] === 'string' || data['redirect_url'] instanceof String)) {
|
|
326
|
-
throw new Error("Expected the field `redirect_url` to be a primitive type in the JSON string but got " + data['redirect_url']);
|
|
327
|
-
}
|
|
328
|
-
// validate the optional field `last_changed_by`
|
|
329
|
-
if (data['last_changed_by']) {
|
|
330
|
-
// data not null
|
|
331
|
-
_TemplateActor["default"].validateJSON(data['last_changed_by']);
|
|
332
|
-
}
|
|
333
203
|
return true;
|
|
334
204
|
}
|
|
335
205
|
}]);
|
|
336
206
|
}();
|
|
337
|
-
TemplateSummary.RequiredProperties = ["id", "name", "description", "template_type", "ready", "document", "parent_folder_id", "path", "
|
|
207
|
+
TemplateSummary.RequiredProperties = ["id", "name", "description", "template_type", "output_format", "ready", "document", "parent_folder_id", "path", "latest_version", "version_published_at", "locked", "last_changed_at", "created_at", "updated_at"];
|
|
338
208
|
|
|
339
209
|
/**
|
|
340
210
|
* The template's ID.
|
|
@@ -355,20 +225,26 @@ TemplateSummary.prototype['name'] = undefined;
|
|
|
355
225
|
TemplateSummary.prototype['description'] = undefined;
|
|
356
226
|
|
|
357
227
|
/**
|
|
358
|
-
* `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. It can't be changed after the template is created.
|
|
228
|
+
* `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
|
|
359
229
|
* @member {module:model/TemplateType} template_type
|
|
360
230
|
*/
|
|
361
231
|
TemplateSummary.prototype['template_type'] = undefined;
|
|
362
232
|
|
|
363
233
|
/**
|
|
364
|
-
*
|
|
234
|
+
* What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; PDF and HTML templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
|
|
235
|
+
* @member {module:model/OutputFormat} output_format
|
|
236
|
+
*/
|
|
237
|
+
TemplateSummary.prototype['output_format'] = undefined;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether the template can make documents. HTML templates are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
365
241
|
* @member {Boolean} ready
|
|
366
242
|
*/
|
|
367
243
|
TemplateSummary.prototype['ready'] = undefined;
|
|
368
244
|
|
|
369
245
|
/**
|
|
370
|
-
* The PDF of a PDF template. Null for HTML templates, and for a PDF template that has no PDF yet.
|
|
371
|
-
* @member {module:model/
|
|
246
|
+
* The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
247
|
+
* @member {module:model/TemplateDocumentSummary} document
|
|
372
248
|
*/
|
|
373
249
|
TemplateSummary.prototype['document'] = undefined;
|
|
374
250
|
|
|
@@ -384,12 +260,6 @@ TemplateSummary.prototype['parent_folder_id'] = undefined;
|
|
|
384
260
|
*/
|
|
385
261
|
TemplateSummary.prototype['path'] = undefined;
|
|
386
262
|
|
|
387
|
-
/**
|
|
388
|
-
* The published version this is, such as `1.2.0`. Null for the draft.
|
|
389
|
-
* @member {String} version
|
|
390
|
-
*/
|
|
391
|
-
TemplateSummary.prototype['version'] = undefined;
|
|
392
|
-
|
|
393
263
|
/**
|
|
394
264
|
* The template's latest published version. Null if no version has been published.
|
|
395
265
|
* @member {String} latest_version
|
|
@@ -408,144 +278,12 @@ TemplateSummary.prototype['version_published_at'] = undefined;
|
|
|
408
278
|
*/
|
|
409
279
|
TemplateSummary.prototype['locked'] = undefined;
|
|
410
280
|
|
|
411
|
-
/**
|
|
412
|
-
* Print the submission ID in the footer of each page of PDFs signed through signature requests.
|
|
413
|
-
* @member {Boolean} add_signature_request_submission_id_footers
|
|
414
|
-
*/
|
|
415
|
-
TemplateSummary.prototype['add_signature_request_submission_id_footers'] = undefined;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The language AI field setup names fields in: `auto` uses the form's language when it's written in the Latin alphabet without accents, and English otherwise; `english` always uses English; `form_language` uses the form's language and script. New templates take it from your account's template settings. Null for HTML templates.
|
|
419
|
-
* @member {module:model/AiFieldNamingLanguage} ai_field_naming_language
|
|
420
|
-
*/
|
|
421
|
-
TemplateSummary.prototype['ai_field_naming_language'] = undefined;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Accept submission data with properties that aren't fields of the template.
|
|
425
|
-
* @member {Boolean} allow_additional_properties
|
|
426
|
-
*/
|
|
427
|
-
TemplateSummary.prototype['allow_additional_properties'] = undefined;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Visual forms and signature request forms show the Continue button as soon as the required fields are filled in, without visiting each optional field. The `allowSkippingOptionalFields` embed option overrides it.
|
|
431
|
-
* @member {Boolean} allow_skipping_optional_fields
|
|
432
|
-
*/
|
|
433
|
-
TemplateSummary.prototype['allow_skipping_optional_fields'] = undefined;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). HTML templates have no visual form, so `web` is the only value they accept.
|
|
437
|
-
* @member {module:model/TemplateFormMode} default_form_mode
|
|
438
|
-
*/
|
|
439
|
-
TemplateSummary.prototype['default_form_mode'] = undefined;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
|
|
443
|
-
* @member {Boolean} editable_submissions
|
|
444
|
-
*/
|
|
445
|
-
TemplateSummary.prototype['editable_submissions'] = undefined;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* The sites where the template's signature requests, forms and embedded template editor can be loaded: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work). When it's empty, live signature requests don't load on any site, and the embedded template editor loads on every site.
|
|
449
|
-
* @member {Array.<String>} embed_domains
|
|
450
|
-
*/
|
|
451
|
-
TemplateSummary.prototype['embed_domains'] = undefined;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
|
|
455
|
-
* @member {Boolean} embed_edit_allow_settings
|
|
456
|
-
*/
|
|
457
|
-
TemplateSummary.prototype['embed_edit_allow_settings'] = undefined;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Allow the embedded template editor to publish, restore, compare and delete published versions.
|
|
461
|
-
* @member {Boolean} embed_edit_allow_versioning
|
|
462
|
-
*/
|
|
463
|
-
TemplateSummary.prototype['embed_edit_allow_versioning'] = undefined;
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Allow the embedded template editor to replace the template's PDF.
|
|
467
|
-
* @member {Boolean} embed_edit_allow_document_replacement
|
|
468
|
-
*/
|
|
469
|
-
TemplateSummary.prototype['embed_edit_allow_document_replacement'] = undefined;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Encrypt generated PDFs with `encrypt_pdfs_password`.
|
|
473
|
-
* @member {Boolean} encrypt_pdfs
|
|
474
|
-
*/
|
|
475
|
-
TemplateSummary.prototype['encrypt_pdfs'] = undefined;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Whether `encrypt_pdfs_password` is set.
|
|
479
|
-
* @member {Boolean} has_encrypt_pdfs_password
|
|
480
|
-
*/
|
|
481
|
-
TemplateSummary.prototype['has_encrypt_pdfs_password'] = undefined;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Delete each submission's data and PDF after `expire_after` `expiration_interval`.
|
|
485
|
-
* @member {Boolean} expire_submissions
|
|
486
|
-
*/
|
|
487
|
-
TemplateSummary.prototype['expire_submissions'] = undefined;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* How many `expiration_interval`s a submission's data and PDF are kept for, when `expire_submissions` is on. At most 5256000 (10 years in minutes).
|
|
491
|
-
* @member {Number} expire_after
|
|
492
|
-
*/
|
|
493
|
-
TemplateSummary.prototype['expire_after'] = undefined;
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* The unit of `expire_after`.
|
|
497
|
-
* @member {module:model/ExpirationInterval} expiration_interval
|
|
498
|
-
*/
|
|
499
|
-
TemplateSummary.prototype['expiration_interval'] = undefined;
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Add the audit trail to the end of PDFs signed through signature requests.
|
|
503
|
-
* @member {Boolean} merge_audit_trail_pdf
|
|
504
|
-
*/
|
|
505
|
-
TemplateSummary.prototype['merge_audit_trail_pdf'] = undefined;
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
|
|
509
|
-
* @member {Boolean} parse_dates_using_template_date_format
|
|
510
|
-
*/
|
|
511
|
-
TemplateSummary.prototype['parse_dates_using_template_date_format'] = undefined;
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Allow anyone with a submission's ID to download its PDF.
|
|
515
|
-
* @member {Boolean} public_submissions
|
|
516
|
-
*/
|
|
517
|
-
TemplateSummary.prototype['public_submissions'] = undefined;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Allow anyone to fill in the template's web form.
|
|
521
|
-
* @member {Boolean} public_web_form
|
|
522
|
-
*/
|
|
523
|
-
TemplateSummary.prototype['public_web_form'] = undefined;
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* Where the web form sends people after they submit it.
|
|
527
|
-
* @member {String} redirect_url
|
|
528
|
-
*/
|
|
529
|
-
TemplateSummary.prototype['redirect_url'] = undefined;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Whether `slack_webhook_url` is set.
|
|
533
|
-
* @member {Boolean} has_slack_webhook_url
|
|
534
|
-
*/
|
|
535
|
-
TemplateSummary.prototype['has_slack_webhook_url'] = undefined;
|
|
536
|
-
|
|
537
281
|
/**
|
|
538
282
|
* When the draft was last changed.
|
|
539
283
|
* @member {Date} last_changed_at
|
|
540
284
|
*/
|
|
541
285
|
TemplateSummary.prototype['last_changed_at'] = undefined;
|
|
542
286
|
|
|
543
|
-
/**
|
|
544
|
-
* Who last changed the draft: a user in your account, an API token, or someone using the embedded template editor. Null if no change has been recorded.
|
|
545
|
-
* @member {module:model/TemplateActor} last_changed_by
|
|
546
|
-
*/
|
|
547
|
-
TemplateSummary.prototype['last_changed_by'] = undefined;
|
|
548
|
-
|
|
549
287
|
/**
|
|
550
288
|
* When the template was created.
|
|
551
289
|
* @member {Date} created_at
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
19
19
|
* DocSpring API
|
|
20
|
-
* Use DocSpring's API to
|
|
20
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v2
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The TemplateSummaryList model module.
|
|
32
32
|
* @module model/TemplateSummaryList
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.3.0
|
|
34
34
|
*/
|
|
35
35
|
var TemplateSummaryList = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
|
@@ -56,4 +56,9 @@ _defineProperty(TemplateType, "pdf", "pdf");
|
|
|
56
56
|
* value: "html"
|
|
57
57
|
* @const
|
|
58
58
|
*/
|
|
59
|
-
_defineProperty(TemplateType, "html", "html");
|
|
59
|
+
_defineProperty(TemplateType, "html", "html");
|
|
60
|
+
/**
|
|
61
|
+
* value: "docx"
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
_defineProperty(TemplateType, "docx", "docx");
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
19
19
|
* DocSpring API
|
|
20
|
-
* Use DocSpring's API to
|
|
20
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v2
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The TemplateVersion model module.
|
|
32
32
|
* @module model/TemplateVersion
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.3.0
|
|
34
34
|
*/
|
|
35
35
|
var TemplateVersion = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
package/dist/model/Typeface.js
CHANGED
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
16
16
|
* DocSpring API
|
|
17
|
-
* Use DocSpring's API to
|
|
17
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: v2
|
|
20
20
|
*
|
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
17
17
|
* DocSpring API
|
|
18
|
-
* Use DocSpring's API to
|
|
18
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: v2
|
|
21
21
|
*
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
28
28
|
/**
|
|
29
29
|
* The UpdateSignatureRequestRequest model module.
|
|
30
30
|
* @module model/UpdateSignatureRequestRequest
|
|
31
|
-
* @version 4.
|
|
31
|
+
* @version 4.3.0
|
|
32
32
|
*/
|
|
33
33
|
var UpdateSignatureRequestRequest = /*#__PURE__*/function () {
|
|
34
34
|
/**
|