docspring 3.3.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +79 -19
- package/README.md +74 -63
- package/dist/ApiClient.js +63 -28
- package/dist/RequestSchemas.js +3452 -0
- package/dist/RequestValidator.js +494 -0
- package/dist/api/Client.js +1769 -921
- package/dist/index.js +847 -154
- package/dist/model/AddTemplateFieldsRequest.js +132 -0
- package/dist/model/AiFieldNamingLanguage.js +64 -0
- package/dist/model/{CreateWebhookData.js → AuthenticationCheck.js} +32 -28
- package/dist/model/BarcodeSymbology.js +89 -0
- package/dist/model/CheckCharacter.js +74 -0
- package/dist/model/CombinedFieldType.js +59 -0
- package/dist/model/CombinedPdf.js +294 -0
- package/dist/model/{MoveFolderData.js → CombinedPdfFiles.js} +27 -27
- package/dist/model/CombinedPdfList.js +132 -0
- package/dist/model/{ForbiddenErrorResponse.js → CombinedPdfSource.js} +59 -73
- package/dist/model/CombinedPdfSourceInput.js +270 -0
- package/dist/model/CombinedPdfSourcePdf.js +130 -0
- package/dist/model/CombinedPdfSourceType.js +74 -0
- package/dist/model/CombinedPdfState.js +74 -0
- package/dist/model/{CopyTemplateOptions.js → CopyTemplateRequest.js} +26 -22
- package/dist/model/{CombinePdfsData.js → CreateCombinedPdfRequest.js} +69 -53
- package/dist/model/{CreateCustomFileData.js → CreateCustomFileFromUploadRequest.js} +25 -23
- package/dist/model/{CreateFolderData.js → CreateFolderRequest.js} +47 -28
- package/dist/model/{CreateCustomFileResponse.js → CreateSignatureRequestEventRequest.js} +49 -73
- package/dist/model/CreateSignatureRequestTokenRequest.js +88 -0
- package/dist/model/CreateSubmissionBatchRequest.js +192 -0
- package/dist/model/CreateSubmissionRequest.js +226 -0
- package/dist/model/CreateTemplateRequest.js +613 -0
- package/dist/model/CreateWebhookRequest.js +234 -0
- package/dist/model/CustomFile.js +67 -16
- package/dist/model/CustomFileList.js +132 -0
- package/dist/model/CustomFileSourcePdf.js +130 -0
- package/dist/model/ErrorCode.js +154 -0
- package/dist/model/{CreateSubmissionResponse.js → ErrorDetail.js} +65 -75
- package/dist/model/ErrorInfo.js +211 -0
- package/dist/model/ErrorResponse.js +12 -41
- package/dist/model/ExpirationInterval.js +64 -0
- package/dist/model/Field.js +1230 -0
- package/dist/model/FieldComparisonCondition.js +137 -0
- package/dist/model/FieldComparisonOperator.js +69 -0
- package/dist/model/FieldDependency.js +154 -0
- package/dist/model/FieldDependencyInput.js +154 -0
- package/dist/model/FieldDisplayType.js +79 -0
- package/dist/model/{MultipleErrorsResponse.js → FieldEqualsCondition.js} +48 -52
- package/dist/model/FieldEqualsOperator.js +59 -0
- package/dist/model/FieldGroup.js +206 -0
- package/dist/model/FieldGroupInput.js +180 -0
- package/dist/model/FieldGroupType.js +59 -0
- package/dist/model/{SuccessMultipleErrorsResponse.js → FieldInCondition.js} +54 -53
- package/dist/model/FieldInput.js +1012 -0
- package/dist/model/FieldOverride.js +722 -0
- package/dist/model/FieldPresenceCondition.js +126 -0
- package/dist/model/FieldPresenceOperator.js +59 -0
- package/dist/model/FieldRangeCondition.js +148 -0
- package/dist/model/FieldReimportState.js +69 -0
- package/dist/model/FieldSetupLogic.js +59 -0
- package/dist/model/FieldSetupNaming.js +59 -0
- package/dist/model/FieldSetupSource.js +64 -0
- package/dist/model/FieldType.js +124 -0
- package/dist/model/Folder.js +38 -11
- package/dist/model/FolderList.js +132 -0
- package/dist/model/GenerateFilesFormat.js +54 -0
- package/dist/model/GenerateSubmissionFilesRequest.js +115 -0
- package/dist/model/GeneratedFile.js +214 -0
- package/dist/model/GeneratedFileState.js +64 -0
- package/dist/model/HtmlEngineOptions.js +230 -0
- package/dist/model/HtmlEngineOptionsInput.js +193 -0
- package/dist/model/ImageGravity.js +94 -0
- package/dist/model/ImageScaleType.js +64 -0
- package/dist/model/ModelCodeLanguage.js +94 -0
- package/dist/model/{UpdatePdfTemplate.js → MoveFolderRequest.js} +34 -28
- package/dist/model/{MoveTemplateData.js → MoveTemplateRequest.js} +25 -35
- package/dist/model/NumberConditionType.js +79 -0
- package/dist/model/OutputFormat.js +59 -0
- package/dist/model/PageFormat.js +114 -0
- package/dist/model/PageImage.js +220 -0
- package/dist/model/{TemplateDeleteResponse.js → PageImages.js} +57 -70
- package/dist/model/PredefinedField.js +183 -0
- package/dist/model/PredefinedFieldInput.js +183 -0
- package/dist/model/{PublishVersionData.js → PublishTemplateVersionRequest.js} +33 -33
- package/dist/model/{AddFieldsData.js → RemoveTemplateFieldsRequest.js} +32 -30
- package/dist/model/{RenameFolderData.js → RenameFolderRequest.js} +25 -23
- package/dist/model/ReorderTemplateFieldsRequest.js +114 -0
- package/dist/model/{RestoreVersionData.js → RestoreTemplateVersionRequest.js} +25 -23
- package/dist/model/ShapeType.js +79 -0
- package/dist/model/{SubmissionDataRequestShow.js → SignatureRequest.js} +165 -240
- package/dist/model/SignatureRequestAuthSecondFactorType.js +79 -0
- package/dist/model/SignatureRequestAuthType.js +84 -0
- package/dist/model/{SubmissionDataRequestEvent.js → SignatureRequestEvent.js} +67 -149
- package/dist/model/SignatureRequestEventType.js +79 -0
- package/dist/model/SignatureRequestInput.js +278 -0
- package/dist/model/SignatureRequestMessageType.js +94 -0
- package/dist/model/SignatureRequestState.js +64 -0
- package/dist/model/SignatureRequestToken.js +195 -0
- package/dist/model/SignatureRequestTokenType.js +59 -0
- package/dist/model/StringConditionType.js +74 -0
- package/dist/model/Submission.js +198 -341
- package/dist/model/SubmissionAction.js +30 -115
- package/dist/model/SubmissionActionState.js +69 -0
- package/dist/model/SubmissionActionType.js +84 -0
- package/dist/model/SubmissionBatch.js +74 -55
- package/dist/model/SubmissionBatchState.js +64 -0
- package/dist/model/SubmissionFiles.js +117 -0
- package/dist/model/SubmissionInput.js +218 -0
- package/dist/model/{ListSubmissionsResponse.js → SubmissionList.js} +35 -42
- package/dist/model/SubmissionSource.js +69 -0
- package/dist/model/SubmissionSourcePdf.js +130 -0
- package/dist/model/SubmissionState.js +114 -0
- package/dist/model/{SubmissionBatchData.js → SubmissionValidation.js} +46 -48
- package/dist/model/Template.js +359 -560
- package/dist/model/TemplateActor.js +171 -0
- package/dist/model/TemplateActorType.js +64 -0
- package/dist/model/TemplateDefaults.js +307 -0
- package/dist/model/TemplateDefaultsInput.js +305 -0
- package/dist/model/TemplateDiff.js +206 -0
- package/dist/model/TemplateDiffSummary.js +165 -0
- package/dist/model/TemplateDocument.js +280 -0
- package/dist/model/TemplateDocumentState.js +84 -0
- package/dist/model/TemplateFieldChange.js +146 -0
- package/dist/model/TemplateFieldChanges.js +196 -0
- package/dist/model/{CreatePdfSubmissionData.js → TemplateFieldDependency.js} +70 -89
- package/dist/model/TemplateFieldDependencyAction.js +64 -0
- package/dist/model/{TemplatePublishVersionResponse.js → TemplateFieldDependencyCondition.js} +51 -61
- package/dist/model/TemplateFieldDependencyConditionInput.js +304 -0
- package/dist/model/TemplateFieldDependencyInput.js +182 -0
- package/dist/model/TemplateFieldDependencyMatch.js +59 -0
- package/dist/model/TemplateFieldDependencyOperator.js +99 -0
- package/dist/model/TemplateFieldLogicStatus.js +74 -0
- package/dist/model/{CreatePdfTemplate.js → TemplateFieldMove.js} +52 -28
- package/dist/model/TemplateFields.js +147 -0
- package/dist/model/TemplateFormMode.js +64 -0
- package/dist/model/{TemplateModelCodeResponse.js → TemplateModelCode.js} +34 -86
- package/dist/model/TemplatePageAiError.js +69 -0
- package/dist/model/TemplatePageAiNamingStatus.js +59 -0
- package/dist/model/TemplatePageFieldsStatus.js +74 -0
- package/dist/model/TemplatePageImageStatus.js +59 -0
- package/dist/model/TemplatePageImages.js +158 -0
- package/dist/model/TemplatePageProcessingStatus.js +162 -0
- package/dist/model/{SubmissionDataRequestToken.js → TemplateSourcePdf.js} +52 -56
- package/dist/model/TemplateSummary.js +560 -0
- package/dist/model/{SuccessErrorResponse.js → TemplateSummaryList.js} +43 -55
- package/dist/model/TemplateType.js +59 -0
- package/dist/model/{Submission422Response.js → TemplateVersion.js} +60 -63
- package/dist/model/TemplateVersionType.js +64 -0
- package/dist/model/TextAlignment.js +69 -0
- package/dist/model/TextOverflow.js +59 -0
- package/dist/model/TextVerticalAlignment.js +64 -0
- package/dist/model/Typeface.js +134 -0
- package/dist/model/UpdateSignatureRequestRequest.js +183 -0
- package/dist/model/UpdateTemplateDocumentRequest.js +139 -0
- package/dist/model/UpdateTemplateFieldsRequest.js +132 -0
- package/dist/model/UpdateTemplateRequest.js +523 -0
- package/dist/model/UpdateWebhookRequest.js +209 -0
- package/dist/model/UploadMethod.js +54 -0
- package/dist/model/{UploadPresignResponse.js → UploadPresign.js} +53 -58
- package/dist/model/UrlSourcePdf.js +130 -0
- package/dist/model/ValidateSubmissionRequest.js +226 -0
- package/dist/model/Webhook.js +58 -73
- package/dist/model/WebhookEventType.js +174 -0
- package/dist/model/WebhookList.js +132 -0
- package/dist/model/WebhookMode.js +59 -0
- package/package.json +1 -1
- package/dist/model/BatchGeneratePdfs201Response.js +0 -194
- package/dist/model/CombinedSubmission.js +0 -313
- package/dist/model/CombinedSubmissionAction.js +0 -268
- package/dist/model/CreateCombinedSubmissionResponse.js +0 -180
- package/dist/model/CreateHtmlTemplate.js +0 -108
- package/dist/model/CreateSubmissionDataRequestData.js +0 -314
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +0 -239
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +0 -167
- package/dist/model/CreateSubmissionDataRequestResponse.js +0 -167
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +0 -167
- package/dist/model/ErrorOrMultipleErrorsResponse.js +0 -153
- package/dist/model/JsonSchema.js +0 -205
- package/dist/model/SubmissionBatchWithSubmissions.js +0 -228
- package/dist/model/SubmissionDataRequest.js +0 -496
- package/dist/model/SubmissionPreview.js +0 -509
- package/dist/model/TemplateAddFieldsResponse.js +0 -156
- package/dist/model/TemplatePreview.js +0 -796
- package/dist/model/UpdateHtmlTemplate.js +0 -108
- package/dist/model/UpdateSubmissionDataRequestData.js +0 -311
- package/dist/model/UpdateWebhookData.js +0 -108
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
|
+
* DocSpring API
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: v2
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The TemplateDiffSummary model module.
|
|
31
|
+
* @module model/TemplateDiffSummary
|
|
32
|
+
* @version 4.1.0
|
|
33
|
+
*/
|
|
34
|
+
var TemplateDiffSummary = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>TemplateDiffSummary</code>.
|
|
37
|
+
* How many changes of each kind a template diff has.
|
|
38
|
+
* @alias module:model/TemplateDiffSummary
|
|
39
|
+
* @param fields_added {Number} How many fields were added.
|
|
40
|
+
* @param fields_removed {Number} How many fields were removed.
|
|
41
|
+
* @param fields_changed {Number} How many fields have changed settings.
|
|
42
|
+
* @param fields_reordered {Number} How many fields moved in the template's field order.
|
|
43
|
+
* @param settings_changed {Number} How many of the template's settings changed.
|
|
44
|
+
* @param total_changes {Number} All the changes, counting a new document as one. Zero when the versions are the same.
|
|
45
|
+
*/
|
|
46
|
+
function TemplateDiffSummary(fields_added, fields_removed, fields_changed, fields_reordered, settings_changed, total_changes) {
|
|
47
|
+
_classCallCheck(this, TemplateDiffSummary);
|
|
48
|
+
TemplateDiffSummary.initialize(this, fields_added, fields_removed, fields_changed, fields_reordered, settings_changed, total_changes);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Initializes the fields of this object.
|
|
53
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
54
|
+
* Only for internal use.
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(TemplateDiffSummary, null, [{
|
|
57
|
+
key: "initialize",
|
|
58
|
+
value: function initialize(obj, fields_added, fields_removed, fields_changed, fields_reordered, settings_changed, total_changes) {
|
|
59
|
+
obj['fields_added'] = fields_added;
|
|
60
|
+
obj['fields_removed'] = fields_removed;
|
|
61
|
+
obj['fields_changed'] = fields_changed;
|
|
62
|
+
obj['fields_reordered'] = fields_reordered;
|
|
63
|
+
obj['settings_changed'] = settings_changed;
|
|
64
|
+
obj['total_changes'] = total_changes;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Constructs a <code>TemplateDiffSummary</code> from a plain JavaScript object, optionally creating a new instance.
|
|
69
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
70
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
71
|
+
* @param {module:model/TemplateDiffSummary} obj Optional instance to populate.
|
|
72
|
+
* @return {module:model/TemplateDiffSummary} The populated <code>TemplateDiffSummary</code> instance.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "constructFromObject",
|
|
76
|
+
value: function constructFromObject(data, obj) {
|
|
77
|
+
if (data) {
|
|
78
|
+
obj = obj || new TemplateDiffSummary();
|
|
79
|
+
if (data.hasOwnProperty('fields_added')) {
|
|
80
|
+
obj['fields_added'] = _ApiClient["default"].convertToType(data['fields_added'], 'Number');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('fields_removed')) {
|
|
83
|
+
obj['fields_removed'] = _ApiClient["default"].convertToType(data['fields_removed'], 'Number');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('fields_changed')) {
|
|
86
|
+
obj['fields_changed'] = _ApiClient["default"].convertToType(data['fields_changed'], 'Number');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('fields_reordered')) {
|
|
89
|
+
obj['fields_reordered'] = _ApiClient["default"].convertToType(data['fields_reordered'], 'Number');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('settings_changed')) {
|
|
92
|
+
obj['settings_changed'] = _ApiClient["default"].convertToType(data['settings_changed'], 'Number');
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('total_changes')) {
|
|
95
|
+
obj['total_changes'] = _ApiClient["default"].convertToType(data['total_changes'], 'Number');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Validates the JSON data with respect to <code>TemplateDiffSummary</code>.
|
|
103
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
104
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TemplateDiffSummary</code>.
|
|
105
|
+
*/
|
|
106
|
+
}, {
|
|
107
|
+
key: "validateJSON",
|
|
108
|
+
value: function validateJSON(data) {
|
|
109
|
+
// check to make sure all required properties are present in the JSON string
|
|
110
|
+
var _iterator = _createForOfIteratorHelper(TemplateDiffSummary.RequiredProperties),
|
|
111
|
+
_step;
|
|
112
|
+
try {
|
|
113
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
114
|
+
var property = _step.value;
|
|
115
|
+
if (!data.hasOwnProperty(property)) {
|
|
116
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
} catch (err) {
|
|
120
|
+
_iterator.e(err);
|
|
121
|
+
} finally {
|
|
122
|
+
_iterator.f();
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}]);
|
|
127
|
+
}();
|
|
128
|
+
TemplateDiffSummary.RequiredProperties = ["fields_added", "fields_removed", "fields_changed", "fields_reordered", "settings_changed", "total_changes"];
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* How many fields were added.
|
|
132
|
+
* @member {Number} fields_added
|
|
133
|
+
*/
|
|
134
|
+
TemplateDiffSummary.prototype['fields_added'] = undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* How many fields were removed.
|
|
138
|
+
* @member {Number} fields_removed
|
|
139
|
+
*/
|
|
140
|
+
TemplateDiffSummary.prototype['fields_removed'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* How many fields have changed settings.
|
|
144
|
+
* @member {Number} fields_changed
|
|
145
|
+
*/
|
|
146
|
+
TemplateDiffSummary.prototype['fields_changed'] = undefined;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* How many fields moved in the template's field order.
|
|
150
|
+
* @member {Number} fields_reordered
|
|
151
|
+
*/
|
|
152
|
+
TemplateDiffSummary.prototype['fields_reordered'] = undefined;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* How many of the template's settings changed.
|
|
156
|
+
* @member {Number} settings_changed
|
|
157
|
+
*/
|
|
158
|
+
TemplateDiffSummary.prototype['settings_changed'] = undefined;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* All the changes, counting a new document as one. Zero when the versions are the same.
|
|
162
|
+
* @member {Number} total_changes
|
|
163
|
+
*/
|
|
164
|
+
TemplateDiffSummary.prototype['total_changes'] = undefined;
|
|
165
|
+
var _default = exports["default"] = TemplateDiffSummary;
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _FieldReimportState = _interopRequireDefault(require("./FieldReimportState"));
|
|
9
|
+
var _TemplateDocumentState = _interopRequireDefault(require("./TemplateDocumentState"));
|
|
10
|
+
var _TemplateFieldLogicStatus = _interopRequireDefault(require("./TemplateFieldLogicStatus"));
|
|
11
|
+
var _TemplatePageProcessingStatus = _interopRequireDefault(require("./TemplatePageProcessingStatus"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
15
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
16
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
+
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); } /**
|
|
22
|
+
* DocSpring API
|
|
23
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
24
|
+
*
|
|
25
|
+
* The version of the OpenAPI document: v2
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
|
+
* https://openapi-generator.tech
|
|
30
|
+
* Do not edit the class manually.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* The TemplateDocument model module.
|
|
35
|
+
* @module model/TemplateDocument
|
|
36
|
+
* @version 4.1.0
|
|
37
|
+
*/
|
|
38
|
+
var TemplateDocument = /*#__PURE__*/function () {
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new <code>TemplateDocument</code>.
|
|
41
|
+
* A PDF template's PDF.
|
|
42
|
+
* @alias module:model/TemplateDocument
|
|
43
|
+
* @param filename {String} The PDF's file name. Null until a `document_url` has been downloaded.
|
|
44
|
+
* @param md5 {String} The MD5 hash of the PDF.
|
|
45
|
+
* @param state {module:model/TemplateDocumentState} `pending` while DocSpring processes the PDF, then `processed`. `password_required`, `malformed_pdf` and `unknown_error` mean the PDF couldn't be processed, and `error_message` says why: upload it again or upload another one. `downloading` while DocSpring downloads a `document_url`, then as for an upload. `download_failed` means it couldn't be downloaded, and `error_message` says why. A template keeps its PDF while a new one is downloaded, and when it couldn't be.
|
|
46
|
+
* @param error_message {String} Why the PDF couldn't be processed or downloaded, and how to fix it. Null unless `state` is an error.
|
|
47
|
+
* @param field_reimport_state {module:model/FieldReimportState} Whether the fields are being re-imported from this PDF (`reimport_fields` when the PDF was replaced): `requested` while DocSpring processes the PDF, then `imported`, or `no_fields` when the PDF had no fillable fields and the template kept its fields. `none` when no re-import was asked for, or when it couldn't run (the PDF couldn't be processed, or the template was locked or published while it was).
|
|
48
|
+
* @param page_count {Number} 0 until the PDF has been processed.
|
|
49
|
+
* @param page_dimensions {Array.<Array.<Number>>} Each page's width and height in PDF points. Null until the PDF has been processed.
|
|
50
|
+
* @param has_fillable_fields {Boolean} Whether the PDF has fillable form fields. Null until DocSpring has read the PDF.
|
|
51
|
+
* @param page_processing_statuses {Array.<module:model/TemplatePageProcessingStatus>} How processing is going on each page, in page order: its image, and its fields when DocSpring sets them up (`detect_fields` when the template was created). `state` becomes `processed` once every page is done. Empty until DocSpring has read the PDF, and for PDFs uploaded before DocSpring recorded page statuses.
|
|
52
|
+
* @param field_logic_status {module:model/TemplateFieldLogicStatus} AI field setup's last step, which reads the whole form once every page is done and can still rename fields and add conditional logic and required fields: `pending` or `processing` until it finishes, then `processed`, `failed` or `skipped`. Null until every page is done, and when there's no logic step to run (`field_logic` is `none`, or the PDF has no fields).
|
|
53
|
+
* @param download_url {String} A temporary link to download the PDF.
|
|
54
|
+
* @param permanent_url {String} A link to download the PDF that doesn't expire. Null until the PDF has been processed.
|
|
55
|
+
*/
|
|
56
|
+
function TemplateDocument(filename, md5, state, error_message, field_reimport_state, page_count, page_dimensions, has_fillable_fields, page_processing_statuses, field_logic_status, download_url, permanent_url) {
|
|
57
|
+
_classCallCheck(this, TemplateDocument);
|
|
58
|
+
TemplateDocument.initialize(this, filename, md5, state, error_message, field_reimport_state, page_count, page_dimensions, has_fillable_fields, page_processing_statuses, field_logic_status, download_url, permanent_url);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Initializes the fields of this object.
|
|
63
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
64
|
+
* Only for internal use.
|
|
65
|
+
*/
|
|
66
|
+
return _createClass(TemplateDocument, null, [{
|
|
67
|
+
key: "initialize",
|
|
68
|
+
value: function initialize(obj, filename, md5, state, error_message, field_reimport_state, page_count, page_dimensions, has_fillable_fields, page_processing_statuses, field_logic_status, download_url, permanent_url) {
|
|
69
|
+
obj['filename'] = filename;
|
|
70
|
+
obj['md5'] = md5;
|
|
71
|
+
obj['state'] = state;
|
|
72
|
+
obj['error_message'] = error_message;
|
|
73
|
+
obj['field_reimport_state'] = field_reimport_state;
|
|
74
|
+
obj['page_count'] = page_count;
|
|
75
|
+
obj['page_dimensions'] = page_dimensions;
|
|
76
|
+
obj['has_fillable_fields'] = has_fillable_fields;
|
|
77
|
+
obj['page_processing_statuses'] = page_processing_statuses;
|
|
78
|
+
obj['field_logic_status'] = field_logic_status;
|
|
79
|
+
obj['download_url'] = download_url;
|
|
80
|
+
obj['permanent_url'] = permanent_url;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Constructs a <code>TemplateDocument</code> from a plain JavaScript object, optionally creating a new instance.
|
|
85
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
+
* @param {module:model/TemplateDocument} obj Optional instance to populate.
|
|
88
|
+
* @return {module:model/TemplateDocument} The populated <code>TemplateDocument</code> instance.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "constructFromObject",
|
|
92
|
+
value: function constructFromObject(data, obj) {
|
|
93
|
+
if (data) {
|
|
94
|
+
obj = obj || new TemplateDocument();
|
|
95
|
+
if (data.hasOwnProperty('filename')) {
|
|
96
|
+
obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('md5')) {
|
|
99
|
+
obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('state')) {
|
|
102
|
+
obj['state'] = _ApiClient["default"].convertToType(data['state'], _TemplateDocumentState["default"]);
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('error_message')) {
|
|
105
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('field_reimport_state')) {
|
|
108
|
+
obj['field_reimport_state'] = _ApiClient["default"].convertToType(data['field_reimport_state'], _FieldReimportState["default"]);
|
|
109
|
+
}
|
|
110
|
+
if (data.hasOwnProperty('page_count')) {
|
|
111
|
+
obj['page_count'] = _ApiClient["default"].convertToType(data['page_count'], 'Number');
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('page_dimensions')) {
|
|
114
|
+
obj['page_dimensions'] = _ApiClient["default"].convertToType(data['page_dimensions'], [['Number']]);
|
|
115
|
+
}
|
|
116
|
+
if (data.hasOwnProperty('has_fillable_fields')) {
|
|
117
|
+
obj['has_fillable_fields'] = _ApiClient["default"].convertToType(data['has_fillable_fields'], 'Boolean');
|
|
118
|
+
}
|
|
119
|
+
if (data.hasOwnProperty('page_processing_statuses')) {
|
|
120
|
+
obj['page_processing_statuses'] = _ApiClient["default"].convertToType(data['page_processing_statuses'], [_TemplatePageProcessingStatus["default"]]);
|
|
121
|
+
}
|
|
122
|
+
if (data.hasOwnProperty('field_logic_status')) {
|
|
123
|
+
obj['field_logic_status'] = _ApiClient["default"].convertToType(data['field_logic_status'], _TemplateFieldLogicStatus["default"]);
|
|
124
|
+
}
|
|
125
|
+
if (data.hasOwnProperty('download_url')) {
|
|
126
|
+
obj['download_url'] = _ApiClient["default"].convertToType(data['download_url'], 'String');
|
|
127
|
+
}
|
|
128
|
+
if (data.hasOwnProperty('permanent_url')) {
|
|
129
|
+
obj['permanent_url'] = _ApiClient["default"].convertToType(data['permanent_url'], 'String');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Validates the JSON data with respect to <code>TemplateDocument</code>.
|
|
137
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
138
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TemplateDocument</code>.
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "validateJSON",
|
|
142
|
+
value: function validateJSON(data) {
|
|
143
|
+
// check to make sure all required properties are present in the JSON string
|
|
144
|
+
var _iterator = _createForOfIteratorHelper(TemplateDocument.RequiredProperties),
|
|
145
|
+
_step;
|
|
146
|
+
try {
|
|
147
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
148
|
+
var property = _step.value;
|
|
149
|
+
if (!data.hasOwnProperty(property)) {
|
|
150
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// ensure the json data is a string
|
|
154
|
+
} catch (err) {
|
|
155
|
+
_iterator.e(err);
|
|
156
|
+
} finally {
|
|
157
|
+
_iterator.f();
|
|
158
|
+
}
|
|
159
|
+
if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is a string
|
|
163
|
+
if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
|
|
165
|
+
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
169
|
+
}
|
|
170
|
+
// ensure the json data is an array
|
|
171
|
+
if (!Array.isArray(data['page_dimensions'])) {
|
|
172
|
+
throw new Error("Expected the field `page_dimensions` to be an array in the JSON data but got " + data['page_dimensions']);
|
|
173
|
+
}
|
|
174
|
+
if (data['page_processing_statuses']) {
|
|
175
|
+
// data not null
|
|
176
|
+
// ensure the json data is an array
|
|
177
|
+
if (!Array.isArray(data['page_processing_statuses'])) {
|
|
178
|
+
throw new Error("Expected the field `page_processing_statuses` to be an array in the JSON data but got " + data['page_processing_statuses']);
|
|
179
|
+
}
|
|
180
|
+
// validate the optional field `page_processing_statuses` (array)
|
|
181
|
+
var _iterator2 = _createForOfIteratorHelper(data['page_processing_statuses']),
|
|
182
|
+
_step2;
|
|
183
|
+
try {
|
|
184
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
185
|
+
var item = _step2.value;
|
|
186
|
+
_TemplatePageProcessingStatus["default"].validateJSON(item);
|
|
187
|
+
}
|
|
188
|
+
} catch (err) {
|
|
189
|
+
_iterator2.e(err);
|
|
190
|
+
} finally {
|
|
191
|
+
_iterator2.f();
|
|
192
|
+
}
|
|
193
|
+
;
|
|
194
|
+
}
|
|
195
|
+
// ensure the json data is a string
|
|
196
|
+
if (data['download_url'] && !(typeof data['download_url'] === 'string' || data['download_url'] instanceof String)) {
|
|
197
|
+
throw new Error("Expected the field `download_url` to be a primitive type in the JSON string but got " + data['download_url']);
|
|
198
|
+
}
|
|
199
|
+
// ensure the json data is a string
|
|
200
|
+
if (data['permanent_url'] && !(typeof data['permanent_url'] === 'string' || data['permanent_url'] instanceof String)) {
|
|
201
|
+
throw new Error("Expected the field `permanent_url` to be a primitive type in the JSON string but got " + data['permanent_url']);
|
|
202
|
+
}
|
|
203
|
+
return true;
|
|
204
|
+
}
|
|
205
|
+
}]);
|
|
206
|
+
}();
|
|
207
|
+
TemplateDocument.RequiredProperties = ["filename", "md5", "state", "error_message", "field_reimport_state", "page_count", "page_dimensions", "has_fillable_fields", "page_processing_statuses", "field_logic_status", "download_url", "permanent_url"];
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The PDF's file name. Null until a `document_url` has been downloaded.
|
|
211
|
+
* @member {String} filename
|
|
212
|
+
*/
|
|
213
|
+
TemplateDocument.prototype['filename'] = undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The MD5 hash of the PDF.
|
|
217
|
+
* @member {String} md5
|
|
218
|
+
*/
|
|
219
|
+
TemplateDocument.prototype['md5'] = undefined;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* `pending` while DocSpring processes the PDF, then `processed`. `password_required`, `malformed_pdf` and `unknown_error` mean the PDF couldn't be processed, and `error_message` says why: upload it again or upload another one. `downloading` while DocSpring downloads a `document_url`, then as for an upload. `download_failed` means it couldn't be downloaded, and `error_message` says why. A template keeps its PDF while a new one is downloaded, and when it couldn't be.
|
|
223
|
+
* @member {module:model/TemplateDocumentState} state
|
|
224
|
+
*/
|
|
225
|
+
TemplateDocument.prototype['state'] = undefined;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Why the PDF couldn't be processed or downloaded, and how to fix it. Null unless `state` is an error.
|
|
229
|
+
* @member {String} error_message
|
|
230
|
+
*/
|
|
231
|
+
TemplateDocument.prototype['error_message'] = undefined;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Whether the fields are being re-imported from this PDF (`reimport_fields` when the PDF was replaced): `requested` while DocSpring processes the PDF, then `imported`, or `no_fields` when the PDF had no fillable fields and the template kept its fields. `none` when no re-import was asked for, or when it couldn't run (the PDF couldn't be processed, or the template was locked or published while it was).
|
|
235
|
+
* @member {module:model/FieldReimportState} field_reimport_state
|
|
236
|
+
*/
|
|
237
|
+
TemplateDocument.prototype['field_reimport_state'] = undefined;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 0 until the PDF has been processed.
|
|
241
|
+
* @member {Number} page_count
|
|
242
|
+
*/
|
|
243
|
+
TemplateDocument.prototype['page_count'] = undefined;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Each page's width and height in PDF points. Null until the PDF has been processed.
|
|
247
|
+
* @member {Array.<Array.<Number>>} page_dimensions
|
|
248
|
+
*/
|
|
249
|
+
TemplateDocument.prototype['page_dimensions'] = undefined;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Whether the PDF has fillable form fields. Null until DocSpring has read the PDF.
|
|
253
|
+
* @member {Boolean} has_fillable_fields
|
|
254
|
+
*/
|
|
255
|
+
TemplateDocument.prototype['has_fillable_fields'] = undefined;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* How processing is going on each page, in page order: its image, and its fields when DocSpring sets them up (`detect_fields` when the template was created). `state` becomes `processed` once every page is done. Empty until DocSpring has read the PDF, and for PDFs uploaded before DocSpring recorded page statuses.
|
|
259
|
+
* @member {Array.<module:model/TemplatePageProcessingStatus>} page_processing_statuses
|
|
260
|
+
*/
|
|
261
|
+
TemplateDocument.prototype['page_processing_statuses'] = undefined;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* AI field setup's last step, which reads the whole form once every page is done and can still rename fields and add conditional logic and required fields: `pending` or `processing` until it finishes, then `processed`, `failed` or `skipped`. Null until every page is done, and when there's no logic step to run (`field_logic` is `none`, or the PDF has no fields).
|
|
265
|
+
* @member {module:model/TemplateFieldLogicStatus} field_logic_status
|
|
266
|
+
*/
|
|
267
|
+
TemplateDocument.prototype['field_logic_status'] = undefined;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* A temporary link to download the PDF.
|
|
271
|
+
* @member {String} download_url
|
|
272
|
+
*/
|
|
273
|
+
TemplateDocument.prototype['download_url'] = undefined;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* A link to download the PDF that doesn't expire. Null until the PDF has been processed.
|
|
277
|
+
* @member {String} permanent_url
|
|
278
|
+
*/
|
|
279
|
+
TemplateDocument.prototype['permanent_url'] = undefined;
|
|
280
|
+
var _default = exports["default"] = TemplateDocument;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
* DocSpring API
|
|
17
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: v2
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Enum class TemplateDocumentState.
|
|
29
|
+
* @enum {}
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
var TemplateDocumentState = exports["default"] = /*#__PURE__*/function () {
|
|
33
|
+
function TemplateDocumentState() {
|
|
34
|
+
_classCallCheck(this, TemplateDocumentState);
|
|
35
|
+
}
|
|
36
|
+
return _createClass(TemplateDocumentState, null, [{
|
|
37
|
+
key: "constructFromObject",
|
|
38
|
+
value:
|
|
39
|
+
/**
|
|
40
|
+
* Returns a <code>TemplateDocumentState</code> enum value from a Javascript object name.
|
|
41
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
42
|
+
* @return {module:model/TemplateDocumentState} The enum <code>TemplateDocumentState</code> value.
|
|
43
|
+
*/
|
|
44
|
+
function constructFromObject(object) {
|
|
45
|
+
// Any value, including one added to the API after this client was released
|
|
46
|
+
return object;
|
|
47
|
+
}
|
|
48
|
+
}]);
|
|
49
|
+
}();
|
|
50
|
+
/**
|
|
51
|
+
* value: "pending"
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
_defineProperty(TemplateDocumentState, "pending", "pending");
|
|
55
|
+
/**
|
|
56
|
+
* value: "processed"
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
_defineProperty(TemplateDocumentState, "processed", "processed");
|
|
60
|
+
/**
|
|
61
|
+
* value: "password_required"
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
_defineProperty(TemplateDocumentState, "password_required", "password_required");
|
|
65
|
+
/**
|
|
66
|
+
* value: "malformed_pdf"
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
_defineProperty(TemplateDocumentState, "malformed_pdf", "malformed_pdf");
|
|
70
|
+
/**
|
|
71
|
+
* value: "unknown_error"
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
_defineProperty(TemplateDocumentState, "unknown_error", "unknown_error");
|
|
75
|
+
/**
|
|
76
|
+
* value: "downloading"
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
_defineProperty(TemplateDocumentState, "downloading", "downloading");
|
|
80
|
+
/**
|
|
81
|
+
* value: "download_failed"
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
_defineProperty(TemplateDocumentState, "download_failed", "download_failed");
|