docspring 1.3.0 → 1.4.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 (83) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +1 -1
  3. package/README.md +10 -2
  4. package/docs/CombinePdfsData.md +1 -0
  5. package/docs/CombinedSubmission.md +1 -0
  6. package/docs/CombinedSubmissionData.md +1 -0
  7. package/docs/CopyTemplateData.md +9 -0
  8. package/docs/FullTemplate.md +59 -0
  9. package/docs/FullTemplateDefaults.md +10 -0
  10. package/docs/ListSubmissionsResponse.md +10 -0
  11. package/docs/MoveTemplateData.md +1 -1
  12. package/docs/PDFApi.md +223 -3
  13. package/docs/SubmissionData.md +1 -0
  14. package/docs/SubmissionDataRequest.md +1 -0
  15. package/docs/TemplatestemplateIdaddFieldsFields.md +1 -0
  16. package/package.json +1 -1
  17. package/src/ApiClient.js +1 -1
  18. package/src/api/PDFApi.js +221 -6
  19. package/src/index.js +24 -4
  20. package/src/model/AddFieldsData.js +1 -1
  21. package/src/model/AddFieldsTemplateResponse.js +1 -1
  22. package/src/model/AuthenticationError.js +1 -1
  23. package/src/model/AuthenticationSuccessResponse.js +1 -1
  24. package/src/model/CombinePdfsData.js +9 -1
  25. package/src/model/CombinedSubmission.js +9 -1
  26. package/src/model/CombinedSubmissionAction.js +1 -1
  27. package/src/model/CombinedSubmissionData.js +9 -1
  28. package/src/model/CopyTemplateData.js +90 -0
  29. package/src/model/CreateCombinedSubmissionResponse.js +1 -1
  30. package/src/model/CreateCustomFileData.js +1 -1
  31. package/src/model/CreateCustomFileResponse.js +1 -1
  32. package/src/model/CreateFolderData.js +1 -1
  33. package/src/model/CreateHtmlTemplateData.js +1 -1
  34. package/src/model/CreateSubmissionBatchResponse.js +1 -1
  35. package/src/model/CreateSubmissionBatchSubmissionsResponse.js +1 -1
  36. package/src/model/CreateSubmissionDataRequestData.js +1 -1
  37. package/src/model/CreateSubmissionDataRequestTokenResponse.js +1 -1
  38. package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +1 -1
  39. package/src/model/CreateSubmissionResponse.js +1 -1
  40. package/src/model/CreateTemplateFromUploadData.js +1 -1
  41. package/src/model/CustomFile.js +1 -1
  42. package/src/model/Error.js +1 -1
  43. package/src/model/Folder.js +1 -1
  44. package/src/model/FoldersFolder.js +1 -1
  45. package/src/model/FullTemplate.js +407 -0
  46. package/src/model/FullTemplateDefaults.js +97 -0
  47. package/src/model/HtmlTemplateData.js +1 -1
  48. package/src/model/InvalidRequest.js +1 -1
  49. package/src/model/ListSubmissionsResponse.js +97 -0
  50. package/src/model/MoveFolderData.js +1 -1
  51. package/src/model/MoveTemplateData.js +4 -3
  52. package/src/model/PendingTemplate.js +1 -1
  53. package/src/model/RenameFolderData.js +1 -1
  54. package/src/model/Submission.js +1 -1
  55. package/src/model/SubmissionAction.js +1 -1
  56. package/src/model/SubmissionBatch.js +1 -1
  57. package/src/model/SubmissionBatchData.js +1 -1
  58. package/src/model/SubmissionData.js +9 -1
  59. package/src/model/SubmissionDataBatchRequest.js +1 -1
  60. package/src/model/SubmissionDataRequest.js +11 -2
  61. package/src/model/Template.js +1 -1
  62. package/src/model/TemplateData.js +1 -1
  63. package/src/model/TemplatestemplateIdaddFieldsFields.js +9 -1
  64. package/src/model/UpdateDataRequestResponse.js +1 -1
  65. package/src/model/UpdateSubmissionDataRequestData.js +1 -1
  66. package/src/model/UpdateTemplateData.js +1 -1
  67. package/src/model/UpdateTemplateResponse.js +1 -1
  68. package/src/model/UploadTemplateData.js +1 -1
  69. package/src/model/UploadTemplateDataDocument.js +1 -1
  70. package/src/model/UploadTemplateDataDocumentMetadata.js +1 -1
  71. package/test/api/ClientIntegration.spec.js +18 -2
  72. package/test/api/PDFApi.spec.js.original +40 -0
  73. package/test/model/CombinePdfsData.spec.js +6 -0
  74. package/test/model/CombinedSubmission.spec.js +6 -0
  75. package/test/model/CombinedSubmissionData.spec.js +6 -0
  76. package/test/model/CopyTemplateData.spec.js +73 -0
  77. package/test/model/FullTemplate.spec.js +295 -0
  78. package/test/model/FullTemplateDefaults.spec.js +79 -0
  79. package/test/model/ListSubmissionsResponse.spec.js +79 -0
  80. package/test/model/SubmissionData.spec.js +6 -0
  81. package/test/model/SubmissionDataRequest.spec.js +6 -0
  82. package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +6 -0
  83. package/yarn.lock +263 -0
@@ -0,0 +1,97 @@
1
+ /**
2
+ * API v1
3
+ * DocSpring is a service that helps you fill out and sign PDF templates.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ *
10
+ * OpenAPI Generator version: 3.3.0
11
+ *
12
+ * Do not edit the class manually.
13
+ *
14
+ */
15
+
16
+ (function(root, factory) {
17
+ if (typeof define === 'function' && define.amd) {
18
+ // AMD. Register as an anonymous module.
19
+ define(['../ApiClient', '../model/Submission'], factory);
20
+ } else if (typeof module === 'object' && module.exports) {
21
+ // CommonJS-like environments that support module.exports, like Node.
22
+ module.exports = factory(require('../ApiClient'), require('./Submission'));
23
+ } else {
24
+ // Browser globals (root is window)
25
+ if (!root.DocSpring) {
26
+ root.DocSpring = {};
27
+ }
28
+ root.DocSpring.ListSubmissionsResponse = factory(root.DocSpring.ApiClient, root.DocSpring.Submission);
29
+ }
30
+ }(this, function(ApiClient, Submission) {
31
+ 'use strict';
32
+
33
+
34
+
35
+
36
+ /**
37
+ * The ListSubmissionsResponse model module.
38
+ * @module model/ListSubmissionsResponse
39
+ * @version 1.4.0
40
+ */
41
+
42
+ /**
43
+ * Constructs a new <code>ListSubmissionsResponse</code>.
44
+ * @alias module:model/ListSubmissionsResponse
45
+ * @class
46
+ */
47
+ var exports = function() {
48
+ var _this = this;
49
+
50
+
51
+
52
+
53
+ };
54
+
55
+ /**
56
+ * Constructs a <code>ListSubmissionsResponse</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/ListSubmissionsResponse} obj Optional instance to populate.
60
+ * @return {module:model/ListSubmissionsResponse} The populated <code>ListSubmissionsResponse</code> instance.
61
+ */
62
+ exports.constructFromObject = function(data, obj) {
63
+ if (data) {
64
+ obj = obj || new exports();
65
+
66
+ if (data.hasOwnProperty('next_cursor')) {
67
+ obj['next_cursor'] = ApiClient.convertToType(data['next_cursor'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('submissions')) {
70
+ obj['submissions'] = ApiClient.convertToType(data['submissions'], [Submission]);
71
+ }
72
+ if (data.hasOwnProperty('limit')) {
73
+ obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * @member {String} next_cursor
81
+ */
82
+ exports.prototype['next_cursor'] = undefined;
83
+ /**
84
+ * @member {Array.<module:model/Submission>} submissions
85
+ */
86
+ exports.prototype['submissions'] = undefined;
87
+ /**
88
+ * @member {Number} limit
89
+ */
90
+ exports.prototype['limit'] = undefined;
91
+
92
+
93
+
94
+ return exports;
95
+ }));
96
+
97
+
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The MoveFolderData model module.
38
38
  * @module model/MoveFolderData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,18 +36,19 @@
36
36
  /**
37
37
  * The MoveTemplateData model module.
38
38
  * @module model/MoveTemplateData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
43
43
  * Constructs a new <code>MoveTemplateData</code>.
44
44
  * @alias module:model/MoveTemplateData
45
45
  * @class
46
+ * @param parentFolderId {String}
46
47
  */
47
- var exports = function() {
48
+ var exports = function(parentFolderId) {
48
49
  var _this = this;
49
50
 
50
-
51
+ _this['parent_folder_id'] = parentFolderId;
51
52
  };
52
53
 
53
54
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The PendingTemplate model module.
38
38
  * @module model/PendingTemplate
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The RenameFolderData model module.
38
38
  * @module model/RenameFolderData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The Submission model module.
38
38
  * @module model/Submission
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionAction model module.
38
38
  * @module model/SubmissionAction
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionBatch model module.
38
38
  * @module model/SubmissionBatch
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionBatchData model module.
38
38
  * @module model/SubmissionBatchData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionData model module.
38
38
  * @module model/SubmissionData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -55,6 +55,7 @@
55
55
 
56
56
 
57
57
 
58
+
58
59
  };
59
60
 
60
61
  /**
@@ -86,6 +87,9 @@
86
87
  if (data.hasOwnProperty('metadata')) {
87
88
  obj['metadata'] = ApiClient.convertToType(data['metadata'], Object);
88
89
  }
90
+ if (data.hasOwnProperty('password')) {
91
+ obj['password'] = ApiClient.convertToType(data['password'], 'String');
92
+ }
89
93
  if (data.hasOwnProperty('test')) {
90
94
  obj['test'] = ApiClient.convertToType(data['test'], 'Boolean');
91
95
  }
@@ -117,6 +121,10 @@
117
121
  * @member {Object} metadata
118
122
  */
119
123
  exports.prototype['metadata'] = undefined;
124
+ /**
125
+ * @member {String} password
126
+ */
127
+ exports.prototype['password'] = undefined;
120
128
  /**
121
129
  * @member {Boolean} test
122
130
  */
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionDataBatchRequest model module.
38
38
  * @module model/SubmissionDataBatchRequest
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The SubmissionDataRequest model module.
38
38
  * @module model/SubmissionDataRequest
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -47,17 +47,19 @@
47
47
  * @param name {String}
48
48
  * @param email {String}
49
49
  * @param order {Number}
50
+ * @param sortOrder {Number}
50
51
  * @param fields {Array.<String>}
51
52
  * @param metadata {Object}
52
53
  * @param state {module:model/SubmissionDataRequest.StateEnum}
53
54
  */
54
- var exports = function(id, name, email, order, fields, metadata, state) {
55
+ var exports = function(id, name, email, order, sortOrder, fields, metadata, state) {
55
56
  var _this = this;
56
57
 
57
58
  _this['id'] = id;
58
59
  _this['name'] = name;
59
60
  _this['email'] = email;
60
61
  _this['order'] = order;
62
+ _this['sort_order'] = sortOrder;
61
63
  _this['fields'] = fields;
62
64
  _this['metadata'] = metadata;
63
65
  _this['state'] = state;
@@ -98,6 +100,9 @@
98
100
  if (data.hasOwnProperty('order')) {
99
101
  obj['order'] = ApiClient.convertToType(data['order'], 'Number');
100
102
  }
103
+ if (data.hasOwnProperty('sort_order')) {
104
+ obj['sort_order'] = ApiClient.convertToType(data['sort_order'], 'Number');
105
+ }
101
106
  if (data.hasOwnProperty('fields')) {
102
107
  obj['fields'] = ApiClient.convertToType(data['fields'], ['String']);
103
108
  }
@@ -163,6 +168,10 @@
163
168
  * @member {Number} order
164
169
  */
165
170
  exports.prototype['order'] = undefined;
171
+ /**
172
+ * @member {Number} sort_order
173
+ */
174
+ exports.prototype['sort_order'] = undefined;
166
175
  /**
167
176
  * @member {Array.<String>} fields
168
177
  */
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The Template model module.
38
38
  * @module model/Template
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The TemplateData model module.
38
38
  * @module model/TemplateData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The TemplatestemplateIdaddFieldsFields model module.
38
38
  * @module model/TemplatestemplateIdaddFieldsFields
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -130,6 +130,7 @@
130
130
 
131
131
 
132
132
 
133
+
133
134
 
134
135
 
135
136
  };
@@ -334,6 +335,9 @@
334
335
  if (data.hasOwnProperty('falseText')) {
335
336
  obj['falseText'] = ApiClient.convertToType(data['falseText'], 'String');
336
337
  }
338
+ if (data.hasOwnProperty('placeholder')) {
339
+ obj['placeholder'] = ApiClient.convertToType(data['placeholder'], 'String');
340
+ }
337
341
  if (data.hasOwnProperty('strikethrough')) {
338
342
  obj['strikethrough'] = ApiClient.convertToType(data['strikethrough'], 'Boolean');
339
343
  }
@@ -656,6 +660,10 @@
656
660
  * @member {String} falseText
657
661
  */
658
662
  exports.prototype['falseText'] = undefined;
663
+ /**
664
+ * @member {String} placeholder
665
+ */
666
+ exports.prototype['placeholder'] = undefined;
659
667
  /**
660
668
  * @member {Boolean} strikethrough
661
669
  */
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UpdateDataRequestResponse model module.
38
38
  * @module model/UpdateDataRequestResponse
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UpdateSubmissionDataRequestData model module.
38
38
  * @module model/UpdateSubmissionDataRequestData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UpdateTemplateData model module.
38
38
  * @module model/UpdateTemplateData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UpdateTemplateResponse model module.
38
38
  * @module model/UpdateTemplateResponse
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UploadTemplateData model module.
38
38
  * @module model/UploadTemplateData
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UploadTemplateDataDocument model module.
38
38
  * @module model/UploadTemplateDataDocument
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -36,7 +36,7 @@
36
36
  /**
37
37
  * The UploadTemplateDataDocumentMetadata model module.
38
38
  * @module model/UploadTemplateDataDocumentMetadata
39
- * @version 1.3.0
39
+ * @version 1.4.0
40
40
  */
41
41
 
42
42
  /**
@@ -157,9 +157,7 @@
157
157
  done()
158
158
  })
159
159
  })
160
- })
161
160
 
162
- describe('generatePDF', function () {
163
161
  it('should call generatePDF and not wait for the PDF', function (done) {
164
162
  this.timeout(10000)
165
163
  var template_id = 'tpl_000000000000000001'
@@ -198,6 +196,24 @@
198
196
  })
199
197
  })
200
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
+
201
217
  describe('updateTemplate', function () {
202
218
  it('should call updateTemplate successfully', function (done) {
203
219
  this.timeout(10000)
@@ -100,6 +100,16 @@
100
100
  done();
101
101
  });
102
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
+ });
103
113
  describe('createCustomFileFromUpload', function() {
104
114
  it('should call createCustomFileFromUpload successfully', function(done) {
105
115
  //uncomment below and update the code to test createCustomFileFromUpload
@@ -220,6 +230,16 @@
220
230
  done();
221
231
  });
222
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
+ });
223
243
  describe('getPresignUrl', function() {
224
244
  it('should call getPresignUrl successfully', function(done) {
225
245
  //uncomment below and update the code to test getPresignUrl
@@ -280,6 +300,26 @@
280
300
  done();
281
301
  });
282
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
+ });
283
323
  describe('listTemplates', function() {
284
324
  it('should call listTemplates successfully', function(done) {
285
325
  //uncomment below and update the code to test listTemplates
@@ -74,6 +74,12 @@
74
74
  //expect(instance).to.be();
75
75
  });
76
76
 
77
+ it('should have the property password (base name: "password")', function() {
78
+ // uncomment below and update the code to test the property password
79
+ //var instance = new DocSpring.CombinePdfsData();
80
+ //expect(instance).to.be();
81
+ });
82
+
77
83
  it('should have the property sourcePdfs (base name: "source_pdfs")', function() {
78
84
  // uncomment below and update the code to test the property sourcePdfs
79
85
  //var instance = new DocSpring.CombinePdfsData();
@@ -62,6 +62,12 @@
62
62
  //expect(instance).to.be();
63
63
  });
64
64
 
65
+ it('should have the property password (base name: "password")', function() {
66
+ // uncomment below and update the code to test the property password
67
+ //var instance = new DocSpring.CombinedSubmission();
68
+ //expect(instance).to.be();
69
+ });
70
+
65
71
  it('should have the property expired (base name: "expired")', function() {
66
72
  // uncomment below and update the code to test the property expired
67
73
  //var instance = new DocSpring.CombinedSubmission();
@@ -68,6 +68,12 @@
68
68
  //expect(instance).to.be();
69
69
  });
70
70
 
71
+ it('should have the property password (base name: "password")', function() {
72
+ // uncomment below and update the code to test the property password
73
+ //var instance = new DocSpring.CombinedSubmissionData();
74
+ //expect(instance).to.be();
75
+ });
76
+
71
77
  it('should have the property submissionIds (base name: "submission_ids")', function() {
72
78
  // uncomment below and update the code to test the property submissionIds
73
79
  //var instance = new DocSpring.CombinedSubmissionData();
@@ -0,0 +1,73 @@
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.CopyTemplateData();
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('CopyTemplateData', function() {
53
+ it('should create an instance of CopyTemplateData', function() {
54
+ // uncomment below and update the code to test CopyTemplateData
55
+ //var instance = new DocSpring.CopyTemplateData();
56
+ //expect(instance).to.be.a(DocSpring.CopyTemplateData);
57
+ });
58
+
59
+ it('should have the property name (base name: "name")', function() {
60
+ // uncomment below and update the code to test the property name
61
+ //var instance = new DocSpring.CopyTemplateData();
62
+ //expect(instance).to.be();
63
+ });
64
+
65
+ it('should have the property parentFolderId (base name: "parent_folder_id")', function() {
66
+ // uncomment below and update the code to test the property parentFolderId
67
+ //var instance = new DocSpring.CopyTemplateData();
68
+ //expect(instance).to.be();
69
+ });
70
+
71
+ });
72
+
73
+ }));