@emilgroup/document-sdk-node 1.12.2 → 1.16.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-node@1.12.2 --save
20
+ npm install @emilgroup/document-sdk-node@1.16.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.12.2
24
+ yarn add @emilgroup/document-sdk-node@1.16.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -190,7 +190,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
190
190
  /**
191
191
  * 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.
192
192
  * @summary List product documents
193
- * @param {string} productSlug
194
193
  * @param {string} [authorization] Bearer Token
195
194
  * @param {number} [pageSize] Page size
196
195
  * @param {string} [pageToken] Page token
@@ -201,86 +200,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
201
200
  * @param {*} [options] Override http request option.
202
201
  * @throws {RequiredError}
203
202
  */
204
- listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
- // verify required parameter 'productSlug' is not null or undefined
206
- assertParamExists('listProductDocuments', 'productSlug', productSlug)
207
- const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
208
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
209
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
211
- let baseOptions;
212
- let baseAccessToken;
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- baseAccessToken = configuration.accessToken;
216
- }
217
-
218
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
219
- const localVarHeaderParameter = {} as any;
220
- const localVarQueryParameter = {} as any;
221
-
222
- // authentication bearer required
223
- // http bearer authentication required
224
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
225
-
226
- if (pageSize !== undefined) {
227
- localVarQueryParameter['pageSize'] = pageSize;
228
- }
229
-
230
- if (pageToken !== undefined) {
231
- localVarQueryParameter['pageToken'] = pageToken;
232
- }
233
-
234
- if (filter !== undefined) {
235
- localVarQueryParameter['filter'] = filter;
236
- }
237
-
238
- if (search !== undefined) {
239
- localVarQueryParameter['search'] = search;
240
- }
241
-
242
- if (order !== undefined) {
243
- localVarQueryParameter['order'] = order;
244
- }
245
-
246
- if (expand !== undefined) {
247
- localVarQueryParameter['expand'] = expand;
248
- }
249
-
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
- }
253
-
254
-
255
-
256
- setSearchParams(localVarUrlObj, localVarQueryParameter);
257
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
-
260
- return {
261
- url: toPathString(localVarUrlObj),
262
- options: localVarRequestOptions,
263
- };
264
- },
265
- /**
266
- * 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.
267
- * @summary List product documents
268
- * @param {string} productSlug
269
- * @param {string} [authorization] Bearer Token
270
- * @param {number} [pageSize] Page size
271
- * @param {string} [pageToken] Page token
272
- * @param {string} [filter] List filter
273
- * @param {string} [search] Search query
274
- * @param {string} [order] Ordering criteria
275
- * @param {string} [expand] Extra fields to fetch
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- */
279
- listProductDocuments_1: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
- // verify required parameter 'productSlug' is not null or undefined
281
- assertParamExists('listProductDocuments_1', 'productSlug', productSlug)
282
- const localVarPath = `/documentservice/v1/documents/product`
283
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
203
+ listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ const localVarPath = `/documentservice/v1/documents/product`;
284
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
207
  let baseOptions;
@@ -440,7 +361,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
440
361
  /**
441
362
  * 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.
442
363
  * @summary List product documents
443
- * @param {string} productSlug
444
364
  * @param {string} [authorization] Bearer Token
445
365
  * @param {number} [pageSize] Page size
446
366
  * @param {string} [pageToken] Page token
@@ -451,26 +371,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
451
371
  * @param {*} [options] Override http request option.
452
372
  * @throws {RequiredError}
453
373
  */
454
- async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
455
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
456
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
457
- },
458
- /**
459
- * 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.
460
- * @summary List product documents
461
- * @param {string} productSlug
462
- * @param {string} [authorization] Bearer Token
463
- * @param {number} [pageSize] Page size
464
- * @param {string} [pageToken] Page token
465
- * @param {string} [filter] List filter
466
- * @param {string} [search] Search query
467
- * @param {string} [order] Ordering criteria
468
- * @param {string} [expand] Extra fields to fetch
469
- * @param {*} [options] Override http request option.
470
- * @throws {RequiredError}
471
- */
472
- async listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
473
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
374
+ 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>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
474
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
475
377
  },
476
378
  /**
@@ -535,24 +437,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
535
437
  /**
536
438
  * 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.
537
439
  * @summary List product documents
538
- * @param {string} productSlug
539
- * @param {string} [authorization] Bearer Token
540
- * @param {number} [pageSize] Page size
541
- * @param {string} [pageToken] Page token
542
- * @param {string} [filter] List filter
543
- * @param {string} [search] Search query
544
- * @param {string} [order] Ordering criteria
545
- * @param {string} [expand] Extra fields to fetch
546
- * @param {*} [options] Override http request option.
547
- * @throws {RequiredError}
548
- */
549
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
550
- return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
551
- },
552
- /**
553
- * 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.
554
- * @summary List product documents
555
- * @param {string} productSlug
556
440
  * @param {string} [authorization] Bearer Token
557
441
  * @param {number} [pageSize] Page size
558
442
  * @param {string} [pageToken] Page token
@@ -563,8 +447,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
563
447
  * @param {*} [options] Override http request option.
564
448
  * @throws {RequiredError}
565
449
  */
566
- listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
567
- return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
450
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
451
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
568
452
  },
569
453
  /**
570
454
  * Upload a product document.
@@ -671,13 +555,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
671
555
  * @interface ProductDocumentsApiListProductDocumentsRequest
672
556
  */
673
557
  export interface ProductDocumentsApiListProductDocumentsRequest {
674
- /**
675
- *
676
- * @type {string}
677
- * @memberof ProductDocumentsApiListProductDocuments
678
- */
679
- readonly productSlug: string
680
-
681
558
  /**
682
559
  * Bearer Token
683
560
  * @type {string}
@@ -728,69 +605,6 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
728
605
  readonly expand?: string
729
606
  }
730
607
 
731
- /**
732
- * Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
733
- * @export
734
- * @interface ProductDocumentsApiListProductDocuments0Request
735
- */
736
- export interface ProductDocumentsApiListProductDocuments0Request {
737
- /**
738
- *
739
- * @type {string}
740
- * @memberof ProductDocumentsApiListProductDocuments0
741
- */
742
- readonly productSlug: string
743
-
744
- /**
745
- * Bearer Token
746
- * @type {string}
747
- * @memberof ProductDocumentsApiListProductDocuments0
748
- */
749
- readonly authorization?: string
750
-
751
- /**
752
- * Page size
753
- * @type {number}
754
- * @memberof ProductDocumentsApiListProductDocuments0
755
- */
756
- readonly pageSize?: number
757
-
758
- /**
759
- * Page token
760
- * @type {string}
761
- * @memberof ProductDocumentsApiListProductDocuments0
762
- */
763
- readonly pageToken?: string
764
-
765
- /**
766
- * List filter
767
- * @type {string}
768
- * @memberof ProductDocumentsApiListProductDocuments0
769
- */
770
- readonly filter?: string
771
-
772
- /**
773
- * Search query
774
- * @type {string}
775
- * @memberof ProductDocumentsApiListProductDocuments0
776
- */
777
- readonly search?: string
778
-
779
- /**
780
- * Ordering criteria
781
- * @type {string}
782
- * @memberof ProductDocumentsApiListProductDocuments0
783
- */
784
- readonly order?: string
785
-
786
- /**
787
- * Extra fields to fetch
788
- * @type {string}
789
- * @memberof ProductDocumentsApiListProductDocuments0
790
- */
791
- readonly expand?: string
792
- }
793
-
794
608
  /**
795
609
  * Request parameters for uploadProductDocument operation in ProductDocumentsApi.
796
610
  * @export
@@ -870,20 +684,8 @@ export class ProductDocumentsApi extends BaseAPI {
870
684
  * @throws {RequiredError}
871
685
  * @memberof ProductDocumentsApi
872
686
  */
873
- public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
874
- return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
875
- }
876
-
877
- /**
878
- * 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.
879
- * @summary List product documents
880
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
881
- * @param {*} [options] Override http request option.
882
- * @throws {RequiredError}
883
- * @memberof ProductDocumentsApi
884
- */
885
- public listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig) {
886
- return ProductDocumentsApiFp(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
687
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
688
+ 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));
887
689
  }
888
690
 
889
691
  /**
@@ -55,22 +55,6 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
55
55
  /**
56
56
  * 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.
57
57
  * @summary List product documents
58
- * @param {string} productSlug
59
- * @param {string} [authorization] Bearer Token
60
- * @param {number} [pageSize] Page size
61
- * @param {string} [pageToken] Page token
62
- * @param {string} [filter] List filter
63
- * @param {string} [search] Search query
64
- * @param {string} [order] Ordering criteria
65
- * @param {string} [expand] Extra fields to fetch
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- listProductDocuments: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
- /**
71
- * 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.
72
- * @summary List product documents
73
- * @param {string} productSlug
74
58
  * @param {string} [authorization] Bearer Token
75
59
  * @param {number} [pageSize] Page size
76
60
  * @param {string} [pageToken] Page token
@@ -81,7 +65,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
81
65
  * @param {*} [options] Override http request option.
82
66
  * @throws {RequiredError}
83
67
  */
84
- listProductDocuments_1: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listProductDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
85
69
  /**
86
70
  * Upload a product document.
87
71
  * @summary Create the product document
@@ -131,7 +115,6 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
131
115
  /**
132
116
  * 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.
133
117
  * @summary List product documents
134
- * @param {string} productSlug
135
118
  * @param {string} [authorization] Bearer Token
136
119
  * @param {number} [pageSize] Page size
137
120
  * @param {string} [pageToken] Page token
@@ -142,22 +125,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
142
125
  * @param {*} [options] Override http request option.
143
126
  * @throws {RequiredError}
144
127
  */
145
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
146
- /**
147
- * 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.
148
- * @summary List product documents
149
- * @param {string} productSlug
150
- * @param {string} [authorization] Bearer Token
151
- * @param {number} [pageSize] Page size
152
- * @param {string} [pageToken] Page token
153
- * @param {string} [filter] List filter
154
- * @param {string} [search] Search query
155
- * @param {string} [order] Ordering criteria
156
- * @param {string} [expand] Extra fields to fetch
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- */
160
- listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
128
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
161
129
  /**
162
130
  * Upload a product document.
163
131
  * @summary Create the product document
@@ -207,7 +175,6 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
207
175
  /**
208
176
  * 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.
209
177
  * @summary List product documents
210
- * @param {string} productSlug
211
178
  * @param {string} [authorization] Bearer Token
212
179
  * @param {number} [pageSize] Page size
213
180
  * @param {string} [pageToken] Page token
@@ -218,22 +185,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
218
185
  * @param {*} [options] Override http request option.
219
186
  * @throws {RequiredError}
220
187
  */
221
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
222
- /**
223
- * 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.
224
- * @summary List product documents
225
- * @param {string} productSlug
226
- * @param {string} [authorization] Bearer Token
227
- * @param {number} [pageSize] Page size
228
- * @param {string} [pageToken] Page token
229
- * @param {string} [filter] List filter
230
- * @param {string} [search] Search query
231
- * @param {string} [order] Ordering criteria
232
- * @param {string} [expand] Extra fields to fetch
233
- * @param {*} [options] Override http request option.
234
- * @throws {RequiredError}
235
- */
236
- listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
188
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
237
189
  /**
238
190
  * Upload a product document.
239
191
  * @summary Create the product document
@@ -326,12 +278,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
326
278
  * @interface ProductDocumentsApiListProductDocumentsRequest
327
279
  */
328
280
  export interface ProductDocumentsApiListProductDocumentsRequest {
329
- /**
330
- *
331
- * @type {string}
332
- * @memberof ProductDocumentsApiListProductDocuments
333
- */
334
- readonly productSlug: string;
335
281
  /**
336
282
  * Bearer Token
337
283
  * @type {string}
@@ -375,61 +321,6 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
375
321
  */
376
322
  readonly expand?: string;
377
323
  }
378
- /**
379
- * Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
380
- * @export
381
- * @interface ProductDocumentsApiListProductDocuments0Request
382
- */
383
- export interface ProductDocumentsApiListProductDocuments0Request {
384
- /**
385
- *
386
- * @type {string}
387
- * @memberof ProductDocumentsApiListProductDocuments0
388
- */
389
- readonly productSlug: string;
390
- /**
391
- * Bearer Token
392
- * @type {string}
393
- * @memberof ProductDocumentsApiListProductDocuments0
394
- */
395
- readonly authorization?: string;
396
- /**
397
- * Page size
398
- * @type {number}
399
- * @memberof ProductDocumentsApiListProductDocuments0
400
- */
401
- readonly pageSize?: number;
402
- /**
403
- * Page token
404
- * @type {string}
405
- * @memberof ProductDocumentsApiListProductDocuments0
406
- */
407
- readonly pageToken?: string;
408
- /**
409
- * List filter
410
- * @type {string}
411
- * @memberof ProductDocumentsApiListProductDocuments0
412
- */
413
- readonly filter?: string;
414
- /**
415
- * Search query
416
- * @type {string}
417
- * @memberof ProductDocumentsApiListProductDocuments0
418
- */
419
- readonly search?: string;
420
- /**
421
- * Ordering criteria
422
- * @type {string}
423
- * @memberof ProductDocumentsApiListProductDocuments0
424
- */
425
- readonly order?: string;
426
- /**
427
- * Extra fields to fetch
428
- * @type {string}
429
- * @memberof ProductDocumentsApiListProductDocuments0
430
- */
431
- readonly expand?: string;
432
- }
433
324
  /**
434
325
  * Request parameters for uploadProductDocument operation in ProductDocumentsApi.
435
326
  * @export
@@ -497,16 +388,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
497
388
  * @throws {RequiredError}
498
389
  * @memberof ProductDocumentsApi
499
390
  */
500
- listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
501
- /**
502
- * 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.
503
- * @summary List product documents
504
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
505
- * @param {*} [options] Override http request option.
506
- * @throws {RequiredError}
507
- * @memberof ProductDocumentsApi
508
- */
509
- listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
391
+ listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
510
392
  /**
511
393
  * Upload a product document.
512
394
  * @summary Create the product document
@@ -255,79 +255,6 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
255
255
  /**
256
256
  * 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.
257
257
  * @summary List product documents
258
- * @param {string} productSlug
259
- * @param {string} [authorization] Bearer Token
260
- * @param {number} [pageSize] Page size
261
- * @param {string} [pageToken] Page token
262
- * @param {string} [filter] List filter
263
- * @param {string} [search] Search query
264
- * @param {string} [order] Ordering criteria
265
- * @param {string} [expand] Extra fields to fetch
266
- * @param {*} [options] Override http request option.
267
- * @throws {RequiredError}
268
- */
269
- listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
270
- if (options === void 0) { options = {}; }
271
- return __awaiter(_this, void 0, void 0, function () {
272
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
273
- return __generator(this, function (_a) {
274
- switch (_a.label) {
275
- case 0:
276
- // verify required parameter 'productSlug' is not null or undefined
277
- (0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
278
- localVarPath = "/documentservice/v1/documents/product/{productSlug}"
279
- .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
280
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
281
- if (configuration) {
282
- baseOptions = configuration.baseOptions;
283
- baseAccessToken = configuration.accessToken;
284
- }
285
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
286
- localVarHeaderParameter = {};
287
- localVarQueryParameter = {};
288
- // authentication bearer required
289
- // http bearer authentication required
290
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
291
- case 1:
292
- // authentication bearer required
293
- // http bearer authentication required
294
- _a.sent();
295
- if (pageSize !== undefined) {
296
- localVarQueryParameter['pageSize'] = pageSize;
297
- }
298
- if (pageToken !== undefined) {
299
- localVarQueryParameter['pageToken'] = pageToken;
300
- }
301
- if (filter !== undefined) {
302
- localVarQueryParameter['filter'] = filter;
303
- }
304
- if (search !== undefined) {
305
- localVarQueryParameter['search'] = search;
306
- }
307
- if (order !== undefined) {
308
- localVarQueryParameter['order'] = order;
309
- }
310
- if (expand !== undefined) {
311
- localVarQueryParameter['expand'] = expand;
312
- }
313
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
314
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
- }
316
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
317
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
318
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
319
- return [2 /*return*/, {
320
- url: (0, common_1.toPathString)(localVarUrlObj),
321
- options: localVarRequestOptions,
322
- }];
323
- }
324
- });
325
- });
326
- },
327
- /**
328
- * 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.
329
- * @summary List product documents
330
- * @param {string} productSlug
331
258
  * @param {string} [authorization] Bearer Token
332
259
  * @param {number} [pageSize] Page size
333
260
  * @param {string} [pageToken] Page token
@@ -338,17 +265,14 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
338
265
  * @param {*} [options] Override http request option.
339
266
  * @throws {RequiredError}
340
267
  */
341
- listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
268
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
342
269
  if (options === void 0) { options = {}; }
343
270
  return __awaiter(_this, void 0, void 0, function () {
344
271
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
345
272
  return __generator(this, function (_a) {
346
273
  switch (_a.label) {
347
274
  case 0:
348
- // verify required parameter 'productSlug' is not null or undefined
349
- (0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
350
- localVarPath = "/documentservice/v1/documents/product"
351
- .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
275
+ localVarPath = "/documentservice/v1/documents/product";
352
276
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
353
277
  if (configuration) {
354
278
  baseOptions = configuration.baseOptions;
@@ -528,34 +452,6 @@ var ProductDocumentsApiFp = function (configuration) {
528
452
  /**
529
453
  * 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.
530
454
  * @summary List product documents
531
- * @param {string} productSlug
532
- * @param {string} [authorization] Bearer Token
533
- * @param {number} [pageSize] Page size
534
- * @param {string} [pageToken] Page token
535
- * @param {string} [filter] List filter
536
- * @param {string} [search] Search query
537
- * @param {string} [order] Ordering criteria
538
- * @param {string} [expand] Extra fields to fetch
539
- * @param {*} [options] Override http request option.
540
- * @throws {RequiredError}
541
- */
542
- listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
543
- return __awaiter(this, void 0, void 0, function () {
544
- var localVarAxiosArgs;
545
- return __generator(this, function (_a) {
546
- switch (_a.label) {
547
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
548
- case 1:
549
- localVarAxiosArgs = _a.sent();
550
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
551
- }
552
- });
553
- });
554
- },
555
- /**
556
- * 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.
557
- * @summary List product documents
558
- * @param {string} productSlug
559
455
  * @param {string} [authorization] Bearer Token
560
456
  * @param {number} [pageSize] Page size
561
457
  * @param {string} [pageToken] Page token
@@ -566,12 +462,12 @@ var ProductDocumentsApiFp = function (configuration) {
566
462
  * @param {*} [options] Override http request option.
567
463
  * @throws {RequiredError}
568
464
  */
569
- listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
465
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
570
466
  return __awaiter(this, void 0, void 0, function () {
571
467
  var localVarAxiosArgs;
572
468
  return __generator(this, function (_a) {
573
469
  switch (_a.label) {
574
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
470
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
575
471
  case 1:
576
472
  localVarAxiosArgs = _a.sent();
577
473
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -650,7 +546,6 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
650
546
  /**
651
547
  * 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.
652
548
  * @summary List product documents
653
- * @param {string} productSlug
654
549
  * @param {string} [authorization] Bearer Token
655
550
  * @param {number} [pageSize] Page size
656
551
  * @param {string} [pageToken] Page token
@@ -661,25 +556,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
661
556
  * @param {*} [options] Override http request option.
662
557
  * @throws {RequiredError}
663
558
  */
664
- listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
665
- return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
666
- },
667
- /**
668
- * 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.
669
- * @summary List product documents
670
- * @param {string} productSlug
671
- * @param {string} [authorization] Bearer Token
672
- * @param {number} [pageSize] Page size
673
- * @param {string} [pageToken] Page token
674
- * @param {string} [filter] List filter
675
- * @param {string} [search] Search query
676
- * @param {string} [order] Ordering criteria
677
- * @param {string} [expand] Extra fields to fetch
678
- * @param {*} [options] Override http request option.
679
- * @throws {RequiredError}
680
- */
681
- listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
682
- return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
559
+ listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
560
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
683
561
  },
684
562
  /**
685
563
  * Upload a product document.
@@ -753,19 +631,8 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
753
631
  */
754
632
  ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
755
633
  var _this = this;
756
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
757
- };
758
- /**
759
- * 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.
760
- * @summary List product documents
761
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
762
- * @param {*} [options] Override http request option.
763
- * @throws {RequiredError}
764
- * @memberof ProductDocumentsApi
765
- */
766
- ProductDocumentsApi.prototype.listProductDocuments_1 = function (requestParameters, options) {
767
- var _this = this;
768
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
634
+ if (requestParameters === void 0) { requestParameters = {}; }
635
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
769
636
  };
770
637
  /**
771
638
  * Upload a product document.
@@ -64,7 +64,7 @@ export interface DocxTemplateClass {
64
64
  */
65
65
  'entityType': string;
66
66
  /**
67
- * Name of the file the end user will see when he downloads it.
67
+ * Name of the file the end user will see when they downloads it.
68
68
  * @type {string}
69
69
  * @memberof DocxTemplateClass
70
70
  */
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: object; }; }}
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: object;
31
+ [key: string]: string;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: object; }; }}
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: object;
41
+ [key: string]: string;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: object; }; }}
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: object;
51
+ [key: string]: string;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: object; }; }}
26
+ * @type {{ [key: string]: { [key: string]: string; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: object;
31
+ [key: string]: string;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: object; }; }}
36
+ * @type {{ [key: string]: { [key: string]: string; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: object;
41
+ [key: string]: string;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: object; }; }}
46
+ * @type {{ [key: string]: { [key: string]: string; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: object;
51
+ [key: string]: string;
52
52
  };
53
53
  };
54
54
  }
@@ -76,7 +76,7 @@ export interface ProductDocumentClass {
76
76
  */
77
77
  'entityType': string;
78
78
  /**
79
- * The file name the end user will see when downloading it.
79
+ * Name of the file the end user will see when they downloads it.
80
80
  * @type {string}
81
81
  * @memberof ProductDocumentClass
82
82
  */
@@ -69,7 +69,7 @@ export interface DocxTemplateClass {
69
69
  */
70
70
  'entityType': string;
71
71
  /**
72
- * Name of the file the end user will see when he downloads it.
72
+ * Name of the file the end user will see when they downloads it.
73
73
  * @type {string}
74
74
  * @memberof DocxTemplateClass
75
75
  */
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: object; }; }}
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
32
  * @memberof InlineResponse200
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: object; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: object; }; }}
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
38
  * @memberof InlineResponse200
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: object; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: object; }; }}
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
44
  * @memberof InlineResponse200
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: object; }; };
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
47
  }
48
48
 
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: object; }; }}
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: object; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: object; }; }}
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: object; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: object; }; }}
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: object; }; };
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
47
  }
48
48
 
@@ -81,7 +81,7 @@ export interface ProductDocumentClass {
81
81
  */
82
82
  'entityType': string;
83
83
  /**
84
- * The file name the end user will see when downloading it.
84
+ * Name of the file the end user will see when they downloads it.
85
85
  * @type {string}
86
86
  * @memberof ProductDocumentClass
87
87
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.12.2",
3
+ "version": "1.16.0",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [