docspring 3.2.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.
Files changed (157) hide show
  1. package/AGENTS.md +79 -19
  2. package/README.md +65 -63
  3. package/dist/ApiClient.js +62 -27
  4. package/dist/RequestSchemas.js +2297 -0
  5. package/dist/RequestValidator.js +494 -0
  6. package/dist/api/Client.js +1345 -946
  7. package/dist/index.js +655 -151
  8. package/dist/model/AiFieldNamingLanguage.js +64 -0
  9. package/dist/model/{AddFieldsData.js → AuthenticationCheck.js} +31 -31
  10. package/dist/model/BarcodeSymbology.js +89 -0
  11. package/dist/model/CheckCharacter.js +74 -0
  12. package/dist/model/CombinedFieldType.js +59 -0
  13. package/dist/model/CombinedPdf.js +294 -0
  14. package/dist/model/{MoveFolderData.js → CombinedPdfFiles.js} +26 -26
  15. package/dist/model/CombinedPdfList.js +132 -0
  16. package/dist/model/{SubmissionDataRequestToken.js → CombinedPdfSource.js} +55 -52
  17. package/dist/model/CombinedPdfSourceInput.js +270 -0
  18. package/dist/model/{SuccessErrorResponse.js → CombinedPdfSourcePdf.js} +41 -55
  19. package/dist/model/CombinedPdfSourceType.js +74 -0
  20. package/dist/model/CombinedPdfState.js +74 -0
  21. package/dist/model/{CopyTemplateOptions.js → CopyTemplateRequest.js} +25 -21
  22. package/dist/model/{CombinePdfsData.js → CreateCombinedPdfRequest.js} +68 -52
  23. package/dist/model/{CreateCustomFileData.js → CreateCustomFileFromUploadRequest.js} +24 -22
  24. package/dist/model/{CreateFolderData.js → CreateFolderRequest.js} +46 -27
  25. package/dist/model/{CreateSubmissionDataRequestEventRequest.js → CreateSignatureRequestEventRequest.js} +41 -137
  26. package/dist/model/CreateSignatureRequestTokenRequest.js +88 -0
  27. package/dist/model/{CreatePdfSubmissionData.js → CreateSubmissionBatchRequest.js} +63 -87
  28. package/dist/model/CreateSubmissionRequest.js +212 -0
  29. package/dist/model/CreateTemplateRequest.js +545 -0
  30. package/dist/model/CreateWebhookRequest.js +234 -0
  31. package/dist/model/CustomFile.js +66 -15
  32. package/dist/model/CustomFileList.js +132 -0
  33. package/dist/model/CustomFileSourcePdf.js +130 -0
  34. package/dist/model/ErrorCode.js +154 -0
  35. package/dist/model/{BatchGeneratePdfs201Response.js → ErrorDetail.js} +65 -76
  36. package/dist/model/ErrorInfo.js +211 -0
  37. package/dist/model/ErrorResponse.js +11 -40
  38. package/dist/model/ExpirationInterval.js +64 -0
  39. package/dist/model/{CreateSubmissionResponse.js → FieldComparisonCondition.js} +46 -64
  40. package/dist/model/FieldComparisonOperator.js +69 -0
  41. package/dist/model/FieldDisplayType.js +79 -0
  42. package/dist/model/FieldEqualsCondition.js +137 -0
  43. package/dist/model/FieldEqualsOperator.js +59 -0
  44. package/dist/model/FieldInCondition.js +145 -0
  45. package/dist/model/FieldOverride.js +722 -0
  46. package/dist/model/{MultipleErrorsResponse.js → FieldPresenceCondition.js} +39 -54
  47. package/dist/model/FieldPresenceOperator.js +59 -0
  48. package/dist/model/FieldRangeCondition.js +148 -0
  49. package/dist/model/FieldReimportState.js +69 -0
  50. package/dist/model/FieldSetupLogic.js +59 -0
  51. package/dist/model/FieldSetupNaming.js +59 -0
  52. package/dist/model/FieldSetupSource.js +64 -0
  53. package/dist/model/Folder.js +37 -10
  54. package/dist/model/FolderList.js +132 -0
  55. package/dist/model/GeneratedFile.js +214 -0
  56. package/dist/model/GeneratedFileState.js +64 -0
  57. package/dist/model/HtmlEngineOptions.js +230 -0
  58. package/dist/model/HtmlEngineOptionsInput.js +193 -0
  59. package/dist/model/ImageGravity.js +94 -0
  60. package/dist/model/ImageScaleType.js +64 -0
  61. package/dist/model/ModelCodeLanguage.js +94 -0
  62. package/dist/model/{UpdatePdfTemplate.js → MoveFolderRequest.js} +33 -27
  63. package/dist/model/{MoveTemplateData.js → MoveTemplateRequest.js} +24 -34
  64. package/dist/model/NumberConditionType.js +79 -0
  65. package/dist/model/PageFormat.js +114 -0
  66. package/dist/model/{PublishVersionData.js → PublishTemplateVersionRequest.js} +32 -32
  67. package/dist/model/{RenameFolderData.js → RenameFolderRequest.js} +24 -22
  68. package/dist/model/{RestoreVersionData.js → RestoreTemplateVersionRequest.js} +24 -22
  69. package/dist/model/ShapeType.js +79 -0
  70. package/dist/model/{SubmissionDataRequestShow.js → SignatureRequest.js} +164 -239
  71. package/dist/model/SignatureRequestAuthSecondFactorType.js +79 -0
  72. package/dist/model/SignatureRequestAuthType.js +84 -0
  73. package/dist/model/{SubmissionDataRequestEvent.js → SignatureRequestEvent.js} +66 -148
  74. package/dist/model/SignatureRequestEventType.js +79 -0
  75. package/dist/model/SignatureRequestInput.js +278 -0
  76. package/dist/model/SignatureRequestMessageType.js +94 -0
  77. package/dist/model/SignatureRequestState.js +64 -0
  78. package/dist/model/SignatureRequestToken.js +195 -0
  79. package/dist/model/SignatureRequestTokenType.js +59 -0
  80. package/dist/model/StringConditionType.js +74 -0
  81. package/dist/model/Submission.js +185 -339
  82. package/dist/model/SubmissionAction.js +29 -114
  83. package/dist/model/SubmissionActionState.js +69 -0
  84. package/dist/model/SubmissionActionType.js +84 -0
  85. package/dist/model/SubmissionBatch.js +73 -54
  86. package/dist/model/SubmissionBatchState.js +64 -0
  87. package/dist/model/SubmissionFiles.js +108 -0
  88. package/dist/model/SubmissionInput.js +204 -0
  89. package/dist/model/{ListSubmissionsResponse.js → SubmissionList.js} +34 -41
  90. package/dist/model/SubmissionSource.js +69 -0
  91. package/dist/model/SubmissionSourcePdf.js +130 -0
  92. package/dist/model/SubmissionState.js +114 -0
  93. package/dist/model/Template.js +309 -572
  94. package/dist/model/TemplateActor.js +171 -0
  95. package/dist/model/TemplateActorType.js +64 -0
  96. package/dist/model/TemplateDefaults.js +307 -0
  97. package/dist/model/TemplateDefaultsInput.js +305 -0
  98. package/dist/model/TemplateDocument.js +280 -0
  99. package/dist/model/TemplateDocumentState.js +74 -0
  100. package/dist/model/TemplateFieldDependency.js +184 -0
  101. package/dist/model/TemplateFieldDependencyAction.js +64 -0
  102. package/dist/model/{CreateCombinedSubmissionResponse.js → TemplateFieldDependencyCondition.js} +50 -61
  103. package/dist/model/TemplateFieldDependencyConditionInput.js +304 -0
  104. package/dist/model/TemplateFieldDependencyInput.js +182 -0
  105. package/dist/model/TemplateFieldDependencyMatch.js +59 -0
  106. package/dist/model/TemplateFieldDependencyOperator.js +99 -0
  107. package/dist/model/TemplateFieldLogicStatus.js +74 -0
  108. package/dist/model/TemplateFormMode.js +64 -0
  109. package/dist/model/{TemplateModelCodeResponse.js → TemplateModelCode.js} +33 -85
  110. package/dist/model/TemplatePageAiError.js +69 -0
  111. package/dist/model/TemplatePageAiNamingStatus.js +59 -0
  112. package/dist/model/TemplatePageFieldsStatus.js +74 -0
  113. package/dist/model/TemplatePageImageStatus.js +59 -0
  114. package/dist/model/TemplatePageProcessingStatus.js +162 -0
  115. package/dist/model/{SubmissionBatchData.js → TemplateSourcePdf.js} +49 -49
  116. package/dist/model/TemplateSummary.js +560 -0
  117. package/dist/model/{SuccessMultipleErrorsResponse.js → TemplateSummaryList.js} +43 -55
  118. package/dist/model/TemplateType.js +59 -0
  119. package/dist/model/{Submission422Response.js → TemplateVersion.js} +59 -62
  120. package/dist/model/TemplateVersionType.js +64 -0
  121. package/dist/model/TextAlignment.js +69 -0
  122. package/dist/model/TextOverflow.js +59 -0
  123. package/dist/model/TextVerticalAlignment.js +64 -0
  124. package/dist/model/Typeface.js +134 -0
  125. package/dist/model/UpdateSignatureRequestRequest.js +183 -0
  126. package/dist/model/{ErrorOrMultipleErrorsResponse.js → UpdateTemplateDocumentRequest.js} +43 -60
  127. package/dist/model/UpdateTemplateRequest.js +450 -0
  128. package/dist/model/UpdateWebhookRequest.js +209 -0
  129. package/dist/model/UploadMethod.js +54 -0
  130. package/dist/model/{UploadPresignResponse.js → UploadPresign.js} +52 -57
  131. package/dist/model/UrlSourcePdf.js +130 -0
  132. package/dist/model/Webhook.js +57 -72
  133. package/dist/model/WebhookEventType.js +174 -0
  134. package/dist/model/WebhookList.js +132 -0
  135. package/dist/model/WebhookMode.js +59 -0
  136. package/package.json +1 -1
  137. package/dist/model/CombinedSubmission.js +0 -308
  138. package/dist/model/CombinedSubmissionAction.js +0 -268
  139. package/dist/model/CreateCustomFileResponse.js +0 -155
  140. package/dist/model/CreateHtmlTemplate.js +0 -108
  141. package/dist/model/CreatePdfTemplate.js +0 -108
  142. package/dist/model/CreateSubmissionDataRequestData.js +0 -314
  143. package/dist/model/CreateSubmissionDataRequestEventResponse.js +0 -155
  144. package/dist/model/CreateSubmissionDataRequestResponse.js +0 -155
  145. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +0 -155
  146. package/dist/model/CreateWebhookData.js +0 -108
  147. package/dist/model/JsonSchema.js +0 -205
  148. package/dist/model/SubmissionBatchWithSubmissions.js +0 -228
  149. package/dist/model/SubmissionDataRequest.js +0 -496
  150. package/dist/model/SubmissionPreview.js +0 -504
  151. package/dist/model/TemplateAddFieldsResponse.js +0 -156
  152. package/dist/model/TemplateDeleteResponse.js +0 -168
  153. package/dist/model/TemplatePreview.js +0 -796
  154. package/dist/model/TemplatePublishVersionResponse.js +0 -154
  155. package/dist/model/UpdateHtmlTemplate.js +0 -108
  156. package/dist/model/UpdateSubmissionDataRequestData.js +0 -311
  157. package/dist/model/UpdateWebhookData.js +0 -108
@@ -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 _SubmissionDataRequest = _interopRequireDefault(require("./SubmissionDataRequest"));
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; } } }; }
@@ -20,7 +25,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
20
25
  * DocSpring API
21
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: v1
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 3.2.0
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 batch_id {String}
42
- * @param data_requests {Array.<module:model/SubmissionDataRequest>}
43
- * @param editable {Boolean}
44
- * @param error_message {String}
45
- * @param expired {Boolean}
46
- * @param expires_at {String}
47
- * @param id {String}
48
- * @param json_schema_errors {Array.<String>}
49
- * @param metadata {Object}
50
- * @param password {String}
51
- * @param processed_at {String}
52
- * @param state {module:model/Submission.StateEnum}
53
- * @param template_id {String}
54
- * @param template_type {module:model/Submission.TemplateTypeEnum}
55
- * @param template_version {String}
56
- * @param test {Boolean}
57
- * @param truncated_text {Object}
58
- * @param pdf_hash {String}
59
- * @param download_url {String}
60
- * @param permanent_download_url {String}
61
- * @param preview_download_url {String}
62
- * @param preview_generated_at {String}
63
- * @param audit_trail_download_url {String}
64
- * @param actions {Array.<module:model/SubmissionAction>}
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(batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions) {
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, batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions);
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, batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions) {
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['pdf_hash'] = pdf_hash;
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['audit_trail_download_url'] = audit_trail_download_url;
102
- obj['actions'] = actions;
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'], 'String');
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('truncated_text')) {
167
- obj['truncated_text'] = _ApiClient["default"].convertToType(data['truncated_text'], Object);
148
+ if (data.hasOwnProperty('editable')) {
149
+ obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
168
150
  }
169
- if (data.hasOwnProperty('pdf_hash')) {
170
- obj['pdf_hash'] = _ApiClient["default"].convertToType(data['pdf_hash'], 'String');
151
+ if (data.hasOwnProperty('data')) {
152
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], {
153
+ 'String': Object
154
+ });
171
155
  }
172
- if (data.hasOwnProperty('download_url')) {
173
- obj['download_url'] = _ApiClient["default"].convertToType(data['download_url'], 'String');
156
+ if (data.hasOwnProperty('data_errors')) {
157
+ obj['data_errors'] = _ApiClient["default"].convertToType(data['data_errors'], [_ErrorDetail["default"]]);
174
158
  }
175
- if (data.hasOwnProperty('permanent_download_url')) {
176
- obj['permanent_download_url'] = _ApiClient["default"].convertToType(data['permanent_download_url'], 'String');
159
+ if (data.hasOwnProperty('error_message')) {
160
+ obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
177
161
  }
178
- if (data.hasOwnProperty('preview_download_url')) {
179
- obj['preview_download_url'] = _ApiClient["default"].convertToType(data['preview_download_url'], 'String');
162
+ if (data.hasOwnProperty('metadata')) {
163
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], {
164
+ 'String': Object
165
+ });
180
166
  }
181
- if (data.hasOwnProperty('preview_generated_at')) {
182
- obj['preview_generated_at'] = _ApiClient["default"].convertToType(data['preview_generated_at'], 'String');
167
+ if (data.hasOwnProperty('has_password')) {
168
+ obj['has_password'] = _ApiClient["default"].convertToType(data['has_password'], 'Boolean');
183
169
  }
184
- if (data.hasOwnProperty('audit_trail_download_url')) {
185
- obj['audit_trail_download_url'] = _ApiClient["default"].convertToType(data['audit_trail_download_url'], 'String');
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('source')) {
191
- obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
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('referrer')) {
194
- obj['referrer'] = _ApiClient["default"].convertToType(data['referrer'], 'String');
181
+ if (data.hasOwnProperty('files')) {
182
+ obj['files'] = _ApiClient["default"].convertToType(data['files'], _SubmissionFiles["default"]);
195
183
  }
196
- if (data.hasOwnProperty('data')) {
197
- obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
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,341 +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['pdf_hash'] && !(typeof data['pdf_hash'] === 'string' || data['pdf_hash'] instanceof String)) {
276
- throw new Error("Expected the field `pdf_hash` to be a primitive type in the JSON string but got " + data['pdf_hash']);
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 a string
287
- if (data['preview_download_url'] && !(typeof data['preview_download_url'] === 'string' || data['preview_download_url'] instanceof String)) {
288
- throw new Error("Expected the field `preview_download_url` to be a primitive type in the JSON string but got " + data['preview_download_url']);
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['preview_generated_at'] && !(typeof data['preview_generated_at'] === 'string' || data['preview_generated_at'] instanceof String)) {
292
- throw new Error("Expected the field `preview_generated_at` to be a primitive type in the JSON string but got " + data['preview_generated_at']);
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 a string
295
- if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
296
- throw new Error("Expected the field `audit_trail_download_url` to be a primitive type in the JSON string but got " + data['audit_trail_download_url']);
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 = ["batch_id", "data_requests", "editable", "error_message", "expired", "expires_at", "id", "json_schema_errors", "metadata", "password", "processed_at", "state", "template_id", "template_type", "template_version", "test", "truncated_text", "pdf_hash", "download_url", "permanent_download_url", "preview_download_url", "preview_generated_at", "audit_trail_download_url", "actions"];
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
- * @member {Array.<String>} json_schema_errors
274
+ * Null once the template has been permanently deleted.
275
+ * @member {String} template_id
353
276
  */
354
- Submission.prototype['json_schema_errors'] = undefined;
277
+ Submission.prototype['template_id'] = undefined;
355
278
 
356
279
  /**
357
- * @member {Object} metadata
280
+ * The template's type: `pdf` or `html`.
281
+ * @member {module:model/TemplateType} template_type
358
282
  */
359
- Submission.prototype['metadata'] = undefined;
283
+ Submission.prototype['template_type'] = undefined;
360
284
 
361
285
  /**
362
- * @member {String} password
286
+ * The published version of the template the submission used. Null for the draft.
287
+ * @member {String} template_version
363
288
  */
364
- Submission.prototype['password'] = undefined;
289
+ Submission.prototype['template_version'] = undefined;
365
290
 
366
291
  /**
367
- * @member {String} processed_at
292
+ * The ID of the batch the submission was created in.
293
+ * @member {String} batch_id
368
294
  */
369
- Submission.prototype['processed_at'] = undefined;
295
+ Submission.prototype['batch_id'] = undefined;
370
296
 
371
297
  /**
372
- * @member {module:model/Submission.StateEnum} state
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['state'] = undefined;
301
+ Submission.prototype['source'] = undefined;
375
302
 
376
303
  /**
377
- * @member {String} template_id
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['template_id'] = undefined;
307
+ Submission.prototype['state'] = undefined;
380
308
 
381
309
  /**
382
- * @member {module:model/Submission.TemplateTypeEnum} template_type
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['template_type'] = undefined;
313
+ Submission.prototype['test'] = undefined;
385
314
 
386
315
  /**
387
- * @member {String} template_version
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['template_version'] = undefined;
319
+ Submission.prototype['editable'] = undefined;
390
320
 
391
321
  /**
392
- * @member {Boolean} test
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['test'] = undefined;
325
+ Submission.prototype['data'] = undefined;
395
326
 
396
327
  /**
397
- * @member {Object} truncated_text
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['truncated_text'] = undefined;
331
+ Submission.prototype['data_errors'] = undefined;
400
332
 
401
333
  /**
402
- * @member {String} pdf_hash
334
+ * Why the PDF couldn't be generated, when `state` is `error`.
335
+ * @member {String} error_message
403
336
  */
404
- Submission.prototype['pdf_hash'] = undefined;
337
+ Submission.prototype['error_message'] = undefined;
405
338
 
406
339
  /**
407
- * @member {String} download_url
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['download_url'] = undefined;
343
+ Submission.prototype['metadata'] = undefined;
410
344
 
411
345
  /**
412
- * @member {String} permanent_download_url
346
+ * Whether the PDF needs a password to open (`password`).
347
+ * @member {Boolean} has_password
413
348
  */
414
- Submission.prototype['permanent_download_url'] = undefined;
349
+ Submission.prototype['has_password'] = undefined;
415
350
 
416
351
  /**
417
- * @member {String} preview_download_url
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['preview_download_url'] = undefined;
355
+ Submission.prototype['signature_requests'] = undefined;
420
356
 
421
357
  /**
422
- * @member {String} preview_generated_at
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['preview_generated_at'] = undefined;
361
+ Submission.prototype['actions'] = undefined;
425
362
 
426
363
  /**
427
- * @member {String} audit_trail_download_url
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['audit_trail_download_url'] = undefined;
367
+ Submission.prototype['truncated_text'] = undefined;
430
368
 
431
369
  /**
432
- * @member {Array.<module:model/SubmissionAction>} actions
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['actions'] = undefined;
373
+ Submission.prototype['files'] = undefined;
435
374
 
436
375
  /**
437
- * @member {module:model/Submission.SourceEnum} source
376
+ * When the preview PDF was generated. Null if there is no preview.
377
+ * @member {Date} preview_generated_at
438
378
  */
439
- Submission.prototype['source'] = undefined;
379
+ Submission.prototype['preview_generated_at'] = undefined;
440
380
 
441
381
  /**
442
- * @member {String} referrer
382
+ * An expired submission's data, metadata, password and PDF have been deleted.
383
+ * @member {Boolean} expired
443
384
  */
444
- Submission.prototype['referrer'] = undefined;
385
+ Submission.prototype['expired'] = undefined;
445
386
 
446
387
  /**
447
- * @member {Object} data
388
+ * When the submission expires. Null if it's kept until you delete it.
389
+ * @member {Date} expires_at
448
390
  */
449
- Submission.prototype['data'] = undefined;
391
+ Submission.prototype['expires_at'] = undefined;
450
392
 
451
393
  /**
452
- * Allowed values for the <code>state</code> property.
453
- * @enum {String}
454
- * @readonly
394
+ * When the PDF was generated. Null until then.
395
+ * @member {Date} processed_at
455
396
  */
456
- Submission['StateEnum'] = {
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: "account_suspended"
499
- * @const
500
- */
501
- "account_suspended": "account_suspended",
502
- /**
503
- * value: "license_revoked"
504
- * @const
505
- */
506
- "license_revoked": "license_revoked",
507
- /**
508
- * value: "accidental"
509
- * @const
510
- */
511
- "accidental": "accidental",
512
- /**
513
- * value: "declined"
514
- * @const
515
- */
516
- "declined": "declined"
517
- };
397
+ Submission.prototype['processed_at'] = undefined;
518
398
 
519
399
  /**
520
- * Allowed values for the <code>template_type</code> property.
521
- * @enum {String}
522
- * @readonly
400
+ * When the submission was created.
401
+ * @member {Date} created_at
523
402
  */
524
- Submission['TemplateTypeEnum'] = {
525
- /**
526
- * value: "pdf"
527
- * @const
528
- */
529
- "pdf": "pdf",
530
- /**
531
- * value: "html"
532
- * @const
533
- */
534
- "html": "html"
535
- };
403
+ Submission.prototype['created_at'] = undefined;
536
404
 
537
405
  /**
538
- * Allowed values for the <code>source</code> property.
539
- * @enum {String}
540
- * @readonly
406
+ * When the submission was last updated.
407
+ * @member {Date} updated_at
541
408
  */
542
- Submission['SourceEnum'] = {
543
- /**
544
- * value: "api"
545
- * @const
546
- */
547
- "api": "api",
548
- /**
549
- * value: "web"
550
- * @const
551
- */
552
- "web": "web",
553
- /**
554
- * value: "reprocess"
555
- * @const
556
- */
557
- "reprocess": "reprocess",
558
- /**
559
- * value: "webhook"
560
- * @const
561
- */
562
- "webhook": "webhook"
563
- };
409
+ Submission.prototype['updated_at'] = undefined;
564
410
  var _default = exports["default"] = Submission;