docspring 1.3.2 → 1.5.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 (75) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +5 -3
  3. package/docs/CombinedSubmission.md +2 -0
  4. package/docs/{Template1.md → FullTemplate.md} +2 -2
  5. package/docs/{Template1Defaults.md → FullTemplateDefaults.md} +1 -1
  6. package/docs/PDFApi.md +103 -3
  7. package/docs/SubmissionData.md +1 -0
  8. package/docs/SubmissionDataRequest.md +1 -0
  9. package/docs/TemplatestemplateIdaddFieldsFields.md +1 -0
  10. package/package.json +1 -1
  11. package/src/ApiClient.js +1 -1
  12. package/src/api/Client.js +263 -250
  13. package/src/api/PDFApi.js +101 -8
  14. package/src/index.js +14 -14
  15. package/src/model/AddFieldsData.js +1 -1
  16. package/src/model/AddFieldsTemplateResponse.js +1 -1
  17. package/src/model/AuthenticationError.js +1 -1
  18. package/src/model/AuthenticationSuccessResponse.js +1 -1
  19. package/src/model/CombinePdfsData.js +1 -1
  20. package/src/model/CombinedSubmission.js +17 -1
  21. package/src/model/CombinedSubmissionAction.js +1 -1
  22. package/src/model/CombinedSubmissionData.js +1 -1
  23. package/src/model/CopyTemplateData.js +1 -1
  24. package/src/model/CreateCombinedSubmissionResponse.js +1 -1
  25. package/src/model/CreateCustomFileData.js +1 -1
  26. package/src/model/CreateCustomFileResponse.js +1 -1
  27. package/src/model/CreateFolderData.js +1 -1
  28. package/src/model/CreateHtmlTemplateData.js +1 -1
  29. package/src/model/CreateSubmissionBatchResponse.js +1 -1
  30. package/src/model/CreateSubmissionBatchSubmissionsResponse.js +1 -1
  31. package/src/model/CreateSubmissionDataRequestData.js +1 -1
  32. package/src/model/CreateSubmissionDataRequestTokenResponse.js +1 -1
  33. package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +1 -1
  34. package/src/model/CreateSubmissionResponse.js +1 -1
  35. package/src/model/CreateTemplateFromUploadData.js +1 -1
  36. package/src/model/CustomFile.js +1 -1
  37. package/src/model/Error.js +1 -1
  38. package/src/model/Folder.js +1 -1
  39. package/src/model/FoldersFolder.js +1 -1
  40. package/src/model/{Template1.js → FullTemplate.js} +15 -15
  41. package/src/model/{Template1Defaults.js → FullTemplateDefaults.js} +9 -9
  42. package/src/model/HtmlTemplateData.js +1 -1
  43. package/src/model/InvalidRequest.js +1 -1
  44. package/src/model/ListSubmissionsResponse.js +1 -1
  45. package/src/model/MoveFolderData.js +1 -1
  46. package/src/model/MoveTemplateData.js +1 -1
  47. package/src/model/PendingTemplate.js +1 -1
  48. package/src/model/RenameFolderData.js +1 -1
  49. package/src/model/Submission.js +1 -1
  50. package/src/model/SubmissionAction.js +1 -1
  51. package/src/model/SubmissionBatch.js +1 -1
  52. package/src/model/SubmissionBatchData.js +1 -1
  53. package/src/model/SubmissionData.js +9 -1
  54. package/src/model/SubmissionDataBatchRequest.js +1 -1
  55. package/src/model/SubmissionDataRequest.js +9 -1
  56. package/src/model/Template.js +1 -1
  57. package/src/model/TemplateData.js +1 -1
  58. package/src/model/TemplatestemplateIdaddFieldsFields.js +9 -1
  59. package/src/model/UpdateDataRequestResponse.js +1 -1
  60. package/src/model/UpdateSubmissionDataRequestData.js +1 -1
  61. package/src/model/UpdateTemplateData.js +1 -1
  62. package/src/model/UpdateTemplateResponse.js +1 -1
  63. package/src/model/UploadTemplateData.js +1 -1
  64. package/src/model/UploadTemplateDataDocument.js +1 -1
  65. package/src/model/UploadTemplateDataDocumentMetadata.js +1 -1
  66. package/test/api/ClientIntegration.spec.js +78 -56
  67. package/test/api/PDFApi.spec.js.original +20 -0
  68. package/test/api/PDFApiIntegration.spec.js +99 -95
  69. package/test/model/CombinedSubmission.spec.js +12 -0
  70. package/test/model/{Template1.spec.js → FullTemplate.spec.js} +45 -45
  71. package/test/model/{Template1Defaults.spec.js → FullTemplateDefaults.spec.js} +9 -9
  72. package/test/model/SubmissionData.spec.js +6 -0
  73. package/test/model/SubmissionDataRequest.spec.js +6 -0
  74. package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +6 -0
  75. package/yarn.lock +0 -263
@@ -180,6 +180,16 @@
180
180
  done();
181
181
  });
182
182
  });
183
+ describe('deleteTemplate', function() {
184
+ it('should call deleteTemplate successfully', function(done) {
185
+ //uncomment below and update the code to test deleteTemplate
186
+ //instance.deleteTemplate(function(error) {
187
+ // if (error) throw error;
188
+ //expect().to.be();
189
+ //});
190
+ done();
191
+ });
192
+ });
183
193
  describe('expireCombinedSubmission', function() {
184
194
  it('should call expireCombinedSubmission successfully', function(done) {
185
195
  //uncomment below and update the code to test expireCombinedSubmission
@@ -290,6 +300,16 @@
290
300
  done();
291
301
  });
292
302
  });
303
+ describe('listCombinedSubmissions', function() {
304
+ it('should call listCombinedSubmissions successfully', function(done) {
305
+ //uncomment below and update the code to test listCombinedSubmissions
306
+ //instance.listCombinedSubmissions(function(error) {
307
+ // if (error) throw error;
308
+ //expect().to.be();
309
+ //});
310
+ done();
311
+ });
312
+ });
293
313
  describe('listFolders', function() {
294
314
  it('should call listFolders successfully', function(done) {
295
315
  //uncomment below and update the code to test listFolders
@@ -50,46 +50,48 @@
50
50
  submissions: [
51
51
  {
52
52
  data: {
53
- title: 'Test PDF',
54
- description: 'This PDF is great!',
53
+ first_name: 'John',
54
+ last_name: 'Smith',
55
+ phone_number: '+11234567890',
55
56
  },
56
57
  },
57
58
  {
58
59
  data: {
59
- title: 'Test PDF 2',
60
- description: 'This PDF is also great!',
60
+ first_name: 'Jane',
61
+ last_name: 'Doe',
62
+ phone_number: '+64215556789',
61
63
  },
62
64
  },
63
65
  ],
64
66
  }
65
67
 
66
- instance.batchGeneratePdfs(submissionBatchData, function (
67
- error,
68
- response
69
- ) {
70
- if (error) {
71
- console.log(response, error)
72
- throw error
68
+ instance.batchGeneratePdfs(
69
+ submissionBatchData,
70
+ function (error, response) {
71
+ if (error) {
72
+ console.log(response, error)
73
+ throw error
74
+ }
75
+ expect(response.status).to.be('success')
76
+ expect(response.submissions.length).to.be(2)
77
+ var firstSubmission = response.submissions[0]
78
+ expect(firstSubmission.status).to.be('success')
79
+ expect(firstSubmission.submission.id).to.match(/^sub_/)
80
+ expect(firstSubmission.submission.expired).to.be(false)
81
+ expect(firstSubmission.submission.state).to.be('pending')
82
+ var secondSubmission = response.submissions[1]
83
+ expect(secondSubmission.status).to.be('success')
84
+ expect(secondSubmission.submission.id).to.match(/^sub_/)
85
+ expect(secondSubmission.submission.expired).to.be(false)
86
+ expect(secondSubmission.submission.state).to.be('pending')
87
+ var batch = response.submission_batch
88
+ expect(batch.id).to.match(/^sbb_/)
89
+ expect(batch.state).to.be('pending')
90
+ expect(batch.total_count).to.be(2)
91
+ expect(batch.pending_count).to.be(2)
92
+ done()
73
93
  }
74
- expect(response.status).to.be('success')
75
- expect(response.submissions.length).to.be(2)
76
- var firstSubmission = response.submissions[0]
77
- expect(firstSubmission.status).to.be('success')
78
- expect(firstSubmission.submission.id).to.match(/^sub_/)
79
- expect(firstSubmission.submission.expired).to.be(false)
80
- expect(firstSubmission.submission.state).to.be('pending')
81
- var secondSubmission = response.submissions[1]
82
- expect(secondSubmission.status).to.be('success')
83
- expect(secondSubmission.submission.id).to.match(/^sub_/)
84
- expect(secondSubmission.submission.expired).to.be(false)
85
- expect(secondSubmission.submission.state).to.be('pending')
86
- var batch = response.submission_batch
87
- expect(batch.id).to.match(/^sbb_/)
88
- expect(batch.state).to.be('pending')
89
- expect(batch.total_count).to.be(2)
90
- expect(batch.pending_count).to.be(2)
91
- done()
92
- })
94
+ )
93
95
  })
94
96
  })
95
97
 
@@ -110,14 +112,14 @@
110
112
  describe('expireCombinedSubmission', function () {
111
113
  it('should call expireCombinedSubmission successfully', function (done) {
112
114
  var combinedSubmissionId = 'com_000000000000000001'
113
- instance.expireCombinedSubmission(combinedSubmissionId, function (
114
- error,
115
- response
116
- ) {
117
- if (error) throw error
118
- expect(response.expired).to.be(true)
119
- done()
120
- })
115
+ instance.expireCombinedSubmission(
116
+ combinedSubmissionId,
117
+ function (error, response) {
118
+ if (error) throw error
119
+ expect(response.expired).to.be(true)
120
+ done()
121
+ }
122
+ )
121
123
  })
122
124
  })
123
125
  describe('expireSubmission', function () {
@@ -135,22 +137,24 @@
135
137
  var templateId = 'tpl_000000000000000001'
136
138
  var submissionData = {
137
139
  data: {
138
- title: 'Test PDF',
139
- description: 'This PDF is great!',
140
+ first_name: 'John',
141
+ last_name: 'Smith',
142
+ phone_number: '+11234567890',
140
143
  },
141
144
  }
142
- instance.generatePDF(templateId, submissionData, function (
143
- error,
144
- response
145
- ) {
146
- if (error) throw error
147
- expect(response.status).to.be('success')
148
- var submission = response.submission
149
- expect(submission.id).to.match(/^sub_/)
150
- expect(submission.expired).to.be(false)
151
- expect(submission.state).to.be('pending')
152
- done()
153
- })
145
+ instance.generatePDF(
146
+ templateId,
147
+ submissionData,
148
+ function (error, response) {
149
+ if (error) throw error
150
+ expect(response.status).to.be('success')
151
+ var submission = response.submission
152
+ expect(submission.id).to.match(/^sub_/)
153
+ expect(submission.expired).to.be(false)
154
+ expect(submission.state).to.be('pending')
155
+ done()
156
+ }
157
+ )
154
158
  })
155
159
  })
156
160
  describe('generatePDF with data_requests', function () {
@@ -158,56 +162,57 @@
158
162
  var templateId = 'tpl_000000000000000001'
159
163
  var submissionData = {
160
164
  data: {
161
- title: 'Test PDF',
162
- description: 'This PDF is great!',
165
+ first_name: 'John',
166
+ last_name: 'Smith',
163
167
  },
164
168
  data_requests: [
165
169
  {
166
170
  name: 'John Smith',
167
171
  email: 'jsmith@example.com',
168
- fields: ['description'],
172
+ fields: ['phone_number'],
169
173
  order: 1,
170
174
  auth_type: 'email_link',
171
175
  },
172
176
  ],
173
177
  }
174
- instance.generatePDF(templateId, submissionData, function (
175
- error,
176
- response
177
- ) {
178
- if (error) throw error
179
- expect(response.status).to.be('success')
180
- var submission = response.submission
181
- expect(submission.id).to.match(/^sub_/)
182
- expect(submission.expired).to.be(false)
183
- expect(submission.state).to.be('waiting_for_data_requests')
178
+ instance.generatePDF(
179
+ templateId,
180
+ submissionData,
181
+ function (error, response) {
182
+ if (error) throw error
183
+ expect(response.status).to.be('success')
184
+ var submission = response.submission
185
+ expect(submission.id).to.match(/^sub_/)
186
+ expect(submission.expired).to.be(false)
187
+ expect(submission.state).to.be('waiting_for_data_requests')
184
188
 
185
- var data_requests = submission.data_requests
186
- expect(data_requests.length).to.be(1)
187
- var data_request = data_requests[0]
189
+ var data_requests = submission.data_requests
190
+ expect(data_requests.length).to.be(1)
191
+ var data_request = data_requests[0]
188
192
 
189
- expect(data_request.id).to.match(/^drq_/)
190
- expect(data_request.state).to.be('pending')
191
- expect(data_request.fields).to.eql(['description'])
192
- expect(data_request.order).to.be(1)
193
- expect(data_request.name).to.be('John Smith')
194
- expect(data_request.email).to.be('jsmith@example.com')
193
+ expect(data_request.id).to.match(/^drq_/)
194
+ expect(data_request.state).to.be('pending')
195
+ expect(data_request.fields).to.eql(['phone_number'])
196
+ expect(data_request.order).to.be(1)
197
+ expect(data_request.name).to.be('John Smith')
198
+ expect(data_request.email).to.be('jsmith@example.com')
195
199
 
196
- done()
197
- })
200
+ done()
201
+ }
202
+ )
198
203
  })
199
204
  })
200
205
  describe('getCombinedSubmission', function () {
201
206
  it('should call getCombinedSubmission successfully', function (done) {
202
207
  var combinedSubmissionId = 'com_000000000000000001'
203
- instance.getCombinedSubmission(combinedSubmissionId, function (
204
- error,
205
- response
206
- ) {
207
- if (error) throw error
208
- expect(response.id).to.match(/^com_/)
209
- done()
210
- })
208
+ instance.getCombinedSubmission(
209
+ combinedSubmissionId,
210
+ function (error, response) {
211
+ if (error) throw error
212
+ expect(response.id).to.match(/^com_/)
213
+ done()
214
+ }
215
+ )
211
216
  })
212
217
  })
213
218
  describe('getSubmission', function () {
@@ -284,17 +289,16 @@
284
289
  footer_html: 'Test Footer',
285
290
  },
286
291
  }
287
- instance.createHTMLTemplate(templateData, function (
288
- error,
289
- data,
290
- response
291
- ) {
292
- if (error) throw error
293
- expect(data.name).to.be('Test HTML Template')
294
- expect(data.description).to.be('HTML template created via API')
295
- expect(data.id).to.match(/^tpl_/)
296
- done()
297
- })
292
+ instance.createHTMLTemplate(
293
+ templateData,
294
+ function (error, data, response) {
295
+ if (error) throw error
296
+ expect(data.name).to.be('Test HTML Template')
297
+ expect(data.description).to.be('HTML template created via API')
298
+ expect(data.id).to.match(/^tpl_/)
299
+ done()
300
+ }
301
+ )
298
302
  })
299
303
  })
300
304
  })
@@ -56,6 +56,12 @@
56
56
  //expect(instance).to.be.a(DocSpring.CombinedSubmission);
57
57
  });
58
58
 
59
+ it('should have the property errorMessage (base name: "error_message")', function() {
60
+ // uncomment below and update the code to test the property errorMessage
61
+ //var instance = new DocSpring.CombinedSubmission();
62
+ //expect(instance).to.be();
63
+ });
64
+
59
65
  it('should have the property metadata (base name: "metadata")', function() {
60
66
  // uncomment below and update the code to test the property metadata
61
67
  //var instance = new DocSpring.CombinedSubmission();
@@ -116,6 +122,12 @@
116
122
  //expect(instance).to.be();
117
123
  });
118
124
 
125
+ it('should have the property expiresIn (base name: "expires_in")', function() {
126
+ // uncomment below and update the code to test the property expiresIn
127
+ //var instance = new DocSpring.CombinedSubmission();
128
+ //expect(instance).to.be();
129
+ });
130
+
119
131
  it('should have the property actions (base name: "actions")', function() {
120
132
  // uncomment below and update the code to test the property actions
121
133
  //var instance = new DocSpring.CombinedSubmission();
@@ -30,7 +30,7 @@
30
30
  var instance;
31
31
 
32
32
  beforeEach(function() {
33
- instance = new DocSpring.Template1();
33
+ instance = new DocSpring.FullTemplate();
34
34
  });
35
35
 
36
36
  var getProperty = function(object, getter, property) {
@@ -49,244 +49,244 @@
49
49
  object[property] = value;
50
50
  }
51
51
 
52
- describe('Template1', function() {
53
- it('should create an instance of Template1', function() {
54
- // uncomment below and update the code to test Template1
55
- //var instance = new DocSpring.Template1();
56
- //expect(instance).to.be.a(DocSpring.Template1);
52
+ describe('FullTemplate', function() {
53
+ it('should create an instance of FullTemplate', function() {
54
+ // uncomment below and update the code to test FullTemplate
55
+ //var instance = new DocSpring.FullTemplate();
56
+ //expect(instance).to.be.a(DocSpring.FullTemplate);
57
57
  });
58
58
 
59
59
  it('should have the property documentProcessed (base name: "document_processed")', function() {
60
60
  // uncomment below and update the code to test the property documentProcessed
61
- //var instance = new DocSpring.Template1();
61
+ //var instance = new DocSpring.FullTemplate();
62
62
  //expect(instance).to.be();
63
63
  });
64
64
 
65
65
  it('should have the property expirationInterval (base name: "expiration_interval")', function() {
66
66
  // uncomment below and update the code to test the property expirationInterval
67
- //var instance = new DocSpring.Template1();
67
+ //var instance = new DocSpring.FullTemplate();
68
68
  //expect(instance).to.be();
69
69
  });
70
70
 
71
71
  it('should have the property scss (base name: "scss")', function() {
72
72
  // uncomment below and update the code to test the property scss
73
- //var instance = new DocSpring.Template1();
73
+ //var instance = new DocSpring.FullTemplate();
74
74
  //expect(instance).to.be();
75
75
  });
76
76
 
77
77
  it('should have the property documentState (base name: "document_state")', function() {
78
78
  // uncomment below and update the code to test the property documentState
79
- //var instance = new DocSpring.Template1();
79
+ //var instance = new DocSpring.FullTemplate();
80
80
  //expect(instance).to.be();
81
81
  });
82
82
 
83
83
  it('should have the property expireAfter (base name: "expire_after")', function() {
84
84
  // uncomment below and update the code to test the property expireAfter
85
- //var instance = new DocSpring.Template1();
85
+ //var instance = new DocSpring.FullTemplate();
86
86
  //expect(instance).to.be();
87
87
  });
88
88
 
89
89
  it('should have the property description (base name: "description")', function() {
90
90
  // uncomment below and update the code to test the property description
91
- //var instance = new DocSpring.Template1();
91
+ //var instance = new DocSpring.FullTemplate();
92
92
  //expect(instance).to.be();
93
93
  });
94
94
 
95
95
  it('should have the property slackWebhookUrl (base name: "slack_webhook_url")', function() {
96
96
  // uncomment below and update the code to test the property slackWebhookUrl
97
- //var instance = new DocSpring.Template1();
97
+ //var instance = new DocSpring.FullTemplate();
98
98
  //expect(instance).to.be();
99
99
  });
100
100
 
101
101
  it('should have the property demo (base name: "demo")', function() {
102
102
  // uncomment below and update the code to test the property demo
103
- //var instance = new DocSpring.Template1();
103
+ //var instance = new DocSpring.FullTemplate();
104
104
  //expect(instance).to.be();
105
105
  });
106
106
 
107
107
  it('should have the property path (base name: "path")', function() {
108
108
  // uncomment below and update the code to test the property path
109
- //var instance = new DocSpring.Template1();
109
+ //var instance = new DocSpring.FullTemplate();
110
110
  //expect(instance).to.be();
111
111
  });
112
112
 
113
113
  it('should have the property headerHtml (base name: "header_html")', function() {
114
114
  // uncomment below and update the code to test the property headerHtml
115
- //var instance = new DocSpring.Template1();
115
+ //var instance = new DocSpring.FullTemplate();
116
116
  //expect(instance).to.be();
117
117
  });
118
118
 
119
119
  it('should have the property publicWebForm (base name: "public_web_form")', function() {
120
120
  // uncomment below and update the code to test the property publicWebForm
121
- //var instance = new DocSpring.Template1();
121
+ //var instance = new DocSpring.FullTemplate();
122
122
  //expect(instance).to.be();
123
123
  });
124
124
 
125
125
  it('should have the property fieldOrder (base name: "field_order")', function() {
126
126
  // uncomment below and update the code to test the property fieldOrder
127
- //var instance = new DocSpring.Template1();
127
+ //var instance = new DocSpring.FullTemplate();
128
128
  //expect(instance).to.be();
129
129
  });
130
130
 
131
131
  it('should have the property permanentDocumentUrl (base name: "permanent_document_url")', function() {
132
132
  // uncomment below and update the code to test the property permanentDocumentUrl
133
- //var instance = new DocSpring.Template1();
133
+ //var instance = new DocSpring.FullTemplate();
134
134
  //expect(instance).to.be();
135
135
  });
136
136
 
137
137
  it('should have the property html (base name: "html")', function() {
138
138
  // uncomment below and update the code to test the property html
139
- //var instance = new DocSpring.Template1();
139
+ //var instance = new DocSpring.FullTemplate();
140
140
  //expect(instance).to.be();
141
141
  });
142
142
 
143
143
  it('should have the property templateType (base name: "template_type")', function() {
144
144
  // uncomment below and update the code to test the property templateType
145
- //var instance = new DocSpring.Template1();
145
+ //var instance = new DocSpring.FullTemplate();
146
146
  //expect(instance).to.be();
147
147
  });
148
148
 
149
149
  it('should have the property id (base name: "id")', function() {
150
150
  // uncomment below and update the code to test the property id
151
- //var instance = new DocSpring.Template1();
151
+ //var instance = new DocSpring.FullTemplate();
152
152
  //expect(instance).to.be();
153
153
  });
154
154
 
155
155
  it('should have the property pageDimensions (base name: "page_dimensions")', function() {
156
156
  // uncomment below and update the code to test the property pageDimensions
157
- //var instance = new DocSpring.Template1();
157
+ //var instance = new DocSpring.FullTemplate();
158
158
  //expect(instance).to.be();
159
159
  });
160
160
 
161
161
  it('should have the property locked (base name: "locked")', function() {
162
162
  // uncomment below and update the code to test the property locked
163
- //var instance = new DocSpring.Template1();
163
+ //var instance = new DocSpring.FullTemplate();
164
164
  //expect(instance).to.be();
165
165
  });
166
166
 
167
167
  it('should have the property pageCount (base name: "page_count")', function() {
168
168
  // uncomment below and update the code to test the property pageCount
169
- //var instance = new DocSpring.Template1();
169
+ //var instance = new DocSpring.FullTemplate();
170
170
  //expect(instance).to.be();
171
171
  });
172
172
 
173
173
  it('should have the property encryptPdfs (base name: "encrypt_pdfs")', function() {
174
174
  // uncomment below and update the code to test the property encryptPdfs
175
- //var instance = new DocSpring.Template1();
175
+ //var instance = new DocSpring.FullTemplate();
176
176
  //expect(instance).to.be();
177
177
  });
178
178
 
179
179
  it('should have the property webhookUrl (base name: "webhook_url")', function() {
180
180
  // uncomment below and update the code to test the property webhookUrl
181
- //var instance = new DocSpring.Template1();
181
+ //var instance = new DocSpring.FullTemplate();
182
182
  //expect(instance).to.be();
183
183
  });
184
184
 
185
185
  it('should have the property embedDomains (base name: "embed_domains")', function() {
186
186
  // uncomment below and update the code to test the property embedDomains
187
- //var instance = new DocSpring.Template1();
187
+ //var instance = new DocSpring.FullTemplate();
188
188
  //expect(instance).to.be();
189
189
  });
190
190
 
191
191
  it('should have the property parentFolderId (base name: "parent_folder_id")', function() {
192
192
  // uncomment below and update the code to test the property parentFolderId
193
- //var instance = new DocSpring.Template1();
193
+ //var instance = new DocSpring.FullTemplate();
194
194
  //expect(instance).to.be();
195
195
  });
196
196
 
197
197
  it('should have the property allowAdditionalProperties (base name: "allow_additional_properties")', function() {
198
198
  // uncomment below and update the code to test the property allowAdditionalProperties
199
- //var instance = new DocSpring.Template1();
199
+ //var instance = new DocSpring.FullTemplate();
200
200
  //expect(instance).to.be();
201
201
  });
202
202
 
203
203
  it('should have the property encryptPdfsPassword (base name: "encrypt_pdfs_password")', function() {
204
204
  // uncomment below and update the code to test the property encryptPdfsPassword
205
- //var instance = new DocSpring.Template1();
205
+ //var instance = new DocSpring.FullTemplate();
206
206
  //expect(instance).to.be();
207
207
  });
208
208
 
209
209
  it('should have the property publicSubmissions (base name: "public_submissions")', function() {
210
210
  // uncomment below and update the code to test the property publicSubmissions
211
- //var instance = new DocSpring.Template1();
211
+ //var instance = new DocSpring.FullTemplate();
212
212
  //expect(instance).to.be();
213
213
  });
214
214
 
215
215
  it('should have the property sharedFieldData (base name: "shared_field_data")', function() {
216
216
  // uncomment below and update the code to test the property sharedFieldData
217
- //var instance = new DocSpring.Template1();
217
+ //var instance = new DocSpring.FullTemplate();
218
218
  //expect(instance).to.be();
219
219
  });
220
220
 
221
221
  it('should have the property documentMd5 (base name: "document_md5")', function() {
222
222
  // uncomment below and update the code to test the property documentMd5
223
- //var instance = new DocSpring.Template1();
223
+ //var instance = new DocSpring.FullTemplate();
224
224
  //expect(instance).to.be();
225
225
  });
226
226
 
227
227
  it('should have the property firstTemplate (base name: "first_template")', function() {
228
228
  // uncomment below and update the code to test the property firstTemplate
229
- //var instance = new DocSpring.Template1();
229
+ //var instance = new DocSpring.FullTemplate();
230
230
  //expect(instance).to.be();
231
231
  });
232
232
 
233
233
  it('should have the property defaults (base name: "defaults")', function() {
234
234
  // uncomment below and update the code to test the property defaults
235
- //var instance = new DocSpring.Template1();
235
+ //var instance = new DocSpring.FullTemplate();
236
236
  //expect(instance).to.be();
237
237
  });
238
238
 
239
239
  it('should have the property editableSubmissions (base name: "editable_submissions")', function() {
240
240
  // uncomment below and update the code to test the property editableSubmissions
241
- //var instance = new DocSpring.Template1();
241
+ //var instance = new DocSpring.FullTemplate();
242
242
  //expect(instance).to.be();
243
243
  });
244
244
 
245
245
  it('should have the property expireSubmissions (base name: "expire_submissions")', function() {
246
246
  // uncomment below and update the code to test the property expireSubmissions
247
- //var instance = new DocSpring.Template1();
247
+ //var instance = new DocSpring.FullTemplate();
248
248
  //expect(instance).to.be();
249
249
  });
250
250
 
251
251
  it('should have the property name (base name: "name")', function() {
252
252
  // uncomment below and update the code to test the property name
253
- //var instance = new DocSpring.Template1();
253
+ //var instance = new DocSpring.FullTemplate();
254
254
  //expect(instance).to.be();
255
255
  });
256
256
 
257
257
  it('should have the property footerHtml (base name: "footer_html")', function() {
258
258
  // uncomment below and update the code to test the property footerHtml
259
- //var instance = new DocSpring.Template1();
259
+ //var instance = new DocSpring.FullTemplate();
260
260
  //expect(instance).to.be();
261
261
  });
262
262
 
263
263
  it('should have the property documentParseError (base name: "document_parse_error")', function() {
264
264
  // uncomment below and update the code to test the property documentParseError
265
- //var instance = new DocSpring.Template1();
265
+ //var instance = new DocSpring.FullTemplate();
266
266
  //expect(instance).to.be();
267
267
  });
268
268
 
269
269
  it('should have the property fields (base name: "fields")', function() {
270
270
  // uncomment below and update the code to test the property fields
271
- //var instance = new DocSpring.Template1();
271
+ //var instance = new DocSpring.FullTemplate();
272
272
  //expect(instance).to.be();
273
273
  });
274
274
 
275
275
  it('should have the property documentFilename (base name: "document_filename")', function() {
276
276
  // uncomment below and update the code to test the property documentFilename
277
- //var instance = new DocSpring.Template1();
277
+ //var instance = new DocSpring.FullTemplate();
278
278
  //expect(instance).to.be();
279
279
  });
280
280
 
281
281
  it('should have the property redirectUrl (base name: "redirect_url")', function() {
282
282
  // uncomment below and update the code to test the property redirectUrl
283
- //var instance = new DocSpring.Template1();
283
+ //var instance = new DocSpring.FullTemplate();
284
284
  //expect(instance).to.be();
285
285
  });
286
286
 
287
287
  it('should have the property documentUrl (base name: "document_url")', function() {
288
288
  // uncomment below and update the code to test the property documentUrl
289
- //var instance = new DocSpring.Template1();
289
+ //var instance = new DocSpring.FullTemplate();
290
290
  //expect(instance).to.be();
291
291
  });
292
292
 
@@ -30,7 +30,7 @@
30
30
  var instance;
31
31
 
32
32
  beforeEach(function() {
33
- instance = new DocSpring.Template1Defaults();
33
+ instance = new DocSpring.FullTemplateDefaults();
34
34
  });
35
35
 
36
36
  var getProperty = function(object, getter, property) {
@@ -49,28 +49,28 @@
49
49
  object[property] = value;
50
50
  }
51
51
 
52
- describe('Template1Defaults', function() {
53
- it('should create an instance of Template1Defaults', function() {
54
- // uncomment below and update the code to test Template1Defaults
55
- //var instance = new DocSpring.Template1Defaults();
56
- //expect(instance).to.be.a(DocSpring.Template1Defaults);
52
+ describe('FullTemplateDefaults', function() {
53
+ it('should create an instance of FullTemplateDefaults', function() {
54
+ // uncomment below and update the code to test FullTemplateDefaults
55
+ //var instance = new DocSpring.FullTemplateDefaults();
56
+ //expect(instance).to.be.a(DocSpring.FullTemplateDefaults);
57
57
  });
58
58
 
59
59
  it('should have the property color (base name: "color")', function() {
60
60
  // uncomment below and update the code to test the property color
61
- //var instance = new DocSpring.Template1Defaults();
61
+ //var instance = new DocSpring.FullTemplateDefaults();
62
62
  //expect(instance).to.be();
63
63
  });
64
64
 
65
65
  it('should have the property fontSize (base name: "fontSize")', function() {
66
66
  // uncomment below and update the code to test the property fontSize
67
- //var instance = new DocSpring.Template1Defaults();
67
+ //var instance = new DocSpring.FullTemplateDefaults();
68
68
  //expect(instance).to.be();
69
69
  });
70
70
 
71
71
  it('should have the property typeface (base name: "typeface")', function() {
72
72
  // uncomment below and update the code to test the property typeface
73
- //var instance = new DocSpring.Template1Defaults();
73
+ //var instance = new DocSpring.FullTemplateDefaults();
74
74
  //expect(instance).to.be();
75
75
  });
76
76