docspring 1.4.0 → 2.0.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 +58 -52
- package/dist/ApiClient.js +701 -0
- package/dist/api/PDFApi.js +1509 -0
- package/dist/index.js +356 -0
- package/dist/model/AddFieldsData.js +112 -0
- package/dist/model/BatchGeneratePdfs201Response.js +184 -0
- package/dist/model/CombinePdfsData.js +156 -0
- package/dist/model/CombinedSubmission.js +323 -0
- package/dist/model/CombinedSubmissionAction.js +252 -0
- package/dist/model/CombinedSubmissionData.js +148 -0
- package/dist/model/CopyTemplateOptions.js +124 -0
- package/dist/model/CreateCombinedSubmissionResponse.js +158 -0
- package/dist/model/CreateCustomFileData.js +112 -0
- package/dist/model/CreateCustomFileResponse.js +158 -0
- package/dist/model/CreateFolderData.js +108 -0
- package/dist/model/CreateHtmlSubmissionData.js +161 -0
- package/dist/model/CreateHtmlTemplate.js +108 -0
- package/dist/model/CreatePdfSubmissionData.js +190 -0
- package/dist/model/CreatePdfTemplate.js +108 -0
- package/dist/model/CreateSubmissionDataRequestData.js +210 -0
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +215 -0
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +158 -0
- package/dist/model/CreateSubmissionDataRequestResponse.js +158 -0
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +158 -0
- package/dist/model/CreateSubmissionResponse.js +158 -0
- package/dist/model/CustomFile.js +126 -0
- package/dist/model/ErrorResponse.js +139 -0
- package/dist/model/Folder.js +154 -0
- package/dist/model/JsonSchema.js +173 -0
- package/dist/model/ListSubmissionsResponse.js +154 -0
- package/dist/model/MoveFolderData.js +89 -0
- package/dist/model/MoveTemplateData.js +112 -0
- package/dist/model/MultipleErrorsResponse.js +139 -0
- package/dist/model/RenameFolderData.js +112 -0
- package/dist/model/Submission.js +537 -0
- package/dist/model/SubmissionAction.js +252 -0
- package/dist/model/SubmissionBatch.js +213 -0
- package/dist/model/SubmissionBatchData.js +128 -0
- package/dist/model/SubmissionBatchWithSubmissions.js +243 -0
- package/dist/model/SubmissionDataRequest.js +475 -0
- package/dist/model/SubmissionDataRequestEvent.js +287 -0
- package/dist/model/SubmissionDataRequestShow.js +489 -0
- package/dist/model/SubmissionDataRequestToken.js +154 -0
- package/dist/model/SubmissionPreview.js +471 -0
- package/dist/model/SuccessErrorResponse.js +142 -0
- package/dist/model/SuccessMultipleErrorsResponse.js +142 -0
- package/dist/model/Template.js +717 -0
- package/dist/model/TemplateAddFieldsResponse.js +154 -0
- package/dist/model/TemplatePreview.js +593 -0
- package/dist/model/UpdateHtmlTemplate.js +108 -0
- package/dist/model/UpdateSubmissionDataRequestData.js +160 -0
- package/dist/model/UploadPresignResponse.js +157 -0
- package/package.json +33 -8
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/.travis.yml +0 -7
- package/CHANGELOG.md +0 -33
- package/docs/AddFieldsData.md +0 -8
- package/docs/AddFieldsTemplateResponse.md +0 -21
- package/docs/AuthenticationError.md +0 -18
- package/docs/AuthenticationSuccessResponse.md +0 -17
- package/docs/CombinePdfsData.md +0 -13
- package/docs/CombinedSubmission.md +0 -31
- package/docs/CombinedSubmissionAction.md +0 -54
- package/docs/CombinedSubmissionData.md +0 -12
- package/docs/CopyTemplateData.md +0 -9
- package/docs/CreateCombinedSubmissionResponse.md +0 -21
- package/docs/CreateCustomFileData.md +0 -8
- package/docs/CreateCustomFileResponse.md +0 -21
- package/docs/CreateFolderData.md +0 -8
- package/docs/CreateHtmlTemplateData.md +0 -8
- package/docs/CreateSubmissionBatchResponse.md +0 -23
- package/docs/CreateSubmissionBatchSubmissionsResponse.md +0 -23
- package/docs/CreateSubmissionDataRequestData.md +0 -60
- package/docs/CreateSubmissionDataRequestTokenResponse.md +0 -21
- package/docs/CreateSubmissionDataRequestTokenResponseToken.md +0 -11
- package/docs/CreateSubmissionResponse.md +0 -21
- package/docs/CreateTemplateFromUploadData.md +0 -8
- package/docs/CustomFile.md +0 -9
- package/docs/Error.md +0 -18
- package/docs/Folder.md +0 -11
- package/docs/FoldersFolder.md +0 -9
- package/docs/FullTemplate.md +0 -59
- package/docs/FullTemplateDefaults.md +0 -10
- package/docs/HtmlTemplateData.md +0 -48
- package/docs/InvalidRequest.md +0 -18
- package/docs/ListSubmissionsResponse.md +0 -10
- package/docs/MoveFolderData.md +0 -8
- package/docs/MoveTemplateData.md +0 -8
- package/docs/PDFApi.md +0 -1700
- package/docs/PendingTemplate.md +0 -37
- package/docs/RenameFolderData.md +0 -8
- package/docs/Submission.md +0 -55
- package/docs/SubmissionAction.md +0 -54
- package/docs/SubmissionBatch.md +0 -29
- package/docs/SubmissionBatchData.md +0 -11
- package/docs/SubmissionData.md +0 -15
- package/docs/SubmissionDataBatchRequest.md +0 -13
- package/docs/SubmissionDataRequest.md +0 -78
- package/docs/Template.md +0 -40
- package/docs/TemplateData.md +0 -36
- package/docs/TemplatestemplateIdaddFieldsFields.md +0 -286
- package/docs/UpdateDataRequestResponse.md +0 -21
- package/docs/UpdateSubmissionDataRequestData.md +0 -60
- package/docs/UpdateTemplateData.md +0 -8
- package/docs/UpdateTemplateResponse.md +0 -20
- package/docs/UploadTemplateData.md +0 -49
- package/docs/UploadTemplateDataDocument.md +0 -19
- package/docs/UploadTemplateDataDocumentMetadata.md +0 -19
- package/git_push.sh +0 -52
- package/mocha.opts +0 -1
- package/src/ApiClient.js +0 -605
- package/src/api/Client.js +0 -395
- package/src/api/PDFApi.js +0 -1722
- package/src/index.js +0 -334
- package/src/model/AddFieldsData.js +0 -82
- package/src/model/AddFieldsTemplateResponse.js +0 -114
- package/src/model/AuthenticationError.js +0 -102
- package/src/model/AuthenticationSuccessResponse.js +0 -93
- package/src/model/CombinePdfsData.js +0 -122
- package/src/model/CombinedSubmission.js +0 -183
- package/src/model/CombinedSubmissionAction.js +0 -198
- package/src/model/CombinedSubmissionData.js +0 -114
- package/src/model/CopyTemplateData.js +0 -90
- package/src/model/CreateCombinedSubmissionResponse.js +0 -114
- package/src/model/CreateCustomFileData.js +0 -82
- package/src/model/CreateCustomFileResponse.js +0 -114
- package/src/model/CreateFolderData.js +0 -82
- package/src/model/CreateHtmlTemplateData.js +0 -82
- package/src/model/CreateSubmissionBatchResponse.js +0 -130
- package/src/model/CreateSubmissionBatchSubmissionsResponse.js +0 -119
- package/src/model/CreateSubmissionDataRequestData.js +0 -256
- package/src/model/CreateSubmissionDataRequestTokenResponse.js +0 -114
- package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +0 -105
- package/src/model/CreateSubmissionResponse.js +0 -114
- package/src/model/CreateTemplateFromUploadData.js +0 -82
- package/src/model/CustomFile.js +0 -89
- package/src/model/Error.js +0 -103
- package/src/model/Folder.js +0 -105
- package/src/model/FoldersFolder.js +0 -89
- package/src/model/FullTemplate.js +0 -407
- package/src/model/FullTemplateDefaults.js +0 -97
- package/src/model/HtmlTemplateData.js +0 -248
- package/src/model/InvalidRequest.js +0 -103
- package/src/model/ListSubmissionsResponse.js +0 -97
- package/src/model/MoveFolderData.js +0 -81
- package/src/model/MoveTemplateData.js +0 -82
- package/src/model/PendingTemplate.js +0 -231
- package/src/model/RenameFolderData.js +0 -82
- package/src/model/Submission.js +0 -291
- package/src/model/SubmissionAction.js +0 -198
- package/src/model/SubmissionBatch.js +0 -167
- package/src/model/SubmissionBatchData.js +0 -106
- package/src/model/SubmissionData.js +0 -138
- package/src/model/SubmissionDataBatchRequest.js +0 -121
- package/src/model/SubmissionDataRequest.js +0 -337
- package/src/model/Template.js +0 -255
- package/src/model/TemplateData.js +0 -223
- package/src/model/TemplatestemplateIdaddFieldsFields.js +0 -1128
- package/src/model/UpdateDataRequestResponse.js +0 -114
- package/src/model/UpdateSubmissionDataRequestData.js +0 -256
- package/src/model/UpdateTemplateData.js +0 -82
- package/src/model/UpdateTemplateResponse.js +0 -106
- package/src/model/UploadTemplateData.js +0 -256
- package/src/model/UploadTemplateDataDocument.js +0 -109
- package/src/model/UploadTemplateDataDocumentMetadata.js +0 -109
- package/test/api/ClientIntegration.spec.js +0 -275
- package/test/api/PDFApi.spec.js.original +0 -395
- package/test/api/PDFApiIntegration.spec.js +0 -301
- package/test/model/AddFieldsData.spec.js +0 -67
- package/test/model/AddFieldsTemplateResponse.spec.js +0 -79
- package/test/model/AuthenticationError.spec.js +0 -73
- package/test/model/AuthenticationSuccessResponse.spec.js +0 -67
- package/test/model/CombinePdfsData.spec.js +0 -97
- package/test/model/CombinedSubmission.spec.js +0 -127
- package/test/model/CombinedSubmissionAction.spec.js +0 -97
- package/test/model/CombinedSubmissionData.spec.js +0 -91
- package/test/model/CopyTemplateData.spec.js +0 -73
- package/test/model/CreateCombinedSubmissionResponse.spec.js +0 -79
- package/test/model/CreateCustomFileData.spec.js +0 -67
- package/test/model/CreateCustomFileResponse.spec.js +0 -79
- package/test/model/CreateFolderData.spec.js +0 -67
- package/test/model/CreateHtmlTemplateData.spec.js +0 -67
- package/test/model/CreateSubmissionBatchResponse.spec.js +0 -91
- package/test/model/CreateSubmissionBatchSubmissionsResponse.spec.js +0 -79
- package/test/model/CreateSubmissionDataRequestData.spec.js +0 -139
- package/test/model/CreateSubmissionDataRequestTokenResponse.spec.js +0 -79
- package/test/model/CreateSubmissionDataRequestTokenResponseToken.spec.js +0 -85
- package/test/model/CreateSubmissionResponse.spec.js +0 -79
- package/test/model/CreateTemplateFromUploadData.spec.js +0 -67
- package/test/model/CustomFile.spec.js +0 -73
- package/test/model/Error.spec.js +0 -73
- package/test/model/Folder.spec.js +0 -85
- package/test/model/FoldersFolder.spec.js +0 -73
- package/test/model/FullTemplate.spec.js +0 -295
- package/test/model/FullTemplateDefaults.spec.js +0 -79
- package/test/model/HtmlTemplateData.spec.js +0 -163
- package/test/model/InvalidRequest.spec.js +0 -73
- package/test/model/ListSubmissionsResponse.spec.js +0 -79
- package/test/model/MoveFolderData.spec.js +0 -67
- package/test/model/MoveTemplateData.spec.js +0 -67
- package/test/model/PendingTemplate.spec.js +0 -163
- package/test/model/RenameFolderData.spec.js +0 -67
- package/test/model/Submission.spec.js +0 -175
- package/test/model/SubmissionAction.spec.js +0 -97
- package/test/model/SubmissionBatch.spec.js +0 -115
- package/test/model/SubmissionBatchData.spec.js +0 -85
- package/test/model/SubmissionData.spec.js +0 -109
- package/test/model/SubmissionDataBatchRequest.spec.js +0 -97
- package/test/model/SubmissionDataRequest.spec.js +0 -181
- package/test/model/Template.spec.js +0 -181
- package/test/model/TemplateData.spec.js +0 -157
- package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +0 -577
- package/test/model/UpdateDataRequestResponse.spec.js +0 -79
- package/test/model/UpdateSubmissionDataRequestData.spec.js +0 -139
- package/test/model/UpdateTemplateData.spec.js +0 -67
- package/test/model/UpdateTemplateResponse.spec.js +0 -73
- package/test/model/UploadTemplateData.spec.js +0 -169
- package/test/model/UploadTemplateDataDocument.spec.js +0 -79
- package/test/model/UploadTemplateDataDocumentMetadata.spec.js +0 -79
- package/yarn.lock +0 -263
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API v1
|
|
3
|
-
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
-
* https://openapi-generator.tech
|
|
9
|
-
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['../ApiClient', '../model/Submission'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'), require('./Submission'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.DocSpring) {
|
|
26
|
-
root.DocSpring = {};
|
|
27
|
-
}
|
|
28
|
-
root.DocSpring.CreateSubmissionBatchSubmissionsResponse = factory(root.DocSpring.ApiClient, root.DocSpring.Submission);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(ApiClient, Submission) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The CreateSubmissionBatchSubmissionsResponse model module.
|
|
38
|
-
* @module model/CreateSubmissionBatchSubmissionsResponse
|
|
39
|
-
* @version 1.4.0
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new <code>CreateSubmissionBatchSubmissionsResponse</code>.
|
|
44
|
-
* @alias module:model/CreateSubmissionBatchSubmissionsResponse
|
|
45
|
-
* @class
|
|
46
|
-
*/
|
|
47
|
-
var exports = function() {
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a <code>CreateSubmissionBatchSubmissionsResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
-
* @param {module:model/CreateSubmissionBatchSubmissionsResponse} obj Optional instance to populate.
|
|
60
|
-
* @return {module:model/CreateSubmissionBatchSubmissionsResponse} The populated <code>CreateSubmissionBatchSubmissionsResponse</code> instance.
|
|
61
|
-
*/
|
|
62
|
-
exports.constructFromObject = function(data, obj) {
|
|
63
|
-
if (data) {
|
|
64
|
-
obj = obj || new exports();
|
|
65
|
-
|
|
66
|
-
if (data.hasOwnProperty('submission')) {
|
|
67
|
-
obj['submission'] = Submission.constructFromObject(data['submission']);
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('errors')) {
|
|
70
|
-
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty('status')) {
|
|
73
|
-
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @member {module:model/Submission} submission
|
|
81
|
-
*/
|
|
82
|
-
exports.prototype['submission'] = undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @member {Array.<String>} errors
|
|
85
|
-
*/
|
|
86
|
-
exports.prototype['errors'] = undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @member {module:model/CreateSubmissionBatchSubmissionsResponse.StatusEnum} status
|
|
89
|
-
*/
|
|
90
|
-
exports.prototype['status'] = undefined;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Allowed values for the <code>status</code> property.
|
|
95
|
-
* @enum {String}
|
|
96
|
-
* @readonly
|
|
97
|
-
*/
|
|
98
|
-
exports.StatusEnum = {
|
|
99
|
-
/**
|
|
100
|
-
* value: "success"
|
|
101
|
-
* @const
|
|
102
|
-
*/
|
|
103
|
-
"success": "success",
|
|
104
|
-
/**
|
|
105
|
-
* value: "error"
|
|
106
|
-
* @const
|
|
107
|
-
*/
|
|
108
|
-
"error": "error",
|
|
109
|
-
/**
|
|
110
|
-
* value: "valid_but_not_saved"
|
|
111
|
-
* @const
|
|
112
|
-
*/
|
|
113
|
-
"valid_but_not_saved": "valid_but_not_saved" };
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return exports;
|
|
117
|
-
}));
|
|
118
|
-
|
|
119
|
-
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API v1
|
|
3
|
-
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
-
* https://openapi-generator.tech
|
|
9
|
-
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['../ApiClient'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.DocSpring) {
|
|
26
|
-
root.DocSpring = {};
|
|
27
|
-
}
|
|
28
|
-
root.DocSpring.CreateSubmissionDataRequestData = factory(root.DocSpring.ApiClient);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(ApiClient) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The CreateSubmissionDataRequestData model module.
|
|
38
|
-
* @module model/CreateSubmissionDataRequestData
|
|
39
|
-
* @version 1.4.0
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new <code>CreateSubmissionDataRequestData</code>.
|
|
44
|
-
* @alias module:model/CreateSubmissionDataRequestData
|
|
45
|
-
* @class
|
|
46
|
-
*/
|
|
47
|
-
var exports = function() {
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Constructs a <code>CreateSubmissionDataRequestData</code> from a plain JavaScript object, optionally creating a new instance.
|
|
67
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
68
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
-
* @param {module:model/CreateSubmissionDataRequestData} obj Optional instance to populate.
|
|
70
|
-
* @return {module:model/CreateSubmissionDataRequestData} The populated <code>CreateSubmissionDataRequestData</code> instance.
|
|
71
|
-
*/
|
|
72
|
-
exports.constructFromObject = function(data, obj) {
|
|
73
|
-
if (data) {
|
|
74
|
-
obj = obj || new exports();
|
|
75
|
-
|
|
76
|
-
if (data.hasOwnProperty('auth_type')) {
|
|
77
|
-
obj['auth_type'] = ApiClient.convertToType(data['auth_type'], 'String');
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty('metadata')) {
|
|
80
|
-
obj['metadata'] = ApiClient.convertToType(data['metadata'], Object);
|
|
81
|
-
}
|
|
82
|
-
if (data.hasOwnProperty('auth_second_factor_type')) {
|
|
83
|
-
obj['auth_second_factor_type'] = ApiClient.convertToType(data['auth_second_factor_type'], 'String');
|
|
84
|
-
}
|
|
85
|
-
if (data.hasOwnProperty('auth_phone_number_hash')) {
|
|
86
|
-
obj['auth_phone_number_hash'] = ApiClient.convertToType(data['auth_phone_number_hash'], 'String');
|
|
87
|
-
}
|
|
88
|
-
if (data.hasOwnProperty('auth_session_started_at')) {
|
|
89
|
-
obj['auth_session_started_at'] = ApiClient.convertToType(data['auth_session_started_at'], 'String');
|
|
90
|
-
}
|
|
91
|
-
if (data.hasOwnProperty('auth_user_id_hash')) {
|
|
92
|
-
obj['auth_user_id_hash'] = ApiClient.convertToType(data['auth_user_id_hash'], 'String');
|
|
93
|
-
}
|
|
94
|
-
if (data.hasOwnProperty('auth_session_id_hash')) {
|
|
95
|
-
obj['auth_session_id_hash'] = ApiClient.convertToType(data['auth_session_id_hash'], 'String');
|
|
96
|
-
}
|
|
97
|
-
if (data.hasOwnProperty('auth_username_hash')) {
|
|
98
|
-
obj['auth_username_hash'] = ApiClient.convertToType(data['auth_username_hash'], 'String');
|
|
99
|
-
}
|
|
100
|
-
if (data.hasOwnProperty('name')) {
|
|
101
|
-
obj['name'] = ApiClient.convertToType(data['name'], 'String');
|
|
102
|
-
}
|
|
103
|
-
if (data.hasOwnProperty('fields')) {
|
|
104
|
-
obj['fields'] = ApiClient.convertToType(data['fields'], ['String']);
|
|
105
|
-
}
|
|
106
|
-
if (data.hasOwnProperty('auth_provider')) {
|
|
107
|
-
obj['auth_provider'] = ApiClient.convertToType(data['auth_provider'], 'String');
|
|
108
|
-
}
|
|
109
|
-
if (data.hasOwnProperty('email')) {
|
|
110
|
-
obj['email'] = ApiClient.convertToType(data['email'], 'String');
|
|
111
|
-
}
|
|
112
|
-
if (data.hasOwnProperty('order')) {
|
|
113
|
-
obj['order'] = ApiClient.convertToType(data['order'], 'Number');
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return obj;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @member {module:model/CreateSubmissionDataRequestData.AuthTypeEnum} auth_type
|
|
121
|
-
*/
|
|
122
|
-
exports.prototype['auth_type'] = undefined;
|
|
123
|
-
/**
|
|
124
|
-
* @member {Object} metadata
|
|
125
|
-
*/
|
|
126
|
-
exports.prototype['metadata'] = undefined;
|
|
127
|
-
/**
|
|
128
|
-
* @member {module:model/CreateSubmissionDataRequestData.AuthSecondFactorTypeEnum} auth_second_factor_type
|
|
129
|
-
*/
|
|
130
|
-
exports.prototype['auth_second_factor_type'] = undefined;
|
|
131
|
-
/**
|
|
132
|
-
* @member {String} auth_phone_number_hash
|
|
133
|
-
*/
|
|
134
|
-
exports.prototype['auth_phone_number_hash'] = undefined;
|
|
135
|
-
/**
|
|
136
|
-
* @member {String} auth_session_started_at
|
|
137
|
-
*/
|
|
138
|
-
exports.prototype['auth_session_started_at'] = undefined;
|
|
139
|
-
/**
|
|
140
|
-
* @member {String} auth_user_id_hash
|
|
141
|
-
*/
|
|
142
|
-
exports.prototype['auth_user_id_hash'] = undefined;
|
|
143
|
-
/**
|
|
144
|
-
* @member {String} auth_session_id_hash
|
|
145
|
-
*/
|
|
146
|
-
exports.prototype['auth_session_id_hash'] = undefined;
|
|
147
|
-
/**
|
|
148
|
-
* @member {String} auth_username_hash
|
|
149
|
-
*/
|
|
150
|
-
exports.prototype['auth_username_hash'] = undefined;
|
|
151
|
-
/**
|
|
152
|
-
* @member {String} name
|
|
153
|
-
*/
|
|
154
|
-
exports.prototype['name'] = undefined;
|
|
155
|
-
/**
|
|
156
|
-
* @member {Array.<String>} fields
|
|
157
|
-
*/
|
|
158
|
-
exports.prototype['fields'] = undefined;
|
|
159
|
-
/**
|
|
160
|
-
* @member {String} auth_provider
|
|
161
|
-
*/
|
|
162
|
-
exports.prototype['auth_provider'] = undefined;
|
|
163
|
-
/**
|
|
164
|
-
* @member {String} email
|
|
165
|
-
*/
|
|
166
|
-
exports.prototype['email'] = undefined;
|
|
167
|
-
/**
|
|
168
|
-
* @member {Number} order
|
|
169
|
-
*/
|
|
170
|
-
exports.prototype['order'] = undefined;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Allowed values for the <code>auth_type</code> property.
|
|
175
|
-
* @enum {String}
|
|
176
|
-
* @readonly
|
|
177
|
-
*/
|
|
178
|
-
exports.AuthTypeEnum = {
|
|
179
|
-
/**
|
|
180
|
-
* value: "none"
|
|
181
|
-
* @const
|
|
182
|
-
*/
|
|
183
|
-
"none": "none",
|
|
184
|
-
/**
|
|
185
|
-
* value: "password"
|
|
186
|
-
* @const
|
|
187
|
-
*/
|
|
188
|
-
"password": "password",
|
|
189
|
-
/**
|
|
190
|
-
* value: "oauth"
|
|
191
|
-
* @const
|
|
192
|
-
*/
|
|
193
|
-
"oauth": "oauth",
|
|
194
|
-
/**
|
|
195
|
-
* value: "email_link"
|
|
196
|
-
* @const
|
|
197
|
-
*/
|
|
198
|
-
"email_link": "email_link",
|
|
199
|
-
/**
|
|
200
|
-
* value: "phone_number"
|
|
201
|
-
* @const
|
|
202
|
-
*/
|
|
203
|
-
"phone_number": "phone_number",
|
|
204
|
-
/**
|
|
205
|
-
* value: "ldap"
|
|
206
|
-
* @const
|
|
207
|
-
*/
|
|
208
|
-
"ldap": "ldap",
|
|
209
|
-
/**
|
|
210
|
-
* value: "saml"
|
|
211
|
-
* @const
|
|
212
|
-
*/
|
|
213
|
-
"saml": "saml" };
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Allowed values for the <code>auth_second_factor_type</code> property.
|
|
217
|
-
* @enum {String}
|
|
218
|
-
* @readonly
|
|
219
|
-
*/
|
|
220
|
-
exports.AuthSecondFactorTypeEnum = {
|
|
221
|
-
/**
|
|
222
|
-
* value: "none"
|
|
223
|
-
* @const
|
|
224
|
-
*/
|
|
225
|
-
"none": "none",
|
|
226
|
-
/**
|
|
227
|
-
* value: "phone_number"
|
|
228
|
-
* @const
|
|
229
|
-
*/
|
|
230
|
-
"phone_number": "phone_number",
|
|
231
|
-
/**
|
|
232
|
-
* value: "totp"
|
|
233
|
-
* @const
|
|
234
|
-
*/
|
|
235
|
-
"totp": "totp",
|
|
236
|
-
/**
|
|
237
|
-
* value: "mobile_push"
|
|
238
|
-
* @const
|
|
239
|
-
*/
|
|
240
|
-
"mobile_push": "mobile_push",
|
|
241
|
-
/**
|
|
242
|
-
* value: "security_key"
|
|
243
|
-
* @const
|
|
244
|
-
*/
|
|
245
|
-
"security_key": "security_key",
|
|
246
|
-
/**
|
|
247
|
-
* value: "fingerprint"
|
|
248
|
-
* @const
|
|
249
|
-
*/
|
|
250
|
-
"fingerprint": "fingerprint" };
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return exports;
|
|
254
|
-
}));
|
|
255
|
-
|
|
256
|
-
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API v1
|
|
3
|
-
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
-
* https://openapi-generator.tech
|
|
9
|
-
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['../ApiClient', '../model/CreateSubmissionDataRequestTokenResponseToken'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'), require('./CreateSubmissionDataRequestTokenResponseToken'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.DocSpring) {
|
|
26
|
-
root.DocSpring = {};
|
|
27
|
-
}
|
|
28
|
-
root.DocSpring.CreateSubmissionDataRequestTokenResponse = factory(root.DocSpring.ApiClient, root.DocSpring.CreateSubmissionDataRequestTokenResponseToken);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(ApiClient, CreateSubmissionDataRequestTokenResponseToken) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The CreateSubmissionDataRequestTokenResponse model module.
|
|
38
|
-
* @module model/CreateSubmissionDataRequestTokenResponse
|
|
39
|
-
* @version 1.4.0
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new <code>CreateSubmissionDataRequestTokenResponse</code>.
|
|
44
|
-
* @alias module:model/CreateSubmissionDataRequestTokenResponse
|
|
45
|
-
* @class
|
|
46
|
-
*/
|
|
47
|
-
var exports = function() {
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a <code>CreateSubmissionDataRequestTokenResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
-
* @param {module:model/CreateSubmissionDataRequestTokenResponse} obj Optional instance to populate.
|
|
60
|
-
* @return {module:model/CreateSubmissionDataRequestTokenResponse} The populated <code>CreateSubmissionDataRequestTokenResponse</code> instance.
|
|
61
|
-
*/
|
|
62
|
-
exports.constructFromObject = function(data, obj) {
|
|
63
|
-
if (data) {
|
|
64
|
-
obj = obj || new exports();
|
|
65
|
-
|
|
66
|
-
if (data.hasOwnProperty('errors')) {
|
|
67
|
-
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('status')) {
|
|
70
|
-
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty('token')) {
|
|
73
|
-
obj['token'] = CreateSubmissionDataRequestTokenResponseToken.constructFromObject(data['token']);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @member {Array.<String>} errors
|
|
81
|
-
*/
|
|
82
|
-
exports.prototype['errors'] = undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @member {module:model/CreateSubmissionDataRequestTokenResponse.StatusEnum} status
|
|
85
|
-
*/
|
|
86
|
-
exports.prototype['status'] = undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @member {module:model/CreateSubmissionDataRequestTokenResponseToken} token
|
|
89
|
-
*/
|
|
90
|
-
exports.prototype['token'] = undefined;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Allowed values for the <code>status</code> property.
|
|
95
|
-
* @enum {String}
|
|
96
|
-
* @readonly
|
|
97
|
-
*/
|
|
98
|
-
exports.StatusEnum = {
|
|
99
|
-
/**
|
|
100
|
-
* value: "success"
|
|
101
|
-
* @const
|
|
102
|
-
*/
|
|
103
|
-
"success": "success",
|
|
104
|
-
/**
|
|
105
|
-
* value: "error"
|
|
106
|
-
* @const
|
|
107
|
-
*/
|
|
108
|
-
"error": "error" };
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return exports;
|
|
112
|
-
}));
|
|
113
|
-
|
|
114
|
-
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API v1
|
|
3
|
-
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
-
* https://openapi-generator.tech
|
|
9
|
-
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['../ApiClient'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.DocSpring) {
|
|
26
|
-
root.DocSpring = {};
|
|
27
|
-
}
|
|
28
|
-
root.DocSpring.CreateSubmissionDataRequestTokenResponseToken = factory(root.DocSpring.ApiClient);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(ApiClient) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The CreateSubmissionDataRequestTokenResponseToken model module.
|
|
38
|
-
* @module model/CreateSubmissionDataRequestTokenResponseToken
|
|
39
|
-
* @version 1.4.0
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new <code>CreateSubmissionDataRequestTokenResponseToken</code>.
|
|
44
|
-
* @alias module:model/CreateSubmissionDataRequestTokenResponseToken
|
|
45
|
-
* @class
|
|
46
|
-
*/
|
|
47
|
-
var exports = function() {
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Constructs a <code>CreateSubmissionDataRequestTokenResponseToken</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/CreateSubmissionDataRequestTokenResponseToken} obj Optional instance to populate.
|
|
61
|
-
* @return {module:model/CreateSubmissionDataRequestTokenResponseToken} The populated <code>CreateSubmissionDataRequestTokenResponseToken</code> instance.
|
|
62
|
-
*/
|
|
63
|
-
exports.constructFromObject = function(data, obj) {
|
|
64
|
-
if (data) {
|
|
65
|
-
obj = obj || new exports();
|
|
66
|
-
|
|
67
|
-
if (data.hasOwnProperty('expires_at')) {
|
|
68
|
-
obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'String');
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('id')) {
|
|
71
|
-
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty('secret')) {
|
|
74
|
-
obj['secret'] = ApiClient.convertToType(data['secret'], 'String');
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty('data_request_url')) {
|
|
77
|
-
obj['data_request_url'] = ApiClient.convertToType(data['data_request_url'], 'String');
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return obj;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @member {String} expires_at
|
|
85
|
-
*/
|
|
86
|
-
exports.prototype['expires_at'] = undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @member {String} id
|
|
89
|
-
*/
|
|
90
|
-
exports.prototype['id'] = undefined;
|
|
91
|
-
/**
|
|
92
|
-
* @member {String} secret
|
|
93
|
-
*/
|
|
94
|
-
exports.prototype['secret'] = undefined;
|
|
95
|
-
/**
|
|
96
|
-
* @member {String} data_request_url
|
|
97
|
-
*/
|
|
98
|
-
exports.prototype['data_request_url'] = undefined;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return exports;
|
|
103
|
-
}));
|
|
104
|
-
|
|
105
|
-
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API v1
|
|
3
|
-
* DocSpring is a service that helps you fill out and sign PDF templates.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
-
* https://openapi-generator.tech
|
|
9
|
-
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['../ApiClient', '../model/Submission'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../ApiClient'), require('./Submission'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.DocSpring) {
|
|
26
|
-
root.DocSpring = {};
|
|
27
|
-
}
|
|
28
|
-
root.DocSpring.CreateSubmissionResponse = factory(root.DocSpring.ApiClient, root.DocSpring.Submission);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(ApiClient, Submission) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The CreateSubmissionResponse model module.
|
|
38
|
-
* @module model/CreateSubmissionResponse
|
|
39
|
-
* @version 1.4.0
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a new <code>CreateSubmissionResponse</code>.
|
|
44
|
-
* @alias module:model/CreateSubmissionResponse
|
|
45
|
-
* @class
|
|
46
|
-
*/
|
|
47
|
-
var exports = function() {
|
|
48
|
-
var _this = this;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a <code>CreateSubmissionResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
-
* @param {module:model/CreateSubmissionResponse} obj Optional instance to populate.
|
|
60
|
-
* @return {module:model/CreateSubmissionResponse} The populated <code>CreateSubmissionResponse</code> instance.
|
|
61
|
-
*/
|
|
62
|
-
exports.constructFromObject = function(data, obj) {
|
|
63
|
-
if (data) {
|
|
64
|
-
obj = obj || new exports();
|
|
65
|
-
|
|
66
|
-
if (data.hasOwnProperty('submission')) {
|
|
67
|
-
obj['submission'] = Submission.constructFromObject(data['submission']);
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('errors')) {
|
|
70
|
-
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty('status')) {
|
|
73
|
-
obj['status'] = ApiClient.convertToType(data['status'], 'String');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @member {module:model/Submission} submission
|
|
81
|
-
*/
|
|
82
|
-
exports.prototype['submission'] = undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @member {Array.<String>} errors
|
|
85
|
-
*/
|
|
86
|
-
exports.prototype['errors'] = undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @member {module:model/CreateSubmissionResponse.StatusEnum} status
|
|
89
|
-
*/
|
|
90
|
-
exports.prototype['status'] = undefined;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Allowed values for the <code>status</code> property.
|
|
95
|
-
* @enum {String}
|
|
96
|
-
* @readonly
|
|
97
|
-
*/
|
|
98
|
-
exports.StatusEnum = {
|
|
99
|
-
/**
|
|
100
|
-
* value: "success"
|
|
101
|
-
* @const
|
|
102
|
-
*/
|
|
103
|
-
"success": "success",
|
|
104
|
-
/**
|
|
105
|
-
* value: "error"
|
|
106
|
-
* @const
|
|
107
|
-
*/
|
|
108
|
-
"error": "error" };
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return exports;
|
|
112
|
-
}));
|
|
113
|
-
|
|
114
|
-
|