docspring 2.0.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.
- package/README.md +53 -46
- package/dist/ApiClient.js +3 -3
- package/dist/api/{PDFApi.js → Client.js} +534 -372
- package/dist/index.js +52 -17
- package/dist/model/AddFieldsData.js +2 -2
- package/dist/model/BatchGeneratePdfs201Response.js +7 -7
- package/dist/model/CombinePdfsData.js +7 -7
- package/dist/model/CombinedSubmission.js +21 -21
- package/dist/model/CombinedSubmissionAction.js +13 -13
- package/dist/model/CopyTemplateOptions.js +7 -7
- package/dist/model/CreateCombinedSubmissionResponse.js +7 -7
- package/dist/model/CreateCustomFileData.js +7 -7
- package/dist/model/CreateCustomFileResponse.js +7 -7
- package/dist/model/CreateFolderData.js +2 -2
- package/dist/model/CreateHtmlTemplate.js +2 -2
- package/dist/model/CreatePdfSubmissionData.js +14 -2
- package/dist/model/CreatePdfTemplate.js +2 -2
- package/dist/model/CreateSubmissionDataRequestData.js +106 -2
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +31 -7
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +2 -2
- package/dist/model/CreateSubmissionDataRequestResponse.js +7 -7
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +2 -2
- package/dist/model/CreateSubmissionResponse.js +2 -2
- package/dist/model/CustomFile.js +2 -2
- package/dist/model/ErrorOrMultipleErrorsResponse.js +151 -0
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/Folder.js +7 -7
- package/dist/model/JsonSchema.js +2 -2
- package/dist/model/ListSubmissionsResponse.js +7 -7
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +7 -7
- package/dist/model/MultipleErrorsResponse.js +2 -2
- package/dist/model/PublishVersionData.js +124 -0
- package/dist/model/RenameFolderData.js +2 -2
- package/dist/model/RestoreVersionData.js +112 -0
- package/dist/model/Submission.js +78 -32
- package/dist/model/Submission422Response.js +165 -0
- package/dist/model/SubmissionAction.js +13 -13
- package/dist/model/SubmissionBatch.js +15 -15
- package/dist/model/SubmissionBatchData.js +26 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +15 -15
- package/dist/model/SubmissionDataRequest.js +31 -31
- package/dist/model/SubmissionDataRequestEvent.js +17 -17
- package/dist/model/SubmissionDataRequestShow.js +33 -33
- package/dist/model/SubmissionDataRequestToken.js +9 -9
- package/dist/model/SubmissionPreview.js +78 -32
- package/dist/model/SuccessErrorResponse.js +2 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +2 -2
- package/dist/model/Template.js +194 -78
- package/dist/model/TemplateAddFieldsResponse.js +2 -2
- package/dist/model/TemplateDeleteResponse.js +166 -0
- package/dist/model/TemplatePreview.js +168 -66
- package/dist/model/{CombinedSubmissionData.js → TemplatePublishVersionResponse.js} +56 -52
- package/dist/model/UpdateHtmlTemplate.js +2 -2
- package/dist/model/UpdatePdfTemplate.js +108 -0
- package/dist/model/UpdateSubmissionDataRequestData.js +153 -2
- package/dist/model/UploadPresignResponse.js +2 -2
- package/package.json +1 -1
- package/dist/model/CreateHtmlSubmissionData.js +0 -161
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _SubmissionPreview = _interopRequireDefault(require("./SubmissionPreview"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, 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
|
+
* DocSpring API
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: v1
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The Submission422Response model module.
|
|
32
|
+
* @module model/Submission422Response
|
|
33
|
+
* @version 3.0.0
|
|
34
|
+
*/
|
|
35
|
+
var Submission422Response = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>Submission422Response</code>.
|
|
38
|
+
* @alias module:model/Submission422Response
|
|
39
|
+
* @param status {module:model/Submission422Response.StatusEnum}
|
|
40
|
+
*/
|
|
41
|
+
function Submission422Response(status) {
|
|
42
|
+
_classCallCheck(this, Submission422Response);
|
|
43
|
+
Submission422Response.initialize(this, status);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(Submission422Response, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, status) {
|
|
54
|
+
obj['status'] = status;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>Submission422Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/Submission422Response} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/Submission422Response} The populated <code>Submission422Response</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new Submission422Response();
|
|
69
|
+
if (data.hasOwnProperty('status')) {
|
|
70
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('error')) {
|
|
73
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('submission')) {
|
|
76
|
+
obj['submission'] = _SubmissionPreview["default"].constructFromObject(data['submission']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('errors')) {
|
|
79
|
+
obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Validates the JSON data with respect to <code>Submission422Response</code>.
|
|
87
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
88
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Submission422Response</code>.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "validateJSON",
|
|
92
|
+
value: function validateJSON(data) {
|
|
93
|
+
// check to make sure all required properties are present in the JSON string
|
|
94
|
+
var _iterator = _createForOfIteratorHelper(Submission422Response.RequiredProperties),
|
|
95
|
+
_step;
|
|
96
|
+
try {
|
|
97
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
98
|
+
var property = _step.value;
|
|
99
|
+
if (!data.hasOwnProperty(property)) {
|
|
100
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_iterator.e(err);
|
|
106
|
+
} finally {
|
|
107
|
+
_iterator.f();
|
|
108
|
+
}
|
|
109
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
115
|
+
}
|
|
116
|
+
// validate the optional field `submission`
|
|
117
|
+
if (data['submission']) {
|
|
118
|
+
// data not null
|
|
119
|
+
_SubmissionPreview["default"].validateJSON(data['submission']);
|
|
120
|
+
}
|
|
121
|
+
// ensure the json data is an array
|
|
122
|
+
if (!Array.isArray(data['errors'])) {
|
|
123
|
+
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
124
|
+
}
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
}]);
|
|
128
|
+
}();
|
|
129
|
+
Submission422Response.RequiredProperties = ["status"];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @member {module:model/Submission422Response.StatusEnum} status
|
|
133
|
+
*/
|
|
134
|
+
Submission422Response.prototype['status'] = undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Single error message (for non-validation errors)
|
|
138
|
+
* @member {String} error
|
|
139
|
+
*/
|
|
140
|
+
Submission422Response.prototype['error'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @member {module:model/SubmissionPreview} submission
|
|
144
|
+
*/
|
|
145
|
+
Submission422Response.prototype['submission'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Array of validation error messages (when submission data is invalid)
|
|
149
|
+
* @member {Array.<String>} errors
|
|
150
|
+
*/
|
|
151
|
+
Submission422Response.prototype['errors'] = undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Allowed values for the <code>status</code> property.
|
|
155
|
+
* @enum {String}
|
|
156
|
+
* @readonly
|
|
157
|
+
*/
|
|
158
|
+
Submission422Response['StatusEnum'] = {
|
|
159
|
+
/**
|
|
160
|
+
* value: "error"
|
|
161
|
+
* @const
|
|
162
|
+
*/
|
|
163
|
+
"error": "error"
|
|
164
|
+
};
|
|
165
|
+
var _default = exports["default"] = Submission422Response;
|
|
@@ -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
|
|
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,22 +29,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionAction model module.
|
|
31
31
|
* @module model/SubmissionAction
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionAction = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionAction</code>.
|
|
37
37
|
* @alias module:model/SubmissionAction
|
|
38
38
|
* @param id {String}
|
|
39
|
-
* @param
|
|
39
|
+
* @param integration_id {String}
|
|
40
40
|
* @param state {module:model/SubmissionAction.StateEnum}
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
41
|
+
* @param action_type {module:model/SubmissionAction.ActionTypeEnum}
|
|
42
|
+
* @param action_category {module:model/SubmissionAction.ActionCategoryEnum}
|
|
43
|
+
* @param result_data {Object}
|
|
44
44
|
*/
|
|
45
|
-
function SubmissionAction(id,
|
|
45
|
+
function SubmissionAction(id, integration_id, state, action_type, action_category, result_data) {
|
|
46
46
|
_classCallCheck(this, SubmissionAction);
|
|
47
|
-
SubmissionAction.initialize(this, id,
|
|
47
|
+
SubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -54,13 +54,13 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(SubmissionAction, null, [{
|
|
56
56
|
key: "initialize",
|
|
57
|
-
value: function initialize(obj, id,
|
|
57
|
+
value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data) {
|
|
58
58
|
obj['id'] = id;
|
|
59
|
-
obj['integration_id'] =
|
|
59
|
+
obj['integration_id'] = integration_id;
|
|
60
60
|
obj['state'] = state;
|
|
61
|
-
obj['action_type'] =
|
|
62
|
-
obj['action_category'] =
|
|
63
|
-
obj['result_data'] =
|
|
61
|
+
obj['action_type'] = action_type;
|
|
62
|
+
obj['action_category'] = action_category;
|
|
63
|
+
obj['result_data'] = result_data;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -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
|
|
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 SubmissionBatch model module.
|
|
31
31
|
* @module model/SubmissionBatch
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatch = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -38,15 +38,15 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
38
38
|
* @param id {String}
|
|
39
39
|
* @param state {module:model/SubmissionBatch.StateEnum}
|
|
40
40
|
* @param metadata {Object}
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
41
|
+
* @param processed_at {String}
|
|
42
|
+
* @param total_count {Number}
|
|
43
|
+
* @param pending_count {Number}
|
|
44
|
+
* @param error_count {Number}
|
|
45
|
+
* @param completion_percentage {Number}
|
|
46
46
|
*/
|
|
47
|
-
function SubmissionBatch(id, state, metadata,
|
|
47
|
+
function SubmissionBatch(id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
48
48
|
_classCallCheck(this, SubmissionBatch);
|
|
49
|
-
SubmissionBatch.initialize(this, id, state, metadata,
|
|
49
|
+
SubmissionBatch.initialize(this, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -56,15 +56,15 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
56
56
|
*/
|
|
57
57
|
return _createClass(SubmissionBatch, null, [{
|
|
58
58
|
key: "initialize",
|
|
59
|
-
value: function initialize(obj, id, state, metadata,
|
|
59
|
+
value: function initialize(obj, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
60
60
|
obj['id'] = id;
|
|
61
61
|
obj['state'] = state;
|
|
62
62
|
obj['metadata'] = metadata;
|
|
63
|
-
obj['processed_at'] =
|
|
64
|
-
obj['total_count'] =
|
|
65
|
-
obj['pending_count'] =
|
|
66
|
-
obj['error_count'] =
|
|
67
|
-
obj['completion_percentage'] =
|
|
63
|
+
obj['processed_at'] = processed_at;
|
|
64
|
+
obj['total_count'] = total_count;
|
|
65
|
+
obj['pending_count'] = pending_count;
|
|
66
|
+
obj['error_count'] = error_count;
|
|
67
|
+
obj['completion_percentage'] = completion_percentage;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -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
|
|
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 SubmissionBatchData model module.
|
|
31
31
|
* @module model/SubmissionBatchData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatchData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -71,6 +71,12 @@ var SubmissionBatchData = /*#__PURE__*/function () {
|
|
|
71
71
|
if (data.hasOwnProperty('submissions')) {
|
|
72
72
|
obj['submissions'] = _ApiClient["default"].convertToType(data['submissions'], [Object]);
|
|
73
73
|
}
|
|
74
|
+
if (data.hasOwnProperty('template_id')) {
|
|
75
|
+
obj['template_id'] = _ApiClient["default"].convertToType(data['template_id'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('template_version')) {
|
|
78
|
+
obj['template_version'] = _ApiClient["default"].convertToType(data['template_version'], 'String');
|
|
79
|
+
}
|
|
74
80
|
if (data.hasOwnProperty('test')) {
|
|
75
81
|
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
76
82
|
}
|
|
@@ -105,6 +111,14 @@ var SubmissionBatchData = /*#__PURE__*/function () {
|
|
|
105
111
|
if (!Array.isArray(data['submissions'])) {
|
|
106
112
|
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
107
113
|
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
if (data['template_id'] && !(typeof data['template_id'] === 'string' || data['template_id'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `template_id` to be a primitive type in the JSON string but got " + data['template_id']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['template_version'] && !(typeof data['template_version'] === 'string' || data['template_version'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `template_version` to be a primitive type in the JSON string but got " + data['template_version']);
|
|
121
|
+
}
|
|
108
122
|
return true;
|
|
109
123
|
}
|
|
110
124
|
}]);
|
|
@@ -121,6 +135,16 @@ SubmissionBatchData.prototype['metadata'] = undefined;
|
|
|
121
135
|
*/
|
|
122
136
|
SubmissionBatchData.prototype['submissions'] = undefined;
|
|
123
137
|
|
|
138
|
+
/**
|
|
139
|
+
* @member {String} template_id
|
|
140
|
+
*/
|
|
141
|
+
SubmissionBatchData.prototype['template_id'] = undefined;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @member {String} template_version
|
|
145
|
+
*/
|
|
146
|
+
SubmissionBatchData.prototype['template_version'] = undefined;
|
|
147
|
+
|
|
124
148
|
/**
|
|
125
149
|
* @member {Boolean} test
|
|
126
150
|
*/
|
|
@@ -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
|
|
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 SubmissionBatchWithSubmissions model module.
|
|
32
32
|
* @module model/SubmissionBatchWithSubmissions
|
|
33
|
-
* @version
|
|
33
|
+
* @version 3.0.0
|
|
34
34
|
*/
|
|
35
35
|
var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -39,15 +39,15 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
39
39
|
* @param id {String}
|
|
40
40
|
* @param state {module:model/SubmissionBatchWithSubmissions.StateEnum}
|
|
41
41
|
* @param metadata {Object}
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
42
|
+
* @param processed_at {String}
|
|
43
|
+
* @param total_count {Number}
|
|
44
|
+
* @param pending_count {Number}
|
|
45
|
+
* @param error_count {Number}
|
|
46
|
+
* @param completion_percentage {Number}
|
|
47
47
|
*/
|
|
48
|
-
function SubmissionBatchWithSubmissions(id, state, metadata,
|
|
48
|
+
function SubmissionBatchWithSubmissions(id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
49
49
|
_classCallCheck(this, SubmissionBatchWithSubmissions);
|
|
50
|
-
SubmissionBatchWithSubmissions.initialize(this, id, state, metadata,
|
|
50
|
+
SubmissionBatchWithSubmissions.initialize(this, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -57,15 +57,15 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
57
57
|
*/
|
|
58
58
|
return _createClass(SubmissionBatchWithSubmissions, null, [{
|
|
59
59
|
key: "initialize",
|
|
60
|
-
value: function initialize(obj, id, state, metadata,
|
|
60
|
+
value: function initialize(obj, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
61
61
|
obj['id'] = id;
|
|
62
62
|
obj['state'] = state;
|
|
63
63
|
obj['metadata'] = metadata;
|
|
64
|
-
obj['processed_at'] =
|
|
65
|
-
obj['total_count'] =
|
|
66
|
-
obj['pending_count'] =
|
|
67
|
-
obj['error_count'] =
|
|
68
|
-
obj['completion_percentage'] =
|
|
64
|
+
obj['processed_at'] = processed_at;
|
|
65
|
+
obj['total_count'] = total_count;
|
|
66
|
+
obj['pending_count'] = pending_count;
|
|
67
|
+
obj['error_count'] = error_count;
|
|
68
|
+
obj['completion_percentage'] = completion_percentage;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -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
|
|
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 SubmissionDataRequest model module.
|
|
31
31
|
* @module model/SubmissionDataRequest
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -39,27 +39,27 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
39
39
|
* @param email {String}
|
|
40
40
|
* @param name {String}
|
|
41
41
|
* @param order {Number}
|
|
42
|
-
* @param
|
|
42
|
+
* @param sort_order {Number}
|
|
43
43
|
* @param fields {Array.<String>}
|
|
44
44
|
* @param metadata {Object}
|
|
45
45
|
* @param state {module:model/SubmissionDataRequest.StateEnum}
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
46
|
+
* @param viewed_at {String}
|
|
47
|
+
* @param completed_at {String}
|
|
48
48
|
* @param data {Object}
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
49
|
+
* @param auth_type {module:model/SubmissionDataRequest.AuthTypeEnum}
|
|
50
|
+
* @param auth_second_factor_type {module:model/SubmissionDataRequest.AuthSecondFactorTypeEnum}
|
|
51
|
+
* @param auth_provider {String}
|
|
52
|
+
* @param auth_session_started_at {String}
|
|
53
|
+
* @param auth_session_id_hash {String}
|
|
54
|
+
* @param auth_user_id_hash {String}
|
|
55
|
+
* @param auth_username_hash {String}
|
|
56
|
+
* @param auth_phone_number_hash {String}
|
|
57
|
+
* @param ip_address {String}
|
|
58
|
+
* @param user_agent {String}
|
|
59
59
|
*/
|
|
60
|
-
function SubmissionDataRequest(id, email, name, order,
|
|
60
|
+
function SubmissionDataRequest(id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
61
61
|
_classCallCheck(this, SubmissionDataRequest);
|
|
62
|
-
SubmissionDataRequest.initialize(this, id, email, name, order,
|
|
62
|
+
SubmissionDataRequest.initialize(this, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
@@ -69,28 +69,28 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
69
69
|
*/
|
|
70
70
|
return _createClass(SubmissionDataRequest, null, [{
|
|
71
71
|
key: "initialize",
|
|
72
|
-
value: function initialize(obj, id, email, name, order,
|
|
72
|
+
value: function initialize(obj, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
73
73
|
obj['id'] = id;
|
|
74
74
|
obj['email'] = email;
|
|
75
75
|
obj['name'] = name;
|
|
76
76
|
obj['order'] = order;
|
|
77
|
-
obj['sort_order'] =
|
|
77
|
+
obj['sort_order'] = sort_order;
|
|
78
78
|
obj['fields'] = fields;
|
|
79
79
|
obj['metadata'] = metadata;
|
|
80
80
|
obj['state'] = state;
|
|
81
|
-
obj['viewed_at'] =
|
|
82
|
-
obj['completed_at'] =
|
|
81
|
+
obj['viewed_at'] = viewed_at;
|
|
82
|
+
obj['completed_at'] = completed_at;
|
|
83
83
|
obj['data'] = data;
|
|
84
|
-
obj['auth_type'] =
|
|
85
|
-
obj['auth_second_factor_type'] =
|
|
86
|
-
obj['auth_provider'] =
|
|
87
|
-
obj['auth_session_started_at'] =
|
|
88
|
-
obj['auth_session_id_hash'] =
|
|
89
|
-
obj['auth_user_id_hash'] =
|
|
90
|
-
obj['auth_username_hash'] =
|
|
91
|
-
obj['auth_phone_number_hash'] =
|
|
92
|
-
obj['ip_address'] =
|
|
93
|
-
obj['user_agent'] =
|
|
84
|
+
obj['auth_type'] = auth_type;
|
|
85
|
+
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
86
|
+
obj['auth_provider'] = auth_provider;
|
|
87
|
+
obj['auth_session_started_at'] = auth_session_started_at;
|
|
88
|
+
obj['auth_session_id_hash'] = auth_session_id_hash;
|
|
89
|
+
obj['auth_user_id_hash'] = auth_user_id_hash;
|
|
90
|
+
obj['auth_username_hash'] = auth_username_hash;
|
|
91
|
+
obj['auth_phone_number_hash'] = auth_phone_number_hash;
|
|
92
|
+
obj['ip_address'] = ip_address;
|
|
93
|
+
obj['user_agent'] = user_agent;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
@@ -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
|
|
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,23 +29,23 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequestEvent model module.
|
|
31
31
|
* @module model/SubmissionDataRequestEvent
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestEvent</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestEvent
|
|
38
38
|
* @param id {String}
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
39
|
+
* @param submission_id {String}
|
|
40
|
+
* @param submission_data_request_id {String}
|
|
41
|
+
* @param event_type {module:model/SubmissionDataRequestEvent.EventTypeEnum}
|
|
42
|
+
* @param message_type {module:model/SubmissionDataRequestEvent.MessageTypeEnum}
|
|
43
|
+
* @param message_recipient {String}
|
|
44
|
+
* @param occurred_at {String}
|
|
45
45
|
*/
|
|
46
|
-
function SubmissionDataRequestEvent(id,
|
|
46
|
+
function SubmissionDataRequestEvent(id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at) {
|
|
47
47
|
_classCallCheck(this, SubmissionDataRequestEvent);
|
|
48
|
-
SubmissionDataRequestEvent.initialize(this, id,
|
|
48
|
+
SubmissionDataRequestEvent.initialize(this, id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -55,14 +55,14 @@ var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
|
55
55
|
*/
|
|
56
56
|
return _createClass(SubmissionDataRequestEvent, null, [{
|
|
57
57
|
key: "initialize",
|
|
58
|
-
value: function initialize(obj, id,
|
|
58
|
+
value: function initialize(obj, id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at) {
|
|
59
59
|
obj['id'] = id;
|
|
60
|
-
obj['submission_id'] =
|
|
61
|
-
obj['submission_data_request_id'] =
|
|
62
|
-
obj['event_type'] =
|
|
63
|
-
obj['message_type'] =
|
|
64
|
-
obj['message_recipient'] =
|
|
65
|
-
obj['occurred_at'] =
|
|
60
|
+
obj['submission_id'] = submission_id;
|
|
61
|
+
obj['submission_data_request_id'] = submission_data_request_id;
|
|
62
|
+
obj['event_type'] = event_type;
|
|
63
|
+
obj['message_type'] = message_type;
|
|
64
|
+
obj['message_recipient'] = message_recipient;
|
|
65
|
+
obj['occurred_at'] = occurred_at;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|