docspring 3.3.0 → 4.0.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 +79 -19
- package/README.md +65 -63
- package/dist/ApiClient.js +63 -28
- package/dist/RequestSchemas.js +2297 -0
- package/dist/RequestValidator.js +494 -0
- package/dist/api/Client.js +1346 -948
- package/dist/index.js +651 -154
- package/dist/model/AiFieldNamingLanguage.js +64 -0
- package/dist/model/{CreateWebhookData.js → AuthenticationCheck.js} +32 -28
- package/dist/model/BarcodeSymbology.js +89 -0
- package/dist/model/CheckCharacter.js +74 -0
- package/dist/model/CombinedFieldType.js +59 -0
- package/dist/model/CombinedPdf.js +294 -0
- package/dist/model/{MoveFolderData.js → CombinedPdfFiles.js} +27 -27
- package/dist/model/CombinedPdfList.js +132 -0
- package/dist/model/{ForbiddenErrorResponse.js → CombinedPdfSource.js} +59 -73
- package/dist/model/CombinedPdfSourceInput.js +270 -0
- package/dist/model/CombinedPdfSourcePdf.js +130 -0
- package/dist/model/CombinedPdfSourceType.js +74 -0
- package/dist/model/CombinedPdfState.js +74 -0
- package/dist/model/{CopyTemplateOptions.js → CopyTemplateRequest.js} +26 -22
- package/dist/model/{CombinePdfsData.js → CreateCombinedPdfRequest.js} +69 -53
- package/dist/model/{CreateCustomFileData.js → CreateCustomFileFromUploadRequest.js} +25 -23
- package/dist/model/{CreateFolderData.js → CreateFolderRequest.js} +47 -28
- package/dist/model/{TemplateDeleteResponse.js → CreateSignatureRequestEventRequest.js} +49 -74
- package/dist/model/CreateSignatureRequestTokenRequest.js +88 -0
- package/dist/model/{SubmissionBatchData.js → CreateSubmissionBatchRequest.js} +67 -42
- package/dist/model/CreateSubmissionRequest.js +212 -0
- package/dist/model/CreateTemplateRequest.js +545 -0
- package/dist/model/CreateWebhookRequest.js +234 -0
- package/dist/model/CustomFile.js +67 -16
- package/dist/model/CustomFileList.js +132 -0
- package/dist/model/CustomFileSourcePdf.js +130 -0
- package/dist/model/ErrorCode.js +154 -0
- package/dist/model/{CreateSubmissionResponse.js → ErrorDetail.js} +65 -75
- package/dist/model/ErrorInfo.js +211 -0
- package/dist/model/ErrorResponse.js +12 -41
- package/dist/model/ExpirationInterval.js +64 -0
- package/dist/model/FieldComparisonCondition.js +137 -0
- package/dist/model/FieldComparisonOperator.js +69 -0
- package/dist/model/FieldDisplayType.js +79 -0
- package/dist/model/{MultipleErrorsResponse.js → FieldEqualsCondition.js} +48 -52
- package/dist/model/FieldEqualsOperator.js +59 -0
- package/dist/model/{SuccessMultipleErrorsResponse.js → FieldInCondition.js} +54 -53
- package/dist/model/FieldOverride.js +722 -0
- package/dist/model/FieldPresenceCondition.js +126 -0
- package/dist/model/FieldPresenceOperator.js +59 -0
- package/dist/model/FieldRangeCondition.js +148 -0
- package/dist/model/FieldReimportState.js +69 -0
- package/dist/model/FieldSetupLogic.js +59 -0
- package/dist/model/FieldSetupNaming.js +59 -0
- package/dist/model/FieldSetupSource.js +64 -0
- package/dist/model/Folder.js +38 -11
- package/dist/model/FolderList.js +132 -0
- package/dist/model/GeneratedFile.js +214 -0
- package/dist/model/GeneratedFileState.js +64 -0
- package/dist/model/HtmlEngineOptions.js +230 -0
- package/dist/model/HtmlEngineOptionsInput.js +193 -0
- package/dist/model/ImageGravity.js +94 -0
- package/dist/model/ImageScaleType.js +64 -0
- package/dist/model/ModelCodeLanguage.js +94 -0
- package/dist/model/{UpdatePdfTemplate.js → MoveFolderRequest.js} +34 -28
- package/dist/model/{MoveTemplateData.js → MoveTemplateRequest.js} +25 -35
- package/dist/model/NumberConditionType.js +79 -0
- package/dist/model/PageFormat.js +114 -0
- package/dist/model/{PublishVersionData.js → PublishTemplateVersionRequest.js} +33 -33
- package/dist/model/{RenameFolderData.js → RenameFolderRequest.js} +25 -23
- package/dist/model/{RestoreVersionData.js → RestoreTemplateVersionRequest.js} +25 -23
- package/dist/model/ShapeType.js +79 -0
- package/dist/model/{SubmissionDataRequestShow.js → SignatureRequest.js} +165 -240
- package/dist/model/SignatureRequestAuthSecondFactorType.js +79 -0
- package/dist/model/SignatureRequestAuthType.js +84 -0
- package/dist/model/{SubmissionDataRequestEvent.js → SignatureRequestEvent.js} +67 -149
- package/dist/model/SignatureRequestEventType.js +79 -0
- package/dist/model/SignatureRequestInput.js +278 -0
- package/dist/model/SignatureRequestMessageType.js +94 -0
- package/dist/model/SignatureRequestState.js +64 -0
- package/dist/model/SignatureRequestToken.js +195 -0
- package/dist/model/SignatureRequestTokenType.js +59 -0
- package/dist/model/StringConditionType.js +74 -0
- package/dist/model/Submission.js +186 -345
- package/dist/model/SubmissionAction.js +30 -115
- package/dist/model/SubmissionActionState.js +69 -0
- package/dist/model/SubmissionActionType.js +84 -0
- package/dist/model/SubmissionBatch.js +74 -55
- package/dist/model/SubmissionBatchState.js +64 -0
- package/dist/model/SubmissionFiles.js +108 -0
- package/dist/model/SubmissionInput.js +204 -0
- package/dist/model/{ListSubmissionsResponse.js → SubmissionList.js} +35 -42
- package/dist/model/SubmissionSource.js +69 -0
- package/dist/model/SubmissionSourcePdf.js +130 -0
- package/dist/model/SubmissionState.js +114 -0
- package/dist/model/Template.js +310 -573
- package/dist/model/TemplateActor.js +171 -0
- package/dist/model/TemplateActorType.js +64 -0
- package/dist/model/TemplateDefaults.js +307 -0
- package/dist/model/TemplateDefaultsInput.js +305 -0
- package/dist/model/TemplateDocument.js +280 -0
- package/dist/model/TemplateDocumentState.js +74 -0
- package/dist/model/{CreatePdfSubmissionData.js → TemplateFieldDependency.js} +70 -89
- package/dist/model/TemplateFieldDependencyAction.js +64 -0
- package/dist/model/{TemplatePublishVersionResponse.js → TemplateFieldDependencyCondition.js} +51 -61
- package/dist/model/TemplateFieldDependencyConditionInput.js +304 -0
- package/dist/model/TemplateFieldDependencyInput.js +182 -0
- package/dist/model/TemplateFieldDependencyMatch.js +59 -0
- package/dist/model/TemplateFieldDependencyOperator.js +99 -0
- package/dist/model/TemplateFieldLogicStatus.js +74 -0
- package/dist/model/TemplateFormMode.js +64 -0
- package/dist/model/{TemplateModelCodeResponse.js → TemplateModelCode.js} +34 -86
- package/dist/model/TemplatePageAiError.js +69 -0
- package/dist/model/TemplatePageAiNamingStatus.js +59 -0
- package/dist/model/TemplatePageFieldsStatus.js +74 -0
- package/dist/model/TemplatePageImageStatus.js +59 -0
- package/dist/model/TemplatePageProcessingStatus.js +162 -0
- package/dist/model/{SubmissionDataRequestToken.js → TemplateSourcePdf.js} +52 -56
- package/dist/model/TemplateSummary.js +560 -0
- package/dist/model/{SuccessErrorResponse.js → TemplateSummaryList.js} +43 -55
- package/dist/model/TemplateType.js +59 -0
- package/dist/model/{Submission422Response.js → TemplateVersion.js} +60 -63
- package/dist/model/TemplateVersionType.js +64 -0
- package/dist/model/TextAlignment.js +69 -0
- package/dist/model/TextOverflow.js +59 -0
- package/dist/model/TextVerticalAlignment.js +64 -0
- package/dist/model/Typeface.js +134 -0
- package/dist/model/UpdateSignatureRequestRequest.js +183 -0
- package/dist/model/UpdateTemplateDocumentRequest.js +136 -0
- package/dist/model/UpdateTemplateRequest.js +450 -0
- package/dist/model/UpdateWebhookRequest.js +209 -0
- package/dist/model/UploadMethod.js +54 -0
- package/dist/model/{UploadPresignResponse.js → UploadPresign.js} +53 -58
- package/dist/model/{AddFieldsData.js → UrlSourcePdf.js} +49 -31
- package/dist/model/Webhook.js +58 -73
- package/dist/model/WebhookEventType.js +174 -0
- package/dist/model/WebhookList.js +132 -0
- package/dist/model/WebhookMode.js +59 -0
- package/package.json +1 -1
- package/dist/model/BatchGeneratePdfs201Response.js +0 -194
- package/dist/model/CombinedSubmission.js +0 -313
- package/dist/model/CombinedSubmissionAction.js +0 -268
- package/dist/model/CreateCombinedSubmissionResponse.js +0 -180
- package/dist/model/CreateCustomFileResponse.js +0 -167
- package/dist/model/CreateHtmlTemplate.js +0 -108
- package/dist/model/CreatePdfTemplate.js +0 -108
- package/dist/model/CreateSubmissionDataRequestData.js +0 -314
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +0 -239
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +0 -167
- package/dist/model/CreateSubmissionDataRequestResponse.js +0 -167
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +0 -167
- package/dist/model/ErrorOrMultipleErrorsResponse.js +0 -153
- package/dist/model/JsonSchema.js +0 -205
- package/dist/model/SubmissionBatchWithSubmissions.js +0 -228
- package/dist/model/SubmissionDataRequest.js +0 -496
- package/dist/model/SubmissionPreview.js +0 -509
- package/dist/model/TemplateAddFieldsResponse.js +0 -156
- package/dist/model/TemplatePreview.js +0 -796
- package/dist/model/UpdateHtmlTemplate.js +0 -108
- package/dist/model/UpdateSubmissionDataRequestData.js +0 -311
- package/dist/model/UpdateWebhookData.js +0 -108
package/dist/model/Submission.js
CHANGED
|
@@ -5,8 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ErrorDetail = _interopRequireDefault(require("./ErrorDetail"));
|
|
9
|
+
var _SignatureRequest = _interopRequireDefault(require("./SignatureRequest"));
|
|
8
10
|
var _SubmissionAction = _interopRequireDefault(require("./SubmissionAction"));
|
|
9
|
-
var
|
|
11
|
+
var _SubmissionFiles = _interopRequireDefault(require("./SubmissionFiles"));
|
|
12
|
+
var _SubmissionSource = _interopRequireDefault(require("./SubmissionSource"));
|
|
13
|
+
var _SubmissionState = _interopRequireDefault(require("./SubmissionState"));
|
|
14
|
+
var _TemplateType = _interopRequireDefault(require("./TemplateType"));
|
|
10
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
16
|
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); }
|
|
12
17
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -18,9 +23,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
24
|
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
25
|
* DocSpring API
|
|
21
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
26
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
22
27
|
*
|
|
23
|
-
* The version of the OpenAPI document:
|
|
28
|
+
* The version of the OpenAPI document: v2
|
|
24
29
|
*
|
|
25
30
|
*
|
|
26
31
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,41 +36,42 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
36
|
/**
|
|
32
37
|
* The Submission model module.
|
|
33
38
|
* @module model/Submission
|
|
34
|
-
* @version
|
|
39
|
+
* @version 4.0.0
|
|
35
40
|
*/
|
|
36
41
|
var Submission = /*#__PURE__*/function () {
|
|
37
42
|
/**
|
|
38
43
|
* Constructs a new <code>Submission</code>.
|
|
44
|
+
* Data submitted to a template, and the PDF generated from it.
|
|
39
45
|
* @alias module:model/Submission
|
|
40
46
|
* @extends Object
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param truncated_text {Object}
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
47
|
+
* @param id {String} The submission's ID.
|
|
48
|
+
* @param template_id {String} Null once the template has been permanently deleted.
|
|
49
|
+
* @param template_type {module:model/TemplateType} The template's type: `pdf` or `html`.
|
|
50
|
+
* @param template_version {String} The published version of the template the submission used. Null for the draft.
|
|
51
|
+
* @param batch_id {String} The ID of the batch the submission was created in.
|
|
52
|
+
* @param source {module:model/SubmissionSource} `api`: created with the API. `web`: a web form. `reprocess`: a copy of another submission, made to generate its PDF again.
|
|
53
|
+
* @param state {module:model/SubmissionState} `pending` until the PDF has been generated, then `processed`. `waiting_for_signature_requests` until every signature request is completed. `insufficient_credits`: waiting for credits; `error_message` says whether the PDF is generated once you add them. `account_suspended`: waiting for the account to be reactivated, for up to 30 days. Waiting ends in `error` if it's discarded or takes over 30 days. Every other state is final, with no PDF: `invalid_data` (the data doesn't match the template's fields: see `data_errors`), `declined` (a signature request was declined), and the states where generating the PDF failed, which have an `error_message`: `syntax_error` (a mistake in an HTML template's Liquid or SCSS), `image_download_failed` or `image_processing_failed` (an image in the data or the template couldn't be downloaded or read) and `error` (anything else). Older submissions can also be `license_revoked` or `accidental`.
|
|
54
|
+
* @param test {Boolean} Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions.
|
|
55
|
+
* @param editable {Boolean} `true` keeps the PDF's text and check fields fillable, and `false` flattens every field. Left out, the template decides: its `editable_submissions` setting, or each field's own Editable option. A response shows the template's setting when the request left this out. Can't be `true` with `signature_requests`.
|
|
56
|
+
* @param data {Object.<String, Object>} The submission's data, with the values entered in completed signature requests. Lists leave it out (null) unless you pass `include_data=true`. Empty once the submission has expired.
|
|
57
|
+
* @param data_errors {Array.<module:model/ErrorDetail>} Why the data doesn't match the template's fields, when `state` is `invalid_data`: the same details as the 422 response that recorded it, with pointers into the request that created the submission (`/data/name`). Cleared once the submission has expired.
|
|
58
|
+
* @param error_message {String} Why the PDF couldn't be generated, when `state` is `error`.
|
|
59
|
+
* @param metadata {Object.<String, Object>} Your own data about the submission, such as an ID from your app. It isn't printed on the PDF.
|
|
60
|
+
* @param has_password {Boolean} Whether the PDF needs a password to open (`password`).
|
|
61
|
+
* @param signature_requests {Array.<module:model/SignatureRequest>} The people asked to sign the submission (and fill in their fields), in order.
|
|
62
|
+
* @param actions {Array.<module:model/SubmissionAction>} The uploads of the submission's PDF to your storage (account integrations).
|
|
63
|
+
* @param truncated_text {Object.<String, Array.<String>>} The text of each field that didn't fit in it, by field name. Left out (null) with `data`, and empty once the submission has expired.
|
|
64
|
+
* @param files {module:model/SubmissionFiles} The generated files: `pdf` once the submission has been processed, `audit_trail` once its signature requests are completed, and `preview` once a preview PDF has been generated. Empty once the submission has expired.
|
|
65
|
+
* @param preview_generated_at {Date} When the preview PDF was generated. Null if there is no preview.
|
|
66
|
+
* @param expired {Boolean} An expired submission's data, metadata, password and PDF have been deleted.
|
|
67
|
+
* @param expires_at {Date} When the submission expires. Null if it's kept until you delete it.
|
|
68
|
+
* @param processed_at {Date} When the PDF was generated. Null until then.
|
|
69
|
+
* @param created_at {Date} When the submission was created.
|
|
70
|
+
* @param updated_at {Date} When the submission was last updated.
|
|
65
71
|
*/
|
|
66
|
-
function Submission(
|
|
72
|
+
function Submission(id, template_id, template_type, template_version, batch_id, source, state, test, editable, data, data_errors, error_message, metadata, has_password, signature_requests, actions, truncated_text, files, preview_generated_at, expired, expires_at, processed_at, created_at, updated_at) {
|
|
67
73
|
_classCallCheck(this, Submission);
|
|
68
|
-
Submission.initialize(this,
|
|
74
|
+
Submission.initialize(this, id, template_id, template_type, template_version, batch_id, source, state, test, editable, data, data_errors, error_message, metadata, has_password, signature_requests, actions, truncated_text, files, preview_generated_at, expired, expires_at, processed_at, created_at, updated_at);
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
/**
|
|
@@ -75,31 +81,31 @@ var Submission = /*#__PURE__*/function () {
|
|
|
75
81
|
*/
|
|
76
82
|
return _createClass(Submission, null, [{
|
|
77
83
|
key: "initialize",
|
|
78
|
-
value: function initialize(obj,
|
|
79
|
-
obj['batch_id'] = batch_id;
|
|
80
|
-
obj['data_requests'] = data_requests;
|
|
81
|
-
obj['editable'] = editable;
|
|
82
|
-
obj['error_message'] = error_message;
|
|
83
|
-
obj['expired'] = expired;
|
|
84
|
-
obj['expires_at'] = expires_at;
|
|
84
|
+
value: function initialize(obj, id, template_id, template_type, template_version, batch_id, source, state, test, editable, data, data_errors, error_message, metadata, has_password, signature_requests, actions, truncated_text, files, preview_generated_at, expired, expires_at, processed_at, created_at, updated_at) {
|
|
85
85
|
obj['id'] = id;
|
|
86
|
-
obj['json_schema_errors'] = json_schema_errors;
|
|
87
|
-
obj['metadata'] = metadata;
|
|
88
|
-
obj['password'] = password;
|
|
89
|
-
obj['processed_at'] = processed_at;
|
|
90
|
-
obj['state'] = state;
|
|
91
86
|
obj['template_id'] = template_id;
|
|
92
87
|
obj['template_type'] = template_type;
|
|
93
88
|
obj['template_version'] = template_version;
|
|
89
|
+
obj['batch_id'] = batch_id;
|
|
90
|
+
obj['source'] = source;
|
|
91
|
+
obj['state'] = state;
|
|
94
92
|
obj['test'] = test;
|
|
93
|
+
obj['editable'] = editable;
|
|
94
|
+
obj['data'] = data;
|
|
95
|
+
obj['data_errors'] = data_errors;
|
|
96
|
+
obj['error_message'] = error_message;
|
|
97
|
+
obj['metadata'] = metadata;
|
|
98
|
+
obj['has_password'] = has_password;
|
|
99
|
+
obj['signature_requests'] = signature_requests;
|
|
100
|
+
obj['actions'] = actions;
|
|
95
101
|
obj['truncated_text'] = truncated_text;
|
|
96
|
-
obj['
|
|
97
|
-
obj['download_url'] = download_url;
|
|
98
|
-
obj['permanent_download_url'] = permanent_download_url;
|
|
99
|
-
obj['preview_download_url'] = preview_download_url;
|
|
102
|
+
obj['files'] = files;
|
|
100
103
|
obj['preview_generated_at'] = preview_generated_at;
|
|
101
|
-
obj['
|
|
102
|
-
obj['
|
|
104
|
+
obj['expired'] = expired;
|
|
105
|
+
obj['expires_at'] = expires_at;
|
|
106
|
+
obj['processed_at'] = processed_at;
|
|
107
|
+
obj['created_at'] = created_at;
|
|
108
|
+
obj['updated_at'] = updated_at;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
/**
|
|
@@ -115,86 +121,83 @@ var Submission = /*#__PURE__*/function () {
|
|
|
115
121
|
if (data) {
|
|
116
122
|
obj = obj || new Submission();
|
|
117
123
|
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
118
|
-
if (data.hasOwnProperty('batch_id')) {
|
|
119
|
-
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
120
|
-
}
|
|
121
|
-
if (data.hasOwnProperty('data_requests')) {
|
|
122
|
-
obj['data_requests'] = _ApiClient["default"].convertToType(data['data_requests'], [_SubmissionDataRequest["default"]]);
|
|
123
|
-
}
|
|
124
|
-
if (data.hasOwnProperty('editable')) {
|
|
125
|
-
obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
|
|
126
|
-
}
|
|
127
|
-
if (data.hasOwnProperty('error_message')) {
|
|
128
|
-
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
129
|
-
}
|
|
130
|
-
if (data.hasOwnProperty('expired')) {
|
|
131
|
-
obj['expired'] = _ApiClient["default"].convertToType(data['expired'], 'Boolean');
|
|
132
|
-
}
|
|
133
|
-
if (data.hasOwnProperty('expires_at')) {
|
|
134
|
-
obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'String');
|
|
135
|
-
}
|
|
136
124
|
if (data.hasOwnProperty('id')) {
|
|
137
125
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
138
126
|
}
|
|
139
|
-
if (data.hasOwnProperty('json_schema_errors')) {
|
|
140
|
-
obj['json_schema_errors'] = _ApiClient["default"].convertToType(data['json_schema_errors'], ['String']);
|
|
141
|
-
}
|
|
142
|
-
if (data.hasOwnProperty('metadata')) {
|
|
143
|
-
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
|
|
144
|
-
}
|
|
145
|
-
if (data.hasOwnProperty('password')) {
|
|
146
|
-
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
147
|
-
}
|
|
148
|
-
if (data.hasOwnProperty('processed_at')) {
|
|
149
|
-
obj['processed_at'] = _ApiClient["default"].convertToType(data['processed_at'], 'String');
|
|
150
|
-
}
|
|
151
|
-
if (data.hasOwnProperty('state')) {
|
|
152
|
-
obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String');
|
|
153
|
-
}
|
|
154
127
|
if (data.hasOwnProperty('template_id')) {
|
|
155
128
|
obj['template_id'] = _ApiClient["default"].convertToType(data['template_id'], 'String');
|
|
156
129
|
}
|
|
157
130
|
if (data.hasOwnProperty('template_type')) {
|
|
158
|
-
obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'],
|
|
131
|
+
obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'], _TemplateType["default"]);
|
|
159
132
|
}
|
|
160
133
|
if (data.hasOwnProperty('template_version')) {
|
|
161
134
|
obj['template_version'] = _ApiClient["default"].convertToType(data['template_version'], 'String');
|
|
162
135
|
}
|
|
136
|
+
if (data.hasOwnProperty('batch_id')) {
|
|
137
|
+
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
138
|
+
}
|
|
139
|
+
if (data.hasOwnProperty('source')) {
|
|
140
|
+
obj['source'] = _ApiClient["default"].convertToType(data['source'], _SubmissionSource["default"]);
|
|
141
|
+
}
|
|
142
|
+
if (data.hasOwnProperty('state')) {
|
|
143
|
+
obj['state'] = _ApiClient["default"].convertToType(data['state'], _SubmissionState["default"]);
|
|
144
|
+
}
|
|
163
145
|
if (data.hasOwnProperty('test')) {
|
|
164
146
|
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
165
147
|
}
|
|
166
|
-
if (data.hasOwnProperty('
|
|
167
|
-
obj['
|
|
148
|
+
if (data.hasOwnProperty('editable')) {
|
|
149
|
+
obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
|
|
168
150
|
}
|
|
169
|
-
if (data.hasOwnProperty('
|
|
170
|
-
obj['
|
|
151
|
+
if (data.hasOwnProperty('data')) {
|
|
152
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], {
|
|
153
|
+
'String': Object
|
|
154
|
+
});
|
|
171
155
|
}
|
|
172
|
-
if (data.hasOwnProperty('
|
|
173
|
-
obj['
|
|
156
|
+
if (data.hasOwnProperty('data_errors')) {
|
|
157
|
+
obj['data_errors'] = _ApiClient["default"].convertToType(data['data_errors'], [_ErrorDetail["default"]]);
|
|
174
158
|
}
|
|
175
|
-
if (data.hasOwnProperty('
|
|
176
|
-
obj['
|
|
159
|
+
if (data.hasOwnProperty('error_message')) {
|
|
160
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
177
161
|
}
|
|
178
|
-
if (data.hasOwnProperty('
|
|
179
|
-
obj['
|
|
162
|
+
if (data.hasOwnProperty('metadata')) {
|
|
163
|
+
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], {
|
|
164
|
+
'String': Object
|
|
165
|
+
});
|
|
180
166
|
}
|
|
181
|
-
if (data.hasOwnProperty('
|
|
182
|
-
obj['
|
|
167
|
+
if (data.hasOwnProperty('has_password')) {
|
|
168
|
+
obj['has_password'] = _ApiClient["default"].convertToType(data['has_password'], 'Boolean');
|
|
183
169
|
}
|
|
184
|
-
if (data.hasOwnProperty('
|
|
185
|
-
obj['
|
|
170
|
+
if (data.hasOwnProperty('signature_requests')) {
|
|
171
|
+
obj['signature_requests'] = _ApiClient["default"].convertToType(data['signature_requests'], [_SignatureRequest["default"]]);
|
|
186
172
|
}
|
|
187
173
|
if (data.hasOwnProperty('actions')) {
|
|
188
174
|
obj['actions'] = _ApiClient["default"].convertToType(data['actions'], [_SubmissionAction["default"]]);
|
|
189
175
|
}
|
|
190
|
-
if (data.hasOwnProperty('
|
|
191
|
-
obj['
|
|
176
|
+
if (data.hasOwnProperty('truncated_text')) {
|
|
177
|
+
obj['truncated_text'] = _ApiClient["default"].convertToType(data['truncated_text'], {
|
|
178
|
+
'String': ['String']
|
|
179
|
+
});
|
|
192
180
|
}
|
|
193
|
-
if (data.hasOwnProperty('
|
|
194
|
-
obj['
|
|
181
|
+
if (data.hasOwnProperty('files')) {
|
|
182
|
+
obj['files'] = _ApiClient["default"].convertToType(data['files'], _SubmissionFiles["default"]);
|
|
195
183
|
}
|
|
196
|
-
if (data.hasOwnProperty('
|
|
197
|
-
obj['
|
|
184
|
+
if (data.hasOwnProperty('preview_generated_at')) {
|
|
185
|
+
obj['preview_generated_at'] = _ApiClient["default"].convertToType(data['preview_generated_at'], 'Date');
|
|
186
|
+
}
|
|
187
|
+
if (data.hasOwnProperty('expired')) {
|
|
188
|
+
obj['expired'] = _ApiClient["default"].convertToType(data['expired'], 'Boolean');
|
|
189
|
+
}
|
|
190
|
+
if (data.hasOwnProperty('expires_at')) {
|
|
191
|
+
obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Date');
|
|
192
|
+
}
|
|
193
|
+
if (data.hasOwnProperty('processed_at')) {
|
|
194
|
+
obj['processed_at'] = _ApiClient["default"].convertToType(data['processed_at'], 'Date');
|
|
195
|
+
}
|
|
196
|
+
if (data.hasOwnProperty('created_at')) {
|
|
197
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
198
|
+
}
|
|
199
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
200
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
198
201
|
}
|
|
199
202
|
}
|
|
200
203
|
return obj;
|
|
@@ -224,346 +227,184 @@ var Submission = /*#__PURE__*/function () {
|
|
|
224
227
|
} finally {
|
|
225
228
|
_iterator.f();
|
|
226
229
|
}
|
|
227
|
-
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
228
|
-
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
229
|
-
}
|
|
230
|
-
// ensure the json data is an array
|
|
231
|
-
if (!Array.isArray(data['data_requests'])) {
|
|
232
|
-
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
233
|
-
}
|
|
234
|
-
// ensure the json data is a string
|
|
235
|
-
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
236
|
-
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
237
|
-
}
|
|
238
|
-
// ensure the json data is a string
|
|
239
|
-
if (data['expires_at'] && !(typeof data['expires_at'] === 'string' || data['expires_at'] instanceof String)) {
|
|
240
|
-
throw new Error("Expected the field `expires_at` to be a primitive type in the JSON string but got " + data['expires_at']);
|
|
241
|
-
}
|
|
242
|
-
// ensure the json data is a string
|
|
243
230
|
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
244
231
|
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
245
232
|
}
|
|
246
|
-
// ensure the json data is an array
|
|
247
|
-
if (!Array.isArray(data['json_schema_errors'])) {
|
|
248
|
-
throw new Error("Expected the field `json_schema_errors` to be an array in the JSON data but got " + data['json_schema_errors']);
|
|
249
|
-
}
|
|
250
|
-
// ensure the json data is a string
|
|
251
|
-
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
252
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
253
|
-
}
|
|
254
|
-
// ensure the json data is a string
|
|
255
|
-
if (data['processed_at'] && !(typeof data['processed_at'] === 'string' || data['processed_at'] instanceof String)) {
|
|
256
|
-
throw new Error("Expected the field `processed_at` to be a primitive type in the JSON string but got " + data['processed_at']);
|
|
257
|
-
}
|
|
258
|
-
// ensure the json data is a string
|
|
259
|
-
if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) {
|
|
260
|
-
throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']);
|
|
261
|
-
}
|
|
262
233
|
// ensure the json data is a string
|
|
263
234
|
if (data['template_id'] && !(typeof data['template_id'] === 'string' || data['template_id'] instanceof String)) {
|
|
264
235
|
throw new Error("Expected the field `template_id` to be a primitive type in the JSON string but got " + data['template_id']);
|
|
265
236
|
}
|
|
266
237
|
// ensure the json data is a string
|
|
267
|
-
if (data['template_type'] && !(typeof data['template_type'] === 'string' || data['template_type'] instanceof String)) {
|
|
268
|
-
throw new Error("Expected the field `template_type` to be a primitive type in the JSON string but got " + data['template_type']);
|
|
269
|
-
}
|
|
270
|
-
// ensure the json data is a string
|
|
271
238
|
if (data['template_version'] && !(typeof data['template_version'] === 'string' || data['template_version'] instanceof String)) {
|
|
272
239
|
throw new Error("Expected the field `template_version` to be a primitive type in the JSON string but got " + data['template_version']);
|
|
273
240
|
}
|
|
274
241
|
// ensure the json data is a string
|
|
275
|
-
if (data['
|
|
276
|
-
throw new Error("Expected the field `
|
|
277
|
-
}
|
|
278
|
-
// ensure the json data is a string
|
|
279
|
-
if (data['download_url'] && !(typeof data['download_url'] === 'string' || data['download_url'] instanceof String)) {
|
|
280
|
-
throw new Error("Expected the field `download_url` to be a primitive type in the JSON string but got " + data['download_url']);
|
|
281
|
-
}
|
|
282
|
-
// ensure the json data is a string
|
|
283
|
-
if (data['permanent_download_url'] && !(typeof data['permanent_download_url'] === 'string' || data['permanent_download_url'] instanceof String)) {
|
|
284
|
-
throw new Error("Expected the field `permanent_download_url` to be a primitive type in the JSON string but got " + data['permanent_download_url']);
|
|
242
|
+
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
243
|
+
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
285
244
|
}
|
|
286
|
-
// ensure the json data is
|
|
287
|
-
if (
|
|
288
|
-
throw new Error("Expected the field `
|
|
245
|
+
// ensure the json data is an array
|
|
246
|
+
if (!Array.isArray(data['data_errors'])) {
|
|
247
|
+
throw new Error("Expected the field `data_errors` to be an array in the JSON data but got " + data['data_errors']);
|
|
289
248
|
}
|
|
290
249
|
// ensure the json data is a string
|
|
291
|
-
if (data['
|
|
292
|
-
throw new Error("Expected the field `
|
|
250
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
251
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
293
252
|
}
|
|
294
|
-
// ensure the json data is
|
|
295
|
-
if (
|
|
296
|
-
throw new Error("Expected the field `
|
|
253
|
+
// ensure the json data is an array
|
|
254
|
+
if (!Array.isArray(data['signature_requests'])) {
|
|
255
|
+
throw new Error("Expected the field `signature_requests` to be an array in the JSON data but got " + data['signature_requests']);
|
|
297
256
|
}
|
|
298
257
|
// ensure the json data is an array
|
|
299
258
|
if (!Array.isArray(data['actions'])) {
|
|
300
259
|
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
301
260
|
}
|
|
302
|
-
// ensure the json data is a string
|
|
303
|
-
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
304
|
-
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
|
|
305
|
-
}
|
|
306
|
-
// ensure the json data is a string
|
|
307
|
-
if (data['referrer'] && !(typeof data['referrer'] === 'string' || data['referrer'] instanceof String)) {
|
|
308
|
-
throw new Error("Expected the field `referrer` to be a primitive type in the JSON string but got " + data['referrer']);
|
|
309
|
-
}
|
|
310
261
|
return true;
|
|
311
262
|
}
|
|
312
263
|
}]);
|
|
313
264
|
}();
|
|
314
|
-
Submission.RequiredProperties = ["
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @member {String} batch_id
|
|
318
|
-
*/
|
|
319
|
-
Submission.prototype['batch_id'] = undefined;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* @member {Array.<module:model/SubmissionDataRequest>} data_requests
|
|
323
|
-
*/
|
|
324
|
-
Submission.prototype['data_requests'] = undefined;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @member {Boolean} editable
|
|
328
|
-
*/
|
|
329
|
-
Submission.prototype['editable'] = undefined;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @member {String} error_message
|
|
333
|
-
*/
|
|
334
|
-
Submission.prototype['error_message'] = undefined;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* @member {Boolean} expired
|
|
338
|
-
*/
|
|
339
|
-
Submission.prototype['expired'] = undefined;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* @member {String} expires_at
|
|
343
|
-
*/
|
|
344
|
-
Submission.prototype['expires_at'] = undefined;
|
|
265
|
+
Submission.RequiredProperties = ["id", "template_id", "template_type", "template_version", "batch_id", "source", "state", "test", "editable", "data", "data_errors", "error_message", "metadata", "has_password", "signature_requests", "actions", "truncated_text", "files", "preview_generated_at", "expired", "expires_at", "processed_at", "created_at", "updated_at"];
|
|
345
266
|
|
|
346
267
|
/**
|
|
268
|
+
* The submission's ID.
|
|
347
269
|
* @member {String} id
|
|
348
270
|
*/
|
|
349
271
|
Submission.prototype['id'] = undefined;
|
|
350
272
|
|
|
351
273
|
/**
|
|
352
|
-
*
|
|
274
|
+
* Null once the template has been permanently deleted.
|
|
275
|
+
* @member {String} template_id
|
|
353
276
|
*/
|
|
354
|
-
Submission.prototype['
|
|
277
|
+
Submission.prototype['template_id'] = undefined;
|
|
355
278
|
|
|
356
279
|
/**
|
|
357
|
-
*
|
|
280
|
+
* The template's type: `pdf` or `html`.
|
|
281
|
+
* @member {module:model/TemplateType} template_type
|
|
358
282
|
*/
|
|
359
|
-
Submission.prototype['
|
|
283
|
+
Submission.prototype['template_type'] = undefined;
|
|
360
284
|
|
|
361
285
|
/**
|
|
362
|
-
*
|
|
286
|
+
* The published version of the template the submission used. Null for the draft.
|
|
287
|
+
* @member {String} template_version
|
|
363
288
|
*/
|
|
364
|
-
Submission.prototype['
|
|
289
|
+
Submission.prototype['template_version'] = undefined;
|
|
365
290
|
|
|
366
291
|
/**
|
|
367
|
-
*
|
|
292
|
+
* The ID of the batch the submission was created in.
|
|
293
|
+
* @member {String} batch_id
|
|
368
294
|
*/
|
|
369
|
-
Submission.prototype['
|
|
295
|
+
Submission.prototype['batch_id'] = undefined;
|
|
370
296
|
|
|
371
297
|
/**
|
|
372
|
-
*
|
|
298
|
+
* `api`: created with the API. `web`: a web form. `reprocess`: a copy of another submission, made to generate its PDF again.
|
|
299
|
+
* @member {module:model/SubmissionSource} source
|
|
373
300
|
*/
|
|
374
|
-
Submission.prototype['
|
|
301
|
+
Submission.prototype['source'] = undefined;
|
|
375
302
|
|
|
376
303
|
/**
|
|
377
|
-
*
|
|
304
|
+
* `pending` until the PDF has been generated, then `processed`. `waiting_for_signature_requests` until every signature request is completed. `insufficient_credits`: waiting for credits; `error_message` says whether the PDF is generated once you add them. `account_suspended`: waiting for the account to be reactivated, for up to 30 days. Waiting ends in `error` if it's discarded or takes over 30 days. Every other state is final, with no PDF: `invalid_data` (the data doesn't match the template's fields: see `data_errors`), `declined` (a signature request was declined), and the states where generating the PDF failed, which have an `error_message`: `syntax_error` (a mistake in an HTML template's Liquid or SCSS), `image_download_failed` or `image_processing_failed` (an image in the data or the template couldn't be downloaded or read) and `error` (anything else). Older submissions can also be `license_revoked` or `accidental`.
|
|
305
|
+
* @member {module:model/SubmissionState} state
|
|
378
306
|
*/
|
|
379
|
-
Submission.prototype['
|
|
307
|
+
Submission.prototype['state'] = undefined;
|
|
380
308
|
|
|
381
309
|
/**
|
|
382
|
-
*
|
|
310
|
+
* Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions.
|
|
311
|
+
* @member {Boolean} test
|
|
383
312
|
*/
|
|
384
|
-
Submission.prototype['
|
|
313
|
+
Submission.prototype['test'] = undefined;
|
|
385
314
|
|
|
386
315
|
/**
|
|
387
|
-
*
|
|
316
|
+
* `true` keeps the PDF's text and check fields fillable, and `false` flattens every field. Left out, the template decides: its `editable_submissions` setting, or each field's own Editable option. A response shows the template's setting when the request left this out. Can't be `true` with `signature_requests`.
|
|
317
|
+
* @member {Boolean} editable
|
|
388
318
|
*/
|
|
389
|
-
Submission.prototype['
|
|
319
|
+
Submission.prototype['editable'] = undefined;
|
|
390
320
|
|
|
391
321
|
/**
|
|
392
|
-
*
|
|
322
|
+
* The submission's data, with the values entered in completed signature requests. Lists leave it out (null) unless you pass `include_data=true`. Empty once the submission has expired.
|
|
323
|
+
* @member {Object.<String, Object>} data
|
|
393
324
|
*/
|
|
394
|
-
Submission.prototype['
|
|
325
|
+
Submission.prototype['data'] = undefined;
|
|
395
326
|
|
|
396
327
|
/**
|
|
397
|
-
*
|
|
328
|
+
* Why the data doesn't match the template's fields, when `state` is `invalid_data`: the same details as the 422 response that recorded it, with pointers into the request that created the submission (`/data/name`). Cleared once the submission has expired.
|
|
329
|
+
* @member {Array.<module:model/ErrorDetail>} data_errors
|
|
398
330
|
*/
|
|
399
|
-
Submission.prototype['
|
|
331
|
+
Submission.prototype['data_errors'] = undefined;
|
|
400
332
|
|
|
401
333
|
/**
|
|
402
|
-
*
|
|
334
|
+
* Why the PDF couldn't be generated, when `state` is `error`.
|
|
335
|
+
* @member {String} error_message
|
|
403
336
|
*/
|
|
404
|
-
Submission.prototype['
|
|
337
|
+
Submission.prototype['error_message'] = undefined;
|
|
405
338
|
|
|
406
339
|
/**
|
|
407
|
-
*
|
|
340
|
+
* Your own data about the submission, such as an ID from your app. It isn't printed on the PDF.
|
|
341
|
+
* @member {Object.<String, Object>} metadata
|
|
408
342
|
*/
|
|
409
|
-
Submission.prototype['
|
|
343
|
+
Submission.prototype['metadata'] = undefined;
|
|
410
344
|
|
|
411
345
|
/**
|
|
412
|
-
*
|
|
346
|
+
* Whether the PDF needs a password to open (`password`).
|
|
347
|
+
* @member {Boolean} has_password
|
|
413
348
|
*/
|
|
414
|
-
Submission.prototype['
|
|
349
|
+
Submission.prototype['has_password'] = undefined;
|
|
415
350
|
|
|
416
351
|
/**
|
|
417
|
-
*
|
|
352
|
+
* The people asked to sign the submission (and fill in their fields), in order.
|
|
353
|
+
* @member {Array.<module:model/SignatureRequest>} signature_requests
|
|
418
354
|
*/
|
|
419
|
-
Submission.prototype['
|
|
355
|
+
Submission.prototype['signature_requests'] = undefined;
|
|
420
356
|
|
|
421
357
|
/**
|
|
422
|
-
*
|
|
358
|
+
* The uploads of the submission's PDF to your storage (account integrations).
|
|
359
|
+
* @member {Array.<module:model/SubmissionAction>} actions
|
|
423
360
|
*/
|
|
424
|
-
Submission.prototype['
|
|
361
|
+
Submission.prototype['actions'] = undefined;
|
|
425
362
|
|
|
426
363
|
/**
|
|
427
|
-
*
|
|
364
|
+
* The text of each field that didn't fit in it, by field name. Left out (null) with `data`, and empty once the submission has expired.
|
|
365
|
+
* @member {Object.<String, Array.<String>>} truncated_text
|
|
428
366
|
*/
|
|
429
|
-
Submission.prototype['
|
|
367
|
+
Submission.prototype['truncated_text'] = undefined;
|
|
430
368
|
|
|
431
369
|
/**
|
|
432
|
-
*
|
|
370
|
+
* The generated files: `pdf` once the submission has been processed, `audit_trail` once its signature requests are completed, and `preview` once a preview PDF has been generated. Empty once the submission has expired.
|
|
371
|
+
* @member {module:model/SubmissionFiles} files
|
|
433
372
|
*/
|
|
434
|
-
Submission.prototype['
|
|
373
|
+
Submission.prototype['files'] = undefined;
|
|
435
374
|
|
|
436
375
|
/**
|
|
437
|
-
*
|
|
376
|
+
* When the preview PDF was generated. Null if there is no preview.
|
|
377
|
+
* @member {Date} preview_generated_at
|
|
438
378
|
*/
|
|
439
|
-
Submission.prototype['
|
|
379
|
+
Submission.prototype['preview_generated_at'] = undefined;
|
|
440
380
|
|
|
441
381
|
/**
|
|
442
|
-
*
|
|
382
|
+
* An expired submission's data, metadata, password and PDF have been deleted.
|
|
383
|
+
* @member {Boolean} expired
|
|
443
384
|
*/
|
|
444
|
-
Submission.prototype['
|
|
385
|
+
Submission.prototype['expired'] = undefined;
|
|
445
386
|
|
|
446
387
|
/**
|
|
447
|
-
*
|
|
388
|
+
* When the submission expires. Null if it's kept until you delete it.
|
|
389
|
+
* @member {Date} expires_at
|
|
448
390
|
*/
|
|
449
|
-
Submission.prototype['
|
|
391
|
+
Submission.prototype['expires_at'] = undefined;
|
|
450
392
|
|
|
451
393
|
/**
|
|
452
|
-
*
|
|
453
|
-
* @
|
|
454
|
-
* @readonly
|
|
394
|
+
* When the PDF was generated. Null until then.
|
|
395
|
+
* @member {Date} processed_at
|
|
455
396
|
*/
|
|
456
|
-
Submission['
|
|
457
|
-
/**
|
|
458
|
-
* value: "pending"
|
|
459
|
-
* @const
|
|
460
|
-
*/
|
|
461
|
-
"pending": "pending",
|
|
462
|
-
/**
|
|
463
|
-
* value: "processed"
|
|
464
|
-
* @const
|
|
465
|
-
*/
|
|
466
|
-
"processed": "processed",
|
|
467
|
-
/**
|
|
468
|
-
* value: "invalid_data"
|
|
469
|
-
* @const
|
|
470
|
-
*/
|
|
471
|
-
"invalid_data": "invalid_data",
|
|
472
|
-
/**
|
|
473
|
-
* value: "error"
|
|
474
|
-
* @const
|
|
475
|
-
*/
|
|
476
|
-
"error": "error",
|
|
477
|
-
/**
|
|
478
|
-
* value: "image_download_failed"
|
|
479
|
-
* @const
|
|
480
|
-
*/
|
|
481
|
-
"image_download_failed": "image_download_failed",
|
|
482
|
-
/**
|
|
483
|
-
* value: "image_processing_failed"
|
|
484
|
-
* @const
|
|
485
|
-
*/
|
|
486
|
-
"image_processing_failed": "image_processing_failed",
|
|
487
|
-
/**
|
|
488
|
-
* value: "waiting_for_data_requests"
|
|
489
|
-
* @const
|
|
490
|
-
*/
|
|
491
|
-
"waiting_for_data_requests": "waiting_for_data_requests",
|
|
492
|
-
/**
|
|
493
|
-
* value: "syntax_error"
|
|
494
|
-
* @const
|
|
495
|
-
*/
|
|
496
|
-
"syntax_error": "syntax_error",
|
|
497
|
-
/**
|
|
498
|
-
* value: "insufficient_credits"
|
|
499
|
-
* @const
|
|
500
|
-
*/
|
|
501
|
-
"insufficient_credits": "insufficient_credits",
|
|
502
|
-
/**
|
|
503
|
-
* value: "account_suspended"
|
|
504
|
-
* @const
|
|
505
|
-
*/
|
|
506
|
-
"account_suspended": "account_suspended",
|
|
507
|
-
/**
|
|
508
|
-
* value: "license_revoked"
|
|
509
|
-
* @const
|
|
510
|
-
*/
|
|
511
|
-
"license_revoked": "license_revoked",
|
|
512
|
-
/**
|
|
513
|
-
* value: "accidental"
|
|
514
|
-
* @const
|
|
515
|
-
*/
|
|
516
|
-
"accidental": "accidental",
|
|
517
|
-
/**
|
|
518
|
-
* value: "declined"
|
|
519
|
-
* @const
|
|
520
|
-
*/
|
|
521
|
-
"declined": "declined"
|
|
522
|
-
};
|
|
397
|
+
Submission.prototype['processed_at'] = undefined;
|
|
523
398
|
|
|
524
399
|
/**
|
|
525
|
-
*
|
|
526
|
-
* @
|
|
527
|
-
* @readonly
|
|
400
|
+
* When the submission was created.
|
|
401
|
+
* @member {Date} created_at
|
|
528
402
|
*/
|
|
529
|
-
Submission['
|
|
530
|
-
/**
|
|
531
|
-
* value: "pdf"
|
|
532
|
-
* @const
|
|
533
|
-
*/
|
|
534
|
-
"pdf": "pdf",
|
|
535
|
-
/**
|
|
536
|
-
* value: "html"
|
|
537
|
-
* @const
|
|
538
|
-
*/
|
|
539
|
-
"html": "html"
|
|
540
|
-
};
|
|
403
|
+
Submission.prototype['created_at'] = undefined;
|
|
541
404
|
|
|
542
405
|
/**
|
|
543
|
-
*
|
|
544
|
-
* @
|
|
545
|
-
* @readonly
|
|
406
|
+
* When the submission was last updated.
|
|
407
|
+
* @member {Date} updated_at
|
|
546
408
|
*/
|
|
547
|
-
Submission['
|
|
548
|
-
/**
|
|
549
|
-
* value: "api"
|
|
550
|
-
* @const
|
|
551
|
-
*/
|
|
552
|
-
"api": "api",
|
|
553
|
-
/**
|
|
554
|
-
* value: "web"
|
|
555
|
-
* @const
|
|
556
|
-
*/
|
|
557
|
-
"web": "web",
|
|
558
|
-
/**
|
|
559
|
-
* value: "reprocess"
|
|
560
|
-
* @const
|
|
561
|
-
*/
|
|
562
|
-
"reprocess": "reprocess",
|
|
563
|
-
/**
|
|
564
|
-
* value: "webhook"
|
|
565
|
-
* @const
|
|
566
|
-
*/
|
|
567
|
-
"webhook": "webhook"
|
|
568
|
-
};
|
|
409
|
+
Submission.prototype['updated_at'] = undefined;
|
|
569
410
|
var _default = exports["default"] = Submission;
|