docspring 1.5.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.
Files changed (220) hide show
  1. package/README.md +56 -52
  2. package/dist/ApiClient.js +701 -0
  3. package/dist/api/PDFApi.js +1509 -0
  4. package/dist/index.js +356 -0
  5. package/dist/model/AddFieldsData.js +112 -0
  6. package/dist/model/BatchGeneratePdfs201Response.js +184 -0
  7. package/dist/model/CombinePdfsData.js +156 -0
  8. package/dist/model/CombinedSubmission.js +323 -0
  9. package/dist/model/CombinedSubmissionAction.js +252 -0
  10. package/dist/model/CombinedSubmissionData.js +148 -0
  11. package/dist/model/CopyTemplateOptions.js +124 -0
  12. package/dist/model/CreateCombinedSubmissionResponse.js +158 -0
  13. package/dist/model/CreateCustomFileData.js +112 -0
  14. package/dist/model/CreateCustomFileResponse.js +158 -0
  15. package/dist/model/CreateFolderData.js +108 -0
  16. package/dist/model/CreateHtmlSubmissionData.js +161 -0
  17. package/dist/model/CreateHtmlTemplate.js +108 -0
  18. package/dist/model/CreatePdfSubmissionData.js +190 -0
  19. package/dist/model/CreatePdfTemplate.js +108 -0
  20. package/dist/model/CreateSubmissionDataRequestData.js +210 -0
  21. package/dist/model/CreateSubmissionDataRequestEventRequest.js +215 -0
  22. package/dist/model/CreateSubmissionDataRequestEventResponse.js +158 -0
  23. package/dist/model/CreateSubmissionDataRequestResponse.js +158 -0
  24. package/dist/model/CreateSubmissionDataRequestTokenResponse.js +158 -0
  25. package/dist/model/CreateSubmissionResponse.js +158 -0
  26. package/dist/model/CustomFile.js +126 -0
  27. package/dist/model/ErrorResponse.js +139 -0
  28. package/dist/model/Folder.js +154 -0
  29. package/dist/model/JsonSchema.js +173 -0
  30. package/dist/model/ListSubmissionsResponse.js +154 -0
  31. package/dist/model/MoveFolderData.js +89 -0
  32. package/dist/model/MoveTemplateData.js +112 -0
  33. package/dist/model/MultipleErrorsResponse.js +139 -0
  34. package/dist/model/RenameFolderData.js +112 -0
  35. package/dist/model/Submission.js +537 -0
  36. package/dist/model/SubmissionAction.js +252 -0
  37. package/dist/model/SubmissionBatch.js +213 -0
  38. package/dist/model/SubmissionBatchData.js +128 -0
  39. package/dist/model/SubmissionBatchWithSubmissions.js +243 -0
  40. package/dist/model/SubmissionDataRequest.js +475 -0
  41. package/dist/model/SubmissionDataRequestEvent.js +287 -0
  42. package/dist/model/SubmissionDataRequestShow.js +489 -0
  43. package/dist/model/SubmissionDataRequestToken.js +154 -0
  44. package/dist/model/SubmissionPreview.js +471 -0
  45. package/dist/model/SuccessErrorResponse.js +142 -0
  46. package/dist/model/SuccessMultipleErrorsResponse.js +142 -0
  47. package/dist/model/Template.js +717 -0
  48. package/dist/model/TemplateAddFieldsResponse.js +154 -0
  49. package/dist/model/TemplatePreview.js +593 -0
  50. package/dist/model/UpdateHtmlTemplate.js +108 -0
  51. package/dist/model/UpdateSubmissionDataRequestData.js +160 -0
  52. package/dist/model/UploadPresignResponse.js +157 -0
  53. package/package.json +33 -8
  54. package/.openapi-generator/VERSION +0 -1
  55. package/.openapi-generator-ignore +0 -23
  56. package/.travis.yml +0 -7
  57. package/CHANGELOG.md +0 -37
  58. package/docs/AddFieldsData.md +0 -8
  59. package/docs/AddFieldsTemplateResponse.md +0 -21
  60. package/docs/AuthenticationError.md +0 -18
  61. package/docs/AuthenticationSuccessResponse.md +0 -17
  62. package/docs/CombinePdfsData.md +0 -13
  63. package/docs/CombinedSubmission.md +0 -33
  64. package/docs/CombinedSubmissionAction.md +0 -54
  65. package/docs/CombinedSubmissionData.md +0 -12
  66. package/docs/CopyTemplateData.md +0 -9
  67. package/docs/CreateCombinedSubmissionResponse.md +0 -21
  68. package/docs/CreateCustomFileData.md +0 -8
  69. package/docs/CreateCustomFileResponse.md +0 -21
  70. package/docs/CreateFolderData.md +0 -8
  71. package/docs/CreateHtmlTemplateData.md +0 -8
  72. package/docs/CreateSubmissionBatchResponse.md +0 -23
  73. package/docs/CreateSubmissionBatchSubmissionsResponse.md +0 -23
  74. package/docs/CreateSubmissionDataRequestData.md +0 -60
  75. package/docs/CreateSubmissionDataRequestTokenResponse.md +0 -21
  76. package/docs/CreateSubmissionDataRequestTokenResponseToken.md +0 -11
  77. package/docs/CreateSubmissionResponse.md +0 -21
  78. package/docs/CreateTemplateFromUploadData.md +0 -8
  79. package/docs/CustomFile.md +0 -9
  80. package/docs/Error.md +0 -18
  81. package/docs/Folder.md +0 -11
  82. package/docs/FoldersFolder.md +0 -9
  83. package/docs/FullTemplate.md +0 -59
  84. package/docs/FullTemplateDefaults.md +0 -10
  85. package/docs/HtmlTemplateData.md +0 -48
  86. package/docs/InvalidRequest.md +0 -18
  87. package/docs/ListSubmissionsResponse.md +0 -10
  88. package/docs/MoveFolderData.md +0 -8
  89. package/docs/MoveTemplateData.md +0 -8
  90. package/docs/PDFApi.md +0 -1800
  91. package/docs/PendingTemplate.md +0 -37
  92. package/docs/RenameFolderData.md +0 -8
  93. package/docs/Submission.md +0 -55
  94. package/docs/SubmissionAction.md +0 -54
  95. package/docs/SubmissionBatch.md +0 -29
  96. package/docs/SubmissionBatchData.md +0 -11
  97. package/docs/SubmissionData.md +0 -16
  98. package/docs/SubmissionDataBatchRequest.md +0 -13
  99. package/docs/SubmissionDataRequest.md +0 -79
  100. package/docs/Template.md +0 -40
  101. package/docs/TemplateData.md +0 -36
  102. package/docs/TemplatestemplateIdaddFieldsFields.md +0 -286
  103. package/docs/UpdateDataRequestResponse.md +0 -21
  104. package/docs/UpdateSubmissionDataRequestData.md +0 -60
  105. package/docs/UpdateTemplateData.md +0 -8
  106. package/docs/UpdateTemplateResponse.md +0 -20
  107. package/docs/UploadTemplateData.md +0 -49
  108. package/docs/UploadTemplateDataDocument.md +0 -19
  109. package/docs/UploadTemplateDataDocumentMetadata.md +0 -19
  110. package/git_push.sh +0 -52
  111. package/mocha.opts +0 -1
  112. package/src/ApiClient.js +0 -605
  113. package/src/api/Client.js +0 -408
  114. package/src/api/PDFApi.js +0 -1815
  115. package/src/index.js +0 -334
  116. package/src/model/AddFieldsData.js +0 -82
  117. package/src/model/AddFieldsTemplateResponse.js +0 -114
  118. package/src/model/AuthenticationError.js +0 -102
  119. package/src/model/AuthenticationSuccessResponse.js +0 -93
  120. package/src/model/CombinePdfsData.js +0 -122
  121. package/src/model/CombinedSubmission.js +0 -199
  122. package/src/model/CombinedSubmissionAction.js +0 -198
  123. package/src/model/CombinedSubmissionData.js +0 -114
  124. package/src/model/CopyTemplateData.js +0 -90
  125. package/src/model/CreateCombinedSubmissionResponse.js +0 -114
  126. package/src/model/CreateCustomFileData.js +0 -82
  127. package/src/model/CreateCustomFileResponse.js +0 -114
  128. package/src/model/CreateFolderData.js +0 -82
  129. package/src/model/CreateHtmlTemplateData.js +0 -82
  130. package/src/model/CreateSubmissionBatchResponse.js +0 -130
  131. package/src/model/CreateSubmissionBatchSubmissionsResponse.js +0 -119
  132. package/src/model/CreateSubmissionDataRequestData.js +0 -256
  133. package/src/model/CreateSubmissionDataRequestTokenResponse.js +0 -114
  134. package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +0 -105
  135. package/src/model/CreateSubmissionResponse.js +0 -114
  136. package/src/model/CreateTemplateFromUploadData.js +0 -82
  137. package/src/model/CustomFile.js +0 -89
  138. package/src/model/Error.js +0 -103
  139. package/src/model/Folder.js +0 -105
  140. package/src/model/FoldersFolder.js +0 -89
  141. package/src/model/FullTemplate.js +0 -407
  142. package/src/model/FullTemplateDefaults.js +0 -97
  143. package/src/model/HtmlTemplateData.js +0 -248
  144. package/src/model/InvalidRequest.js +0 -103
  145. package/src/model/ListSubmissionsResponse.js +0 -97
  146. package/src/model/MoveFolderData.js +0 -81
  147. package/src/model/MoveTemplateData.js +0 -82
  148. package/src/model/PendingTemplate.js +0 -231
  149. package/src/model/RenameFolderData.js +0 -82
  150. package/src/model/Submission.js +0 -291
  151. package/src/model/SubmissionAction.js +0 -198
  152. package/src/model/SubmissionBatch.js +0 -167
  153. package/src/model/SubmissionBatchData.js +0 -106
  154. package/src/model/SubmissionData.js +0 -146
  155. package/src/model/SubmissionDataBatchRequest.js +0 -121
  156. package/src/model/SubmissionDataRequest.js +0 -345
  157. package/src/model/Template.js +0 -255
  158. package/src/model/TemplateData.js +0 -223
  159. package/src/model/TemplatestemplateIdaddFieldsFields.js +0 -1128
  160. package/src/model/UpdateDataRequestResponse.js +0 -114
  161. package/src/model/UpdateSubmissionDataRequestData.js +0 -256
  162. package/src/model/UpdateTemplateData.js +0 -82
  163. package/src/model/UpdateTemplateResponse.js +0 -106
  164. package/src/model/UploadTemplateData.js +0 -256
  165. package/src/model/UploadTemplateDataDocument.js +0 -109
  166. package/src/model/UploadTemplateDataDocumentMetadata.js +0 -109
  167. package/test/api/ClientIntegration.spec.js +0 -281
  168. package/test/api/PDFApi.spec.js.original +0 -415
  169. package/test/api/PDFApiIntegration.spec.js +0 -305
  170. package/test/model/AddFieldsData.spec.js +0 -67
  171. package/test/model/AddFieldsTemplateResponse.spec.js +0 -79
  172. package/test/model/AuthenticationError.spec.js +0 -73
  173. package/test/model/AuthenticationSuccessResponse.spec.js +0 -67
  174. package/test/model/CombinePdfsData.spec.js +0 -97
  175. package/test/model/CombinedSubmission.spec.js +0 -139
  176. package/test/model/CombinedSubmissionAction.spec.js +0 -97
  177. package/test/model/CombinedSubmissionData.spec.js +0 -91
  178. package/test/model/CopyTemplateData.spec.js +0 -73
  179. package/test/model/CreateCombinedSubmissionResponse.spec.js +0 -79
  180. package/test/model/CreateCustomFileData.spec.js +0 -67
  181. package/test/model/CreateCustomFileResponse.spec.js +0 -79
  182. package/test/model/CreateFolderData.spec.js +0 -67
  183. package/test/model/CreateHtmlTemplateData.spec.js +0 -67
  184. package/test/model/CreateSubmissionBatchResponse.spec.js +0 -91
  185. package/test/model/CreateSubmissionBatchSubmissionsResponse.spec.js +0 -79
  186. package/test/model/CreateSubmissionDataRequestData.spec.js +0 -139
  187. package/test/model/CreateSubmissionDataRequestTokenResponse.spec.js +0 -79
  188. package/test/model/CreateSubmissionDataRequestTokenResponseToken.spec.js +0 -85
  189. package/test/model/CreateSubmissionResponse.spec.js +0 -79
  190. package/test/model/CreateTemplateFromUploadData.spec.js +0 -67
  191. package/test/model/CustomFile.spec.js +0 -73
  192. package/test/model/Error.spec.js +0 -73
  193. package/test/model/Folder.spec.js +0 -85
  194. package/test/model/FoldersFolder.spec.js +0 -73
  195. package/test/model/FullTemplate.spec.js +0 -295
  196. package/test/model/FullTemplateDefaults.spec.js +0 -79
  197. package/test/model/HtmlTemplateData.spec.js +0 -163
  198. package/test/model/InvalidRequest.spec.js +0 -73
  199. package/test/model/ListSubmissionsResponse.spec.js +0 -79
  200. package/test/model/MoveFolderData.spec.js +0 -67
  201. package/test/model/MoveTemplateData.spec.js +0 -67
  202. package/test/model/PendingTemplate.spec.js +0 -163
  203. package/test/model/RenameFolderData.spec.js +0 -67
  204. package/test/model/Submission.spec.js +0 -175
  205. package/test/model/SubmissionAction.spec.js +0 -97
  206. package/test/model/SubmissionBatch.spec.js +0 -115
  207. package/test/model/SubmissionBatchData.spec.js +0 -85
  208. package/test/model/SubmissionData.spec.js +0 -115
  209. package/test/model/SubmissionDataBatchRequest.spec.js +0 -97
  210. package/test/model/SubmissionDataRequest.spec.js +0 -187
  211. package/test/model/Template.spec.js +0 -181
  212. package/test/model/TemplateData.spec.js +0 -157
  213. package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +0 -577
  214. package/test/model/UpdateDataRequestResponse.spec.js +0 -79
  215. package/test/model/UpdateSubmissionDataRequestData.spec.js +0 -139
  216. package/test/model/UpdateTemplateData.spec.js +0 -67
  217. package/test/model/UpdateTemplateResponse.spec.js +0 -73
  218. package/test/model/UploadTemplateData.spec.js +0 -169
  219. package/test/model/UploadTemplateDataDocument.spec.js +0 -79
  220. package/test/model/UploadTemplateDataDocumentMetadata.spec.js +0 -79
@@ -1,130 +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/CreateSubmissionBatchSubmissionsResponse', '../model/SubmissionBatch'], 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('./CreateSubmissionBatchSubmissionsResponse'), require('./SubmissionBatch'));
23
- } else {
24
- // Browser globals (root is window)
25
- if (!root.DocSpring) {
26
- root.DocSpring = {};
27
- }
28
- root.DocSpring.CreateSubmissionBatchResponse = factory(root.DocSpring.ApiClient, root.DocSpring.CreateSubmissionBatchSubmissionsResponse, root.DocSpring.SubmissionBatch);
29
- }
30
- }(this, function(ApiClient, CreateSubmissionBatchSubmissionsResponse, SubmissionBatch) {
31
- 'use strict';
32
-
33
-
34
-
35
-
36
- /**
37
- * The CreateSubmissionBatchResponse model module.
38
- * @module model/CreateSubmissionBatchResponse
39
- * @version 1.5.0
40
- */
41
-
42
- /**
43
- * Constructs a new <code>CreateSubmissionBatchResponse</code>.
44
- * @alias module:model/CreateSubmissionBatchResponse
45
- * @class
46
- */
47
- var exports = function() {
48
- var _this = this;
49
-
50
-
51
-
52
-
53
-
54
-
55
- };
56
-
57
- /**
58
- * Constructs a <code>CreateSubmissionBatchResponse</code> from a plain JavaScript object, optionally creating a new instance.
59
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
- * @param {Object} data The plain JavaScript object bearing properties of interest.
61
- * @param {module:model/CreateSubmissionBatchResponse} obj Optional instance to populate.
62
- * @return {module:model/CreateSubmissionBatchResponse} The populated <code>CreateSubmissionBatchResponse</code> instance.
63
- */
64
- exports.constructFromObject = function(data, obj) {
65
- if (data) {
66
- obj = obj || new exports();
67
-
68
- if (data.hasOwnProperty('submission_batch')) {
69
- obj['submission_batch'] = SubmissionBatch.constructFromObject(data['submission_batch']);
70
- }
71
- if (data.hasOwnProperty('submissions')) {
72
- obj['submissions'] = ApiClient.convertToType(data['submissions'], [CreateSubmissionBatchSubmissionsResponse]);
73
- }
74
- if (data.hasOwnProperty('error')) {
75
- obj['error'] = ApiClient.convertToType(data['error'], 'String');
76
- }
77
- if (data.hasOwnProperty('errors')) {
78
- obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
79
- }
80
- if (data.hasOwnProperty('status')) {
81
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
82
- }
83
- }
84
- return obj;
85
- }
86
-
87
- /**
88
- * @member {module:model/SubmissionBatch} submission_batch
89
- */
90
- exports.prototype['submission_batch'] = undefined;
91
- /**
92
- * @member {Array.<module:model/CreateSubmissionBatchSubmissionsResponse>} submissions
93
- */
94
- exports.prototype['submissions'] = undefined;
95
- /**
96
- * @member {String} error
97
- */
98
- exports.prototype['error'] = undefined;
99
- /**
100
- * @member {Array.<String>} errors
101
- */
102
- exports.prototype['errors'] = undefined;
103
- /**
104
- * @member {module:model/CreateSubmissionBatchResponse.StatusEnum} status
105
- */
106
- exports.prototype['status'] = undefined;
107
-
108
-
109
- /**
110
- * Allowed values for the <code>status</code> property.
111
- * @enum {String}
112
- * @readonly
113
- */
114
- exports.StatusEnum = {
115
- /**
116
- * value: "success"
117
- * @const
118
- */
119
- "success": "success",
120
- /**
121
- * value: "error"
122
- * @const
123
- */
124
- "error": "error" };
125
-
126
-
127
- return exports;
128
- }));
129
-
130
-
@@ -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.5.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.5.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.5.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
-