docspring 1.2.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +16 -0
- package/LICENSE +1 -1
- package/README.md +10 -2
- package/docs/CombinePdfsData.md +5 -4
- package/docs/CombinedSubmission.md +1 -0
- package/docs/CombinedSubmissionData.md +4 -3
- package/docs/CopyTemplateData.md +9 -0
- package/docs/CreateSubmissionDataRequestData.md +2 -2
- package/docs/HtmlTemplateData.md +2 -2
- package/docs/ListSubmissionsResponse.md +10 -0
- package/docs/MoveTemplateData.md +1 -1
- package/docs/PDFApi.md +224 -4
- package/docs/Submission.md +3 -0
- package/docs/SubmissionBatchData.md +2 -2
- package/docs/SubmissionData.md +5 -4
- package/docs/SubmissionDataBatchRequest.md +2 -2
- package/docs/SubmissionDataRequest.md +1 -0
- package/docs/Template1.md +59 -0
- package/docs/Template1Defaults.md +10 -0
- package/docs/TemplateData.md +2 -2
- package/docs/TemplatestemplateIdaddFieldsFields.md +9 -9
- package/docs/UpdateSubmissionDataRequestData.md +25 -25
- package/docs/UploadTemplateData.md +2 -2
- package/package.json +1 -1
- package/src/ApiClient.js +2 -2
- package/src/api/PDFApi.js +222 -7
- package/src/index.js +25 -5
- package/src/model/AddFieldsData.js +2 -2
- package/src/model/AddFieldsTemplateResponse.js +2 -2
- package/src/model/AuthenticationError.js +2 -2
- package/src/model/AuthenticationSuccessResponse.js +2 -2
- package/src/model/CombinePdfsData.js +27 -19
- package/src/model/CombinedSubmission.js +10 -2
- package/src/model/CombinedSubmissionAction.js +2 -2
- package/src/model/CombinedSubmissionData.js +26 -18
- package/src/model/CopyTemplateData.js +90 -0
- package/src/model/CreateCombinedSubmissionResponse.js +2 -2
- package/src/model/CreateCustomFileData.js +2 -2
- package/src/model/CreateCustomFileResponse.js +2 -2
- package/src/model/CreateFolderData.js +2 -2
- package/src/model/CreateHtmlTemplateData.js +2 -2
- package/src/model/CreateSubmissionBatchResponse.js +2 -2
- package/src/model/CreateSubmissionBatchSubmissionsResponse.js +2 -2
- package/src/model/CreateSubmissionDataRequestData.js +16 -16
- package/src/model/CreateSubmissionDataRequestTokenResponse.js +2 -2
- package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +2 -2
- package/src/model/CreateSubmissionResponse.js +2 -2
- package/src/model/CreateTemplateFromUploadData.js +2 -2
- package/src/model/CustomFile.js +2 -2
- package/src/model/Error.js +2 -2
- package/src/model/Folder.js +2 -2
- package/src/model/FoldersFolder.js +2 -2
- package/src/model/HtmlTemplateData.js +16 -16
- package/src/model/InvalidRequest.js +2 -2
- package/src/model/ListSubmissionsResponse.js +97 -0
- package/src/model/MoveFolderData.js +2 -2
- package/src/model/MoveTemplateData.js +5 -4
- package/src/model/PendingTemplate.js +2 -2
- package/src/model/RenameFolderData.js +2 -2
- package/src/model/Submission.js +26 -2
- package/src/model/SubmissionAction.js +2 -2
- package/src/model/SubmissionBatch.js +2 -2
- package/src/model/SubmissionBatchData.js +11 -11
- package/src/model/SubmissionData.js +29 -21
- package/src/model/SubmissionDataBatchRequest.js +13 -13
- package/src/model/SubmissionDataRequest.js +12 -3
- package/src/model/Template.js +2 -2
- package/src/model/Template1.js +407 -0
- package/src/model/Template1Defaults.js +97 -0
- package/src/model/TemplateData.js +16 -16
- package/src/model/TemplatestemplateIdaddFieldsFields.js +62 -62
- package/src/model/UpdateDataRequestResponse.js +2 -2
- package/src/model/UpdateSubmissionDataRequestData.js +77 -77
- package/src/model/UpdateTemplateData.js +2 -2
- package/src/model/UpdateTemplateResponse.js +2 -2
- package/src/model/UploadTemplateData.js +16 -16
- package/src/model/UploadTemplateDataDocument.js +2 -2
- package/src/model/UploadTemplateDataDocumentMetadata.js +2 -2
- package/test/api/PDFApi.spec.js.original +41 -1
- package/test/model/AddFieldsData.spec.js +1 -1
- package/test/model/AddFieldsTemplateResponse.spec.js +1 -1
- package/test/model/AuthenticationError.spec.js +1 -1
- package/test/model/AuthenticationSuccessResponse.spec.js +1 -1
- package/test/model/CombinePdfsData.spec.js +15 -9
- package/test/model/CombinedSubmission.spec.js +7 -1
- package/test/model/CombinedSubmissionAction.spec.js +1 -1
- package/test/model/CombinedSubmissionData.spec.js +15 -9
- package/test/model/CopyTemplateData.spec.js +73 -0
- package/test/model/CreateCombinedSubmissionResponse.spec.js +1 -1
- package/test/model/CreateCustomFileData.spec.js +1 -1
- package/test/model/CreateCustomFileResponse.spec.js +1 -1
- package/test/model/CreateFolderData.spec.js +1 -1
- package/test/model/CreateHtmlTemplateData.spec.js +1 -1
- package/test/model/CreateSubmissionBatchResponse.spec.js +1 -1
- package/test/model/CreateSubmissionBatchSubmissionsResponse.spec.js +1 -1
- package/test/model/CreateSubmissionDataRequestData.spec.js +9 -9
- package/test/model/CreateSubmissionDataRequestTokenResponse.spec.js +1 -1
- package/test/model/CreateSubmissionDataRequestTokenResponseToken.spec.js +1 -1
- package/test/model/CreateSubmissionResponse.spec.js +1 -1
- package/test/model/CreateTemplateFromUploadData.spec.js +1 -1
- package/test/model/CustomFile.spec.js +1 -1
- package/test/model/Error.spec.js +1 -1
- package/test/model/Folder.spec.js +1 -1
- package/test/model/FoldersFolder.spec.js +1 -1
- package/test/model/HtmlTemplateData.spec.js +9 -9
- package/test/model/InvalidRequest.spec.js +1 -1
- package/test/model/ListSubmissionsResponse.spec.js +79 -0
- package/test/model/MoveFolderData.spec.js +1 -1
- package/test/model/MoveTemplateData.spec.js +1 -1
- package/test/model/PendingTemplate.spec.js +1 -1
- package/test/model/RenameFolderData.spec.js +1 -1
- package/test/model/Submission.spec.js +19 -1
- package/test/model/SubmissionAction.spec.js +1 -1
- package/test/model/SubmissionBatch.spec.js +1 -1
- package/test/model/SubmissionBatchData.spec.js +5 -5
- package/test/model/SubmissionData.spec.js +17 -11
- package/test/model/SubmissionDataBatchRequest.spec.js +9 -9
- package/test/model/SubmissionDataRequest.spec.js +7 -1
- package/test/model/Template.spec.js +1 -1
- package/test/model/Template1.spec.js +295 -0
- package/test/model/Template1Defaults.spec.js +79 -0
- package/test/model/TemplateData.spec.js +9 -9
- package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +37 -37
- package/test/model/UpdateDataRequestResponse.spec.js +1 -1
- package/test/model/UpdateSubmissionDataRequestData.spec.js +25 -25
- package/test/model/UpdateTemplateData.spec.js +1 -1
- package/test/model/UpdateTemplateResponse.spec.js +1 -1
- package/test/model/UploadTemplateData.spec.js +11 -11
- package/test/model/UploadTemplateDataDocument.spec.js +1 -1
- package/test/model/UploadTemplateDataDocumentMetadata.spec.js +1 -1
- package/yarn.lock +263 -0
|
@@ -0,0 +1,295 @@
|
|
|
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.Template1();
|
|
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('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);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('should have the property documentProcessed (base name: "document_processed")', function() {
|
|
60
|
+
// uncomment below and update the code to test the property documentProcessed
|
|
61
|
+
//var instance = new DocSpring.Template1();
|
|
62
|
+
//expect(instance).to.be();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('should have the property expirationInterval (base name: "expiration_interval")', function() {
|
|
66
|
+
// uncomment below and update the code to test the property expirationInterval
|
|
67
|
+
//var instance = new DocSpring.Template1();
|
|
68
|
+
//expect(instance).to.be();
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('should have the property scss (base name: "scss")', function() {
|
|
72
|
+
// uncomment below and update the code to test the property scss
|
|
73
|
+
//var instance = new DocSpring.Template1();
|
|
74
|
+
//expect(instance).to.be();
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('should have the property documentState (base name: "document_state")', function() {
|
|
78
|
+
// uncomment below and update the code to test the property documentState
|
|
79
|
+
//var instance = new DocSpring.Template1();
|
|
80
|
+
//expect(instance).to.be();
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('should have the property expireAfter (base name: "expire_after")', function() {
|
|
84
|
+
// uncomment below and update the code to test the property expireAfter
|
|
85
|
+
//var instance = new DocSpring.Template1();
|
|
86
|
+
//expect(instance).to.be();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('should have the property description (base name: "description")', function() {
|
|
90
|
+
// uncomment below and update the code to test the property description
|
|
91
|
+
//var instance = new DocSpring.Template1();
|
|
92
|
+
//expect(instance).to.be();
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it('should have the property slackWebhookUrl (base name: "slack_webhook_url")', function() {
|
|
96
|
+
// uncomment below and update the code to test the property slackWebhookUrl
|
|
97
|
+
//var instance = new DocSpring.Template1();
|
|
98
|
+
//expect(instance).to.be();
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('should have the property demo (base name: "demo")', function() {
|
|
102
|
+
// uncomment below and update the code to test the property demo
|
|
103
|
+
//var instance = new DocSpring.Template1();
|
|
104
|
+
//expect(instance).to.be();
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('should have the property path (base name: "path")', function() {
|
|
108
|
+
// uncomment below and update the code to test the property path
|
|
109
|
+
//var instance = new DocSpring.Template1();
|
|
110
|
+
//expect(instance).to.be();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
it('should have the property headerHtml (base name: "header_html")', function() {
|
|
114
|
+
// uncomment below and update the code to test the property headerHtml
|
|
115
|
+
//var instance = new DocSpring.Template1();
|
|
116
|
+
//expect(instance).to.be();
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
it('should have the property publicWebForm (base name: "public_web_form")', function() {
|
|
120
|
+
// uncomment below and update the code to test the property publicWebForm
|
|
121
|
+
//var instance = new DocSpring.Template1();
|
|
122
|
+
//expect(instance).to.be();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it('should have the property fieldOrder (base name: "field_order")', function() {
|
|
126
|
+
// uncomment below and update the code to test the property fieldOrder
|
|
127
|
+
//var instance = new DocSpring.Template1();
|
|
128
|
+
//expect(instance).to.be();
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('should have the property permanentDocumentUrl (base name: "permanent_document_url")', function() {
|
|
132
|
+
// uncomment below and update the code to test the property permanentDocumentUrl
|
|
133
|
+
//var instance = new DocSpring.Template1();
|
|
134
|
+
//expect(instance).to.be();
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('should have the property html (base name: "html")', function() {
|
|
138
|
+
// uncomment below and update the code to test the property html
|
|
139
|
+
//var instance = new DocSpring.Template1();
|
|
140
|
+
//expect(instance).to.be();
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it('should have the property templateType (base name: "template_type")', function() {
|
|
144
|
+
// uncomment below and update the code to test the property templateType
|
|
145
|
+
//var instance = new DocSpring.Template1();
|
|
146
|
+
//expect(instance).to.be();
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it('should have the property id (base name: "id")', function() {
|
|
150
|
+
// uncomment below and update the code to test the property id
|
|
151
|
+
//var instance = new DocSpring.Template1();
|
|
152
|
+
//expect(instance).to.be();
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
it('should have the property pageDimensions (base name: "page_dimensions")', function() {
|
|
156
|
+
// uncomment below and update the code to test the property pageDimensions
|
|
157
|
+
//var instance = new DocSpring.Template1();
|
|
158
|
+
//expect(instance).to.be();
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it('should have the property locked (base name: "locked")', function() {
|
|
162
|
+
// uncomment below and update the code to test the property locked
|
|
163
|
+
//var instance = new DocSpring.Template1();
|
|
164
|
+
//expect(instance).to.be();
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
it('should have the property pageCount (base name: "page_count")', function() {
|
|
168
|
+
// uncomment below and update the code to test the property pageCount
|
|
169
|
+
//var instance = new DocSpring.Template1();
|
|
170
|
+
//expect(instance).to.be();
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
it('should have the property encryptPdfs (base name: "encrypt_pdfs")', function() {
|
|
174
|
+
// uncomment below and update the code to test the property encryptPdfs
|
|
175
|
+
//var instance = new DocSpring.Template1();
|
|
176
|
+
//expect(instance).to.be();
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
it('should have the property webhookUrl (base name: "webhook_url")', function() {
|
|
180
|
+
// uncomment below and update the code to test the property webhookUrl
|
|
181
|
+
//var instance = new DocSpring.Template1();
|
|
182
|
+
//expect(instance).to.be();
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
it('should have the property embedDomains (base name: "embed_domains")', function() {
|
|
186
|
+
// uncomment below and update the code to test the property embedDomains
|
|
187
|
+
//var instance = new DocSpring.Template1();
|
|
188
|
+
//expect(instance).to.be();
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
it('should have the property parentFolderId (base name: "parent_folder_id")', function() {
|
|
192
|
+
// uncomment below and update the code to test the property parentFolderId
|
|
193
|
+
//var instance = new DocSpring.Template1();
|
|
194
|
+
//expect(instance).to.be();
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
it('should have the property allowAdditionalProperties (base name: "allow_additional_properties")', function() {
|
|
198
|
+
// uncomment below and update the code to test the property allowAdditionalProperties
|
|
199
|
+
//var instance = new DocSpring.Template1();
|
|
200
|
+
//expect(instance).to.be();
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
it('should have the property encryptPdfsPassword (base name: "encrypt_pdfs_password")', function() {
|
|
204
|
+
// uncomment below and update the code to test the property encryptPdfsPassword
|
|
205
|
+
//var instance = new DocSpring.Template1();
|
|
206
|
+
//expect(instance).to.be();
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
it('should have the property publicSubmissions (base name: "public_submissions")', function() {
|
|
210
|
+
// uncomment below and update the code to test the property publicSubmissions
|
|
211
|
+
//var instance = new DocSpring.Template1();
|
|
212
|
+
//expect(instance).to.be();
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
it('should have the property sharedFieldData (base name: "shared_field_data")', function() {
|
|
216
|
+
// uncomment below and update the code to test the property sharedFieldData
|
|
217
|
+
//var instance = new DocSpring.Template1();
|
|
218
|
+
//expect(instance).to.be();
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
it('should have the property documentMd5 (base name: "document_md5")', function() {
|
|
222
|
+
// uncomment below and update the code to test the property documentMd5
|
|
223
|
+
//var instance = new DocSpring.Template1();
|
|
224
|
+
//expect(instance).to.be();
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
it('should have the property firstTemplate (base name: "first_template")', function() {
|
|
228
|
+
// uncomment below and update the code to test the property firstTemplate
|
|
229
|
+
//var instance = new DocSpring.Template1();
|
|
230
|
+
//expect(instance).to.be();
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
it('should have the property defaults (base name: "defaults")', function() {
|
|
234
|
+
// uncomment below and update the code to test the property defaults
|
|
235
|
+
//var instance = new DocSpring.Template1();
|
|
236
|
+
//expect(instance).to.be();
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
it('should have the property editableSubmissions (base name: "editable_submissions")', function() {
|
|
240
|
+
// uncomment below and update the code to test the property editableSubmissions
|
|
241
|
+
//var instance = new DocSpring.Template1();
|
|
242
|
+
//expect(instance).to.be();
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
it('should have the property expireSubmissions (base name: "expire_submissions")', function() {
|
|
246
|
+
// uncomment below and update the code to test the property expireSubmissions
|
|
247
|
+
//var instance = new DocSpring.Template1();
|
|
248
|
+
//expect(instance).to.be();
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
it('should have the property name (base name: "name")', function() {
|
|
252
|
+
// uncomment below and update the code to test the property name
|
|
253
|
+
//var instance = new DocSpring.Template1();
|
|
254
|
+
//expect(instance).to.be();
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
it('should have the property footerHtml (base name: "footer_html")', function() {
|
|
258
|
+
// uncomment below and update the code to test the property footerHtml
|
|
259
|
+
//var instance = new DocSpring.Template1();
|
|
260
|
+
//expect(instance).to.be();
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
it('should have the property documentParseError (base name: "document_parse_error")', function() {
|
|
264
|
+
// uncomment below and update the code to test the property documentParseError
|
|
265
|
+
//var instance = new DocSpring.Template1();
|
|
266
|
+
//expect(instance).to.be();
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
it('should have the property fields (base name: "fields")', function() {
|
|
270
|
+
// uncomment below and update the code to test the property fields
|
|
271
|
+
//var instance = new DocSpring.Template1();
|
|
272
|
+
//expect(instance).to.be();
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
it('should have the property documentFilename (base name: "document_filename")', function() {
|
|
276
|
+
// uncomment below and update the code to test the property documentFilename
|
|
277
|
+
//var instance = new DocSpring.Template1();
|
|
278
|
+
//expect(instance).to.be();
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
it('should have the property redirectUrl (base name: "redirect_url")', function() {
|
|
282
|
+
// uncomment below and update the code to test the property redirectUrl
|
|
283
|
+
//var instance = new DocSpring.Template1();
|
|
284
|
+
//expect(instance).to.be();
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
it('should have the property documentUrl (base name: "document_url")', function() {
|
|
288
|
+
// uncomment below and update the code to test the property documentUrl
|
|
289
|
+
//var instance = new DocSpring.Template1();
|
|
290
|
+
//expect(instance).to.be();
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
}));
|
|
@@ -0,0 +1,79 @@
|
|
|
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.Template1Defaults();
|
|
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('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);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('should have the property color (base name: "color")', function() {
|
|
60
|
+
// uncomment below and update the code to test the property color
|
|
61
|
+
//var instance = new DocSpring.Template1Defaults();
|
|
62
|
+
//expect(instance).to.be();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('should have the property fontSize (base name: "fontSize")', function() {
|
|
66
|
+
// uncomment below and update the code to test the property fontSize
|
|
67
|
+
//var instance = new DocSpring.Template1Defaults();
|
|
68
|
+
//expect(instance).to.be();
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('should have the property typeface (base name: "typeface")', function() {
|
|
72
|
+
// uncomment below and update the code to test the property typeface
|
|
73
|
+
//var instance = new DocSpring.Template1Defaults();
|
|
74
|
+
//expect(instance).to.be();
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
10
|
+
* OpenAPI Generator version: 3.3.0
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
//expect(instance).to.be();
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
it('should have the property
|
|
78
|
-
// uncomment below and update the code to test the property
|
|
77
|
+
it('should have the property allowAdditionalProperties (base name: "allow_additional_properties")', function() {
|
|
78
|
+
// uncomment below and update the code to test the property allowAdditionalProperties
|
|
79
79
|
//var instance = new DocSpring.TemplateData();
|
|
80
80
|
//expect(instance).to.be();
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
it('should have the property
|
|
84
|
-
// uncomment below and update the code to test the property
|
|
83
|
+
it('should have the property expireAfter (base name: "expire_after")', function() {
|
|
84
|
+
// uncomment below and update the code to test the property expireAfter
|
|
85
85
|
//var instance = new DocSpring.TemplateData();
|
|
86
86
|
//expect(instance).to.be();
|
|
87
87
|
});
|
|
@@ -134,14 +134,14 @@
|
|
|
134
134
|
//expect(instance).to.be();
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
it('should have the property
|
|
138
|
-
// uncomment below and update the code to test the property
|
|
137
|
+
it('should have the property footerHtml (base name: "footer_html")', function() {
|
|
138
|
+
// uncomment below and update the code to test the property footerHtml
|
|
139
139
|
//var instance = new DocSpring.TemplateData();
|
|
140
140
|
//expect(instance).to.be();
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
it('should have the property
|
|
144
|
-
// uncomment below and update the code to test the property
|
|
143
|
+
it('should have the property html (base name: "html")', function() {
|
|
144
|
+
// uncomment below and update the code to test the property html
|
|
145
145
|
//var instance = new DocSpring.TemplateData();
|
|
146
146
|
//expect(instance).to.be();
|
|
147
147
|
});
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
*
|
|
10
|
-
* OpenAPI Generator version: 3.3.0
|
|
10
|
+
* OpenAPI Generator version: 3.3.0
|
|
11
11
|
*
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
//expect(instance).to.be.a(DocSpring.TemplatestemplateIdaddFieldsFields);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
it('should have the property
|
|
60
|
-
// uncomment below and update the code to test the property
|
|
59
|
+
it('should have the property backgroundColorFieldName (base name: "backgroundColorFieldName")', function() {
|
|
60
|
+
// uncomment below and update the code to test the property backgroundColorFieldName
|
|
61
61
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
62
62
|
//expect(instance).to.be();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
it('should have the property
|
|
66
|
-
// uncomment below and update the code to test the property
|
|
65
|
+
it('should have the property uppercase (base name: "uppercase")', function() {
|
|
66
|
+
// uncomment below and update the code to test the property uppercase
|
|
67
67
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
68
68
|
//expect(instance).to.be();
|
|
69
69
|
});
|
|
@@ -176,14 +176,14 @@
|
|
|
176
176
|
//expect(instance).to.be();
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
it('should have the property
|
|
180
|
-
// uncomment below and update the code to test the property
|
|
179
|
+
it('should have the property shapeFillColorFieldName (base name: "shapeFillColorFieldName")', function() {
|
|
180
|
+
// uncomment below and update the code to test the property shapeFillColorFieldName
|
|
181
181
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
182
182
|
//expect(instance).to.be();
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
it('should have the property
|
|
186
|
-
// uncomment below and update the code to test the property
|
|
185
|
+
it('should have the property _static (base name: "static")', function() {
|
|
186
|
+
// uncomment below and update the code to test the property _static
|
|
187
187
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
188
188
|
//expect(instance).to.be();
|
|
189
189
|
});
|
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
//expect(instance).to.be();
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
-
it('should have the property
|
|
228
|
-
// uncomment below and update the code to test the property
|
|
227
|
+
it('should have the property comb (base name: "comb")', function() {
|
|
228
|
+
// uncomment below and update the code to test the property comb
|
|
229
229
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
230
230
|
//expect(instance).to.be();
|
|
231
231
|
});
|
|
232
232
|
|
|
233
|
-
it('should have the property
|
|
234
|
-
// uncomment below and update the code to test the property
|
|
233
|
+
it('should have the property typeface (base name: "typeface")', function() {
|
|
234
|
+
// uncomment below and update the code to test the property typeface
|
|
235
235
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
236
236
|
//expect(instance).to.be();
|
|
237
237
|
});
|
|
@@ -242,14 +242,14 @@
|
|
|
242
242
|
//expect(instance).to.be();
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
-
it('should have the property
|
|
246
|
-
// uncomment below and update the code to test the property
|
|
245
|
+
it('should have the property condition (base name: "condition")', function() {
|
|
246
|
+
// uncomment below and update the code to test the property condition
|
|
247
247
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
248
248
|
//expect(instance).to.be();
|
|
249
249
|
});
|
|
250
250
|
|
|
251
|
-
it('should have the property
|
|
252
|
-
// uncomment below and update the code to test the property
|
|
251
|
+
it('should have the property displayType (base name: "displayType")', function() {
|
|
252
|
+
// uncomment below and update the code to test the property displayType
|
|
253
253
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
254
254
|
//expect(instance).to.be();
|
|
255
255
|
});
|
|
@@ -332,14 +332,14 @@
|
|
|
332
332
|
//expect(instance).to.be();
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
it('should have the property
|
|
336
|
-
// uncomment below and update the code to test the property
|
|
335
|
+
it('should have the property color (base name: "color")', function() {
|
|
336
|
+
// uncomment below and update the code to test the property color
|
|
337
337
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
338
338
|
//expect(instance).to.be();
|
|
339
339
|
});
|
|
340
340
|
|
|
341
|
-
it('should have the property
|
|
342
|
-
// uncomment below and update the code to test the property
|
|
341
|
+
it('should have the property hidden (base name: "hidden")', function() {
|
|
342
|
+
// uncomment below and update the code to test the property hidden
|
|
343
343
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
344
344
|
//expect(instance).to.be();
|
|
345
345
|
});
|
|
@@ -428,14 +428,14 @@
|
|
|
428
428
|
//expect(instance).to.be();
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
it('should have the property
|
|
432
|
-
// uncomment below and update the code to test the property
|
|
431
|
+
it('should have the property falseText (base name: "falseText")', function() {
|
|
432
|
+
// uncomment below and update the code to test the property falseText
|
|
433
433
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
434
434
|
//expect(instance).to.be();
|
|
435
435
|
});
|
|
436
436
|
|
|
437
|
-
it('should have the property
|
|
438
|
-
// uncomment below and update the code to test the property
|
|
437
|
+
it('should have the property strikethrough (base name: "strikethrough")', function() {
|
|
438
|
+
// uncomment below and update the code to test the property strikethrough
|
|
439
439
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
440
440
|
//expect(instance).to.be();
|
|
441
441
|
});
|
|
@@ -500,20 +500,14 @@
|
|
|
500
500
|
//expect(instance).to.be();
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
-
it('should have the property includeTime (base name: "includeTime")', function() {
|
|
504
|
-
// uncomment below and update the code to test the property includeTime
|
|
505
|
-
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
506
|
-
//expect(instance).to.be();
|
|
507
|
-
});
|
|
508
|
-
|
|
509
503
|
it('should have the property decimalPlaces (base name: "decimalPlaces")', function() {
|
|
510
504
|
// uncomment below and update the code to test the property decimalPlaces
|
|
511
505
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
512
506
|
//expect(instance).to.be();
|
|
513
507
|
});
|
|
514
508
|
|
|
515
|
-
it('should have the property
|
|
516
|
-
// uncomment below and update the code to test the property
|
|
509
|
+
it('should have the property includeTime (base name: "includeTime")', function() {
|
|
510
|
+
// uncomment below and update the code to test the property includeTime
|
|
517
511
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
518
512
|
//expect(instance).to.be();
|
|
519
513
|
});
|
|
@@ -524,6 +518,12 @@
|
|
|
524
518
|
//expect(instance).to.be();
|
|
525
519
|
});
|
|
526
520
|
|
|
521
|
+
it('should have the property x (base name: "x")', function() {
|
|
522
|
+
// uncomment below and update the code to test the property x
|
|
523
|
+
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
524
|
+
//expect(instance).to.be();
|
|
525
|
+
});
|
|
526
|
+
|
|
527
527
|
it('should have the property maximum (base name: "maximum")', function() {
|
|
528
528
|
// uncomment below and update the code to test the property maximum
|
|
529
529
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
@@ -542,14 +542,14 @@
|
|
|
542
542
|
//expect(instance).to.be();
|
|
543
543
|
});
|
|
544
544
|
|
|
545
|
-
it('should have the property
|
|
546
|
-
// uncomment below and update the code to test the property
|
|
545
|
+
it('should have the property numberConditionType (base name: "numberConditionType")', function() {
|
|
546
|
+
// uncomment below and update the code to test the property numberConditionType
|
|
547
547
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
548
548
|
//expect(instance).to.be();
|
|
549
549
|
});
|
|
550
550
|
|
|
551
|
-
it('should have the property
|
|
552
|
-
// uncomment below and update the code to test the property
|
|
551
|
+
it('should have the property opacity (base name: "opacity")', function() {
|
|
552
|
+
// uncomment below and update the code to test the property opacity
|
|
553
553
|
//var instance = new DocSpring.TemplatestemplateIdaddFieldsFields();
|
|
554
554
|
//expect(instance).to.be();
|
|
555
555
|
});
|