@emilgroup/document-sdk-node 1.2.0 → 1.2.1

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 (123) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +88 -94
  4. package/api/documents-api.ts +152 -34
  5. package/api/layouts-api.ts +52 -28
  6. package/api/search-keywords-api.ts +168 -0
  7. package/api/searchable-document-owners-api.ts +26 -22
  8. package/api/searchable-documents-api.ts +16 -12
  9. package/api.ts +2 -0
  10. package/base.ts +1 -1
  11. package/dist/api/document-templates-api.d.ts +82 -78
  12. package/dist/api/document-templates-api.js +73 -67
  13. package/dist/api/documents-api.d.ts +93 -29
  14. package/dist/api/documents-api.js +121 -23
  15. package/dist/api/layouts-api.d.ts +52 -30
  16. package/dist/api/layouts-api.js +43 -23
  17. package/dist/api/search-keywords-api.d.ts +96 -0
  18. package/dist/api/search-keywords-api.js +229 -0
  19. package/dist/api/searchable-document-owners-api.d.ts +23 -19
  20. package/dist/api/searchable-document-owners-api.js +16 -12
  21. package/dist/api/searchable-documents-api.d.ts +16 -12
  22. package/dist/api/searchable-documents-api.js +14 -10
  23. package/dist/api.d.ts +1 -0
  24. package/dist/api.js +1 -0
  25. package/dist/base.js +1 -1
  26. package/dist/models/create-doc-template-request-dto.d.ts +10 -4
  27. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  28. package/dist/models/create-doc-template-response-class.js +15 -0
  29. package/dist/models/create-document-request-dto.d.ts +20 -8
  30. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  31. package/dist/models/create-document-sync-response-class.js +15 -0
  32. package/dist/models/create-html-template-dto.d.ts +1 -1
  33. package/dist/models/create-layout-request-dto.d.ts +10 -10
  34. package/dist/models/create-layout-response-class.d.ts +25 -0
  35. package/dist/models/create-layout-response-class.js +15 -0
  36. package/dist/models/create-presigned-post-request-dto.d.ts +127 -0
  37. package/dist/models/create-presigned-post-request-dto.js +51 -0
  38. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  39. package/dist/models/create-presigned-post-response-class.js +15 -0
  40. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  41. package/dist/models/delete-request-dto.d.ts +1 -1
  42. package/dist/models/delete-response-class.d.ts +24 -0
  43. package/dist/models/delete-response-class.js +15 -0
  44. package/dist/models/doc-template-class.d.ts +25 -19
  45. package/dist/models/document-class.d.ts +20 -8
  46. package/dist/models/download-document-request-dto.d.ts +2 -2
  47. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  48. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  49. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  50. package/dist/models/get-layout-request-dto.d.ts +1 -1
  51. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  52. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  53. package/dist/models/html-template-class.d.ts +7 -7
  54. package/dist/models/index.d.ts +14 -0
  55. package/dist/models/index.js +14 -0
  56. package/dist/models/layout-class.d.ts +11 -11
  57. package/dist/models/list-doc-template-request-dto.d.ts +48 -0
  58. package/dist/models/list-doc-template-request-dto.js +15 -0
  59. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  60. package/dist/models/list-documents-response-class.d.ts +1 -1
  61. package/dist/models/list-layouts-response-class.d.ts +1 -1
  62. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  63. package/dist/models/list-search-keywords-request-dto.js +15 -0
  64. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  65. package/dist/models/list-search-keywords-response-class.js +15 -0
  66. package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
  67. package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
  68. package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
  69. package/dist/models/searchable-document-class.d.ts +66 -0
  70. package/dist/models/searchable-document-class.js +15 -0
  71. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  72. package/dist/models/searchable-document-owner-class.js +15 -0
  73. package/dist/models/update-doc-template-request-dto.d.ts +16 -10
  74. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  75. package/dist/models/update-document-request-dto.d.ts +10 -4
  76. package/dist/models/update-document-response-class.d.ts +25 -0
  77. package/dist/models/update-document-response-class.js +15 -0
  78. package/dist/models/update-html-template-dto.d.ts +42 -0
  79. package/dist/models/update-html-template-dto.js +21 -0
  80. package/dist/models/update-layout-request-dto.d.ts +15 -15
  81. package/dist/models/update-layout-response-class.d.ts +1 -1
  82. package/models/create-doc-template-request-dto.ts +10 -4
  83. package/models/create-doc-template-response-class.ts +31 -0
  84. package/models/create-document-request-dto.ts +20 -8
  85. package/models/create-document-sync-response-class.ts +31 -0
  86. package/models/create-html-template-dto.ts +1 -1
  87. package/models/create-layout-request-dto.ts +10 -10
  88. package/models/create-layout-response-class.ts +31 -0
  89. package/models/create-presigned-post-request-dto.ts +137 -0
  90. package/models/create-presigned-post-response-class.ts +36 -0
  91. package/models/delete-layout-request-dto.ts +1 -1
  92. package/models/delete-request-dto.ts +1 -1
  93. package/models/delete-response-class.ts +30 -0
  94. package/models/doc-template-class.ts +25 -19
  95. package/models/document-class.ts +20 -8
  96. package/models/download-document-request-dto.ts +2 -2
  97. package/models/get-doc-template-request-dto.ts +1 -1
  98. package/models/get-doc-template-response-class.ts +1 -1
  99. package/models/get-document-download-url-response-class.ts +1 -1
  100. package/models/get-layout-request-dto.ts +1 -1
  101. package/models/get-signed-s3-key-url-response-class.ts +30 -0
  102. package/models/html-template-class.ts +7 -7
  103. package/models/index.ts +14 -0
  104. package/models/layout-class.ts +11 -11
  105. package/models/list-doc-template-request-dto.ts +54 -0
  106. package/models/list-doc-templates-response-class.ts +1 -1
  107. package/models/list-documents-response-class.ts +1 -1
  108. package/models/list-layouts-response-class.ts +1 -1
  109. package/models/list-search-keywords-request-dto.ts +30 -0
  110. package/models/list-search-keywords-response-class.ts +30 -0
  111. package/models/list-searchable-document-owners-response-class.ts +3 -2
  112. package/models/list-searchable-documents-request-dto.ts +2 -2
  113. package/models/list-searchable-documents-response-class.ts +5 -4
  114. package/models/searchable-document-class.ts +72 -0
  115. package/models/searchable-document-owner-class.ts +36 -0
  116. package/models/update-doc-template-request-dto.ts +16 -10
  117. package/models/update-doc-template-response-class.ts +1 -1
  118. package/models/update-document-request-dto.ts +10 -4
  119. package/models/update-document-response-class.ts +31 -0
  120. package/models/update-html-template-dto.ts +51 -0
  121. package/models/update-layout-request-dto.ts +15 -15
  122. package/models/update-layout-response-class.ts +1 -1
  123. package/package.json +1 -1
@@ -97,7 +97,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
100
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
101
101
  * @summary Create the document
102
102
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
103
103
  * @param {string} [authorization] Bearer Token
@@ -146,22 +146,23 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- *
150
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
149
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
150
+ * @summary Upload documents using pre-signed URL
151
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
151
152
  * @param {string} [authorization] Bearer Token
152
153
  * @param {*} [options] Override http request option.
153
154
  * @throws {RequiredError}
154
155
  */
155
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
156
+ createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
156
157
  if (options === void 0) { options = {}; }
157
158
  return __awaiter(_this, void 0, void 0, function () {
158
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
160
  return __generator(this, function (_a) {
160
161
  switch (_a.label) {
161
162
  case 0:
162
- // verify required parameter 'createDocumentRequestDto' is not null or undefined
163
- (0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
164
- localVarPath = "/documentservice/v1/documents/temporary";
163
+ // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
164
+ (0, common_1.assertParamExists)('createPresignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
165
+ localVarPath = "/documentservice/v1/documents/pre-signed-post";
165
166
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
166
167
  if (configuration) {
167
168
  baseOptions = configuration.baseOptions;
@@ -184,7 +185,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
184
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
187
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDocumentRequestDto, localVarRequestOptions, configuration);
188
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
188
189
  return [2 /*return*/, {
189
190
  url: (0, common_1.toPathString)(localVarUrlObj),
190
191
  options: localVarRequestOptions,
@@ -289,6 +290,56 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
289
290
  });
290
291
  });
291
292
  },
293
+ /**
294
+ * This will return a presigned URL for a random S3 key
295
+ * @summary Fetches a presigned URL for a S3 key
296
+ * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
297
+ * @param {string} [authorization] Bearer Token
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ getSignedS3keyUrl: function (s3Key, authorization, options) {
302
+ if (options === void 0) { options = {}; }
303
+ return __awaiter(_this, void 0, void 0, function () {
304
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
305
+ return __generator(this, function (_a) {
306
+ switch (_a.label) {
307
+ case 0:
308
+ // verify required parameter 's3Key' is not null or undefined
309
+ (0, common_1.assertParamExists)('getSignedS3keyUrl', 's3Key', s3Key);
310
+ localVarPath = "/documentservice/v1/documents/signed-s3-url";
311
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ baseAccessToken = configuration.accessToken;
315
+ }
316
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
317
+ localVarHeaderParameter = {};
318
+ localVarQueryParameter = {};
319
+ // authentication bearer required
320
+ // http bearer authentication required
321
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
322
+ case 1:
323
+ // authentication bearer required
324
+ // http bearer authentication required
325
+ _a.sent();
326
+ if (s3Key !== undefined) {
327
+ localVarQueryParameter['s3Key'] = s3Key;
328
+ }
329
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
330
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
331
+ }
332
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
333
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
334
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
335
+ return [2 /*return*/, {
336
+ url: (0, common_1.toPathString)(localVarUrlObj),
337
+ options: localVarRequestOptions,
338
+ }];
339
+ }
340
+ });
341
+ });
342
+ },
292
343
  /**
293
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.
294
345
  * @summary List documents
@@ -421,7 +472,7 @@ var DocumentsApiFp = function (configuration) {
421
472
  var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
422
473
  return {
423
474
  /**
424
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
475
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
425
476
  * @summary Create the document
426
477
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
427
478
  * @param {string} [authorization] Bearer Token
@@ -442,18 +493,19 @@ var DocumentsApiFp = function (configuration) {
442
493
  });
443
494
  },
444
495
  /**
445
- *
446
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
496
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
497
+ * @summary Upload documents using pre-signed URL
498
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
447
499
  * @param {string} [authorization] Bearer Token
448
500
  * @param {*} [options] Override http request option.
449
501
  * @throws {RequiredError}
450
502
  */
451
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
503
+ createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
452
504
  return __awaiter(this, void 0, void 0, function () {
453
505
  var localVarAxiosArgs;
454
506
  return __generator(this, function (_a) {
455
507
  switch (_a.label) {
456
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTemporaryDocument(createDocumentRequestDto, authorization, options)];
508
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options)];
457
509
  case 1:
458
510
  localVarAxiosArgs = _a.sent();
459
511
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -503,6 +555,27 @@ var DocumentsApiFp = function (configuration) {
503
555
  });
504
556
  });
505
557
  },
558
+ /**
559
+ * This will return a presigned URL for a random S3 key
560
+ * @summary Fetches a presigned URL for a S3 key
561
+ * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
562
+ * @param {string} [authorization] Bearer Token
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ getSignedS3keyUrl: function (s3Key, authorization, options) {
567
+ return __awaiter(this, void 0, void 0, function () {
568
+ var localVarAxiosArgs;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
571
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options)];
572
+ case 1:
573
+ localVarAxiosArgs = _a.sent();
574
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
575
+ }
576
+ });
577
+ });
578
+ },
506
579
  /**
507
580
  * 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.
508
581
  * @summary List documents
@@ -562,7 +635,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
562
635
  var localVarFp = (0, exports.DocumentsApiFp)(configuration);
563
636
  return {
564
637
  /**
565
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
638
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
566
639
  * @summary Create the document
567
640
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
568
641
  * @param {string} [authorization] Bearer Token
@@ -573,14 +646,15 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
573
646
  return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
574
647
  },
575
648
  /**
576
- *
577
- * @param {CreateDocumentRequestDto} createDocumentRequestDto
649
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
650
+ * @summary Upload documents using pre-signed URL
651
+ * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
578
652
  * @param {string} [authorization] Bearer Token
579
653
  * @param {*} [options] Override http request option.
580
654
  * @throws {RequiredError}
581
655
  */
582
- createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
583
- return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
656
+ createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
657
+ return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
584
658
  },
585
659
  /**
586
660
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
@@ -604,6 +678,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
604
678
  getDocumentDownloadUrl: function (code, authorization, options) {
605
679
  return localVarFp.getDocumentDownloadUrl(code, authorization, options).then(function (request) { return request(axios, basePath); });
606
680
  },
681
+ /**
682
+ * This will return a presigned URL for a random S3 key
683
+ * @summary Fetches a presigned URL for a S3 key
684
+ * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
685
+ * @param {string} [authorization] Bearer Token
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ getSignedS3keyUrl: function (s3Key, authorization, options) {
690
+ return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then(function (request) { return request(axios, basePath); });
691
+ },
607
692
  /**
608
693
  * 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.
609
694
  * @summary List documents
@@ -647,7 +732,7 @@ var DocumentsApi = /** @class */ (function (_super) {
647
732
  return _super !== null && _super.apply(this, arguments) || this;
648
733
  }
649
734
  /**
650
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
735
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
651
736
  * @summary Create the document
652
737
  * @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
653
738
  * @param {*} [options] Override http request option.
@@ -659,15 +744,16 @@ var DocumentsApi = /** @class */ (function (_super) {
659
744
  return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
660
745
  };
661
746
  /**
662
- *
663
- * @param {DocumentsApiCreateTemporaryDocumentRequest} requestParameters Request parameters.
747
+ * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5minutes to 7days.
748
+ * @summary Upload documents using pre-signed URL
749
+ * @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
664
750
  * @param {*} [options] Override http request option.
665
751
  * @throws {RequiredError}
666
752
  * @memberof DocumentsApi
667
753
  */
668
- DocumentsApi.prototype.createTemporaryDocument = function (requestParameters, options) {
754
+ DocumentsApi.prototype.createPresignedPost = function (requestParameters, options) {
669
755
  var _this = this;
670
- return (0, exports.DocumentsApiFp)(this.configuration).createTemporaryDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
756
+ return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
671
757
  };
672
758
  /**
673
759
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
@@ -693,6 +779,18 @@ var DocumentsApi = /** @class */ (function (_super) {
693
779
  var _this = this;
694
780
  return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
695
781
  };
782
+ /**
783
+ * This will return a presigned URL for a random S3 key
784
+ * @summary Fetches a presigned URL for a S3 key
785
+ * @param {DocumentsApiGetSignedS3keyUrlRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ * @memberof DocumentsApi
789
+ */
790
+ DocumentsApi.prototype.getSignedS3keyUrl = function (requestParameters, options) {
791
+ var _this = this;
792
+ return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
793
+ };
696
794
  /**
697
795
  * 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.
698
796
  * @summary List documents
@@ -13,6 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateLayoutRequestDto } from '../models';
16
+ import { CreateLayoutResponseClass } from '../models';
17
+ import { DeleteResponseClass } from '../models';
16
18
  import { GetLayoutResponseClass } from '../models';
17
19
  import { ListLayoutsResponseClass } from '../models';
18
20
  import { UpdateLayoutRequestDto } from '../models';
@@ -23,7 +25,8 @@ import { UpdateLayoutResponseClass } from '../models';
23
25
  */
24
26
  export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration) => {
25
27
  /**
26
- *
28
+ * This will create a layout.
29
+ * @summary Create the layout
27
30
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
28
31
  * @param {string} [authorization] Bearer Token
29
32
  * @param {*} [options] Override http request option.
@@ -31,7 +34,8 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
31
34
  */
32
35
  createLayout: (createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
36
  /**
34
- *
37
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
38
+ * @summary Delete the layout
35
39
  * @param {number} id
36
40
  * @param {string} [authorization] Bearer Token
37
41
  * @param {*} [options] Override http request option.
@@ -39,16 +43,18 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
39
43
  */
40
44
  deleteLayout: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
45
  /**
42
- *
46
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
47
+ * @summary Retrieve the layout
43
48
  * @param {string} id
44
- * @param {number} id2 Layout id
49
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
45
50
  * @param {string} [authorization] Bearer Token
46
51
  * @param {*} [options] Override http request option.
47
52
  * @throws {RequiredError}
48
53
  */
49
54
  getLayout: (id: string, id2: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
55
  /**
51
- *
56
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
57
+ * @summary List layouts
52
58
  * @param {string} [authorization] Bearer Token
53
59
  * @param {number} [pageSize] Page size
54
60
  * @param {string} [pageToken] Page token
@@ -61,7 +67,8 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
61
67
  */
62
68
  listLayouts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
69
  /**
64
- *
70
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
71
+ * @summary Update the layout
65
72
  * @param {number} id
66
73
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
67
74
  * @param {string} [authorization] Bearer Token
@@ -76,32 +83,36 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
76
83
  */
77
84
  export declare const LayoutsApiFp: (configuration?: Configuration) => {
78
85
  /**
79
- *
86
+ * This will create a layout.
87
+ * @summary Create the layout
80
88
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
81
89
  * @param {string} [authorization] Bearer Token
82
90
  * @param {*} [options] Override http request option.
83
91
  * @throws {RequiredError}
84
92
  */
85
- createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
93
+ createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLayoutResponseClass>>;
86
94
  /**
87
- *
95
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
96
+ * @summary Delete the layout
88
97
  * @param {number} id
89
98
  * @param {string} [authorization] Bearer Token
90
99
  * @param {*} [options] Override http request option.
91
100
  * @throws {RequiredError}
92
101
  */
93
- deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
102
+ deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
94
103
  /**
95
- *
104
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
105
+ * @summary Retrieve the layout
96
106
  * @param {string} id
97
- * @param {number} id2 Layout id
107
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
98
108
  * @param {string} [authorization] Bearer Token
99
109
  * @param {*} [options] Override http request option.
100
110
  * @throws {RequiredError}
101
111
  */
102
112
  getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLayoutResponseClass>>;
103
113
  /**
104
- *
114
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
115
+ * @summary List layouts
105
116
  * @param {string} [authorization] Bearer Token
106
117
  * @param {number} [pageSize] Page size
107
118
  * @param {string} [pageToken] Page token
@@ -114,7 +125,8 @@ export declare const LayoutsApiFp: (configuration?: Configuration) => {
114
125
  */
115
126
  listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>>;
116
127
  /**
117
- *
128
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
129
+ * @summary Update the layout
118
130
  * @param {number} id
119
131
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
120
132
  * @param {string} [authorization] Bearer Token
@@ -129,32 +141,36 @@ export declare const LayoutsApiFp: (configuration?: Configuration) => {
129
141
  */
130
142
  export declare const LayoutsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
131
143
  /**
132
- *
144
+ * This will create a layout.
145
+ * @summary Create the layout
133
146
  * @param {CreateLayoutRequestDto} createLayoutRequestDto
134
147
  * @param {string} [authorization] Bearer Token
135
148
  * @param {*} [options] Override http request option.
136
149
  * @throws {RequiredError}
137
150
  */
138
- createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
151
+ createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLayoutResponseClass>;
139
152
  /**
140
- *
153
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
154
+ * @summary Delete the layout
141
155
  * @param {number} id
142
156
  * @param {string} [authorization] Bearer Token
143
157
  * @param {*} [options] Override http request option.
144
158
  * @throws {RequiredError}
145
159
  */
146
- deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<object>;
160
+ deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
147
161
  /**
148
- *
162
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
163
+ * @summary Retrieve the layout
149
164
  * @param {string} id
150
- * @param {number} id2 Layout id
165
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
151
166
  * @param {string} [authorization] Bearer Token
152
167
  * @param {*} [options] Override http request option.
153
168
  * @throws {RequiredError}
154
169
  */
155
170
  getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetLayoutResponseClass>;
156
171
  /**
157
- *
172
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
173
+ * @summary List layouts
158
174
  * @param {string} [authorization] Bearer Token
159
175
  * @param {number} [pageSize] Page size
160
176
  * @param {string} [pageToken] Page token
@@ -167,7 +183,8 @@ export declare const LayoutsApiFactory: (configuration?: Configuration, basePath
167
183
  */
168
184
  listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListLayoutsResponseClass>;
169
185
  /**
170
- *
186
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
187
+ * @summary Update the layout
171
188
  * @param {number} id
172
189
  * @param {UpdateLayoutRequestDto} updateLayoutRequestDto
173
190
  * @param {string} [authorization] Bearer Token
@@ -227,7 +244,7 @@ export interface LayoutsApiGetLayoutRequest {
227
244
  */
228
245
  readonly id: string;
229
246
  /**
230
- * Layout id
247
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
231
248
  * @type {number}
232
249
  * @memberof LayoutsApiGetLayout
233
250
  */
@@ -321,23 +338,26 @@ export interface LayoutsApiUpdateLayoutRequest {
321
338
  */
322
339
  export declare class LayoutsApi extends BaseAPI {
323
340
  /**
324
- *
341
+ * This will create a layout.
342
+ * @summary Create the layout
325
343
  * @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
326
344
  * @param {*} [options] Override http request option.
327
345
  * @throws {RequiredError}
328
346
  * @memberof LayoutsApi
329
347
  */
330
- createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
348
+ createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any>>;
331
349
  /**
332
- *
350
+ * Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
351
+ * @summary Delete the layout
333
352
  * @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
334
353
  * @param {*} [options] Override http request option.
335
354
  * @throws {RequiredError}
336
355
  * @memberof LayoutsApi
337
356
  */
338
- deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
357
+ deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
339
358
  /**
340
- *
359
+ * Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information.
360
+ * @summary Retrieve the layout
341
361
  * @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
342
362
  * @param {*} [options] Override http request option.
343
363
  * @throws {RequiredError}
@@ -345,7 +365,8 @@ export declare class LayoutsApi extends BaseAPI {
345
365
  */
346
366
  getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any>>;
347
367
  /**
348
- *
368
+ * Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
369
+ * @summary List layouts
349
370
  * @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
350
371
  * @param {*} [options] Override http request option.
351
372
  * @throws {RequiredError}
@@ -353,7 +374,8 @@ export declare class LayoutsApi extends BaseAPI {
353
374
  */
354
375
  listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any>>;
355
376
  /**
356
- *
377
+ * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
378
+ * @summary Update the layout
357
379
  * @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
358
380
  * @param {*} [options] Override http request option.
359
381
  * @throws {RequiredError}