@emilgroup/document-sdk 1.23.0 → 1.23.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.
@@ -29,10 +29,12 @@ models/get-layout-request-dto.ts
29
29
  models/index.ts
30
30
  models/inline-response200.ts
31
31
  models/inline-response503.ts
32
+ models/list-product-documents-response-class.ts
32
33
  models/list-request-dto.ts
33
34
  models/list-search-keywords-request-dto.ts
34
35
  models/list-searchable-document-owners-request-dto.ts
35
36
  models/list-searchable-documents-request-dto.ts
37
+ models/product-document-class.ts
36
38
  models/shared-update-docx-template-request-dto.ts
37
39
  models/update-doc-template-request-dto.ts
38
40
  models/update-document-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk@1.23.0 --save
20
+ npm install @emilgroup/document-sdk@1.23.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.23.0
24
+ yarn add @emilgroup/document-sdk@1.23.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -174,14 +174,17 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
174
174
  /**
175
175
  * This will return a presigned URL to download the document.
176
176
  * @summary Fetches a document download URL
177
- * @param {string} code
177
+ * @param {string} code Document code
178
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
178
179
  * @param {string} [authorization] Bearer Token
179
180
  * @param {*} [options] Override http request option.
180
181
  * @throws {RequiredError}
181
182
  */
182
- getDocumentDownloadUrl: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
183
+ getDocumentDownloadUrl: async (code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
183
184
  // verify required parameter 'code' is not null or undefined
184
185
  assertParamExists('getDocumentDownloadUrl', 'code', code)
186
+ // verify required parameter 'contentDisposition' is not null or undefined
187
+ assertParamExists('getDocumentDownloadUrl', 'contentDisposition', contentDisposition)
185
188
  const localVarPath = `/documentservice/v1/documents/{code}/download-url`
186
189
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
187
190
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -201,6 +204,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
201
204
  // http bearer authentication required
202
205
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
203
206
 
207
+ if (contentDisposition !== undefined) {
208
+ localVarQueryParameter['contentDisposition'] = contentDisposition;
209
+ }
210
+
204
211
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
205
212
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
206
213
  }
@@ -220,13 +227,16 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
220
227
  * This will return a presigned URL for a random S3 key
221
228
  * @summary Fetches a presigned URL for a S3 key
222
229
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
230
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
223
231
  * @param {string} [authorization] Bearer Token
224
232
  * @param {*} [options] Override http request option.
225
233
  * @throws {RequiredError}
226
234
  */
227
- getSignedS3keyUrl: async (s3Key: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
235
+ getSignedS3keyUrl: async (s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
228
236
  // verify required parameter 's3Key' is not null or undefined
229
237
  assertParamExists('getSignedS3keyUrl', 's3Key', s3Key)
238
+ // verify required parameter 'contentDisposition' is not null or undefined
239
+ assertParamExists('getSignedS3keyUrl', 'contentDisposition', contentDisposition)
230
240
  const localVarPath = `/documentservice/v1/documents/signed-s3-url`;
231
241
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
242
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -249,6 +259,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
249
259
  localVarQueryParameter['s3Key'] = s3Key;
250
260
  }
251
261
 
262
+ if (contentDisposition !== undefined) {
263
+ localVarQueryParameter['contentDisposition'] = contentDisposition;
264
+ }
265
+
252
266
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
267
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
268
  }
@@ -440,25 +454,27 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
440
454
  /**
441
455
  * This will return a presigned URL to download the document.
442
456
  * @summary Fetches a document download URL
443
- * @param {string} code
457
+ * @param {string} code Document code
458
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
444
459
  * @param {string} [authorization] Bearer Token
445
460
  * @param {*} [options] Override http request option.
446
461
  * @throws {RequiredError}
447
462
  */
448
- async getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
449
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, options);
463
+ async getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, contentDisposition, authorization, options);
450
465
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
451
466
  },
452
467
  /**
453
468
  * This will return a presigned URL for a random S3 key
454
469
  * @summary Fetches a presigned URL for a S3 key
455
470
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
471
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
456
472
  * @param {string} [authorization] Bearer Token
457
473
  * @param {*} [options] Override http request option.
458
474
  * @throws {RequiredError}
459
475
  */
460
- async getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
461
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options);
476
+ async getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, contentDisposition, authorization, options);
462
478
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
463
479
  },
464
480
  /**
@@ -538,24 +554,26 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
538
554
  /**
539
555
  * This will return a presigned URL to download the document.
540
556
  * @summary Fetches a document download URL
541
- * @param {string} code
557
+ * @param {string} code Document code
558
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
542
559
  * @param {string} [authorization] Bearer Token
543
560
  * @param {*} [options] Override http request option.
544
561
  * @throws {RequiredError}
545
562
  */
546
- getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<void> {
547
- return localVarFp.getDocumentDownloadUrl(code, authorization, options).then((request) => request(axios, basePath));
563
+ getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
564
+ return localVarFp.getDocumentDownloadUrl(code, contentDisposition, authorization, options).then((request) => request(axios, basePath));
548
565
  },
549
566
  /**
550
567
  * This will return a presigned URL for a random S3 key
551
568
  * @summary Fetches a presigned URL for a S3 key
552
569
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
570
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
553
571
  * @param {string} [authorization] Bearer Token
554
572
  * @param {*} [options] Override http request option.
555
573
  * @throws {RequiredError}
556
574
  */
557
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<void> {
558
- return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then((request) => request(axios, basePath));
575
+ getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
576
+ return localVarFp.getSignedS3keyUrl(s3Key, contentDisposition, authorization, options).then((request) => request(axios, basePath));
559
577
  },
560
578
  /**
561
579
  * 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.
@@ -659,12 +677,19 @@ export interface DocumentsApiDeleteDocumentRequest {
659
677
  */
660
678
  export interface DocumentsApiGetDocumentDownloadUrlRequest {
661
679
  /**
662
- *
680
+ * Document code
663
681
  * @type {string}
664
682
  * @memberof DocumentsApiGetDocumentDownloadUrl
665
683
  */
666
684
  readonly code: string
667
685
 
686
+ /**
687
+ * Content disposition override. Default will be depending on the document type.
688
+ * @type {'attachment' | 'inline'}
689
+ * @memberof DocumentsApiGetDocumentDownloadUrl
690
+ */
691
+ readonly contentDisposition: 'attachment' | 'inline'
692
+
668
693
  /**
669
694
  * Bearer Token
670
695
  * @type {string}
@@ -686,6 +711,13 @@ export interface DocumentsApiGetSignedS3keyUrlRequest {
686
711
  */
687
712
  readonly s3Key: string
688
713
 
714
+ /**
715
+ * Content disposition override. Default will be depending on the document type.
716
+ * @type {'attachment' | 'inline'}
717
+ * @memberof DocumentsApiGetSignedS3keyUrl
718
+ */
719
+ readonly contentDisposition: 'attachment' | 'inline'
720
+
689
721
  /**
690
722
  * Bearer Token
691
723
  * @type {string}
@@ -837,7 +869,7 @@ export class DocumentsApi extends BaseAPI {
837
869
  * @memberof DocumentsApi
838
870
  */
839
871
  public getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
840
- return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
872
+ return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
841
873
  }
842
874
 
843
875
  /**
@@ -849,7 +881,7 @@ export class DocumentsApi extends BaseAPI {
849
881
  * @memberof DocumentsApi
850
882
  */
851
883
  public getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig) {
852
- return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
884
+ return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
853
885
  }
854
886
 
855
887
  /**
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { ListProductDocumentsResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { UploadProductDocumentRequestDto } from '../models';
25
27
  /**
26
28
  * ProductDocumentsApi - axios parameter creator
@@ -80,17 +82,20 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
80
82
  /**
81
83
  * Get a pre-signed download url for the given product document.
82
84
  * @summary Get pre-signed url for downloading product document
83
- * @param {string} productSlug
84
- * @param {string} code
85
+ * @param {string} productSlug Product slug
86
+ * @param {string} code Product document code
87
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
85
88
  * @param {string} [authorization] Bearer Token
86
89
  * @param {*} [options] Override http request option.
87
90
  * @throws {RequiredError}
88
91
  */
89
- downloadProductDocument: async (productSlug: string, code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ downloadProductDocument: async (productSlug: string, code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
90
93
  // verify required parameter 'productSlug' is not null or undefined
91
94
  assertParamExists('downloadProductDocument', 'productSlug', productSlug)
92
95
  // verify required parameter 'code' is not null or undefined
93
96
  assertParamExists('downloadProductDocument', 'code', code)
97
+ // verify required parameter 'contentDisposition' is not null or undefined
98
+ assertParamExists('downloadProductDocument', 'contentDisposition', contentDisposition)
94
99
  const localVarPath = `/documentservice/v1/product-documents/{productSlug}/{code}/download-url`
95
100
  .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)))
96
101
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
@@ -111,6 +116,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
111
116
  // http bearer authentication required
112
117
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
118
 
119
+ if (contentDisposition !== undefined) {
120
+ localVarQueryParameter['contentDisposition'] = contentDisposition;
121
+ }
122
+
114
123
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
124
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
125
  }
@@ -176,17 +185,17 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
176
185
  };
177
186
  },
178
187
  /**
179
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
188
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
180
189
  * @summary List product documents
181
190
  * @param {string} productSlug
182
191
  * @param {string} [authorization] Bearer Token
183
192
  * @param {number} [pageSize] Page size
184
193
  * @param {string} [pageToken] Page token
185
- * @param {string} [filter] List filter
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
186
195
  * @param {string} [search] Search query
187
- * @param {string} [order] Ordering criteria
196
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
188
197
  * @param {string} [expand] Extra fields to fetch
189
- * @param {string} [filters] List filters
198
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
190
199
  * @param {*} [options] Override http request option.
191
200
  * @throws {RequiredError}
192
201
  */
@@ -332,14 +341,15 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
332
341
  /**
333
342
  * Get a pre-signed download url for the given product document.
334
343
  * @summary Get pre-signed url for downloading product document
335
- * @param {string} productSlug
336
- * @param {string} code
344
+ * @param {string} productSlug Product slug
345
+ * @param {string} code Product document code
346
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
337
347
  * @param {string} [authorization] Bearer Token
338
348
  * @param {*} [options] Override http request option.
339
349
  * @throws {RequiredError}
340
350
  */
341
- async downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
342
- const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options);
351
+ async downloadProductDocument(productSlug: string, code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, contentDisposition, authorization, options);
343
353
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
344
354
  },
345
355
  /**
@@ -356,21 +366,21 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
356
366
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
367
  },
358
368
  /**
359
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
369
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
360
370
  * @summary List product documents
361
371
  * @param {string} productSlug
362
372
  * @param {string} [authorization] Bearer Token
363
373
  * @param {number} [pageSize] Page size
364
374
  * @param {string} [pageToken] Page token
365
- * @param {string} [filter] List filter
375
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
366
376
  * @param {string} [search] Search query
367
- * @param {string} [order] Ordering criteria
377
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
368
378
  * @param {string} [expand] Extra fields to fetch
369
- * @param {string} [filters] List filters
379
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
370
380
  * @param {*} [options] Override http request option.
371
381
  * @throws {RequiredError}
372
382
  */
373
- async listProductDocuments(productSlug: string, 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>> {
383
+ async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
374
384
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
375
385
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
386
  },
@@ -412,14 +422,15 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
412
422
  /**
413
423
  * Get a pre-signed download url for the given product document.
414
424
  * @summary Get pre-signed url for downloading product document
415
- * @param {string} productSlug
416
- * @param {string} code
425
+ * @param {string} productSlug Product slug
426
+ * @param {string} code Product document code
427
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
417
428
  * @param {string} [authorization] Bearer Token
418
429
  * @param {*} [options] Override http request option.
419
430
  * @throws {RequiredError}
420
431
  */
421
- downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<void> {
422
- return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
432
+ downloadProductDocument(productSlug: string, code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
433
+ return localVarFp.downloadProductDocument(productSlug, code, contentDisposition, authorization, options).then((request) => request(axios, basePath));
423
434
  },
424
435
  /**
425
436
  * Get a product document.
@@ -434,21 +445,21 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
434
445
  return localVarFp.getProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
435
446
  },
436
447
  /**
437
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
448
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
438
449
  * @summary List product documents
439
450
  * @param {string} productSlug
440
451
  * @param {string} [authorization] Bearer Token
441
452
  * @param {number} [pageSize] Page size
442
453
  * @param {string} [pageToken] Page token
443
- * @param {string} [filter] List filter
454
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
444
455
  * @param {string} [search] Search query
445
- * @param {string} [order] Ordering criteria
456
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
446
457
  * @param {string} [expand] Extra fields to fetch
447
- * @param {string} [filters] List filters
458
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
448
459
  * @param {*} [options] Override http request option.
449
460
  * @throws {RequiredError}
450
461
  */
451
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
462
+ listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
452
463
  return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
453
464
  },
454
465
  /**
@@ -501,19 +512,26 @@ export interface ProductDocumentsApiDeleteProductDocumentRequest {
501
512
  */
502
513
  export interface ProductDocumentsApiDownloadProductDocumentRequest {
503
514
  /**
504
- *
515
+ * Product slug
505
516
  * @type {string}
506
517
  * @memberof ProductDocumentsApiDownloadProductDocument
507
518
  */
508
519
  readonly productSlug: string
509
520
 
510
521
  /**
511
- *
522
+ * Product document code
512
523
  * @type {string}
513
524
  * @memberof ProductDocumentsApiDownloadProductDocument
514
525
  */
515
526
  readonly code: string
516
527
 
528
+ /**
529
+ * Content disposition override. Default will be depending on the document type.
530
+ * @type {'attachment' | 'inline'}
531
+ * @memberof ProductDocumentsApiDownloadProductDocument
532
+ */
533
+ readonly contentDisposition: 'attachment' | 'inline'
534
+
517
535
  /**
518
536
  * Bearer Token
519
537
  * @type {string}
@@ -585,7 +603,7 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
585
603
  readonly pageToken?: string
586
604
 
587
605
  /**
588
- * List filter
606
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
589
607
  * @type {string}
590
608
  * @memberof ProductDocumentsApiListProductDocuments
591
609
  */
@@ -599,7 +617,7 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
599
617
  readonly search?: string
600
618
 
601
619
  /**
602
- * Ordering criteria
620
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, filename&lt;/i&gt;
603
621
  * @type {string}
604
622
  * @memberof ProductDocumentsApiListProductDocuments
605
623
  */
@@ -613,7 +631,7 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
613
631
  readonly expand?: string
614
632
 
615
633
  /**
616
- * List filters
634
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, productSlug, productCode, type, createdAt&lt;/i&gt;
617
635
  * @type {string}
618
636
  * @memberof ProductDocumentsApiListProductDocuments
619
637
  */
@@ -676,7 +694,7 @@ export class ProductDocumentsApi extends BaseAPI {
676
694
  * @memberof ProductDocumentsApi
677
695
  */
678
696
  public downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig) {
679
- return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
697
+ return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
680
698
  }
681
699
 
682
700
  /**
@@ -692,7 +710,7 @@ export class ProductDocumentsApi extends BaseAPI {
692
710
  }
693
711
 
694
712
  /**
695
- * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
713
+ * Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
696
714
  * @summary List product documents
697
715
  * @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
698
716
  * @param {*} [options] Override http request option.
@@ -50,21 +50,23 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
50
50
  /**
51
51
  * This will return a presigned URL to download the document.
52
52
  * @summary Fetches a document download URL
53
- * @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.
54
55
  * @param {string} [authorization] Bearer Token
55
56
  * @param {*} [options] Override http request option.
56
57
  * @throws {RequiredError}
57
58
  */
58
- getDocumentDownloadUrl: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ getDocumentDownloadUrl: (code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
60
  /**
60
61
  * This will return a presigned URL for a random S3 key
61
62
  * @summary Fetches a presigned URL for a S3 key
62
63
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
64
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
63
65
  * @param {string} [authorization] Bearer Token
64
66
  * @param {*} [options] Override http request option.
65
67
  * @throws {RequiredError}
66
68
  */
67
- getSignedS3keyUrl: (s3Key: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ getSignedS3keyUrl: (s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
70
  /**
69
71
  * 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
72
  * @summary List documents
@@ -126,21 +128,23 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
126
128
  /**
127
129
  * This will return a presigned URL to download the document.
128
130
  * @summary Fetches a document download URL
129
- * @param {string} code
131
+ * @param {string} code Document code
132
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
130
133
  * @param {string} [authorization] Bearer Token
131
134
  * @param {*} [options] Override http request option.
132
135
  * @throws {RequiredError}
133
136
  */
134
- getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
137
+ getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
135
138
  /**
136
139
  * This will return a presigned URL for a random S3 key
137
140
  * @summary Fetches a presigned URL for a S3 key
138
141
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
142
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
139
143
  * @param {string} [authorization] Bearer Token
140
144
  * @param {*} [options] Override http request option.
141
145
  * @throws {RequiredError}
142
146
  */
143
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
147
+ getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
144
148
  /**
145
149
  * 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.
146
150
  * @summary List documents
@@ -202,21 +206,23 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
202
206
  /**
203
207
  * This will return a presigned URL to download the document.
204
208
  * @summary Fetches a document download URL
205
- * @param {string} code
209
+ * @param {string} code Document code
210
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
206
211
  * @param {string} [authorization] Bearer Token
207
212
  * @param {*} [options] Override http request option.
208
213
  * @throws {RequiredError}
209
214
  */
210
- getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<void>;
215
+ getDocumentDownloadUrl(code: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void>;
211
216
  /**
212
217
  * This will return a presigned URL for a random S3 key
213
218
  * @summary Fetches a presigned URL for a S3 key
214
219
  * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
220
+ * @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
215
221
  * @param {string} [authorization] Bearer Token
216
222
  * @param {*} [options] Override http request option.
217
223
  * @throws {RequiredError}
218
224
  */
219
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<void>;
225
+ getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void>;
220
226
  /**
221
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.
222
228
  * @summary List documents
@@ -307,11 +313,17 @@ export interface DocumentsApiDeleteDocumentRequest {
307
313
  */
308
314
  export interface DocumentsApiGetDocumentDownloadUrlRequest {
309
315
  /**
310
- *
316
+ * Document code
311
317
  * @type {string}
312
318
  * @memberof DocumentsApiGetDocumentDownloadUrl
313
319
  */
314
320
  readonly code: string;
321
+ /**
322
+ * Content disposition override. Default will be depending on the document type.
323
+ * @type {'attachment' | 'inline'}
324
+ * @memberof DocumentsApiGetDocumentDownloadUrl
325
+ */
326
+ readonly contentDisposition: 'attachment' | 'inline';
315
327
  /**
316
328
  * Bearer Token
317
329
  * @type {string}
@@ -331,6 +343,12 @@ export interface DocumentsApiGetSignedS3keyUrlRequest {
331
343
  * @memberof DocumentsApiGetSignedS3keyUrl
332
344
  */
333
345
  readonly s3Key: string;
346
+ /**
347
+ * Content disposition override. Default will be depending on the document type.
348
+ * @type {'attachment' | 'inline'}
349
+ * @memberof DocumentsApiGetSignedS3keyUrl
350
+ */
351
+ readonly contentDisposition: 'attachment' | 'inline';
334
352
  /**
335
353
  * Bearer Token
336
354
  * @type {string}