docspring 3.1.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 (62) hide show
  1. package/AGENTS.md +33 -0
  2. package/README.md +148 -215
  3. package/dist/ApiClient.js +2 -2
  4. package/dist/api/Client.js +1 -1
  5. package/dist/model/AddFieldsData.js +1 -1
  6. package/dist/model/BatchGeneratePdfs201Response.js +3 -6
  7. package/dist/model/CombinePdfsData.js +1 -1
  8. package/dist/model/CombinedSubmission.js +6 -21
  9. package/dist/model/CombinedSubmissionAction.js +3 -1
  10. package/dist/model/CopyTemplateOptions.js +1 -1
  11. package/dist/model/CreateCombinedSubmissionResponse.js +3 -6
  12. package/dist/model/CreateCustomFileData.js +1 -1
  13. package/dist/model/CreateCustomFileResponse.js +3 -6
  14. package/dist/model/CreateFolderData.js +1 -1
  15. package/dist/model/CreateHtmlTemplate.js +1 -1
  16. package/dist/model/CreatePdfSubmissionData.js +1 -1
  17. package/dist/model/CreatePdfTemplate.js +1 -1
  18. package/dist/model/CreateSubmissionDataRequestData.js +1 -1
  19. package/dist/model/CreateSubmissionDataRequestEventRequest.js +1 -1
  20. package/dist/model/CreateSubmissionDataRequestEventResponse.js +3 -6
  21. package/dist/model/CreateSubmissionDataRequestResponse.js +3 -6
  22. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +3 -6
  23. package/dist/model/CreateSubmissionResponse.js +3 -6
  24. package/dist/model/CreateWebhookData.js +1 -1
  25. package/dist/model/CustomFile.js +3 -1
  26. package/dist/model/ErrorOrMultipleErrorsResponse.js +3 -1
  27. package/dist/model/ErrorResponse.js +3 -1
  28. package/dist/model/Folder.js +3 -1
  29. package/dist/model/JsonSchema.js +1 -1
  30. package/dist/model/ListSubmissionsResponse.js +6 -21
  31. package/dist/model/MoveFolderData.js +1 -1
  32. package/dist/model/MoveTemplateData.js +1 -1
  33. package/dist/model/MultipleErrorsResponse.js +3 -1
  34. package/dist/model/PublishVersionData.js +1 -1
  35. package/dist/model/RenameFolderData.js +1 -1
  36. package/dist/model/RestoreVersionData.js +1 -1
  37. package/dist/model/Submission.js +9 -41
  38. package/dist/model/Submission422Response.js +3 -6
  39. package/dist/model/SubmissionAction.js +3 -1
  40. package/dist/model/SubmissionBatch.js +3 -1
  41. package/dist/model/SubmissionBatchData.js +1 -1
  42. package/dist/model/SubmissionBatchWithSubmissions.js +6 -21
  43. package/dist/model/SubmissionDataRequest.js +3 -1
  44. package/dist/model/SubmissionDataRequestEvent.js +3 -1
  45. package/dist/model/SubmissionDataRequestShow.js +3 -1
  46. package/dist/model/SubmissionDataRequestToken.js +3 -1
  47. package/dist/model/SubmissionPreview.js +9 -41
  48. package/dist/model/SuccessErrorResponse.js +3 -1
  49. package/dist/model/SuccessMultipleErrorsResponse.js +3 -1
  50. package/dist/model/Template.js +17 -5
  51. package/dist/model/TemplateAddFieldsResponse.js +3 -1
  52. package/dist/model/TemplateDeleteResponse.js +3 -1
  53. package/dist/model/TemplateModelCodeResponse.js +3 -1
  54. package/dist/model/TemplatePreview.js +17 -5
  55. package/dist/model/TemplatePublishVersionResponse.js +3 -1
  56. package/dist/model/UpdateHtmlTemplate.js +1 -1
  57. package/dist/model/UpdatePdfTemplate.js +1 -1
  58. package/dist/model/UpdateSubmissionDataRequestData.js +1 -1
  59. package/dist/model/UpdateWebhookData.js +1 -1
  60. package/dist/model/UploadPresignResponse.js +3 -1
  61. package/dist/model/Webhook.js +3 -1
  62. package/package.json +13 -3
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The CopyTemplateOptions model module.
28
28
  * @module model/CopyTemplateOptions
29
- * @version 3.1.0
29
+ * @version 3.2.0
30
30
  */
31
31
  var CopyTemplateOptions = /*#__PURE__*/function () {
32
32
  /**
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateCombinedSubmissionResponse model module.
32
32
  * @module model/CreateCombinedSubmissionResponse
33
- * @version 3.1.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']);
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateCustomFileData model module.
31
31
  * @module model/CreateCustomFileData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateCustomFileData = /*#__PURE__*/function () {
35
35
  /**
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateCustomFileResponse model module.
32
32
  * @module model/CreateCustomFileResponse
33
- * @version 3.1.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']);
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateFolderData model module.
31
31
  * @module model/CreateFolderData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateFolderData = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateHtmlTemplate model module.
31
31
  * @module model/CreateHtmlTemplate
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateHtmlTemplate = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreatePdfSubmissionData model module.
32
32
  * @module model/CreatePdfSubmissionData
33
- * @version 3.1.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var CreatePdfSubmissionData = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreatePdfTemplate model module.
31
31
  * @module model/CreatePdfTemplate
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreatePdfTemplate = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The CreateSubmissionDataRequestData model module.
28
28
  * @module model/CreateSubmissionDataRequestData
29
- * @version 3.1.0
29
+ * @version 3.2.0
30
30
  */
31
31
  var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateSubmissionDataRequestEventRequest model module.
31
31
  * @module model/CreateSubmissionDataRequestEventRequest
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateSubmissionDataRequestEventResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestEventResponse
33
- * @version 3.1.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']);
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateSubmissionDataRequestResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestResponse
33
- * @version 3.1.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']);
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateSubmissionDataRequestTokenResponse model module.
32
32
  * @module model/CreateSubmissionDataRequestTokenResponse
33
- * @version 3.1.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']);
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The CreateSubmissionResponse model module.
32
32
  * @module model/CreateSubmissionResponse
33
- * @version 3.1.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']);
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CreateWebhookData model module.
31
31
  * @module model/CreateWebhookData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CreateWebhookData = /*#__PURE__*/function () {
35
35
  /**
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The CustomFile model module.
31
31
  * @module model/CustomFile
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var CustomFile = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>CustomFile</code>.
37
37
  * @alias module:model/CustomFile
38
+ * @extends Object
38
39
  * @param id {String}
39
40
  * @param url {String}
40
41
  */
@@ -67,6 +68,7 @@ var CustomFile = /*#__PURE__*/function () {
67
68
  value: function constructFromObject(data, obj) {
68
69
  if (data) {
69
70
  obj = obj || new CustomFile();
71
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
70
72
  if (data.hasOwnProperty('id')) {
71
73
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
72
74
  }
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The ErrorOrMultipleErrorsResponse model module.
31
31
  * @module model/ErrorOrMultipleErrorsResponse
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var ErrorOrMultipleErrorsResponse = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>ErrorOrMultipleErrorsResponse</code>.
37
37
  * @alias module:model/ErrorOrMultipleErrorsResponse
38
+ * @extends Object
38
39
  * @param status {module:model/ErrorOrMultipleErrorsResponse.StatusEnum}
39
40
  */
40
41
  function ErrorOrMultipleErrorsResponse(status) {
@@ -65,6 +66,7 @@ var ErrorOrMultipleErrorsResponse = /*#__PURE__*/function () {
65
66
  value: function constructFromObject(data, obj) {
66
67
  if (data) {
67
68
  obj = obj || new ErrorOrMultipleErrorsResponse();
69
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
68
70
  if (data.hasOwnProperty('status')) {
69
71
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
70
72
  }
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The ErrorResponse model module.
31
31
  * @module model/ErrorResponse
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var ErrorResponse = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>ErrorResponse</code>.
37
37
  * @alias module:model/ErrorResponse
38
+ * @extends Object
38
39
  * @param status {module:model/ErrorResponse.StatusEnum}
39
40
  * @param error {String}
40
41
  */
@@ -67,6 +68,7 @@ var ErrorResponse = /*#__PURE__*/function () {
67
68
  value: function constructFromObject(data, obj) {
68
69
  if (data) {
69
70
  obj = obj || new ErrorResponse();
71
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
70
72
  if (data.hasOwnProperty('status')) {
71
73
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
72
74
  }
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The Folder model module.
31
31
  * @module model/Folder
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var Folder = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>Folder</code>.
37
37
  * @alias module:model/Folder
38
+ * @extends Object
38
39
  * @param id {String}
39
40
  * @param name {String}
40
41
  * @param path {String}
@@ -71,6 +72,7 @@ var Folder = /*#__PURE__*/function () {
71
72
  value: function constructFromObject(data, obj) {
72
73
  if (data) {
73
74
  obj = obj || new Folder();
75
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
74
76
  if (data.hasOwnProperty('id')) {
75
77
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
76
78
  }
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The JsonSchema model module.
28
28
  * @module model/JsonSchema
29
- * @version 3.1.0
29
+ * @version 3.2.0
30
30
  */
31
31
  var JsonSchema = /*#__PURE__*/function () {
32
32
  /**
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
30
30
  /**
31
31
  * The ListSubmissionsResponse model module.
32
32
  * @module model/ListSubmissionsResponse
33
- * @version 3.1.0
33
+ * @version 3.2.0
34
34
  */
35
35
  var ListSubmissionsResponse = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>ListSubmissionsResponse</code>.
38
38
  * @alias module:model/ListSubmissionsResponse
39
+ * @extends Object
39
40
  * @param submissions {Array.<module:model/Submission>}
40
41
  * @param limit {Number}
41
42
  * @param next_cursor {String}
@@ -70,6 +71,7 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
70
71
  value: function constructFromObject(data, obj) {
71
72
  if (data) {
72
73
  obj = obj || new ListSubmissionsResponse();
74
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
73
75
  if (data.hasOwnProperty('submissions')) {
74
76
  obj['submissions'] = _ApiClient["default"].convertToType(data['submissions'], [_Submission["default"]]);
75
77
  }
@@ -101,31 +103,14 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
101
103
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
102
104
  }
103
105
  }
106
+ // ensure the json data is an array
104
107
  } catch (err) {
105
108
  _iterator.e(err);
106
109
  } finally {
107
110
  _iterator.f();
108
111
  }
109
- if (data['submissions']) {
110
- // data not null
111
- // ensure the json data is an array
112
- if (!Array.isArray(data['submissions'])) {
113
- throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
114
- }
115
- // validate the optional field `submissions` (array)
116
- var _iterator2 = _createForOfIteratorHelper(data['submissions']),
117
- _step2;
118
- try {
119
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
120
- var item = _step2.value;
121
- _Submission["default"].validateJSON(item);
122
- }
123
- } catch (err) {
124
- _iterator2.e(err);
125
- } finally {
126
- _iterator2.f();
127
- }
128
- ;
112
+ if (!Array.isArray(data['submissions'])) {
113
+ throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
129
114
  }
130
115
  // ensure the json data is a string
131
116
  if (data['next_cursor'] && !(typeof data['next_cursor'] === 'string' || data['next_cursor'] instanceof String)) {
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
26
26
  /**
27
27
  * The MoveFolderData model module.
28
28
  * @module model/MoveFolderData
29
- * @version 3.1.0
29
+ * @version 3.2.0
30
30
  */
31
31
  var MoveFolderData = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The MoveTemplateData model module.
31
31
  * @module model/MoveTemplateData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var MoveTemplateData = /*#__PURE__*/function () {
35
35
  /**
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The MultipleErrorsResponse model module.
31
31
  * @module model/MultipleErrorsResponse
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var MultipleErrorsResponse = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>MultipleErrorsResponse</code>.
37
37
  * @alias module:model/MultipleErrorsResponse
38
+ * @extends Object
38
39
  * @param status {module:model/MultipleErrorsResponse.StatusEnum}
39
40
  * @param errors {Array.<String>}
40
41
  */
@@ -67,6 +68,7 @@ var MultipleErrorsResponse = /*#__PURE__*/function () {
67
68
  value: function constructFromObject(data, obj) {
68
69
  if (data) {
69
70
  obj = obj || new MultipleErrorsResponse();
71
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
70
72
  if (data.hasOwnProperty('status')) {
71
73
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
72
74
  }
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The PublishVersionData model module.
31
31
  * @module model/PublishVersionData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var PublishVersionData = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The RenameFolderData model module.
31
31
  * @module model/RenameFolderData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var RenameFolderData = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
29
29
  /**
30
30
  * The RestoreVersionData model module.
31
31
  * @module model/RestoreVersionData
32
- * @version 3.1.0
32
+ * @version 3.2.0
33
33
  */
34
34
  var RestoreVersionData = /*#__PURE__*/function () {
35
35
  /**
@@ -31,12 +31,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
31
31
  /**
32
32
  * The Submission model module.
33
33
  * @module model/Submission
34
- * @version 3.1.0
34
+ * @version 3.2.0
35
35
  */
36
36
  var Submission = /*#__PURE__*/function () {
37
37
  /**
38
38
  * Constructs a new <code>Submission</code>.
39
39
  * @alias module:model/Submission
40
+ * @extends Object
40
41
  * @param batch_id {String}
41
42
  * @param data_requests {Array.<module:model/SubmissionDataRequest>}
42
43
  * @param editable {Boolean}
@@ -113,6 +114,7 @@ var Submission = /*#__PURE__*/function () {
113
114
  value: function constructFromObject(data, obj) {
114
115
  if (data) {
115
116
  obj = obj || new Submission();
117
+ _ApiClient["default"].constructFromObject(data, obj, 'Object');
116
118
  if (data.hasOwnProperty('batch_id')) {
117
119
  obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
118
120
  }
@@ -225,26 +227,9 @@ var Submission = /*#__PURE__*/function () {
225
227
  if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
226
228
  throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
227
229
  }
228
- if (data['data_requests']) {
229
- // data not null
230
- // ensure the json data is an array
231
- if (!Array.isArray(data['data_requests'])) {
232
- throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
233
- }
234
- // validate the optional field `data_requests` (array)
235
- var _iterator2 = _createForOfIteratorHelper(data['data_requests']),
236
- _step2;
237
- try {
238
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
239
- var item = _step2.value;
240
- _SubmissionDataRequest["default"].validateJSON(item);
241
- }
242
- } catch (err) {
243
- _iterator2.e(err);
244
- } finally {
245
- _iterator2.f();
246
- }
247
- ;
230
+ // ensure the json data is an array
231
+ if (!Array.isArray(data['data_requests'])) {
232
+ throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
248
233
  }
249
234
  // ensure the json data is a string
250
235
  if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
@@ -310,26 +295,9 @@ var Submission = /*#__PURE__*/function () {
310
295
  if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
311
296
  throw new Error("Expected the field `audit_trail_download_url` to be a primitive type in the JSON string but got " + data['audit_trail_download_url']);
312
297
  }
313
- if (data['actions']) {
314
- // data not null
315
- // ensure the json data is an array
316
- if (!Array.isArray(data['actions'])) {
317
- throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
318
- }
319
- // validate the optional field `actions` (array)
320
- var _iterator3 = _createForOfIteratorHelper(data['actions']),
321
- _step3;
322
- try {
323
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
324
- var _item = _step3.value;
325
- _SubmissionAction["default"].validateJSON(_item);
326
- }
327
- } catch (err) {
328
- _iterator3.e(err);
329
- } finally {
330
- _iterator3.f();
331
- }
332
- ;
298
+ // ensure the json data is an array
299
+ if (!Array.isArray(data['actions'])) {
300
+ throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
333
301
  }
334
302
  // ensure the json data is a string
335
303
  if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {