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.
Files changed (221) hide show
  1. package/README.md +58 -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 -33
  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 -31
  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 -1700
  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 -15
  98. package/docs/SubmissionDataBatchRequest.md +0 -13
  99. package/docs/SubmissionDataRequest.md +0 -78
  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 -395
  114. package/src/api/PDFApi.js +0 -1722
  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 -183
  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 -138
  155. package/src/model/SubmissionDataBatchRequest.js +0 -121
  156. package/src/model/SubmissionDataRequest.js +0 -337
  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 -275
  168. package/test/api/PDFApi.spec.js.original +0 -395
  169. package/test/api/PDFApiIntegration.spec.js +0 -301
  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 -127
  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 -109
  209. package/test/model/SubmissionDataBatchRequest.spec.js +0 -97
  210. package/test/model/SubmissionDataRequest.spec.js +0 -181
  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
  221. package/yarn.lock +0 -263
@@ -1,275 +0,0 @@
1
- /**
2
- * API V1
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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-SNAPSHOT
11
- *
12
- * Do not edit the class manually.
13
- *
14
- */
15
-
16
- ;(function (root, factory) {
17
- if (typeof define === 'function' && define.amd) {
18
- // AMD.
19
- define(['expect.js', '../../src/index'], factory)
20
- } else if (typeof module === 'object' && module.exports) {
21
- // CommonJS-like environments that support module.exports, like Node.
22
- factory(require('expect.js'), require('../../src/index'))
23
- } else {
24
- // Browser globals (root is window)
25
- factory(root.expect, root.DocSpring)
26
- }
27
- })(this, function (expect, DocSpring) {
28
- 'use strict'
29
-
30
- var docspring
31
-
32
- beforeEach(function () {
33
- var config = new DocSpring.Configuration()
34
- config.apiTokenId = 'api_token123'
35
- config.apiTokenSecret = 'testsecret123'
36
- docspring = new DocSpring.Client(config)
37
- config.basePath = 'http://api.docspring.local:31337/api/v1'
38
- // docspring = new docspring.Client(config);
39
- })
40
-
41
- describe('Client', function () {
42
- describe('testAuthentication', function () {
43
- it('should call testAuthentication method on PDFApi prototype', function (done) {
44
- docspring.testAuthentication(function (error, response) {
45
- if (error) throw error
46
- expect(response.status).to.be('success')
47
- done()
48
- })
49
- })
50
- })
51
-
52
- describe('combineSubmissions', function () {
53
- it('should call combineSubmissions successfully and wait for PDF', function (done) {
54
- this.timeout(10000)
55
- var opts = {
56
- submission_ids: ['sub_000000000000000001', 'sub_000000000000000002'],
57
- }
58
- docspring.combineSubmissions(opts, function (error, response) {
59
- if (error) throw error
60
- expect(response.status).to.be('success')
61
- expect(response.combined_submission.id).to.match(/^com_/)
62
- expect(response.combined_submission.state).to.be('processed')
63
- done()
64
- })
65
- })
66
- })
67
-
68
- describe('combinePdfs', function () {
69
- it('should call combinePdfs successfully and wait for the PDF', function (done) {
70
- this.timeout(10000)
71
- var options = {
72
- test: false,
73
- source_pdfs: [
74
- { type: 'submission', id: 'sub_000000000000000001' },
75
- { type: 'template', id: 'tpl_000000000000000001' },
76
- { type: 'submission', id: 'sub_000000000000000002' },
77
- ],
78
- wait: true,
79
- }
80
-
81
- docspring.combinePdfs(options, function (error, response) {
82
- if (error) throw error
83
- var combined_submission = response.combined_submission
84
-
85
- expect(response.status).to.be('success')
86
- expect(combined_submission.id).to.match(/^com_/)
87
-
88
- expect(combined_submission.state).to.be('processed')
89
- expect(combined_submission.download_url).to.not.be(null)
90
- expect(combined_submission.download_url).to.not.be('')
91
- done()
92
- })
93
- })
94
-
95
- it('should call combinePdfs successfully and not wait for the PDF', function (done) {
96
- this.timeout(10000)
97
- var options = {
98
- test: false,
99
- source_pdfs: [
100
- { type: 'submission', id: 'sub_000000000000000001' },
101
- { type: 'template', id: 'tpl_000000000000000001' },
102
- { type: 'submission', id: 'sub_000000000000000002' },
103
- ],
104
- wait: false,
105
- }
106
-
107
- docspring.combinePdfs(options, function (error, response) {
108
- if (error) throw error
109
- var combined_submission = response.combined_submission
110
-
111
- expect(response.status).to.be('success')
112
- expect(combined_submission.id).to.match(/^com_/)
113
-
114
- expect(combined_submission.state).to.be('pending')
115
- expect(combined_submission.download_url).to.be(null)
116
- done()
117
- })
118
- })
119
- })
120
-
121
- describe('generatePDF', function () {
122
- it('should call generatePDF and wait for the PDF', function (done) {
123
- this.timeout(10000)
124
- var template_id = 'tpl_000000000000000001'
125
- var submission_data = {
126
- editable: false,
127
- data: {
128
- title: 'Test PDF',
129
- description: 'This PDF is great!',
130
- },
131
- metadata: {
132
- user_id: 123,
133
- },
134
- field_overrides: {
135
- title: {
136
- required: false,
137
- },
138
- },
139
- wait: true,
140
- }
141
- docspring.generatePDF(template_id, submission_data, function (
142
- error,
143
- response
144
- ) {
145
- if (error) {
146
- console.log(response, error)
147
- throw error
148
- }
149
- var submission = response.submission
150
- expect(response.status).to.be('success')
151
- expect(submission.id).to.match(/^sub_/)
152
- expect(submission.expired).to.be(false)
153
- expect(submission.editable).to.be(false)
154
- expect(submission.state).to.be('processed')
155
- expect(submission.download_url).to.not.be(null)
156
- expect(submission.download_url).to.not.be('')
157
- done()
158
- })
159
- })
160
-
161
- it('should call generatePDF and not wait for the PDF', function (done) {
162
- this.timeout(10000)
163
- var template_id = 'tpl_000000000000000001'
164
- var submission_data = {
165
- editable: false,
166
- data: {
167
- title: 'Test PDF',
168
- description: 'This PDF is great!',
169
- },
170
- metadata: {
171
- user_id: 123,
172
- },
173
- field_overrides: {
174
- title: {
175
- required: false,
176
- },
177
- },
178
- wait: false,
179
- }
180
- docspring.generatePDF(template_id, submission_data, function (
181
- error,
182
- response
183
- ) {
184
- if (error) {
185
- console.log(response, error)
186
- throw error
187
- }
188
- var submission = response.submission
189
- expect(response.status).to.be('success')
190
- expect(submission.id).to.match(/^sub_/)
191
- expect(submission.expired).to.be(false)
192
- expect(submission.editable).to.be(false)
193
- expect(submission.state).to.be('pending')
194
- done()
195
- })
196
- })
197
- })
198
-
199
- describe('getTemplate', function () {
200
- it('should call getTemplate successfully', function (done) {
201
- this.timeout(10000)
202
- var template_id = 'tpl_000000000000000001'
203
-
204
- docspring.getTemplate(template_id, function (error, template) {
205
- if (error) {
206
- console.log(template, error)
207
- throw error
208
- }
209
- expect(template.id).to.be(template_id)
210
- expect(template.name).to.be('API Client Test Template 1')
211
- expect(template.template_type).to.be('pdf')
212
- done()
213
- })
214
- })
215
- })
216
-
217
- describe('updateTemplate', function () {
218
- it('should call updateTemplate successfully', function (done) {
219
- this.timeout(10000)
220
- var template_id = 'tpl_000000000000000001'
221
- var template_data = {
222
- template: {
223
- name: 'New Template Name',
224
- html: '<html><body>New HTML</html></body>',
225
- },
226
- }
227
- docspring.updateTemplate(template_id, template_data, function (
228
- error,
229
- response
230
- ) {
231
- if (error) throw error
232
- expect(response.status).to.be('success')
233
- done()
234
- })
235
- })
236
- })
237
-
238
- describe('addFieldsToTemplate', function () {
239
- it('should call addFieldsToTemplate successfully', function (done) {
240
- this.timeout(10000)
241
- var template_id = 'tpl_000000000000000001'
242
- var newFieldData = {
243
- fields: [
244
- {
245
- name: 'new_field_1',
246
- page: 1,
247
- type: 'string',
248
- required: false,
249
- },
250
- {
251
- name: 'new_field_2',
252
- page: 1,
253
- type: 'number',
254
- integer: true,
255
- required: false,
256
- },
257
- ],
258
- }
259
- docspring.addFieldsToTemplate(template_id, newFieldData, function (
260
- error,
261
- response
262
- ) {
263
- if (error) {
264
- console.log(response, error)
265
- throw error
266
- }
267
- expect(response.status).to.be('success')
268
- expect(response.new_field_ids).to.eql([3, 4])
269
- expect(response.errors).to.be(undefined)
270
- done()
271
- })
272
- })
273
- })
274
- })
275
- })
@@ -1,395 +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.
19
- define(['expect.js', '../../src/index'], factory);
20
- } else if (typeof module === 'object' && module.exports) {
21
- // CommonJS-like environments that support module.exports, like Node.
22
- factory(require('expect.js'), require('../../src/index'));
23
- } else {
24
- // Browser globals (root is window)
25
- factory(root.expect, root.DocSpring);
26
- }
27
- }(this, function(expect, DocSpring) {
28
- 'use strict';
29
-
30
- var instance;
31
-
32
- beforeEach(function() {
33
- instance = new DocSpring.PDFApi();
34
- });
35
-
36
- var getProperty = function(object, getter, property) {
37
- // Use getter method if present; otherwise, get the property directly.
38
- if (typeof object[getter] === 'function')
39
- return object[getter]();
40
- else
41
- return object[property];
42
- }
43
-
44
- var setProperty = function(object, setter, property, value) {
45
- // Use setter method if present; otherwise, set the property directly.
46
- if (typeof object[setter] === 'function')
47
- object[setter](value);
48
- else
49
- object[property] = value;
50
- }
51
-
52
- describe('PDFApi', function() {
53
- describe('addFieldsToTemplate', function() {
54
- it('should call addFieldsToTemplate successfully', function(done) {
55
- //uncomment below and update the code to test addFieldsToTemplate
56
- //instance.addFieldsToTemplate(function(error) {
57
- // if (error) throw error;
58
- //expect().to.be();
59
- //});
60
- done();
61
- });
62
- });
63
- describe('batchGeneratePdfV1', function() {
64
- it('should call batchGeneratePdfV1 successfully', function(done) {
65
- //uncomment below and update the code to test batchGeneratePdfV1
66
- //instance.batchGeneratePdfV1(function(error) {
67
- // if (error) throw error;
68
- //expect().to.be();
69
- //});
70
- done();
71
- });
72
- });
73
- describe('batchGeneratePdfs', function() {
74
- it('should call batchGeneratePdfs successfully', function(done) {
75
- //uncomment below and update the code to test batchGeneratePdfs
76
- //instance.batchGeneratePdfs(function(error) {
77
- // if (error) throw error;
78
- //expect().to.be();
79
- //});
80
- done();
81
- });
82
- });
83
- describe('combinePdfs', function() {
84
- it('should call combinePdfs successfully', function(done) {
85
- //uncomment below and update the code to test combinePdfs
86
- //instance.combinePdfs(function(error) {
87
- // if (error) throw error;
88
- //expect().to.be();
89
- //});
90
- done();
91
- });
92
- });
93
- describe('combineSubmissions', function() {
94
- it('should call combineSubmissions successfully', function(done) {
95
- //uncomment below and update the code to test combineSubmissions
96
- //instance.combineSubmissions(function(error) {
97
- // if (error) throw error;
98
- //expect().to.be();
99
- //});
100
- done();
101
- });
102
- });
103
- describe('copyTemplate', function() {
104
- it('should call copyTemplate successfully', function(done) {
105
- //uncomment below and update the code to test copyTemplate
106
- //instance.copyTemplate(function(error) {
107
- // if (error) throw error;
108
- //expect().to.be();
109
- //});
110
- done();
111
- });
112
- });
113
- describe('createCustomFileFromUpload', function() {
114
- it('should call createCustomFileFromUpload successfully', function(done) {
115
- //uncomment below and update the code to test createCustomFileFromUpload
116
- //instance.createCustomFileFromUpload(function(error) {
117
- // if (error) throw error;
118
- //expect().to.be();
119
- //});
120
- done();
121
- });
122
- });
123
- describe('createDataRequestToken', function() {
124
- it('should call createDataRequestToken successfully', function(done) {
125
- //uncomment below and update the code to test createDataRequestToken
126
- //instance.createDataRequestToken(function(error) {
127
- // if (error) throw error;
128
- //expect().to.be();
129
- //});
130
- done();
131
- });
132
- });
133
- describe('createFolder', function() {
134
- it('should call createFolder successfully', function(done) {
135
- //uncomment below and update the code to test createFolder
136
- //instance.createFolder(function(error) {
137
- // if (error) throw error;
138
- //expect().to.be();
139
- //});
140
- done();
141
- });
142
- });
143
- describe('createHTMLTemplate', function() {
144
- it('should call createHTMLTemplate successfully', function(done) {
145
- //uncomment below and update the code to test createHTMLTemplate
146
- //instance.createHTMLTemplate(function(error) {
147
- // if (error) throw error;
148
- //expect().to.be();
149
- //});
150
- done();
151
- });
152
- });
153
- describe('createPDFTemplate', function() {
154
- it('should call createPDFTemplate successfully', function(done) {
155
- //uncomment below and update the code to test createPDFTemplate
156
- //instance.createPDFTemplate(function(error) {
157
- // if (error) throw error;
158
- //expect().to.be();
159
- //});
160
- done();
161
- });
162
- });
163
- describe('createPDFTemplateFromUpload', function() {
164
- it('should call createPDFTemplateFromUpload successfully', function(done) {
165
- //uncomment below and update the code to test createPDFTemplateFromUpload
166
- //instance.createPDFTemplateFromUpload(function(error) {
167
- // if (error) throw error;
168
- //expect().to.be();
169
- //});
170
- done();
171
- });
172
- });
173
- describe('deleteFolder', function() {
174
- it('should call deleteFolder successfully', function(done) {
175
- //uncomment below and update the code to test deleteFolder
176
- //instance.deleteFolder(function(error) {
177
- // if (error) throw error;
178
- //expect().to.be();
179
- //});
180
- done();
181
- });
182
- });
183
- describe('expireCombinedSubmission', function() {
184
- it('should call expireCombinedSubmission successfully', function(done) {
185
- //uncomment below and update the code to test expireCombinedSubmission
186
- //instance.expireCombinedSubmission(function(error) {
187
- // if (error) throw error;
188
- //expect().to.be();
189
- //});
190
- done();
191
- });
192
- });
193
- describe('expireSubmission', function() {
194
- it('should call expireSubmission successfully', function(done) {
195
- //uncomment below and update the code to test expireSubmission
196
- //instance.expireSubmission(function(error) {
197
- // if (error) throw error;
198
- //expect().to.be();
199
- //});
200
- done();
201
- });
202
- });
203
- describe('generatePDF', function() {
204
- it('should call generatePDF successfully', function(done) {
205
- //uncomment below and update the code to test generatePDF
206
- //instance.generatePDF(function(error) {
207
- // if (error) throw error;
208
- //expect().to.be();
209
- //});
210
- done();
211
- });
212
- });
213
- describe('getCombinedSubmission', function() {
214
- it('should call getCombinedSubmission successfully', function(done) {
215
- //uncomment below and update the code to test getCombinedSubmission
216
- //instance.getCombinedSubmission(function(error) {
217
- // if (error) throw error;
218
- //expect().to.be();
219
- //});
220
- done();
221
- });
222
- });
223
- describe('getDataRequest', function() {
224
- it('should call getDataRequest successfully', function(done) {
225
- //uncomment below and update the code to test getDataRequest
226
- //instance.getDataRequest(function(error) {
227
- // if (error) throw error;
228
- //expect().to.be();
229
- //});
230
- done();
231
- });
232
- });
233
- describe('getFullTemplate', function() {
234
- it('should call getFullTemplate successfully', function(done) {
235
- //uncomment below and update the code to test getFullTemplate
236
- //instance.getFullTemplate(function(error) {
237
- // if (error) throw error;
238
- //expect().to.be();
239
- //});
240
- done();
241
- });
242
- });
243
- describe('getPresignUrl', function() {
244
- it('should call getPresignUrl successfully', function(done) {
245
- //uncomment below and update the code to test getPresignUrl
246
- //instance.getPresignUrl(function(error) {
247
- // if (error) throw error;
248
- //expect().to.be();
249
- //});
250
- done();
251
- });
252
- });
253
- describe('getSubmission', function() {
254
- it('should call getSubmission successfully', function(done) {
255
- //uncomment below and update the code to test getSubmission
256
- //instance.getSubmission(function(error) {
257
- // if (error) throw error;
258
- //expect().to.be();
259
- //});
260
- done();
261
- });
262
- });
263
- describe('getSubmissionBatch', function() {
264
- it('should call getSubmissionBatch successfully', function(done) {
265
- //uncomment below and update the code to test getSubmissionBatch
266
- //instance.getSubmissionBatch(function(error) {
267
- // if (error) throw error;
268
- //expect().to.be();
269
- //});
270
- done();
271
- });
272
- });
273
- describe('getTemplate', function() {
274
- it('should call getTemplate successfully', function(done) {
275
- //uncomment below and update the code to test getTemplate
276
- //instance.getTemplate(function(error) {
277
- // if (error) throw error;
278
- //expect().to.be();
279
- //});
280
- done();
281
- });
282
- });
283
- describe('getTemplateSchema', function() {
284
- it('should call getTemplateSchema successfully', function(done) {
285
- //uncomment below and update the code to test getTemplateSchema
286
- //instance.getTemplateSchema(function(error) {
287
- // if (error) throw error;
288
- //expect().to.be();
289
- //});
290
- done();
291
- });
292
- });
293
- describe('listFolders', function() {
294
- it('should call listFolders successfully', function(done) {
295
- //uncomment below and update the code to test listFolders
296
- //instance.listFolders(function(error) {
297
- // if (error) throw error;
298
- //expect().to.be();
299
- //});
300
- done();
301
- });
302
- });
303
- describe('listSubmissions', function() {
304
- it('should call listSubmissions successfully', function(done) {
305
- //uncomment below and update the code to test listSubmissions
306
- //instance.listSubmissions(function(error) {
307
- // if (error) throw error;
308
- //expect().to.be();
309
- //});
310
- done();
311
- });
312
- });
313
- describe('listSubmissions_0', function() {
314
- it('should call listSubmissions_0 successfully', function(done) {
315
- //uncomment below and update the code to test listSubmissions_0
316
- //instance.listSubmissions_0(function(error) {
317
- // if (error) throw error;
318
- //expect().to.be();
319
- //});
320
- done();
321
- });
322
- });
323
- describe('listTemplates', function() {
324
- it('should call listTemplates successfully', function(done) {
325
- //uncomment below and update the code to test listTemplates
326
- //instance.listTemplates(function(error) {
327
- // if (error) throw error;
328
- //expect().to.be();
329
- //});
330
- done();
331
- });
332
- });
333
- describe('moveFolderToFolder', function() {
334
- it('should call moveFolderToFolder successfully', function(done) {
335
- //uncomment below and update the code to test moveFolderToFolder
336
- //instance.moveFolderToFolder(function(error) {
337
- // if (error) throw error;
338
- //expect().to.be();
339
- //});
340
- done();
341
- });
342
- });
343
- describe('moveTemplateToFolder', function() {
344
- it('should call moveTemplateToFolder successfully', function(done) {
345
- //uncomment below and update the code to test moveTemplateToFolder
346
- //instance.moveTemplateToFolder(function(error) {
347
- // if (error) throw error;
348
- //expect().to.be();
349
- //});
350
- done();
351
- });
352
- });
353
- describe('renameFolder', function() {
354
- it('should call renameFolder successfully', function(done) {
355
- //uncomment below and update the code to test renameFolder
356
- //instance.renameFolder(function(error) {
357
- // if (error) throw error;
358
- //expect().to.be();
359
- //});
360
- done();
361
- });
362
- });
363
- describe('testAuthentication', function() {
364
- it('should call testAuthentication successfully', function(done) {
365
- //uncomment below and update the code to test testAuthentication
366
- //instance.testAuthentication(function(error) {
367
- // if (error) throw error;
368
- //expect().to.be();
369
- //});
370
- done();
371
- });
372
- });
373
- describe('updateDataRequest', function() {
374
- it('should call updateDataRequest successfully', function(done) {
375
- //uncomment below and update the code to test updateDataRequest
376
- //instance.updateDataRequest(function(error) {
377
- // if (error) throw error;
378
- //expect().to.be();
379
- //});
380
- done();
381
- });
382
- });
383
- describe('updateTemplate', function() {
384
- it('should call updateTemplate successfully', function(done) {
385
- //uncomment below and update the code to test updateTemplate
386
- //instance.updateTemplate(function(error) {
387
- // if (error) throw error;
388
- //expect().to.be();
389
- //});
390
- done();
391
- });
392
- });
393
- });
394
-
395
- }));