@emilgroup/document-sdk-node 1.22.0 → 1.22.1-beta.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 (165) hide show
  1. package/.openapi-generator/FILES +0 -38
  2. package/README.md +2 -2
  3. package/api/default-api.ts +8 -4
  4. package/api/document-templates-api.ts +79 -75
  5. package/api/documents-api.ts +42 -38
  6. package/api/docx-templates-api.ts +16 -28
  7. package/api/layouts-api.ts +18 -28
  8. package/api/product-documents-api.ts +47 -238
  9. package/api/search-keywords-api.ts +2 -4
  10. package/api/searchable-document-owners-api.ts +2 -4
  11. package/api/searchable-documents-api.ts +20 -20
  12. package/dist/api/default-api.d.ts +8 -4
  13. package/dist/api/default-api.js +8 -4
  14. package/dist/api/document-templates-api.d.ts +62 -67
  15. package/dist/api/document-templates-api.js +55 -42
  16. package/dist/api/documents-api.d.ts +39 -36
  17. package/dist/api/documents-api.js +21 -13
  18. package/dist/api/docx-templates-api.d.ts +22 -28
  19. package/dist/api/docx-templates-api.js +4 -4
  20. package/dist/api/layouts-api.d.ts +23 -28
  21. package/dist/api/layouts-api.js +8 -8
  22. package/dist/api/product-documents-api.d.ts +37 -150
  23. package/dist/api/product-documents-api.js +29 -155
  24. package/dist/api/search-keywords-api.d.ts +3 -4
  25. package/dist/api/searchable-document-owners-api.d.ts +3 -4
  26. package/dist/api/searchable-documents-api.d.ts +16 -17
  27. package/dist/api/searchable-documents-api.js +15 -13
  28. package/dist/models/create-doc-template-request-dto.d.ts +2 -2
  29. package/dist/models/create-document-request-dto.d.ts +10 -10
  30. package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
  31. package/dist/models/index.d.ts +0 -38
  32. package/dist/models/index.js +0 -38
  33. package/dist/models/list-searchable-document-owners-request-dto.d.ts +1 -8
  34. package/dist/models/list-searchable-document-owners-request-dto.js +0 -7
  35. package/dist/models/list-searchable-documents-request-dto.d.ts +1 -8
  36. package/dist/models/list-searchable-documents-request-dto.js +0 -7
  37. package/dist/models/update-doc-template-request-dto.d.ts +2 -2
  38. package/dist/models/update-document-request-dto.d.ts +5 -5
  39. package/dist/models/upload-docx-template-request-dto.d.ts +1 -1
  40. package/dist/models/upload-product-document-request-dto.d.ts +2 -2
  41. package/models/create-doc-template-request-dto.ts +2 -2
  42. package/models/create-document-request-dto.ts +10 -10
  43. package/models/create-presigned-post-request-dto.ts +4 -4
  44. package/models/index.ts +0 -38
  45. package/models/list-searchable-document-owners-request-dto.ts +1 -11
  46. package/models/list-searchable-documents-request-dto.ts +1 -11
  47. package/models/update-doc-template-request-dto.ts +2 -2
  48. package/models/update-document-request-dto.ts +5 -5
  49. package/models/upload-docx-template-request-dto.ts +1 -1
  50. package/models/upload-product-document-request-dto.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/models/create-doc-template-response-class.d.ts +0 -25
  53. package/dist/models/create-doc-template-response-class.js +0 -15
  54. package/dist/models/create-document-sync-response-class.d.ts +0 -25
  55. package/dist/models/create-document-sync-response-class.js +0 -15
  56. package/dist/models/create-layout-response-class.d.ts +0 -25
  57. package/dist/models/create-layout-response-class.js +0 -15
  58. package/dist/models/create-presigned-post-response-class.d.ts +0 -30
  59. package/dist/models/create-presigned-post-response-class.js +0 -15
  60. package/dist/models/delete-response-class.d.ts +0 -24
  61. package/dist/models/delete-response-class.js +0 -15
  62. package/dist/models/doc-template-class.d.ts +0 -92
  63. package/dist/models/doc-template-class.js +0 -15
  64. package/dist/models/document-class.d.ts +0 -165
  65. package/dist/models/document-class.js +0 -53
  66. package/dist/models/docx-template-class.d.ts +0 -90
  67. package/dist/models/docx-template-class.js +0 -15
  68. package/dist/models/download-document-request-dto.d.ts +0 -30
  69. package/dist/models/download-document-request-dto.js +0 -15
  70. package/dist/models/get-doc-template-request-dto.d.ts +0 -30
  71. package/dist/models/get-doc-template-request-dto.js +0 -15
  72. package/dist/models/get-doc-template-response-class.d.ts +0 -25
  73. package/dist/models/get-doc-template-response-class.js +0 -15
  74. package/dist/models/get-document-download-url-response-class.d.ts +0 -24
  75. package/dist/models/get-document-download-url-response-class.js +0 -15
  76. package/dist/models/get-docx-template-download-url-response-class.d.ts +0 -24
  77. package/dist/models/get-docx-template-download-url-response-class.js +0 -15
  78. package/dist/models/get-docx-template-response-class.d.ts +0 -25
  79. package/dist/models/get-docx-template-response-class.js +0 -15
  80. package/dist/models/get-layout-response-class.d.ts +0 -25
  81. package/dist/models/get-layout-response-class.js +0 -15
  82. package/dist/models/get-product-document-download-url-response-class.d.ts +0 -24
  83. package/dist/models/get-product-document-download-url-response-class.js +0 -15
  84. package/dist/models/get-product-document-response-class.d.ts +0 -25
  85. package/dist/models/get-product-document-response-class.js +0 -15
  86. package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
  87. package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
  88. package/dist/models/grpc-create-doc-template-request-dto.d.ts +0 -55
  89. package/dist/models/grpc-create-doc-template-request-dto.js +0 -15
  90. package/dist/models/grpc-update-doc-template-request-dto.d.ts +0 -61
  91. package/dist/models/grpc-update-doc-template-request-dto.js +0 -15
  92. package/dist/models/html-template-class.d.ts +0 -66
  93. package/dist/models/html-template-class.js +0 -21
  94. package/dist/models/layout-class.d.ts +0 -79
  95. package/dist/models/layout-class.js +0 -15
  96. package/dist/models/list-doc-template-request-dto.d.ts +0 -54
  97. package/dist/models/list-doc-template-request-dto.js +0 -15
  98. package/dist/models/list-doc-templates-response-class.d.ts +0 -31
  99. package/dist/models/list-doc-templates-response-class.js +0 -15
  100. package/dist/models/list-documents-response-class.d.ts +0 -31
  101. package/dist/models/list-documents-response-class.js +0 -15
  102. package/dist/models/list-docx-templates-response-class.d.ts +0 -31
  103. package/dist/models/list-docx-templates-response-class.js +0 -15
  104. package/dist/models/list-layouts-response-class.d.ts +0 -31
  105. package/dist/models/list-layouts-response-class.js +0 -15
  106. package/dist/models/list-product-documents-response-class.d.ts +0 -31
  107. package/dist/models/list-product-documents-response-class.js +0 -15
  108. package/dist/models/list-search-keywords-response-class.d.ts +0 -24
  109. package/dist/models/list-search-keywords-response-class.js +0 -15
  110. package/dist/models/list-searchable-document-owners-response-class.d.ts +0 -25
  111. package/dist/models/list-searchable-document-owners-response-class.js +0 -15
  112. package/dist/models/list-searchable-documents-response-class.d.ts +0 -31
  113. package/dist/models/list-searchable-documents-response-class.js +0 -15
  114. package/dist/models/product-document-class.d.ts +0 -117
  115. package/dist/models/product-document-class.js +0 -24
  116. package/dist/models/searchable-document-class.d.ts +0 -66
  117. package/dist/models/searchable-document-class.js +0 -15
  118. package/dist/models/searchable-document-owner-class.d.ts +0 -30
  119. package/dist/models/searchable-document-owner-class.js +0 -15
  120. package/dist/models/update-doc-template-response-class.d.ts +0 -25
  121. package/dist/models/update-doc-template-response-class.js +0 -15
  122. package/dist/models/update-document-response-class.d.ts +0 -25
  123. package/dist/models/update-document-response-class.js +0 -15
  124. package/dist/models/update-docx-template-response-class.d.ts +0 -25
  125. package/dist/models/update-docx-template-response-class.js +0 -15
  126. package/dist/models/update-layout-response-class.d.ts +0 -25
  127. package/dist/models/update-layout-response-class.js +0 -15
  128. package/models/create-doc-template-response-class.ts +0 -31
  129. package/models/create-document-sync-response-class.ts +0 -31
  130. package/models/create-layout-response-class.ts +0 -31
  131. package/models/create-presigned-post-response-class.ts +0 -36
  132. package/models/delete-response-class.ts +0 -30
  133. package/models/doc-template-class.ts +0 -98
  134. package/models/document-class.ts +0 -175
  135. package/models/docx-template-class.ts +0 -96
  136. package/models/download-document-request-dto.ts +0 -36
  137. package/models/get-doc-template-request-dto.ts +0 -36
  138. package/models/get-doc-template-response-class.ts +0 -31
  139. package/models/get-document-download-url-response-class.ts +0 -30
  140. package/models/get-docx-template-download-url-response-class.ts +0 -30
  141. package/models/get-docx-template-response-class.ts +0 -31
  142. package/models/get-layout-response-class.ts +0 -31
  143. package/models/get-product-document-download-url-response-class.ts +0 -30
  144. package/models/get-product-document-response-class.ts +0 -31
  145. package/models/get-signed-s3-key-url-response-class.ts +0 -30
  146. package/models/grpc-create-doc-template-request-dto.ts +0 -61
  147. package/models/grpc-update-doc-template-request-dto.ts +0 -67
  148. package/models/html-template-class.ts +0 -75
  149. package/models/layout-class.ts +0 -85
  150. package/models/list-doc-template-request-dto.ts +0 -60
  151. package/models/list-doc-templates-response-class.ts +0 -37
  152. package/models/list-documents-response-class.ts +0 -37
  153. package/models/list-docx-templates-response-class.ts +0 -37
  154. package/models/list-layouts-response-class.ts +0 -37
  155. package/models/list-product-documents-response-class.ts +0 -37
  156. package/models/list-search-keywords-response-class.ts +0 -30
  157. package/models/list-searchable-document-owners-response-class.ts +0 -31
  158. package/models/list-searchable-documents-response-class.ts +0 -37
  159. package/models/product-document-class.ts +0 -126
  160. package/models/searchable-document-class.ts +0 -72
  161. package/models/searchable-document-owner-class.ts +0 -36
  162. package/models/update-doc-template-response-class.ts +0 -31
  163. package/models/update-document-response-class.ts +0 -31
  164. package/models/update-docx-template-response-class.ts +0 -31
  165. package/models/update-layout-response-class.ts +0 -31
@@ -194,15 +194,15 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
197
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
198
198
  * @summary Retrieve the document template
199
199
  * @param {number} id
200
+ * @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
200
201
  * @param {string} [authorization] Bearer Token
201
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
204
204
  */
205
- getDocTemplate: function (id, authorization, expand, options) {
205
+ getDocTemplate: function (id, expand, authorization, options) {
206
206
  if (options === void 0) { options = {}; }
207
207
  return __awaiter(_this, void 0, void 0, function () {
208
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -211,6 +211,8 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
211
211
  case 0:
212
212
  // verify required parameter 'id' is not null or undefined
213
213
  (0, common_1.assertParamExists)('getDocTemplate', 'id', id);
214
+ // verify required parameter 'expand' is not null or undefined
215
+ (0, common_1.assertParamExists)('getDocTemplate', 'expand', expand);
214
216
  localVarPath = "/documentservice/v1/doc-templates/{id}"
215
217
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
216
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -246,25 +248,37 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
246
248
  });
247
249
  },
248
250
  /**
249
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
251
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
250
252
  * @summary List document templates
253
+ * @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
254
+ * @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
255
+ * @param {string} filter Filter response by productSlug, slug and name.
256
+ * @param {string} search Search document templates by name | slug
257
+ * @param {string} order Order response by createdAt.
258
+ * @param {string} expand Expand response by bodyTemplate.
251
259
  * @param {string} [authorization] Bearer Token
252
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
253
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
254
- * @param {string} [filter] Filter response by productSlug, slug and name.
255
- * @param {string} [search] Search document templates by name | slug
256
- * @param {string} [order] Order response by createdAt.
257
- * @param {string} [expand] Expand response by bodyTemplate.
258
260
  * @param {*} [options] Override http request option.
259
261
  * @throws {RequiredError}
260
262
  */
261
- listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
263
+ listDocTemplates: function (pageSize, pageToken, filter, search, order, expand, authorization, options) {
262
264
  if (options === void 0) { options = {}; }
263
265
  return __awaiter(_this, void 0, void 0, function () {
264
266
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
267
  return __generator(this, function (_a) {
266
268
  switch (_a.label) {
267
269
  case 0:
270
+ // verify required parameter 'pageSize' is not null or undefined
271
+ (0, common_1.assertParamExists)('listDocTemplates', 'pageSize', pageSize);
272
+ // verify required parameter 'pageToken' is not null or undefined
273
+ (0, common_1.assertParamExists)('listDocTemplates', 'pageToken', pageToken);
274
+ // verify required parameter 'filter' is not null or undefined
275
+ (0, common_1.assertParamExists)('listDocTemplates', 'filter', filter);
276
+ // verify required parameter 'search' is not null or undefined
277
+ (0, common_1.assertParamExists)('listDocTemplates', 'search', search);
278
+ // verify required parameter 'order' is not null or undefined
279
+ (0, common_1.assertParamExists)('listDocTemplates', 'order', order);
280
+ // verify required parameter 'expand' is not null or undefined
281
+ (0, common_1.assertParamExists)('listDocTemplates', 'expand', expand);
268
282
  localVarPath = "/documentservice/v1/doc-templates";
269
283
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
270
284
  if (configuration) {
@@ -419,20 +433,20 @@ var DocumentTemplatesApiFp = function (configuration) {
419
433
  });
420
434
  },
421
435
  /**
422
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
436
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
423
437
  * @summary Retrieve the document template
424
438
  * @param {number} id
439
+ * @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
425
440
  * @param {string} [authorization] Bearer Token
426
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
427
441
  * @param {*} [options] Override http request option.
428
442
  * @throws {RequiredError}
429
443
  */
430
- getDocTemplate: function (id, authorization, expand, options) {
444
+ getDocTemplate: function (id, expand, authorization, options) {
431
445
  return __awaiter(this, void 0, void 0, function () {
432
446
  var localVarAxiosArgs;
433
447
  return __generator(this, function (_a) {
434
448
  switch (_a.label) {
435
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocTemplate(id, authorization, expand, options)];
449
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocTemplate(id, expand, authorization, options)];
436
450
  case 1:
437
451
  localVarAxiosArgs = _a.sent();
438
452
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -441,24 +455,24 @@ var DocumentTemplatesApiFp = function (configuration) {
441
455
  });
442
456
  },
443
457
  /**
444
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
458
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
459
  * @summary List document templates
460
+ * @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
461
+ * @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
462
+ * @param {string} filter Filter response by productSlug, slug and name.
463
+ * @param {string} search Search document templates by name | slug
464
+ * @param {string} order Order response by createdAt.
465
+ * @param {string} expand Expand response by bodyTemplate.
446
466
  * @param {string} [authorization] Bearer Token
447
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
448
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
449
- * @param {string} [filter] Filter response by productSlug, slug and name.
450
- * @param {string} [search] Search document templates by name | slug
451
- * @param {string} [order] Order response by createdAt.
452
- * @param {string} [expand] Expand response by bodyTemplate.
453
467
  * @param {*} [options] Override http request option.
454
468
  * @throws {RequiredError}
455
469
  */
456
- listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
470
+ listDocTemplates: function (pageSize, pageToken, filter, search, order, expand, authorization, options) {
457
471
  return __awaiter(this, void 0, void 0, function () {
458
472
  var localVarAxiosArgs;
459
473
  return __generator(this, function (_a) {
460
474
  switch (_a.label) {
461
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
475
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(pageSize, pageToken, filter, search, order, expand, authorization, options)];
462
476
  case 1:
463
477
  localVarAxiosArgs = _a.sent();
464
478
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -521,32 +535,32 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
521
535
  return localVarFp.deleteDocTemplate(id, authorization, options).then(function (request) { return request(axios, basePath); });
522
536
  },
523
537
  /**
524
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
538
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
525
539
  * @summary Retrieve the document template
526
540
  * @param {number} id
541
+ * @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
527
542
  * @param {string} [authorization] Bearer Token
528
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
529
543
  * @param {*} [options] Override http request option.
530
544
  * @throws {RequiredError}
531
545
  */
532
- getDocTemplate: function (id, authorization, expand, options) {
533
- return localVarFp.getDocTemplate(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
546
+ getDocTemplate: function (id, expand, authorization, options) {
547
+ return localVarFp.getDocTemplate(id, expand, authorization, options).then(function (request) { return request(axios, basePath); });
534
548
  },
535
549
  /**
536
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
550
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
537
551
  * @summary List document templates
552
+ * @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
553
+ * @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
554
+ * @param {string} filter Filter response by productSlug, slug and name.
555
+ * @param {string} search Search document templates by name | slug
556
+ * @param {string} order Order response by createdAt.
557
+ * @param {string} expand Expand response by bodyTemplate.
538
558
  * @param {string} [authorization] Bearer Token
539
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
540
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
541
- * @param {string} [filter] Filter response by productSlug, slug and name.
542
- * @param {string} [search] Search document templates by name | slug
543
- * @param {string} [order] Order response by createdAt.
544
- * @param {string} [expand] Expand response by bodyTemplate.
545
559
  * @param {*} [options] Override http request option.
546
560
  * @throws {RequiredError}
547
561
  */
548
- listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
549
- return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
562
+ listDocTemplates: function (pageSize, pageToken, filter, search, order, expand, authorization, options) {
563
+ return localVarFp.listDocTemplates(pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
550
564
  },
551
565
  /**
552
566
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -599,7 +613,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
599
613
  return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
614
  };
601
615
  /**
602
- * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
616
+ * Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
603
617
  * @summary Retrieve the document template
604
618
  * @param {DocumentTemplatesApiGetDocTemplateRequest} requestParameters Request parameters.
605
619
  * @param {*} [options] Override http request option.
@@ -608,10 +622,10 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
608
622
  */
609
623
  DocumentTemplatesApi.prototype.getDocTemplate = function (requestParameters, options) {
610
624
  var _this = this;
611
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
625
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
612
626
  };
613
627
  /**
614
- * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
628
+ * Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
615
629
  * @summary List document templates
616
630
  * @param {DocumentTemplatesApiListDocTemplatesRequest} requestParameters Request parameters.
617
631
  * @param {*} [options] Override http request option.
@@ -620,8 +634,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
620
634
  */
621
635
  DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
622
636
  var _this = this;
623
- if (requestParameters === void 0) { requestParameters = {}; }
624
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
637
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
625
638
  };
626
639
  /**
627
640
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -13,14 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateDocumentRequestDto } from '../models';
16
- import { CreateDocumentSyncResponseClass } from '../models';
17
16
  import { CreatePresignedPostRequestDto } from '../models';
18
- import { CreatePresignedPostResponseClass } from '../models';
19
- import { GetDocumentDownloadUrlResponseClass } from '../models';
20
- import { GetSignedS3KeyUrlResponseClass } from '../models';
21
- import { ListDocumentsResponseClass } from '../models';
22
17
  import { UpdateDocumentRequestDto } from '../models';
23
- import { UpdateDocumentResponseClass } from '../models';
24
18
  /**
25
19
  * DocumentsApi - axios parameter creator
26
20
  * @export
@@ -56,12 +50,13 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
56
50
  /**
57
51
  * This will return a presigned URL to download the document.
58
52
  * @summary Fetches a document download URL
59
- * @param {string} code
53
+ * @param {string} code Document code
54
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
60
55
  * @param {string} [authorization] Bearer Token
61
56
  * @param {*} [options] Override http request option.
62
57
  * @throws {RequiredError}
63
58
  */
64
- getDocumentDownloadUrl: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ getDocumentDownloadUrl: (code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
60
  /**
66
61
  * This will return a presigned URL for a random S3 key
67
62
  * @summary Fetches a presigned URL for a S3 key
@@ -72,7 +67,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
72
67
  */
73
68
  getSignedS3keyUrl: (s3Key: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
69
  /**
75
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
70
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
76
71
  * @summary List documents
77
72
  * @param {string} [authorization] Bearer Token
78
73
  * @param {number} [pageSize] Page size
@@ -110,7 +105,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
110
105
  * @param {*} [options] Override http request option.
111
106
  * @throws {RequiredError}
112
107
  */
113
- createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDocumentSyncResponseClass>>;
108
+ createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
114
109
  /**
115
110
  * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
116
111
  * @summary Upload documents using pre-signed URL
@@ -119,7 +114,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
119
114
  * @param {*} [options] Override http request option.
120
115
  * @throws {RequiredError}
121
116
  */
122
- createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
117
+ createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
123
118
  /**
124
119
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
125
120
  * @summary Delete the document
@@ -128,16 +123,17 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
128
123
  * @param {*} [options] Override http request option.
129
124
  * @throws {RequiredError}
130
125
  */
131
- deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
126
+ deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
132
127
  /**
133
128
  * This will return a presigned URL to download the document.
134
129
  * @summary Fetches a document download URL
135
- * @param {string} code
130
+ * @param {string} code Document code
131
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
136
132
  * @param {string} [authorization] Bearer Token
137
133
  * @param {*} [options] Override http request option.
138
134
  * @throws {RequiredError}
139
135
  */
140
- getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocumentDownloadUrlResponseClass>>;
136
+ getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
141
137
  /**
142
138
  * This will return a presigned URL for a random S3 key
143
139
  * @summary Fetches a presigned URL for a S3 key
@@ -146,9 +142,9 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
146
142
  * @param {*} [options] Override http request option.
147
143
  * @throws {RequiredError}
148
144
  */
149
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSignedS3KeyUrlResponseClass>>;
145
+ getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
150
146
  /**
151
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
147
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
152
148
  * @summary List documents
153
149
  * @param {string} [authorization] Bearer Token
154
150
  * @param {number} [pageSize] Page size
@@ -161,7 +157,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
161
157
  * @param {*} [options] Override http request option.
162
158
  * @throws {RequiredError}
163
159
  */
164
- listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>>;
160
+ listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
165
161
  /**
166
162
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
167
163
  * @summary Update the document
@@ -171,7 +167,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
171
167
  * @param {*} [options] Override http request option.
172
168
  * @throws {RequiredError}
173
169
  */
174
- updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDocumentResponseClass>>;
170
+ updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
175
171
  };
176
172
  /**
177
173
  * DocumentsApi - factory interface
@@ -186,7 +182,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
186
182
  * @param {*} [options] Override http request option.
187
183
  * @throws {RequiredError}
188
184
  */
189
- createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDocumentSyncResponseClass>;
185
+ createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
190
186
  /**
191
187
  * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
192
188
  * @summary Upload documents using pre-signed URL
@@ -195,7 +191,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
195
191
  * @param {*} [options] Override http request option.
196
192
  * @throws {RequiredError}
197
193
  */
198
- createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
194
+ createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
199
195
  /**
200
196
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
201
197
  * @summary Delete the document
@@ -204,16 +200,17 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
204
200
  * @param {*} [options] Override http request option.
205
201
  * @throws {RequiredError}
206
202
  */
207
- deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<object>;
203
+ deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<void>;
208
204
  /**
209
205
  * This will return a presigned URL to download the document.
210
206
  * @summary Fetches a document download URL
211
- * @param {string} code
207
+ * @param {string} code Document code
208
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
212
209
  * @param {string} [authorization] Bearer Token
213
210
  * @param {*} [options] Override http request option.
214
211
  * @throws {RequiredError}
215
212
  */
216
- getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<GetDocumentDownloadUrlResponseClass>;
213
+ getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void>;
217
214
  /**
218
215
  * This will return a presigned URL for a random S3 key
219
216
  * @summary Fetches a presigned URL for a S3 key
@@ -222,9 +219,9 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
222
219
  * @param {*} [options] Override http request option.
223
220
  * @throws {RequiredError}
224
221
  */
225
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<GetSignedS3KeyUrlResponseClass>;
222
+ getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<void>;
226
223
  /**
227
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
224
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
228
225
  * @summary List documents
229
226
  * @param {string} [authorization] Bearer Token
230
227
  * @param {number} [pageSize] Page size
@@ -237,7 +234,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
237
234
  * @param {*} [options] Override http request option.
238
235
  * @throws {RequiredError}
239
236
  */
240
- listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
237
+ listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
241
238
  /**
242
239
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
243
240
  * @summary Update the document
@@ -247,7 +244,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
247
244
  * @param {*} [options] Override http request option.
248
245
  * @throws {RequiredError}
249
246
  */
250
- updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDocumentResponseClass>;
247
+ updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
251
248
  };
252
249
  /**
253
250
  * Request parameters for createDocument operation in DocumentsApi.
@@ -313,11 +310,17 @@ export interface DocumentsApiDeleteDocumentRequest {
313
310
  */
314
311
  export interface DocumentsApiGetDocumentDownloadUrlRequest {
315
312
  /**
316
- *
313
+ * Document code
317
314
  * @type {string}
318
315
  * @memberof DocumentsApiGetDocumentDownloadUrl
319
316
  */
320
317
  readonly code: string;
318
+ /**
319
+ * Content disposition override. Default will be depending on the document type.
320
+ * @type {'attachment' | 'inline'}
321
+ * @memberof DocumentsApiGetDocumentDownloadUrl
322
+ */
323
+ readonly contentDisposition: 'attachment' | 'inline';
321
324
  /**
322
325
  * Bearer Token
323
326
  * @type {string}
@@ -439,7 +442,7 @@ export declare class DocumentsApi extends BaseAPI {
439
442
  * @throws {RequiredError}
440
443
  * @memberof DocumentsApi
441
444
  */
442
- createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any>>;
445
+ createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
443
446
  /**
444
447
  * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
445
448
  * @summary Upload documents using pre-signed URL
@@ -448,7 +451,7 @@ export declare class DocumentsApi extends BaseAPI {
448
451
  * @throws {RequiredError}
449
452
  * @memberof DocumentsApi
450
453
  */
451
- createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
454
+ createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
452
455
  /**
453
456
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
454
457
  * @summary Delete the document
@@ -457,7 +460,7 @@ export declare class DocumentsApi extends BaseAPI {
457
460
  * @throws {RequiredError}
458
461
  * @memberof DocumentsApi
459
462
  */
460
- deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
463
+ deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
461
464
  /**
462
465
  * This will return a presigned URL to download the document.
463
466
  * @summary Fetches a document download URL
@@ -466,7 +469,7 @@ export declare class DocumentsApi extends BaseAPI {
466
469
  * @throws {RequiredError}
467
470
  * @memberof DocumentsApi
468
471
  */
469
- getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any>>;
472
+ getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
470
473
  /**
471
474
  * This will return a presigned URL for a random S3 key
472
475
  * @summary Fetches a presigned URL for a S3 key
@@ -475,16 +478,16 @@ export declare class DocumentsApi extends BaseAPI {
475
478
  * @throws {RequiredError}
476
479
  * @memberof DocumentsApi
477
480
  */
478
- getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any>>;
481
+ getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
479
482
  /**
480
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
483
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
481
484
  * @summary List documents
482
485
  * @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
483
486
  * @param {*} [options] Override http request option.
484
487
  * @throws {RequiredError}
485
488
  * @memberof DocumentsApi
486
489
  */
487
- listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
490
+ listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
488
491
  /**
489
492
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
490
493
  * @summary Update the document
@@ -493,5 +496,5 @@ export declare class DocumentsApi extends BaseAPI {
493
496
  * @throws {RequiredError}
494
497
  * @memberof DocumentsApi
495
498
  */
496
- updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocumentResponseClass, any>>;
499
+ updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
497
500
  }
@@ -245,12 +245,13 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
245
245
  /**
246
246
  * This will return a presigned URL to download the document.
247
247
  * @summary Fetches a document download URL
248
- * @param {string} code
248
+ * @param {string} code Document code
249
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
249
250
  * @param {string} [authorization] Bearer Token
250
251
  * @param {*} [options] Override http request option.
251
252
  * @throws {RequiredError}
252
253
  */
253
- getDocumentDownloadUrl: function (code, authorization, options) {
254
+ getDocumentDownloadUrl: function (code, contentDisposition, authorization, options) {
254
255
  if (options === void 0) { options = {}; }
255
256
  return __awaiter(_this, void 0, void 0, function () {
256
257
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -259,6 +260,8 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
259
260
  case 0:
260
261
  // verify required parameter 'code' is not null or undefined
261
262
  (0, common_1.assertParamExists)('getDocumentDownloadUrl', 'code', code);
263
+ // verify required parameter 'contentDisposition' is not null or undefined
264
+ (0, common_1.assertParamExists)('getDocumentDownloadUrl', 'contentDisposition', contentDisposition);
262
265
  localVarPath = "/documentservice/v1/documents/{code}/download-url"
263
266
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
264
267
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -276,6 +279,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
276
279
  // authentication bearer required
277
280
  // http bearer authentication required
278
281
  _a.sent();
282
+ if (contentDisposition !== undefined) {
283
+ localVarQueryParameter['contentDisposition'] = contentDisposition;
284
+ }
279
285
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
286
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
287
  }
@@ -341,7 +347,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
341
347
  });
342
348
  },
343
349
  /**
344
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
350
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
345
351
  * @summary List documents
346
352
  * @param {string} [authorization] Bearer Token
347
353
  * @param {number} [pageSize] Page size
@@ -541,17 +547,18 @@ var DocumentsApiFp = function (configuration) {
541
547
  /**
542
548
  * This will return a presigned URL to download the document.
543
549
  * @summary Fetches a document download URL
544
- * @param {string} code
550
+ * @param {string} code Document code
551
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
545
552
  * @param {string} [authorization] Bearer Token
546
553
  * @param {*} [options] Override http request option.
547
554
  * @throws {RequiredError}
548
555
  */
549
- getDocumentDownloadUrl: function (code, authorization, options) {
556
+ getDocumentDownloadUrl: function (code, contentDisposition, authorization, options) {
550
557
  return __awaiter(this, void 0, void 0, function () {
551
558
  var localVarAxiosArgs;
552
559
  return __generator(this, function (_a) {
553
560
  switch (_a.label) {
554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, options)];
561
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocumentDownloadUrl(code, contentDisposition, authorization, options)];
555
562
  case 1:
556
563
  localVarAxiosArgs = _a.sent();
557
564
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -581,7 +588,7 @@ var DocumentsApiFp = function (configuration) {
581
588
  });
582
589
  },
583
590
  /**
584
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
591
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
585
592
  * @summary List documents
586
593
  * @param {string} [authorization] Bearer Token
587
594
  * @param {number} [pageSize] Page size
@@ -675,13 +682,14 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
675
682
  /**
676
683
  * This will return a presigned URL to download the document.
677
684
  * @summary Fetches a document download URL
678
- * @param {string} code
685
+ * @param {string} code Document code
686
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
679
687
  * @param {string} [authorization] Bearer Token
680
688
  * @param {*} [options] Override http request option.
681
689
  * @throws {RequiredError}
682
690
  */
683
- getDocumentDownloadUrl: function (code, authorization, options) {
684
- return localVarFp.getDocumentDownloadUrl(code, authorization, options).then(function (request) { return request(axios, basePath); });
691
+ getDocumentDownloadUrl: function (code, contentDisposition, authorization, options) {
692
+ return localVarFp.getDocumentDownloadUrl(code, contentDisposition, authorization, options).then(function (request) { return request(axios, basePath); });
685
693
  },
686
694
  /**
687
695
  * This will return a presigned URL for a random S3 key
@@ -695,7 +703,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
695
703
  return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then(function (request) { return request(axios, basePath); });
696
704
  },
697
705
  /**
698
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
706
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
699
707
  * @summary List documents
700
708
  * @param {string} [authorization] Bearer Token
701
709
  * @param {number} [pageSize] Page size
@@ -783,7 +791,7 @@ var DocumentsApi = /** @class */ (function (_super) {
783
791
  */
784
792
  DocumentsApi.prototype.getDocumentDownloadUrl = function (requestParameters, options) {
785
793
  var _this = this;
786
- return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
794
+ return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
787
795
  };
788
796
  /**
789
797
  * This will return a presigned URL for a random S3 key
@@ -798,7 +806,7 @@ var DocumentsApi = /** @class */ (function (_super) {
798
806
  return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
799
807
  };
800
808
  /**
801
- * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
809
+ * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
802
810
  * @summary List documents
803
811
  * @param {DocumentsApiListDocumentsRequest} requestParameters Request parameters.
804
812
  * @param {*} [options] Override http request option.