docspring 3.0.0 → 3.2.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 (63) hide show
  1. package/AGENTS.md +33 -0
  2. package/README.md +148 -205
  3. package/dist/ApiClient.js +3 -3
  4. package/dist/api/Client.js +249 -8
  5. package/dist/index.js +28 -0
  6. package/dist/model/AddFieldsData.js +2 -2
  7. package/dist/model/BatchGeneratePdfs201Response.js +4 -7
  8. package/dist/model/CombinePdfsData.js +4 -2
  9. package/dist/model/CombinedSubmission.js +7 -22
  10. package/dist/model/CombinedSubmissionAction.js +22 -6
  11. package/dist/model/CopyTemplateOptions.js +18 -29
  12. package/dist/model/CreateCombinedSubmissionResponse.js +4 -7
  13. package/dist/model/CreateCustomFileData.js +2 -2
  14. package/dist/model/CreateCustomFileResponse.js +4 -7
  15. package/dist/model/CreateFolderData.js +2 -2
  16. package/dist/model/CreateHtmlTemplate.js +2 -2
  17. package/dist/model/CreatePdfSubmissionData.js +2 -2
  18. package/dist/model/CreatePdfTemplate.js +2 -2
  19. package/dist/model/CreateSubmissionDataRequestData.js +2 -2
  20. package/dist/model/CreateSubmissionDataRequestEventRequest.js +2 -2
  21. package/dist/model/CreateSubmissionDataRequestEventResponse.js +4 -7
  22. package/dist/model/CreateSubmissionDataRequestResponse.js +4 -7
  23. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +4 -7
  24. package/dist/model/CreateSubmissionResponse.js +4 -7
  25. package/dist/model/CreateWebhookData.js +108 -0
  26. package/dist/model/CustomFile.js +4 -2
  27. package/dist/model/ErrorOrMultipleErrorsResponse.js +4 -2
  28. package/dist/model/ErrorResponse.js +4 -2
  29. package/dist/model/Folder.js +4 -2
  30. package/dist/model/JsonSchema.js +34 -2
  31. package/dist/model/ListSubmissionsResponse.js +7 -22
  32. package/dist/model/MoveFolderData.js +2 -2
  33. package/dist/model/MoveTemplateData.js +14 -2
  34. package/dist/model/MultipleErrorsResponse.js +4 -2
  35. package/dist/model/PublishVersionData.js +2 -2
  36. package/dist/model/RenameFolderData.js +2 -2
  37. package/dist/model/RestoreVersionData.js +2 -2
  38. package/dist/model/Submission.js +34 -53
  39. package/dist/model/Submission422Response.js +4 -7
  40. package/dist/model/SubmissionAction.js +22 -6
  41. package/dist/model/SubmissionBatch.js +4 -2
  42. package/dist/model/SubmissionBatchData.js +2 -2
  43. package/dist/model/SubmissionBatchWithSubmissions.js +7 -22
  44. package/dist/model/SubmissionDataRequest.js +28 -7
  45. package/dist/model/SubmissionDataRequestEvent.js +4 -2
  46. package/dist/model/SubmissionDataRequestShow.js +28 -7
  47. package/dist/model/SubmissionDataRequestToken.js +4 -2
  48. package/dist/model/SubmissionPreview.js +34 -47
  49. package/dist/model/SuccessErrorResponse.js +4 -2
  50. package/dist/model/SuccessMultipleErrorsResponse.js +4 -2
  51. package/dist/model/Template.js +132 -7
  52. package/dist/model/TemplateAddFieldsResponse.js +4 -2
  53. package/dist/model/TemplateDeleteResponse.js +4 -2
  54. package/dist/model/TemplateModelCodeResponse.js +195 -0
  55. package/dist/model/TemplatePreview.js +108 -7
  56. package/dist/model/TemplatePublishVersionResponse.js +4 -2
  57. package/dist/model/UpdateHtmlTemplate.js +2 -2
  58. package/dist/model/UpdatePdfTemplate.js +2 -2
  59. package/dist/model/UpdateSubmissionDataRequestData.js +2 -2
  60. package/dist/model/UpdateWebhookData.js +108 -0
  61. package/dist/model/UploadPresignResponse.js +4 -2
  62. package/dist/model/Webhook.js +380 -0
  63. package/package.json +14 -4
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,22 +29,24 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CombinedSubmissionAction model module.
31
31
  * @module model/CombinedSubmissionAction
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CombinedSubmissionAction = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CombinedSubmissionAction</code>.
37
37
  * @alias module:model/CombinedSubmissionAction
38
+ * @extends Object
38
39
  * @param id {String}
39
40
  * @param integration_id {String}
40
41
  * @param state {module:model/CombinedSubmissionAction.StateEnum}
41
42
  * @param action_type {module:model/CombinedSubmissionAction.ActionTypeEnum}
42
43
  * @param action_category {module:model/CombinedSubmissionAction.ActionCategoryEnum}
43
44
  * @param result_data {Object}
45
+ * @param error_message {String}
44
46
  */
45
- function CombinedSubmissionAction(id, integration_id, state, action_type, action_category, result_data) {
47
+ function CombinedSubmissionAction(id, integration_id, state, action_type, action_category, result_data, error_message) {
46
48
  _classCallCheck(this, CombinedSubmissionAction);
47
- CombinedSubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data);
49
+ CombinedSubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data, error_message);
48
50
  }
49
51
 
50
52
  /**
@@ -54,13 +56,14 @@ var CombinedSubmissionAction = /*#__PURE__*/function () {
54
56
  */
55
57
  return _createClass(CombinedSubmissionAction, null, [{
56
58
  key: "initialize",
57
- value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data) {
59
+ value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data, error_message) {
58
60
  obj['id'] = id;
59
61
  obj['integration_id'] = integration_id;
60
62
  obj['state'] = state;
61
63
  obj['action_type'] = action_type;
62
64
  obj['action_category'] = action_category;
63
65
  obj['result_data'] = result_data;
66
+ obj['error_message'] = error_message;
64
67
  }
65
68
 
66
69
  /**
@@ -75,6 +78,7 @@ var CombinedSubmissionAction = /*#__PURE__*/function () {
75
78
  value: function constructFromObject(data, obj) {
76
79
  if (data) {
77
80
  obj = obj || new CombinedSubmissionAction();
81
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
78
82
  if (data.hasOwnProperty('id')) {
79
83
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
80
84
  }
@@ -93,6 +97,9 @@ var CombinedSubmissionAction = /*#__PURE__*/function () {
93
97
  if (data.hasOwnProperty('result_data')) {
94
98
  obj['result_data'] = _ApiClient["default"].convertToType(data['result_data'], Object);
95
99
  }
100
+ if (data.hasOwnProperty('error_message')) {
101
+ obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
102
+ }
96
103
  }
97
104
  return obj;
98
105
  }
@@ -140,11 +147,15 @@ var CombinedSubmissionAction = /*#__PURE__*/function () {
140
147
  if (data['action_category'] && !(typeof data['action_category'] === 'string' || data['action_category'] instanceof String)) {
141
148
  throw new Error("Expected the field `action_category` to be a primitive type in the JSON string but got " + data['action_category']);
142
149
  }
150
+ // ensure the json data is a string
151
+ if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
152
+ throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
153
+ }
143
154
  return true;
144
155
  }
145
156
  }]);
146
157
  }();
147
- CombinedSubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data"];
158
+ CombinedSubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data", "error_message"];
148
159
 
149
160
  /**
150
161
  * @member {String} id
@@ -176,6 +187,11 @@ CombinedSubmissionAction.prototype['action_category'] = undefined;
176
187
  */
177
188
  CombinedSubmissionAction.prototype['result_data'] = undefined;
178
189
 
190
+ /**
191
+ * @member {String} error_message
192
+ */
193
+ CombinedSubmissionAction.prototype['error_message'] = undefined;
194
+
179
195
  /**
180
196
  * Allowed values for the <code>state</code> property.
181
197
  * @enum {String}
@@ -7,14 +7,11 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
10
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
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); } }
15
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
14
+ 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); } /**
18
15
  * DocSpring API
19
16
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
17
  *
@@ -29,17 +26,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
26
  /**
30
27
  * The CopyTemplateOptions model module.
31
28
  * @module model/CopyTemplateOptions
32
- * @version 3.0.0
29
+ * @version 3.2.0
33
30
  */
34
31
  var CopyTemplateOptions = /*#__PURE__*/function () {
35
32
  /**
36
33
  * Constructs a new <code>CopyTemplateOptions</code>.
37
34
  * @alias module:model/CopyTemplateOptions
38
- * @param parent_folder_id {String}
39
35
  */
40
- function CopyTemplateOptions(parent_folder_id) {
36
+ function CopyTemplateOptions() {
41
37
  _classCallCheck(this, CopyTemplateOptions);
42
- CopyTemplateOptions.initialize(this, parent_folder_id);
38
+ CopyTemplateOptions.initialize(this);
43
39
  }
44
40
 
45
41
  /**
@@ -49,9 +45,7 @@ var CopyTemplateOptions = /*#__PURE__*/function () {
49
45
  */
50
46
  return _createClass(CopyTemplateOptions, null, [{
51
47
  key: "initialize",
52
- value: function initialize(obj, parent_folder_id) {
53
- obj['parent_folder_id'] = parent_folder_id;
54
- }
48
+ value: function initialize(obj) {}
55
49
 
56
50
  /**
57
51
  * Constructs a <code>CopyTemplateOptions</code> from a plain JavaScript object, optionally creating a new instance.
@@ -71,6 +65,9 @@ var CopyTemplateOptions = /*#__PURE__*/function () {
71
65
  if (data.hasOwnProperty('parent_folder_id')) {
72
66
  obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
73
67
  }
68
+ if (data.hasOwnProperty('version')) {
69
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
70
+ }
74
71
  }
75
72
  return obj;
76
73
  }
@@ -83,22 +80,7 @@ var CopyTemplateOptions = /*#__PURE__*/function () {
83
80
  }, {
84
81
  key: "validateJSON",
85
82
  value: function validateJSON(data) {
86
- // check to make sure all required properties are present in the JSON string
87
- var _iterator = _createForOfIteratorHelper(CopyTemplateOptions.RequiredProperties),
88
- _step;
89
- try {
90
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
91
- var property = _step.value;
92
- if (!data.hasOwnProperty(property)) {
93
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
- }
95
- }
96
- // ensure the json data is a string
97
- } catch (err) {
98
- _iterator.e(err);
99
- } finally {
100
- _iterator.f();
101
- }
83
+ // ensure the json data is a string
102
84
  if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
103
85
  throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
104
86
  }
@@ -106,12 +88,14 @@ var CopyTemplateOptions = /*#__PURE__*/function () {
106
88
  if (data['parent_folder_id'] && !(typeof data['parent_folder_id'] === 'string' || data['parent_folder_id'] instanceof String)) {
107
89
  throw new Error("Expected the field `parent_folder_id` to be a primitive type in the JSON string but got " + data['parent_folder_id']);
108
90
  }
91
+ // ensure the json data is a string
92
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
93
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
94
+ }
109
95
  return true;
110
96
  }
111
97
  }]);
112
98
  }();
113
- CopyTemplateOptions.RequiredProperties = ["parent_folder_id"];
114
-
115
99
  /**
116
100
  * @member {String} name
117
101
  */
@@ -121,4 +105,9 @@ CopyTemplateOptions.prototype['name'] = undefined;
121
105
  * @member {String} parent_folder_id
122
106
  */
123
107
  CopyTemplateOptions.prototype['parent_folder_id'] = undefined;
108
+
109
+ /**
110
+ * @member {String} version
111
+ */
112
+ CopyTemplateOptions.prototype['version'] = undefined;
124
113
  var _default = exports["default"] = CopyTemplateOptions;
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateCombinedSubmissionResponse model module.
32
32
  * @module model/CreateCombinedSubmissionResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateCombinedSubmissionResponse</code>.
38
38
  * @alias module:model/CreateCombinedSubmissionResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateCombinedSubmissionResponse.StatusEnum}
40
41
  * @param combined_submission {module:model/CombinedSubmission}
41
42
  */
@@ -68,6 +69,7 @@ var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateCombinedSubmissionResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `combined_submission`
112
- if (data['combined_submission']) {
113
- // data not null
114
- _CombinedSubmission["default"].validateJSON(data['combined_submission']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateCustomFileData model module.
31
31
  * @module model/CreateCustomFileData
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateCustomFileData = /*#__PURE__*/function () {
35
35
  /**
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateCustomFileResponse model module.
32
32
  * @module model/CreateCustomFileResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateCustomFileResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateCustomFileResponse</code>.
38
38
  * @alias module:model/CreateCustomFileResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateCustomFileResponse.StatusEnum}
40
41
  * @param custom_file {module:model/CustomFile}
41
42
  */
@@ -68,6 +69,7 @@ var CreateCustomFileResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateCustomFileResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateCustomFileResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `custom_file`
112
- if (data['custom_file']) {
113
- // data not null
114
- _CustomFile["default"].validateJSON(data['custom_file']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateFolderData model module.
31
31
  * @module model/CreateFolderData
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateFolderData = /*#__PURE__*/function () {
35
35
  /**
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateHtmlTemplate model module.
31
31
  * @module model/CreateHtmlTemplate
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateHtmlTemplate = /*#__PURE__*/function () {
35
35
  /**
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreatePdfSubmissionData model module.
32
32
  * @module model/CreatePdfSubmissionData
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreatePdfSubmissionData = /*#__PURE__*/function () {
36
36
  /**
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreatePdfTemplate model module.
31
31
  * @module model/CreatePdfTemplate
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreatePdfTemplate = /*#__PURE__*/function () {
35
35
  /**
@@ -11,7 +11,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
11
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
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
14
+ 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); } /**
15
15
  * DocSpring API
16
16
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
17
17
  *
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The CreateSubmissionDataRequestData model module.
28
28
  * @module model/CreateSubmissionDataRequestData
29
- * @version 3.0.0
29
+ * @version 3.2.0
30
30
  */
31
31
  var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
32
32
  /**
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ 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); } /**
18
18
  * DocSpring API
19
19
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateSubmissionDataRequestEventRequest model module.
31
31
  * @module model/CreateSubmissionDataRequestEventRequest
32
- * @version 3.0.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateSubmissionDataRequestEventResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestEventResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateSubmissionDataRequestEventResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateSubmissionDataRequestEventResponse</code>.
38
38
  * @alias module:model/CreateSubmissionDataRequestEventResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateSubmissionDataRequestEventResponse.StatusEnum}
40
41
  * @param event {module:model/SubmissionDataRequestEvent}
41
42
  */
@@ -68,6 +69,7 @@ var CreateSubmissionDataRequestEventResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateSubmissionDataRequestEventResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateSubmissionDataRequestEventResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `event`
112
- if (data['event']) {
113
- // data not null
114
- _SubmissionDataRequestEvent["default"].validateJSON(data['event']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateSubmissionDataRequestResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateSubmissionDataRequestResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateSubmissionDataRequestResponse</code>.
38
38
  * @alias module:model/CreateSubmissionDataRequestResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateSubmissionDataRequestResponse.StatusEnum}
40
41
  * @param data_request {module:model/SubmissionDataRequestShow}
41
42
  */
@@ -68,6 +69,7 @@ var CreateSubmissionDataRequestResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateSubmissionDataRequestResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateSubmissionDataRequestResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `data_request`
112
- if (data['data_request']) {
113
- // data not null
114
- _SubmissionDataRequestShow["default"].validateJSON(data['data_request']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateSubmissionDataRequestTokenResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestTokenResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateSubmissionDataRequestTokenResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateSubmissionDataRequestTokenResponse</code>.
38
38
  * @alias module:model/CreateSubmissionDataRequestTokenResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateSubmissionDataRequestTokenResponse.StatusEnum}
40
41
  * @param token {module:model/SubmissionDataRequestToken}
41
42
  */
@@ -68,6 +69,7 @@ var CreateSubmissionDataRequestTokenResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateSubmissionDataRequestTokenResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateSubmissionDataRequestTokenResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `token`
112
- if (data['token']) {
113
- // data not null
114
- _SubmissionDataRequestToken["default"].validateJSON(data['token']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
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
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ 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
19
  * DocSpring API
20
20
  * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
21
21
  *
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The CreateSubmissionResponse model module.
32
32
  * @module model/CreateSubmissionResponse
33
- * @version 3.0.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreateSubmissionResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>CreateSubmissionResponse</code>.
38
38
  * @alias module:model/CreateSubmissionResponse
39
+ * @extends Object
39
40
  * @param status {module:model/CreateSubmissionResponse.StatusEnum}
40
41
  * @param submission {module:model/SubmissionPreview}
41
42
  */
@@ -68,6 +69,7 @@ var CreateSubmissionResponse = /*#__PURE__*/function () {
68
69
  value: function constructFromObject(data, obj) {
69
70
  if (data) {
70
71
  obj = obj || new CreateSubmissionResponse();
72
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
71
73
  if (data.hasOwnProperty('status')) {
72
74
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
73
75
  }
@@ -108,11 +110,6 @@ var CreateSubmissionResponse = /*#__PURE__*/function () {
108
110
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
109
111
  throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
110
112
  }
111
- // validate the optional field `submission`
112
- if (data['submission']) {
113
- // data not null
114
- _SubmissionPreview["default"].validateJSON(data['submission']);
115
- }
116
113
  // ensure the json data is an array
117
114
  if (!Array.isArray(data['errors'])) {
118
115
  throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);