docspring 4.2.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +26 -6
  3. package/dist/ApiClient.js +3 -3
  4. package/dist/RequestSchemas.js +1171 -134
  5. package/dist/RequestValidator.js +4 -0
  6. package/dist/api/Client.js +1406 -248
  7. package/dist/index.js +196 -0
  8. package/dist/model/AddTemplateFieldsRequest.js +4 -4
  9. package/dist/model/AiFieldNamingLanguage.js +1 -1
  10. package/dist/model/AuthenticationCheck.js +2 -2
  11. package/dist/model/BarcodeSymbology.js +1 -1
  12. package/dist/model/CheckCharacter.js +1 -1
  13. package/dist/model/CombinedFieldType.js +1 -1
  14. package/dist/model/CombinedPdf.js +2 -2
  15. package/dist/model/CombinedPdfFiles.js +2 -2
  16. package/dist/model/CombinedPdfList.js +2 -2
  17. package/dist/model/CombinedPdfSource.js +3 -3
  18. package/dist/model/CombinedPdfSourceInput.js +3 -3
  19. package/dist/model/CombinedPdfSourcePdf.js +2 -2
  20. package/dist/model/CombinedPdfSourceType.js +1 -1
  21. package/dist/model/CombinedPdfState.js +1 -1
  22. package/dist/model/CopyTemplateRequest.js +2 -2
  23. package/dist/model/CreateAccountEmailActionRequest.js +306 -0
  24. package/dist/model/CreateCombinedPdfRequest.js +2 -2
  25. package/dist/model/CreateCustomFileFromUploadRequest.js +2 -2
  26. package/dist/model/CreateEmailActionRequest.js +280 -0
  27. package/dist/model/CreateEmailDomainRequest.js +114 -0
  28. package/dist/model/CreateFolderRequest.js +2 -2
  29. package/dist/model/CreateSignatureRequestEventRequest.js +2 -2
  30. package/dist/model/CreateSignatureRequestTokenRequest.js +2 -2
  31. package/dist/model/CreateSubmissionBatchRequest.js +5 -5
  32. package/dist/model/CreateSubmissionRequest.js +115 -7
  33. package/dist/model/CreateTemplatePreviewRequest.js +2 -2
  34. package/dist/model/CreateTemplateRequest.js +119 -14
  35. package/dist/model/CreateWebhookRequest.js +2 -2
  36. package/dist/model/CustomFile.js +2 -2
  37. package/dist/model/CustomFileList.js +2 -2
  38. package/dist/model/CustomFileSourcePdf.js +2 -2
  39. package/dist/model/DnsRecordType.js +64 -0
  40. package/dist/model/EmailAction.js +510 -0
  41. package/dist/model/EmailActionConditions.js +142 -0
  42. package/dist/model/EmailActionConditionsInput.js +142 -0
  43. package/dist/model/EmailActionCustomization.js +222 -0
  44. package/dist/model/EmailActionDelivery.js +59 -0
  45. package/dist/model/EmailActionFileFormats.js +69 -0
  46. package/dist/model/EmailActionList.js +132 -0
  47. package/dist/model/EmailActionSetting.js +119 -0
  48. package/dist/model/EmailActionSubmissionType.js +64 -0
  49. package/dist/model/EmailActionTestEmail.js +116 -0
  50. package/dist/model/EmailDomain.js +245 -0
  51. package/dist/model/EmailDomainDnsRecord.js +155 -0
  52. package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
  53. package/dist/model/EmailDomainList.js +132 -0
  54. package/dist/model/EmailDomainRecordState.js +64 -0
  55. package/dist/model/EmailDomainState.js +64 -0
  56. package/dist/model/ErrorCode.js +11 -1
  57. package/dist/model/ErrorDetail.js +2 -2
  58. package/dist/model/ErrorInfo.js +47 -8
  59. package/dist/model/ErrorResponse.js +2 -2
  60. package/dist/model/ExpirationInterval.js +1 -1
  61. package/dist/model/Field.js +5 -5
  62. package/dist/model/FieldComparisonCondition.js +2 -2
  63. package/dist/model/FieldComparisonOperator.js +1 -1
  64. package/dist/model/FieldDependency.js +2 -2
  65. package/dist/model/FieldDependencyInput.js +2 -2
  66. package/dist/model/FieldDisplayType.js +1 -1
  67. package/dist/model/FieldEqualsCondition.js +2 -2
  68. package/dist/model/FieldEqualsOperator.js +1 -1
  69. package/dist/model/FieldGroup.js +6 -6
  70. package/dist/model/FieldGroupInput.js +3 -3
  71. package/dist/model/FieldGroupType.js +1 -1
  72. package/dist/model/FieldInCondition.js +2 -2
  73. package/dist/model/FieldInput.js +4 -4
  74. package/dist/model/FieldOverride.js +2 -2
  75. package/dist/model/FieldPresenceCondition.js +2 -2
  76. package/dist/model/FieldPresenceOperator.js +1 -1
  77. package/dist/model/FieldRangeCondition.js +2 -2
  78. package/dist/model/FieldReimportState.js +1 -1
  79. package/dist/model/FieldSetupLogic.js +1 -1
  80. package/dist/model/FieldSetupNaming.js +1 -1
  81. package/dist/model/FieldSetupSource.js +1 -1
  82. package/dist/model/FieldType.js +1 -1
  83. package/dist/model/Folder.js +2 -2
  84. package/dist/model/FolderList.js +2 -2
  85. package/dist/model/GenerateFilesFormat.js +16 -1
  86. package/dist/model/GenerateSubmissionFilesRequest.js +4 -4
  87. package/dist/model/GeneratedFile.js +7 -7
  88. package/dist/model/GeneratedFileState.js +1 -1
  89. package/dist/model/HtmlEngineOptions.js +4 -4
  90. package/dist/model/HtmlEngineOptionsInput.js +3 -3
  91. package/dist/model/ImageGravity.js +1 -1
  92. package/dist/model/ImageScaleType.js +1 -1
  93. package/dist/model/ModelCodeLanguage.js +7 -2
  94. package/dist/model/MoveFolderRequest.js +2 -2
  95. package/dist/model/MoveTemplateRequest.js +2 -2
  96. package/dist/model/NumberConditionType.js +1 -1
  97. package/dist/model/OutputFormat.js +11 -1
  98. package/dist/model/PageFormat.js +1 -1
  99. package/dist/model/PageImage.js +2 -2
  100. package/dist/model/PageImages.js +2 -2
  101. package/dist/model/PredefinedField.js +2 -2
  102. package/dist/model/PredefinedFieldInput.js +2 -2
  103. package/dist/model/PublishTemplateVersionRequest.js +2 -2
  104. package/dist/model/RemoveTemplateFieldsRequest.js +2 -2
  105. package/dist/model/RenameFolderRequest.js +2 -2
  106. package/dist/model/ReorderTemplateFieldsRequest.js +2 -2
  107. package/dist/model/RestoreTemplateVersionRequest.js +2 -2
  108. package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
  109. package/dist/model/ShapeType.js +1 -1
  110. package/dist/model/SignatureRequest.js +53 -8
  111. package/dist/model/SignatureRequestAuthSecondFactorType.js +1 -1
  112. package/dist/model/SignatureRequestAuthType.js +1 -1
  113. package/dist/model/SignatureRequestEmailAttachments.js +59 -0
  114. package/dist/model/SignatureRequestEmailStatus.js +89 -0
  115. package/dist/model/SignatureRequestEvent.js +2 -2
  116. package/dist/model/SignatureRequestEventType.js +12 -2
  117. package/dist/model/SignatureRequestInput.js +25 -9
  118. package/dist/model/SignatureRequestMessageType.js +1 -1
  119. package/dist/model/SignatureRequestReminders.js +121 -0
  120. package/dist/model/SignatureRequestState.js +1 -1
  121. package/dist/model/SignatureRequestToken.js +2 -2
  122. package/dist/model/SignatureRequestTokenType.js +1 -1
  123. package/dist/model/SigningOrder.js +59 -0
  124. package/dist/model/StringConditionType.js +37 -2
  125. package/dist/model/Submission.js +31 -19
  126. package/dist/model/SubmissionAction.js +28 -13
  127. package/dist/model/SubmissionActionState.js +1 -1
  128. package/dist/model/SubmissionActionType.js +1 -1
  129. package/dist/model/SubmissionBatch.js +9 -9
  130. package/dist/model/SubmissionBatchState.js +1 -1
  131. package/dist/model/SubmissionFiles.js +20 -2
  132. package/dist/model/SubmissionInput.js +7 -7
  133. package/dist/model/SubmissionList.js +2 -2
  134. package/dist/model/SubmissionSource.js +1 -1
  135. package/dist/model/SubmissionSourcePdf.js +2 -2
  136. package/dist/model/SubmissionState.js +1 -1
  137. package/dist/model/SubmissionSummary.js +8 -8
  138. package/dist/model/SubmissionValidation.js +2 -2
  139. package/dist/model/Template.js +149 -26
  140. package/dist/model/TemplateActor.js +2 -2
  141. package/dist/model/TemplateActorType.js +1 -1
  142. package/dist/model/TemplateDefaults.js +2 -2
  143. package/dist/model/TemplateDefaultsInput.js +2 -2
  144. package/dist/model/TemplateDiff.js +6 -6
  145. package/dist/model/TemplateDiffSummary.js +2 -2
  146. package/dist/model/TemplateDocument.js +23 -23
  147. package/dist/model/TemplateDocumentState.js +12 -2
  148. package/dist/model/TemplateDocumentSummary.js +11 -11
  149. package/dist/model/TemplateFieldChange.js +2 -2
  150. package/dist/model/TemplateFieldChanges.js +2 -2
  151. package/dist/model/TemplateFieldDependency.js +2 -2
  152. package/dist/model/TemplateFieldDependencyAction.js +1 -1
  153. package/dist/model/TemplateFieldDependencyCondition.js +2 -2
  154. package/dist/model/TemplateFieldDependencyConditionInput.js +2 -2
  155. package/dist/model/TemplateFieldDependencyInput.js +2 -2
  156. package/dist/model/TemplateFieldDependencyMatch.js +1 -1
  157. package/dist/model/TemplateFieldDependencyOperator.js +1 -1
  158. package/dist/model/TemplateFieldLogicStatus.js +1 -1
  159. package/dist/model/TemplateFieldMove.js +2 -2
  160. package/dist/model/TemplateFields.js +2 -2
  161. package/dist/model/TemplateFormMode.js +1 -1
  162. package/dist/model/TemplateModelCode.js +2 -2
  163. package/dist/model/TemplatePageAiError.js +1 -1
  164. package/dist/model/TemplatePageAiNamingStatus.js +1 -1
  165. package/dist/model/TemplatePageFieldsStatus.js +1 -1
  166. package/dist/model/TemplatePageImageStatus.js +1 -1
  167. package/dist/model/TemplatePageImages.js +2 -2
  168. package/dist/model/TemplatePageProcessingStatus.js +2 -2
  169. package/dist/model/TemplatePreview.js +5 -5
  170. package/dist/model/TemplatePreviewState.js +1 -1
  171. package/dist/model/TemplateSourcePdf.js +3 -3
  172. package/dist/model/TemplateSummary.js +24 -12
  173. package/dist/model/TemplateSummaryList.js +2 -2
  174. package/dist/model/TemplateType.js +12 -2
  175. package/dist/model/TemplateVersion.js +2 -2
  176. package/dist/model/TemplateVersionType.js +1 -1
  177. package/dist/model/TextAlignment.js +1 -1
  178. package/dist/model/TextOverflow.js +1 -1
  179. package/dist/model/TextVerticalAlignment.js +1 -1
  180. package/dist/model/Typeface.js +1 -1
  181. package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
  182. package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
  183. package/dist/model/UpdateEmailActionRequest.js +280 -0
  184. package/dist/model/UpdateSignatureRequestRequest.js +2 -2
  185. package/dist/model/UpdateTemplateDocumentRequest.js +8 -8
  186. package/dist/model/UpdateTemplateFieldsRequest.js +2 -2
  187. package/dist/model/UpdateTemplateRequest.js +113 -8
  188. package/dist/model/UpdateWebhookRequest.js +2 -2
  189. package/dist/model/UploadMethod.js +1 -1
  190. package/dist/model/UploadPresign.js +2 -2
  191. package/dist/model/UrlSourcePdf.js +2 -2
  192. package/dist/model/ValidateSubmissionRequest.js +115 -7
  193. package/dist/model/Webhook.js +2 -2
  194. package/dist/model/WebhookEventType.js +11 -1
  195. package/dist/model/WebhookList.js +2 -2
  196. package/dist/model/WebhookMode.js +1 -1
  197. package/package.json +2 -2
@@ -0,0 +1,142 @@
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 _TemplateFieldDependencyCondition = _interopRequireDefault(require("./TemplateFieldDependencyCondition"));
9
+ var _TemplateFieldDependencyMatch = _interopRequireDefault(require("./TemplateFieldDependencyMatch"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
20
+ * DocSpring API
21
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
22
+ *
23
+ * The version of the OpenAPI document: v2
24
+ *
25
+ *
26
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
+ * https://openapi-generator.tech
28
+ * Do not edit the class manually.
29
+ *
30
+ */
31
+ /**
32
+ * The EmailActionConditions model module.
33
+ * @module model/EmailActionConditions
34
+ * @version 4.4.0
35
+ */
36
+ var EmailActionConditions = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>EmailActionConditions</code>.
39
+ * The conditions a submission's values must meet for an email action to send its email.
40
+ * @alias module:model/EmailActionConditions
41
+ * @param conditions {Array.<module:model/TemplateFieldDependencyCondition>} The conditions on other fields' values.
42
+ */
43
+ function EmailActionConditions(conditions) {
44
+ _classCallCheck(this, EmailActionConditions);
45
+ EmailActionConditions.initialize(this, conditions);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(EmailActionConditions, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, conditions) {
56
+ obj['conditions'] = conditions;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>EmailActionConditions</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/EmailActionConditions} obj Optional instance to populate.
64
+ * @return {module:model/EmailActionConditions} The populated <code>EmailActionConditions</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new EmailActionConditions();
71
+ if (data.hasOwnProperty('match')) {
72
+ obj['match'] = _ApiClient["default"].convertToType(data['match'], _TemplateFieldDependencyMatch["default"]);
73
+ }
74
+ if (data.hasOwnProperty('conditions')) {
75
+ obj['conditions'] = _ApiClient["default"].convertToType(data['conditions'], [_TemplateFieldDependencyCondition["default"]]);
76
+ }
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ /**
82
+ * Validates the JSON data with respect to <code>EmailActionConditions</code>.
83
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
84
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EmailActionConditions</code>.
85
+ */
86
+ }, {
87
+ key: "validateJSON",
88
+ value: function validateJSON(data) {
89
+ // check to make sure all required properties are present in the JSON string
90
+ var _iterator = _createForOfIteratorHelper(EmailActionConditions.RequiredProperties),
91
+ _step;
92
+ try {
93
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
94
+ var property = _step.value;
95
+ if (!data.hasOwnProperty(property)) {
96
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
97
+ }
98
+ }
99
+ } catch (err) {
100
+ _iterator.e(err);
101
+ } finally {
102
+ _iterator.f();
103
+ }
104
+ if (data['conditions']) {
105
+ // data not null
106
+ // ensure the json data is an array
107
+ if (!Array.isArray(data['conditions'])) {
108
+ throw new Error("Expected the field `conditions` to be an array in the JSON data but got " + data['conditions']);
109
+ }
110
+ // validate the optional field `conditions` (array)
111
+ var _iterator2 = _createForOfIteratorHelper(data['conditions']),
112
+ _step2;
113
+ try {
114
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
115
+ var item = _step2.value;
116
+ _TemplateFieldDependencyCondition["default"].validateJSON(item);
117
+ }
118
+ } catch (err) {
119
+ _iterator2.e(err);
120
+ } finally {
121
+ _iterator2.f();
122
+ }
123
+ ;
124
+ }
125
+ return true;
126
+ }
127
+ }]);
128
+ }();
129
+ EmailActionConditions.RequiredProperties = ["conditions"];
130
+
131
+ /**
132
+ * Whether all of the conditions (the default) or any of them must be met.
133
+ * @member {module:model/TemplateFieldDependencyMatch} match
134
+ */
135
+ EmailActionConditions.prototype['match'] = undefined;
136
+
137
+ /**
138
+ * The conditions on other fields' values.
139
+ * @member {Array.<module:model/TemplateFieldDependencyCondition>} conditions
140
+ */
141
+ EmailActionConditions.prototype['conditions'] = undefined;
142
+ var _default = exports["default"] = EmailActionConditions;
@@ -0,0 +1,142 @@
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 _TemplateFieldDependencyConditionInput = _interopRequireDefault(require("./TemplateFieldDependencyConditionInput"));
9
+ var _TemplateFieldDependencyMatch = _interopRequireDefault(require("./TemplateFieldDependencyMatch"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
20
+ * DocSpring API
21
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
22
+ *
23
+ * The version of the OpenAPI document: v2
24
+ *
25
+ *
26
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
+ * https://openapi-generator.tech
28
+ * Do not edit the class manually.
29
+ *
30
+ */
31
+ /**
32
+ * The EmailActionConditionsInput model module.
33
+ * @module model/EmailActionConditionsInput
34
+ * @version 4.4.0
35
+ */
36
+ var EmailActionConditionsInput = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>EmailActionConditionsInput</code>.
39
+ * The conditions a submission's values must meet for an email action to send its email.
40
+ * @alias module:model/EmailActionConditionsInput
41
+ * @param conditions {Array.<module:model/TemplateFieldDependencyConditionInput>} The conditions on other fields' values.
42
+ */
43
+ function EmailActionConditionsInput(conditions) {
44
+ _classCallCheck(this, EmailActionConditionsInput);
45
+ EmailActionConditionsInput.initialize(this, conditions);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ return _createClass(EmailActionConditionsInput, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, conditions) {
56
+ obj['conditions'] = conditions;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>EmailActionConditionsInput</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/EmailActionConditionsInput} obj Optional instance to populate.
64
+ * @return {module:model/EmailActionConditionsInput} The populated <code>EmailActionConditionsInput</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new EmailActionConditionsInput();
71
+ if (data.hasOwnProperty('match')) {
72
+ obj['match'] = _ApiClient["default"].convertToType(data['match'], _TemplateFieldDependencyMatch["default"]);
73
+ }
74
+ if (data.hasOwnProperty('conditions')) {
75
+ obj['conditions'] = _ApiClient["default"].convertToType(data['conditions'], [_TemplateFieldDependencyConditionInput["default"]]);
76
+ }
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ /**
82
+ * Validates the JSON data with respect to <code>EmailActionConditionsInput</code>.
83
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
84
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EmailActionConditionsInput</code>.
85
+ */
86
+ }, {
87
+ key: "validateJSON",
88
+ value: function validateJSON(data) {
89
+ // check to make sure all required properties are present in the JSON string
90
+ var _iterator = _createForOfIteratorHelper(EmailActionConditionsInput.RequiredProperties),
91
+ _step;
92
+ try {
93
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
94
+ var property = _step.value;
95
+ if (!data.hasOwnProperty(property)) {
96
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
97
+ }
98
+ }
99
+ } catch (err) {
100
+ _iterator.e(err);
101
+ } finally {
102
+ _iterator.f();
103
+ }
104
+ if (data['conditions']) {
105
+ // data not null
106
+ // ensure the json data is an array
107
+ if (!Array.isArray(data['conditions'])) {
108
+ throw new Error("Expected the field `conditions` to be an array in the JSON data but got " + data['conditions']);
109
+ }
110
+ // validate the optional field `conditions` (array)
111
+ var _iterator2 = _createForOfIteratorHelper(data['conditions']),
112
+ _step2;
113
+ try {
114
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
115
+ var item = _step2.value;
116
+ _TemplateFieldDependencyConditionInput["default"].validateJSON(item);
117
+ }
118
+ } catch (err) {
119
+ _iterator2.e(err);
120
+ } finally {
121
+ _iterator2.f();
122
+ }
123
+ ;
124
+ }
125
+ return true;
126
+ }
127
+ }]);
128
+ }();
129
+ EmailActionConditionsInput.RequiredProperties = ["conditions"];
130
+
131
+ /**
132
+ * Whether all of the conditions (the default) or any of them must be met.
133
+ * @member {module:model/TemplateFieldDependencyMatch} match
134
+ */
135
+ EmailActionConditionsInput.prototype['match'] = undefined;
136
+
137
+ /**
138
+ * The conditions on other fields' values.
139
+ * @member {Array.<module:model/TemplateFieldDependencyConditionInput>} conditions
140
+ */
141
+ EmailActionConditionsInput.prototype['conditions'] = undefined;
142
+ var _default = exports["default"] = EmailActionConditionsInput;
@@ -0,0 +1,222 @@
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 _EmailActionSetting = _interopRequireDefault(require("./EmailActionSetting"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ 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; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
+ * DocSpring API
20
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
21
+ *
22
+ * The version of the OpenAPI document: v2
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The EmailActionCustomization model module.
32
+ * @module model/EmailActionCustomization
33
+ * @version 4.4.0
34
+ */
35
+ var EmailActionCustomization = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>EmailActionCustomization</code>.
38
+ * A template's changes to an account email action.
39
+ * @alias module:model/EmailActionCustomization
40
+ * @param enabled {Boolean} Whether the account email action sends for this template. It also needs to be on itself (`enabled`).
41
+ * @param customized {Array.<module:model/EmailActionSetting>} The settings this template changes. The others follow the account email action.
42
+ * @param consecutive_failures {Number} How many of this template's emails in a row have failed because of a setting it changes.
43
+ * @param failing_since {Date} When the current run of those failures started.
44
+ * @param last_failure_at {Date} When one of those emails last failed.
45
+ * @param last_failure_message {String} Why it failed.
46
+ * @param disabled_at {Date} When DocSpring turned the email action off for this template, such as when an address the template added bounced.
47
+ * @param disabled_reason {String} Why DocSpring turned it off for this template.
48
+ * @param created_at {Date} When the template first changed the email action.
49
+ * @param updated_at {Date} When the template's changes last changed.
50
+ */
51
+ function EmailActionCustomization(enabled, customized, consecutive_failures, failing_since, last_failure_at, last_failure_message, disabled_at, disabled_reason, created_at, updated_at) {
52
+ _classCallCheck(this, EmailActionCustomization);
53
+ EmailActionCustomization.initialize(this, enabled, customized, consecutive_failures, failing_since, last_failure_at, last_failure_message, disabled_at, disabled_reason, created_at, updated_at);
54
+ }
55
+
56
+ /**
57
+ * Initializes the fields of this object.
58
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
59
+ * Only for internal use.
60
+ */
61
+ return _createClass(EmailActionCustomization, null, [{
62
+ key: "initialize",
63
+ value: function initialize(obj, enabled, customized, consecutive_failures, failing_since, last_failure_at, last_failure_message, disabled_at, disabled_reason, created_at, updated_at) {
64
+ obj['enabled'] = enabled;
65
+ obj['customized'] = customized;
66
+ obj['consecutive_failures'] = consecutive_failures;
67
+ obj['failing_since'] = failing_since;
68
+ obj['last_failure_at'] = last_failure_at;
69
+ obj['last_failure_message'] = last_failure_message;
70
+ obj['disabled_at'] = disabled_at;
71
+ obj['disabled_reason'] = disabled_reason;
72
+ obj['created_at'] = created_at;
73
+ obj['updated_at'] = updated_at;
74
+ }
75
+
76
+ /**
77
+ * Constructs a <code>EmailActionCustomization</code> from a plain JavaScript object, optionally creating a new instance.
78
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @param {module:model/EmailActionCustomization} obj Optional instance to populate.
81
+ * @return {module:model/EmailActionCustomization} The populated <code>EmailActionCustomization</code> instance.
82
+ */
83
+ }, {
84
+ key: "constructFromObject",
85
+ value: function constructFromObject(data, obj) {
86
+ if (data) {
87
+ obj = obj || new EmailActionCustomization();
88
+ if (data.hasOwnProperty('enabled')) {
89
+ obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean');
90
+ }
91
+ if (data.hasOwnProperty('customized')) {
92
+ obj['customized'] = _ApiClient["default"].convertToType(data['customized'], [_EmailActionSetting["default"]]);
93
+ }
94
+ if (data.hasOwnProperty('consecutive_failures')) {
95
+ obj['consecutive_failures'] = _ApiClient["default"].convertToType(data['consecutive_failures'], 'Number');
96
+ }
97
+ if (data.hasOwnProperty('failing_since')) {
98
+ obj['failing_since'] = _ApiClient["default"].convertToType(data['failing_since'], 'Date');
99
+ }
100
+ if (data.hasOwnProperty('last_failure_at')) {
101
+ obj['last_failure_at'] = _ApiClient["default"].convertToType(data['last_failure_at'], 'Date');
102
+ }
103
+ if (data.hasOwnProperty('last_failure_message')) {
104
+ obj['last_failure_message'] = _ApiClient["default"].convertToType(data['last_failure_message'], 'String');
105
+ }
106
+ if (data.hasOwnProperty('disabled_at')) {
107
+ obj['disabled_at'] = _ApiClient["default"].convertToType(data['disabled_at'], 'Date');
108
+ }
109
+ if (data.hasOwnProperty('disabled_reason')) {
110
+ obj['disabled_reason'] = _ApiClient["default"].convertToType(data['disabled_reason'], 'String');
111
+ }
112
+ if (data.hasOwnProperty('created_at')) {
113
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
114
+ }
115
+ if (data.hasOwnProperty('updated_at')) {
116
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
117
+ }
118
+ }
119
+ return obj;
120
+ }
121
+
122
+ /**
123
+ * Validates the JSON data with respect to <code>EmailActionCustomization</code>.
124
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
125
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>EmailActionCustomization</code>.
126
+ */
127
+ }, {
128
+ key: "validateJSON",
129
+ value: function validateJSON(data) {
130
+ // check to make sure all required properties are present in the JSON string
131
+ var _iterator = _createForOfIteratorHelper(EmailActionCustomization.RequiredProperties),
132
+ _step;
133
+ try {
134
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
135
+ var property = _step.value;
136
+ if (!data.hasOwnProperty(property)) {
137
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
138
+ }
139
+ }
140
+ // ensure the json data is an array
141
+ } catch (err) {
142
+ _iterator.e(err);
143
+ } finally {
144
+ _iterator.f();
145
+ }
146
+ if (!Array.isArray(data['customized'])) {
147
+ throw new Error("Expected the field `customized` to be an array in the JSON data but got " + data['customized']);
148
+ }
149
+ // ensure the json data is a string
150
+ if (data['last_failure_message'] && !(typeof data['last_failure_message'] === 'string' || data['last_failure_message'] instanceof String)) {
151
+ throw new Error("Expected the field `last_failure_message` to be a primitive type in the JSON string but got " + data['last_failure_message']);
152
+ }
153
+ // ensure the json data is a string
154
+ if (data['disabled_reason'] && !(typeof data['disabled_reason'] === 'string' || data['disabled_reason'] instanceof String)) {
155
+ throw new Error("Expected the field `disabled_reason` to be a primitive type in the JSON string but got " + data['disabled_reason']);
156
+ }
157
+ return true;
158
+ }
159
+ }]);
160
+ }();
161
+ EmailActionCustomization.RequiredProperties = ["enabled", "customized", "consecutive_failures", "failing_since", "last_failure_at", "last_failure_message", "disabled_at", "disabled_reason", "created_at", "updated_at"];
162
+
163
+ /**
164
+ * Whether the account email action sends for this template. It also needs to be on itself (`enabled`).
165
+ * @member {Boolean} enabled
166
+ */
167
+ EmailActionCustomization.prototype['enabled'] = undefined;
168
+
169
+ /**
170
+ * The settings this template changes. The others follow the account email action.
171
+ * @member {Array.<module:model/EmailActionSetting>} customized
172
+ */
173
+ EmailActionCustomization.prototype['customized'] = undefined;
174
+
175
+ /**
176
+ * How many of this template's emails in a row have failed because of a setting it changes.
177
+ * @member {Number} consecutive_failures
178
+ */
179
+ EmailActionCustomization.prototype['consecutive_failures'] = undefined;
180
+
181
+ /**
182
+ * When the current run of those failures started.
183
+ * @member {Date} failing_since
184
+ */
185
+ EmailActionCustomization.prototype['failing_since'] = undefined;
186
+
187
+ /**
188
+ * When one of those emails last failed.
189
+ * @member {Date} last_failure_at
190
+ */
191
+ EmailActionCustomization.prototype['last_failure_at'] = undefined;
192
+
193
+ /**
194
+ * Why it failed.
195
+ * @member {String} last_failure_message
196
+ */
197
+ EmailActionCustomization.prototype['last_failure_message'] = undefined;
198
+
199
+ /**
200
+ * When DocSpring turned the email action off for this template, such as when an address the template added bounced.
201
+ * @member {Date} disabled_at
202
+ */
203
+ EmailActionCustomization.prototype['disabled_at'] = undefined;
204
+
205
+ /**
206
+ * Why DocSpring turned it off for this template.
207
+ * @member {String} disabled_reason
208
+ */
209
+ EmailActionCustomization.prototype['disabled_reason'] = undefined;
210
+
211
+ /**
212
+ * When the template first changed the email action.
213
+ * @member {Date} created_at
214
+ */
215
+ EmailActionCustomization.prototype['created_at'] = undefined;
216
+
217
+ /**
218
+ * When the template's changes last changed.
219
+ * @member {Date} updated_at
220
+ */
221
+ EmailActionCustomization.prototype['updated_at'] = undefined;
222
+ var _default = exports["default"] = EmailActionCustomization;
@@ -0,0 +1,59 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
+ * DocSpring API
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
+ *
19
+ * The version of the OpenAPI document: v2
20
+ *
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * Enum class EmailActionDelivery.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var EmailActionDelivery = exports["default"] = /*#__PURE__*/function () {
33
+ function EmailActionDelivery() {
34
+ _classCallCheck(this, EmailActionDelivery);
35
+ }
36
+ return _createClass(EmailActionDelivery, null, [{
37
+ key: "constructFromObject",
38
+ value:
39
+ /**
40
+ * Returns a <code>EmailActionDelivery</code> enum value from a Javascript object name.
41
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
42
+ * @return {module:model/EmailActionDelivery} The enum <code>EmailActionDelivery</code> value.
43
+ */
44
+ function constructFromObject(object) {
45
+ // Any value, including one added to the API after this client was released
46
+ return object;
47
+ }
48
+ }]);
49
+ }();
50
+ /**
51
+ * value: "attachment"
52
+ * @const
53
+ */
54
+ _defineProperty(EmailActionDelivery, "attachment", "attachment");
55
+ /**
56
+ * value: "link"
57
+ * @const
58
+ */
59
+ _defineProperty(EmailActionDelivery, "link", "link");
@@ -0,0 +1,69 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
16
+ * DocSpring API
17
+ * Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
18
+ *
19
+ * The version of the OpenAPI document: v2
20
+ *
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * Enum class EmailActionFileFormats.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var EmailActionFileFormats = exports["default"] = /*#__PURE__*/function () {
33
+ function EmailActionFileFormats() {
34
+ _classCallCheck(this, EmailActionFileFormats);
35
+ }
36
+ return _createClass(EmailActionFileFormats, null, [{
37
+ key: "constructFromObject",
38
+ value:
39
+ /**
40
+ * Returns a <code>EmailActionFileFormats</code> enum value from a Javascript object name.
41
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
42
+ * @return {module:model/EmailActionFileFormats} The enum <code>EmailActionFileFormats</code> value.
43
+ */
44
+ function constructFromObject(object) {
45
+ // Any value, including one added to the API after this client was released
46
+ return object;
47
+ }
48
+ }]);
49
+ }();
50
+ /**
51
+ * value: "docx"
52
+ * @const
53
+ */
54
+ _defineProperty(EmailActionFileFormats, "docx", "docx");
55
+ /**
56
+ * value: "odt"
57
+ * @const
58
+ */
59
+ _defineProperty(EmailActionFileFormats, "odt", "odt");
60
+ /**
61
+ * value: "pdf"
62
+ * @const
63
+ */
64
+ _defineProperty(EmailActionFileFormats, "pdf", "pdf");
65
+ /**
66
+ * value: "all"
67
+ * @const
68
+ */
69
+ _defineProperty(EmailActionFileFormats, "all", "all");