docspring 1.5.0 → 2.1.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 (224) hide show
  1. package/README.md +63 -53
  2. package/dist/ApiClient.js +701 -0
  3. package/dist/api/PDFApi.js +1598 -0
  4. package/dist/index.js +384 -0
  5. package/dist/model/AddFieldsData.js +112 -0
  6. package/dist/model/BatchGeneratePdfs201Response.js +184 -0
  7. package/dist/model/CombinePdfsData.js +156 -0
  8. package/dist/model/CombinedSubmission.js +323 -0
  9. package/dist/model/CombinedSubmissionAction.js +252 -0
  10. package/dist/model/CombinedSubmissionData.js +148 -0
  11. package/dist/model/CopyTemplateOptions.js +124 -0
  12. package/dist/model/CreateCombinedSubmissionResponse.js +158 -0
  13. package/dist/model/CreateCustomFileData.js +112 -0
  14. package/dist/model/CreateCustomFileResponse.js +158 -0
  15. package/dist/model/CreateFolderData.js +108 -0
  16. package/dist/model/CreateHtmlSubmissionData.js +173 -0
  17. package/dist/model/CreateHtmlTemplate.js +108 -0
  18. package/dist/model/CreatePdfSubmissionData.js +202 -0
  19. package/dist/model/CreatePdfTemplate.js +108 -0
  20. package/dist/model/CreateSubmissionDataRequestData.js +210 -0
  21. package/dist/model/CreateSubmissionDataRequestEventRequest.js +215 -0
  22. package/dist/model/CreateSubmissionDataRequestEventResponse.js +158 -0
  23. package/dist/model/CreateSubmissionDataRequestResponse.js +158 -0
  24. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +158 -0
  25. package/dist/model/CreateSubmissionResponse.js +158 -0
  26. package/dist/model/CustomFile.js +126 -0
  27. package/dist/model/ErrorResponse.js +139 -0
  28. package/dist/model/Folder.js +154 -0
  29. package/dist/model/JsonSchema.js +173 -0
  30. package/dist/model/ListSubmissionsResponse.js +154 -0
  31. package/dist/model/MoveFolderData.js +89 -0
  32. package/dist/model/MoveTemplateData.js +112 -0
  33. package/dist/model/MultipleErrorsResponse.js +139 -0
  34. package/dist/model/PublishVersionData.js +124 -0
  35. package/dist/model/RenameFolderData.js +112 -0
  36. package/dist/model/RestoreVersionData.js +112 -0
  37. package/dist/model/Submission.js +583 -0
  38. package/dist/model/SubmissionAction.js +252 -0
  39. package/dist/model/SubmissionBatch.js +213 -0
  40. package/dist/model/SubmissionBatchData.js +128 -0
  41. package/dist/model/SubmissionBatchWithSubmissions.js +243 -0
  42. package/dist/model/SubmissionDataRequest.js +475 -0
  43. package/dist/model/SubmissionDataRequestEvent.js +287 -0
  44. package/dist/model/SubmissionDataRequestShow.js +489 -0
  45. package/dist/model/SubmissionDataRequestToken.js +154 -0
  46. package/dist/model/SubmissionPreview.js +517 -0
  47. package/dist/model/SuccessErrorResponse.js +142 -0
  48. package/dist/model/SuccessMultipleErrorsResponse.js +142 -0
  49. package/dist/model/Template.js +833 -0
  50. package/dist/model/TemplateAddFieldsResponse.js +154 -0
  51. package/dist/model/TemplateDeleteResponse.js +166 -0
  52. package/dist/model/TemplatePreview.js +695 -0
  53. package/dist/model/TemplatePublishVersionResponse.js +152 -0
  54. package/dist/model/UpdateHtmlTemplate.js +108 -0
  55. package/dist/model/UpdateSubmissionDataRequestData.js +160 -0
  56. package/dist/model/UploadPresignResponse.js +157 -0
  57. package/package.json +33 -8
  58. package/.openapi-generator/VERSION +0 -1
  59. package/.openapi-generator-ignore +0 -23
  60. package/.travis.yml +0 -7
  61. package/CHANGELOG.md +0 -37
  62. package/docs/AddFieldsData.md +0 -8
  63. package/docs/AddFieldsTemplateResponse.md +0 -21
  64. package/docs/AuthenticationError.md +0 -18
  65. package/docs/AuthenticationSuccessResponse.md +0 -17
  66. package/docs/CombinePdfsData.md +0 -13
  67. package/docs/CombinedSubmission.md +0 -33
  68. package/docs/CombinedSubmissionAction.md +0 -54
  69. package/docs/CombinedSubmissionData.md +0 -12
  70. package/docs/CopyTemplateData.md +0 -9
  71. package/docs/CreateCombinedSubmissionResponse.md +0 -21
  72. package/docs/CreateCustomFileData.md +0 -8
  73. package/docs/CreateCustomFileResponse.md +0 -21
  74. package/docs/CreateFolderData.md +0 -8
  75. package/docs/CreateHtmlTemplateData.md +0 -8
  76. package/docs/CreateSubmissionBatchResponse.md +0 -23
  77. package/docs/CreateSubmissionBatchSubmissionsResponse.md +0 -23
  78. package/docs/CreateSubmissionDataRequestData.md +0 -60
  79. package/docs/CreateSubmissionDataRequestTokenResponse.md +0 -21
  80. package/docs/CreateSubmissionDataRequestTokenResponseToken.md +0 -11
  81. package/docs/CreateSubmissionResponse.md +0 -21
  82. package/docs/CreateTemplateFromUploadData.md +0 -8
  83. package/docs/CustomFile.md +0 -9
  84. package/docs/Error.md +0 -18
  85. package/docs/Folder.md +0 -11
  86. package/docs/FoldersFolder.md +0 -9
  87. package/docs/FullTemplate.md +0 -59
  88. package/docs/FullTemplateDefaults.md +0 -10
  89. package/docs/HtmlTemplateData.md +0 -48
  90. package/docs/InvalidRequest.md +0 -18
  91. package/docs/ListSubmissionsResponse.md +0 -10
  92. package/docs/MoveFolderData.md +0 -8
  93. package/docs/MoveTemplateData.md +0 -8
  94. package/docs/PDFApi.md +0 -1800
  95. package/docs/PendingTemplate.md +0 -37
  96. package/docs/RenameFolderData.md +0 -8
  97. package/docs/Submission.md +0 -55
  98. package/docs/SubmissionAction.md +0 -54
  99. package/docs/SubmissionBatch.md +0 -29
  100. package/docs/SubmissionBatchData.md +0 -11
  101. package/docs/SubmissionData.md +0 -16
  102. package/docs/SubmissionDataBatchRequest.md +0 -13
  103. package/docs/SubmissionDataRequest.md +0 -79
  104. package/docs/Template.md +0 -40
  105. package/docs/TemplateData.md +0 -36
  106. package/docs/TemplatestemplateIdaddFieldsFields.md +0 -286
  107. package/docs/UpdateDataRequestResponse.md +0 -21
  108. package/docs/UpdateSubmissionDataRequestData.md +0 -60
  109. package/docs/UpdateTemplateData.md +0 -8
  110. package/docs/UpdateTemplateResponse.md +0 -20
  111. package/docs/UploadTemplateData.md +0 -49
  112. package/docs/UploadTemplateDataDocument.md +0 -19
  113. package/docs/UploadTemplateDataDocumentMetadata.md +0 -19
  114. package/git_push.sh +0 -52
  115. package/mocha.opts +0 -1
  116. package/src/ApiClient.js +0 -605
  117. package/src/api/Client.js +0 -408
  118. package/src/api/PDFApi.js +0 -1815
  119. package/src/index.js +0 -334
  120. package/src/model/AddFieldsData.js +0 -82
  121. package/src/model/AddFieldsTemplateResponse.js +0 -114
  122. package/src/model/AuthenticationError.js +0 -102
  123. package/src/model/AuthenticationSuccessResponse.js +0 -93
  124. package/src/model/CombinePdfsData.js +0 -122
  125. package/src/model/CombinedSubmission.js +0 -199
  126. package/src/model/CombinedSubmissionAction.js +0 -198
  127. package/src/model/CombinedSubmissionData.js +0 -114
  128. package/src/model/CopyTemplateData.js +0 -90
  129. package/src/model/CreateCombinedSubmissionResponse.js +0 -114
  130. package/src/model/CreateCustomFileData.js +0 -82
  131. package/src/model/CreateCustomFileResponse.js +0 -114
  132. package/src/model/CreateFolderData.js +0 -82
  133. package/src/model/CreateHtmlTemplateData.js +0 -82
  134. package/src/model/CreateSubmissionBatchResponse.js +0 -130
  135. package/src/model/CreateSubmissionBatchSubmissionsResponse.js +0 -119
  136. package/src/model/CreateSubmissionDataRequestData.js +0 -256
  137. package/src/model/CreateSubmissionDataRequestTokenResponse.js +0 -114
  138. package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +0 -105
  139. package/src/model/CreateSubmissionResponse.js +0 -114
  140. package/src/model/CreateTemplateFromUploadData.js +0 -82
  141. package/src/model/CustomFile.js +0 -89
  142. package/src/model/Error.js +0 -103
  143. package/src/model/Folder.js +0 -105
  144. package/src/model/FoldersFolder.js +0 -89
  145. package/src/model/FullTemplate.js +0 -407
  146. package/src/model/FullTemplateDefaults.js +0 -97
  147. package/src/model/HtmlTemplateData.js +0 -248
  148. package/src/model/InvalidRequest.js +0 -103
  149. package/src/model/ListSubmissionsResponse.js +0 -97
  150. package/src/model/MoveFolderData.js +0 -81
  151. package/src/model/MoveTemplateData.js +0 -82
  152. package/src/model/PendingTemplate.js +0 -231
  153. package/src/model/RenameFolderData.js +0 -82
  154. package/src/model/Submission.js +0 -291
  155. package/src/model/SubmissionAction.js +0 -198
  156. package/src/model/SubmissionBatch.js +0 -167
  157. package/src/model/SubmissionBatchData.js +0 -106
  158. package/src/model/SubmissionData.js +0 -146
  159. package/src/model/SubmissionDataBatchRequest.js +0 -121
  160. package/src/model/SubmissionDataRequest.js +0 -345
  161. package/src/model/Template.js +0 -255
  162. package/src/model/TemplateData.js +0 -223
  163. package/src/model/TemplatestemplateIdaddFieldsFields.js +0 -1128
  164. package/src/model/UpdateDataRequestResponse.js +0 -114
  165. package/src/model/UpdateSubmissionDataRequestData.js +0 -256
  166. package/src/model/UpdateTemplateData.js +0 -82
  167. package/src/model/UpdateTemplateResponse.js +0 -106
  168. package/src/model/UploadTemplateData.js +0 -256
  169. package/src/model/UploadTemplateDataDocument.js +0 -109
  170. package/src/model/UploadTemplateDataDocumentMetadata.js +0 -109
  171. package/test/api/ClientIntegration.spec.js +0 -281
  172. package/test/api/PDFApi.spec.js.original +0 -415
  173. package/test/api/PDFApiIntegration.spec.js +0 -305
  174. package/test/model/AddFieldsData.spec.js +0 -67
  175. package/test/model/AddFieldsTemplateResponse.spec.js +0 -79
  176. package/test/model/AuthenticationError.spec.js +0 -73
  177. package/test/model/AuthenticationSuccessResponse.spec.js +0 -67
  178. package/test/model/CombinePdfsData.spec.js +0 -97
  179. package/test/model/CombinedSubmission.spec.js +0 -139
  180. package/test/model/CombinedSubmissionAction.spec.js +0 -97
  181. package/test/model/CombinedSubmissionData.spec.js +0 -91
  182. package/test/model/CopyTemplateData.spec.js +0 -73
  183. package/test/model/CreateCombinedSubmissionResponse.spec.js +0 -79
  184. package/test/model/CreateCustomFileData.spec.js +0 -67
  185. package/test/model/CreateCustomFileResponse.spec.js +0 -79
  186. package/test/model/CreateFolderData.spec.js +0 -67
  187. package/test/model/CreateHtmlTemplateData.spec.js +0 -67
  188. package/test/model/CreateSubmissionBatchResponse.spec.js +0 -91
  189. package/test/model/CreateSubmissionBatchSubmissionsResponse.spec.js +0 -79
  190. package/test/model/CreateSubmissionDataRequestData.spec.js +0 -139
  191. package/test/model/CreateSubmissionDataRequestTokenResponse.spec.js +0 -79
  192. package/test/model/CreateSubmissionDataRequestTokenResponseToken.spec.js +0 -85
  193. package/test/model/CreateSubmissionResponse.spec.js +0 -79
  194. package/test/model/CreateTemplateFromUploadData.spec.js +0 -67
  195. package/test/model/CustomFile.spec.js +0 -73
  196. package/test/model/Error.spec.js +0 -73
  197. package/test/model/Folder.spec.js +0 -85
  198. package/test/model/FoldersFolder.spec.js +0 -73
  199. package/test/model/FullTemplate.spec.js +0 -295
  200. package/test/model/FullTemplateDefaults.spec.js +0 -79
  201. package/test/model/HtmlTemplateData.spec.js +0 -163
  202. package/test/model/InvalidRequest.spec.js +0 -73
  203. package/test/model/ListSubmissionsResponse.spec.js +0 -79
  204. package/test/model/MoveFolderData.spec.js +0 -67
  205. package/test/model/MoveTemplateData.spec.js +0 -67
  206. package/test/model/PendingTemplate.spec.js +0 -163
  207. package/test/model/RenameFolderData.spec.js +0 -67
  208. package/test/model/Submission.spec.js +0 -175
  209. package/test/model/SubmissionAction.spec.js +0 -97
  210. package/test/model/SubmissionBatch.spec.js +0 -115
  211. package/test/model/SubmissionBatchData.spec.js +0 -85
  212. package/test/model/SubmissionData.spec.js +0 -115
  213. package/test/model/SubmissionDataBatchRequest.spec.js +0 -97
  214. package/test/model/SubmissionDataRequest.spec.js +0 -187
  215. package/test/model/Template.spec.js +0 -181
  216. package/test/model/TemplateData.spec.js +0 -157
  217. package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +0 -577
  218. package/test/model/UpdateDataRequestResponse.spec.js +0 -79
  219. package/test/model/UpdateSubmissionDataRequestData.spec.js +0 -139
  220. package/test/model/UpdateTemplateData.spec.js +0 -67
  221. package/test/model/UpdateTemplateResponse.spec.js +0 -73
  222. package/test/model/UploadTemplateData.spec.js +0 -169
  223. package/test/model/UploadTemplateDataDocument.spec.js +0 -79
  224. package/test/model/UploadTemplateDataDocumentMetadata.spec.js +0 -79
@@ -0,0 +1,833 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ 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; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * DocSpring API
19
+ * DocSpring provides an API that helps you fill out and sign PDF templates.
20
+ *
21
+ * The version of the OpenAPI document: v1
22
+ *
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The Template model module.
31
+ * @module model/Template
32
+ * @version 2.1.0
33
+ */
34
+ var Template = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>Template</code>.
37
+ * @alias module:model/Template
38
+ * @param addDataRequestSubmissionIdFooters {Boolean}
39
+ * @param allowAdditionalProperties {Boolean}
40
+ * @param description {String}
41
+ * @param documentFilename {String}
42
+ * @param documentMd5 {String}
43
+ * @param documentParseError {Boolean}
44
+ * @param documentProcessed {Boolean}
45
+ * @param documentState {module:model/Template.DocumentStateEnum}
46
+ * @param documentUrl {String}
47
+ * @param editableSubmissions {Boolean}
48
+ * @param embedDomains {String}
49
+ * @param encryptPdfsPassword {String}
50
+ * @param encryptPdfs {Boolean}
51
+ * @param expirationInterval {String}
52
+ * @param expireAfter {Number}
53
+ * @param expireSubmissions {Boolean}
54
+ * @param externalPredefinedFieldsTemplateId {String}
55
+ * @param externalPredefinedFieldsTemplateName {String}
56
+ * @param firstTemplate {Boolean}
57
+ * @param id {String}
58
+ * @param locked {Boolean}
59
+ * @param mergeAuditTrailPdf {Boolean}
60
+ * @param name {String}
61
+ * @param pageCount {Number}
62
+ * @param pageDimensions {Array.<Array.<Number>>}
63
+ * @param parentFolderId {String}
64
+ * @param path {String}
65
+ * @param permanentDocumentUrl {String}
66
+ * @param publicSubmissions {Boolean}
67
+ * @param publicWebForm {Boolean}
68
+ * @param redirectUrl {String}
69
+ * @param slackWebhookUrl {String}
70
+ * @param templateType {module:model/Template.TemplateTypeEnum}
71
+ * @param updatedAt {String}
72
+ * @param versionPublishedAt {String}
73
+ * @param version {String}
74
+ * @param webhookUrl {String}
75
+ * @param demo {Boolean}
76
+ * @param latestVersion {String}
77
+ * @param lastChangedAt {String}
78
+ * @param lastChangedByType {module:model/Template.LastChangedByTypeEnum}
79
+ * @param lastChangedById {String}
80
+ * @param defaults {Object}
81
+ * @param fieldOrder {Array.<Array.<Number>>}
82
+ * @param fields {Object}
83
+ * @param footerHtml {String}
84
+ * @param headerHtml {String}
85
+ * @param htmlEngineOptions {Object}
86
+ * @param html {String}
87
+ * @param predefinedFields {Array.<Object>}
88
+ * @param scss {String}
89
+ * @param sharedFieldData {Object}
90
+ * @param versions {Array.<Object>}
91
+ */
92
+ function Template(addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions) {
93
+ _classCallCheck(this, Template);
94
+ Template.initialize(this, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions);
95
+ }
96
+
97
+ /**
98
+ * Initializes the fields of this object.
99
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
100
+ * Only for internal use.
101
+ */
102
+ return _createClass(Template, null, [{
103
+ key: "initialize",
104
+ value: function initialize(obj, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions) {
105
+ obj['add_data_request_submission_id_footers'] = addDataRequestSubmissionIdFooters;
106
+ obj['allow_additional_properties'] = allowAdditionalProperties;
107
+ obj['description'] = description;
108
+ obj['document_filename'] = documentFilename;
109
+ obj['document_md5'] = documentMd5;
110
+ obj['document_parse_error'] = documentParseError;
111
+ obj['document_processed'] = documentProcessed;
112
+ obj['document_state'] = documentState;
113
+ obj['document_url'] = documentUrl;
114
+ obj['editable_submissions'] = editableSubmissions;
115
+ obj['embed_domains'] = embedDomains;
116
+ obj['encrypt_pdfs_password'] = encryptPdfsPassword;
117
+ obj['encrypt_pdfs'] = encryptPdfs;
118
+ obj['expiration_interval'] = expirationInterval;
119
+ obj['expire_after'] = expireAfter;
120
+ obj['expire_submissions'] = expireSubmissions;
121
+ obj['external_predefined_fields_template_id'] = externalPredefinedFieldsTemplateId;
122
+ obj['external_predefined_fields_template_name'] = externalPredefinedFieldsTemplateName;
123
+ obj['first_template'] = firstTemplate;
124
+ obj['id'] = id;
125
+ obj['locked'] = locked;
126
+ obj['merge_audit_trail_pdf'] = mergeAuditTrailPdf;
127
+ obj['name'] = name;
128
+ obj['page_count'] = pageCount;
129
+ obj['page_dimensions'] = pageDimensions;
130
+ obj['parent_folder_id'] = parentFolderId;
131
+ obj['path'] = path;
132
+ obj['permanent_document_url'] = permanentDocumentUrl;
133
+ obj['public_submissions'] = publicSubmissions;
134
+ obj['public_web_form'] = publicWebForm;
135
+ obj['redirect_url'] = redirectUrl;
136
+ obj['slack_webhook_url'] = slackWebhookUrl;
137
+ obj['template_type'] = templateType;
138
+ obj['updated_at'] = updatedAt;
139
+ obj['version_published_at'] = versionPublishedAt;
140
+ obj['version'] = version;
141
+ obj['webhook_url'] = webhookUrl;
142
+ obj['demo'] = demo;
143
+ obj['latest_version'] = latestVersion;
144
+ obj['last_changed_at'] = lastChangedAt;
145
+ obj['last_changed_by_type'] = lastChangedByType;
146
+ obj['last_changed_by_id'] = lastChangedById;
147
+ obj['defaults'] = defaults;
148
+ obj['field_order'] = fieldOrder;
149
+ obj['fields'] = fields;
150
+ obj['footer_html'] = footerHtml;
151
+ obj['header_html'] = headerHtml;
152
+ obj['html_engine_options'] = htmlEngineOptions;
153
+ obj['html'] = html;
154
+ obj['predefined_fields'] = predefinedFields;
155
+ obj['scss'] = scss;
156
+ obj['shared_field_data'] = sharedFieldData;
157
+ obj['versions'] = versions;
158
+ }
159
+
160
+ /**
161
+ * Constructs a <code>Template</code> from a plain JavaScript object, optionally creating a new instance.
162
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
163
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
164
+ * @param {module:model/Template} obj Optional instance to populate.
165
+ * @return {module:model/Template} The populated <code>Template</code> instance.
166
+ */
167
+ }, {
168
+ key: "constructFromObject",
169
+ value: function constructFromObject(data, obj) {
170
+ if (data) {
171
+ obj = obj || new Template();
172
+ if (data.hasOwnProperty('add_data_request_submission_id_footers')) {
173
+ obj['add_data_request_submission_id_footers'] = _ApiClient["default"].convertToType(data['add_data_request_submission_id_footers'], 'Boolean');
174
+ }
175
+ if (data.hasOwnProperty('allow_additional_properties')) {
176
+ obj['allow_additional_properties'] = _ApiClient["default"].convertToType(data['allow_additional_properties'], 'Boolean');
177
+ }
178
+ if (data.hasOwnProperty('description')) {
179
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
180
+ }
181
+ if (data.hasOwnProperty('document_filename')) {
182
+ obj['document_filename'] = _ApiClient["default"].convertToType(data['document_filename'], 'String');
183
+ }
184
+ if (data.hasOwnProperty('document_md5')) {
185
+ obj['document_md5'] = _ApiClient["default"].convertToType(data['document_md5'], 'String');
186
+ }
187
+ if (data.hasOwnProperty('document_parse_error')) {
188
+ obj['document_parse_error'] = _ApiClient["default"].convertToType(data['document_parse_error'], 'Boolean');
189
+ }
190
+ if (data.hasOwnProperty('document_processed')) {
191
+ obj['document_processed'] = _ApiClient["default"].convertToType(data['document_processed'], 'Boolean');
192
+ }
193
+ if (data.hasOwnProperty('document_state')) {
194
+ obj['document_state'] = _ApiClient["default"].convertToType(data['document_state'], 'String');
195
+ }
196
+ if (data.hasOwnProperty('document_url')) {
197
+ obj['document_url'] = _ApiClient["default"].convertToType(data['document_url'], 'String');
198
+ }
199
+ if (data.hasOwnProperty('editable_submissions')) {
200
+ obj['editable_submissions'] = _ApiClient["default"].convertToType(data['editable_submissions'], 'Boolean');
201
+ }
202
+ if (data.hasOwnProperty('embed_domains')) {
203
+ obj['embed_domains'] = _ApiClient["default"].convertToType(data['embed_domains'], 'String');
204
+ }
205
+ if (data.hasOwnProperty('encrypt_pdfs_password')) {
206
+ obj['encrypt_pdfs_password'] = _ApiClient["default"].convertToType(data['encrypt_pdfs_password'], 'String');
207
+ }
208
+ if (data.hasOwnProperty('encrypt_pdfs')) {
209
+ obj['encrypt_pdfs'] = _ApiClient["default"].convertToType(data['encrypt_pdfs'], 'Boolean');
210
+ }
211
+ if (data.hasOwnProperty('expiration_interval')) {
212
+ obj['expiration_interval'] = _ApiClient["default"].convertToType(data['expiration_interval'], 'String');
213
+ }
214
+ if (data.hasOwnProperty('expire_after')) {
215
+ obj['expire_after'] = _ApiClient["default"].convertToType(data['expire_after'], 'Number');
216
+ }
217
+ if (data.hasOwnProperty('expire_submissions')) {
218
+ obj['expire_submissions'] = _ApiClient["default"].convertToType(data['expire_submissions'], 'Boolean');
219
+ }
220
+ if (data.hasOwnProperty('external_predefined_fields_template_id')) {
221
+ obj['external_predefined_fields_template_id'] = _ApiClient["default"].convertToType(data['external_predefined_fields_template_id'], 'String');
222
+ }
223
+ if (data.hasOwnProperty('external_predefined_fields_template_name')) {
224
+ obj['external_predefined_fields_template_name'] = _ApiClient["default"].convertToType(data['external_predefined_fields_template_name'], 'String');
225
+ }
226
+ if (data.hasOwnProperty('first_template')) {
227
+ obj['first_template'] = _ApiClient["default"].convertToType(data['first_template'], 'Boolean');
228
+ }
229
+ if (data.hasOwnProperty('id')) {
230
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
231
+ }
232
+ if (data.hasOwnProperty('locked')) {
233
+ obj['locked'] = _ApiClient["default"].convertToType(data['locked'], 'Boolean');
234
+ }
235
+ if (data.hasOwnProperty('merge_audit_trail_pdf')) {
236
+ obj['merge_audit_trail_pdf'] = _ApiClient["default"].convertToType(data['merge_audit_trail_pdf'], 'Boolean');
237
+ }
238
+ if (data.hasOwnProperty('name')) {
239
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
240
+ }
241
+ if (data.hasOwnProperty('page_count')) {
242
+ obj['page_count'] = _ApiClient["default"].convertToType(data['page_count'], 'Number');
243
+ }
244
+ if (data.hasOwnProperty('page_dimensions')) {
245
+ obj['page_dimensions'] = _ApiClient["default"].convertToType(data['page_dimensions'], [['Number']]);
246
+ }
247
+ if (data.hasOwnProperty('parent_folder_id')) {
248
+ obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
249
+ }
250
+ if (data.hasOwnProperty('path')) {
251
+ obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
252
+ }
253
+ if (data.hasOwnProperty('permanent_document_url')) {
254
+ obj['permanent_document_url'] = _ApiClient["default"].convertToType(data['permanent_document_url'], 'String');
255
+ }
256
+ if (data.hasOwnProperty('public_submissions')) {
257
+ obj['public_submissions'] = _ApiClient["default"].convertToType(data['public_submissions'], 'Boolean');
258
+ }
259
+ if (data.hasOwnProperty('public_web_form')) {
260
+ obj['public_web_form'] = _ApiClient["default"].convertToType(data['public_web_form'], 'Boolean');
261
+ }
262
+ if (data.hasOwnProperty('redirect_url')) {
263
+ obj['redirect_url'] = _ApiClient["default"].convertToType(data['redirect_url'], 'String');
264
+ }
265
+ if (data.hasOwnProperty('slack_webhook_url')) {
266
+ obj['slack_webhook_url'] = _ApiClient["default"].convertToType(data['slack_webhook_url'], 'String');
267
+ }
268
+ if (data.hasOwnProperty('template_type')) {
269
+ obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'], 'String');
270
+ }
271
+ if (data.hasOwnProperty('updated_at')) {
272
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'String');
273
+ }
274
+ if (data.hasOwnProperty('version_published_at')) {
275
+ obj['version_published_at'] = _ApiClient["default"].convertToType(data['version_published_at'], 'String');
276
+ }
277
+ if (data.hasOwnProperty('version')) {
278
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
279
+ }
280
+ if (data.hasOwnProperty('webhook_url')) {
281
+ obj['webhook_url'] = _ApiClient["default"].convertToType(data['webhook_url'], 'String');
282
+ }
283
+ if (data.hasOwnProperty('demo')) {
284
+ obj['demo'] = _ApiClient["default"].convertToType(data['demo'], 'Boolean');
285
+ }
286
+ if (data.hasOwnProperty('latest_version')) {
287
+ obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'String');
288
+ }
289
+ if (data.hasOwnProperty('last_changed_at')) {
290
+ obj['last_changed_at'] = _ApiClient["default"].convertToType(data['last_changed_at'], 'String');
291
+ }
292
+ if (data.hasOwnProperty('last_changed_by_type')) {
293
+ obj['last_changed_by_type'] = _ApiClient["default"].convertToType(data['last_changed_by_type'], 'String');
294
+ }
295
+ if (data.hasOwnProperty('last_changed_by_id')) {
296
+ obj['last_changed_by_id'] = _ApiClient["default"].convertToType(data['last_changed_by_id'], 'String');
297
+ }
298
+ if (data.hasOwnProperty('defaults')) {
299
+ obj['defaults'] = _ApiClient["default"].convertToType(data['defaults'], Object);
300
+ }
301
+ if (data.hasOwnProperty('field_order')) {
302
+ obj['field_order'] = _ApiClient["default"].convertToType(data['field_order'], [['Number']]);
303
+ }
304
+ if (data.hasOwnProperty('fields')) {
305
+ obj['fields'] = _ApiClient["default"].convertToType(data['fields'], Object);
306
+ }
307
+ if (data.hasOwnProperty('footer_html')) {
308
+ obj['footer_html'] = _ApiClient["default"].convertToType(data['footer_html'], 'String');
309
+ }
310
+ if (data.hasOwnProperty('header_html')) {
311
+ obj['header_html'] = _ApiClient["default"].convertToType(data['header_html'], 'String');
312
+ }
313
+ if (data.hasOwnProperty('html_engine_options')) {
314
+ obj['html_engine_options'] = _ApiClient["default"].convertToType(data['html_engine_options'], Object);
315
+ }
316
+ if (data.hasOwnProperty('html')) {
317
+ obj['html'] = _ApiClient["default"].convertToType(data['html'], 'String');
318
+ }
319
+ if (data.hasOwnProperty('predefined_fields')) {
320
+ obj['predefined_fields'] = _ApiClient["default"].convertToType(data['predefined_fields'], [Object]);
321
+ }
322
+ if (data.hasOwnProperty('scss')) {
323
+ obj['scss'] = _ApiClient["default"].convertToType(data['scss'], 'String');
324
+ }
325
+ if (data.hasOwnProperty('shared_field_data')) {
326
+ obj['shared_field_data'] = _ApiClient["default"].convertToType(data['shared_field_data'], Object);
327
+ }
328
+ if (data.hasOwnProperty('versions')) {
329
+ obj['versions'] = _ApiClient["default"].convertToType(data['versions'], [Object]);
330
+ }
331
+ }
332
+ return obj;
333
+ }
334
+
335
+ /**
336
+ * Validates the JSON data with respect to <code>Template</code>.
337
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
338
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Template</code>.
339
+ */
340
+ }, {
341
+ key: "validateJSON",
342
+ value: function validateJSON(data) {
343
+ // check to make sure all required properties are present in the JSON string
344
+ var _iterator = _createForOfIteratorHelper(Template.RequiredProperties),
345
+ _step;
346
+ try {
347
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
348
+ var property = _step.value;
349
+ if (!data.hasOwnProperty(property)) {
350
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
351
+ }
352
+ }
353
+ // ensure the json data is a string
354
+ } catch (err) {
355
+ _iterator.e(err);
356
+ } finally {
357
+ _iterator.f();
358
+ }
359
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
360
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
361
+ }
362
+ // ensure the json data is a string
363
+ if (data['document_filename'] && !(typeof data['document_filename'] === 'string' || data['document_filename'] instanceof String)) {
364
+ throw new Error("Expected the field `document_filename` to be a primitive type in the JSON string but got " + data['document_filename']);
365
+ }
366
+ // ensure the json data is a string
367
+ if (data['document_md5'] && !(typeof data['document_md5'] === 'string' || data['document_md5'] instanceof String)) {
368
+ throw new Error("Expected the field `document_md5` to be a primitive type in the JSON string but got " + data['document_md5']);
369
+ }
370
+ // ensure the json data is a string
371
+ if (data['document_state'] && !(typeof data['document_state'] === 'string' || data['document_state'] instanceof String)) {
372
+ throw new Error("Expected the field `document_state` to be a primitive type in the JSON string but got " + data['document_state']);
373
+ }
374
+ // ensure the json data is a string
375
+ if (data['document_url'] && !(typeof data['document_url'] === 'string' || data['document_url'] instanceof String)) {
376
+ throw new Error("Expected the field `document_url` to be a primitive type in the JSON string but got " + data['document_url']);
377
+ }
378
+ // ensure the json data is a string
379
+ if (data['embed_domains'] && !(typeof data['embed_domains'] === 'string' || data['embed_domains'] instanceof String)) {
380
+ throw new Error("Expected the field `embed_domains` to be a primitive type in the JSON string but got " + data['embed_domains']);
381
+ }
382
+ // ensure the json data is a string
383
+ if (data['encrypt_pdfs_password'] && !(typeof data['encrypt_pdfs_password'] === 'string' || data['encrypt_pdfs_password'] instanceof String)) {
384
+ throw new Error("Expected the field `encrypt_pdfs_password` to be a primitive type in the JSON string but got " + data['encrypt_pdfs_password']);
385
+ }
386
+ // ensure the json data is a string
387
+ if (data['expiration_interval'] && !(typeof data['expiration_interval'] === 'string' || data['expiration_interval'] instanceof String)) {
388
+ throw new Error("Expected the field `expiration_interval` to be a primitive type in the JSON string but got " + data['expiration_interval']);
389
+ }
390
+ // ensure the json data is a string
391
+ if (data['external_predefined_fields_template_id'] && !(typeof data['external_predefined_fields_template_id'] === 'string' || data['external_predefined_fields_template_id'] instanceof String)) {
392
+ throw new Error("Expected the field `external_predefined_fields_template_id` to be a primitive type in the JSON string but got " + data['external_predefined_fields_template_id']);
393
+ }
394
+ // ensure the json data is a string
395
+ if (data['external_predefined_fields_template_name'] && !(typeof data['external_predefined_fields_template_name'] === 'string' || data['external_predefined_fields_template_name'] instanceof String)) {
396
+ throw new Error("Expected the field `external_predefined_fields_template_name` to be a primitive type in the JSON string but got " + data['external_predefined_fields_template_name']);
397
+ }
398
+ // ensure the json data is a string
399
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
400
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
401
+ }
402
+ // ensure the json data is a string
403
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
404
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
405
+ }
406
+ // ensure the json data is an array
407
+ if (!Array.isArray(data['page_dimensions'])) {
408
+ throw new Error("Expected the field `page_dimensions` to be an array in the JSON data but got " + data['page_dimensions']);
409
+ }
410
+ // ensure the json data is a string
411
+ if (data['parent_folder_id'] && !(typeof data['parent_folder_id'] === 'string' || data['parent_folder_id'] instanceof String)) {
412
+ throw new Error("Expected the field `parent_folder_id` to be a primitive type in the JSON string but got " + data['parent_folder_id']);
413
+ }
414
+ // ensure the json data is a string
415
+ if (data['path'] && !(typeof data['path'] === 'string' || data['path'] instanceof String)) {
416
+ throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
417
+ }
418
+ // ensure the json data is a string
419
+ if (data['permanent_document_url'] && !(typeof data['permanent_document_url'] === 'string' || data['permanent_document_url'] instanceof String)) {
420
+ throw new Error("Expected the field `permanent_document_url` to be a primitive type in the JSON string but got " + data['permanent_document_url']);
421
+ }
422
+ // ensure the json data is a string
423
+ if (data['redirect_url'] && !(typeof data['redirect_url'] === 'string' || data['redirect_url'] instanceof String)) {
424
+ throw new Error("Expected the field `redirect_url` to be a primitive type in the JSON string but got " + data['redirect_url']);
425
+ }
426
+ // ensure the json data is a string
427
+ if (data['slack_webhook_url'] && !(typeof data['slack_webhook_url'] === 'string' || data['slack_webhook_url'] instanceof String)) {
428
+ throw new Error("Expected the field `slack_webhook_url` to be a primitive type in the JSON string but got " + data['slack_webhook_url']);
429
+ }
430
+ // ensure the json data is a string
431
+ if (data['template_type'] && !(typeof data['template_type'] === 'string' || data['template_type'] instanceof String)) {
432
+ throw new Error("Expected the field `template_type` to be a primitive type in the JSON string but got " + data['template_type']);
433
+ }
434
+ // ensure the json data is a string
435
+ if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) {
436
+ throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
437
+ }
438
+ // ensure the json data is a string
439
+ if (data['version_published_at'] && !(typeof data['version_published_at'] === 'string' || data['version_published_at'] instanceof String)) {
440
+ throw new Error("Expected the field `version_published_at` to be a primitive type in the JSON string but got " + data['version_published_at']);
441
+ }
442
+ // ensure the json data is a string
443
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
444
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
445
+ }
446
+ // ensure the json data is a string
447
+ if (data['webhook_url'] && !(typeof data['webhook_url'] === 'string' || data['webhook_url'] instanceof String)) {
448
+ throw new Error("Expected the field `webhook_url` to be a primitive type in the JSON string but got " + data['webhook_url']);
449
+ }
450
+ // ensure the json data is a string
451
+ if (data['latest_version'] && !(typeof data['latest_version'] === 'string' || data['latest_version'] instanceof String)) {
452
+ throw new Error("Expected the field `latest_version` to be a primitive type in the JSON string but got " + data['latest_version']);
453
+ }
454
+ // ensure the json data is a string
455
+ if (data['last_changed_at'] && !(typeof data['last_changed_at'] === 'string' || data['last_changed_at'] instanceof String)) {
456
+ throw new Error("Expected the field `last_changed_at` to be a primitive type in the JSON string but got " + data['last_changed_at']);
457
+ }
458
+ // ensure the json data is a string
459
+ if (data['last_changed_by_type'] && !(typeof data['last_changed_by_type'] === 'string' || data['last_changed_by_type'] instanceof String)) {
460
+ throw new Error("Expected the field `last_changed_by_type` to be a primitive type in the JSON string but got " + data['last_changed_by_type']);
461
+ }
462
+ // ensure the json data is a string
463
+ if (data['last_changed_by_id'] && !(typeof data['last_changed_by_id'] === 'string' || data['last_changed_by_id'] instanceof String)) {
464
+ throw new Error("Expected the field `last_changed_by_id` to be a primitive type in the JSON string but got " + data['last_changed_by_id']);
465
+ }
466
+ // ensure the json data is an array
467
+ if (!Array.isArray(data['field_order'])) {
468
+ throw new Error("Expected the field `field_order` to be an array in the JSON data but got " + data['field_order']);
469
+ }
470
+ // ensure the json data is a string
471
+ if (data['footer_html'] && !(typeof data['footer_html'] === 'string' || data['footer_html'] instanceof String)) {
472
+ throw new Error("Expected the field `footer_html` to be a primitive type in the JSON string but got " + data['footer_html']);
473
+ }
474
+ // ensure the json data is a string
475
+ if (data['header_html'] && !(typeof data['header_html'] === 'string' || data['header_html'] instanceof String)) {
476
+ throw new Error("Expected the field `header_html` to be a primitive type in the JSON string but got " + data['header_html']);
477
+ }
478
+ // ensure the json data is a string
479
+ if (data['html'] && !(typeof data['html'] === 'string' || data['html'] instanceof String)) {
480
+ throw new Error("Expected the field `html` to be a primitive type in the JSON string but got " + data['html']);
481
+ }
482
+ // ensure the json data is an array
483
+ if (!Array.isArray(data['predefined_fields'])) {
484
+ throw new Error("Expected the field `predefined_fields` to be an array in the JSON data but got " + data['predefined_fields']);
485
+ }
486
+ // ensure the json data is a string
487
+ if (data['scss'] && !(typeof data['scss'] === 'string' || data['scss'] instanceof String)) {
488
+ throw new Error("Expected the field `scss` to be a primitive type in the JSON string but got " + data['scss']);
489
+ }
490
+ // ensure the json data is an array
491
+ if (!Array.isArray(data['versions'])) {
492
+ throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
493
+ }
494
+ return true;
495
+ }
496
+ }]);
497
+ }();
498
+ Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "defaults", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "versions"];
499
+
500
+ /**
501
+ * @member {Boolean} add_data_request_submission_id_footers
502
+ */
503
+ Template.prototype['add_data_request_submission_id_footers'] = undefined;
504
+
505
+ /**
506
+ * @member {Boolean} allow_additional_properties
507
+ */
508
+ Template.prototype['allow_additional_properties'] = undefined;
509
+
510
+ /**
511
+ * @member {String} description
512
+ */
513
+ Template.prototype['description'] = undefined;
514
+
515
+ /**
516
+ * @member {String} document_filename
517
+ */
518
+ Template.prototype['document_filename'] = undefined;
519
+
520
+ /**
521
+ * @member {String} document_md5
522
+ */
523
+ Template.prototype['document_md5'] = undefined;
524
+
525
+ /**
526
+ * @member {Boolean} document_parse_error
527
+ */
528
+ Template.prototype['document_parse_error'] = undefined;
529
+
530
+ /**
531
+ * @member {Boolean} document_processed
532
+ */
533
+ Template.prototype['document_processed'] = undefined;
534
+
535
+ /**
536
+ * @member {module:model/Template.DocumentStateEnum} document_state
537
+ */
538
+ Template.prototype['document_state'] = undefined;
539
+
540
+ /**
541
+ * @member {String} document_url
542
+ */
543
+ Template.prototype['document_url'] = undefined;
544
+
545
+ /**
546
+ * @member {Boolean} editable_submissions
547
+ */
548
+ Template.prototype['editable_submissions'] = undefined;
549
+
550
+ /**
551
+ * @member {String} embed_domains
552
+ */
553
+ Template.prototype['embed_domains'] = undefined;
554
+
555
+ /**
556
+ * @member {String} encrypt_pdfs_password
557
+ */
558
+ Template.prototype['encrypt_pdfs_password'] = undefined;
559
+
560
+ /**
561
+ * @member {Boolean} encrypt_pdfs
562
+ */
563
+ Template.prototype['encrypt_pdfs'] = undefined;
564
+
565
+ /**
566
+ * @member {String} expiration_interval
567
+ */
568
+ Template.prototype['expiration_interval'] = undefined;
569
+
570
+ /**
571
+ * @member {Number} expire_after
572
+ */
573
+ Template.prototype['expire_after'] = undefined;
574
+
575
+ /**
576
+ * @member {Boolean} expire_submissions
577
+ */
578
+ Template.prototype['expire_submissions'] = undefined;
579
+
580
+ /**
581
+ * @member {String} external_predefined_fields_template_id
582
+ */
583
+ Template.prototype['external_predefined_fields_template_id'] = undefined;
584
+
585
+ /**
586
+ * @member {String} external_predefined_fields_template_name
587
+ */
588
+ Template.prototype['external_predefined_fields_template_name'] = undefined;
589
+
590
+ /**
591
+ * @member {Boolean} first_template
592
+ */
593
+ Template.prototype['first_template'] = undefined;
594
+
595
+ /**
596
+ * @member {String} id
597
+ */
598
+ Template.prototype['id'] = undefined;
599
+
600
+ /**
601
+ * @member {Boolean} locked
602
+ */
603
+ Template.prototype['locked'] = undefined;
604
+
605
+ /**
606
+ * @member {Boolean} merge_audit_trail_pdf
607
+ */
608
+ Template.prototype['merge_audit_trail_pdf'] = undefined;
609
+
610
+ /**
611
+ * @member {String} name
612
+ */
613
+ Template.prototype['name'] = undefined;
614
+
615
+ /**
616
+ * @member {Number} page_count
617
+ */
618
+ Template.prototype['page_count'] = undefined;
619
+
620
+ /**
621
+ * @member {Array.<Array.<Number>>} page_dimensions
622
+ */
623
+ Template.prototype['page_dimensions'] = undefined;
624
+
625
+ /**
626
+ * @member {String} parent_folder_id
627
+ */
628
+ Template.prototype['parent_folder_id'] = undefined;
629
+
630
+ /**
631
+ * @member {String} path
632
+ */
633
+ Template.prototype['path'] = undefined;
634
+
635
+ /**
636
+ * @member {String} permanent_document_url
637
+ */
638
+ Template.prototype['permanent_document_url'] = undefined;
639
+
640
+ /**
641
+ * @member {Boolean} public_submissions
642
+ */
643
+ Template.prototype['public_submissions'] = undefined;
644
+
645
+ /**
646
+ * @member {Boolean} public_web_form
647
+ */
648
+ Template.prototype['public_web_form'] = undefined;
649
+
650
+ /**
651
+ * @member {String} redirect_url
652
+ */
653
+ Template.prototype['redirect_url'] = undefined;
654
+
655
+ /**
656
+ * @member {String} slack_webhook_url
657
+ */
658
+ Template.prototype['slack_webhook_url'] = undefined;
659
+
660
+ /**
661
+ * @member {module:model/Template.TemplateTypeEnum} template_type
662
+ */
663
+ Template.prototype['template_type'] = undefined;
664
+
665
+ /**
666
+ * @member {String} updated_at
667
+ */
668
+ Template.prototype['updated_at'] = undefined;
669
+
670
+ /**
671
+ * @member {String} version_published_at
672
+ */
673
+ Template.prototype['version_published_at'] = undefined;
674
+
675
+ /**
676
+ * @member {String} version
677
+ */
678
+ Template.prototype['version'] = undefined;
679
+
680
+ /**
681
+ * @member {String} webhook_url
682
+ */
683
+ Template.prototype['webhook_url'] = undefined;
684
+
685
+ /**
686
+ * @member {Boolean} demo
687
+ */
688
+ Template.prototype['demo'] = undefined;
689
+
690
+ /**
691
+ * @member {String} latest_version
692
+ */
693
+ Template.prototype['latest_version'] = undefined;
694
+
695
+ /**
696
+ * @member {String} last_changed_at
697
+ */
698
+ Template.prototype['last_changed_at'] = undefined;
699
+
700
+ /**
701
+ * @member {module:model/Template.LastChangedByTypeEnum} last_changed_by_type
702
+ */
703
+ Template.prototype['last_changed_by_type'] = undefined;
704
+
705
+ /**
706
+ * @member {String} last_changed_by_id
707
+ */
708
+ Template.prototype['last_changed_by_id'] = undefined;
709
+
710
+ /**
711
+ * @member {Object} defaults
712
+ */
713
+ Template.prototype['defaults'] = undefined;
714
+
715
+ /**
716
+ * @member {Array.<Array.<Number>>} field_order
717
+ */
718
+ Template.prototype['field_order'] = undefined;
719
+
720
+ /**
721
+ * @member {Object} fields
722
+ */
723
+ Template.prototype['fields'] = undefined;
724
+
725
+ /**
726
+ * @member {String} footer_html
727
+ */
728
+ Template.prototype['footer_html'] = undefined;
729
+
730
+ /**
731
+ * @member {String} header_html
732
+ */
733
+ Template.prototype['header_html'] = undefined;
734
+
735
+ /**
736
+ * @member {Object} html_engine_options
737
+ */
738
+ Template.prototype['html_engine_options'] = undefined;
739
+
740
+ /**
741
+ * @member {String} html
742
+ */
743
+ Template.prototype['html'] = undefined;
744
+
745
+ /**
746
+ * @member {Array.<Object>} predefined_fields
747
+ */
748
+ Template.prototype['predefined_fields'] = undefined;
749
+
750
+ /**
751
+ * @member {String} scss
752
+ */
753
+ Template.prototype['scss'] = undefined;
754
+
755
+ /**
756
+ * @member {Object} shared_field_data
757
+ */
758
+ Template.prototype['shared_field_data'] = undefined;
759
+
760
+ /**
761
+ * @member {Array.<Object>} versions
762
+ */
763
+ Template.prototype['versions'] = undefined;
764
+
765
+ /**
766
+ * Allowed values for the <code>document_state</code> property.
767
+ * @enum {String}
768
+ * @readonly
769
+ */
770
+ Template['DocumentStateEnum'] = {
771
+ /**
772
+ * value: "pending"
773
+ * @const
774
+ */
775
+ "pending": "pending",
776
+ /**
777
+ * value: "processed"
778
+ * @const
779
+ */
780
+ "processed": "processed",
781
+ /**
782
+ * value: "password_required"
783
+ * @const
784
+ */
785
+ "password_required": "password_required",
786
+ /**
787
+ * value: "malformed_pdf"
788
+ * @const
789
+ */
790
+ "malformed_pdf": "malformed_pdf",
791
+ /**
792
+ * value: "unknown_error"
793
+ * @const
794
+ */
795
+ "unknown_error": "unknown_error"
796
+ };
797
+
798
+ /**
799
+ * Allowed values for the <code>template_type</code> property.
800
+ * @enum {String}
801
+ * @readonly
802
+ */
803
+ Template['TemplateTypeEnum'] = {
804
+ /**
805
+ * value: "pdf"
806
+ * @const
807
+ */
808
+ "pdf": "pdf",
809
+ /**
810
+ * value: "html"
811
+ * @const
812
+ */
813
+ "html": "html"
814
+ };
815
+
816
+ /**
817
+ * Allowed values for the <code>last_changed_by_type</code> property.
818
+ * @enum {String}
819
+ * @readonly
820
+ */
821
+ Template['LastChangedByTypeEnum'] = {
822
+ /**
823
+ * value: "user"
824
+ * @const
825
+ */
826
+ "user": "user",
827
+ /**
828
+ * value: "api"
829
+ * @const
830
+ */
831
+ "api": "api"
832
+ };
833
+ var _default = exports["default"] = Template;