docspring 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +3 -2
- package/README.md +4 -1
- package/dist/ApiClient.js +2 -2
- package/dist/RequestSchemas.js +75 -8
- package/dist/WebhookSignature.js +86 -0
- package/dist/api/Client.js +147 -15
- package/dist/index.js +42 -0
- package/dist/model/AddTemplateFieldsRequest.js +1 -1
- package/dist/model/AuthenticationCheck.js +1 -1
- package/dist/model/CombinedPdf.js +3 -3
- package/dist/model/CombinedPdfFiles.js +1 -1
- package/dist/model/CombinedPdfList.js +1 -1
- package/dist/model/CombinedPdfSource.js +1 -1
- package/dist/model/CombinedPdfSourceInput.js +1 -1
- package/dist/model/CombinedPdfSourcePdf.js +1 -1
- package/dist/model/CopyTemplateRequest.js +1 -1
- package/dist/model/CreateCombinedPdfRequest.js +2 -2
- package/dist/model/CreateCustomFileFromUploadRequest.js +1 -1
- package/dist/model/CreateFolderRequest.js +1 -1
- package/dist/model/CreateSignatureRequestEventRequest.js +1 -1
- package/dist/model/CreateSignatureRequestTokenRequest.js +1 -1
- package/dist/model/CreateSubmissionBatchRequest.js +1 -1
- package/dist/model/CreateSubmissionRequest.js +3 -3
- package/dist/model/CreateTemplatePreviewRequest.js +112 -0
- package/dist/model/CreateTemplateRequest.js +11 -2
- package/dist/model/CreateWebhookRequest.js +1 -1
- package/dist/model/CustomFile.js +1 -1
- package/dist/model/CustomFileList.js +1 -1
- package/dist/model/CustomFileSourcePdf.js +1 -1
- package/dist/model/ErrorCode.js +11 -1
- package/dist/model/ErrorDetail.js +2 -2
- package/dist/model/ErrorInfo.js +6 -6
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/Field.js +1 -1
- package/dist/model/FieldComparisonCondition.js +1 -1
- package/dist/model/FieldDependency.js +1 -1
- package/dist/model/FieldDependencyInput.js +1 -1
- package/dist/model/FieldEqualsCondition.js +1 -1
- package/dist/model/FieldGroup.js +1 -1
- package/dist/model/FieldGroupInput.js +1 -1
- package/dist/model/FieldInCondition.js +1 -1
- package/dist/model/FieldInput.js +1 -1
- package/dist/model/FieldOverride.js +1 -1
- package/dist/model/FieldPresenceCondition.js +1 -1
- package/dist/model/FieldRangeCondition.js +1 -1
- package/dist/model/Folder.js +1 -1
- package/dist/model/FolderList.js +1 -1
- package/dist/model/GenerateSubmissionFilesRequest.js +1 -1
- package/dist/model/GeneratedFile.js +1 -1
- package/dist/model/HtmlEngineOptions.js +1 -1
- package/dist/model/HtmlEngineOptionsInput.js +1 -1
- package/dist/model/MoveFolderRequest.js +1 -1
- package/dist/model/MoveTemplateRequest.js +1 -1
- package/dist/model/PageImage.js +1 -1
- package/dist/model/PageImages.js +1 -1
- package/dist/model/PredefinedField.js +1 -1
- package/dist/model/PredefinedFieldInput.js +1 -1
- package/dist/model/PublishTemplateVersionRequest.js +1 -1
- package/dist/model/RemoveTemplateFieldsRequest.js +1 -1
- package/dist/model/RenameFolderRequest.js +1 -1
- package/dist/model/ReorderTemplateFieldsRequest.js +1 -1
- package/dist/model/RestoreTemplateVersionRequest.js +1 -1
- package/dist/model/SignatureRequest.js +1 -1
- package/dist/model/SignatureRequestEvent.js +1 -1
- package/dist/model/SignatureRequestInput.js +1 -1
- package/dist/model/SignatureRequestToken.js +1 -1
- package/dist/model/Submission.js +75 -75
- package/dist/model/SubmissionAction.js +1 -1
- package/dist/model/SubmissionBatch.js +1 -1
- package/dist/model/SubmissionFiles.js +1 -1
- package/dist/model/SubmissionInput.js +3 -3
- package/dist/model/SubmissionList.js +5 -5
- package/dist/model/SubmissionSourcePdf.js +1 -1
- package/dist/model/SubmissionSummary.js +343 -0
- package/dist/model/SubmissionValidation.js +1 -1
- package/dist/model/Template.js +68 -57
- package/dist/model/TemplateActor.js +3 -3
- package/dist/model/TemplateDefaults.js +1 -1
- package/dist/model/TemplateDefaultsInput.js +1 -1
- package/dist/model/TemplateDiff.js +1 -1
- package/dist/model/TemplateDiffSummary.js +1 -1
- package/dist/model/TemplateDocument.js +33 -33
- package/dist/model/TemplateDocumentSummary.js +152 -0
- package/dist/model/TemplateFieldChange.js +1 -1
- package/dist/model/TemplateFieldChanges.js +1 -1
- package/dist/model/TemplateFieldDependency.js +1 -1
- package/dist/model/TemplateFieldDependencyCondition.js +1 -1
- package/dist/model/TemplateFieldDependencyConditionInput.js +1 -1
- package/dist/model/TemplateFieldDependencyInput.js +1 -1
- package/dist/model/TemplateFieldMove.js +1 -1
- package/dist/model/TemplateFields.js +1 -1
- package/dist/model/TemplateModelCode.js +1 -1
- package/dist/model/TemplatePageImages.js +1 -1
- package/dist/model/TemplatePageProcessingStatus.js +1 -1
- package/dist/model/TemplatePreview.js +211 -0
- package/dist/model/TemplatePreviewState.js +64 -0
- package/dist/model/TemplateSourcePdf.js +1 -1
- package/dist/model/TemplateSummary.js +14 -288
- package/dist/model/TemplateSummaryList.js +1 -1
- package/dist/model/TemplateVersion.js +1 -1
- package/dist/model/UpdateSignatureRequestRequest.js +1 -1
- package/dist/model/UpdateTemplateDocumentRequest.js +1 -1
- package/dist/model/UpdateTemplateFieldsRequest.js +1 -1
- package/dist/model/UpdateTemplateRequest.js +11 -2
- package/dist/model/UpdateWebhookRequest.js +1 -1
- package/dist/model/UploadPresign.js +1 -1
- package/dist/model/UrlSourcePdf.js +1 -1
- package/dist/model/ValidateSubmissionRequest.js +3 -3
- package/dist/model/Webhook.js +1 -1
- package/dist/model/WebhookList.js +1 -1
- package/package.json +3 -2
package/dist/api/Client.js
CHANGED
|
@@ -18,6 +18,7 @@ var _CreateSignatureRequestEventRequest = _interopRequireDefault(require("../mod
|
|
|
18
18
|
var _CreateSignatureRequestTokenRequest = _interopRequireDefault(require("../model/CreateSignatureRequestTokenRequest"));
|
|
19
19
|
var _CreateSubmissionBatchRequest = _interopRequireDefault(require("../model/CreateSubmissionBatchRequest"));
|
|
20
20
|
var _CreateSubmissionRequest = _interopRequireDefault(require("../model/CreateSubmissionRequest"));
|
|
21
|
+
var _CreateTemplatePreviewRequest = _interopRequireDefault(require("../model/CreateTemplatePreviewRequest"));
|
|
21
22
|
var _CreateTemplateRequest = _interopRequireDefault(require("../model/CreateTemplateRequest"));
|
|
22
23
|
var _CreateWebhookRequest = _interopRequireDefault(require("../model/CreateWebhookRequest"));
|
|
23
24
|
var _CustomFile = _interopRequireDefault(require("../model/CustomFile"));
|
|
@@ -43,12 +44,14 @@ var _SignatureRequestToken = _interopRequireDefault(require("../model/SignatureR
|
|
|
43
44
|
var _Submission = _interopRequireDefault(require("../model/Submission"));
|
|
44
45
|
var _SubmissionBatch = _interopRequireDefault(require("../model/SubmissionBatch"));
|
|
45
46
|
var _SubmissionList = _interopRequireDefault(require("../model/SubmissionList"));
|
|
47
|
+
var _SubmissionState = _interopRequireDefault(require("../model/SubmissionState"));
|
|
46
48
|
var _SubmissionValidation = _interopRequireDefault(require("../model/SubmissionValidation"));
|
|
47
49
|
var _Template = _interopRequireDefault(require("../model/Template"));
|
|
48
50
|
var _TemplateDiff = _interopRequireDefault(require("../model/TemplateDiff"));
|
|
49
51
|
var _TemplateFields = _interopRequireDefault(require("../model/TemplateFields"));
|
|
50
52
|
var _TemplateModelCode = _interopRequireDefault(require("../model/TemplateModelCode"));
|
|
51
53
|
var _TemplatePageImages = _interopRequireDefault(require("../model/TemplatePageImages"));
|
|
54
|
+
var _TemplatePreview = _interopRequireDefault(require("../model/TemplatePreview"));
|
|
52
55
|
var _TemplateSummaryList = _interopRequireDefault(require("../model/TemplateSummaryList"));
|
|
53
56
|
var _TemplateVersion = _interopRequireDefault(require("../model/TemplateVersion"));
|
|
54
57
|
var _UpdateSignatureRequestRequest = _interopRequireDefault(require("../model/UpdateSignatureRequestRequest"));
|
|
@@ -83,7 +86,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
83
86
|
/**
|
|
84
87
|
* Client service.
|
|
85
88
|
* @module api/Client
|
|
86
|
-
* @version 4.
|
|
89
|
+
* @version 4.2.0
|
|
87
90
|
*/
|
|
88
91
|
var Client = exports["default"] = /*#__PURE__*/function () {
|
|
89
92
|
/**
|
|
@@ -238,6 +241,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
238
241
|
* @param {module:model/CreateCombinedPdfRequest} body The PDFs to merge, and the combined PDF's settings.
|
|
239
242
|
* @param {Object} opts Optional parameters
|
|
240
243
|
* @param {Boolean} [wait] Wait until the PDF has been generated before responding. Default true on sync.api hosts.
|
|
244
|
+
* @param {String} [idempotencyKey] A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another combined PDF. Send a new key with each new combined PDF, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
241
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CombinedPdf} and HTTP response
|
|
242
246
|
*/
|
|
243
247
|
}, {
|
|
@@ -253,7 +257,9 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
253
257
|
var queryParams = {
|
|
254
258
|
'wait': opts['wait']
|
|
255
259
|
};
|
|
256
|
-
var headerParams = {
|
|
260
|
+
var headerParams = {
|
|
261
|
+
'Idempotency-Key': opts['idempotencyKey']
|
|
262
|
+
};
|
|
257
263
|
var formParams = {};
|
|
258
264
|
var authNames = ['api_token_basic'];
|
|
259
265
|
var contentTypes = ['application/json'];
|
|
@@ -268,6 +274,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
268
274
|
* @param {module:model/CreateCombinedPdfRequest} body The PDFs to merge, and the combined PDF's settings.
|
|
269
275
|
* @param {Object} opts Optional parameters
|
|
270
276
|
* @param {Boolean} opts.wait Wait until the PDF has been generated before responding. Default true on sync.api hosts.
|
|
277
|
+
* @param {String} opts.idempotencyKey A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another combined PDF. Send a new key with each new combined PDF, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
271
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CombinedPdf}
|
|
272
279
|
*/
|
|
273
280
|
}, {
|
|
@@ -358,7 +365,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
358
365
|
|
|
359
366
|
/**
|
|
360
367
|
* Record a signature request event
|
|
361
|
-
* Records something that happened outside DocSpring in the signature request's audit trail: you sent the request to the person (`send_request`). The audit trail shows it as reported by your account.
|
|
368
|
+
* Records something that happened outside DocSpring in the signature request's audit trail: you sent the request to the person (`send_request`). The audit trail shows it as reported by your account. A finished (completed, declined or expired) signature request's audit trail takes no more events, and a test API token can't record one for a live signature request.
|
|
362
369
|
* @param {String} signature_request_id The signature request's ID.
|
|
363
370
|
* @param {module:model/CreateSignatureRequestEventRequest} body The event to record.
|
|
364
371
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignatureRequestEvent} and HTTP response
|
|
@@ -390,7 +397,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
397
|
|
|
391
398
|
/**
|
|
392
399
|
* Record a signature request event
|
|
393
|
-
* Records something that happened outside DocSpring in the signature request's audit trail: you sent the request to the person (`send_request`). The audit trail shows it as reported by your account.
|
|
400
|
+
* Records something that happened outside DocSpring in the signature request's audit trail: you sent the request to the person (`send_request`). The audit trail shows it as reported by your account. A finished (completed, declined or expired) signature request's audit trail takes no more events, and a test API token can't record one for a live signature request.
|
|
394
401
|
* @param {String} signature_request_id The signature request's ID.
|
|
395
402
|
* @param {module:model/CreateSignatureRequestEventRequest} body The event to record.
|
|
396
403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignatureRequestEvent}
|
|
@@ -457,6 +464,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
457
464
|
* @param {Object} opts Optional parameters
|
|
458
465
|
* @param {String} [version] The template version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `latest` (the draft when no version has been published).
|
|
459
466
|
* @param {Boolean} [wait] Wait until the files have been generated before responding. Default true on sync.api hosts.
|
|
467
|
+
* @param {String} [idempotencyKey] A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another submission. Send a new key with each new submission, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
460
468
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Submission} and HTTP response
|
|
461
469
|
*/
|
|
462
470
|
}, {
|
|
@@ -479,7 +487,9 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
479
487
|
'version': opts['version'],
|
|
480
488
|
'wait': opts['wait']
|
|
481
489
|
};
|
|
482
|
-
var headerParams = {
|
|
490
|
+
var headerParams = {
|
|
491
|
+
'Idempotency-Key': opts['idempotencyKey']
|
|
492
|
+
};
|
|
483
493
|
var formParams = {};
|
|
484
494
|
var authNames = ['api_token_basic'];
|
|
485
495
|
var contentTypes = ['application/json'];
|
|
@@ -496,6 +506,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
496
506
|
* @param {Object} opts Optional parameters
|
|
497
507
|
* @param {String} opts.version The template version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `latest` (the draft when no version has been published).
|
|
498
508
|
* @param {Boolean} opts.wait Wait until the files have been generated before responding. Default true on sync.api hosts.
|
|
509
|
+
* @param {String} opts.idempotencyKey A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another submission. Send a new key with each new submission, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
499
510
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Submission}
|
|
500
511
|
*/
|
|
501
512
|
}, {
|
|
@@ -512,6 +523,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
512
523
|
* @param {module:model/CreateSubmissionBatchRequest} body The submissions to create, and the settings they share.
|
|
513
524
|
* @param {Object} opts Optional parameters
|
|
514
525
|
* @param {Boolean} [wait] Wait until every PDF in the batch has been generated before responding. Default true on sync.api hosts.
|
|
526
|
+
* @param {String} [idempotencyKey] A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another batch. Send a new key with each new batch, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
515
527
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubmissionBatch} and HTTP response
|
|
516
528
|
*/
|
|
517
529
|
}, {
|
|
@@ -527,7 +539,9 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
527
539
|
var queryParams = {
|
|
528
540
|
'wait': opts['wait']
|
|
529
541
|
};
|
|
530
|
-
var headerParams = {
|
|
542
|
+
var headerParams = {
|
|
543
|
+
'Idempotency-Key': opts['idempotencyKey']
|
|
544
|
+
};
|
|
531
545
|
var formParams = {};
|
|
532
546
|
var authNames = ['api_token_basic'];
|
|
533
547
|
var contentTypes = ['application/json'];
|
|
@@ -542,6 +556,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
542
556
|
* @param {module:model/CreateSubmissionBatchRequest} body The submissions to create, and the settings they share.
|
|
543
557
|
* @param {Object} opts Optional parameters
|
|
544
558
|
* @param {Boolean} opts.wait Wait until every PDF in the batch has been generated before responding. Default true on sync.api hosts.
|
|
559
|
+
* @param {String} opts.idempotencyKey A key of your own, such as a UUID, that makes it safe to send this request again: for 24 hours, DocSpring answers a request with the same key from the same API token with the first request's response (and an `Idempotent-Replayed: true` header) instead of creating another batch. Send a new key with each new batch, and the same key each time you send the same request again, such as after a timeout, a network error or a 5xx. The same key with a different request is a 422 `idempotency_key_reused`. A 409 `idempotency_key_in_use` means the first request is still being processed: send the request again in a few seconds.
|
|
545
560
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubmissionBatch}
|
|
546
561
|
*/
|
|
547
562
|
}, {
|
|
@@ -598,6 +613,60 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
598
613
|
});
|
|
599
614
|
}
|
|
600
615
|
|
|
616
|
+
/**
|
|
617
|
+
* Preview a template with data
|
|
618
|
+
* Makes PNG images of a template's pages filled in with the data you send (not a PDF), so you can check how an HTML or PDF template prints with your data before you publish a version or send live data. It renders the template's draft, or the published `version` you ask for. A preview makes no submission and uses no credits, and its pages are watermarked like a test submission's PDF. It's `pending` while it renders: get it with GET /templates/{template_id}/previews/{preview_id} until it's `processed`, with an image of each page, or `error`.
|
|
619
|
+
* @param {String} template_id The template's ID.
|
|
620
|
+
* @param {module:model/CreateTemplatePreviewRequest} body The data to render the template with.
|
|
621
|
+
* @param {Object} opts Optional parameters
|
|
622
|
+
* @param {String} [version] A published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `draft`.
|
|
623
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TemplatePreview} and HTTP response
|
|
624
|
+
*/
|
|
625
|
+
}, {
|
|
626
|
+
key: "createTemplatePreviewWithHttpInfo",
|
|
627
|
+
value: function createTemplatePreviewWithHttpInfo(template_id, body, opts) {
|
|
628
|
+
opts = opts || {};
|
|
629
|
+
var postBody = body;
|
|
630
|
+
// verify the required parameter 'template_id' is set
|
|
631
|
+
if (template_id === undefined || template_id === null) {
|
|
632
|
+
throw new Error("Missing the required parameter 'template_id' when calling createTemplatePreview");
|
|
633
|
+
}
|
|
634
|
+
// verify the required parameter 'body' is set
|
|
635
|
+
if (body === undefined || body === null) {
|
|
636
|
+
throw new Error("Missing the required parameter 'body' when calling createTemplatePreview");
|
|
637
|
+
}
|
|
638
|
+
var pathParams = {
|
|
639
|
+
'template_id': template_id
|
|
640
|
+
};
|
|
641
|
+
var queryParams = {
|
|
642
|
+
'version': opts['version']
|
|
643
|
+
};
|
|
644
|
+
var headerParams = {};
|
|
645
|
+
var formParams = {};
|
|
646
|
+
var authNames = ['api_token_basic'];
|
|
647
|
+
var contentTypes = ['application/json'];
|
|
648
|
+
var accepts = ['application/json'];
|
|
649
|
+
var returnType = _TemplatePreview["default"];
|
|
650
|
+
return this.apiClient.callApi('/templates/{template_id}/previews', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Preview a template with data
|
|
655
|
+
* Makes PNG images of a template's pages filled in with the data you send (not a PDF), so you can check how an HTML or PDF template prints with your data before you publish a version or send live data. It renders the template's draft, or the published `version` you ask for. A preview makes no submission and uses no credits, and its pages are watermarked like a test submission's PDF. It's `pending` while it renders: get it with GET /templates/{template_id}/previews/{preview_id} until it's `processed`, with an image of each page, or `error`.
|
|
656
|
+
* @param {String} template_id The template's ID.
|
|
657
|
+
* @param {module:model/CreateTemplatePreviewRequest} body The data to render the template with.
|
|
658
|
+
* @param {Object} opts Optional parameters
|
|
659
|
+
* @param {String} opts.version A published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `draft`.
|
|
660
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TemplatePreview}
|
|
661
|
+
*/
|
|
662
|
+
}, {
|
|
663
|
+
key: "createTemplatePreview",
|
|
664
|
+
value: function createTemplatePreview(template_id, body, opts) {
|
|
665
|
+
return this.createTemplatePreviewWithHttpInfo(template_id, body, opts).then(function (response_and_data) {
|
|
666
|
+
return response_and_data.data;
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
|
|
601
670
|
/**
|
|
602
671
|
* Create a webhook
|
|
603
672
|
* Creates a webhook that sends a POST request to your endpoint whenever a subscribed event happens. Scope it to API tokens, templates or folders to receive only their events.
|
|
@@ -1369,11 +1438,12 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1369
1438
|
|
|
1370
1439
|
/**
|
|
1371
1440
|
* Generate typed code for a template's submission data
|
|
1372
|
-
* Generates types for a template's submission data in TypeScript, JavaScript, Ruby, Python, PHP, Java, C#, Elixir or Go, so your app catches mistakes before it calls the API. `root_type_name` is the type of the whole `data` object. Java returns every class in `code`, each under a `// ClassName.java` comment. A template with no named fields returns 422.
|
|
1441
|
+
* Generates types for a template's submission data in TypeScript, JavaScript, Ruby, Python, PHP, Java, C#, Elixir or Go, so your app catches mistakes before it calls the API. `root_type_name` is the type of the whole `data` object, and `just_types=true` leaves out the code that converts JSON to and from the types. Java returns every class in `code`, each under a `// ClassName.java` comment. A template with no named fields returns 422.
|
|
1373
1442
|
* @param {String} template_id The template's ID.
|
|
1374
1443
|
* @param {module:model/ModelCodeLanguage} lang The language to generate the code in.
|
|
1375
1444
|
* @param {Object} opts Optional parameters
|
|
1376
1445
|
* @param {String} [version] The template version: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `latest` (the draft when no version has been published), the version a submission uses by default.
|
|
1446
|
+
* @param {Boolean} [just_types] Return only the types (interfaces, classes or structs), without the code that converts JSON to and from them. Default false. JavaScript has no types and PHP no types-only code, so theirs is the same either way.
|
|
1377
1447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TemplateModelCode} and HTTP response
|
|
1378
1448
|
*/
|
|
1379
1449
|
}, {
|
|
@@ -1394,7 +1464,8 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1394
1464
|
};
|
|
1395
1465
|
var queryParams = {
|
|
1396
1466
|
'version': opts['version'],
|
|
1397
|
-
'lang': lang
|
|
1467
|
+
'lang': lang,
|
|
1468
|
+
'just_types': opts['just_types']
|
|
1398
1469
|
};
|
|
1399
1470
|
var headerParams = {};
|
|
1400
1471
|
var formParams = {};
|
|
@@ -1407,11 +1478,12 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1407
1478
|
|
|
1408
1479
|
/**
|
|
1409
1480
|
* Generate typed code for a template's submission data
|
|
1410
|
-
* Generates types for a template's submission data in TypeScript, JavaScript, Ruby, Python, PHP, Java, C#, Elixir or Go, so your app catches mistakes before it calls the API. `root_type_name` is the type of the whole `data` object. Java returns every class in `code`, each under a `// ClassName.java` comment. A template with no named fields returns 422.
|
|
1481
|
+
* Generates types for a template's submission data in TypeScript, JavaScript, Ruby, Python, PHP, Java, C#, Elixir or Go, so your app catches mistakes before it calls the API. `root_type_name` is the type of the whole `data` object, and `just_types=true` leaves out the code that converts JSON to and from the types. Java returns every class in `code`, each under a `// ClassName.java` comment. A template with no named fields returns 422.
|
|
1411
1482
|
* @param {String} template_id The template's ID.
|
|
1412
1483
|
* @param {module:model/ModelCodeLanguage} lang The language to generate the code in.
|
|
1413
1484
|
* @param {Object} opts Optional parameters
|
|
1414
1485
|
* @param {String} opts.version The template version: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` or `draft`. Default `latest` (the draft when no version has been published), the version a submission uses by default.
|
|
1486
|
+
* @param {Boolean} opts.just_types Return only the types (interfaces, classes or structs), without the code that converts JSON to and from them. Default false. JavaScript has no types and PHP no types-only code, so theirs is the same either way.
|
|
1415
1487
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TemplateModelCode}
|
|
1416
1488
|
*/
|
|
1417
1489
|
}, {
|
|
@@ -1470,6 +1542,54 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1470
1542
|
});
|
|
1471
1543
|
}
|
|
1472
1544
|
|
|
1545
|
+
/**
|
|
1546
|
+
* Get a template preview
|
|
1547
|
+
* Returns a preview made with POST /templates/{template_id}/previews. Once it's `processed`, `pages` has a PNG image of each page with a temporary link to download it: a preview has no PDF. Previews are deleted an hour after they're created.
|
|
1548
|
+
* @param {String} template_id The template's ID.
|
|
1549
|
+
* @param {String} preview_id The preview's ID.
|
|
1550
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TemplatePreview} and HTTP response
|
|
1551
|
+
*/
|
|
1552
|
+
}, {
|
|
1553
|
+
key: "getTemplatePreviewWithHttpInfo",
|
|
1554
|
+
value: function getTemplatePreviewWithHttpInfo(template_id, preview_id) {
|
|
1555
|
+
var postBody = null;
|
|
1556
|
+
// verify the required parameter 'template_id' is set
|
|
1557
|
+
if (template_id === undefined || template_id === null) {
|
|
1558
|
+
throw new Error("Missing the required parameter 'template_id' when calling getTemplatePreview");
|
|
1559
|
+
}
|
|
1560
|
+
// verify the required parameter 'preview_id' is set
|
|
1561
|
+
if (preview_id === undefined || preview_id === null) {
|
|
1562
|
+
throw new Error("Missing the required parameter 'preview_id' when calling getTemplatePreview");
|
|
1563
|
+
}
|
|
1564
|
+
var pathParams = {
|
|
1565
|
+
'template_id': template_id,
|
|
1566
|
+
'preview_id': preview_id
|
|
1567
|
+
};
|
|
1568
|
+
var queryParams = {};
|
|
1569
|
+
var headerParams = {};
|
|
1570
|
+
var formParams = {};
|
|
1571
|
+
var authNames = ['api_token_basic'];
|
|
1572
|
+
var contentTypes = [];
|
|
1573
|
+
var accepts = ['application/json'];
|
|
1574
|
+
var returnType = _TemplatePreview["default"];
|
|
1575
|
+
return this.apiClient.callApi('/templates/{template_id}/previews/{preview_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Get a template preview
|
|
1580
|
+
* Returns a preview made with POST /templates/{template_id}/previews. Once it's `processed`, `pages` has a PNG image of each page with a temporary link to download it: a preview has no PDF. Previews are deleted an hour after they're created.
|
|
1581
|
+
* @param {String} template_id The template's ID.
|
|
1582
|
+
* @param {String} preview_id The preview's ID.
|
|
1583
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TemplatePreview}
|
|
1584
|
+
*/
|
|
1585
|
+
}, {
|
|
1586
|
+
key: "getTemplatePreview",
|
|
1587
|
+
value: function getTemplatePreview(template_id, preview_id) {
|
|
1588
|
+
return this.getTemplatePreviewWithHttpInfo(template_id, preview_id).then(function (response_and_data) {
|
|
1589
|
+
return response_and_data.data;
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1473
1593
|
/**
|
|
1474
1594
|
* Get the JSON Schema of a template's submission data
|
|
1475
1595
|
* Returns the JSON Schema that a submission's `data` must match. Use it to check data before you create submissions, or to build a form for the template's fields.
|
|
@@ -1695,7 +1815,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1695
1815
|
|
|
1696
1816
|
/**
|
|
1697
1817
|
* List submissions
|
|
1698
|
-
* Returns the submissions in your account, newest first, one page at a time.
|
|
1818
|
+
* Returns the submissions in your account, newest first, one page at a time. Each one is a summary: its `data` is null unless you pass `include_data=true`, and its `files` are empty unless you pass `include_files=true`. Get a submission by its ID for its signature requests, uploads and page images.
|
|
1699
1819
|
* @param {Object} opts Optional parameters
|
|
1700
1820
|
* @param {String} [template_id] Only list this template's submissions.
|
|
1701
1821
|
* @param {Boolean} [test] Only list test submissions (true) or live submissions (false).
|
|
@@ -1704,6 +1824,8 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1704
1824
|
* @param {Boolean} [include_data] Include each submission's `data` (null without it).
|
|
1705
1825
|
* @param {Number} [limit = 50)] How many items to return (1-100, default 50).
|
|
1706
1826
|
* @param {String} [cursor] The previous page's `next_cursor`, to get the next page. It's the ID of that page's last item, so get the next page before you delete or change the items on this one.
|
|
1827
|
+
* @param {module:model/SubmissionState} [state] Only list submissions in this state (one state per request). The ones that failed are `invalid_data`, `error`, `syntax_error`, `image_download_failed` and `image_processing_failed`, and one still `pending` an hour after it was created is stuck.
|
|
1828
|
+
* @param {Boolean} [include_files] Include each submission's generated files and their download links (`files`, empty without it), without the page images' links.
|
|
1707
1829
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubmissionList} and HTTP response
|
|
1708
1830
|
*/
|
|
1709
1831
|
}, {
|
|
@@ -1719,7 +1841,9 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1719
1841
|
'created_before': opts['created_before'],
|
|
1720
1842
|
'include_data': opts['include_data'],
|
|
1721
1843
|
'limit': opts['limit'],
|
|
1722
|
-
'cursor': opts['cursor']
|
|
1844
|
+
'cursor': opts['cursor'],
|
|
1845
|
+
'state': opts['state'],
|
|
1846
|
+
'include_files': opts['include_files']
|
|
1723
1847
|
};
|
|
1724
1848
|
var headerParams = {};
|
|
1725
1849
|
var formParams = {};
|
|
@@ -1732,7 +1856,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1732
1856
|
|
|
1733
1857
|
/**
|
|
1734
1858
|
* List submissions
|
|
1735
|
-
* Returns the submissions in your account, newest first, one page at a time.
|
|
1859
|
+
* Returns the submissions in your account, newest first, one page at a time. Each one is a summary: its `data` is null unless you pass `include_data=true`, and its `files` are empty unless you pass `include_files=true`. Get a submission by its ID for its signature requests, uploads and page images.
|
|
1736
1860
|
* @param {Object} opts Optional parameters
|
|
1737
1861
|
* @param {String} opts.template_id Only list this template's submissions.
|
|
1738
1862
|
* @param {Boolean} opts.test Only list test submissions (true) or live submissions (false).
|
|
@@ -1741,6 +1865,8 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1741
1865
|
* @param {Boolean} opts.include_data Include each submission's `data` (null without it).
|
|
1742
1866
|
* @param {Number} opts.limit How many items to return (1-100, default 50). (default to 50)
|
|
1743
1867
|
* @param {String} opts.cursor The previous page's `next_cursor`, to get the next page. It's the ID of that page's last item, so get the next page before you delete or change the items on this one.
|
|
1868
|
+
* @param {module:model/SubmissionState} opts.state Only list submissions in this state (one state per request). The ones that failed are `invalid_data`, `error`, `syntax_error`, `image_download_failed` and `image_processing_failed`, and one still `pending` an hour after it was created is stuck.
|
|
1869
|
+
* @param {Boolean} opts.include_files Include each submission's generated files and their download links (`files`, empty without it), without the page images' links.
|
|
1744
1870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubmissionList}
|
|
1745
1871
|
*/
|
|
1746
1872
|
}, {
|
|
@@ -1810,6 +1936,8 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1810
1936
|
* @param {Boolean} [include_data] Include each submission's `data` (null without it).
|
|
1811
1937
|
* @param {Number} [limit = 50)] How many items to return (1-100, default 50).
|
|
1812
1938
|
* @param {String} [cursor] The previous page's `next_cursor`, to get the next page. It's the ID of that page's last item, so get the next page before you delete or change the items on this one.
|
|
1939
|
+
* @param {module:model/SubmissionState} [state] Only list submissions in this state (one state per request). The ones that failed are `invalid_data`, `error`, `syntax_error`, `image_download_failed` and `image_processing_failed`, and one still `pending` an hour after it was created is stuck.
|
|
1940
|
+
* @param {Boolean} [include_files] Include each submission's generated files and their download links (`files`, empty without it), without the page images' links.
|
|
1813
1941
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubmissionList} and HTTP response
|
|
1814
1942
|
*/
|
|
1815
1943
|
}, {
|
|
@@ -1830,7 +1958,9 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1830
1958
|
'created_before': opts['created_before'],
|
|
1831
1959
|
'include_data': opts['include_data'],
|
|
1832
1960
|
'limit': opts['limit'],
|
|
1833
|
-
'cursor': opts['cursor']
|
|
1961
|
+
'cursor': opts['cursor'],
|
|
1962
|
+
'state': opts['state'],
|
|
1963
|
+
'include_files': opts['include_files']
|
|
1834
1964
|
};
|
|
1835
1965
|
var headerParams = {};
|
|
1836
1966
|
var formParams = {};
|
|
@@ -1852,6 +1982,8 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1852
1982
|
* @param {Boolean} opts.include_data Include each submission's `data` (null without it).
|
|
1853
1983
|
* @param {Number} opts.limit How many items to return (1-100, default 50). (default to 50)
|
|
1854
1984
|
* @param {String} opts.cursor The previous page's `next_cursor`, to get the next page. It's the ID of that page's last item, so get the next page before you delete or change the items on this one.
|
|
1985
|
+
* @param {module:model/SubmissionState} opts.state Only list submissions in this state (one state per request). The ones that failed are `invalid_data`, `error`, `syntax_error`, `image_download_failed` and `image_processing_failed`, and one still `pending` an hour after it was created is stuck.
|
|
1986
|
+
* @param {Boolean} opts.include_files Include each submission's generated files and their download links (`files`, empty without it), without the page images' links.
|
|
1855
1987
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubmissionList}
|
|
1856
1988
|
*/
|
|
1857
1989
|
}, {
|
|
@@ -1864,7 +1996,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1864
1996
|
|
|
1865
1997
|
/**
|
|
1866
1998
|
* List templates
|
|
1867
|
-
* Returns the templates in your account (their drafts), newest first, one page at a time.
|
|
1999
|
+
* Returns the templates in your account (their drafts), newest first, one page at a time. Each one is a summary: get a template by its ID for its settings, its PDF in full, its HTML, defaults and published versions.
|
|
1868
2000
|
* @param {Object} opts Optional parameters
|
|
1869
2001
|
* @param {String} [query] Only list templates whose name contains this text (ignoring case).
|
|
1870
2002
|
* @param {String} [parent_folder_id] Only list the templates in this folder (not in its subfolders).
|
|
@@ -1895,7 +2027,7 @@ var Client = exports["default"] = /*#__PURE__*/function () {
|
|
|
1895
2027
|
|
|
1896
2028
|
/**
|
|
1897
2029
|
* List templates
|
|
1898
|
-
* Returns the templates in your account (their drafts), newest first, one page at a time.
|
|
2030
|
+
* Returns the templates in your account (their drafts), newest first, one page at a time. Each one is a summary: get a template by its ID for its settings, its PDF in full, its HTML, defaults and published versions.
|
|
1899
2031
|
* @param {Object} opts Optional parameters
|
|
1900
2032
|
* @param {String} opts.query Only list templates whose name contains this text (ignoring case).
|
|
1901
2033
|
* @param {String} opts.parent_folder_id Only list the templates in this folder (not in its subfolders).
|
package/dist/index.js
CHANGED
|
@@ -147,6 +147,12 @@ Object.defineProperty(exports, "CreateSubmissionRequest", {
|
|
|
147
147
|
return _CreateSubmissionRequest["default"];
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
+
Object.defineProperty(exports, "CreateTemplatePreviewRequest", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _CreateTemplatePreviewRequest["default"];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
150
156
|
Object.defineProperty(exports, "CreateTemplateRequest", {
|
|
151
157
|
enumerable: true,
|
|
152
158
|
get: function get() {
|
|
@@ -633,6 +639,12 @@ Object.defineProperty(exports, "SubmissionState", {
|
|
|
633
639
|
return _SubmissionState["default"];
|
|
634
640
|
}
|
|
635
641
|
});
|
|
642
|
+
Object.defineProperty(exports, "SubmissionSummary", {
|
|
643
|
+
enumerable: true,
|
|
644
|
+
get: function get() {
|
|
645
|
+
return _SubmissionSummary["default"];
|
|
646
|
+
}
|
|
647
|
+
});
|
|
636
648
|
Object.defineProperty(exports, "SubmissionValidation", {
|
|
637
649
|
enumerable: true,
|
|
638
650
|
get: function get() {
|
|
@@ -693,6 +705,12 @@ Object.defineProperty(exports, "TemplateDocumentState", {
|
|
|
693
705
|
return _TemplateDocumentState["default"];
|
|
694
706
|
}
|
|
695
707
|
});
|
|
708
|
+
Object.defineProperty(exports, "TemplateDocumentSummary", {
|
|
709
|
+
enumerable: true,
|
|
710
|
+
get: function get() {
|
|
711
|
+
return _TemplateDocumentSummary["default"];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
696
714
|
Object.defineProperty(exports, "TemplateFieldChange", {
|
|
697
715
|
enumerable: true,
|
|
698
716
|
get: function get() {
|
|
@@ -813,6 +831,18 @@ Object.defineProperty(exports, "TemplatePageProcessingStatus", {
|
|
|
813
831
|
return _TemplatePageProcessingStatus["default"];
|
|
814
832
|
}
|
|
815
833
|
});
|
|
834
|
+
Object.defineProperty(exports, "TemplatePreview", {
|
|
835
|
+
enumerable: true,
|
|
836
|
+
get: function get() {
|
|
837
|
+
return _TemplatePreview["default"];
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
Object.defineProperty(exports, "TemplatePreviewState", {
|
|
841
|
+
enumerable: true,
|
|
842
|
+
get: function get() {
|
|
843
|
+
return _TemplatePreviewState["default"];
|
|
844
|
+
}
|
|
845
|
+
});
|
|
816
846
|
Object.defineProperty(exports, "TemplateSourcePdf", {
|
|
817
847
|
enumerable: true,
|
|
818
848
|
get: function get() {
|
|
@@ -957,8 +987,15 @@ Object.defineProperty(exports, "WebhookMode", {
|
|
|
957
987
|
return _WebhookMode["default"];
|
|
958
988
|
}
|
|
959
989
|
});
|
|
990
|
+
Object.defineProperty(exports, "verifyWebhookSignature", {
|
|
991
|
+
enumerable: true,
|
|
992
|
+
get: function get() {
|
|
993
|
+
return _WebhookSignature.verifyWebhookSignature;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
960
996
|
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
961
997
|
var _RequestValidator = require("./RequestValidator");
|
|
998
|
+
var _WebhookSignature = require("./WebhookSignature");
|
|
962
999
|
var _AddTemplateFieldsRequest = _interopRequireDefault(require("./model/AddTemplateFieldsRequest"));
|
|
963
1000
|
var _AiFieldNamingLanguage = _interopRequireDefault(require("./model/AiFieldNamingLanguage"));
|
|
964
1001
|
var _AuthenticationCheck = _interopRequireDefault(require("./model/AuthenticationCheck"));
|
|
@@ -981,6 +1018,7 @@ var _CreateSignatureRequestEventRequest = _interopRequireDefault(require("./mode
|
|
|
981
1018
|
var _CreateSignatureRequestTokenRequest = _interopRequireDefault(require("./model/CreateSignatureRequestTokenRequest"));
|
|
982
1019
|
var _CreateSubmissionBatchRequest = _interopRequireDefault(require("./model/CreateSubmissionBatchRequest"));
|
|
983
1020
|
var _CreateSubmissionRequest = _interopRequireDefault(require("./model/CreateSubmissionRequest"));
|
|
1021
|
+
var _CreateTemplatePreviewRequest = _interopRequireDefault(require("./model/CreateTemplatePreviewRequest"));
|
|
984
1022
|
var _CreateTemplateRequest = _interopRequireDefault(require("./model/CreateTemplateRequest"));
|
|
985
1023
|
var _CreateWebhookRequest = _interopRequireDefault(require("./model/CreateWebhookRequest"));
|
|
986
1024
|
var _CustomFile = _interopRequireDefault(require("./model/CustomFile"));
|
|
@@ -1062,6 +1100,7 @@ var _SubmissionList = _interopRequireDefault(require("./model/SubmissionList"));
|
|
|
1062
1100
|
var _SubmissionSource = _interopRequireDefault(require("./model/SubmissionSource"));
|
|
1063
1101
|
var _SubmissionSourcePdf = _interopRequireDefault(require("./model/SubmissionSourcePdf"));
|
|
1064
1102
|
var _SubmissionState = _interopRequireDefault(require("./model/SubmissionState"));
|
|
1103
|
+
var _SubmissionSummary = _interopRequireDefault(require("./model/SubmissionSummary"));
|
|
1065
1104
|
var _SubmissionValidation = _interopRequireDefault(require("./model/SubmissionValidation"));
|
|
1066
1105
|
var _Template = _interopRequireDefault(require("./model/Template"));
|
|
1067
1106
|
var _TemplateActor = _interopRequireDefault(require("./model/TemplateActor"));
|
|
@@ -1072,6 +1111,7 @@ var _TemplateDiff = _interopRequireDefault(require("./model/TemplateDiff"));
|
|
|
1072
1111
|
var _TemplateDiffSummary = _interopRequireDefault(require("./model/TemplateDiffSummary"));
|
|
1073
1112
|
var _TemplateDocument = _interopRequireDefault(require("./model/TemplateDocument"));
|
|
1074
1113
|
var _TemplateDocumentState = _interopRequireDefault(require("./model/TemplateDocumentState"));
|
|
1114
|
+
var _TemplateDocumentSummary = _interopRequireDefault(require("./model/TemplateDocumentSummary"));
|
|
1075
1115
|
var _TemplateFieldChange = _interopRequireDefault(require("./model/TemplateFieldChange"));
|
|
1076
1116
|
var _TemplateFieldChanges = _interopRequireDefault(require("./model/TemplateFieldChanges"));
|
|
1077
1117
|
var _TemplateFieldDependency = _interopRequireDefault(require("./model/TemplateFieldDependency"));
|
|
@@ -1092,6 +1132,8 @@ var _TemplatePageFieldsStatus = _interopRequireDefault(require("./model/Template
|
|
|
1092
1132
|
var _TemplatePageImageStatus = _interopRequireDefault(require("./model/TemplatePageImageStatus"));
|
|
1093
1133
|
var _TemplatePageImages = _interopRequireDefault(require("./model/TemplatePageImages"));
|
|
1094
1134
|
var _TemplatePageProcessingStatus = _interopRequireDefault(require("./model/TemplatePageProcessingStatus"));
|
|
1135
|
+
var _TemplatePreview = _interopRequireDefault(require("./model/TemplatePreview"));
|
|
1136
|
+
var _TemplatePreviewState = _interopRequireDefault(require("./model/TemplatePreviewState"));
|
|
1095
1137
|
var _TemplateSourcePdf = _interopRequireDefault(require("./model/TemplateSourcePdf"));
|
|
1096
1138
|
var _TemplateSummary = _interopRequireDefault(require("./model/TemplateSummary"));
|
|
1097
1139
|
var _TemplateSummaryList = _interopRequireDefault(require("./model/TemplateSummaryList"));
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The AddTemplateFieldsRequest model module.
|
|
32
32
|
* @module model/AddTemplateFieldsRequest
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.2.0
|
|
34
34
|
*/
|
|
35
35
|
var AddTemplateFieldsRequest = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AuthenticationCheck model module.
|
|
31
31
|
* @module model/AuthenticationCheck
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.2.0
|
|
33
33
|
*/
|
|
34
34
|
var AuthenticationCheck = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
33
33
|
/**
|
|
34
34
|
* The CombinedPdf model module.
|
|
35
35
|
* @module model/CombinedPdf
|
|
36
|
-
* @version 4.
|
|
36
|
+
* @version 4.2.0
|
|
37
37
|
*/
|
|
38
38
|
var CombinedPdf = /*#__PURE__*/function () {
|
|
39
39
|
/**
|
|
@@ -44,7 +44,7 @@ var CombinedPdf = /*#__PURE__*/function () {
|
|
|
44
44
|
* @param id {String} The combined PDF's ID.
|
|
45
45
|
* @param state {module:model/CombinedPdfState} `pending` until the PDF has been generated, then `processed`. `insufficient_credits`: waiting for credits; `error_message` says whether the PDF is generated once you add them. `account_suspended`: waiting for the account to be reactivated, for up to 30 days. `error`: the PDFs couldn't be merged (see `error_message`). Waiting ends in `error` if it's discarded or takes over 30 days.
|
|
46
46
|
* @param source_pdfs {Array.<module:model/CombinedPdfSource>} The PDFs to merge, in order.
|
|
47
|
-
* @param metadata {Object.<String, Object>} Your own data about the combined PDF, such as an ID from your app.
|
|
47
|
+
* @param metadata {Object.<String, Object>} Your own data about the combined PDF, such as an ID from your app. Its `pdf_filename` key names the PDF's file (`files.pdf.filename`, and its download): a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the combined PDF's ID (`com_1234567890abcdef01.pdf`).
|
|
48
48
|
* @param has_password {Boolean} Whether the PDF needs a password to open (`password`).
|
|
49
49
|
* @param delete_custom_files {Boolean} Delete the custom files in `source_pdfs` once the combined PDF has been generated (they're kept if it fails). Other combined PDFs can't use them after that. A test API token can't delete custom files.
|
|
50
50
|
* @param error_message {String} Why the PDFs couldn't be merged, when `state` is `error`.
|
|
@@ -227,7 +227,7 @@ CombinedPdf.prototype['state'] = undefined;
|
|
|
227
227
|
CombinedPdf.prototype['source_pdfs'] = undefined;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Your own data about the combined PDF, such as an ID from your app.
|
|
230
|
+
* Your own data about the combined PDF, such as an ID from your app. Its `pdf_filename` key names the PDF's file (`files.pdf.filename`, and its download): a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the combined PDF's ID (`com_1234567890abcdef01.pdf`).
|
|
231
231
|
* @member {Object.<String, Object>} metadata
|
|
232
232
|
*/
|
|
233
233
|
CombinedPdf.prototype['metadata'] = undefined;
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
27
27
|
/**
|
|
28
28
|
* The CombinedPdfFiles model module.
|
|
29
29
|
* @module model/CombinedPdfFiles
|
|
30
|
-
* @version 4.
|
|
30
|
+
* @version 4.2.0
|
|
31
31
|
*/
|
|
32
32
|
var CombinedPdfFiles = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The CombinedPdfList model module.
|
|
32
32
|
* @module model/CombinedPdfList
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.2.0
|
|
34
34
|
*/
|
|
35
35
|
var CombinedPdfList = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The CombinedPdfSource model module.
|
|
32
32
|
* @module model/CombinedPdfSource
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.2.0
|
|
34
34
|
*/
|
|
35
35
|
var CombinedPdfSource = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
33
33
|
/**
|
|
34
34
|
* The CombinedPdfSourceInput model module.
|
|
35
35
|
* @module model/CombinedPdfSourceInput
|
|
36
|
-
* @version 4.
|
|
36
|
+
* @version 4.2.0
|
|
37
37
|
*/
|
|
38
38
|
var CombinedPdfSourceInput = /*#__PURE__*/function () {
|
|
39
39
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinedPdfSourcePdf model module.
|
|
31
31
|
* @module model/CombinedPdfSourcePdf
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinedPdfSourcePdf = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The CopyTemplateRequest model module.
|
|
28
28
|
* @module model/CopyTemplateRequest
|
|
29
|
-
* @version 4.
|
|
29
|
+
* @version 4.2.0
|
|
30
30
|
*/
|
|
31
31
|
var CopyTemplateRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateCombinedPdfRequest model module.
|
|
32
32
|
* @module model/CreateCombinedPdfRequest
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.2.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateCombinedPdfRequest = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -149,7 +149,7 @@ CreateCombinedPdfRequest.RequiredProperties = ["source_pdfs"];
|
|
|
149
149
|
CreateCombinedPdfRequest.prototype['source_pdfs'] = undefined;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* Your own data about the combined PDF, such as an ID from your app.
|
|
152
|
+
* Your own data about the combined PDF, such as an ID from your app. Its `pdf_filename` key names the PDF's file (`files.pdf.filename`, and its download): a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the combined PDF's ID (`com_1234567890abcdef01.pdf`).
|
|
153
153
|
* @member {Object.<String, Object>} metadata
|
|
154
154
|
*/
|
|
155
155
|
CreateCombinedPdfRequest.prototype['metadata'] = undefined;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateCustomFileFromUploadRequest model module.
|
|
31
31
|
* @module model/CreateCustomFileFromUploadRequest
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateCustomFileFromUploadRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateFolderRequest model module.
|
|
31
31
|
* @module model/CreateFolderRequest
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateFolderRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|