docspring 3.2.0 → 3.3.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 +1 -1
- package/dist/ApiClient.js +3 -3
- package/dist/api/Client.js +9 -8
- package/dist/index.js +7 -0
- package/dist/model/AddFieldsData.js +2 -2
- package/dist/model/BatchGeneratePdfs201Response.js +15 -2
- package/dist/model/CombinePdfsData.js +3 -3
- package/dist/model/CombinedSubmission.js +8 -3
- package/dist/model/CombinedSubmissionAction.js +2 -2
- package/dist/model/CopyTemplateOptions.js +2 -2
- package/dist/model/CreateCombinedSubmissionResponse.js +27 -2
- package/dist/model/CreateCustomFileData.js +2 -2
- package/dist/model/CreateCustomFileResponse.js +14 -2
- package/dist/model/CreateFolderData.js +2 -2
- package/dist/model/CreateHtmlTemplate.js +2 -2
- package/dist/model/CreatePdfSubmissionData.js +3 -2
- package/dist/model/CreatePdfTemplate.js +2 -2
- package/dist/model/CreateSubmissionDataRequestData.js +2 -2
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +2 -2
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +14 -2
- package/dist/model/CreateSubmissionDataRequestResponse.js +14 -2
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +14 -2
- package/dist/model/CreateSubmissionResponse.js +27 -2
- package/dist/model/CreateWebhookData.js +2 -2
- package/dist/model/CustomFile.js +2 -2
- package/dist/model/ErrorOrMultipleErrorsResponse.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/Folder.js +2 -2
- package/dist/model/ForbiddenErrorResponse.js +173 -0
- package/dist/model/JsonSchema.js +2 -2
- package/dist/model/ListSubmissionsResponse.js +2 -2
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +2 -2
- package/dist/model/MultipleErrorsResponse.js +2 -2
- package/dist/model/PublishVersionData.js +2 -2
- package/dist/model/RenameFolderData.js +2 -2
- package/dist/model/RestoreVersionData.js +2 -2
- package/dist/model/Submission.js +7 -2
- package/dist/model/Submission422Response.js +2 -2
- package/dist/model/SubmissionAction.js +2 -2
- package/dist/model/SubmissionBatch.js +2 -2
- package/dist/model/SubmissionBatchData.js +3 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +2 -2
- package/dist/model/SubmissionDataRequest.js +2 -2
- package/dist/model/SubmissionDataRequestEvent.js +2 -2
- package/dist/model/SubmissionDataRequestShow.js +2 -2
- package/dist/model/SubmissionDataRequestToken.js +2 -2
- package/dist/model/SubmissionPreview.js +7 -2
- package/dist/model/SuccessErrorResponse.js +2 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +2 -2
- package/dist/model/Template.js +2 -2
- package/dist/model/TemplateAddFieldsResponse.js +2 -2
- package/dist/model/TemplateDeleteResponse.js +2 -2
- package/dist/model/TemplateModelCodeResponse.js +2 -2
- package/dist/model/TemplatePreview.js +2 -2
- package/dist/model/TemplatePublishVersionResponse.js +2 -2
- package/dist/model/UpdateHtmlTemplate.js +2 -2
- package/dist/model/UpdatePdfTemplate.js +2 -2
- package/dist/model/UpdateSubmissionDataRequestData.js +2 -2
- package/dist/model/UpdateWebhookData.js +2 -2
- package/dist/model/UploadPresignResponse.js +2 -2
- package/dist/model/Webhook.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ templates with your data, generates PDFs from HTML templates, combines PDFs and
|
|
|
6
6
|
[Documentation](https://docspring.com/docs/) · [API reference](https://docspring.com/docs/api/) ·
|
|
7
7
|
[npm](https://www.npmjs.com/package/docspring) · [Changelog](https://github.com/DocSpring/docspring-javascript/blob/main/CHANGELOG.md)
|
|
8
8
|
|
|
9
|
-
Version 3.
|
|
9
|
+
Version 3.3.0.
|
|
10
10
|
|
|
11
11
|
## Install and configure
|
|
12
12
|
|
package/dist/ApiClient.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
16
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: v1
|
|
19
19
|
*
|
|
@@ -25,7 +25,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* @module ApiClient
|
|
28
|
-
* @version 3.
|
|
28
|
+
* @version 3.3.0
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
31
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -66,7 +66,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
66
66
|
* @default {}
|
|
67
67
|
*/
|
|
68
68
|
this.defaultHeaders = {
|
|
69
|
-
'User-Agent': 'docspring-javascript-3.
|
|
69
|
+
'User-Agent': 'docspring-javascript-3.3.0'
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/**
|
package/dist/api/Client.js
CHANGED
|
@@ -26,6 +26,7 @@ var _CreateWebhookData = _interopRequireDefault(require("../model/CreateWebhookD
|
|
|
26
26
|
var _ErrorOrMultipleErrorsResponse = _interopRequireDefault(require("../model/ErrorOrMultipleErrorsResponse"));
|
|
27
27
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
28
28
|
var _Folder = _interopRequireDefault(require("../model/Folder"));
|
|
29
|
+
var _ForbiddenErrorResponse = _interopRequireDefault(require("../model/ForbiddenErrorResponse"));
|
|
29
30
|
var _JsonSchema = _interopRequireDefault(require("../model/JsonSchema"));
|
|
30
31
|
var _ListSubmissionsResponse = _interopRequireDefault(require("../model/ListSubmissionsResponse"));
|
|
31
32
|
var _MoveFolderData = _interopRequireDefault(require("../model/MoveFolderData"));
|
|
@@ -62,7 +63,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
62
63
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
63
64
|
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); } /**
|
|
64
65
|
* DocSpring API
|
|
65
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
66
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
66
67
|
*
|
|
67
68
|
* The version of the OpenAPI document: v1
|
|
68
69
|
*
|
|
@@ -75,7 +76,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
75
76
|
/**
|
|
76
77
|
* Client service.
|
|
77
78
|
* @module api/Client
|
|
78
|
-
* @version 3.
|
|
79
|
+
* @version 3.3.0
|
|
79
80
|
*/
|
|
80
81
|
var Client = exports["default"] = /*#__PURE__*/function () {
|
|
81
82
|
/**
|
|
@@ -171,7 +172,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
171
172
|
|
|
172
173
|
/**
|
|
173
174
|
* Generate multiple PDFs
|
|
174
|
-
* Generates up to 50 PDFs in a single request. Each submission can use a different template and data. Supports both synchronous (wait for all PDFs) and asynchronous processing. More efficient than individual requests when creating multiple PDFs. See also: - [Batch Generate PDFs](https://docspring.com/docs/api-guide/generate-pdfs/batch-generate-pdfs/) - Request format, responses, and limits
|
|
175
|
+
* Generates up to 50 PDFs in a single request. Each submission can use a different template and data. Supports both synchronous (wait for all PDFs) and asynchronous processing. More efficient than individual requests when creating multiple PDFs. Live PDFs use credits. If any live submission is waiting for credits, the API returns 402 and the others are still processed: check each submission's `state`. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/). See also: - [Batch Generate PDFs](https://docspring.com/docs/api-guide/generate-pdfs/batch-generate-pdfs/) - Request format, responses, and limits
|
|
175
176
|
* @param {module:model/SubmissionBatchData} data
|
|
176
177
|
* @param {Object} opts Optional parameters
|
|
177
178
|
* @param {Boolean} [wait = true)] Wait for submission batch to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
@@ -210,7 +211,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
211
|
|
|
211
212
|
/**
|
|
212
213
|
* Merge submission PDFs, template PDFs, or custom files
|
|
213
|
-
* Combines multiple PDFs from various sources into a single PDF file. Supports merging submission PDFs, template PDFs, custom files, other merged PDFs, and PDFs from URLs. Merges the PDFs in the order provided.
|
|
214
|
+
* Combines multiple PDFs from various sources into a single PDF file. Supports merging submission PDFs, template PDFs, custom files, other merged PDFs, and PDFs from URLs. Merges the PDFs in the order provided. Combining uses credits (4 per source PDF, plus 4 per unit of the combined PDF), even with a test API token or watermarked source PDFs. If your balance can't cover it, the API returns 402 and the combined submission waits in the `insufficient_credits` state until you add credits. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
214
215
|
* @param {module:model/CombinePdfsData} data
|
|
215
216
|
* @param {module:api/Client~combinePdfsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
216
217
|
* data is of type: {@link module:model/CreateCombinedSubmissionResponse}
|
|
@@ -771,7 +772,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
771
772
|
|
|
772
773
|
/**
|
|
773
774
|
* Generate a PDF
|
|
774
|
-
* Creates a PDF submission by filling in a template with data. Supports both synchronous (default) and asynchronous processing. Add the `wait=false` query parameter to return immediately. See also: - [Customize the PDF Title and Filename](https://docspring.com/docs/api-guide/generate-pdfs/customize-pdf-title-and-filename/) - Set custom metadata - [Handling Truncated Text](https://docspring.com/docs/api-guide/generate-pdfs/handle-truncated-text/) - Handle text that doesn't fit in fields
|
|
775
|
+
* Creates a PDF submission by filling in a template with data. Supports both synchronous (default) and asynchronous processing. Add the `wait=false` query parameter to return immediately. Live PDFs use credits; test PDFs (`test: true`) are free and watermarked. If your balance can't cover a live PDF, the API returns 402 and the submission waits in the `insufficient_credits` state until you add credits. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/). See also: - [Customize the PDF Title and Filename](https://docspring.com/docs/api-guide/generate-pdfs/customize-pdf-title-and-filename/) - Set custom metadata - [Handling Truncated Text](https://docspring.com/docs/api-guide/generate-pdfs/handle-truncated-text/) - Handle text that doesn't fit in fields
|
|
775
776
|
* @param {String} template_id
|
|
776
777
|
* @param {module:model/CreatePdfSubmissionData} submission
|
|
777
778
|
* @param {Object} opts Optional parameters
|
|
@@ -853,7 +854,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
853
854
|
|
|
854
855
|
/**
|
|
855
856
|
* Check the status of a combined submission (merged PDFs)
|
|
856
|
-
* Retrieves the details and status of a combined submission. Returns processing state, download URL (if processed), metadata, and information about any integrated actions (e.g., S3 uploads).
|
|
857
|
+
* Retrieves the details and status of a combined submission. Returns processing state, download URL (if processed), metadata, and information about any integrated actions (e.g., S3 uploads). `insufficient_credits` means the combined submission is waiting for credits and is processed once you add them. If it's still waiting after 30 days, it moves to `error`.
|
|
857
858
|
* @param {String} combined_submission_id
|
|
858
859
|
* @param {module:api/Client~getCombinedSubmissionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
859
860
|
* data is of type: {@link module:model/CombinedSubmission}
|
|
@@ -990,7 +991,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
990
991
|
|
|
991
992
|
/**
|
|
992
993
|
* Check the status of a PDF
|
|
993
|
-
* Retrieves the details and status of a PDF submission. Returns processing state, download URL (if processed), metadata, submission data (optional), and information about any integrated actions. Use this to poll for completion when using asynchronous processing.
|
|
994
|
+
* Retrieves the details and status of a PDF submission. Returns processing state, download URL (if processed), metadata, submission data (optional), and information about any integrated actions. Use this to poll for completion when using asynchronous processing. `insufficient_credits` means the submission is waiting for credits and is processed once you add them. If it's still waiting after 30 days, it moves to `error`.
|
|
994
995
|
* @param {String} submission_id
|
|
995
996
|
* @param {Object} opts Optional parameters
|
|
996
997
|
* @param {Boolean} [include_data]
|
|
@@ -1031,7 +1032,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1031
1032
|
|
|
1032
1033
|
/**
|
|
1033
1034
|
* Check the status of a submission batch job
|
|
1034
|
-
* Retrieves the status and results of a batch PDF generation job. Returns processing state, completion statistics, and optionally includes all individual submission details. Use this to poll for completion when using asynchronous batch processing.
|
|
1035
|
+
* Retrieves the status and results of a batch PDF generation job. Returns processing state, completion statistics, and optionally includes all individual submission details. Use this to poll for completion when using asynchronous batch processing. Submissions waiting for credits are in the `insufficient_credits` state and count as pending, so the batch stays `pending` until you add credits or they stop waiting after 30 days.
|
|
1035
1036
|
* @param {String} submission_batch_id
|
|
1036
1037
|
* @param {Object} opts Optional parameters
|
|
1037
1038
|
* @param {Boolean} [include_submissions]
|
package/dist/index.js
CHANGED
|
@@ -159,6 +159,12 @@ Object.defineProperty(exports, "Folder", {
|
|
|
159
159
|
return _Folder["default"];
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "ForbiddenErrorResponse", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _ForbiddenErrorResponse["default"];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
162
168
|
Object.defineProperty(exports, "JsonSchema", {
|
|
163
169
|
enumerable: true,
|
|
164
170
|
get: function get() {
|
|
@@ -382,6 +388,7 @@ var _CustomFile = _interopRequireDefault(require("./model/CustomFile"));
|
|
|
382
388
|
var _ErrorOrMultipleErrorsResponse = _interopRequireDefault(require("./model/ErrorOrMultipleErrorsResponse"));
|
|
383
389
|
var _ErrorResponse = _interopRequireDefault(require("./model/ErrorResponse"));
|
|
384
390
|
var _Folder = _interopRequireDefault(require("./model/Folder"));
|
|
391
|
+
var _ForbiddenErrorResponse = _interopRequireDefault(require("./model/ForbiddenErrorResponse"));
|
|
385
392
|
var _JsonSchema = _interopRequireDefault(require("./model/JsonSchema"));
|
|
386
393
|
var _ListSubmissionsResponse = _interopRequireDefault(require("./model/ListSubmissionsResponse"));
|
|
387
394
|
var _MoveFolderData = _interopRequireDefault(require("./model/MoveFolderData"));
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddFieldsData model module.
|
|
31
31
|
* @module model/AddFieldsData
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var AddFieldsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The BatchGeneratePdfs201Response model module.
|
|
32
32
|
* @module model/BatchGeneratePdfs201Response
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.3.0
|
|
34
34
|
*/
|
|
35
35
|
var BatchGeneratePdfs201Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -87,6 +87,9 @@ var BatchGeneratePdfs201Response = /*#__PURE__*/function () {
|
|
|
87
87
|
if (data.hasOwnProperty('submissions')) {
|
|
88
88
|
obj['submissions'] = _ApiClient["default"].convertToType(data['submissions'], [Object]);
|
|
89
89
|
}
|
|
90
|
+
if (data.hasOwnProperty('code')) {
|
|
91
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
return obj;
|
|
92
95
|
}
|
|
@@ -130,6 +133,10 @@ var BatchGeneratePdfs201Response = /*#__PURE__*/function () {
|
|
|
130
133
|
if (!Array.isArray(data['submissions'])) {
|
|
131
134
|
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
132
135
|
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
|
|
139
|
+
}
|
|
133
140
|
return true;
|
|
134
141
|
}
|
|
135
142
|
}]);
|
|
@@ -161,6 +168,12 @@ BatchGeneratePdfs201Response.prototype['submission_batch'] = undefined;
|
|
|
161
168
|
*/
|
|
162
169
|
BatchGeneratePdfs201Response.prototype['submissions'] = undefined;
|
|
163
170
|
|
|
171
|
+
/**
|
|
172
|
+
* `insufficient_credits` when the response is a 402.
|
|
173
|
+
* @member {String} code
|
|
174
|
+
*/
|
|
175
|
+
BatchGeneratePdfs201Response.prototype['code'] = undefined;
|
|
176
|
+
|
|
164
177
|
/**
|
|
165
178
|
* Allowed values for the <code>status</code> property.
|
|
166
179
|
* @enum {String}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinePdfsData model module.
|
|
31
31
|
* @module model/CombinePdfsData
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinePdfsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -151,7 +151,7 @@ CombinePdfsData.prototype['password'] = undefined;
|
|
|
151
151
|
CombinePdfsData.prototype['source_pdfs'] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* Deprecated, and has no effect.
|
|
154
|
+
* Deprecated, and has no effect. Combining always uses credits, even with a test API token or watermarked source PDFs.
|
|
155
155
|
* @member {Boolean} test
|
|
156
156
|
*/
|
|
157
157
|
CombinePdfsData.prototype['test'] = undefined;
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The CombinedSubmission model module.
|
|
32
32
|
* @module model/CombinedSubmission
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.3.0
|
|
34
34
|
*/
|
|
35
35
|
var CombinedSubmission = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -303,6 +303,11 @@ CombinedSubmission['StateEnum'] = {
|
|
|
303
303
|
* value: "error"
|
|
304
304
|
* @const
|
|
305
305
|
*/
|
|
306
|
-
"error": "error"
|
|
306
|
+
"error": "error",
|
|
307
|
+
/**
|
|
308
|
+
* value: "insufficient_credits"
|
|
309
|
+
* @const
|
|
310
|
+
*/
|
|
311
|
+
"insufficient_credits": "insufficient_credits"
|
|
307
312
|
};
|
|
308
313
|
var _default = exports["default"] = CombinedSubmission;
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinedSubmissionAction model module.
|
|
31
31
|
* @module model/CombinedSubmissionAction
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinedSubmissionAction = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
16
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: v1
|
|
19
19
|
*
|
|
@@ -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.
|
|
29
|
+
* @version 3.3.0
|
|
30
30
|
*/
|
|
31
31
|
var CopyTemplateOptions = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ 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.
|
|
33
|
+
* @version 3.3.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -76,9 +76,15 @@ var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
|
|
|
76
76
|
if (data.hasOwnProperty('combined_submission')) {
|
|
77
77
|
obj['combined_submission'] = _CombinedSubmission["default"].constructFromObject(data['combined_submission']);
|
|
78
78
|
}
|
|
79
|
+
if (data.hasOwnProperty('error')) {
|
|
80
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
|
81
|
+
}
|
|
79
82
|
if (data.hasOwnProperty('errors')) {
|
|
80
83
|
obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
|
|
81
84
|
}
|
|
85
|
+
if (data.hasOwnProperty('code')) {
|
|
86
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
|
|
87
|
+
}
|
|
82
88
|
}
|
|
83
89
|
return obj;
|
|
84
90
|
}
|
|
@@ -110,10 +116,18 @@ var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
|
|
|
110
116
|
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
111
117
|
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
112
118
|
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
122
|
+
}
|
|
113
123
|
// ensure the json data is an array
|
|
114
124
|
if (!Array.isArray(data['errors'])) {
|
|
115
125
|
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
116
126
|
}
|
|
127
|
+
// ensure the json data is a string
|
|
128
|
+
if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']);
|
|
130
|
+
}
|
|
117
131
|
return true;
|
|
118
132
|
}
|
|
119
133
|
}]);
|
|
@@ -130,11 +144,22 @@ CreateCombinedSubmissionResponse.prototype['status'] = undefined;
|
|
|
130
144
|
*/
|
|
131
145
|
CreateCombinedSubmissionResponse.prototype['combined_submission'] = undefined;
|
|
132
146
|
|
|
147
|
+
/**
|
|
148
|
+
* @member {String} error
|
|
149
|
+
*/
|
|
150
|
+
CreateCombinedSubmissionResponse.prototype['error'] = undefined;
|
|
151
|
+
|
|
133
152
|
/**
|
|
134
153
|
* @member {Array.<String>} errors
|
|
135
154
|
*/
|
|
136
155
|
CreateCombinedSubmissionResponse.prototype['errors'] = undefined;
|
|
137
156
|
|
|
157
|
+
/**
|
|
158
|
+
* `insufficient_credits` when the response is a 402.
|
|
159
|
+
* @member {String} code
|
|
160
|
+
*/
|
|
161
|
+
CreateCombinedSubmissionResponse.prototype['code'] = undefined;
|
|
162
|
+
|
|
138
163
|
/**
|
|
139
164
|
* Allowed values for the <code>status</code> property.
|
|
140
165
|
* @enum {String}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -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.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateCustomFileData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ 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.
|
|
33
|
+
* @version 3.3.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateCustomFileResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -76,6 +76,9 @@ var CreateCustomFileResponse = /*#__PURE__*/function () {
|
|
|
76
76
|
if (data.hasOwnProperty('custom_file')) {
|
|
77
77
|
obj['custom_file'] = _CustomFile["default"].constructFromObject(data['custom_file']);
|
|
78
78
|
}
|
|
79
|
+
if (data.hasOwnProperty('error')) {
|
|
80
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
|
81
|
+
}
|
|
79
82
|
if (data.hasOwnProperty('errors')) {
|
|
80
83
|
obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
|
|
81
84
|
}
|
|
@@ -110,6 +113,10 @@ var CreateCustomFileResponse = /*#__PURE__*/function () {
|
|
|
110
113
|
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
111
114
|
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
112
115
|
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
119
|
+
}
|
|
113
120
|
// ensure the json data is an array
|
|
114
121
|
if (!Array.isArray(data['errors'])) {
|
|
115
122
|
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
@@ -130,6 +137,11 @@ CreateCustomFileResponse.prototype['status'] = undefined;
|
|
|
130
137
|
*/
|
|
131
138
|
CreateCustomFileResponse.prototype['custom_file'] = undefined;
|
|
132
139
|
|
|
140
|
+
/**
|
|
141
|
+
* @member {String} error
|
|
142
|
+
*/
|
|
143
|
+
CreateCustomFileResponse.prototype['error'] = undefined;
|
|
144
|
+
|
|
133
145
|
/**
|
|
134
146
|
* @member {Array.<String>} errors
|
|
135
147
|
*/
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -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.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateFolderData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -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.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateHtmlTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -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.
|
|
33
|
+
* @version 3.3.0
|
|
34
34
|
*/
|
|
35
35
|
var CreatePdfSubmissionData = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -191,6 +191,7 @@ CreatePdfSubmissionData.prototype['metadata'] = undefined;
|
|
|
191
191
|
CreatePdfSubmissionData.prototype['password'] = undefined;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
+
* Generate a watermarked test PDF. Test PDFs are free; live PDFs (the default) use credits.
|
|
194
195
|
* @member {Boolean} test
|
|
195
196
|
*/
|
|
196
197
|
CreatePdfSubmissionData.prototype['test'] = undefined;
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -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.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CreatePdfTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
16
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: v1
|
|
19
19
|
*
|
|
@@ -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.
|
|
29
|
+
* @version 3.3.0
|
|
30
30
|
*/
|
|
31
31
|
var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -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, 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
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -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.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|