docspring 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +49 -48
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/{PDFApi.js → Client.js} +456 -383
  4. package/dist/index.js +28 -21
  5. package/dist/model/AddFieldsData.js +2 -2
  6. package/dist/model/BatchGeneratePdfs201Response.js +7 -7
  7. package/dist/model/CombinePdfsData.js +7 -7
  8. package/dist/model/CombinedSubmission.js +21 -21
  9. package/dist/model/CombinedSubmissionAction.js +13 -13
  10. package/dist/model/CopyTemplateOptions.js +7 -7
  11. package/dist/model/CreateCombinedSubmissionResponse.js +7 -7
  12. package/dist/model/CreateCustomFileData.js +7 -7
  13. package/dist/model/CreateCustomFileResponse.js +7 -7
  14. package/dist/model/CreateFolderData.js +2 -2
  15. package/dist/model/CreateHtmlTemplate.js +2 -2
  16. package/dist/model/CreatePdfSubmissionData.js +2 -2
  17. package/dist/model/CreatePdfTemplate.js +2 -2
  18. package/dist/model/CreateSubmissionDataRequestData.js +106 -2
  19. package/dist/model/CreateSubmissionDataRequestEventRequest.js +31 -7
  20. package/dist/model/CreateSubmissionDataRequestEventResponse.js +2 -2
  21. package/dist/model/CreateSubmissionDataRequestResponse.js +7 -7
  22. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +2 -2
  23. package/dist/model/CreateSubmissionResponse.js +2 -2
  24. package/dist/model/CustomFile.js +2 -2
  25. package/dist/model/ErrorOrMultipleErrorsResponse.js +151 -0
  26. package/dist/model/ErrorResponse.js +2 -2
  27. package/dist/model/Folder.js +7 -7
  28. package/dist/model/JsonSchema.js +2 -2
  29. package/dist/model/ListSubmissionsResponse.js +7 -7
  30. package/dist/model/MoveFolderData.js +2 -2
  31. package/dist/model/MoveTemplateData.js +7 -7
  32. package/dist/model/MultipleErrorsResponse.js +2 -2
  33. package/dist/model/PublishVersionData.js +7 -7
  34. package/dist/model/RenameFolderData.js +2 -2
  35. package/dist/model/RestoreVersionData.js +2 -2
  36. package/dist/model/Submission.js +35 -35
  37. package/dist/model/Submission422Response.js +165 -0
  38. package/dist/model/SubmissionAction.js +13 -13
  39. package/dist/model/SubmissionBatch.js +15 -15
  40. package/dist/model/SubmissionBatchData.js +26 -2
  41. package/dist/model/SubmissionBatchWithSubmissions.js +15 -15
  42. package/dist/model/SubmissionDataRequest.js +31 -31
  43. package/dist/model/SubmissionDataRequestEvent.js +17 -17
  44. package/dist/model/SubmissionDataRequestShow.js +33 -33
  45. package/dist/model/SubmissionDataRequestToken.js +9 -9
  46. package/dist/model/SubmissionPreview.js +35 -35
  47. package/dist/model/SuccessErrorResponse.js +2 -2
  48. package/dist/model/SuccessMultipleErrorsResponse.js +2 -2
  49. package/dist/model/Template.js +87 -87
  50. package/dist/model/TemplateAddFieldsResponse.js +2 -2
  51. package/dist/model/TemplateDeleteResponse.js +2 -2
  52. package/dist/model/TemplatePreview.js +75 -75
  53. package/dist/model/TemplatePublishVersionResponse.js +2 -2
  54. package/dist/model/UpdateHtmlTemplate.js +2 -2
  55. package/dist/model/{CombinedSubmissionData.js → UpdatePdfTemplate.js} +27 -67
  56. package/dist/model/UpdateSubmissionDataRequestData.js +153 -2
  57. package/dist/model/UploadPresignResponse.js +2 -2
  58. package/package.json +1 -1
  59. package/dist/model/CreateHtmlSubmissionData.js +0 -173
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
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); } /**
15
15
  * DocSpring API
16
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
18
18
  * The version of the OpenAPI document: v1
19
19
  *
@@ -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 2.1.0
29
+ * @version 3.0.0
30
30
  */
31
31
  var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
32
32
  /**
@@ -59,21 +59,48 @@ var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new CreateSubmissionDataRequestData();
62
+ if (data.hasOwnProperty('auth_phone_number_hash')) {
63
+ obj['auth_phone_number_hash'] = _ApiClient["default"].convertToType(data['auth_phone_number_hash'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('auth_provider')) {
66
+ obj['auth_provider'] = _ApiClient["default"].convertToType(data['auth_provider'], 'String');
67
+ }
62
68
  if (data.hasOwnProperty('auth_second_factor_type')) {
63
69
  obj['auth_second_factor_type'] = _ApiClient["default"].convertToType(data['auth_second_factor_type'], 'String');
64
70
  }
71
+ if (data.hasOwnProperty('auth_session_id_hash')) {
72
+ obj['auth_session_id_hash'] = _ApiClient["default"].convertToType(data['auth_session_id_hash'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('auth_session_started_at')) {
75
+ obj['auth_session_started_at'] = _ApiClient["default"].convertToType(data['auth_session_started_at'], 'String');
76
+ }
65
77
  if (data.hasOwnProperty('auth_type')) {
66
78
  obj['auth_type'] = _ApiClient["default"].convertToType(data['auth_type'], 'String');
67
79
  }
80
+ if (data.hasOwnProperty('auth_user_id_hash')) {
81
+ obj['auth_user_id_hash'] = _ApiClient["default"].convertToType(data['auth_user_id_hash'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('auth_username_hash')) {
84
+ obj['auth_username_hash'] = _ApiClient["default"].convertToType(data['auth_username_hash'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('email')) {
87
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
88
+ }
68
89
  if (data.hasOwnProperty('fields')) {
69
90
  obj['fields'] = _ApiClient["default"].convertToType(data['fields'], ['String']);
70
91
  }
71
92
  if (data.hasOwnProperty('metadata')) {
72
93
  obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
73
94
  }
95
+ if (data.hasOwnProperty('name')) {
96
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
97
+ }
74
98
  if (data.hasOwnProperty('order')) {
75
99
  obj['order'] = _ApiClient["default"].convertToType(data['order'], 'Number');
76
100
  }
101
+ if (data.hasOwnProperty('skipped')) {
102
+ obj['skipped'] = _ApiClient["default"].convertToType(data['skipped'], 'Boolean');
103
+ }
77
104
  }
78
105
  return obj;
79
106
  }
@@ -86,32 +113,99 @@ var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
86
113
  }, {
87
114
  key: "validateJSON",
88
115
  value: function validateJSON(data) {
116
+ // ensure the json data is a string
117
+ if (data['auth_phone_number_hash'] && !(typeof data['auth_phone_number_hash'] === 'string' || data['auth_phone_number_hash'] instanceof String)) {
118
+ throw new Error("Expected the field `auth_phone_number_hash` to be a primitive type in the JSON string but got " + data['auth_phone_number_hash']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['auth_provider'] && !(typeof data['auth_provider'] === 'string' || data['auth_provider'] instanceof String)) {
122
+ throw new Error("Expected the field `auth_provider` to be a primitive type in the JSON string but got " + data['auth_provider']);
123
+ }
89
124
  // ensure the json data is a string
90
125
  if (data['auth_second_factor_type'] && !(typeof data['auth_second_factor_type'] === 'string' || data['auth_second_factor_type'] instanceof String)) {
91
126
  throw new Error("Expected the field `auth_second_factor_type` to be a primitive type in the JSON string but got " + data['auth_second_factor_type']);
92
127
  }
93
128
  // ensure the json data is a string
129
+ if (data['auth_session_id_hash'] && !(typeof data['auth_session_id_hash'] === 'string' || data['auth_session_id_hash'] instanceof String)) {
130
+ throw new Error("Expected the field `auth_session_id_hash` to be a primitive type in the JSON string but got " + data['auth_session_id_hash']);
131
+ }
132
+ // ensure the json data is a string
133
+ if (data['auth_session_started_at'] && !(typeof data['auth_session_started_at'] === 'string' || data['auth_session_started_at'] instanceof String)) {
134
+ throw new Error("Expected the field `auth_session_started_at` to be a primitive type in the JSON string but got " + data['auth_session_started_at']);
135
+ }
136
+ // ensure the json data is a string
94
137
  if (data['auth_type'] && !(typeof data['auth_type'] === 'string' || data['auth_type'] instanceof String)) {
95
138
  throw new Error("Expected the field `auth_type` to be a primitive type in the JSON string but got " + data['auth_type']);
96
139
  }
140
+ // ensure the json data is a string
141
+ if (data['auth_user_id_hash'] && !(typeof data['auth_user_id_hash'] === 'string' || data['auth_user_id_hash'] instanceof String)) {
142
+ throw new Error("Expected the field `auth_user_id_hash` to be a primitive type in the JSON string but got " + data['auth_user_id_hash']);
143
+ }
144
+ // ensure the json data is a string
145
+ if (data['auth_username_hash'] && !(typeof data['auth_username_hash'] === 'string' || data['auth_username_hash'] instanceof String)) {
146
+ throw new Error("Expected the field `auth_username_hash` to be a primitive type in the JSON string but got " + data['auth_username_hash']);
147
+ }
148
+ // ensure the json data is a string
149
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
150
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
151
+ }
97
152
  // ensure the json data is an array
98
153
  if (!Array.isArray(data['fields'])) {
99
154
  throw new Error("Expected the field `fields` to be an array in the JSON data but got " + data['fields']);
100
155
  }
156
+ // ensure the json data is a string
157
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
158
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
159
+ }
101
160
  return true;
102
161
  }
103
162
  }]);
104
163
  }();
164
+ /**
165
+ * @member {String} auth_phone_number_hash
166
+ */
167
+ CreateSubmissionDataRequestData.prototype['auth_phone_number_hash'] = undefined;
168
+
169
+ /**
170
+ * @member {String} auth_provider
171
+ */
172
+ CreateSubmissionDataRequestData.prototype['auth_provider'] = undefined;
173
+
105
174
  /**
106
175
  * @member {module:model/CreateSubmissionDataRequestData.AuthSecondFactorTypeEnum} auth_second_factor_type
107
176
  */
108
177
  CreateSubmissionDataRequestData.prototype['auth_second_factor_type'] = undefined;
109
178
 
179
+ /**
180
+ * @member {String} auth_session_id_hash
181
+ */
182
+ CreateSubmissionDataRequestData.prototype['auth_session_id_hash'] = undefined;
183
+
184
+ /**
185
+ * @member {String} auth_session_started_at
186
+ */
187
+ CreateSubmissionDataRequestData.prototype['auth_session_started_at'] = undefined;
188
+
110
189
  /**
111
190
  * @member {module:model/CreateSubmissionDataRequestData.AuthTypeEnum} auth_type
112
191
  */
113
192
  CreateSubmissionDataRequestData.prototype['auth_type'] = undefined;
114
193
 
194
+ /**
195
+ * @member {String} auth_user_id_hash
196
+ */
197
+ CreateSubmissionDataRequestData.prototype['auth_user_id_hash'] = undefined;
198
+
199
+ /**
200
+ * @member {String} auth_username_hash
201
+ */
202
+ CreateSubmissionDataRequestData.prototype['auth_username_hash'] = undefined;
203
+
204
+ /**
205
+ * @member {String} email
206
+ */
207
+ CreateSubmissionDataRequestData.prototype['email'] = undefined;
208
+
115
209
  /**
116
210
  * @member {Array.<String>} fields
117
211
  */
@@ -122,11 +216,21 @@ CreateSubmissionDataRequestData.prototype['fields'] = undefined;
122
216
  */
123
217
  CreateSubmissionDataRequestData.prototype['metadata'] = undefined;
124
218
 
219
+ /**
220
+ * @member {String} name
221
+ */
222
+ CreateSubmissionDataRequestData.prototype['name'] = undefined;
223
+
125
224
  /**
126
225
  * @member {Number} order
127
226
  */
128
227
  CreateSubmissionDataRequestData.prototype['order'] = undefined;
129
228
 
229
+ /**
230
+ * @member {Boolean} skipped
231
+ */
232
+ CreateSubmissionDataRequestData.prototype['skipped'] = undefined;
233
+
130
234
  /**
131
235
  * Allowed values for the <code>auth_second_factor_type</code> property.
132
236
  * @enum {String}
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * DocSpring API
19
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
21
21
  * The version of the OpenAPI document: v1
22
22
  *
@@ -29,17 +29,17 @@ 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 2.1.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CreateSubmissionDataRequestEventRequest</code>.
37
37
  * @alias module:model/CreateSubmissionDataRequestEventRequest
38
- * @param eventType {module:model/CreateSubmissionDataRequestEventRequest.EventTypeEnum}
38
+ * @param event_type {module:model/CreateSubmissionDataRequestEventRequest.EventTypeEnum}
39
39
  */
40
- function CreateSubmissionDataRequestEventRequest(eventType) {
40
+ function CreateSubmissionDataRequestEventRequest(event_type) {
41
41
  _classCallCheck(this, CreateSubmissionDataRequestEventRequest);
42
- CreateSubmissionDataRequestEventRequest.initialize(this, eventType);
42
+ CreateSubmissionDataRequestEventRequest.initialize(this, event_type);
43
43
  }
44
44
 
45
45
  /**
@@ -49,8 +49,8 @@ var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
49
49
  */
50
50
  return _createClass(CreateSubmissionDataRequestEventRequest, null, [{
51
51
  key: "initialize",
52
- value: function initialize(obj, eventType) {
53
- obj['event_type'] = eventType;
52
+ value: function initialize(obj, event_type) {
53
+ obj['event_type'] = event_type;
54
54
  }
55
55
 
56
56
  /**
@@ -68,9 +68,15 @@ var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
68
68
  if (data.hasOwnProperty('event_type')) {
69
69
  obj['event_type'] = _ApiClient["default"].convertToType(data['event_type'], 'String');
70
70
  }
71
+ if (data.hasOwnProperty('message_recipient')) {
72
+ obj['message_recipient'] = _ApiClient["default"].convertToType(data['message_recipient'], 'String');
73
+ }
71
74
  if (data.hasOwnProperty('message_type')) {
72
75
  obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String');
73
76
  }
77
+ if (data.hasOwnProperty('occurred_at')) {
78
+ obj['occurred_at'] = _ApiClient["default"].convertToType(data['occurred_at'], 'String');
79
+ }
74
80
  }
75
81
  return obj;
76
82
  }
@@ -103,9 +109,17 @@ var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
103
109
  throw new Error("Expected the field `event_type` to be a primitive type in the JSON string but got " + data['event_type']);
104
110
  }
105
111
  // ensure the json data is a string
112
+ if (data['message_recipient'] && !(typeof data['message_recipient'] === 'string' || data['message_recipient'] instanceof String)) {
113
+ throw new Error("Expected the field `message_recipient` to be a primitive type in the JSON string but got " + data['message_recipient']);
114
+ }
115
+ // ensure the json data is a string
106
116
  if (data['message_type'] && !(typeof data['message_type'] === 'string' || data['message_type'] instanceof String)) {
107
117
  throw new Error("Expected the field `message_type` to be a primitive type in the JSON string but got " + data['message_type']);
108
118
  }
119
+ // ensure the json data is a string
120
+ if (data['occurred_at'] && !(typeof data['occurred_at'] === 'string' || data['occurred_at'] instanceof String)) {
121
+ throw new Error("Expected the field `occurred_at` to be a primitive type in the JSON string but got " + data['occurred_at']);
122
+ }
109
123
  return true;
110
124
  }
111
125
  }]);
@@ -117,11 +131,21 @@ CreateSubmissionDataRequestEventRequest.RequiredProperties = ["event_type"];
117
131
  */
118
132
  CreateSubmissionDataRequestEventRequest.prototype['event_type'] = undefined;
119
133
 
134
+ /**
135
+ * @member {String} message_recipient
136
+ */
137
+ CreateSubmissionDataRequestEventRequest.prototype['message_recipient'] = undefined;
138
+
120
139
  /**
121
140
  * @member {module:model/CreateSubmissionDataRequestEventRequest.MessageTypeEnum} message_type
122
141
  */
123
142
  CreateSubmissionDataRequestEventRequest.prototype['message_type'] = undefined;
124
143
 
144
+ /**
145
+ * @member {String} occurred_at
146
+ */
147
+ CreateSubmissionDataRequestEventRequest.prototype['occurred_at'] = undefined;
148
+
125
149
  /**
126
150
  * Allowed values for the <code>event_type</code> property.
127
151
  * @enum {String}
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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); } /**
19
19
  * DocSpring API
20
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
22
22
  * The version of the OpenAPI document: v1
23
23
  *
@@ -30,7 +30,7 @@ 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 2.1.0
33
+ * @version 3.0.0
34
34
  */
35
35
  var CreateSubmissionDataRequestEventResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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); } /**
19
19
  * DocSpring API
20
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
22
22
  * The version of the OpenAPI document: v1
23
23
  *
@@ -30,18 +30,18 @@ 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 2.1.0
33
+ * @version 3.0.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
39
  * @param status {module:model/CreateSubmissionDataRequestResponse.StatusEnum}
40
- * @param dataRequest {module:model/SubmissionDataRequestShow}
40
+ * @param data_request {module:model/SubmissionDataRequestShow}
41
41
  */
42
- function CreateSubmissionDataRequestResponse(status, dataRequest) {
42
+ function CreateSubmissionDataRequestResponse(status, data_request) {
43
43
  _classCallCheck(this, CreateSubmissionDataRequestResponse);
44
- CreateSubmissionDataRequestResponse.initialize(this, status, dataRequest);
44
+ CreateSubmissionDataRequestResponse.initialize(this, status, data_request);
45
45
  }
46
46
 
47
47
  /**
@@ -51,9 +51,9 @@ var CreateSubmissionDataRequestResponse = /*#__PURE__*/function () {
51
51
  */
52
52
  return _createClass(CreateSubmissionDataRequestResponse, null, [{
53
53
  key: "initialize",
54
- value: function initialize(obj, status, dataRequest) {
54
+ value: function initialize(obj, status, data_request) {
55
55
  obj['status'] = status;
56
- obj['data_request'] = dataRequest;
56
+ obj['data_request'] = data_request;
57
57
  }
58
58
 
59
59
  /**
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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); } /**
19
19
  * DocSpring API
20
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
22
22
  * The version of the OpenAPI document: v1
23
23
  *
@@ -30,7 +30,7 @@ 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 2.1.0
33
+ * @version 3.0.0
34
34
  */
35
35
  var CreateSubmissionDataRequestTokenResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
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); } /**
19
19
  * DocSpring API
20
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
22
22
  * The version of the OpenAPI document: v1
23
23
  *
@@ -30,7 +30,7 @@ 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 2.1.0
33
+ * @version 3.0.0
34
34
  */
35
35
  var CreateSubmissionResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * DocSpring API
19
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
21
21
  * The version of the OpenAPI document: v1
22
22
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CustomFile model module.
31
31
  * @module model/CustomFile
32
- * @version 2.1.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var CustomFile = /*#__PURE__*/function () {
35
35
  /**
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * DocSpring API
19
+ * Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
20
+ *
21
+ * The version of the OpenAPI document: v1
22
+ *
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The ErrorOrMultipleErrorsResponse model module.
31
+ * @module model/ErrorOrMultipleErrorsResponse
32
+ * @version 3.0.0
33
+ */
34
+ var ErrorOrMultipleErrorsResponse = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>ErrorOrMultipleErrorsResponse</code>.
37
+ * @alias module:model/ErrorOrMultipleErrorsResponse
38
+ * @param status {module:model/ErrorOrMultipleErrorsResponse.StatusEnum}
39
+ */
40
+ function ErrorOrMultipleErrorsResponse(status) {
41
+ _classCallCheck(this, ErrorOrMultipleErrorsResponse);
42
+ ErrorOrMultipleErrorsResponse.initialize(this, status);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(ErrorOrMultipleErrorsResponse, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, status) {
53
+ obj['status'] = status;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>ErrorOrMultipleErrorsResponse</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/ErrorOrMultipleErrorsResponse} obj Optional instance to populate.
61
+ * @return {module:model/ErrorOrMultipleErrorsResponse} The populated <code>ErrorOrMultipleErrorsResponse</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new ErrorOrMultipleErrorsResponse();
68
+ if (data.hasOwnProperty('status')) {
69
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('error')) {
72
+ obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('errors')) {
75
+ obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
76
+ }
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ /**
82
+ * Validates the JSON data with respect to <code>ErrorOrMultipleErrorsResponse</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>ErrorOrMultipleErrorsResponse</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(ErrorOrMultipleErrorsResponse.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
+ // ensure the json data is a string
100
+ } catch (err) {
101
+ _iterator.e(err);
102
+ } finally {
103
+ _iterator.f();
104
+ }
105
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
106
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
107
+ }
108
+ // ensure the json data is a string
109
+ if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
110
+ throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
111
+ }
112
+ // ensure the json data is an array
113
+ if (!Array.isArray(data['errors'])) {
114
+ throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
115
+ }
116
+ return true;
117
+ }
118
+ }]);
119
+ }();
120
+ ErrorOrMultipleErrorsResponse.RequiredProperties = ["status"];
121
+
122
+ /**
123
+ * @member {module:model/ErrorOrMultipleErrorsResponse.StatusEnum} status
124
+ */
125
+ ErrorOrMultipleErrorsResponse.prototype['status'] = undefined;
126
+
127
+ /**
128
+ * Single error message (when only one error occurred)
129
+ * @member {String} error
130
+ */
131
+ ErrorOrMultipleErrorsResponse.prototype['error'] = undefined;
132
+
133
+ /**
134
+ * Array of error messages (when multiple validation errors occurred)
135
+ * @member {Array.<String>} errors
136
+ */
137
+ ErrorOrMultipleErrorsResponse.prototype['errors'] = undefined;
138
+
139
+ /**
140
+ * Allowed values for the <code>status</code> property.
141
+ * @enum {String}
142
+ * @readonly
143
+ */
144
+ ErrorOrMultipleErrorsResponse['StatusEnum'] = {
145
+ /**
146
+ * value: "error"
147
+ * @const
148
+ */
149
+ "error": "error"
150
+ };
151
+ var _default = exports["default"] = ErrorOrMultipleErrorsResponse;
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * DocSpring API
19
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
21
21
  * The version of the OpenAPI document: v1
22
22
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The ErrorResponse model module.
31
31
  * @module model/ErrorResponse
32
- * @version 2.1.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var ErrorResponse = /*#__PURE__*/function () {
35
35
  /**
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * DocSpring API
19
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
21
21
  * The version of the OpenAPI document: v1
22
22
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Folder model module.
31
31
  * @module model/Folder
32
- * @version 2.1.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var Folder = /*#__PURE__*/function () {
35
35
  /**
@@ -38,11 +38,11 @@ var Folder = /*#__PURE__*/function () {
38
38
  * @param id {String}
39
39
  * @param name {String}
40
40
  * @param path {String}
41
- * @param parentFolderId {String}
41
+ * @param parent_folder_id {String}
42
42
  */
43
- function Folder(id, name, path, parentFolderId) {
43
+ function Folder(id, name, path, parent_folder_id) {
44
44
  _classCallCheck(this, Folder);
45
- Folder.initialize(this, id, name, path, parentFolderId);
45
+ Folder.initialize(this, id, name, path, parent_folder_id);
46
46
  }
47
47
 
48
48
  /**
@@ -52,11 +52,11 @@ var Folder = /*#__PURE__*/function () {
52
52
  */
53
53
  return _createClass(Folder, null, [{
54
54
  key: "initialize",
55
- value: function initialize(obj, id, name, path, parentFolderId) {
55
+ value: function initialize(obj, id, name, path, parent_folder_id) {
56
56
  obj['id'] = id;
57
57
  obj['name'] = name;
58
58
  obj['path'] = path;
59
- obj['parent_folder_id'] = parentFolderId;
59
+ obj['parent_folder_id'] = parent_folder_id;
60
60
  }
61
61
 
62
62
  /**
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
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); } /**
15
15
  * DocSpring API
16
- * DocSpring provides an API that helps you fill out and sign PDF templates.
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
  *
18
18
  * The version of the OpenAPI document: v1
19
19
  *
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The JsonSchema model module.
28
28
  * @module model/JsonSchema
29
- * @version 2.1.0
29
+ * @version 3.0.0
30
30
  */
31
31
  var JsonSchema = /*#__PURE__*/function () {
32
32
  /**