docspring 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/ApiClient.js +2 -2
- package/dist/api/PDFApi.js +96 -7
- package/dist/index.js +28 -0
- package/dist/model/AddFieldsData.js +1 -1
- package/dist/model/BatchGeneratePdfs201Response.js +1 -1
- package/dist/model/CombinePdfsData.js +1 -1
- package/dist/model/CombinedSubmission.js +1 -1
- package/dist/model/CombinedSubmissionAction.js +1 -1
- package/dist/model/CombinedSubmissionData.js +1 -1
- package/dist/model/CopyTemplateOptions.js +1 -1
- package/dist/model/CreateCombinedSubmissionResponse.js +1 -1
- package/dist/model/CreateCustomFileData.js +1 -1
- package/dist/model/CreateCustomFileResponse.js +1 -1
- package/dist/model/CreateFolderData.js +1 -1
- package/dist/model/CreateHtmlSubmissionData.js +13 -1
- package/dist/model/CreateHtmlTemplate.js +1 -1
- package/dist/model/CreatePdfSubmissionData.js +13 -1
- package/dist/model/CreatePdfTemplate.js +1 -1
- package/dist/model/CreateSubmissionDataRequestData.js +1 -1
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +1 -1
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +1 -1
- package/dist/model/CreateSubmissionDataRequestResponse.js +1 -1
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +1 -1
- package/dist/model/CreateSubmissionResponse.js +1 -1
- package/dist/model/CustomFile.js +1 -1
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/Folder.js +1 -1
- package/dist/model/JsonSchema.js +1 -1
- package/dist/model/ListSubmissionsResponse.js +1 -1
- package/dist/model/MoveFolderData.js +1 -1
- package/dist/model/MoveTemplateData.js +1 -1
- package/dist/model/MultipleErrorsResponse.js +1 -1
- package/dist/model/PublishVersionData.js +124 -0
- package/dist/model/RenameFolderData.js +1 -1
- package/dist/model/RestoreVersionData.js +112 -0
- package/dist/model/Submission.js +51 -5
- package/dist/model/SubmissionAction.js +1 -1
- package/dist/model/SubmissionBatch.js +1 -1
- package/dist/model/SubmissionBatchData.js +1 -1
- package/dist/model/SubmissionBatchWithSubmissions.js +1 -1
- package/dist/model/SubmissionDataRequest.js +1 -1
- package/dist/model/SubmissionDataRequestEvent.js +1 -1
- package/dist/model/SubmissionDataRequestShow.js +1 -1
- package/dist/model/SubmissionDataRequestToken.js +1 -1
- package/dist/model/SubmissionPreview.js +51 -5
- package/dist/model/SuccessErrorResponse.js +1 -1
- package/dist/model/SuccessMultipleErrorsResponse.js +1 -1
- package/dist/model/Template.js +121 -5
- package/dist/model/TemplateAddFieldsResponse.js +1 -1
- package/dist/model/TemplateDeleteResponse.js +166 -0
- package/dist/model/TemplatePreview.js +107 -5
- package/dist/model/TemplatePublishVersionResponse.js +152 -0
- package/dist/model/UpdateHtmlTemplate.js +1 -1
- package/dist/model/UpdateSubmissionDataRequestData.js +1 -1
- package/dist/model/UploadPresignResponse.js +1 -1
- package/package.json +1 -1
package/dist/model/Template.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Template model module.
|
|
31
31
|
* @module model/Template
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var Template = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -69,8 +69,14 @@ var Template = /*#__PURE__*/function () {
|
|
|
69
69
|
* @param slackWebhookUrl {String}
|
|
70
70
|
* @param templateType {module:model/Template.TemplateTypeEnum}
|
|
71
71
|
* @param updatedAt {String}
|
|
72
|
+
* @param versionPublishedAt {String}
|
|
73
|
+
* @param version {String}
|
|
72
74
|
* @param webhookUrl {String}
|
|
73
75
|
* @param demo {Boolean}
|
|
76
|
+
* @param latestVersion {String}
|
|
77
|
+
* @param lastChangedAt {String}
|
|
78
|
+
* @param lastChangedByType {module:model/Template.LastChangedByTypeEnum}
|
|
79
|
+
* @param lastChangedById {String}
|
|
74
80
|
* @param defaults {Object}
|
|
75
81
|
* @param fieldOrder {Array.<Array.<Number>>}
|
|
76
82
|
* @param fields {Object}
|
|
@@ -81,10 +87,11 @@ var Template = /*#__PURE__*/function () {
|
|
|
81
87
|
* @param predefinedFields {Array.<Object>}
|
|
82
88
|
* @param scss {String}
|
|
83
89
|
* @param sharedFieldData {Object}
|
|
90
|
+
* @param versions {Array.<Object>}
|
|
84
91
|
*/
|
|
85
|
-
function Template(addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData) {
|
|
92
|
+
function Template(addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions) {
|
|
86
93
|
_classCallCheck(this, Template);
|
|
87
|
-
Template.initialize(this, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData);
|
|
94
|
+
Template.initialize(this, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions);
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
/**
|
|
@@ -94,7 +101,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
94
101
|
*/
|
|
95
102
|
return _createClass(Template, null, [{
|
|
96
103
|
key: "initialize",
|
|
97
|
-
value: function initialize(obj, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData) {
|
|
104
|
+
value: function initialize(obj, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById, defaults, fieldOrder, fields, footerHtml, headerHtml, htmlEngineOptions, html, predefinedFields, scss, sharedFieldData, versions) {
|
|
98
105
|
obj['add_data_request_submission_id_footers'] = addDataRequestSubmissionIdFooters;
|
|
99
106
|
obj['allow_additional_properties'] = allowAdditionalProperties;
|
|
100
107
|
obj['description'] = description;
|
|
@@ -129,8 +136,14 @@ var Template = /*#__PURE__*/function () {
|
|
|
129
136
|
obj['slack_webhook_url'] = slackWebhookUrl;
|
|
130
137
|
obj['template_type'] = templateType;
|
|
131
138
|
obj['updated_at'] = updatedAt;
|
|
139
|
+
obj['version_published_at'] = versionPublishedAt;
|
|
140
|
+
obj['version'] = version;
|
|
132
141
|
obj['webhook_url'] = webhookUrl;
|
|
133
142
|
obj['demo'] = demo;
|
|
143
|
+
obj['latest_version'] = latestVersion;
|
|
144
|
+
obj['last_changed_at'] = lastChangedAt;
|
|
145
|
+
obj['last_changed_by_type'] = lastChangedByType;
|
|
146
|
+
obj['last_changed_by_id'] = lastChangedById;
|
|
134
147
|
obj['defaults'] = defaults;
|
|
135
148
|
obj['field_order'] = fieldOrder;
|
|
136
149
|
obj['fields'] = fields;
|
|
@@ -141,6 +154,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
141
154
|
obj['predefined_fields'] = predefinedFields;
|
|
142
155
|
obj['scss'] = scss;
|
|
143
156
|
obj['shared_field_data'] = sharedFieldData;
|
|
157
|
+
obj['versions'] = versions;
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
/**
|
|
@@ -257,12 +271,30 @@ var Template = /*#__PURE__*/function () {
|
|
|
257
271
|
if (data.hasOwnProperty('updated_at')) {
|
|
258
272
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'String');
|
|
259
273
|
}
|
|
274
|
+
if (data.hasOwnProperty('version_published_at')) {
|
|
275
|
+
obj['version_published_at'] = _ApiClient["default"].convertToType(data['version_published_at'], 'String');
|
|
276
|
+
}
|
|
277
|
+
if (data.hasOwnProperty('version')) {
|
|
278
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
279
|
+
}
|
|
260
280
|
if (data.hasOwnProperty('webhook_url')) {
|
|
261
281
|
obj['webhook_url'] = _ApiClient["default"].convertToType(data['webhook_url'], 'String');
|
|
262
282
|
}
|
|
263
283
|
if (data.hasOwnProperty('demo')) {
|
|
264
284
|
obj['demo'] = _ApiClient["default"].convertToType(data['demo'], 'Boolean');
|
|
265
285
|
}
|
|
286
|
+
if (data.hasOwnProperty('latest_version')) {
|
|
287
|
+
obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'String');
|
|
288
|
+
}
|
|
289
|
+
if (data.hasOwnProperty('last_changed_at')) {
|
|
290
|
+
obj['last_changed_at'] = _ApiClient["default"].convertToType(data['last_changed_at'], 'String');
|
|
291
|
+
}
|
|
292
|
+
if (data.hasOwnProperty('last_changed_by_type')) {
|
|
293
|
+
obj['last_changed_by_type'] = _ApiClient["default"].convertToType(data['last_changed_by_type'], 'String');
|
|
294
|
+
}
|
|
295
|
+
if (data.hasOwnProperty('last_changed_by_id')) {
|
|
296
|
+
obj['last_changed_by_id'] = _ApiClient["default"].convertToType(data['last_changed_by_id'], 'String');
|
|
297
|
+
}
|
|
266
298
|
if (data.hasOwnProperty('defaults')) {
|
|
267
299
|
obj['defaults'] = _ApiClient["default"].convertToType(data['defaults'], Object);
|
|
268
300
|
}
|
|
@@ -293,6 +325,9 @@ var Template = /*#__PURE__*/function () {
|
|
|
293
325
|
if (data.hasOwnProperty('shared_field_data')) {
|
|
294
326
|
obj['shared_field_data'] = _ApiClient["default"].convertToType(data['shared_field_data'], Object);
|
|
295
327
|
}
|
|
328
|
+
if (data.hasOwnProperty('versions')) {
|
|
329
|
+
obj['versions'] = _ApiClient["default"].convertToType(data['versions'], [Object]);
|
|
330
|
+
}
|
|
296
331
|
}
|
|
297
332
|
return obj;
|
|
298
333
|
}
|
|
@@ -401,9 +436,33 @@ var Template = /*#__PURE__*/function () {
|
|
|
401
436
|
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
402
437
|
}
|
|
403
438
|
// ensure the json data is a string
|
|
439
|
+
if (data['version_published_at'] && !(typeof data['version_published_at'] === 'string' || data['version_published_at'] instanceof String)) {
|
|
440
|
+
throw new Error("Expected the field `version_published_at` to be a primitive type in the JSON string but got " + data['version_published_at']);
|
|
441
|
+
}
|
|
442
|
+
// ensure the json data is a string
|
|
443
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
444
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
445
|
+
}
|
|
446
|
+
// ensure the json data is a string
|
|
404
447
|
if (data['webhook_url'] && !(typeof data['webhook_url'] === 'string' || data['webhook_url'] instanceof String)) {
|
|
405
448
|
throw new Error("Expected the field `webhook_url` to be a primitive type in the JSON string but got " + data['webhook_url']);
|
|
406
449
|
}
|
|
450
|
+
// ensure the json data is a string
|
|
451
|
+
if (data['latest_version'] && !(typeof data['latest_version'] === 'string' || data['latest_version'] instanceof String)) {
|
|
452
|
+
throw new Error("Expected the field `latest_version` to be a primitive type in the JSON string but got " + data['latest_version']);
|
|
453
|
+
}
|
|
454
|
+
// ensure the json data is a string
|
|
455
|
+
if (data['last_changed_at'] && !(typeof data['last_changed_at'] === 'string' || data['last_changed_at'] instanceof String)) {
|
|
456
|
+
throw new Error("Expected the field `last_changed_at` to be a primitive type in the JSON string but got " + data['last_changed_at']);
|
|
457
|
+
}
|
|
458
|
+
// ensure the json data is a string
|
|
459
|
+
if (data['last_changed_by_type'] && !(typeof data['last_changed_by_type'] === 'string' || data['last_changed_by_type'] instanceof String)) {
|
|
460
|
+
throw new Error("Expected the field `last_changed_by_type` to be a primitive type in the JSON string but got " + data['last_changed_by_type']);
|
|
461
|
+
}
|
|
462
|
+
// ensure the json data is a string
|
|
463
|
+
if (data['last_changed_by_id'] && !(typeof data['last_changed_by_id'] === 'string' || data['last_changed_by_id'] instanceof String)) {
|
|
464
|
+
throw new Error("Expected the field `last_changed_by_id` to be a primitive type in the JSON string but got " + data['last_changed_by_id']);
|
|
465
|
+
}
|
|
407
466
|
// ensure the json data is an array
|
|
408
467
|
if (!Array.isArray(data['field_order'])) {
|
|
409
468
|
throw new Error("Expected the field `field_order` to be an array in the JSON data but got " + data['field_order']);
|
|
@@ -428,11 +487,15 @@ var Template = /*#__PURE__*/function () {
|
|
|
428
487
|
if (data['scss'] && !(typeof data['scss'] === 'string' || data['scss'] instanceof String)) {
|
|
429
488
|
throw new Error("Expected the field `scss` to be a primitive type in the JSON string but got " + data['scss']);
|
|
430
489
|
}
|
|
490
|
+
// ensure the json data is an array
|
|
491
|
+
if (!Array.isArray(data['versions'])) {
|
|
492
|
+
throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
|
|
493
|
+
}
|
|
431
494
|
return true;
|
|
432
495
|
}
|
|
433
496
|
}]);
|
|
434
497
|
}();
|
|
435
|
-
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "webhook_url", "demo", "defaults", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data"];
|
|
498
|
+
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "defaults", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "versions"];
|
|
436
499
|
|
|
437
500
|
/**
|
|
438
501
|
* @member {Boolean} add_data_request_submission_id_footers
|
|
@@ -604,6 +667,16 @@ Template.prototype['template_type'] = undefined;
|
|
|
604
667
|
*/
|
|
605
668
|
Template.prototype['updated_at'] = undefined;
|
|
606
669
|
|
|
670
|
+
/**
|
|
671
|
+
* @member {String} version_published_at
|
|
672
|
+
*/
|
|
673
|
+
Template.prototype['version_published_at'] = undefined;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* @member {String} version
|
|
677
|
+
*/
|
|
678
|
+
Template.prototype['version'] = undefined;
|
|
679
|
+
|
|
607
680
|
/**
|
|
608
681
|
* @member {String} webhook_url
|
|
609
682
|
*/
|
|
@@ -614,6 +687,26 @@ Template.prototype['webhook_url'] = undefined;
|
|
|
614
687
|
*/
|
|
615
688
|
Template.prototype['demo'] = undefined;
|
|
616
689
|
|
|
690
|
+
/**
|
|
691
|
+
* @member {String} latest_version
|
|
692
|
+
*/
|
|
693
|
+
Template.prototype['latest_version'] = undefined;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* @member {String} last_changed_at
|
|
697
|
+
*/
|
|
698
|
+
Template.prototype['last_changed_at'] = undefined;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @member {module:model/Template.LastChangedByTypeEnum} last_changed_by_type
|
|
702
|
+
*/
|
|
703
|
+
Template.prototype['last_changed_by_type'] = undefined;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* @member {String} last_changed_by_id
|
|
707
|
+
*/
|
|
708
|
+
Template.prototype['last_changed_by_id'] = undefined;
|
|
709
|
+
|
|
617
710
|
/**
|
|
618
711
|
* @member {Object} defaults
|
|
619
712
|
*/
|
|
@@ -664,6 +757,11 @@ Template.prototype['scss'] = undefined;
|
|
|
664
757
|
*/
|
|
665
758
|
Template.prototype['shared_field_data'] = undefined;
|
|
666
759
|
|
|
760
|
+
/**
|
|
761
|
+
* @member {Array.<Object>} versions
|
|
762
|
+
*/
|
|
763
|
+
Template.prototype['versions'] = undefined;
|
|
764
|
+
|
|
667
765
|
/**
|
|
668
766
|
* Allowed values for the <code>document_state</code> property.
|
|
669
767
|
* @enum {String}
|
|
@@ -714,4 +812,22 @@ Template['TemplateTypeEnum'] = {
|
|
|
714
812
|
*/
|
|
715
813
|
"html": "html"
|
|
716
814
|
};
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Allowed values for the <code>last_changed_by_type</code> property.
|
|
818
|
+
* @enum {String}
|
|
819
|
+
* @readonly
|
|
820
|
+
*/
|
|
821
|
+
Template['LastChangedByTypeEnum'] = {
|
|
822
|
+
/**
|
|
823
|
+
* value: "user"
|
|
824
|
+
* @const
|
|
825
|
+
*/
|
|
826
|
+
"user": "user",
|
|
827
|
+
/**
|
|
828
|
+
* value: "api"
|
|
829
|
+
* @const
|
|
830
|
+
*/
|
|
831
|
+
"api": "api"
|
|
832
|
+
};
|
|
717
833
|
var _default = exports["default"] = Template;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateAddFieldsResponse model module.
|
|
31
31
|
* @module model/TemplateAddFieldsResponse
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateAddFieldsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -0,0 +1,166 @@
|
|
|
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, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* DocSpring API
|
|
19
|
+
* DocSpring provides an API that helps you fill out and sign PDF templates.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: v1
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The TemplateDeleteResponse model module.
|
|
31
|
+
* @module model/TemplateDeleteResponse
|
|
32
|
+
* @version 2.1.0
|
|
33
|
+
*/
|
|
34
|
+
var TemplateDeleteResponse = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>TemplateDeleteResponse</code>.
|
|
37
|
+
* @alias module:model/TemplateDeleteResponse
|
|
38
|
+
* @param status {module:model/TemplateDeleteResponse.StatusEnum}
|
|
39
|
+
*/
|
|
40
|
+
function TemplateDeleteResponse(status) {
|
|
41
|
+
_classCallCheck(this, TemplateDeleteResponse);
|
|
42
|
+
TemplateDeleteResponse.initialize(this, status);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(TemplateDeleteResponse, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, status) {
|
|
53
|
+
obj['status'] = status;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>TemplateDeleteResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/TemplateDeleteResponse} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/TemplateDeleteResponse} The populated <code>TemplateDeleteResponse</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new TemplateDeleteResponse();
|
|
68
|
+
if (data.hasOwnProperty('status')) {
|
|
69
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('errors')) {
|
|
72
|
+
obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('latest_version')) {
|
|
75
|
+
obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('versions')) {
|
|
78
|
+
obj['versions'] = _ApiClient["default"].convertToType(data['versions'], [Object]);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Validates the JSON data with respect to <code>TemplateDeleteResponse</code>.
|
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TemplateDeleteResponse</code>.
|
|
88
|
+
*/
|
|
89
|
+
}, {
|
|
90
|
+
key: "validateJSON",
|
|
91
|
+
value: function validateJSON(data) {
|
|
92
|
+
// check to make sure all required properties are present in the JSON string
|
|
93
|
+
var _iterator = _createForOfIteratorHelper(TemplateDeleteResponse.RequiredProperties),
|
|
94
|
+
_step;
|
|
95
|
+
try {
|
|
96
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
97
|
+
var property = _step.value;
|
|
98
|
+
if (!data.hasOwnProperty(property)) {
|
|
99
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// ensure the json data is a string
|
|
103
|
+
} catch (err) {
|
|
104
|
+
_iterator.e(err);
|
|
105
|
+
} finally {
|
|
106
|
+
_iterator.f();
|
|
107
|
+
}
|
|
108
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
110
|
+
}
|
|
111
|
+
// ensure the json data is an array
|
|
112
|
+
if (!Array.isArray(data['errors'])) {
|
|
113
|
+
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
114
|
+
}
|
|
115
|
+
// ensure the json data is a string
|
|
116
|
+
if (data['latest_version'] && !(typeof data['latest_version'] === 'string' || data['latest_version'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `latest_version` to be a primitive type in the JSON string but got " + data['latest_version']);
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is an array
|
|
120
|
+
if (!Array.isArray(data['versions'])) {
|
|
121
|
+
throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
|
|
122
|
+
}
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
}]);
|
|
126
|
+
}();
|
|
127
|
+
TemplateDeleteResponse.RequiredProperties = ["status"];
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @member {module:model/TemplateDeleteResponse.StatusEnum} status
|
|
131
|
+
*/
|
|
132
|
+
TemplateDeleteResponse.prototype['status'] = undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @member {Array.<String>} errors
|
|
136
|
+
*/
|
|
137
|
+
TemplateDeleteResponse.prototype['errors'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @member {String} latest_version
|
|
141
|
+
*/
|
|
142
|
+
TemplateDeleteResponse.prototype['latest_version'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @member {Array.<Object>} versions
|
|
146
|
+
*/
|
|
147
|
+
TemplateDeleteResponse.prototype['versions'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Allowed values for the <code>status</code> property.
|
|
151
|
+
* @enum {String}
|
|
152
|
+
* @readonly
|
|
153
|
+
*/
|
|
154
|
+
TemplateDeleteResponse['StatusEnum'] = {
|
|
155
|
+
/**
|
|
156
|
+
* value: "success"
|
|
157
|
+
* @const
|
|
158
|
+
*/
|
|
159
|
+
"success": "success",
|
|
160
|
+
/**
|
|
161
|
+
* value: "error"
|
|
162
|
+
* @const
|
|
163
|
+
*/
|
|
164
|
+
"error": "error"
|
|
165
|
+
};
|
|
166
|
+
var _default = exports["default"] = TemplateDeleteResponse;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplatePreview model module.
|
|
31
31
|
* @module model/TemplatePreview
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplatePreview = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -69,12 +69,18 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
69
69
|
* @param slackWebhookUrl {String}
|
|
70
70
|
* @param templateType {module:model/TemplatePreview.TemplateTypeEnum}
|
|
71
71
|
* @param updatedAt {String}
|
|
72
|
+
* @param versionPublishedAt {String}
|
|
73
|
+
* @param version {String}
|
|
72
74
|
* @param webhookUrl {String}
|
|
73
75
|
* @param demo {Boolean}
|
|
76
|
+
* @param latestVersion {String}
|
|
77
|
+
* @param lastChangedAt {String}
|
|
78
|
+
* @param lastChangedByType {module:model/TemplatePreview.LastChangedByTypeEnum}
|
|
79
|
+
* @param lastChangedById {String}
|
|
74
80
|
*/
|
|
75
|
-
function TemplatePreview(addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo) {
|
|
81
|
+
function TemplatePreview(addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById) {
|
|
76
82
|
_classCallCheck(this, TemplatePreview);
|
|
77
|
-
TemplatePreview.initialize(this, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo);
|
|
83
|
+
TemplatePreview.initialize(this, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById);
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
/**
|
|
@@ -84,7 +90,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
84
90
|
*/
|
|
85
91
|
return _createClass(TemplatePreview, null, [{
|
|
86
92
|
key: "initialize",
|
|
87
|
-
value: function initialize(obj, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, webhookUrl, demo) {
|
|
93
|
+
value: function initialize(obj, addDataRequestSubmissionIdFooters, allowAdditionalProperties, description, documentFilename, documentMd5, documentParseError, documentProcessed, documentState, documentUrl, editableSubmissions, embedDomains, encryptPdfsPassword, encryptPdfs, expirationInterval, expireAfter, expireSubmissions, externalPredefinedFieldsTemplateId, externalPredefinedFieldsTemplateName, firstTemplate, id, locked, mergeAuditTrailPdf, name, pageCount, pageDimensions, parentFolderId, path, permanentDocumentUrl, publicSubmissions, publicWebForm, redirectUrl, slackWebhookUrl, templateType, updatedAt, versionPublishedAt, version, webhookUrl, demo, latestVersion, lastChangedAt, lastChangedByType, lastChangedById) {
|
|
88
94
|
obj['add_data_request_submission_id_footers'] = addDataRequestSubmissionIdFooters;
|
|
89
95
|
obj['allow_additional_properties'] = allowAdditionalProperties;
|
|
90
96
|
obj['description'] = description;
|
|
@@ -119,8 +125,14 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
119
125
|
obj['slack_webhook_url'] = slackWebhookUrl;
|
|
120
126
|
obj['template_type'] = templateType;
|
|
121
127
|
obj['updated_at'] = updatedAt;
|
|
128
|
+
obj['version_published_at'] = versionPublishedAt;
|
|
129
|
+
obj['version'] = version;
|
|
122
130
|
obj['webhook_url'] = webhookUrl;
|
|
123
131
|
obj['demo'] = demo;
|
|
132
|
+
obj['latest_version'] = latestVersion;
|
|
133
|
+
obj['last_changed_at'] = lastChangedAt;
|
|
134
|
+
obj['last_changed_by_type'] = lastChangedByType;
|
|
135
|
+
obj['last_changed_by_id'] = lastChangedById;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
138
|
/**
|
|
@@ -237,12 +249,30 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
237
249
|
if (data.hasOwnProperty('updated_at')) {
|
|
238
250
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'String');
|
|
239
251
|
}
|
|
252
|
+
if (data.hasOwnProperty('version_published_at')) {
|
|
253
|
+
obj['version_published_at'] = _ApiClient["default"].convertToType(data['version_published_at'], 'String');
|
|
254
|
+
}
|
|
255
|
+
if (data.hasOwnProperty('version')) {
|
|
256
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
257
|
+
}
|
|
240
258
|
if (data.hasOwnProperty('webhook_url')) {
|
|
241
259
|
obj['webhook_url'] = _ApiClient["default"].convertToType(data['webhook_url'], 'String');
|
|
242
260
|
}
|
|
243
261
|
if (data.hasOwnProperty('demo')) {
|
|
244
262
|
obj['demo'] = _ApiClient["default"].convertToType(data['demo'], 'Boolean');
|
|
245
263
|
}
|
|
264
|
+
if (data.hasOwnProperty('latest_version')) {
|
|
265
|
+
obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'String');
|
|
266
|
+
}
|
|
267
|
+
if (data.hasOwnProperty('last_changed_at')) {
|
|
268
|
+
obj['last_changed_at'] = _ApiClient["default"].convertToType(data['last_changed_at'], 'String');
|
|
269
|
+
}
|
|
270
|
+
if (data.hasOwnProperty('last_changed_by_type')) {
|
|
271
|
+
obj['last_changed_by_type'] = _ApiClient["default"].convertToType(data['last_changed_by_type'], 'String');
|
|
272
|
+
}
|
|
273
|
+
if (data.hasOwnProperty('last_changed_by_id')) {
|
|
274
|
+
obj['last_changed_by_id'] = _ApiClient["default"].convertToType(data['last_changed_by_id'], 'String');
|
|
275
|
+
}
|
|
246
276
|
}
|
|
247
277
|
return obj;
|
|
248
278
|
}
|
|
@@ -351,14 +381,38 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
351
381
|
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']);
|
|
352
382
|
}
|
|
353
383
|
// ensure the json data is a string
|
|
384
|
+
if (data['version_published_at'] && !(typeof data['version_published_at'] === 'string' || data['version_published_at'] instanceof String)) {
|
|
385
|
+
throw new Error("Expected the field `version_published_at` to be a primitive type in the JSON string but got " + data['version_published_at']);
|
|
386
|
+
}
|
|
387
|
+
// ensure the json data is a string
|
|
388
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
389
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
390
|
+
}
|
|
391
|
+
// ensure the json data is a string
|
|
354
392
|
if (data['webhook_url'] && !(typeof data['webhook_url'] === 'string' || data['webhook_url'] instanceof String)) {
|
|
355
393
|
throw new Error("Expected the field `webhook_url` to be a primitive type in the JSON string but got " + data['webhook_url']);
|
|
356
394
|
}
|
|
395
|
+
// ensure the json data is a string
|
|
396
|
+
if (data['latest_version'] && !(typeof data['latest_version'] === 'string' || data['latest_version'] instanceof String)) {
|
|
397
|
+
throw new Error("Expected the field `latest_version` to be a primitive type in the JSON string but got " + data['latest_version']);
|
|
398
|
+
}
|
|
399
|
+
// ensure the json data is a string
|
|
400
|
+
if (data['last_changed_at'] && !(typeof data['last_changed_at'] === 'string' || data['last_changed_at'] instanceof String)) {
|
|
401
|
+
throw new Error("Expected the field `last_changed_at` to be a primitive type in the JSON string but got " + data['last_changed_at']);
|
|
402
|
+
}
|
|
403
|
+
// ensure the json data is a string
|
|
404
|
+
if (data['last_changed_by_type'] && !(typeof data['last_changed_by_type'] === 'string' || data['last_changed_by_type'] instanceof String)) {
|
|
405
|
+
throw new Error("Expected the field `last_changed_by_type` to be a primitive type in the JSON string but got " + data['last_changed_by_type']);
|
|
406
|
+
}
|
|
407
|
+
// ensure the json data is a string
|
|
408
|
+
if (data['last_changed_by_id'] && !(typeof data['last_changed_by_id'] === 'string' || data['last_changed_by_id'] instanceof String)) {
|
|
409
|
+
throw new Error("Expected the field `last_changed_by_id` to be a primitive type in the JSON string but got " + data['last_changed_by_id']);
|
|
410
|
+
}
|
|
357
411
|
return true;
|
|
358
412
|
}
|
|
359
413
|
}]);
|
|
360
414
|
}();
|
|
361
|
-
TemplatePreview.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "webhook_url", "demo"];
|
|
415
|
+
TemplatePreview.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id"];
|
|
362
416
|
|
|
363
417
|
/**
|
|
364
418
|
* @member {Boolean} add_data_request_submission_id_footers
|
|
@@ -530,6 +584,16 @@ TemplatePreview.prototype['template_type'] = undefined;
|
|
|
530
584
|
*/
|
|
531
585
|
TemplatePreview.prototype['updated_at'] = undefined;
|
|
532
586
|
|
|
587
|
+
/**
|
|
588
|
+
* @member {String} version_published_at
|
|
589
|
+
*/
|
|
590
|
+
TemplatePreview.prototype['version_published_at'] = undefined;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @member {String} version
|
|
594
|
+
*/
|
|
595
|
+
TemplatePreview.prototype['version'] = undefined;
|
|
596
|
+
|
|
533
597
|
/**
|
|
534
598
|
* @member {String} webhook_url
|
|
535
599
|
*/
|
|
@@ -540,6 +604,26 @@ TemplatePreview.prototype['webhook_url'] = undefined;
|
|
|
540
604
|
*/
|
|
541
605
|
TemplatePreview.prototype['demo'] = undefined;
|
|
542
606
|
|
|
607
|
+
/**
|
|
608
|
+
* @member {String} latest_version
|
|
609
|
+
*/
|
|
610
|
+
TemplatePreview.prototype['latest_version'] = undefined;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* @member {String} last_changed_at
|
|
614
|
+
*/
|
|
615
|
+
TemplatePreview.prototype['last_changed_at'] = undefined;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @member {module:model/TemplatePreview.LastChangedByTypeEnum} last_changed_by_type
|
|
619
|
+
*/
|
|
620
|
+
TemplatePreview.prototype['last_changed_by_type'] = undefined;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @member {String} last_changed_by_id
|
|
624
|
+
*/
|
|
625
|
+
TemplatePreview.prototype['last_changed_by_id'] = undefined;
|
|
626
|
+
|
|
543
627
|
/**
|
|
544
628
|
* Allowed values for the <code>document_state</code> property.
|
|
545
629
|
* @enum {String}
|
|
@@ -590,4 +674,22 @@ TemplatePreview['TemplateTypeEnum'] = {
|
|
|
590
674
|
*/
|
|
591
675
|
"html": "html"
|
|
592
676
|
};
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Allowed values for the <code>last_changed_by_type</code> property.
|
|
680
|
+
* @enum {String}
|
|
681
|
+
* @readonly
|
|
682
|
+
*/
|
|
683
|
+
TemplatePreview['LastChangedByTypeEnum'] = {
|
|
684
|
+
/**
|
|
685
|
+
* value: "user"
|
|
686
|
+
* @const
|
|
687
|
+
*/
|
|
688
|
+
"user": "user",
|
|
689
|
+
/**
|
|
690
|
+
* value: "api"
|
|
691
|
+
* @const
|
|
692
|
+
*/
|
|
693
|
+
"api": "api"
|
|
694
|
+
};
|
|
593
695
|
var _default = exports["default"] = TemplatePreview;
|