@emilgroup/document-sdk-node 1.49.1-beta.41 → 1.49.1-beta.42

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.
@@ -107,9 +107,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
107
107
  createDocTemplate: function (createDocTemplateRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
- return __generator(this, function (_a) {
112
- switch (_a.label) {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
111
+ var _a;
112
+ return __generator(this, function (_b) {
113
+ switch (_b.label) {
113
114
  case 0:
114
115
  // verify required parameter 'createDocTemplateRequestDto' is not null or undefined
115
116
  (0, common_1.assertParamExists)('createDocTemplate', 'createDocTemplateRequestDto', createDocTemplateRequestDto);
@@ -124,13 +125,19 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
124
125
  localVarQueryParameter = {};
125
126
  // authentication bearer required
126
127
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
+ ];
128
132
  case 1:
129
133
  // authentication bearer required
130
134
  // http bearer authentication required
131
- _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ _b.sent();
136
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
137
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
138
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
139
+ if (authorizationValue || authorizationKeepEmpty) {
140
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
141
  }
135
142
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,9 +163,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
156
163
  deleteDocTemplate: function (id, authorization, options) {
157
164
  if (options === void 0) { options = {}; }
158
165
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
167
+ var _a;
168
+ return __generator(this, function (_b) {
169
+ switch (_b.label) {
162
170
  case 0:
163
171
  // verify required parameter 'id' is not null or undefined
164
172
  (0, common_1.assertParamExists)('deleteDocTemplate', 'id', id);
@@ -174,13 +182,19 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
174
182
  localVarQueryParameter = {};
175
183
  // authentication bearer required
176
184
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
186
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
187
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
188
+ ];
178
189
  case 1:
179
190
  // authentication bearer required
180
191
  // http bearer authentication required
181
- _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ _b.sent();
193
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
194
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
195
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
196
+ if (authorizationValue || authorizationKeepEmpty) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
198
  }
185
199
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
200
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,9 +219,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
205
219
  getDocTemplate: function (id, authorization, expand, options) {
206
220
  if (options === void 0) { options = {}; }
207
221
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
- return __generator(this, function (_a) {
210
- switch (_a.label) {
222
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
223
+ var _a;
224
+ return __generator(this, function (_b) {
225
+ switch (_b.label) {
211
226
  case 0:
212
227
  // verify required parameter 'id' is not null or undefined
213
228
  (0, common_1.assertParamExists)('getDocTemplate', 'id', id);
@@ -227,12 +242,15 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
227
242
  case 1:
228
243
  // authentication bearer required
229
244
  // http bearer authentication required
230
- _a.sent();
245
+ _b.sent();
231
246
  if (expand !== undefined) {
232
247
  localVarQueryParameter['expand'] = expand;
233
248
  }
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
249
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
250
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
251
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
252
+ if (authorizationValue || authorizationKeepEmpty) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
236
254
  }
237
255
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
256
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -261,9 +279,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
261
279
  listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
262
280
  if (options === void 0) { options = {}; }
263
281
  return __awaiter(_this, void 0, void 0, function () {
264
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
- return __generator(this, function (_a) {
266
- switch (_a.label) {
282
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
283
+ var _a;
284
+ return __generator(this, function (_b) {
285
+ switch (_b.label) {
267
286
  case 0:
268
287
  localVarPath = "/documentservice/v1/doc-templates";
269
288
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -280,7 +299,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
280
299
  case 1:
281
300
  // authentication bearer required
282
301
  // http bearer authentication required
283
- _a.sent();
302
+ _b.sent();
284
303
  if (pageSize !== undefined) {
285
304
  localVarQueryParameter['pageSize'] = pageSize;
286
305
  }
@@ -299,8 +318,11 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
299
318
  if (expand !== undefined) {
300
319
  localVarQueryParameter['expand'] = expand;
301
320
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
321
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
322
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
323
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
324
+ if (authorizationValue || authorizationKeepEmpty) {
325
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
326
  }
305
327
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
328
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -325,9 +347,10 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
325
347
  updateDocTemplate: function (id, updateDocTemplateRequestDto, authorization, options) {
326
348
  if (options === void 0) { options = {}; }
327
349
  return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
- return __generator(this, function (_a) {
330
- switch (_a.label) {
350
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
351
+ var _a;
352
+ return __generator(this, function (_b) {
353
+ switch (_b.label) {
331
354
  case 0:
332
355
  // verify required parameter 'id' is not null or undefined
333
356
  (0, common_1.assertParamExists)('updateDocTemplate', 'id', id);
@@ -345,13 +368,19 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
345
368
  localVarQueryParameter = {};
346
369
  // authentication bearer required
347
370
  // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
371
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
372
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
373
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
374
+ ];
349
375
  case 1:
350
376
  // authentication bearer required
351
377
  // http bearer authentication required
352
- _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
378
+ _b.sent();
379
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
380
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
381
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
382
+ if (authorizationValue || authorizationKeepEmpty) {
383
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
355
384
  }
356
385
  localVarHeaderParameter['Content-Type'] = 'application/json';
357
386
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -584,7 +613,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
584
613
  */
585
614
  DocumentTemplatesApi.prototype.createDocTemplate = function (requestParameters, options) {
586
615
  var _this = this;
587
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
616
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
588
617
  };
589
618
  /**
590
619
  * Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.templates.delete\"
@@ -596,7 +625,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
596
625
  */
597
626
  DocumentTemplatesApi.prototype.deleteDocTemplate = function (requestParameters, options) {
598
627
  var _this = this;
599
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
600
629
  };
601
630
  /**
602
631
  * 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. **Required Permissions** \"document-management.templates.view\"
@@ -608,7 +637,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
608
637
  */
609
638
  DocumentTemplatesApi.prototype.getDocTemplate = function (requestParameters, options) {
610
639
  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); });
640
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
612
641
  };
613
642
  /**
614
643
  * 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. **Required Permissions** \"document-management.templates.view\"
@@ -621,7 +650,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
621
650
  DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
622
651
  var _this = this;
623
652
  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); });
653
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
625
654
  };
626
655
  /**
627
656
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.templates.update\"
@@ -633,7 +662,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
633
662
  */
634
663
  DocumentTemplatesApi.prototype.updateDocTemplate = function (requestParameters, options) {
635
664
  var _this = this;
636
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
665
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
637
666
  };
638
667
  return DocumentTemplatesApi;
639
668
  }(base_1.BaseAPI));
@@ -658,7 +658,7 @@ export declare class DocumentsApi extends BaseAPI {
658
658
  * @throws {RequiredError}
659
659
  * @memberof DocumentsApi
660
660
  */
661
- createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any, {}>>;
661
+ createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any, {}, any>>;
662
662
  /**
663
663
  * This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days. **Required Permissions** \"document-management.documents.create\"
664
664
  * @summary Upload documents using pre-signed URL
@@ -667,7 +667,7 @@ export declare class DocumentsApi extends BaseAPI {
667
667
  * @throws {RequiredError}
668
668
  * @memberof DocumentsApi
669
669
  */
670
- createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
670
+ createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
671
671
  /**
672
672
  * Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
673
673
  * @summary Create the QR bill document
@@ -676,7 +676,7 @@ export declare class DocumentsApi extends BaseAPI {
676
676
  * @throws {RequiredError}
677
677
  * @memberof DocumentsApi
678
678
  */
679
- createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}>>;
679
+ createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}, any>>;
680
680
  /**
681
681
  * Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
682
682
  * @summary Delete the document
@@ -685,7 +685,7 @@ export declare class DocumentsApi extends BaseAPI {
685
685
  * @throws {RequiredError}
686
686
  * @memberof DocumentsApi
687
687
  */
688
- deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
688
+ deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
689
689
  /**
690
690
  * This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
691
691
  * @summary Export internal document
@@ -694,7 +694,7 @@ export declare class DocumentsApi extends BaseAPI {
694
694
  * @throws {RequiredError}
695
695
  * @memberof DocumentsApi
696
696
  */
697
- exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}>>;
697
+ exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportDocumentResponseClass, any, {}, any>>;
698
698
  /**
699
699
  * This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
700
700
  * @summary Fetches a document download URL
@@ -703,7 +703,7 @@ export declare class DocumentsApi extends BaseAPI {
703
703
  * @throws {RequiredError}
704
704
  * @memberof DocumentsApi
705
705
  */
706
- getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any, {}>>;
706
+ getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any, {}, any>>;
707
707
  /**
708
708
  * This will return a presigned URL for a random S3 key
709
709
  * @summary Fetches a presigned URL for a S3 key
@@ -712,7 +712,7 @@ export declare class DocumentsApi extends BaseAPI {
712
712
  * @throws {RequiredError}
713
713
  * @memberof DocumentsApi
714
714
  */
715
- getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any, {}>>;
715
+ getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any, {}, any>>;
716
716
  /**
717
717
  * 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. **Required Permissions** \"document-management.documents.view\"
718
718
  * @summary List documents
@@ -721,7 +721,7 @@ export declare class DocumentsApi extends BaseAPI {
721
721
  * @throws {RequiredError}
722
722
  * @memberof DocumentsApi
723
723
  */
724
- listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}>>;
724
+ listDocuments(requestParameters?: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any, {}, any>>;
725
725
  /**
726
726
  * Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
727
727
  * @summary Create the merged document
@@ -730,7 +730,7 @@ export declare class DocumentsApi extends BaseAPI {
730
730
  * @throws {RequiredError}
731
731
  * @memberof DocumentsApi
732
732
  */
733
- mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}>>;
733
+ mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MergeDocumentsResponseClass, any, {}, any>>;
734
734
  /**
735
735
  * This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
736
736
  * @summary Save external document
@@ -739,7 +739,7 @@ export declare class DocumentsApi extends BaseAPI {
739
739
  * @throws {RequiredError}
740
740
  * @memberof DocumentsApi
741
741
  */
742
- saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
742
+ saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
743
743
  /**
744
744
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
745
745
  * @summary Update the document
@@ -748,5 +748,5 @@ export declare class DocumentsApi extends BaseAPI {
748
748
  * @throws {RequiredError}
749
749
  * @memberof DocumentsApi
750
750
  */
751
- updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocumentResponseClass, any, {}>>;
751
+ updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocumentResponseClass, any, {}, any>>;
752
752
  }