docspring 3.3.0 → 4.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 (184) hide show
  1. package/AGENTS.md +79 -19
  2. package/README.md +74 -63
  3. package/dist/ApiClient.js +63 -28
  4. package/dist/RequestSchemas.js +3452 -0
  5. package/dist/RequestValidator.js +494 -0
  6. package/dist/api/Client.js +1769 -921
  7. package/dist/index.js +847 -154
  8. package/dist/model/AddTemplateFieldsRequest.js +132 -0
  9. package/dist/model/AiFieldNamingLanguage.js +64 -0
  10. package/dist/model/{CreateWebhookData.js → AuthenticationCheck.js} +32 -28
  11. package/dist/model/BarcodeSymbology.js +89 -0
  12. package/dist/model/CheckCharacter.js +74 -0
  13. package/dist/model/CombinedFieldType.js +59 -0
  14. package/dist/model/CombinedPdf.js +294 -0
  15. package/dist/model/{MoveFolderData.js → CombinedPdfFiles.js} +27 -27
  16. package/dist/model/CombinedPdfList.js +132 -0
  17. package/dist/model/{ForbiddenErrorResponse.js → CombinedPdfSource.js} +59 -73
  18. package/dist/model/CombinedPdfSourceInput.js +270 -0
  19. package/dist/model/CombinedPdfSourcePdf.js +130 -0
  20. package/dist/model/CombinedPdfSourceType.js +74 -0
  21. package/dist/model/CombinedPdfState.js +74 -0
  22. package/dist/model/{CopyTemplateOptions.js → CopyTemplateRequest.js} +26 -22
  23. package/dist/model/{CombinePdfsData.js → CreateCombinedPdfRequest.js} +69 -53
  24. package/dist/model/{CreateCustomFileData.js → CreateCustomFileFromUploadRequest.js} +25 -23
  25. package/dist/model/{CreateFolderData.js → CreateFolderRequest.js} +47 -28
  26. package/dist/model/{CreateCustomFileResponse.js → CreateSignatureRequestEventRequest.js} +49 -73
  27. package/dist/model/CreateSignatureRequestTokenRequest.js +88 -0
  28. package/dist/model/CreateSubmissionBatchRequest.js +192 -0
  29. package/dist/model/CreateSubmissionRequest.js +226 -0
  30. package/dist/model/CreateTemplateRequest.js +613 -0
  31. package/dist/model/CreateWebhookRequest.js +234 -0
  32. package/dist/model/CustomFile.js +67 -16
  33. package/dist/model/CustomFileList.js +132 -0
  34. package/dist/model/CustomFileSourcePdf.js +130 -0
  35. package/dist/model/ErrorCode.js +154 -0
  36. package/dist/model/{CreateSubmissionResponse.js → ErrorDetail.js} +65 -75
  37. package/dist/model/ErrorInfo.js +211 -0
  38. package/dist/model/ErrorResponse.js +12 -41
  39. package/dist/model/ExpirationInterval.js +64 -0
  40. package/dist/model/Field.js +1230 -0
  41. package/dist/model/FieldComparisonCondition.js +137 -0
  42. package/dist/model/FieldComparisonOperator.js +69 -0
  43. package/dist/model/FieldDependency.js +154 -0
  44. package/dist/model/FieldDependencyInput.js +154 -0
  45. package/dist/model/FieldDisplayType.js +79 -0
  46. package/dist/model/{MultipleErrorsResponse.js → FieldEqualsCondition.js} +48 -52
  47. package/dist/model/FieldEqualsOperator.js +59 -0
  48. package/dist/model/FieldGroup.js +206 -0
  49. package/dist/model/FieldGroupInput.js +180 -0
  50. package/dist/model/FieldGroupType.js +59 -0
  51. package/dist/model/{SuccessMultipleErrorsResponse.js → FieldInCondition.js} +54 -53
  52. package/dist/model/FieldInput.js +1012 -0
  53. package/dist/model/FieldOverride.js +722 -0
  54. package/dist/model/FieldPresenceCondition.js +126 -0
  55. package/dist/model/FieldPresenceOperator.js +59 -0
  56. package/dist/model/FieldRangeCondition.js +148 -0
  57. package/dist/model/FieldReimportState.js +69 -0
  58. package/dist/model/FieldSetupLogic.js +59 -0
  59. package/dist/model/FieldSetupNaming.js +59 -0
  60. package/dist/model/FieldSetupSource.js +64 -0
  61. package/dist/model/FieldType.js +124 -0
  62. package/dist/model/Folder.js +38 -11
  63. package/dist/model/FolderList.js +132 -0
  64. package/dist/model/GenerateFilesFormat.js +54 -0
  65. package/dist/model/GenerateSubmissionFilesRequest.js +115 -0
  66. package/dist/model/GeneratedFile.js +214 -0
  67. package/dist/model/GeneratedFileState.js +64 -0
  68. package/dist/model/HtmlEngineOptions.js +230 -0
  69. package/dist/model/HtmlEngineOptionsInput.js +193 -0
  70. package/dist/model/ImageGravity.js +94 -0
  71. package/dist/model/ImageScaleType.js +64 -0
  72. package/dist/model/ModelCodeLanguage.js +94 -0
  73. package/dist/model/{UpdatePdfTemplate.js → MoveFolderRequest.js} +34 -28
  74. package/dist/model/{MoveTemplateData.js → MoveTemplateRequest.js} +25 -35
  75. package/dist/model/NumberConditionType.js +79 -0
  76. package/dist/model/OutputFormat.js +59 -0
  77. package/dist/model/PageFormat.js +114 -0
  78. package/dist/model/PageImage.js +220 -0
  79. package/dist/model/{TemplateDeleteResponse.js → PageImages.js} +57 -70
  80. package/dist/model/PredefinedField.js +183 -0
  81. package/dist/model/PredefinedFieldInput.js +183 -0
  82. package/dist/model/{PublishVersionData.js → PublishTemplateVersionRequest.js} +33 -33
  83. package/dist/model/{AddFieldsData.js → RemoveTemplateFieldsRequest.js} +32 -30
  84. package/dist/model/{RenameFolderData.js → RenameFolderRequest.js} +25 -23
  85. package/dist/model/ReorderTemplateFieldsRequest.js +114 -0
  86. package/dist/model/{RestoreVersionData.js → RestoreTemplateVersionRequest.js} +25 -23
  87. package/dist/model/ShapeType.js +79 -0
  88. package/dist/model/{SubmissionDataRequestShow.js → SignatureRequest.js} +165 -240
  89. package/dist/model/SignatureRequestAuthSecondFactorType.js +79 -0
  90. package/dist/model/SignatureRequestAuthType.js +84 -0
  91. package/dist/model/{SubmissionDataRequestEvent.js → SignatureRequestEvent.js} +67 -149
  92. package/dist/model/SignatureRequestEventType.js +79 -0
  93. package/dist/model/SignatureRequestInput.js +278 -0
  94. package/dist/model/SignatureRequestMessageType.js +94 -0
  95. package/dist/model/SignatureRequestState.js +64 -0
  96. package/dist/model/SignatureRequestToken.js +195 -0
  97. package/dist/model/SignatureRequestTokenType.js +59 -0
  98. package/dist/model/StringConditionType.js +74 -0
  99. package/dist/model/Submission.js +198 -341
  100. package/dist/model/SubmissionAction.js +30 -115
  101. package/dist/model/SubmissionActionState.js +69 -0
  102. package/dist/model/SubmissionActionType.js +84 -0
  103. package/dist/model/SubmissionBatch.js +74 -55
  104. package/dist/model/SubmissionBatchState.js +64 -0
  105. package/dist/model/SubmissionFiles.js +117 -0
  106. package/dist/model/SubmissionInput.js +218 -0
  107. package/dist/model/{ListSubmissionsResponse.js → SubmissionList.js} +35 -42
  108. package/dist/model/SubmissionSource.js +69 -0
  109. package/dist/model/SubmissionSourcePdf.js +130 -0
  110. package/dist/model/SubmissionState.js +114 -0
  111. package/dist/model/{SubmissionBatchData.js → SubmissionValidation.js} +46 -48
  112. package/dist/model/Template.js +359 -560
  113. package/dist/model/TemplateActor.js +171 -0
  114. package/dist/model/TemplateActorType.js +64 -0
  115. package/dist/model/TemplateDefaults.js +307 -0
  116. package/dist/model/TemplateDefaultsInput.js +305 -0
  117. package/dist/model/TemplateDiff.js +206 -0
  118. package/dist/model/TemplateDiffSummary.js +165 -0
  119. package/dist/model/TemplateDocument.js +280 -0
  120. package/dist/model/TemplateDocumentState.js +84 -0
  121. package/dist/model/TemplateFieldChange.js +146 -0
  122. package/dist/model/TemplateFieldChanges.js +196 -0
  123. package/dist/model/{CreatePdfSubmissionData.js → TemplateFieldDependency.js} +70 -89
  124. package/dist/model/TemplateFieldDependencyAction.js +64 -0
  125. package/dist/model/{TemplatePublishVersionResponse.js → TemplateFieldDependencyCondition.js} +51 -61
  126. package/dist/model/TemplateFieldDependencyConditionInput.js +304 -0
  127. package/dist/model/TemplateFieldDependencyInput.js +182 -0
  128. package/dist/model/TemplateFieldDependencyMatch.js +59 -0
  129. package/dist/model/TemplateFieldDependencyOperator.js +99 -0
  130. package/dist/model/TemplateFieldLogicStatus.js +74 -0
  131. package/dist/model/{CreatePdfTemplate.js → TemplateFieldMove.js} +52 -28
  132. package/dist/model/TemplateFields.js +147 -0
  133. package/dist/model/TemplateFormMode.js +64 -0
  134. package/dist/model/{TemplateModelCodeResponse.js → TemplateModelCode.js} +34 -86
  135. package/dist/model/TemplatePageAiError.js +69 -0
  136. package/dist/model/TemplatePageAiNamingStatus.js +59 -0
  137. package/dist/model/TemplatePageFieldsStatus.js +74 -0
  138. package/dist/model/TemplatePageImageStatus.js +59 -0
  139. package/dist/model/TemplatePageImages.js +158 -0
  140. package/dist/model/TemplatePageProcessingStatus.js +162 -0
  141. package/dist/model/{SubmissionDataRequestToken.js → TemplateSourcePdf.js} +52 -56
  142. package/dist/model/TemplateSummary.js +560 -0
  143. package/dist/model/{SuccessErrorResponse.js → TemplateSummaryList.js} +43 -55
  144. package/dist/model/TemplateType.js +59 -0
  145. package/dist/model/{Submission422Response.js → TemplateVersion.js} +60 -63
  146. package/dist/model/TemplateVersionType.js +64 -0
  147. package/dist/model/TextAlignment.js +69 -0
  148. package/dist/model/TextOverflow.js +59 -0
  149. package/dist/model/TextVerticalAlignment.js +64 -0
  150. package/dist/model/Typeface.js +134 -0
  151. package/dist/model/UpdateSignatureRequestRequest.js +183 -0
  152. package/dist/model/UpdateTemplateDocumentRequest.js +139 -0
  153. package/dist/model/UpdateTemplateFieldsRequest.js +132 -0
  154. package/dist/model/UpdateTemplateRequest.js +523 -0
  155. package/dist/model/UpdateWebhookRequest.js +209 -0
  156. package/dist/model/UploadMethod.js +54 -0
  157. package/dist/model/{UploadPresignResponse.js → UploadPresign.js} +53 -58
  158. package/dist/model/UrlSourcePdf.js +130 -0
  159. package/dist/model/ValidateSubmissionRequest.js +226 -0
  160. package/dist/model/Webhook.js +58 -73
  161. package/dist/model/WebhookEventType.js +174 -0
  162. package/dist/model/WebhookList.js +132 -0
  163. package/dist/model/WebhookMode.js +59 -0
  164. package/package.json +1 -1
  165. package/dist/model/BatchGeneratePdfs201Response.js +0 -194
  166. package/dist/model/CombinedSubmission.js +0 -313
  167. package/dist/model/CombinedSubmissionAction.js +0 -268
  168. package/dist/model/CreateCombinedSubmissionResponse.js +0 -180
  169. package/dist/model/CreateHtmlTemplate.js +0 -108
  170. package/dist/model/CreateSubmissionDataRequestData.js +0 -314
  171. package/dist/model/CreateSubmissionDataRequestEventRequest.js +0 -239
  172. package/dist/model/CreateSubmissionDataRequestEventResponse.js +0 -167
  173. package/dist/model/CreateSubmissionDataRequestResponse.js +0 -167
  174. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +0 -167
  175. package/dist/model/ErrorOrMultipleErrorsResponse.js +0 -153
  176. package/dist/model/JsonSchema.js +0 -205
  177. package/dist/model/SubmissionBatchWithSubmissions.js +0 -228
  178. package/dist/model/SubmissionDataRequest.js +0 -496
  179. package/dist/model/SubmissionPreview.js +0 -509
  180. package/dist/model/TemplateAddFieldsResponse.js +0 -156
  181. package/dist/model/TemplatePreview.js +0 -796
  182. package/dist/model/UpdateHtmlTemplate.js +0 -108
  183. package/dist/model/UpdateSubmissionDataRequestData.js +0 -311
  184. package/dist/model/UpdateWebhookData.js +0 -108
@@ -0,0 +1,1012 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _BarcodeSymbology = _interopRequireDefault(require("./BarcodeSymbology"));
9
+ var _CheckCharacter = _interopRequireDefault(require("./CheckCharacter"));
10
+ var _CombinedFieldType = _interopRequireDefault(require("./CombinedFieldType"));
11
+ var _FieldDependencyInput = _interopRequireDefault(require("./FieldDependencyInput"));
12
+ var _FieldDisplayType = _interopRequireDefault(require("./FieldDisplayType"));
13
+ var _FieldType = _interopRequireDefault(require("./FieldType"));
14
+ var _ImageGravity = _interopRequireDefault(require("./ImageGravity"));
15
+ var _ImageScaleType = _interopRequireDefault(require("./ImageScaleType"));
16
+ var _NumberConditionType = _interopRequireDefault(require("./NumberConditionType"));
17
+ var _ShapeType = _interopRequireDefault(require("./ShapeType"));
18
+ var _StringConditionType = _interopRequireDefault(require("./StringConditionType"));
19
+ var _TextAlignment = _interopRequireDefault(require("./TextAlignment"));
20
+ var _TextOverflow = _interopRequireDefault(require("./TextOverflow"));
21
+ var _TextVerticalAlignment = _interopRequireDefault(require("./TextVerticalAlignment"));
22
+ var _Typeface = _interopRequireDefault(require("./Typeface"));
23
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
24
+ 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); }
25
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
+ 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); } }
27
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
28
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
30
+ * DocSpring API
31
+ * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
32
+ *
33
+ * The version of the OpenAPI document: v2
34
+ *
35
+ *
36
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
37
+ * https://openapi-generator.tech
38
+ * Do not edit the class manually.
39
+ *
40
+ */
41
+ /**
42
+ * The FieldInput model module.
43
+ * @module model/FieldInput
44
+ * @version 4.1.0
45
+ */
46
+ var FieldInput = /*#__PURE__*/function () {
47
+ /**
48
+ * Constructs a new <code>FieldInput</code>.
49
+ * A field of a template: the name of a value in submission data, and how and where it prints. Fields with the same `name` share one value and the settings the descriptions say are shared. A PDF template's fields are placed on its pages: `x`, `y`, `width` and `height` are in units where every page is 2480 wide, measured from the top-left corner of the field's `page`. To convert from PDF points, multiply by 2480 and divide by the page's width in points (`document.page_dimensions` on the template). An HTML template's fields are all on page 1, and their placement and style settings aren't used.
50
+ * @alias module:model/FieldInput
51
+ */
52
+ function FieldInput() {
53
+ _classCallCheck(this, FieldInput);
54
+ FieldInput.initialize(this);
55
+ }
56
+
57
+ /**
58
+ * Initializes the fields of this object.
59
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
60
+ * Only for internal use.
61
+ */
62
+ return _createClass(FieldInput, null, [{
63
+ key: "initialize",
64
+ value: function initialize(obj) {}
65
+
66
+ /**
67
+ * Constructs a <code>FieldInput</code> from a plain JavaScript object, optionally creating a new instance.
68
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
69
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
70
+ * @param {module:model/FieldInput} obj Optional instance to populate.
71
+ * @return {module:model/FieldInput} The populated <code>FieldInput</code> instance.
72
+ */
73
+ }, {
74
+ key: "constructFromObject",
75
+ value: function constructFromObject(data, obj) {
76
+ if (data) {
77
+ obj = obj || new FieldInput();
78
+ if (data.hasOwnProperty('name')) {
79
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('page')) {
82
+ obj['page'] = _ApiClient["default"].convertToType(data['page'], 'Number');
83
+ }
84
+ if (data.hasOwnProperty('type')) {
85
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], _FieldType["default"]);
86
+ }
87
+ if (data.hasOwnProperty('static')) {
88
+ obj['static'] = _ApiClient["default"].convertToType(data['static'], 'Boolean');
89
+ }
90
+ if (data.hasOwnProperty('editable')) {
91
+ obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
92
+ }
93
+ if (data.hasOwnProperty('default')) {
94
+ obj['default'] = _ApiClient["default"].convertToType(data['default'], 'String');
95
+ }
96
+ if (data.hasOwnProperty('title')) {
97
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
98
+ }
99
+ if (data.hasOwnProperty('description')) {
100
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
101
+ }
102
+ if (data.hasOwnProperty('placeholder')) {
103
+ obj['placeholder'] = _ApiClient["default"].convertToType(data['placeholder'], 'String');
104
+ }
105
+ if (data.hasOwnProperty('metadata')) {
106
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String');
107
+ }
108
+ if (data.hasOwnProperty('required')) {
109
+ obj['required'] = _ApiClient["default"].convertToType(data['required'], 'Boolean');
110
+ }
111
+ if (data.hasOwnProperty('option_list')) {
112
+ obj['option_list'] = _ApiClient["default"].convertToType(data['option_list'], 'String');
113
+ }
114
+ if (data.hasOwnProperty('combined_field_names')) {
115
+ obj['combined_field_names'] = _ApiClient["default"].convertToType(data['combined_field_names'], 'String');
116
+ }
117
+ if (data.hasOwnProperty('combined_field_type')) {
118
+ obj['combined_field_type'] = _ApiClient["default"].convertToType(data['combined_field_type'], _CombinedFieldType["default"]);
119
+ }
120
+ if (data.hasOwnProperty('combined_field_separator')) {
121
+ obj['combined_field_separator'] = _ApiClient["default"].convertToType(data['combined_field_separator'], 'String');
122
+ }
123
+ if (data.hasOwnProperty('combined_field_format')) {
124
+ obj['combined_field_format'] = _ApiClient["default"].convertToType(data['combined_field_format'], 'String');
125
+ }
126
+ if (data.hasOwnProperty('integer')) {
127
+ obj['integer'] = _ApiClient["default"].convertToType(data['integer'], 'Boolean');
128
+ }
129
+ if (data.hasOwnProperty('minimum')) {
130
+ obj['minimum'] = _ApiClient["default"].convertToType(data['minimum'], 'Number');
131
+ }
132
+ if (data.hasOwnProperty('maximum')) {
133
+ obj['maximum'] = _ApiClient["default"].convertToType(data['maximum'], 'Number');
134
+ }
135
+ if (data.hasOwnProperty('exclusive_minimum')) {
136
+ obj['exclusive_minimum'] = _ApiClient["default"].convertToType(data['exclusive_minimum'], 'Boolean');
137
+ }
138
+ if (data.hasOwnProperty('exclusive_maximum')) {
139
+ obj['exclusive_maximum'] = _ApiClient["default"].convertToType(data['exclusive_maximum'], 'Boolean');
140
+ }
141
+ if (data.hasOwnProperty('include_time')) {
142
+ obj['include_time'] = _ApiClient["default"].convertToType(data['include_time'], 'Boolean');
143
+ }
144
+ if (data.hasOwnProperty('signature_allow_draw')) {
145
+ obj['signature_allow_draw'] = _ApiClient["default"].convertToType(data['signature_allow_draw'], 'Boolean');
146
+ }
147
+ if (data.hasOwnProperty('signature_allow_type')) {
148
+ obj['signature_allow_type'] = _ApiClient["default"].convertToType(data['signature_allow_type'], 'Boolean');
149
+ }
150
+ if (data.hasOwnProperty('barcode_symbology')) {
151
+ obj['barcode_symbology'] = _ApiClient["default"].convertToType(data['barcode_symbology'], _BarcodeSymbology["default"]);
152
+ }
153
+ if (data.hasOwnProperty('hidden')) {
154
+ obj['hidden'] = _ApiClient["default"].convertToType(data['hidden'], 'Boolean');
155
+ }
156
+ if (data.hasOwnProperty('x')) {
157
+ obj['x'] = _ApiClient["default"].convertToType(data['x'], 'Number');
158
+ }
159
+ if (data.hasOwnProperty('y')) {
160
+ obj['y'] = _ApiClient["default"].convertToType(data['y'], 'Number');
161
+ }
162
+ if (data.hasOwnProperty('width')) {
163
+ obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number');
164
+ }
165
+ if (data.hasOwnProperty('height')) {
166
+ obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number');
167
+ }
168
+ if (data.hasOwnProperty('rotation')) {
169
+ obj['rotation'] = _ApiClient["default"].convertToType(data['rotation'], 'Number');
170
+ }
171
+ if (data.hasOwnProperty('display_type')) {
172
+ obj['display_type'] = _ApiClient["default"].convertToType(data['display_type'], _FieldDisplayType["default"]);
173
+ }
174
+ if (data.hasOwnProperty('opacity')) {
175
+ obj['opacity'] = _ApiClient["default"].convertToType(data['opacity'], 'Number');
176
+ }
177
+ if (data.hasOwnProperty('date_time_format')) {
178
+ obj['date_time_format'] = _ApiClient["default"].convertToType(data['date_time_format'], 'String');
179
+ }
180
+ if (data.hasOwnProperty('typeface')) {
181
+ obj['typeface'] = _ApiClient["default"].convertToType(data['typeface'], _Typeface["default"]);
182
+ }
183
+ if (data.hasOwnProperty('font_size')) {
184
+ obj['font_size'] = _ApiClient["default"].convertToType(data['font_size'], 'Number');
185
+ }
186
+ if (data.hasOwnProperty('character_spacing')) {
187
+ obj['character_spacing'] = _ApiClient["default"].convertToType(data['character_spacing'], 'Number');
188
+ }
189
+ if (data.hasOwnProperty('bold')) {
190
+ obj['bold'] = _ApiClient["default"].convertToType(data['bold'], 'Boolean');
191
+ }
192
+ if (data.hasOwnProperty('uppercase')) {
193
+ obj['uppercase'] = _ApiClient["default"].convertToType(data['uppercase'], 'Boolean');
194
+ }
195
+ if (data.hasOwnProperty('strikethrough')) {
196
+ obj['strikethrough'] = _ApiClient["default"].convertToType(data['strikethrough'], 'Boolean');
197
+ }
198
+ if (data.hasOwnProperty('keep_leading_spaces')) {
199
+ obj['keep_leading_spaces'] = _ApiClient["default"].convertToType(data['keep_leading_spaces'], 'Boolean');
200
+ }
201
+ if (data.hasOwnProperty('overflow')) {
202
+ obj['overflow'] = _ApiClient["default"].convertToType(data['overflow'], _TextOverflow["default"]);
203
+ }
204
+ if (data.hasOwnProperty('multiline')) {
205
+ obj['multiline'] = _ApiClient["default"].convertToType(data['multiline'], 'Boolean');
206
+ }
207
+ if (data.hasOwnProperty('multiline_lines')) {
208
+ obj['multiline_lines'] = _ApiClient["default"].convertToType(data['multiline_lines'], 'Number');
209
+ }
210
+ if (data.hasOwnProperty('min_length')) {
211
+ obj['min_length'] = _ApiClient["default"].convertToType(data['min_length'], 'Number');
212
+ }
213
+ if (data.hasOwnProperty('max_length')) {
214
+ obj['max_length'] = _ApiClient["default"].convertToType(data['max_length'], 'Number');
215
+ }
216
+ if (data.hasOwnProperty('auto_calculate_max_length')) {
217
+ obj['auto_calculate_max_length'] = _ApiClient["default"].convertToType(data['auto_calculate_max_length'], 'Boolean');
218
+ }
219
+ if (data.hasOwnProperty('color')) {
220
+ obj['color'] = _ApiClient["default"].convertToType(data['color'], 'String');
221
+ }
222
+ if (data.hasOwnProperty('color_field_name')) {
223
+ obj['color_field_name'] = _ApiClient["default"].convertToType(data['color_field_name'], 'String');
224
+ }
225
+ if (data.hasOwnProperty('color_field_required')) {
226
+ obj['color_field_required'] = _ApiClient["default"].convertToType(data['color_field_required'], 'Boolean');
227
+ }
228
+ if (data.hasOwnProperty('background_color')) {
229
+ obj['background_color'] = _ApiClient["default"].convertToType(data['background_color'], 'String');
230
+ }
231
+ if (data.hasOwnProperty('background_color_field_name')) {
232
+ obj['background_color_field_name'] = _ApiClient["default"].convertToType(data['background_color_field_name'], 'String');
233
+ }
234
+ if (data.hasOwnProperty('background_color_field_required')) {
235
+ obj['background_color_field_required'] = _ApiClient["default"].convertToType(data['background_color_field_required'], 'Boolean');
236
+ }
237
+ if (data.hasOwnProperty('alignment')) {
238
+ obj['alignment'] = _ApiClient["default"].convertToType(data['alignment'], _TextAlignment["default"]);
239
+ }
240
+ if (data.hasOwnProperty('v_alignment')) {
241
+ obj['v_alignment'] = _ApiClient["default"].convertToType(data['v_alignment'], _TextVerticalAlignment["default"]);
242
+ }
243
+ if (data.hasOwnProperty('comb')) {
244
+ obj['comb'] = _ApiClient["default"].convertToType(data['comb'], 'Boolean');
245
+ }
246
+ if (data.hasOwnProperty('comb_number_of_cells')) {
247
+ obj['comb_number_of_cells'] = _ApiClient["default"].convertToType(data['comb_number_of_cells'], 'Number');
248
+ }
249
+ if (data.hasOwnProperty('comb_value_offset')) {
250
+ obj['comb_value_offset'] = _ApiClient["default"].convertToType(data['comb_value_offset'], 'Number');
251
+ }
252
+ if (data.hasOwnProperty('shape_type')) {
253
+ obj['shape_type'] = _ApiClient["default"].convertToType(data['shape_type'], _ShapeType["default"]);
254
+ }
255
+ if (data.hasOwnProperty('shape_sides')) {
256
+ obj['shape_sides'] = _ApiClient["default"].convertToType(data['shape_sides'], 'Number');
257
+ }
258
+ if (data.hasOwnProperty('shape_border_width')) {
259
+ obj['shape_border_width'] = _ApiClient["default"].convertToType(data['shape_border_width'], 'Number');
260
+ }
261
+ if (data.hasOwnProperty('shape_border_color')) {
262
+ obj['shape_border_color'] = _ApiClient["default"].convertToType(data['shape_border_color'], 'String');
263
+ }
264
+ if (data.hasOwnProperty('shape_border_color_field_name')) {
265
+ obj['shape_border_color_field_name'] = _ApiClient["default"].convertToType(data['shape_border_color_field_name'], 'String');
266
+ }
267
+ if (data.hasOwnProperty('shape_border_color_field_required')) {
268
+ obj['shape_border_color_field_required'] = _ApiClient["default"].convertToType(data['shape_border_color_field_required'], 'Boolean');
269
+ }
270
+ if (data.hasOwnProperty('shape_fill_color')) {
271
+ obj['shape_fill_color'] = _ApiClient["default"].convertToType(data['shape_fill_color'], 'String');
272
+ }
273
+ if (data.hasOwnProperty('shape_fill_color_field_name')) {
274
+ obj['shape_fill_color_field_name'] = _ApiClient["default"].convertToType(data['shape_fill_color_field_name'], 'String');
275
+ }
276
+ if (data.hasOwnProperty('shape_fill_color_field_required')) {
277
+ obj['shape_fill_color_field_required'] = _ApiClient["default"].convertToType(data['shape_fill_color_field_required'], 'Boolean');
278
+ }
279
+ if (data.hasOwnProperty('check_character')) {
280
+ obj['check_character'] = _ApiClient["default"].convertToType(data['check_character'], _CheckCharacter["default"]);
281
+ }
282
+ if (data.hasOwnProperty('check_color')) {
283
+ obj['check_color'] = _ApiClient["default"].convertToType(data['check_color'], 'String');
284
+ }
285
+ if (data.hasOwnProperty('check_color_field_name')) {
286
+ obj['check_color_field_name'] = _ApiClient["default"].convertToType(data['check_color_field_name'], 'String');
287
+ }
288
+ if (data.hasOwnProperty('check_color_field_required')) {
289
+ obj['check_color_field_required'] = _ApiClient["default"].convertToType(data['check_color_field_required'], 'Boolean');
290
+ }
291
+ if (data.hasOwnProperty('qrcode_color')) {
292
+ obj['qrcode_color'] = _ApiClient["default"].convertToType(data['qrcode_color'], 'String');
293
+ }
294
+ if (data.hasOwnProperty('qrcode_color_field_name')) {
295
+ obj['qrcode_color_field_name'] = _ApiClient["default"].convertToType(data['qrcode_color_field_name'], 'String');
296
+ }
297
+ if (data.hasOwnProperty('qrcode_color_field_required')) {
298
+ obj['qrcode_color_field_required'] = _ApiClient["default"].convertToType(data['qrcode_color_field_required'], 'Boolean');
299
+ }
300
+ if (data.hasOwnProperty('true_text')) {
301
+ obj['true_text'] = _ApiClient["default"].convertToType(data['true_text'], 'String');
302
+ }
303
+ if (data.hasOwnProperty('false_text')) {
304
+ obj['false_text'] = _ApiClient["default"].convertToType(data['false_text'], 'String');
305
+ }
306
+ if (data.hasOwnProperty('condition')) {
307
+ obj['condition'] = _ApiClient["default"].convertToType(data['condition'], 'String');
308
+ }
309
+ if (data.hasOwnProperty('string_condition_type')) {
310
+ obj['string_condition_type'] = _ApiClient["default"].convertToType(data['string_condition_type'], _StringConditionType["default"]);
311
+ }
312
+ if (data.hasOwnProperty('number_condition_type')) {
313
+ obj['number_condition_type'] = _ApiClient["default"].convertToType(data['number_condition_type'], _NumberConditionType["default"]);
314
+ }
315
+ if (data.hasOwnProperty('number_condition_range_min')) {
316
+ obj['number_condition_range_min'] = _ApiClient["default"].convertToType(data['number_condition_range_min'], 'Number');
317
+ }
318
+ if (data.hasOwnProperty('number_condition_range_max')) {
319
+ obj['number_condition_range_max'] = _ApiClient["default"].convertToType(data['number_condition_range_max'], 'Number');
320
+ }
321
+ if (data.hasOwnProperty('number_condition_range_exclusive_min')) {
322
+ obj['number_condition_range_exclusive_min'] = _ApiClient["default"].convertToType(data['number_condition_range_exclusive_min'], 'Boolean');
323
+ }
324
+ if (data.hasOwnProperty('number_condition_range_exclusive_max')) {
325
+ obj['number_condition_range_exclusive_max'] = _ApiClient["default"].convertToType(data['number_condition_range_exclusive_max'], 'Boolean');
326
+ }
327
+ if (data.hasOwnProperty('invert_boolean_condition')) {
328
+ obj['invert_boolean_condition'] = _ApiClient["default"].convertToType(data['invert_boolean_condition'], 'Boolean');
329
+ }
330
+ if (data.hasOwnProperty('currency')) {
331
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'Boolean');
332
+ }
333
+ if (data.hasOwnProperty('decimal_places')) {
334
+ obj['decimal_places'] = _ApiClient["default"].convertToType(data['decimal_places'], 'Number');
335
+ }
336
+ if (data.hasOwnProperty('image_scale_type')) {
337
+ obj['image_scale_type'] = _ApiClient["default"].convertToType(data['image_scale_type'], _ImageScaleType["default"]);
338
+ }
339
+ if (data.hasOwnProperty('image_gravity')) {
340
+ obj['image_gravity'] = _ApiClient["default"].convertToType(data['image_gravity'], _ImageGravity["default"]);
341
+ }
342
+ if (data.hasOwnProperty('dependencies')) {
343
+ obj['dependencies'] = _ApiClient["default"].convertToType(data['dependencies'], _FieldDependencyInput["default"]);
344
+ }
345
+ if (data.hasOwnProperty('id')) {
346
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
347
+ }
348
+ }
349
+ return obj;
350
+ }
351
+
352
+ /**
353
+ * Validates the JSON data with respect to <code>FieldInput</code>.
354
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
355
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>FieldInput</code>.
356
+ */
357
+ }, {
358
+ key: "validateJSON",
359
+ value: function validateJSON(data) {
360
+ // ensure the json data is a string
361
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
362
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
363
+ }
364
+ // ensure the json data is a string
365
+ if (data['default'] && !(typeof data['default'] === 'string' || data['default'] instanceof String)) {
366
+ throw new Error("Expected the field `default` to be a primitive type in the JSON string but got " + data['default']);
367
+ }
368
+ // ensure the json data is a string
369
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
370
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
371
+ }
372
+ // ensure the json data is a string
373
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
374
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
375
+ }
376
+ // ensure the json data is a string
377
+ if (data['placeholder'] && !(typeof data['placeholder'] === 'string' || data['placeholder'] instanceof String)) {
378
+ throw new Error("Expected the field `placeholder` to be a primitive type in the JSON string but got " + data['placeholder']);
379
+ }
380
+ // ensure the json data is a string
381
+ if (data['metadata'] && !(typeof data['metadata'] === 'string' || data['metadata'] instanceof String)) {
382
+ throw new Error("Expected the field `metadata` to be a primitive type in the JSON string but got " + data['metadata']);
383
+ }
384
+ // ensure the json data is a string
385
+ if (data['option_list'] && !(typeof data['option_list'] === 'string' || data['option_list'] instanceof String)) {
386
+ throw new Error("Expected the field `option_list` to be a primitive type in the JSON string but got " + data['option_list']);
387
+ }
388
+ // ensure the json data is a string
389
+ if (data['combined_field_names'] && !(typeof data['combined_field_names'] === 'string' || data['combined_field_names'] instanceof String)) {
390
+ throw new Error("Expected the field `combined_field_names` to be a primitive type in the JSON string but got " + data['combined_field_names']);
391
+ }
392
+ // ensure the json data is a string
393
+ if (data['combined_field_separator'] && !(typeof data['combined_field_separator'] === 'string' || data['combined_field_separator'] instanceof String)) {
394
+ throw new Error("Expected the field `combined_field_separator` to be a primitive type in the JSON string but got " + data['combined_field_separator']);
395
+ }
396
+ // ensure the json data is a string
397
+ if (data['combined_field_format'] && !(typeof data['combined_field_format'] === 'string' || data['combined_field_format'] instanceof String)) {
398
+ throw new Error("Expected the field `combined_field_format` to be a primitive type in the JSON string but got " + data['combined_field_format']);
399
+ }
400
+ // ensure the json data is a string
401
+ if (data['date_time_format'] && !(typeof data['date_time_format'] === 'string' || data['date_time_format'] instanceof String)) {
402
+ throw new Error("Expected the field `date_time_format` to be a primitive type in the JSON string but got " + data['date_time_format']);
403
+ }
404
+ // ensure the json data is a string
405
+ if (data['color'] && !(typeof data['color'] === 'string' || data['color'] instanceof String)) {
406
+ throw new Error("Expected the field `color` to be a primitive type in the JSON string but got " + data['color']);
407
+ }
408
+ // ensure the json data is a string
409
+ if (data['color_field_name'] && !(typeof data['color_field_name'] === 'string' || data['color_field_name'] instanceof String)) {
410
+ throw new Error("Expected the field `color_field_name` to be a primitive type in the JSON string but got " + data['color_field_name']);
411
+ }
412
+ // ensure the json data is a string
413
+ if (data['background_color'] && !(typeof data['background_color'] === 'string' || data['background_color'] instanceof String)) {
414
+ throw new Error("Expected the field `background_color` to be a primitive type in the JSON string but got " + data['background_color']);
415
+ }
416
+ // ensure the json data is a string
417
+ if (data['background_color_field_name'] && !(typeof data['background_color_field_name'] === 'string' || data['background_color_field_name'] instanceof String)) {
418
+ throw new Error("Expected the field `background_color_field_name` to be a primitive type in the JSON string but got " + data['background_color_field_name']);
419
+ }
420
+ // ensure the json data is a string
421
+ if (data['shape_border_color'] && !(typeof data['shape_border_color'] === 'string' || data['shape_border_color'] instanceof String)) {
422
+ throw new Error("Expected the field `shape_border_color` to be a primitive type in the JSON string but got " + data['shape_border_color']);
423
+ }
424
+ // ensure the json data is a string
425
+ if (data['shape_border_color_field_name'] && !(typeof data['shape_border_color_field_name'] === 'string' || data['shape_border_color_field_name'] instanceof String)) {
426
+ throw new Error("Expected the field `shape_border_color_field_name` to be a primitive type in the JSON string but got " + data['shape_border_color_field_name']);
427
+ }
428
+ // ensure the json data is a string
429
+ if (data['shape_fill_color'] && !(typeof data['shape_fill_color'] === 'string' || data['shape_fill_color'] instanceof String)) {
430
+ throw new Error("Expected the field `shape_fill_color` to be a primitive type in the JSON string but got " + data['shape_fill_color']);
431
+ }
432
+ // ensure the json data is a string
433
+ if (data['shape_fill_color_field_name'] && !(typeof data['shape_fill_color_field_name'] === 'string' || data['shape_fill_color_field_name'] instanceof String)) {
434
+ throw new Error("Expected the field `shape_fill_color_field_name` to be a primitive type in the JSON string but got " + data['shape_fill_color_field_name']);
435
+ }
436
+ // ensure the json data is a string
437
+ if (data['check_color'] && !(typeof data['check_color'] === 'string' || data['check_color'] instanceof String)) {
438
+ throw new Error("Expected the field `check_color` to be a primitive type in the JSON string but got " + data['check_color']);
439
+ }
440
+ // ensure the json data is a string
441
+ if (data['check_color_field_name'] && !(typeof data['check_color_field_name'] === 'string' || data['check_color_field_name'] instanceof String)) {
442
+ throw new Error("Expected the field `check_color_field_name` to be a primitive type in the JSON string but got " + data['check_color_field_name']);
443
+ }
444
+ // ensure the json data is a string
445
+ if (data['qrcode_color'] && !(typeof data['qrcode_color'] === 'string' || data['qrcode_color'] instanceof String)) {
446
+ throw new Error("Expected the field `qrcode_color` to be a primitive type in the JSON string but got " + data['qrcode_color']);
447
+ }
448
+ // ensure the json data is a string
449
+ if (data['qrcode_color_field_name'] && !(typeof data['qrcode_color_field_name'] === 'string' || data['qrcode_color_field_name'] instanceof String)) {
450
+ throw new Error("Expected the field `qrcode_color_field_name` to be a primitive type in the JSON string but got " + data['qrcode_color_field_name']);
451
+ }
452
+ // ensure the json data is a string
453
+ if (data['true_text'] && !(typeof data['true_text'] === 'string' || data['true_text'] instanceof String)) {
454
+ throw new Error("Expected the field `true_text` to be a primitive type in the JSON string but got " + data['true_text']);
455
+ }
456
+ // ensure the json data is a string
457
+ if (data['false_text'] && !(typeof data['false_text'] === 'string' || data['false_text'] instanceof String)) {
458
+ throw new Error("Expected the field `false_text` to be a primitive type in the JSON string but got " + data['false_text']);
459
+ }
460
+ // ensure the json data is a string
461
+ if (data['condition'] && !(typeof data['condition'] === 'string' || data['condition'] instanceof String)) {
462
+ throw new Error("Expected the field `condition` to be a primitive type in the JSON string but got " + data['condition']);
463
+ }
464
+ // validate the optional field `dependencies`
465
+ if (data['dependencies']) {
466
+ // data not null
467
+ _FieldDependencyInput["default"].validateJSON(data['dependencies']);
468
+ }
469
+ return true;
470
+ }
471
+ }]);
472
+ }();
473
+ /**
474
+ * The field's name, the key of its value in submission data. A `/` nests the key in objects and arrays (`client/address`, `items/0/price`); write a literal `/` as `~1` and `~` as `~0`. Fields with the same name share one value and their shared settings, and array indexes inside a name are ignored for settings, so `items/0/price` and `items/1/price` share settings but not values. A `#` and a line number (`notes#0`, `notes#1`) splits one value over several fields as lines of text, and names that start with `@@` print submission details such as `@@date`.
475
+ * @member {String} name
476
+ */
477
+ FieldInput.prototype['name'] = undefined;
478
+
479
+ /**
480
+ * The number of the page the field is on, starting at 1. A field added without one goes on page 1, and a field moved to another page without a new `y` keeps its place on the page.
481
+ * @member {Number} page
482
+ */
483
+ FieldInput.prototype['page'] = undefined;
484
+
485
+ /**
486
+ * The data type of the field's value: `string`, `number`, `boolean`, `date`, `address`, `country`, `email`, `url`, `image`, `signature`, `initials`, `barcode`, or `combined` (made from other fields' values, never sent in submission data). It sets how the value is validated and which `display_type`s the field can use. `object` and `array` are the types of field groups (the template's `field_groups`), not of fields. Shared by every field with the same `name`.
487
+ * @member {module:model/FieldType} type
488
+ */
489
+ FieldInput.prototype['type'] = undefined;
490
+
491
+ /**
492
+ * The field prints fixed content, its `default`, instead of a value from submission data, and it's left out of the template's data schema and forms. Static check marks and shapes always print unless `hidden`, and a static number field's `default` can be a formula. Shared by every field with the same `name`.
493
+ * @member {Boolean} static
494
+ */
495
+ FieldInput.prototype['static'] = undefined;
496
+
497
+ /**
498
+ * Text and check display only: prints the field as a fillable PDF form field instead of flat content (a text field with an `option_list` becomes a dropdown). A submission's `editable` option, when set, overrides this for every field. Shared by every field with the same `name`.
499
+ * @member {Boolean} editable
500
+ */
501
+ FieldInput.prototype['editable'] = undefined;
502
+
503
+ /**
504
+ * The value used when a submission leaves the field out, and the value forms are pre-filled with. A required field still needs a value in each submission. An image field's default is an image URL, a number field's can be a formula, and a static field's is the content it prints. Shared by every field with the same `name`.
505
+ * @member {String} default
506
+ */
507
+ FieldInput.prototype['default'] = undefined;
508
+
509
+ /**
510
+ * The field's title in the template's data schema and on forms. When it's empty, a title is made from the field's name. Shared by every field with the same `name`.
511
+ * @member {String} title
512
+ */
513
+ FieldInput.prototype['title'] = undefined;
514
+
515
+ /**
516
+ * Help text for the field, added to the template's data schema and shown on forms. Shared by every field with the same `name`.
517
+ * @member {String} description
518
+ */
519
+ FieldInput.prototype['description'] = undefined;
520
+
521
+ /**
522
+ * Placeholder text for the field's input on forms, added to the template's data schema as `x-placeholder`. Shared by every field with the same `name`.
523
+ * @member {String} placeholder
524
+ */
525
+ FieldInput.prototype['placeholder'] = undefined;
526
+
527
+ /**
528
+ * Text for your own use, added to the template's data schema as `x-metadata`. DocSpring doesn't use it. Shared by every field with the same `name`.
529
+ * @member {String} metadata
530
+ */
531
+ FieldInput.prototype['metadata'] = undefined;
532
+
533
+ /**
534
+ * Whether each submission must include a value for the field. A submission without one fails validation, and no PDF is generated. Shared by every field with the same `name`.
535
+ * @member {Boolean} required
536
+ */
537
+ FieldInput.prototype['required'] = undefined;
538
+
539
+ /**
540
+ * String fields only: a comma-separated list of the values the field accepts. It's added to the template's data schema as an `enum`, forms show it as a select list, and an `editable` field becomes a dropdown. Shared by every field with the same `name`.
541
+ * @member {String} option_list
542
+ */
543
+ FieldInput.prototype['option_list'] = undefined;
544
+
545
+ /**
546
+ * Combined fields only: a comma-separated list of the names of the fields whose values are combined, in order. Shared by every field with the same `name`.
547
+ * @member {String} combined_field_names
548
+ */
549
+ FieldInput.prototype['combined_field_names'] = undefined;
550
+
551
+ /**
552
+ * Combined fields only: `separator` joins the values with `combined_field_separator`, and `format` puts them into `combined_field_format`. Shared by every field with the same `name`.
553
+ * @member {module:model/CombinedFieldType} combined_field_type
554
+ */
555
+ FieldInput.prototype['combined_field_type'] = undefined;
556
+
557
+ /**
558
+ * Combined fields only: the text placed between the values when `combined_field_type` is `separator`. Empty values are skipped. Defaults to a space. Shared by every field with the same `name`.
559
+ * @member {String} combined_field_separator
560
+ */
561
+ FieldInput.prototype['combined_field_separator'] = undefined;
562
+
563
+ /**
564
+ * Combined fields only: the text for `combined_field_type` `format`, where `$0`, `$1` and so on are replaced with the values of `combined_field_names` in order, such as `Full name: $0, Occupation: $1`. Shared by every field with the same `name`.
565
+ * @member {String} combined_field_format
566
+ */
567
+ FieldInput.prototype['combined_field_format'] = undefined;
568
+
569
+ /**
570
+ * Number fields only: the value must be a whole number. Shared by every field with the same `name`.
571
+ * @member {Boolean} integer
572
+ */
573
+ FieldInput.prototype['integer'] = undefined;
574
+
575
+ /**
576
+ * Number fields only: the smallest value allowed. Shared by every field with the same `name`.
577
+ * @member {Number} minimum
578
+ */
579
+ FieldInput.prototype['minimum'] = undefined;
580
+
581
+ /**
582
+ * Number fields only: the largest value allowed. Shared by every field with the same `name`.
583
+ * @member {Number} maximum
584
+ */
585
+ FieldInput.prototype['maximum'] = undefined;
586
+
587
+ /**
588
+ * Number fields only: the value must be greater than `minimum`, not equal to it. Shared by every field with the same `name`.
589
+ * @member {Boolean} exclusive_minimum
590
+ */
591
+ FieldInput.prototype['exclusive_minimum'] = undefined;
592
+
593
+ /**
594
+ * Number fields only: the value must be less than `maximum`, not equal to it. Shared by every field with the same `name`.
595
+ * @member {Boolean} exclusive_maximum
596
+ */
597
+ FieldInput.prototype['exclusive_maximum'] = undefined;
598
+
599
+ /**
600
+ * Date fields only: the value is a date and time (`YYYY-MM-DDThh:mm:ss.fffZ`) instead of a date (`YYYY-MM-DD`), and it prints with the template's date-time format unless `date_time_format` is set. Shared by every field with the same `name`.
601
+ * @member {Boolean} include_time
602
+ */
603
+ FieldInput.prototype['include_time'] = undefined;
604
+
605
+ /**
606
+ * Signature and initials fields only: lets signers draw their signature on forms and in data requests. Shared by every field with the same `name`.
607
+ * @member {Boolean} signature_allow_draw
608
+ */
609
+ FieldInput.prototype['signature_allow_draw'] = undefined;
610
+
611
+ /**
612
+ * Signature and initials fields only: lets signers type their name and choose a script font instead of drawing, on forms and in data requests. Shared by every field with the same `name`.
613
+ * @member {Boolean} signature_allow_type
614
+ */
615
+ FieldInput.prototype['signature_allow_type'] = undefined;
616
+
617
+ /**
618
+ * Barcode fields only: the barcode format, which the value must match. `code_128` and `pdf417` take any ASCII text; `code_39` and `code_93` take capital letters, digits, spaces and `- . $ / + %`; `code_25` takes digits; `ean_13` takes 12 digits, `ean_8` 7 digits and `upc_a` 11 digits (the check digit is added). Shared by every field with the same `name`.
619
+ * @member {module:model/BarcodeSymbology} barcode_symbology
620
+ */
621
+ FieldInput.prototype['barcode_symbology'] = undefined;
622
+
623
+ /**
624
+ * Leaves the field off the PDF. It stays in the template's data schema (marked `x-hidden`) and on forms, so other fields, such as combined fields, can use its value. A hidden static check mark or shape isn't printed.
625
+ * @member {Boolean} hidden
626
+ */
627
+ FieldInput.prototype['hidden'] = undefined;
628
+
629
+ /**
630
+ * The distance from the page's left edge to the field's left edge. Positions and sizes are in units where every page is 2480 wide: one unit is the page's width in points divided by 2480 (about 0.247 points on a US Letter page).
631
+ * @member {Number} x
632
+ */
633
+ FieldInput.prototype['x'] = undefined;
634
+
635
+ /**
636
+ * The distance from the top edge of the field's `page` down to the field's top edge, in the units of `x`. A page is 2480 times its height divided by its width units tall: about 3209 for US Letter and 3508 for A4.
637
+ * @member {Number} y
638
+ */
639
+ FieldInput.prototype['y'] = undefined;
640
+
641
+ /**
642
+ * The field's width, in the units of `x`. A check mark is sized to the field's width.
643
+ * @member {Number} width
644
+ */
645
+ FieldInput.prototype['width'] = undefined;
646
+
647
+ /**
648
+ * The field's height, in the units of `x`. The template editor keeps check marks, QR codes, and square and circle shapes square, with `height` equal to `width`.
649
+ * @member {Number} height
650
+ */
651
+ FieldInput.prototype['height'] = undefined;
652
+
653
+ /**
654
+ * Rotates the field clockwise by this many degrees, from -360 to 360 (negative turns it counterclockwise).
655
+ * @member {Number} rotation
656
+ */
657
+ FieldInput.prototype['rotation'] = undefined;
658
+
659
+ /**
660
+ * How the value appears on the PDF: `text`, `check` (a check mark), `shape`, `qrcode`, `barcode`, or `image` (image, signature and initials fields). Check marks and shapes print only when the value meets the field's `condition`, and the field's `type` limits which display types it can use.
661
+ * @member {module:model/FieldDisplayType} display_type
662
+ */
663
+ FieldInput.prototype['display_type'] = undefined;
664
+
665
+ /**
666
+ * The opacity of the field's content and background, from 0 (invisible) to 1. QR codes and barcodes always print at full opacity.
667
+ * @member {Number} opacity
668
+ */
669
+ FieldInput.prototype['opacity'] = undefined;
670
+
671
+ /**
672
+ * Date fields only: how the date prints, as a strftime format such as `%m/%d/%Y`, or a calculation such as `@years_since`, `@years_until` or `@diff_years` (also months, weeks, days, hours, minutes and seconds), counted to when the PDF is generated. Empty uses the template's date format, or its date-time format with `include_time`.
673
+ * @member {String} date_time_format
674
+ */
675
+ FieldInput.prototype['date_time_format'] = undefined;
676
+
677
+ /**
678
+ * Text display only: the font, one of `Helvetica`, `Arial`, `Calibri`, `Open Sans`, `Roboto`, `Lato`, `Poppins`, `Public Sans`, `Questrial`, `Times New Roman`, `Dancing Script`, `Lovtony Script`, or the monospace `Courier`, `Inconsolata`, `Menlo`, `Roboto Mono` and `Ubuntu Mono`. Empty uses the template's default typeface.
679
+ * @member {module:model/Typeface} typeface
680
+ */
681
+ FieldInput.prototype['typeface'] = undefined;
682
+
683
+ /**
684
+ * Text display only: the font size in points. Empty uses the template's default font size.
685
+ * @member {Number} font_size
686
+ */
687
+ FieldInput.prototype['font_size'] = undefined;
688
+
689
+ /**
690
+ * Text display only: extra space between characters, in points. Empty uses the template's default.
691
+ * @member {Number} character_spacing
692
+ */
693
+ FieldInput.prototype['character_spacing'] = undefined;
694
+
695
+ /**
696
+ * Text display only: prints the text in bold.
697
+ * @member {Boolean} bold
698
+ */
699
+ FieldInput.prototype['bold'] = undefined;
700
+
701
+ /**
702
+ * Text display only: prints the text in capital letters.
703
+ * @member {Boolean} uppercase
704
+ */
705
+ FieldInput.prototype['uppercase'] = undefined;
706
+
707
+ /**
708
+ * Text display only: draws a line through the text.
709
+ * @member {Boolean} strikethrough
710
+ */
711
+ FieldInput.prototype['strikethrough'] = undefined;
712
+
713
+ /**
714
+ * Text display only: keeps the spaces at the start of the text and of each line, so text can be lined up with spaces.
715
+ * @member {Boolean} keep_leading_spaces
716
+ */
717
+ FieldInput.prototype['keep_leading_spaces'] = undefined;
718
+
719
+ /**
720
+ * Text display only: what happens to text that doesn't fit the field. `shrink_to_fit` makes the font smaller, down to 5 points; `truncate` cuts the text off and returns the rest in the submission's `truncated_text`.
721
+ * @member {module:model/TextOverflow} overflow
722
+ */
723
+ FieldInput.prototype['overflow'] = undefined;
724
+
725
+ /**
726
+ * Text display only: wraps the text over as many lines as fit in the field's height instead of printing one line, and forms show a multi-line input.
727
+ * @member {Boolean} multiline
728
+ */
729
+ FieldInput.prototype['multiline'] = undefined;
730
+
731
+ /**
732
+ * Text display only, with `multiline`: spreads the text over exactly this many evenly spaced lines in the field's height (up to 300), to line up with lines printed on the form. Empty uses the font's normal line spacing.
733
+ * @member {Number} multiline_lines
734
+ */
735
+ FieldInput.prototype['multiline_lines'] = undefined;
736
+
737
+ /**
738
+ * Text display only: the fewest characters the value can have, added to the template's data schema. Not used for date, address, country or number fields, or fields with an `option_list`.
739
+ * @member {Number} min_length
740
+ */
741
+ FieldInput.prototype['min_length'] = undefined;
742
+
743
+ /**
744
+ * Text display only: the most characters the value can have, added to the template's data schema; it also limits an `editable` field. Not used for date, address, country or number fields, or fields with an `option_list`.
745
+ * @member {Number} max_length
746
+ */
747
+ FieldInput.prototype['max_length'] = undefined;
748
+
749
+ /**
750
+ * Text display only, with a monospace `typeface` (`Courier`, `Inconsolata`, `Menlo`, `Roboto Mono` or `Ubuntu Mono`): adds the number of characters that fit in the field to the template's data schema as its maximum length.
751
+ * @member {Boolean} auto_calculate_max_length
752
+ */
753
+ FieldInput.prototype['auto_calculate_max_length'] = undefined;
754
+
755
+ /**
756
+ * Text display only: the text color, as a hex code such as `444444`. Empty uses the template's default text color.
757
+ * @member {String} color
758
+ */
759
+ FieldInput.prototype['color'] = undefined;
760
+
761
+ /**
762
+ * Text display only: the name of a data field whose value, a hex code such as `FF0000`, sets the text color for each submission. That field is added to the template's data schema, with `color` as its default.
763
+ * @member {String} color_field_name
764
+ */
765
+ FieldInput.prototype['color_field_name'] = undefined;
766
+
767
+ /**
768
+ * Makes the `color_field_name` field required. When it isn't required and a submission leaves it out, `color` is used.
769
+ * @member {Boolean} color_field_required
770
+ */
771
+ FieldInput.prototype['color_field_required'] = undefined;
772
+
773
+ /**
774
+ * Text and check display only: a color that fills the field's area behind its content, as a hex code, to cover what the page shows there. Check fields print it even when unchecked; text fields print it only when they have a value.
775
+ * @member {String} background_color
776
+ */
777
+ FieldInput.prototype['background_color'] = undefined;
778
+
779
+ /**
780
+ * Text and check display only: the name of a data field whose value, a hex code, sets the background color for each submission. That field is added to the template's data schema, with `background_color` as its default.
781
+ * @member {String} background_color_field_name
782
+ */
783
+ FieldInput.prototype['background_color_field_name'] = undefined;
784
+
785
+ /**
786
+ * Makes the `background_color_field_name` field required. When it isn't required and a submission leaves it out, `background_color` is used.
787
+ * @member {Boolean} background_color_field_required
788
+ */
789
+ FieldInput.prototype['background_color_field_required'] = undefined;
790
+
791
+ /**
792
+ * Text display only: how the text is aligned across the field: `left`, `center`, `right` or `justify` (both edges of every line of multiline text except the last of each paragraph).
793
+ * @member {module:model/TextAlignment} alignment
794
+ */
795
+ FieldInput.prototype['alignment'] = undefined;
796
+
797
+ /**
798
+ * Text display only: how the text is aligned vertically in the field: `bottom`, `center` or `top`.
799
+ * @member {module:model/TextVerticalAlignment} v_alignment
800
+ */
801
+ FieldInput.prototype['v_alignment'] = undefined;
802
+
803
+ /**
804
+ * Text display only: splits the field into `comb_number_of_cells` boxes of equal width and prints one character, centered, in each.
805
+ * @member {Boolean} comb
806
+ */
807
+ FieldInput.prototype['comb'] = undefined;
808
+
809
+ /**
810
+ * With `comb`: how many boxes the field has. The value's maximum length in the template's data schema is this plus `comb_value_offset`.
811
+ * @member {Number} comb_number_of_cells
812
+ */
813
+ FieldInput.prototype['comb_number_of_cells'] = undefined;
814
+
815
+ /**
816
+ * With `comb`: the position, from 0, of the first character of the value that this field prints. For an SSN printed in boxes of 3, 2 and 4 digits, three fields named `ssn` use offsets 0, 3 and 5.
817
+ * @member {Number} comb_value_offset
818
+ */
819
+ FieldInput.prototype['comb_value_offset'] = undefined;
820
+
821
+ /**
822
+ * Shape display only: `square`, `rectangle`, `circle`, `ellipse`, `triangle` or `polygon`. A square or circle uses the smaller of `width` and `height`.
823
+ * @member {module:model/ShapeType} shape_type
824
+ */
825
+ FieldInput.prototype['shape_type'] = undefined;
826
+
827
+ /**
828
+ * Shape display only, with `shape_type` `polygon`: the number of sides, 3 to 12.
829
+ * @member {Number} shape_sides
830
+ */
831
+ FieldInput.prototype['shape_sides'] = undefined;
832
+
833
+ /**
834
+ * Shape display only: the width of the shape's border, in points.
835
+ * @member {Number} shape_border_width
836
+ */
837
+ FieldInput.prototype['shape_border_width'] = undefined;
838
+
839
+ /**
840
+ * Shape display only: the shape's border color, as a hex code. Null draws no border.
841
+ * @member {String} shape_border_color
842
+ */
843
+ FieldInput.prototype['shape_border_color'] = undefined;
844
+
845
+ /**
846
+ * Shape display only: the name of a data field whose value, a hex code, sets the border color for each submission. That field is added to the template's data schema, with `shape_border_color` as its default.
847
+ * @member {String} shape_border_color_field_name
848
+ */
849
+ FieldInput.prototype['shape_border_color_field_name'] = undefined;
850
+
851
+ /**
852
+ * Makes the `shape_border_color_field_name` field required. When it isn't required and a submission leaves it out, `shape_border_color` is used.
853
+ * @member {Boolean} shape_border_color_field_required
854
+ */
855
+ FieldInput.prototype['shape_border_color_field_required'] = undefined;
856
+
857
+ /**
858
+ * Shape display only: the color that fills the shape, as a hex code. Null leaves it unfilled.
859
+ * @member {String} shape_fill_color
860
+ */
861
+ FieldInput.prototype['shape_fill_color'] = undefined;
862
+
863
+ /**
864
+ * Shape display only: the name of a data field whose value, a hex code, sets the fill color for each submission. That field is added to the template's data schema, with `shape_fill_color` as its default.
865
+ * @member {String} shape_fill_color_field_name
866
+ */
867
+ FieldInput.prototype['shape_fill_color_field_name'] = undefined;
868
+
869
+ /**
870
+ * Makes the `shape_fill_color_field_name` field required. When it isn't required and a submission leaves it out, `shape_fill_color` is used.
871
+ * @member {Boolean} shape_fill_color_field_required
872
+ */
873
+ FieldInput.prototype['shape_fill_color_field_required'] = undefined;
874
+
875
+ /**
876
+ * Check display only: the character printed, as an HTML entity: `&#10003;` (✓), `&#10004;` (✔, the default), `&#10006;` (✖), `&#10007;` (✗) or `&#10008;` (✘).
877
+ * @member {module:model/CheckCharacter} check_character
878
+ */
879
+ FieldInput.prototype['check_character'] = undefined;
880
+
881
+ /**
882
+ * Check display only: the check mark's color, as a hex code. Empty uses the template's default check color.
883
+ * @member {String} check_color
884
+ */
885
+ FieldInput.prototype['check_color'] = undefined;
886
+
887
+ /**
888
+ * Check display only: the name of a data field whose value, a hex code, sets the check mark's color for each submission. That field is added to the template's data schema, with `check_color` as its default.
889
+ * @member {String} check_color_field_name
890
+ */
891
+ FieldInput.prototype['check_color_field_name'] = undefined;
892
+
893
+ /**
894
+ * Makes the `check_color_field_name` field required. When it isn't required and a submission leaves it out, `check_color` is used.
895
+ * @member {Boolean} check_color_field_required
896
+ */
897
+ FieldInput.prototype['check_color_field_required'] = undefined;
898
+
899
+ /**
900
+ * QR code display only: the QR code's color, as a hex code, printed on a white background. Empty prints it in black.
901
+ * @member {String} qrcode_color
902
+ */
903
+ FieldInput.prototype['qrcode_color'] = undefined;
904
+
905
+ /**
906
+ * QR code display only: the name of a data field whose value, a hex code, sets the QR code's color for each submission. That field is added to the template's data schema, with `qrcode_color` as its default.
907
+ * @member {String} qrcode_color_field_name
908
+ */
909
+ FieldInput.prototype['qrcode_color_field_name'] = undefined;
910
+
911
+ /**
912
+ * Makes the `qrcode_color_field_name` field required. When it isn't required and a submission leaves it out, `qrcode_color` is used.
913
+ * @member {Boolean} qrcode_color_field_required
914
+ */
915
+ FieldInput.prototype['qrcode_color_field_required'] = undefined;
916
+
917
+ /**
918
+ * Boolean fields with text display: the text printed when the value is `true`. Empty uses the template's `true_text`; when neither is set, nothing prints.
919
+ * @member {String} true_text
920
+ */
921
+ FieldInput.prototype['true_text'] = undefined;
922
+
923
+ /**
924
+ * Boolean fields with text display: the text printed when the value is `false`. Empty uses the template's `false_text`; when neither is set, nothing prints.
925
+ * @member {String} false_text
926
+ */
927
+ FieldInput.prototype['false_text'] = undefined;
928
+
929
+ /**
930
+ * Check and shape display only: the value a string or number field's value is compared with, by `string_condition_type` or `number_condition_type`, to decide whether the check mark or shape prints. Boolean fields print when `true` (see `invert_boolean_condition`), and other types print when they have a value.
931
+ * @member {String} condition
932
+ */
933
+ FieldInput.prototype['condition'] = undefined;
934
+
935
+ /**
936
+ * String fields with check or shape display: how the value is compared with `condition`: `equals`, `contains`, `starts_with`, `ends_with`, or `regex`, where `condition` is a regular expression the value must match.
937
+ * @member {module:model/StringConditionType} string_condition_type
938
+ */
939
+ FieldInput.prototype['string_condition_type'] = undefined;
940
+
941
+ /**
942
+ * Number fields with check or shape display: how the value is compared with `condition`: `equals`, `gt` (greater than), `gte` (greater than or equal to), `lt` (less than), `lte` (less than or equal to), or `range`, between `number_condition_range_min` and `number_condition_range_max`.
943
+ * @member {module:model/NumberConditionType} number_condition_type
944
+ */
945
+ FieldInput.prototype['number_condition_type'] = undefined;
946
+
947
+ /**
948
+ * With `number_condition_type` `range`: the lower end of the range, included unless `number_condition_range_exclusive_min` is set.
949
+ * @member {Number} number_condition_range_min
950
+ */
951
+ FieldInput.prototype['number_condition_range_min'] = undefined;
952
+
953
+ /**
954
+ * With `number_condition_type` `range`: the upper end of the range, included unless `number_condition_range_exclusive_max` is set.
955
+ * @member {Number} number_condition_range_max
956
+ */
957
+ FieldInput.prototype['number_condition_range_max'] = undefined;
958
+
959
+ /**
960
+ * With `number_condition_type` `range`: leaves `number_condition_range_min` itself out of the range.
961
+ * @member {Boolean} number_condition_range_exclusive_min
962
+ */
963
+ FieldInput.prototype['number_condition_range_exclusive_min'] = undefined;
964
+
965
+ /**
966
+ * With `number_condition_type` `range`: leaves `number_condition_range_max` itself out of the range.
967
+ * @member {Boolean} number_condition_range_exclusive_max
968
+ */
969
+ FieldInput.prototype['number_condition_range_exclusive_max'] = undefined;
970
+
971
+ /**
972
+ * Boolean fields with check or shape display: prints the check mark or shape when the value is `false` or missing, instead of `true`.
973
+ * @member {Boolean} invert_boolean_condition
974
+ */
975
+ FieldInput.prototype['invert_boolean_condition'] = undefined;
976
+
977
+ /**
978
+ * Number fields only: forms show a currency input, and the template's data schema gives the field `format: currency`. It doesn't change how the number prints.
979
+ * @member {Boolean} currency
980
+ */
981
+ FieldInput.prototype['currency'] = undefined;
982
+
983
+ /**
984
+ * Number fields with text display: prints the number with this many decimal places, from 0 (rounds to a whole number) to 99. Empty prints the number as it was sent.
985
+ * @member {Number} decimal_places
986
+ */
987
+ FieldInput.prototype['decimal_places'] = undefined;
988
+
989
+ /**
990
+ * Image fields only: how the image is resized to the field. `fit` keeps its proportions and fits it inside the field, which can leave empty space; `fill` keeps its proportions and crops it to fill the field; `stretch` stretches it to the field's size. Signatures and initials always fit.
991
+ * @member {module:model/ImageScaleType} image_scale_type
992
+ */
993
+ FieldInput.prototype['image_scale_type'] = undefined;
994
+
995
+ /**
996
+ * Image, signature and initials fields: where the image sits in the field with `fit`, or which part is kept with `fill`: `NorthWest` (top left), `North`, `NorthEast`, `West`, `Center`, `East`, `SouthWest`, `South` or `SouthEast` (bottom right). It also aligns typed signatures, and isn't used with `stretch`.
997
+ * @member {module:model/ImageGravity} image_gravity
998
+ */
999
+ FieldInput.prototype['image_gravity'] = undefined;
1000
+
1001
+ /**
1002
+ * The field's own conditional logic rule: when other fields' values meet its conditions, the field is shown, made required, or both. Null when it has none. The template's rules (`field_dependencies`) can apply to the field too. Shared by every field with the same `name`.
1003
+ * @member {module:model/FieldDependencyInput} dependencies
1004
+ */
1005
+ FieldInput.prototype['dependencies'] = undefined;
1006
+
1007
+ /**
1008
+ * The field's ID. Required when updating a field. When adding one, leave it out for the next free ID.
1009
+ * @member {Number} id
1010
+ */
1011
+ FieldInput.prototype['id'] = undefined;
1012
+ var _default = exports["default"] = FieldInput;