docspring 2.1.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -48
- package/dist/ApiClient.js +4 -4
- package/dist/api/{PDFApi.js → Client.js} +698 -384
- package/dist/index.js +56 -21
- package/dist/model/AddFieldsData.js +3 -3
- package/dist/model/BatchGeneratePdfs201Response.js +8 -8
- package/dist/model/CombinePdfsData.js +10 -8
- package/dist/model/CombinedSubmission.js +22 -22
- package/dist/model/CombinedSubmissionAction.js +29 -15
- package/dist/model/CopyTemplateOptions.js +19 -30
- package/dist/model/CreateCombinedSubmissionResponse.js +8 -8
- package/dist/model/CreateCustomFileData.js +8 -8
- package/dist/model/CreateCustomFileResponse.js +8 -8
- package/dist/model/CreateFolderData.js +3 -3
- package/dist/model/CreateHtmlTemplate.js +3 -3
- package/dist/model/CreatePdfSubmissionData.js +3 -3
- package/dist/model/CreatePdfTemplate.js +3 -3
- package/dist/model/CreateSubmissionDataRequestData.js +107 -3
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +32 -8
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +3 -3
- package/dist/model/CreateSubmissionDataRequestResponse.js +8 -8
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +3 -3
- package/dist/model/CreateSubmissionResponse.js +3 -3
- package/dist/model/{CombinedSubmissionData.js → CreateWebhookData.js} +28 -68
- package/dist/model/CustomFile.js +3 -3
- package/dist/model/ErrorOrMultipleErrorsResponse.js +151 -0
- package/dist/model/ErrorResponse.js +3 -3
- package/dist/model/Folder.js +8 -8
- package/dist/model/JsonSchema.js +35 -3
- package/dist/model/ListSubmissionsResponse.js +8 -8
- package/dist/model/MoveFolderData.js +3 -3
- package/dist/model/MoveTemplateData.js +20 -8
- package/dist/model/MultipleErrorsResponse.js +3 -3
- package/dist/model/PublishVersionData.js +8 -8
- package/dist/model/RenameFolderData.js +3 -3
- package/dist/model/RestoreVersionData.js +3 -3
- package/dist/model/Submission.js +57 -44
- package/dist/model/Submission422Response.js +165 -0
- package/dist/model/SubmissionAction.js +29 -15
- package/dist/model/SubmissionBatch.js +16 -16
- package/dist/model/SubmissionBatchData.js +27 -3
- package/dist/model/SubmissionBatchWithSubmissions.js +16 -16
- package/dist/model/SubmissionDataRequest.js +53 -34
- package/dist/model/SubmissionDataRequestEvent.js +18 -18
- package/dist/model/SubmissionDataRequestShow.js +55 -36
- package/dist/model/SubmissionDataRequestToken.js +10 -10
- package/dist/model/SubmissionPreview.js +57 -38
- package/dist/model/SuccessErrorResponse.js +3 -3
- package/dist/model/SuccessMultipleErrorsResponse.js +3 -3
- package/dist/model/Template.js +203 -90
- package/dist/model/TemplateAddFieldsResponse.js +3 -3
- package/dist/model/TemplateDeleteResponse.js +3 -3
- package/dist/model/TemplateModelCodeResponse.js +193 -0
- package/dist/model/TemplatePreview.js +167 -78
- package/dist/model/TemplatePublishVersionResponse.js +3 -3
- package/dist/model/UpdateHtmlTemplate.js +3 -3
- package/dist/model/UpdatePdfTemplate.js +108 -0
- package/dist/model/UpdateSubmissionDataRequestData.js +154 -3
- package/dist/model/UpdateWebhookData.js +108 -0
- package/dist/model/UploadPresignResponse.js +3 -3
- package/dist/model/Webhook.js +378 -0
- package/package.json +2 -2
- package/dist/model/CreateHtmlSubmissionData.js +0 -173
|
@@ -15,9 +15,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
|
33
|
+
* @version 3.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateSubmissionResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -14,9 +14,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
*
|
|
@@ -27,19 +27,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
32
|
-
* @version
|
|
30
|
+
* The CreateWebhookData model module.
|
|
31
|
+
* @module model/CreateWebhookData
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
|
-
var
|
|
34
|
+
var CreateWebhookData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
|
-
* Constructs a new <code>
|
|
37
|
-
* @alias module:model/
|
|
38
|
-
* @param
|
|
36
|
+
* Constructs a new <code>CreateWebhookData</code>.
|
|
37
|
+
* @alias module:model/CreateWebhookData
|
|
38
|
+
* @param webhook {Object}
|
|
39
39
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
40
|
+
function CreateWebhookData(webhook) {
|
|
41
|
+
_classCallCheck(this, CreateWebhookData);
|
|
42
|
+
CreateWebhookData.initialize(this, webhook);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -47,53 +47,41 @@ var CombinedSubmissionData = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
return _createClass(
|
|
50
|
+
return _createClass(CreateWebhookData, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj,
|
|
53
|
-
obj['
|
|
52
|
+
value: function initialize(obj, webhook) {
|
|
53
|
+
obj['webhook'] = webhook;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Constructs a <code>
|
|
57
|
+
* Constructs a <code>CreateWebhookData</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
58
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
59
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @param {module:model/
|
|
61
|
-
* @return {module:model/
|
|
60
|
+
* @param {module:model/CreateWebhookData} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/CreateWebhookData} The populated <code>CreateWebhookData</code> instance.
|
|
62
62
|
*/
|
|
63
63
|
}, {
|
|
64
64
|
key: "constructFromObject",
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
|
-
obj = obj || new
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('metadata')) {
|
|
72
|
-
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
|
|
73
|
-
}
|
|
74
|
-
if (data.hasOwnProperty('password')) {
|
|
75
|
-
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
76
|
-
}
|
|
77
|
-
if (data.hasOwnProperty('submission_ids')) {
|
|
78
|
-
obj['submission_ids'] = _ApiClient["default"].convertToType(data['submission_ids'], ['String']);
|
|
79
|
-
}
|
|
80
|
-
if (data.hasOwnProperty('test')) {
|
|
81
|
-
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
67
|
+
obj = obj || new CreateWebhookData();
|
|
68
|
+
if (data.hasOwnProperty('webhook')) {
|
|
69
|
+
obj['webhook'] = _ApiClient["default"].convertToType(data['webhook'], Object);
|
|
82
70
|
}
|
|
83
71
|
}
|
|
84
72
|
return obj;
|
|
85
73
|
}
|
|
86
74
|
|
|
87
75
|
/**
|
|
88
|
-
* Validates the JSON data with respect to <code>
|
|
76
|
+
* Validates the JSON data with respect to <code>CreateWebhookData</code>.
|
|
89
77
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateWebhookData</code>.
|
|
91
79
|
*/
|
|
92
80
|
}, {
|
|
93
81
|
key: "validateJSON",
|
|
94
82
|
value: function validateJSON(data) {
|
|
95
83
|
// check to make sure all required properties are present in the JSON string
|
|
96
|
-
var _iterator = _createForOfIteratorHelper(
|
|
84
|
+
var _iterator = _createForOfIteratorHelper(CreateWebhookData.RequiredProperties),
|
|
97
85
|
_step;
|
|
98
86
|
try {
|
|
99
87
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -102,47 +90,19 @@ var CombinedSubmissionData = /*#__PURE__*/function () {
|
|
|
102
90
|
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
103
91
|
}
|
|
104
92
|
}
|
|
105
|
-
// ensure the json data is a string
|
|
106
93
|
} catch (err) {
|
|
107
94
|
_iterator.e(err);
|
|
108
95
|
} finally {
|
|
109
96
|
_iterator.f();
|
|
110
97
|
}
|
|
111
|
-
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
112
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
113
|
-
}
|
|
114
|
-
// ensure the json data is an array
|
|
115
|
-
if (!Array.isArray(data['submission_ids'])) {
|
|
116
|
-
throw new Error("Expected the field `submission_ids` to be an array in the JSON data but got " + data['submission_ids']);
|
|
117
|
-
}
|
|
118
98
|
return true;
|
|
119
99
|
}
|
|
120
100
|
}]);
|
|
121
101
|
}();
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @member {Number} expires_in
|
|
126
|
-
*/
|
|
127
|
-
CombinedSubmissionData.prototype['expires_in'] = undefined;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @member {Object} metadata
|
|
131
|
-
*/
|
|
132
|
-
CombinedSubmissionData.prototype['metadata'] = undefined;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @member {String} password
|
|
136
|
-
*/
|
|
137
|
-
CombinedSubmissionData.prototype['password'] = undefined;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @member {Array.<String>} submission_ids
|
|
141
|
-
*/
|
|
142
|
-
CombinedSubmissionData.prototype['submission_ids'] = undefined;
|
|
102
|
+
CreateWebhookData.RequiredProperties = ["webhook"];
|
|
143
103
|
|
|
144
104
|
/**
|
|
145
|
-
* @member {
|
|
105
|
+
* @member {Object} webhook
|
|
146
106
|
*/
|
|
147
|
-
|
|
148
|
-
var _default = exports["default"] =
|
|
107
|
+
CreateWebhookData.prototype['webhook'] = undefined;
|
|
108
|
+
var _default = exports["default"] = CreateWebhookData;
|
package/dist/model/CustomFile.js
CHANGED
|
@@ -14,9 +14,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
|
32
|
+
* @version 3.1.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, 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
|
+
* 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.1.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;
|
|
@@ -14,9 +14,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var ErrorResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Folder.js
CHANGED
|
@@ -14,9 +14,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
|
32
|
+
* @version 3.1.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
|
|
41
|
+
* @param parent_folder_id {String}
|
|
42
42
|
*/
|
|
43
|
-
function Folder(id, name, path,
|
|
43
|
+
function Folder(id, name, path, parent_folder_id) {
|
|
44
44
|
_classCallCheck(this, Folder);
|
|
45
|
-
Folder.initialize(this, id, name, path,
|
|
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,
|
|
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'] =
|
|
59
|
+
obj['parent_folder_id'] = parent_folder_id;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
package/dist/model/JsonSchema.js
CHANGED
|
@@ -11,9 +11,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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
|
|
29
|
+
* @version 3.1.0
|
|
30
30
|
*/
|
|
31
31
|
var JsonSchema = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -65,6 +65,9 @@ var JsonSchema = /*#__PURE__*/function () {
|
|
|
65
65
|
if (data.hasOwnProperty('id')) {
|
|
66
66
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
67
67
|
}
|
|
68
|
+
if (data.hasOwnProperty('$id')) {
|
|
69
|
+
obj['$id'] = _ApiClient["default"].convertToType(data['$id'], 'String');
|
|
70
|
+
}
|
|
68
71
|
if (data.hasOwnProperty('title')) {
|
|
69
72
|
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
|
70
73
|
}
|
|
@@ -86,6 +89,12 @@ var JsonSchema = /*#__PURE__*/function () {
|
|
|
86
89
|
if (data.hasOwnProperty('required')) {
|
|
87
90
|
obj['required'] = _ApiClient["default"].convertToType(data['required'], ['String']);
|
|
88
91
|
}
|
|
92
|
+
if (data.hasOwnProperty('dependencies')) {
|
|
93
|
+
obj['dependencies'] = _ApiClient["default"].convertToType(data['dependencies'], Object);
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('allOf')) {
|
|
96
|
+
obj['allOf'] = _ApiClient["default"].convertToType(data['allOf'], [Object]);
|
|
97
|
+
}
|
|
89
98
|
}
|
|
90
99
|
return obj;
|
|
91
100
|
}
|
|
@@ -107,6 +116,10 @@ var JsonSchema = /*#__PURE__*/function () {
|
|
|
107
116
|
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
108
117
|
}
|
|
109
118
|
// ensure the json data is a string
|
|
119
|
+
if (data['$id'] && !(typeof data['$id'] === 'string' || data['$id'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `$id` to be a primitive type in the JSON string but got " + data['$id']);
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
110
123
|
if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
|
|
111
124
|
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
|
|
112
125
|
}
|
|
@@ -122,6 +135,10 @@ var JsonSchema = /*#__PURE__*/function () {
|
|
|
122
135
|
if (!Array.isArray(data['required'])) {
|
|
123
136
|
throw new Error("Expected the field `required` to be an array in the JSON data but got " + data['required']);
|
|
124
137
|
}
|
|
138
|
+
// ensure the json data is an array
|
|
139
|
+
if (!Array.isArray(data['allOf'])) {
|
|
140
|
+
throw new Error("Expected the field `allOf` to be an array in the JSON data but got " + data['allOf']);
|
|
141
|
+
}
|
|
125
142
|
return true;
|
|
126
143
|
}
|
|
127
144
|
}]);
|
|
@@ -136,6 +153,11 @@ JsonSchema.prototype['$schema'] = undefined;
|
|
|
136
153
|
*/
|
|
137
154
|
JsonSchema.prototype['id'] = undefined;
|
|
138
155
|
|
|
156
|
+
/**
|
|
157
|
+
* @member {String} $id
|
|
158
|
+
*/
|
|
159
|
+
JsonSchema.prototype['$id'] = undefined;
|
|
160
|
+
|
|
139
161
|
/**
|
|
140
162
|
* @member {String} title
|
|
141
163
|
*/
|
|
@@ -170,4 +192,14 @@ JsonSchema.prototype['additionalProperties'] = undefined;
|
|
|
170
192
|
* @member {Array.<String>} required
|
|
171
193
|
*/
|
|
172
194
|
JsonSchema.prototype['required'] = undefined;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @member {Object} dependencies
|
|
198
|
+
*/
|
|
199
|
+
JsonSchema.prototype['dependencies'] = undefined;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @member {Array.<Object>} allOf
|
|
203
|
+
*/
|
|
204
|
+
JsonSchema.prototype['allOf'] = undefined;
|
|
173
205
|
var _default = exports["default"] = JsonSchema;
|
|
@@ -15,9 +15,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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 ListSubmissionsResponse model module.
|
|
32
32
|
* @module model/ListSubmissionsResponse
|
|
33
|
-
* @version
|
|
33
|
+
* @version 3.1.0
|
|
34
34
|
*/
|
|
35
35
|
var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -38,11 +38,11 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/ListSubmissionsResponse
|
|
39
39
|
* @param submissions {Array.<module:model/Submission>}
|
|
40
40
|
* @param limit {Number}
|
|
41
|
-
* @param
|
|
41
|
+
* @param next_cursor {String}
|
|
42
42
|
*/
|
|
43
|
-
function ListSubmissionsResponse(submissions, limit,
|
|
43
|
+
function ListSubmissionsResponse(submissions, limit, next_cursor) {
|
|
44
44
|
_classCallCheck(this, ListSubmissionsResponse);
|
|
45
|
-
ListSubmissionsResponse.initialize(this, submissions, limit,
|
|
45
|
+
ListSubmissionsResponse.initialize(this, submissions, limit, next_cursor);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -52,10 +52,10 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(ListSubmissionsResponse, null, [{
|
|
54
54
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj, submissions, limit,
|
|
55
|
+
value: function initialize(obj, submissions, limit, next_cursor) {
|
|
56
56
|
obj['submissions'] = submissions;
|
|
57
57
|
obj['limit'] = limit;
|
|
58
|
-
obj['next_cursor'] =
|
|
58
|
+
obj['next_cursor'] = next_cursor;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -11,9 +11,9 @@ 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,
|
|
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
|
-
* DocSpring
|
|
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 MoveFolderData model module.
|
|
28
28
|
* @module model/MoveFolderData
|
|
29
|
-
* @version
|
|
29
|
+
* @version 3.1.0
|
|
30
30
|
*/
|
|
31
31
|
var MoveFolderData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|