@emilgroup/document-sdk 1.16.0 → 1.21.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.
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.16.0 --save
20
+ npm install @emilgroup/document-sdk@1.21.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.16.0
24
+ yarn add @emilgroup/document-sdk@1.21.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -286,10 +286,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
286
286
  * @param {string} [search] Search query
287
287
  * @param {string} [order] Ordering criteria
288
288
  * @param {string} [expand] Extra fields to fetch
289
+ * @param {string} [filters] List filters
289
290
  * @param {*} [options] Override http request option.
290
291
  * @throws {RequiredError}
291
292
  */
292
- listDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
293
+ listDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
293
294
  const localVarPath = `/documentservice/v1/documents`;
294
295
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
295
296
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -332,6 +333,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
332
333
  localVarQueryParameter['expand'] = expand;
333
334
  }
334
335
 
336
+ if (filters !== undefined) {
337
+ localVarQueryParameter['filters'] = filters;
338
+ }
339
+
335
340
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
336
341
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
337
342
  }
@@ -478,11 +483,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
478
483
  * @param {string} [search] Search query
479
484
  * @param {string} [order] Ordering criteria
480
485
  * @param {string} [expand] Extra fields to fetch
486
+ * @param {string} [filters] List filters
481
487
  * @param {*} [options] Override http request option.
482
488
  * @throws {RequiredError}
483
489
  */
484
- async listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
485
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
490
+ async listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
486
492
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
487
493
  },
488
494
  /**
@@ -573,11 +579,12 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
573
579
  * @param {string} [search] Search query
574
580
  * @param {string} [order] Ordering criteria
575
581
  * @param {string} [expand] Extra fields to fetch
582
+ * @param {string} [filters] List filters
576
583
  * @param {*} [options] Override http request option.
577
584
  * @throws {RequiredError}
578
585
  */
579
- listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
580
- return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
586
+ listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
587
+ return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
581
588
  },
582
589
  /**
583
590
  * Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -753,6 +760,13 @@ export interface DocumentsApiListDocumentsRequest {
753
760
  * @memberof DocumentsApiListDocuments
754
761
  */
755
762
  readonly expand?: string
763
+
764
+ /**
765
+ * List filters
766
+ * @type {string}
767
+ * @memberof DocumentsApiListDocuments
768
+ */
769
+ readonly filters?: string
756
770
  }
757
771
 
758
772
  /**
@@ -859,7 +873,7 @@ export class DocumentsApi extends BaseAPI {
859
873
  * @memberof DocumentsApi
860
874
  */
861
875
  public listDocuments(requestParameters: DocumentsApiListDocumentsRequest = {}, options?: AxiosRequestConfig) {
862
- return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
876
+ return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
863
877
  }
864
878
 
865
879
  /**
@@ -187,10 +187,11 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
187
187
  * @param {string} [search] Search query
188
188
  * @param {string} [order] Ordering criteria
189
189
  * @param {string} [expand] Extra fields to fetch
190
+ * @param {string} [filters] List filters
190
191
  * @param {*} [options] Override http request option.
191
192
  * @throws {RequiredError}
192
193
  */
193
- listDocxTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
+ listDocxTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
195
  const localVarPath = `/documentservice/v1/docx-templates`;
195
196
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
197
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -233,6 +234,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
233
234
  localVarQueryParameter['expand'] = expand;
234
235
  }
235
236
 
237
+ if (filters !== undefined) {
238
+ localVarQueryParameter['filters'] = filters;
239
+ }
240
+
236
241
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
242
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
243
  }
@@ -402,11 +407,12 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
402
407
  * @param {string} [search] Search query
403
408
  * @param {string} [order] Ordering criteria
404
409
  * @param {string} [expand] Extra fields to fetch
410
+ * @param {string} [filters] List filters
405
411
  * @param {*} [options] Override http request option.
406
412
  * @throws {RequiredError}
407
413
  */
408
- async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>> {
409
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
414
+ async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>> {
415
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
410
416
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
411
417
  },
412
418
  /**
@@ -487,11 +493,12 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
487
493
  * @param {string} [search] Search query
488
494
  * @param {string} [order] Ordering criteria
489
495
  * @param {string} [expand] Extra fields to fetch
496
+ * @param {string} [filters] List filters
490
497
  * @param {*} [options] Override http request option.
491
498
  * @throws {RequiredError}
492
499
  */
493
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
494
- return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
500
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
501
+ return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
495
502
  },
496
503
  /**
497
504
  * Updates a docx template metadata.
@@ -636,6 +643,13 @@ export interface DocxTemplatesApiListDocxTemplatesRequest {
636
643
  * @memberof DocxTemplatesApiListDocxTemplates
637
644
  */
638
645
  readonly expand?: string
646
+
647
+ /**
648
+ * List filters
649
+ * @type {string}
650
+ * @memberof DocxTemplatesApiListDocxTemplates
651
+ */
652
+ readonly filters?: string
639
653
  }
640
654
 
641
655
  /**
@@ -739,7 +753,7 @@ export class DocxTemplatesApi extends BaseAPI {
739
753
  * @memberof DocxTemplatesApi
740
754
  */
741
755
  public listDocxTemplates(requestParameters: DocxTemplatesApiListDocxTemplatesRequest = {}, options?: AxiosRequestConfig) {
742
- return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
756
+ return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
743
757
  }
744
758
 
745
759
  /**
@@ -194,10 +194,11 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
194
194
  * @param {string} [search] Search query
195
195
  * @param {string} [order] Ordering criteria
196
196
  * @param {string} [expand] Extra fields to fetch
197
+ * @param {string} [filters] List filters
197
198
  * @param {*} [options] Override http request option.
198
199
  * @throws {RequiredError}
199
200
  */
200
- listLayouts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ listLayouts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
202
  const localVarPath = `/documentservice/v1/layouts`;
202
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -240,6 +241,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
240
241
  localVarQueryParameter['expand'] = expand;
241
242
  }
242
243
 
244
+ if (filters !== undefined) {
245
+ localVarQueryParameter['filters'] = filters;
246
+ }
247
+
243
248
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
249
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
250
  }
@@ -363,11 +368,12 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
363
368
  * @param {string} [search] Search query
364
369
  * @param {string} [order] Ordering criteria
365
370
  * @param {string} [expand] Extra fields to fetch
371
+ * @param {string} [filters] List filters
366
372
  * @param {*} [options] Override http request option.
367
373
  * @throws {RequiredError}
368
374
  */
369
- async listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>> {
370
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options);
375
+ async listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>> {
376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
371
377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
372
378
  },
373
379
  /**
@@ -437,11 +443,12 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
437
443
  * @param {string} [search] Search query
438
444
  * @param {string} [order] Ordering criteria
439
445
  * @param {string} [expand] Extra fields to fetch
446
+ * @param {string} [filters] List filters
440
447
  * @param {*} [options] Override http request option.
441
448
  * @throws {RequiredError}
442
449
  */
443
- listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListLayoutsResponseClass> {
444
- return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
450
+ listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListLayoutsResponseClass> {
451
+ return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
445
452
  },
446
453
  /**
447
454
  * Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -582,6 +589,13 @@ export interface LayoutsApiListLayoutsRequest {
582
589
  * @memberof LayoutsApiListLayouts
583
590
  */
584
591
  readonly expand?: string
592
+
593
+ /**
594
+ * List filters
595
+ * @type {string}
596
+ * @memberof LayoutsApiListLayouts
597
+ */
598
+ readonly filters?: string
585
599
  }
586
600
 
587
601
  /**
@@ -664,7 +678,7 @@ export class LayoutsApi extends BaseAPI {
664
678
  * @memberof LayoutsApi
665
679
  */
666
680
  public listLayouts(requestParameters: LayoutsApiListLayoutsRequest = {}, options?: AxiosRequestConfig) {
667
- return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
681
+ return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
668
682
  }
669
683
 
670
684
  /**
@@ -186,6 +186,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
186
186
  /**
187
187
  * 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
188
  * @summary List product documents
189
+ * @param {string} productSlug
189
190
  * @param {string} [authorization] Bearer Token
190
191
  * @param {number} [pageSize] Page size
191
192
  * @param {string} [pageToken] Page token
@@ -193,11 +194,15 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
193
194
  * @param {string} [search] Search query
194
195
  * @param {string} [order] Ordering criteria
195
196
  * @param {string} [expand] Extra fields to fetch
197
+ * @param {string} [filters] List filters
196
198
  * @param {*} [options] Override http request option.
197
199
  * @throws {RequiredError}
198
200
  */
199
- listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
- const localVarPath = `/documentservice/v1/documents/product`;
201
+ listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
+ // verify required parameter 'productSlug' is not null or undefined
203
+ assertParamExists('listProductDocuments', 'productSlug', productSlug)
204
+ const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
205
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
201
206
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
207
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
203
208
  let baseOptions;
@@ -239,6 +244,90 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
239
244
  localVarQueryParameter['expand'] = expand;
240
245
  }
241
246
 
247
+ if (filters !== undefined) {
248
+ localVarQueryParameter['filters'] = filters;
249
+ }
250
+
251
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
252
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
253
+ }
254
+
255
+
256
+
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
+
261
+ return {
262
+ url: toPathString(localVarUrlObj),
263
+ options: localVarRequestOptions,
264
+ };
265
+ },
266
+ /**
267
+ * 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.
268
+ * @summary List product documents
269
+ * @param {string} productSlug
270
+ * @param {string} [authorization] Bearer Token
271
+ * @param {number} [pageSize] Page size
272
+ * @param {string} [pageToken] Page token
273
+ * @param {string} [filter] List filter
274
+ * @param {string} [search] Search query
275
+ * @param {string} [order] Ordering criteria
276
+ * @param {string} [expand] Extra fields to fetch
277
+ * @param {string} [filters] List filters
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ listProductDocuments_1: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
282
+ // verify required parameter 'productSlug' is not null or undefined
283
+ assertParamExists('listProductDocuments_1', 'productSlug', productSlug)
284
+ const localVarPath = `/documentservice/v1/documents/product`
285
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
288
+ let baseOptions;
289
+ let baseAccessToken;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ baseAccessToken = configuration.accessToken;
293
+ }
294
+
295
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
296
+ const localVarHeaderParameter = {} as any;
297
+ const localVarQueryParameter = {} as any;
298
+
299
+ // authentication bearer required
300
+ // http bearer authentication required
301
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
302
+
303
+ if (pageSize !== undefined) {
304
+ localVarQueryParameter['pageSize'] = pageSize;
305
+ }
306
+
307
+ if (pageToken !== undefined) {
308
+ localVarQueryParameter['pageToken'] = pageToken;
309
+ }
310
+
311
+ if (filter !== undefined) {
312
+ localVarQueryParameter['filter'] = filter;
313
+ }
314
+
315
+ if (search !== undefined) {
316
+ localVarQueryParameter['search'] = search;
317
+ }
318
+
319
+ if (order !== undefined) {
320
+ localVarQueryParameter['order'] = order;
321
+ }
322
+
323
+ if (expand !== undefined) {
324
+ localVarQueryParameter['expand'] = expand;
325
+ }
326
+
327
+ if (filters !== undefined) {
328
+ localVarQueryParameter['filters'] = filters;
329
+ }
330
+
242
331
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
332
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
333
  }
@@ -357,6 +446,26 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
357
446
  /**
358
447
  * 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.
359
448
  * @summary List product documents
449
+ * @param {string} productSlug
450
+ * @param {string} [authorization] Bearer Token
451
+ * @param {number} [pageSize] Page size
452
+ * @param {string} [pageToken] Page token
453
+ * @param {string} [filter] List filter
454
+ * @param {string} [search] Search query
455
+ * @param {string} [order] Ordering criteria
456
+ * @param {string} [expand] Extra fields to fetch
457
+ * @param {string} [filters] List filters
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ 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>> {
462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
463
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
464
+ },
465
+ /**
466
+ * 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.
467
+ * @summary List product documents
468
+ * @param {string} productSlug
360
469
  * @param {string} [authorization] Bearer Token
361
470
  * @param {number} [pageSize] Page size
362
471
  * @param {string} [pageToken] Page token
@@ -364,11 +473,12 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
364
473
  * @param {string} [search] Search query
365
474
  * @param {string} [order] Ordering criteria
366
475
  * @param {string} [expand] Extra fields to fetch
476
+ * @param {string} [filters] List filters
367
477
  * @param {*} [options] Override http request option.
368
478
  * @throws {RequiredError}
369
479
  */
370
- async listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
371
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
480
+ async listProductDocuments_1(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>> {
481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
372
482
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
483
  },
374
484
  /**
@@ -433,6 +543,25 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
433
543
  /**
434
544
  * 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.
435
545
  * @summary List product documents
546
+ * @param {string} productSlug
547
+ * @param {string} [authorization] Bearer Token
548
+ * @param {number} [pageSize] Page size
549
+ * @param {string} [pageToken] Page token
550
+ * @param {string} [filter] List filter
551
+ * @param {string} [search] Search query
552
+ * @param {string} [order] Ordering criteria
553
+ * @param {string} [expand] Extra fields to fetch
554
+ * @param {string} [filters] List filters
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
559
+ return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
560
+ },
561
+ /**
562
+ * 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.
563
+ * @summary List product documents
564
+ * @param {string} productSlug
436
565
  * @param {string} [authorization] Bearer Token
437
566
  * @param {number} [pageSize] Page size
438
567
  * @param {string} [pageToken] Page token
@@ -440,11 +569,12 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
440
569
  * @param {string} [search] Search query
441
570
  * @param {string} [order] Ordering criteria
442
571
  * @param {string} [expand] Extra fields to fetch
572
+ * @param {string} [filters] List filters
443
573
  * @param {*} [options] Override http request option.
444
574
  * @throws {RequiredError}
445
575
  */
446
- listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
447
- return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
576
+ listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
577
+ return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
448
578
  },
449
579
  /**
450
580
  * Upload a product document.
@@ -551,6 +681,13 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
551
681
  * @interface ProductDocumentsApiListProductDocumentsRequest
552
682
  */
553
683
  export interface ProductDocumentsApiListProductDocumentsRequest {
684
+ /**
685
+ *
686
+ * @type {string}
687
+ * @memberof ProductDocumentsApiListProductDocuments
688
+ */
689
+ readonly productSlug: string
690
+
554
691
  /**
555
692
  * Bearer Token
556
693
  * @type {string}
@@ -599,6 +736,83 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
599
736
  * @memberof ProductDocumentsApiListProductDocuments
600
737
  */
601
738
  readonly expand?: string
739
+
740
+ /**
741
+ * List filters
742
+ * @type {string}
743
+ * @memberof ProductDocumentsApiListProductDocuments
744
+ */
745
+ readonly filters?: string
746
+ }
747
+
748
+ /**
749
+ * Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
750
+ * @export
751
+ * @interface ProductDocumentsApiListProductDocuments0Request
752
+ */
753
+ export interface ProductDocumentsApiListProductDocuments0Request {
754
+ /**
755
+ *
756
+ * @type {string}
757
+ * @memberof ProductDocumentsApiListProductDocuments0
758
+ */
759
+ readonly productSlug: string
760
+
761
+ /**
762
+ * Bearer Token
763
+ * @type {string}
764
+ * @memberof ProductDocumentsApiListProductDocuments0
765
+ */
766
+ readonly authorization?: string
767
+
768
+ /**
769
+ * Page size
770
+ * @type {number}
771
+ * @memberof ProductDocumentsApiListProductDocuments0
772
+ */
773
+ readonly pageSize?: number
774
+
775
+ /**
776
+ * Page token
777
+ * @type {string}
778
+ * @memberof ProductDocumentsApiListProductDocuments0
779
+ */
780
+ readonly pageToken?: string
781
+
782
+ /**
783
+ * List filter
784
+ * @type {string}
785
+ * @memberof ProductDocumentsApiListProductDocuments0
786
+ */
787
+ readonly filter?: string
788
+
789
+ /**
790
+ * Search query
791
+ * @type {string}
792
+ * @memberof ProductDocumentsApiListProductDocuments0
793
+ */
794
+ readonly search?: string
795
+
796
+ /**
797
+ * Ordering criteria
798
+ * @type {string}
799
+ * @memberof ProductDocumentsApiListProductDocuments0
800
+ */
801
+ readonly order?: string
802
+
803
+ /**
804
+ * Extra fields to fetch
805
+ * @type {string}
806
+ * @memberof ProductDocumentsApiListProductDocuments0
807
+ */
808
+ readonly expand?: string
809
+
810
+ /**
811
+ * List filters
812
+ * @type {string}
813
+ * @memberof ProductDocumentsApiListProductDocuments0
814
+ */
815
+ readonly filters?: string
602
816
  }
603
817
 
604
818
  /**
@@ -680,8 +894,20 @@ export class ProductDocumentsApi extends BaseAPI {
680
894
  * @throws {RequiredError}
681
895
  * @memberof ProductDocumentsApi
682
896
  */
683
- public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
684
- return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
897
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
898
+ return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
899
+ }
900
+
901
+ /**
902
+ * 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.
903
+ * @summary List product documents
904
+ * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ * @memberof ProductDocumentsApi
908
+ */
909
+ public listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig) {
910
+ return ProductDocumentsApiFp(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
685
911
  }
686
912
 
687
913
  /**
@@ -38,10 +38,11 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
38
38
  * @param {string} [search] Search query
39
39
  * @param {string} [order] Ordering criteria
40
40
  * @param {string} [expand] Extra fields to fetch
41
+ * @param {string} [filters] List filters
41
42
  * @param {*} [options] Override http request option.
42
43
  * @throws {RequiredError}
43
44
  */
44
- listSearchableDocumentOwners: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
+ listSearchableDocumentOwners: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
46
  const localVarPath = `/documentservice/v1/searchable-document-owners`;
46
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
48
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -84,6 +85,10 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
84
85
  localVarQueryParameter['expand'] = expand;
85
86
  }
86
87
 
88
+ if (filters !== undefined) {
89
+ localVarQueryParameter['filters'] = filters;
90
+ }
91
+
87
92
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
88
93
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
89
94
  }
@@ -119,11 +124,12 @@ export const SearchableDocumentOwnersApiFp = function(configuration?: Configurat
119
124
  * @param {string} [search] Search query
120
125
  * @param {string} [order] Ordering criteria
121
126
  * @param {string} [expand] Extra fields to fetch
127
+ * @param {string} [filters] List filters
122
128
  * @param {*} [options] Override http request option.
123
129
  * @throws {RequiredError}
124
130
  */
125
- async listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>> {
126
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options);
131
+ async listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>> {
132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
127
133
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
128
134
  },
129
135
  }
@@ -146,11 +152,12 @@ export const SearchableDocumentOwnersApiFactory = function (configuration?: Conf
146
152
  * @param {string} [search] Search query
147
153
  * @param {string} [order] Ordering criteria
148
154
  * @param {string} [expand] Extra fields to fetch
155
+ * @param {string} [filters] List filters
149
156
  * @param {*} [options] Override http request option.
150
157
  * @throws {RequiredError}
151
158
  */
152
- listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass> {
153
- return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
159
+ listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass> {
160
+ return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
154
161
  },
155
162
  };
156
163
  };
@@ -209,6 +216,13 @@ export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
209
216
  * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
210
217
  */
211
218
  readonly expand?: string
219
+
220
+ /**
221
+ * List filters
222
+ * @type {string}
223
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
224
+ */
225
+ readonly filters?: string
212
226
  }
213
227
 
214
228
  /**
@@ -227,6 +241,6 @@ export class SearchableDocumentOwnersApi extends BaseAPI {
227
241
  * @memberof SearchableDocumentOwnersApi
228
242
  */
229
243
  public listSearchableDocumentOwners(requestParameters: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest = {}, options?: AxiosRequestConfig) {
230
- return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
244
+ return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
231
245
  }
232
246
  }
package/base.ts CHANGED
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93