docspring 4.2.0 → 4.4.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 +2 -2
- package/README.md +26 -6
- package/dist/ApiClient.js +3 -3
- package/dist/RequestSchemas.js +1171 -134
- package/dist/RequestValidator.js +4 -0
- package/dist/api/Client.js +1406 -248
- package/dist/index.js +196 -0
- package/dist/model/AddTemplateFieldsRequest.js +4 -4
- 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 +2 -2
- package/dist/model/CombinedPdfFiles.js +2 -2
- package/dist/model/CombinedPdfList.js +2 -2
- package/dist/model/CombinedPdfSource.js +3 -3
- package/dist/model/CombinedPdfSourceInput.js +3 -3
- 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/CreateAccountEmailActionRequest.js +306 -0
- package/dist/model/CreateCombinedPdfRequest.js +2 -2
- package/dist/model/CreateCustomFileFromUploadRequest.js +2 -2
- package/dist/model/CreateEmailActionRequest.js +280 -0
- package/dist/model/CreateEmailDomainRequest.js +114 -0
- 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 +5 -5
- package/dist/model/CreateSubmissionRequest.js +115 -7
- package/dist/model/CreateTemplatePreviewRequest.js +2 -2
- package/dist/model/CreateTemplateRequest.js +119 -14
- 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/DnsRecordType.js +64 -0
- package/dist/model/EmailAction.js +510 -0
- package/dist/model/EmailActionConditions.js +142 -0
- package/dist/model/EmailActionConditionsInput.js +142 -0
- package/dist/model/EmailActionCustomization.js +222 -0
- package/dist/model/EmailActionDelivery.js +59 -0
- package/dist/model/EmailActionFileFormats.js +69 -0
- package/dist/model/EmailActionList.js +132 -0
- package/dist/model/EmailActionSetting.js +119 -0
- package/dist/model/EmailActionSubmissionType.js +64 -0
- package/dist/model/EmailActionTestEmail.js +116 -0
- package/dist/model/EmailDomain.js +245 -0
- package/dist/model/EmailDomainDnsRecord.js +155 -0
- package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
- package/dist/model/EmailDomainList.js +132 -0
- package/dist/model/EmailDomainRecordState.js +64 -0
- package/dist/model/EmailDomainState.js +64 -0
- package/dist/model/ErrorCode.js +11 -1
- package/dist/model/ErrorDetail.js +2 -2
- package/dist/model/ErrorInfo.js +47 -8
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/ExpirationInterval.js +1 -1
- package/dist/model/Field.js +5 -5
- 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 +4 -4
- 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 +4 -4
- package/dist/model/HtmlEngineOptionsInput.js +3 -3
- 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/SendAccountEmailActionTestEmailRequest.js +91 -0
- package/dist/model/ShapeType.js +1 -1
- package/dist/model/SignatureRequest.js +53 -8
- package/dist/model/SignatureRequestAuthSecondFactorType.js +1 -1
- package/dist/model/SignatureRequestAuthType.js +1 -1
- package/dist/model/SignatureRequestEmailAttachments.js +59 -0
- package/dist/model/SignatureRequestEmailStatus.js +89 -0
- package/dist/model/SignatureRequestEvent.js +2 -2
- package/dist/model/SignatureRequestEventType.js +12 -2
- package/dist/model/SignatureRequestInput.js +25 -9
- package/dist/model/SignatureRequestMessageType.js +1 -1
- package/dist/model/SignatureRequestReminders.js +121 -0
- package/dist/model/SignatureRequestState.js +1 -1
- package/dist/model/SignatureRequestToken.js +2 -2
- package/dist/model/SignatureRequestTokenType.js +1 -1
- package/dist/model/SigningOrder.js +59 -0
- package/dist/model/StringConditionType.js +37 -2
- package/dist/model/Submission.js +31 -19
- package/dist/model/SubmissionAction.js +28 -13
- 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 +2 -2
- 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 +8 -8
- package/dist/model/SubmissionValidation.js +2 -2
- package/dist/model/Template.js +149 -26
- package/dist/model/TemplateActor.js +2 -2
- 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 +23 -23
- package/dist/model/TemplateDocumentState.js +12 -2
- package/dist/model/TemplateDocumentSummary.js +11 -11
- 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 +5 -5
- package/dist/model/TemplatePreviewState.js +1 -1
- package/dist/model/TemplateSourcePdf.js +3 -3
- package/dist/model/TemplateSummary.js +24 -12
- package/dist/model/TemplateSummaryList.js +2 -2
- package/dist/model/TemplateType.js +12 -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/UpdateAccountEmailActionRequest.js +306 -0
- package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
- package/dist/model/UpdateEmailActionRequest.js +280 -0
- 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 +113 -8
- 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 +115 -7
- package/dist/model/Webhook.js +2 -2
- package/dist/model/WebhookEventType.js +11 -1
- package/dist/model/WebhookList.js +2 -2
- package/dist/model/WebhookMode.js +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
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); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to
|
|
19
|
+
* 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.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v2
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateSourcePdf model module.
|
|
31
31
|
* @module model/TemplateSourcePdf
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.4.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateSourcePdf = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -139,7 +139,7 @@ TemplateSourcePdf.prototype['type'] = 'template';
|
|
|
139
139
|
TemplateSourcePdf.prototype['id'] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest`
|
|
142
|
+
* For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` (the newest published version, or the draft when none has been published) or `draft`. Default `latest`.
|
|
143
143
|
* @member {String} template_version
|
|
144
144
|
*/
|
|
145
145
|
TemplateSourcePdf.prototype['template_version'] = undefined;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _OutputFormat = _interopRequireDefault(require("./OutputFormat"));
|
|
8
9
|
var _TemplateDocumentSummary = _interopRequireDefault(require("./TemplateDocumentSummary"));
|
|
9
10
|
var _TemplateType = _interopRequireDefault(require("./TemplateType"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -18,7 +19,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
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); } /**
|
|
20
21
|
* DocSpring API
|
|
21
|
-
* 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.
|
|
22
23
|
*
|
|
23
24
|
* The version of the OpenAPI document: v2
|
|
24
25
|
*
|
|
@@ -31,7 +32,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
32
|
/**
|
|
32
33
|
* The TemplateSummary model module.
|
|
33
34
|
* @module model/TemplateSummary
|
|
34
|
-
* @version 4.
|
|
35
|
+
* @version 4.4.0
|
|
35
36
|
*/
|
|
36
37
|
var TemplateSummary = /*#__PURE__*/function () {
|
|
37
38
|
/**
|
|
@@ -42,9 +43,10 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
42
43
|
* @param id {String} The template's ID.
|
|
43
44
|
* @param name {String} The template's name.
|
|
44
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.
|
|
45
|
-
* @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.
|
|
46
|
-
* @param
|
|
47
|
-
* @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. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. 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; other 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 and page designs 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 page designs, 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.
|
|
48
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.
|
|
49
51
|
* @param path {String} The path of the folder the template is in, such as `/Contracts`. `/` for a template at the root.
|
|
50
52
|
* @param latest_version {String} The template's latest published version. Null if no version has been published.
|
|
@@ -54,9 +56,9 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
54
56
|
* @param created_at {Date} When the template was created.
|
|
55
57
|
* @param updated_at {Date} When the template was last updated.
|
|
56
58
|
*/
|
|
57
|
-
function TemplateSummary(id, name, description, template_type, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at) {
|
|
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) {
|
|
58
60
|
_classCallCheck(this, TemplateSummary);
|
|
59
|
-
TemplateSummary.initialize(this, id, name, description, template_type, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at);
|
|
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);
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
/**
|
|
@@ -66,11 +68,12 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
66
68
|
*/
|
|
67
69
|
return _createClass(TemplateSummary, null, [{
|
|
68
70
|
key: "initialize",
|
|
69
|
-
value: function initialize(obj, id, name, description, template_type, ready, document, parent_folder_id, path, latest_version, version_published_at, locked, last_changed_at, created_at, updated_at) {
|
|
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) {
|
|
70
72
|
obj['id'] = id;
|
|
71
73
|
obj['name'] = name;
|
|
72
74
|
obj['description'] = description;
|
|
73
75
|
obj['template_type'] = template_type;
|
|
76
|
+
obj['output_format'] = output_format;
|
|
74
77
|
obj['ready'] = ready;
|
|
75
78
|
obj['document'] = document;
|
|
76
79
|
obj['parent_folder_id'] = parent_folder_id;
|
|
@@ -108,6 +111,9 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
108
111
|
if (data.hasOwnProperty('template_type')) {
|
|
109
112
|
obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'], _TemplateType["default"]);
|
|
110
113
|
}
|
|
114
|
+
if (data.hasOwnProperty('output_format')) {
|
|
115
|
+
obj['output_format'] = _ApiClient["default"].convertToType(data['output_format'], _OutputFormat["default"]);
|
|
116
|
+
}
|
|
111
117
|
if (data.hasOwnProperty('ready')) {
|
|
112
118
|
obj['ready'] = _ApiClient["default"].convertToType(data['ready'], 'Boolean');
|
|
113
119
|
}
|
|
@@ -198,7 +204,7 @@ var TemplateSummary = /*#__PURE__*/function () {
|
|
|
198
204
|
}
|
|
199
205
|
}]);
|
|
200
206
|
}();
|
|
201
|
-
TemplateSummary.RequiredProperties = ["id", "name", "description", "template_type", "ready", "document", "parent_folder_id", "path", "latest_version", "version_published_at", "locked", "last_changed_at", "created_at", "updated_at"];
|
|
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"];
|
|
202
208
|
|
|
203
209
|
/**
|
|
204
210
|
* The template's ID.
|
|
@@ -219,19 +225,25 @@ TemplateSummary.prototype['name'] = undefined;
|
|
|
219
225
|
TemplateSummary.prototype['description'] = undefined;
|
|
220
226
|
|
|
221
227
|
/**
|
|
222
|
-
* `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. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
|
|
223
229
|
* @member {module:model/TemplateType} template_type
|
|
224
230
|
*/
|
|
225
231
|
TemplateSummary.prototype['template_type'] = undefined;
|
|
226
232
|
|
|
227
233
|
/**
|
|
228
|
-
*
|
|
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; other 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 and page designs 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).
|
|
229
241
|
* @member {Boolean} ready
|
|
230
242
|
*/
|
|
231
243
|
TemplateSummary.prototype['ready'] = undefined;
|
|
232
244
|
|
|
233
245
|
/**
|
|
234
|
-
* The PDF of a PDF template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet.
|
|
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 page designs, 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.
|
|
235
247
|
* @member {module:model/TemplateDocumentSummary} document
|
|
236
248
|
*/
|
|
237
249
|
TemplateSummary.prototype['document'] = undefined;
|
|
@@ -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.4.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,14 @@ _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");
|
|
65
|
+
/**
|
|
66
|
+
* value: "page_designer"
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
_defineProperty(TemplateType, "page_designer", "page_designer");
|
|
@@ -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.4.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
|
*
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _EmailActionConditionsInput = _interopRequireDefault(require("./EmailActionConditionsInput"));
|
|
9
|
+
var _EmailActionDelivery = _interopRequireDefault(require("./EmailActionDelivery"));
|
|
10
|
+
var _EmailActionFileFormats = _interopRequireDefault(require("./EmailActionFileFormats"));
|
|
11
|
+
var _EmailActionSubmissionType = _interopRequireDefault(require("./EmailActionSubmissionType"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* DocSpring API
|
|
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
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: v2
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The UpdateAccountEmailActionRequest model module.
|
|
32
|
+
* @module model/UpdateAccountEmailActionRequest
|
|
33
|
+
* @version 4.4.0
|
|
34
|
+
*/
|
|
35
|
+
var UpdateAccountEmailActionRequest = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>UpdateAccountEmailActionRequest</code>.
|
|
38
|
+
* The settings to change. Properties left out keep their values.
|
|
39
|
+
* @alias module:model/UpdateAccountEmailActionRequest
|
|
40
|
+
*/
|
|
41
|
+
function UpdateAccountEmailActionRequest() {
|
|
42
|
+
_classCallCheck(this, UpdateAccountEmailActionRequest);
|
|
43
|
+
UpdateAccountEmailActionRequest.initialize(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(UpdateAccountEmailActionRequest, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>UpdateAccountEmailActionRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/UpdateAccountEmailActionRequest} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/UpdateAccountEmailActionRequest} The populated <code>UpdateAccountEmailActionRequest</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new UpdateAccountEmailActionRequest();
|
|
67
|
+
if (data.hasOwnProperty('template_ids')) {
|
|
68
|
+
obj['template_ids'] = _ApiClient["default"].convertToType(data['template_ids'], ['String']);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('folder_ids')) {
|
|
71
|
+
obj['folder_ids'] = _ApiClient["default"].convertToType(data['folder_ids'], ['String']);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('name')) {
|
|
74
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('enabled')) {
|
|
77
|
+
obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('to')) {
|
|
80
|
+
obj['to'] = _ApiClient["default"].convertToType(data['to'], ['String']);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('cc')) {
|
|
83
|
+
obj['cc'] = _ApiClient["default"].convertToType(data['cc'], ['String']);
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('bcc')) {
|
|
86
|
+
obj['bcc'] = _ApiClient["default"].convertToType(data['bcc'], ['String']);
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('from_name')) {
|
|
89
|
+
obj['from_name'] = _ApiClient["default"].convertToType(data['from_name'], 'String');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('from_address')) {
|
|
92
|
+
obj['from_address'] = _ApiClient["default"].convertToType(data['from_address'], 'String');
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('reply_to')) {
|
|
95
|
+
obj['reply_to'] = _ApiClient["default"].convertToType(data['reply_to'], 'String');
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('subject')) {
|
|
98
|
+
obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('message')) {
|
|
101
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('file_name')) {
|
|
104
|
+
obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String');
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('file_formats')) {
|
|
107
|
+
obj['file_formats'] = _ApiClient["default"].convertToType(data['file_formats'], _EmailActionFileFormats["default"]);
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('delivery')) {
|
|
110
|
+
obj['delivery'] = _ApiClient["default"].convertToType(data['delivery'], _EmailActionDelivery["default"]);
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('max_attachment_mb')) {
|
|
113
|
+
obj['max_attachment_mb'] = _ApiClient["default"].convertToType(data['max_attachment_mb'], 'Number');
|
|
114
|
+
}
|
|
115
|
+
if (data.hasOwnProperty('submission_type')) {
|
|
116
|
+
obj['submission_type'] = _ApiClient["default"].convertToType(data['submission_type'], _EmailActionSubmissionType["default"]);
|
|
117
|
+
}
|
|
118
|
+
if (data.hasOwnProperty('send_when')) {
|
|
119
|
+
obj['send_when'] = _ApiClient["default"].convertToType(data['send_when'], _EmailActionConditionsInput["default"]);
|
|
120
|
+
}
|
|
121
|
+
if (data.hasOwnProperty('failure_notifications_enabled')) {
|
|
122
|
+
obj['failure_notifications_enabled'] = _ApiClient["default"].convertToType(data['failure_notifications_enabled'], 'Boolean');
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return obj;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Validates the JSON data with respect to <code>UpdateAccountEmailActionRequest</code>.
|
|
130
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
131
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UpdateAccountEmailActionRequest</code>.
|
|
132
|
+
*/
|
|
133
|
+
}, {
|
|
134
|
+
key: "validateJSON",
|
|
135
|
+
value: function validateJSON(data) {
|
|
136
|
+
// ensure the json data is an array
|
|
137
|
+
if (!Array.isArray(data['template_ids'])) {
|
|
138
|
+
throw new Error("Expected the field `template_ids` to be an array in the JSON data but got " + data['template_ids']);
|
|
139
|
+
}
|
|
140
|
+
// ensure the json data is an array
|
|
141
|
+
if (!Array.isArray(data['folder_ids'])) {
|
|
142
|
+
throw new Error("Expected the field `folder_ids` to be an array in the JSON data but got " + data['folder_ids']);
|
|
143
|
+
}
|
|
144
|
+
// ensure the json data is a string
|
|
145
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
147
|
+
}
|
|
148
|
+
// ensure the json data is an array
|
|
149
|
+
if (!Array.isArray(data['to'])) {
|
|
150
|
+
throw new Error("Expected the field `to` to be an array in the JSON data but got " + data['to']);
|
|
151
|
+
}
|
|
152
|
+
// ensure the json data is an array
|
|
153
|
+
if (!Array.isArray(data['cc'])) {
|
|
154
|
+
throw new Error("Expected the field `cc` to be an array in the JSON data but got " + data['cc']);
|
|
155
|
+
}
|
|
156
|
+
// ensure the json data is an array
|
|
157
|
+
if (!Array.isArray(data['bcc'])) {
|
|
158
|
+
throw new Error("Expected the field `bcc` to be an array in the JSON data but got " + data['bcc']);
|
|
159
|
+
}
|
|
160
|
+
// ensure the json data is a string
|
|
161
|
+
if (data['from_name'] && !(typeof data['from_name'] === 'string' || data['from_name'] instanceof String)) {
|
|
162
|
+
throw new Error("Expected the field `from_name` to be a primitive type in the JSON string but got " + data['from_name']);
|
|
163
|
+
}
|
|
164
|
+
// ensure the json data is a string
|
|
165
|
+
if (data['from_address'] && !(typeof data['from_address'] === 'string' || data['from_address'] instanceof String)) {
|
|
166
|
+
throw new Error("Expected the field `from_address` to be a primitive type in the JSON string but got " + data['from_address']);
|
|
167
|
+
}
|
|
168
|
+
// ensure the json data is a string
|
|
169
|
+
if (data['reply_to'] && !(typeof data['reply_to'] === 'string' || data['reply_to'] instanceof String)) {
|
|
170
|
+
throw new Error("Expected the field `reply_to` to be a primitive type in the JSON string but got " + data['reply_to']);
|
|
171
|
+
}
|
|
172
|
+
// ensure the json data is a string
|
|
173
|
+
if (data['subject'] && !(typeof data['subject'] === 'string' || data['subject'] instanceof String)) {
|
|
174
|
+
throw new Error("Expected the field `subject` to be a primitive type in the JSON string but got " + data['subject']);
|
|
175
|
+
}
|
|
176
|
+
// ensure the json data is a string
|
|
177
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
178
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
179
|
+
}
|
|
180
|
+
// ensure the json data is a string
|
|
181
|
+
if (data['file_name'] && !(typeof data['file_name'] === 'string' || data['file_name'] instanceof String)) {
|
|
182
|
+
throw new Error("Expected the field `file_name` to be a primitive type in the JSON string but got " + data['file_name']);
|
|
183
|
+
}
|
|
184
|
+
// validate the optional field `send_when`
|
|
185
|
+
if (data['send_when']) {
|
|
186
|
+
// data not null
|
|
187
|
+
_EmailActionConditionsInput["default"].validateJSON(data['send_when']);
|
|
188
|
+
}
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
}]);
|
|
192
|
+
}();
|
|
193
|
+
/**
|
|
194
|
+
* For an account email action: the IDs of the templates it sends for. With `folder_ids`, it sends for a template that either list includes. Both empty sends for every template. Always empty for a template's own email action.
|
|
195
|
+
* @member {Array.<String>} template_ids
|
|
196
|
+
*/
|
|
197
|
+
UpdateAccountEmailActionRequest.prototype['template_ids'] = undefined;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* For an account email action: the IDs of folders whose templates it sends for, including the templates in the folders inside them. Always empty for a template's own email action.
|
|
201
|
+
* @member {Array.<String>} folder_ids
|
|
202
|
+
*/
|
|
203
|
+
UpdateAccountEmailActionRequest.prototype['folder_ids'] = undefined;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* A name for the email action, shown in the dashboard. Null shows its recipients instead.
|
|
207
|
+
* @member {String} name
|
|
208
|
+
*/
|
|
209
|
+
UpdateAccountEmailActionRequest.prototype['name'] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Whether it sends emails. DocSpring turns an email action off after 3 days of failed emails, or straight away when one of the addresses in `to`, `cc` or `bcc` (not one from a field or metadata) bounces or marks an email as spam.
|
|
213
|
+
* @member {Boolean} enabled
|
|
214
|
+
*/
|
|
215
|
+
UpdateAccountEmailActionRequest.prototype['enabled'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Who gets each email: email addresses, and tags for an address that each submission gives, from one of the template's text or email fields (`{{ data.client_email }}`, or `{{ data["client email"] }}` for a name with spaces) or from its metadata (`{{ metadata.agent_email }}`, or `{{ metadata.agent.email }}` for a value in an object). A tag whose value is blank or isn't a valid address is skipped for that submission, and so is a field an account email action names that the template doesn't have. `{{ signer.email }}` sends each of the submission's signers their own email, to them alone, and everyone else in `to`, `cc` and `bcc` one email together, without the signers. An email needs at least one entry in `to`, `cc` or `bcc`, and at most 10 across them.
|
|
219
|
+
* @member {Array.<String>} to
|
|
220
|
+
*/
|
|
221
|
+
UpdateAccountEmailActionRequest.prototype['to'] = undefined;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Who is copied on each email, as in `to` (but not `{{ signer.email }}`).
|
|
225
|
+
* @member {Array.<String>} cc
|
|
226
|
+
*/
|
|
227
|
+
UpdateAccountEmailActionRequest.prototype['cc'] = undefined;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Who is blind-copied on each email, as in `to` (but not `{{ signer.email }}`).
|
|
231
|
+
* @member {Array.<String>} bcc
|
|
232
|
+
*/
|
|
233
|
+
UpdateAccountEmailActionRequest.prototype['bcc'] = undefined;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The sender's name. Null uses your account's name. From DocSpring's shared address, the name is followed by "via DocSpring".
|
|
237
|
+
* @member {String} from_name
|
|
238
|
+
*/
|
|
239
|
+
UpdateAccountEmailActionRequest.prototype['from_name'] = undefined;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The sender's address, at one of your verified email domains. Null sends from DocSpring's shared address.
|
|
243
|
+
* @member {String} from_address
|
|
244
|
+
*/
|
|
245
|
+
UpdateAccountEmailActionRequest.prototype['from_address'] = undefined;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Where replies go: a team member's email address, or an address at one of your verified email domains. Null sends without a reply address.
|
|
249
|
+
* @member {String} reply_to
|
|
250
|
+
*/
|
|
251
|
+
UpdateAccountEmailActionRequest.prototype['reply_to'] = undefined;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The subject line, a Liquid template with the variables `account.name`, `template.name`, `template.id`, `submission.id`, the submission's values as `data.<field name>` (`data["field name"]` for a name with spaces) and its metadata as `metadata.<key>`, such as `Your {{ template.name }}`. Null uses the template's name followed by the file it sends, such as "Lease PDF", or by "files" when it sends several.
|
|
255
|
+
* @member {String} subject
|
|
256
|
+
*/
|
|
257
|
+
UpdateAccountEmailActionRequest.prototype['subject'] = undefined;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The email's text, a Liquid template with the same variables as `subject`. `if`, `unless` and `case` tags work. Line breaks are kept. Null uses a short message that says the files are attached or ready to download.
|
|
261
|
+
* @member {String} message
|
|
262
|
+
*/
|
|
263
|
+
UpdateAccountEmailActionRequest.prototype['message'] = undefined;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The attached files' name, a Liquid template with the same variables as `subject`, such as `{{ data.last_name }} lease`. Each file's extension (`.pdf`, `.docx` or `.odt`) is added. Null uses the submission's `pdf_filename` metadata when it has one, and otherwise the template's name. A download link's files have the names their other downloads have: the submission's `pdf_filename`, or its ID.
|
|
267
|
+
* @member {String} file_name
|
|
268
|
+
*/
|
|
269
|
+
UpdateAccountEmailActionRequest.prototype['file_name'] = undefined;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Which of the submission's files the email sends: `all` sends every file the submission made (its PDF, and a Word template's Word document and OpenDocument file when it made them), and `docx`, `odt` or `pdf` sends only that file. A submission that made none of them sends nothing, and its email shows as skipped. Only Word templates make Word documents and OpenDocument files, so another template's email action takes `pdf` or `all`.
|
|
273
|
+
* @member {module:model/EmailActionFileFormats} file_formats
|
|
274
|
+
*/
|
|
275
|
+
UpdateAccountEmailActionRequest.prototype['file_formats'] = undefined;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* `attachment` attaches the files, or sends a download link when together they're larger than `max_attachment_mb`. `link` sends a download link, which works for 7 days. Accounts with a BAA start with `link`.
|
|
279
|
+
* @member {module:model/EmailActionDelivery} delivery
|
|
280
|
+
*/
|
|
281
|
+
UpdateAccountEmailActionRequest.prototype['delivery'] = undefined;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* With `delivery` `attachment`, files larger than this many megabytes in all (1 MB is 1,000,000 bytes) are sent as a download link instead. Emailing a file makes it about 38% larger, and many company mail servers refuse emails over 10 MB, so the default is 7. Raise it only when every recipient's mail server accepts larger emails, such as Microsoft 365 (up to 36 MB) or Gmail (50 MB).
|
|
285
|
+
* @member {Number} max_attachment_mb
|
|
286
|
+
*/
|
|
287
|
+
UpdateAccountEmailActionRequest.prototype['max_attachment_mb'] = undefined;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Which submissions send emails: `live`, `test` or `all`. Test submissions only email your team's members, and skip every other recipient.
|
|
291
|
+
* @member {module:model/EmailActionSubmissionType} submission_type
|
|
292
|
+
*/
|
|
293
|
+
UpdateAccountEmailActionRequest.prototype['submission_type'] = undefined;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Sends the email only when the submission's values meet these conditions, which work as a conditional logic rule's do. The values are the ones the PDF has: formulas worked out, and blank for a field that a rule hides. A field the template doesn't have (in an account email action's conditions) counts as blank. A submission that doesn't meet them sends nothing, and its email shows as skipped. Null sends for every submission.
|
|
297
|
+
* @member {module:model/EmailActionConditionsInput} send_when
|
|
298
|
+
*/
|
|
299
|
+
UpdateAccountEmailActionRequest.prototype['send_when'] = undefined;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Whether the account's owner gets an email when the email action's emails keep failing.
|
|
303
|
+
* @member {Boolean} failure_notifications_enabled
|
|
304
|
+
*/
|
|
305
|
+
UpdateAccountEmailActionRequest.prototype['failure_notifications_enabled'] = undefined;
|
|
306
|
+
var _default = exports["default"] = UpdateAccountEmailActionRequest;
|