docspring 4.3.0 → 4.4.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 +20 -1
- package/dist/ApiClient.js +2 -2
- package/dist/RequestSchemas.js +1118 -93
- package/dist/RequestValidator.js +4 -0
- package/dist/api/Client.js +1360 -206
- package/dist/index.js +196 -0
- package/dist/model/AddTemplateFieldsRequest.js +3 -3
- package/dist/model/AuthenticationCheck.js +1 -1
- package/dist/model/CombinedPdf.js +1 -1
- package/dist/model/CombinedPdfFiles.js +1 -1
- package/dist/model/CombinedPdfList.js +1 -1
- package/dist/model/CombinedPdfSource.js +2 -2
- package/dist/model/CombinedPdfSourceInput.js +2 -2
- package/dist/model/CombinedPdfSourcePdf.js +1 -1
- package/dist/model/CopyTemplateRequest.js +1 -1
- package/dist/model/CreateAccountEmailActionRequest.js +306 -0
- package/dist/model/CreateCombinedPdfRequest.js +1 -1
- package/dist/model/CreateCustomFileFromUploadRequest.js +1 -1
- package/dist/model/CreateEmailActionRequest.js +280 -0
- package/dist/model/CreateEmailDomainRequest.js +114 -0
- package/dist/model/CreateFolderRequest.js +1 -1
- package/dist/model/CreateSignatureRequestEventRequest.js +1 -1
- package/dist/model/CreateSignatureRequestTokenRequest.js +1 -1
- package/dist/model/CreateSubmissionBatchRequest.js +4 -4
- package/dist/model/CreateSubmissionRequest.js +112 -4
- package/dist/model/CreateTemplatePreviewRequest.js +1 -1
- package/dist/model/CreateTemplateRequest.js +103 -8
- package/dist/model/CreateWebhookRequest.js +1 -1
- package/dist/model/CustomFile.js +1 -1
- package/dist/model/CustomFileList.js +1 -1
- package/dist/model/CustomFileSourcePdf.js +1 -1
- package/dist/model/DnsRecordType.js +64 -0
- package/dist/model/EmailAction.js +510 -0
- package/dist/model/EmailActionConditions.js +142 -0
- package/dist/model/EmailActionConditionsInput.js +142 -0
- package/dist/model/EmailActionCustomization.js +222 -0
- package/dist/model/EmailActionDelivery.js +59 -0
- package/dist/model/EmailActionFileFormats.js +69 -0
- package/dist/model/EmailActionList.js +132 -0
- package/dist/model/EmailActionSetting.js +119 -0
- package/dist/model/EmailActionSubmissionType.js +64 -0
- package/dist/model/EmailActionTestEmail.js +116 -0
- package/dist/model/EmailDomain.js +245 -0
- package/dist/model/EmailDomainDnsRecord.js +155 -0
- package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
- package/dist/model/EmailDomainList.js +132 -0
- package/dist/model/EmailDomainRecordState.js +64 -0
- package/dist/model/EmailDomainState.js +64 -0
- package/dist/model/ErrorCode.js +10 -0
- package/dist/model/ErrorDetail.js +1 -1
- package/dist/model/ErrorInfo.js +46 -7
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/Field.js +3 -3
- package/dist/model/FieldComparisonCondition.js +1 -1
- package/dist/model/FieldDependency.js +1 -1
- package/dist/model/FieldDependencyInput.js +1 -1
- package/dist/model/FieldEqualsCondition.js +1 -1
- package/dist/model/FieldGroup.js +1 -1
- package/dist/model/FieldGroupInput.js +1 -1
- package/dist/model/FieldInCondition.js +1 -1
- package/dist/model/FieldInput.js +2 -2
- package/dist/model/FieldOverride.js +1 -1
- package/dist/model/FieldPresenceCondition.js +1 -1
- package/dist/model/FieldRangeCondition.js +1 -1
- package/dist/model/Folder.js +1 -1
- package/dist/model/FolderList.js +1 -1
- package/dist/model/GenerateSubmissionFilesRequest.js +1 -1
- package/dist/model/GeneratedFile.js +1 -1
- package/dist/model/HtmlEngineOptions.js +3 -3
- package/dist/model/HtmlEngineOptionsInput.js +2 -2
- package/dist/model/MoveFolderRequest.js +1 -1
- package/dist/model/MoveTemplateRequest.js +1 -1
- package/dist/model/PageImage.js +1 -1
- package/dist/model/PageImages.js +1 -1
- package/dist/model/PredefinedField.js +1 -1
- package/dist/model/PredefinedFieldInput.js +1 -1
- package/dist/model/PublishTemplateVersionRequest.js +1 -1
- package/dist/model/RemoveTemplateFieldsRequest.js +1 -1
- package/dist/model/RenameFolderRequest.js +1 -1
- package/dist/model/ReorderTemplateFieldsRequest.js +1 -1
- package/dist/model/RestoreTemplateVersionRequest.js +1 -1
- package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
- package/dist/model/SignatureRequest.js +52 -7
- package/dist/model/SignatureRequestEmailAttachments.js +59 -0
- package/dist/model/SignatureRequestEmailStatus.js +89 -0
- package/dist/model/SignatureRequestEvent.js +1 -1
- package/dist/model/SignatureRequestEventType.js +11 -1
- package/dist/model/SignatureRequestInput.js +24 -8
- package/dist/model/SignatureRequestReminders.js +121 -0
- package/dist/model/SignatureRequestToken.js +1 -1
- package/dist/model/SigningOrder.js +59 -0
- package/dist/model/StringConditionType.js +36 -1
- package/dist/model/Submission.js +21 -9
- package/dist/model/SubmissionAction.js +27 -12
- package/dist/model/SubmissionBatch.js +1 -1
- package/dist/model/SubmissionFiles.js +1 -1
- package/dist/model/SubmissionInput.js +4 -4
- package/dist/model/SubmissionList.js +1 -1
- package/dist/model/SubmissionSourcePdf.js +1 -1
- package/dist/model/SubmissionSummary.js +3 -3
- package/dist/model/SubmissionValidation.js +1 -1
- package/dist/model/Template.js +130 -19
- package/dist/model/TemplateActor.js +1 -1
- package/dist/model/TemplateDefaults.js +1 -1
- package/dist/model/TemplateDefaultsInput.js +1 -1
- package/dist/model/TemplateDiff.js +1 -1
- package/dist/model/TemplateDiffSummary.js +1 -1
- package/dist/model/TemplateDocument.js +1 -1
- package/dist/model/TemplateDocumentSummary.js +1 -1
- package/dist/model/TemplateFieldChange.js +1 -1
- package/dist/model/TemplateFieldChanges.js +1 -1
- package/dist/model/TemplateFieldDependency.js +1 -1
- package/dist/model/TemplateFieldDependencyCondition.js +1 -1
- package/dist/model/TemplateFieldDependencyConditionInput.js +1 -1
- package/dist/model/TemplateFieldDependencyInput.js +1 -1
- package/dist/model/TemplateFieldMove.js +1 -1
- package/dist/model/TemplateFields.js +1 -1
- package/dist/model/TemplateModelCode.js +1 -1
- package/dist/model/TemplatePageImages.js +1 -1
- package/dist/model/TemplatePageProcessingStatus.js +1 -1
- package/dist/model/TemplatePreview.js +1 -1
- package/dist/model/TemplateSourcePdf.js +2 -2
- package/dist/model/TemplateSummary.js +9 -9
- package/dist/model/TemplateSummaryList.js +1 -1
- package/dist/model/TemplateType.js +6 -1
- package/dist/model/TemplateVersion.js +1 -1
- package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
- package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
- package/dist/model/UpdateEmailActionRequest.js +280 -0
- package/dist/model/UpdateSignatureRequestRequest.js +1 -1
- package/dist/model/UpdateTemplateDocumentRequest.js +2 -2
- package/dist/model/UpdateTemplateFieldsRequest.js +1 -1
- package/dist/model/UpdateTemplateRequest.js +100 -5
- package/dist/model/UpdateWebhookRequest.js +1 -1
- package/dist/model/UploadPresign.js +1 -1
- package/dist/model/UrlSourcePdf.js +1 -1
- package/dist/model/ValidateSubmissionRequest.js +112 -4
- package/dist/model/Webhook.js +1 -1
- package/dist/model/WebhookEventType.js +10 -0
- package/dist/model/WebhookList.js +1 -1
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The RestoreTemplateVersionRequest model module.
|
|
31
31
|
* @module model/RestoreTemplateVersionRequest
|
|
32
|
-
* @version 4.
|
|
32
|
+
* @version 4.4.0
|
|
33
33
|
*/
|
|
34
34
|
var RestoreTemplateVersionRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -0,0 +1,91 @@
|
|
|
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
15
|
+
* DocSpring API
|
|
16
|
+
* Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: v2
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The SendAccountEmailActionTestEmailRequest model module.
|
|
28
|
+
* @module model/SendAccountEmailActionTestEmailRequest
|
|
29
|
+
* @version 4.4.0
|
|
30
|
+
*/
|
|
31
|
+
var SendAccountEmailActionTestEmailRequest = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>SendAccountEmailActionTestEmailRequest</code>.
|
|
34
|
+
* Which template the test email is for.
|
|
35
|
+
* @alias module:model/SendAccountEmailActionTestEmailRequest
|
|
36
|
+
*/
|
|
37
|
+
function SendAccountEmailActionTestEmailRequest() {
|
|
38
|
+
_classCallCheck(this, SendAccountEmailActionTestEmailRequest);
|
|
39
|
+
SendAccountEmailActionTestEmailRequest.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(SendAccountEmailActionTestEmailRequest, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>SendAccountEmailActionTestEmailRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/SendAccountEmailActionTestEmailRequest} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/SendAccountEmailActionTestEmailRequest} The populated <code>SendAccountEmailActionTestEmailRequest</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new SendAccountEmailActionTestEmailRequest();
|
|
63
|
+
if (data.hasOwnProperty('template_id')) {
|
|
64
|
+
obj['template_id'] = _ApiClient["default"].convertToType(data['template_id'], 'String');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Validates the JSON data with respect to <code>SendAccountEmailActionTestEmailRequest</code>.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SendAccountEmailActionTestEmailRequest</code>.
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "validateJSON",
|
|
77
|
+
value: function validateJSON(data) {
|
|
78
|
+
// ensure the json data is a string
|
|
79
|
+
if (data['template_id'] && !(typeof data['template_id'] === 'string' || data['template_id'] instanceof String)) {
|
|
80
|
+
throw new Error("Expected the field `template_id` to be a primitive type in the JSON string but got " + data['template_id']);
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
}]);
|
|
85
|
+
}();
|
|
86
|
+
/**
|
|
87
|
+
* A template the email action sends for: the test uses its PDF and name. Left out, it uses the one that changed most recently.
|
|
88
|
+
* @member {String} template_id
|
|
89
|
+
*/
|
|
90
|
+
SendAccountEmailActionTestEmailRequest.prototype['template_id'] = undefined;
|
|
91
|
+
var _default = exports["default"] = SendAccountEmailActionTestEmailRequest;
|
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _SignatureRequestAuthSecondFactorType = _interopRequireDefault(require("./SignatureRequestAuthSecondFactorType"));
|
|
9
9
|
var _SignatureRequestAuthType = _interopRequireDefault(require("./SignatureRequestAuthType"));
|
|
10
|
+
var _SignatureRequestEmailStatus = _interopRequireDefault(require("./SignatureRequestEmailStatus"));
|
|
10
11
|
var _SignatureRequestState = _interopRequireDefault(require("./SignatureRequestState"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
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); }
|
|
@@ -32,7 +33,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
32
33
|
/**
|
|
33
34
|
* The SignatureRequest model module.
|
|
34
35
|
* @module model/SignatureRequest
|
|
35
|
-
* @version 4.
|
|
36
|
+
* @version 4.4.0
|
|
36
37
|
*/
|
|
37
38
|
var SignatureRequest = /*#__PURE__*/function () {
|
|
38
39
|
/**
|
|
@@ -43,11 +44,15 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
43
44
|
* @param id {String} The signature request's ID.
|
|
44
45
|
* @param submission_id {String} The ID of the submission the signature request belongs to.
|
|
45
46
|
* @param name {String} The name of the person the request is for.
|
|
46
|
-
* @param email {String} Their email address.
|
|
47
|
+
* @param email {String} Their email address. Null when they have none.
|
|
47
48
|
* @param fields {Array.<String>} The fields this person fills in. Null for a signature request created with API v1 without a field list: it asks for every field the submission's data doesn't have.
|
|
48
49
|
* @param metadata {Object.<String, Object>} Your own data about the signature request, such as an ID from your app.
|
|
49
50
|
* @param role {String} Which of the template's signers the person is. Until templates have roles of their own, a template's signers are `Signer 1`, `Signer 2` and so on, up to `Signer 100`: `Signer 1` is the one whose details the template's `@@signature_requests/0` fields print.
|
|
50
51
|
* @param sort_order {Number} The signer's position, from 0: `Signer 1` is 0. The template's `@@signature_requests/<sort_order>` fields print this signature request's details.
|
|
52
|
+
* @param send_email {Boolean} Whether DocSpring emails this person their signing link.
|
|
53
|
+
* @param signing_step {Number} When this person signs, when the submission's `signing_order` is `sequential`: everyone in step 1 first, then step 2, and so on. Null when everyone can sign at once.
|
|
54
|
+
* @param sent_at {Date} When DocSpring first emailed this person their signing link. Null until it has, and when it doesn't email them (`send_email` is false).
|
|
55
|
+
* @param email_status {module:model/SignatureRequestEmailStatus} What happened to the latest email DocSpring sent this person with their signing link: `sent` until the email service reports on it, then `delayed` (still trying), `delivered`, `undelivered` (it stopped trying, as with a full mailbox), `bounced` (the address doesn't exist) or `complained` (marked as spam). `failed` means DocSpring couldn't send the first email with their link, and `unknown` that it couldn't tell whether that email went: neither is sent again. Null until DocSpring has emailed them or tried to.
|
|
51
56
|
* @param state {module:model/SignatureRequestState} `pending` until the person completes the signature request (`completed`) or declines it (`declined`).
|
|
52
57
|
* @param data {Object.<String, Object>} The values this person entered for their own fields (`fields`). Null when their submission's data is left out: in lists without `include_data=true`, in the events of a webhook that leaves out submission data, and once the submission has expired.
|
|
53
58
|
* @param viewed_at {Date} When the person first opened the signature request.
|
|
@@ -66,9 +71,9 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
66
71
|
* @param created_at {Date} When the signature request was created.
|
|
67
72
|
* @param updated_at {Date} When the signature request was last updated.
|
|
68
73
|
*/
|
|
69
|
-
function SignatureRequest(id, submission_id, name, email, fields, metadata, role, sort_order, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at) {
|
|
74
|
+
function SignatureRequest(id, submission_id, name, email, fields, metadata, role, sort_order, send_email, signing_step, sent_at, email_status, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at) {
|
|
70
75
|
_classCallCheck(this, SignatureRequest);
|
|
71
|
-
SignatureRequest.initialize(this, id, submission_id, name, email, fields, metadata, role, sort_order, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at);
|
|
76
|
+
SignatureRequest.initialize(this, id, submission_id, name, email, fields, metadata, role, sort_order, send_email, signing_step, sent_at, email_status, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
/**
|
|
@@ -78,7 +83,7 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
78
83
|
*/
|
|
79
84
|
return _createClass(SignatureRequest, null, [{
|
|
80
85
|
key: "initialize",
|
|
81
|
-
value: function initialize(obj, id, submission_id, name, email, fields, metadata, role, sort_order, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at) {
|
|
86
|
+
value: function initialize(obj, id, submission_id, name, email, fields, metadata, role, sort_order, send_email, signing_step, sent_at, email_status, state, data, viewed_at, completed_at, declined_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent, created_at, updated_at) {
|
|
82
87
|
obj['id'] = id;
|
|
83
88
|
obj['submission_id'] = submission_id;
|
|
84
89
|
obj['name'] = name;
|
|
@@ -87,6 +92,10 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
87
92
|
obj['metadata'] = metadata;
|
|
88
93
|
obj['role'] = role;
|
|
89
94
|
obj['sort_order'] = sort_order;
|
|
95
|
+
obj['send_email'] = send_email;
|
|
96
|
+
obj['signing_step'] = signing_step;
|
|
97
|
+
obj['sent_at'] = sent_at;
|
|
98
|
+
obj['email_status'] = email_status;
|
|
90
99
|
obj['state'] = state;
|
|
91
100
|
obj['data'] = data;
|
|
92
101
|
obj['viewed_at'] = viewed_at;
|
|
@@ -145,6 +154,18 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
145
154
|
if (data.hasOwnProperty('sort_order')) {
|
|
146
155
|
obj['sort_order'] = _ApiClient["default"].convertToType(data['sort_order'], 'Number');
|
|
147
156
|
}
|
|
157
|
+
if (data.hasOwnProperty('send_email')) {
|
|
158
|
+
obj['send_email'] = _ApiClient["default"].convertToType(data['send_email'], 'Boolean');
|
|
159
|
+
}
|
|
160
|
+
if (data.hasOwnProperty('signing_step')) {
|
|
161
|
+
obj['signing_step'] = _ApiClient["default"].convertToType(data['signing_step'], 'Number');
|
|
162
|
+
}
|
|
163
|
+
if (data.hasOwnProperty('sent_at')) {
|
|
164
|
+
obj['sent_at'] = _ApiClient["default"].convertToType(data['sent_at'], 'Date');
|
|
165
|
+
}
|
|
166
|
+
if (data.hasOwnProperty('email_status')) {
|
|
167
|
+
obj['email_status'] = _ApiClient["default"].convertToType(data['email_status'], _SignatureRequestEmailStatus["default"]);
|
|
168
|
+
}
|
|
148
169
|
if (data.hasOwnProperty('state')) {
|
|
149
170
|
obj['state'] = _ApiClient["default"].convertToType(data['state'], _SignatureRequestState["default"]);
|
|
150
171
|
}
|
|
@@ -281,7 +302,7 @@ var SignatureRequest = /*#__PURE__*/function () {
|
|
|
281
302
|
}
|
|
282
303
|
}]);
|
|
283
304
|
}();
|
|
284
|
-
SignatureRequest.RequiredProperties = ["id", "submission_id", "name", "email", "fields", "metadata", "role", "sort_order", "state", "data", "viewed_at", "completed_at", "declined_at", "auth_type", "auth_second_factor_type", "auth_provider", "auth_session_started_at", "auth_session_id_hash", "auth_user_id_hash", "auth_username_hash", "auth_phone_number_hash", "ip_address", "user_agent", "created_at", "updated_at"];
|
|
305
|
+
SignatureRequest.RequiredProperties = ["id", "submission_id", "name", "email", "fields", "metadata", "role", "sort_order", "send_email", "signing_step", "sent_at", "email_status", "state", "data", "viewed_at", "completed_at", "declined_at", "auth_type", "auth_second_factor_type", "auth_provider", "auth_session_started_at", "auth_session_id_hash", "auth_user_id_hash", "auth_username_hash", "auth_phone_number_hash", "ip_address", "user_agent", "created_at", "updated_at"];
|
|
285
306
|
|
|
286
307
|
/**
|
|
287
308
|
* The signature request's ID.
|
|
@@ -302,7 +323,7 @@ SignatureRequest.prototype['submission_id'] = undefined;
|
|
|
302
323
|
SignatureRequest.prototype['name'] = undefined;
|
|
303
324
|
|
|
304
325
|
/**
|
|
305
|
-
* Their email address.
|
|
326
|
+
* Their email address. Null when they have none.
|
|
306
327
|
* @member {String} email
|
|
307
328
|
*/
|
|
308
329
|
SignatureRequest.prototype['email'] = undefined;
|
|
@@ -331,6 +352,30 @@ SignatureRequest.prototype['role'] = undefined;
|
|
|
331
352
|
*/
|
|
332
353
|
SignatureRequest.prototype['sort_order'] = undefined;
|
|
333
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Whether DocSpring emails this person their signing link.
|
|
357
|
+
* @member {Boolean} send_email
|
|
358
|
+
*/
|
|
359
|
+
SignatureRequest.prototype['send_email'] = undefined;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* When this person signs, when the submission's `signing_order` is `sequential`: everyone in step 1 first, then step 2, and so on. Null when everyone can sign at once.
|
|
363
|
+
* @member {Number} signing_step
|
|
364
|
+
*/
|
|
365
|
+
SignatureRequest.prototype['signing_step'] = undefined;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* When DocSpring first emailed this person their signing link. Null until it has, and when it doesn't email them (`send_email` is false).
|
|
369
|
+
* @member {Date} sent_at
|
|
370
|
+
*/
|
|
371
|
+
SignatureRequest.prototype['sent_at'] = undefined;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* What happened to the latest email DocSpring sent this person with their signing link: `sent` until the email service reports on it, then `delayed` (still trying), `delivered`, `undelivered` (it stopped trying, as with a full mailbox), `bounced` (the address doesn't exist) or `complained` (marked as spam). `failed` means DocSpring couldn't send the first email with their link, and `unknown` that it couldn't tell whether that email went: neither is sent again. Null until DocSpring has emailed them or tried to.
|
|
375
|
+
* @member {module:model/SignatureRequestEmailStatus} email_status
|
|
376
|
+
*/
|
|
377
|
+
SignatureRequest.prototype['email_status'] = undefined;
|
|
378
|
+
|
|
334
379
|
/**
|
|
335
380
|
* `pending` until the person completes the signature request (`completed`) or declines it (`declined`).
|
|
336
381
|
* @member {module:model/SignatureRequestState} state
|
|
@@ -0,0 +1,59 @@
|
|
|
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 fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and 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 SignatureRequestEmailAttachments.
|
|
29
|
+
* @enum {}
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
var SignatureRequestEmailAttachments = exports["default"] = /*#__PURE__*/function () {
|
|
33
|
+
function SignatureRequestEmailAttachments() {
|
|
34
|
+
_classCallCheck(this, SignatureRequestEmailAttachments);
|
|
35
|
+
}
|
|
36
|
+
return _createClass(SignatureRequestEmailAttachments, null, [{
|
|
37
|
+
key: "constructFromObject",
|
|
38
|
+
value:
|
|
39
|
+
/**
|
|
40
|
+
* Returns a <code>SignatureRequestEmailAttachments</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/SignatureRequestEmailAttachments} The enum <code>SignatureRequestEmailAttachments</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: "attachment"
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
_defineProperty(SignatureRequestEmailAttachments, "attachment", "attachment");
|
|
55
|
+
/**
|
|
56
|
+
* value: "link"
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
_defineProperty(SignatureRequestEmailAttachments, "link", "link");
|
|
@@ -0,0 +1,89 @@
|
|
|
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 fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and 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 SignatureRequestEmailStatus.
|
|
29
|
+
* @enum {}
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
var SignatureRequestEmailStatus = exports["default"] = /*#__PURE__*/function () {
|
|
33
|
+
function SignatureRequestEmailStatus() {
|
|
34
|
+
_classCallCheck(this, SignatureRequestEmailStatus);
|
|
35
|
+
}
|
|
36
|
+
return _createClass(SignatureRequestEmailStatus, null, [{
|
|
37
|
+
key: "constructFromObject",
|
|
38
|
+
value:
|
|
39
|
+
/**
|
|
40
|
+
* Returns a <code>SignatureRequestEmailStatus</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/SignatureRequestEmailStatus} The enum <code>SignatureRequestEmailStatus</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: "sent"
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
_defineProperty(SignatureRequestEmailStatus, "sent", "sent");
|
|
55
|
+
/**
|
|
56
|
+
* value: "delayed"
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
_defineProperty(SignatureRequestEmailStatus, "delayed", "delayed");
|
|
60
|
+
/**
|
|
61
|
+
* value: "delivered"
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
_defineProperty(SignatureRequestEmailStatus, "delivered", "delivered");
|
|
65
|
+
/**
|
|
66
|
+
* value: "undelivered"
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
_defineProperty(SignatureRequestEmailStatus, "undelivered", "undelivered");
|
|
70
|
+
/**
|
|
71
|
+
* value: "bounced"
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
_defineProperty(SignatureRequestEmailStatus, "bounced", "bounced");
|
|
75
|
+
/**
|
|
76
|
+
* value: "complained"
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
_defineProperty(SignatureRequestEmailStatus, "complained", "complained");
|
|
80
|
+
/**
|
|
81
|
+
* value: "failed"
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
_defineProperty(SignatureRequestEmailStatus, "failed", "failed");
|
|
85
|
+
/**
|
|
86
|
+
* value: "unknown"
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
_defineProperty(SignatureRequestEmailStatus, "unknown", "unknown");
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* The SignatureRequestEvent model module.
|
|
33
33
|
* @module model/SignatureRequestEvent
|
|
34
|
-
* @version 4.
|
|
34
|
+
* @version 4.4.0
|
|
35
35
|
*/
|
|
36
36
|
var SignatureRequestEvent = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -76,4 +76,14 @@ _defineProperty(SignatureRequestEventType, "sign_request", "sign_request");
|
|
|
76
76
|
* value: "all_completed"
|
|
77
77
|
* @const
|
|
78
78
|
*/
|
|
79
|
-
_defineProperty(SignatureRequestEventType, "all_completed", "all_completed");
|
|
79
|
+
_defineProperty(SignatureRequestEventType, "all_completed", "all_completed");
|
|
80
|
+
/**
|
|
81
|
+
* value: "email_bounced"
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
_defineProperty(SignatureRequestEventType, "email_bounced", "email_bounced");
|
|
85
|
+
/**
|
|
86
|
+
* value: "email_marked_as_spam"
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
_defineProperty(SignatureRequestEventType, "email_marked_as_spam", "email_marked_as_spam");
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* The SignatureRequestInput model module.
|
|
33
33
|
* @module model/SignatureRequestInput
|
|
34
|
-
* @version 4.
|
|
34
|
+
* @version 4.4.0
|
|
35
35
|
*/
|
|
36
36
|
var SignatureRequestInput = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -39,11 +39,10 @@ var SignatureRequestInput = /*#__PURE__*/function () {
|
|
|
39
39
|
* A request for someone to fill in their fields of a submission and sign it. Someone who only fills in fields for the people who sign later (such as an employer's section) has a signature request too. The submission's PDF is generated once every signature request is completed.
|
|
40
40
|
* @alias module:model/SignatureRequestInput
|
|
41
41
|
* @param fields {Array.<String>} The fields this person fills in. Each field can only be in one signature request, and a field that `data` fills in needs `prefilled_values_editable`.
|
|
42
|
-
* @param auth_type {module:model/SignatureRequestAuthType} How your app authenticated the person before it showed them the signature request.
|
|
43
42
|
*/
|
|
44
|
-
function SignatureRequestInput(fields
|
|
43
|
+
function SignatureRequestInput(fields) {
|
|
45
44
|
_classCallCheck(this, SignatureRequestInput);
|
|
46
|
-
SignatureRequestInput.initialize(this, fields
|
|
45
|
+
SignatureRequestInput.initialize(this, fields);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/**
|
|
@@ -53,9 +52,8 @@ var SignatureRequestInput = /*#__PURE__*/function () {
|
|
|
53
52
|
*/
|
|
54
53
|
return _createClass(SignatureRequestInput, null, [{
|
|
55
54
|
key: "initialize",
|
|
56
|
-
value: function initialize(obj, fields
|
|
55
|
+
value: function initialize(obj, fields) {
|
|
57
56
|
obj['fields'] = fields;
|
|
58
|
-
obj['auth_type'] = auth_type;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
/**
|
|
@@ -117,6 +115,12 @@ var SignatureRequestInput = /*#__PURE__*/function () {
|
|
|
117
115
|
if (data.hasOwnProperty('prefilled_values_editable')) {
|
|
118
116
|
obj['prefilled_values_editable'] = _ApiClient["default"].convertToType(data['prefilled_values_editable'], 'Boolean');
|
|
119
117
|
}
|
|
118
|
+
if (data.hasOwnProperty('send_email')) {
|
|
119
|
+
obj['send_email'] = _ApiClient["default"].convertToType(data['send_email'], 'Boolean');
|
|
120
|
+
}
|
|
121
|
+
if (data.hasOwnProperty('signing_step')) {
|
|
122
|
+
obj['signing_step'] = _ApiClient["default"].convertToType(data['signing_step'], 'Number');
|
|
123
|
+
}
|
|
120
124
|
}
|
|
121
125
|
return obj;
|
|
122
126
|
}
|
|
@@ -184,7 +188,7 @@ var SignatureRequestInput = /*#__PURE__*/function () {
|
|
|
184
188
|
}
|
|
185
189
|
}]);
|
|
186
190
|
}();
|
|
187
|
-
SignatureRequestInput.RequiredProperties = ["fields"
|
|
191
|
+
SignatureRequestInput.RequiredProperties = ["fields"];
|
|
188
192
|
|
|
189
193
|
/**
|
|
190
194
|
* The name of the person the request is for.
|
|
@@ -193,7 +197,7 @@ SignatureRequestInput.RequiredProperties = ["fields", "auth_type"];
|
|
|
193
197
|
SignatureRequestInput.prototype['name'] = undefined;
|
|
194
198
|
|
|
195
199
|
/**
|
|
196
|
-
* Their email address.
|
|
200
|
+
* Their email address. Null when they have none.
|
|
197
201
|
* @member {String} email
|
|
198
202
|
*/
|
|
199
203
|
SignatureRequestInput.prototype['email'] = undefined;
|
|
@@ -275,4 +279,16 @@ SignatureRequestInput.prototype['ignore_unknown_fields'] = undefined;
|
|
|
275
279
|
* @member {Boolean} prefilled_values_editable
|
|
276
280
|
*/
|
|
277
281
|
SignatureRequestInput.prototype['prefilled_values_editable'] = undefined;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Whether DocSpring emails this person their signing link. Default: the submission's `send_email`. Set it to false for someone who signs in your app (embedded signing) or whose link you send yourself. When DocSpring emails them, `email` is required and `auth_type` is `email_link` (the default). Otherwise `auth_type` is required.
|
|
285
|
+
* @member {Boolean} send_email
|
|
286
|
+
*/
|
|
287
|
+
SignatureRequestInput.prototype['send_email'] = undefined;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* When this person signs, with `signing_order: sequential`: everyone in step 1 first, then step 2, and so on. People in the same step sign in any order. Only the order of the numbers matters. Either every signature request has a `signing_step` or none does; without them, each person is a step of their own, in the order of `signature_requests`.
|
|
291
|
+
* @member {Number} signing_step
|
|
292
|
+
*/
|
|
293
|
+
SignatureRequestInput.prototype['signing_step'] = undefined;
|
|
278
294
|
var _default = exports["default"] = SignatureRequestInput;
|
|
@@ -0,0 +1,121 @@
|
|
|
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 fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and 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 SignatureRequestReminders model module.
|
|
31
|
+
* @module model/SignatureRequestReminders
|
|
32
|
+
* @version 4.4.0
|
|
33
|
+
*/
|
|
34
|
+
var SignatureRequestReminders = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>SignatureRequestReminders</code>.
|
|
37
|
+
* How often DocSpring reminds people who haven't signed.
|
|
38
|
+
* @alias module:model/SignatureRequestReminders
|
|
39
|
+
* @param interval_days {Number} Days between reminders.
|
|
40
|
+
* @param max_count {Number} The most reminders each person gets.
|
|
41
|
+
*/
|
|
42
|
+
function SignatureRequestReminders(interval_days, max_count) {
|
|
43
|
+
_classCallCheck(this, SignatureRequestReminders);
|
|
44
|
+
SignatureRequestReminders.initialize(this, interval_days, max_count);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the fields of this object.
|
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
+
* Only for internal use.
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(SignatureRequestReminders, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj, interval_days, max_count) {
|
|
55
|
+
obj['interval_days'] = interval_days;
|
|
56
|
+
obj['max_count'] = max_count;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a <code>SignatureRequestReminders</code> from a plain JavaScript object, optionally creating a new instance.
|
|
61
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @param {module:model/SignatureRequestReminders} obj Optional instance to populate.
|
|
64
|
+
* @return {module:model/SignatureRequestReminders} The populated <code>SignatureRequestReminders</code> instance.
|
|
65
|
+
*/
|
|
66
|
+
}, {
|
|
67
|
+
key: "constructFromObject",
|
|
68
|
+
value: function constructFromObject(data, obj) {
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new SignatureRequestReminders();
|
|
71
|
+
if (data.hasOwnProperty('interval_days')) {
|
|
72
|
+
obj['interval_days'] = _ApiClient["default"].convertToType(data['interval_days'], 'Number');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('max_count')) {
|
|
75
|
+
obj['max_count'] = _ApiClient["default"].convertToType(data['max_count'], 'Number');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>SignatureRequestReminders</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SignatureRequestReminders</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// check to make sure all required properties are present in the JSON string
|
|
90
|
+
var _iterator = _createForOfIteratorHelper(SignatureRequestReminders.RequiredProperties),
|
|
91
|
+
_step;
|
|
92
|
+
try {
|
|
93
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
+
var property = _step.value;
|
|
95
|
+
if (!data.hasOwnProperty(property)) {
|
|
96
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
}();
|
|
108
|
+
SignatureRequestReminders.RequiredProperties = ["interval_days", "max_count"];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Days between reminders.
|
|
112
|
+
* @member {Number} interval_days
|
|
113
|
+
*/
|
|
114
|
+
SignatureRequestReminders.prototype['interval_days'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The most reminders each person gets.
|
|
118
|
+
* @member {Number} max_count
|
|
119
|
+
*/
|
|
120
|
+
SignatureRequestReminders.prototype['max_count'] = undefined;
|
|
121
|
+
var _default = exports["default"] = SignatureRequestReminders;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The SignatureRequestToken model module.
|
|
32
32
|
* @module model/SignatureRequestToken
|
|
33
|
-
* @version 4.
|
|
33
|
+
* @version 4.4.0
|
|
34
34
|
*/
|
|
35
35
|
var SignatureRequestToken = /*#__PURE__*/function () {
|
|
36
36
|
/**
|