@emilgroup/document-sdk-node 1.11.3-beta.2 → 1.12.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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +12 -210
- package/dist/api/docx-templates-api.d.ts +4 -4
- package/dist/api/product-documents-api.d.ts +8 -126
- package/dist/api/product-documents-api.js +8 -141
- package/dist/models/create-document-request-dto.d.ts +12 -1
- package/dist/models/create-document-request-dto.js +11 -1
- package/dist/models/document-class.d.ts +12 -1
- package/dist/models/document-class.js +11 -1
- package/dist/models/docx-template-class.d.ts +12 -1
- package/dist/models/docx-template-class.js +11 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/product-document-class.d.ts +25 -2
- package/dist/models/product-document-class.js +24 -2
- package/dist/models/upload-docx-template-response-class.d.ts +30 -0
- package/dist/models/upload-docx-template-response-class.js +15 -0
- package/models/create-document-request-dto.ts +13 -1
- package/models/document-class.ts +13 -1
- package/models/docx-template-class.ts +15 -1
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +27 -3
- package/models/upload-docx-template-response-class.ts +36 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -77,6 +77,7 @@ models/update-html-template-dto.ts
|
|
|
77
77
|
models/update-layout-request-dto.ts
|
|
78
78
|
models/update-layout-response-class.ts
|
|
79
79
|
models/upload-docx-template-request-dto.ts
|
|
80
|
+
models/upload-docx-template-response-class.ts
|
|
80
81
|
models/upload-product-document-request-dto.ts
|
|
81
82
|
package.json
|
|
82
83
|
tsconfig.json
|
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.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.12.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.12.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -21,8 +21,6 @@ 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 { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
24
|
import { DeleteResponseClass } from '../models';
|
|
27
25
|
// @ts-ignore
|
|
28
26
|
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
@@ -36,6 +34,8 @@ import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
|
36
34
|
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UploadDocxTemplateResponseClass } from '../models';
|
|
39
39
|
// URLSearchParams not necessarily used
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -434,7 +434,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
434
434
|
* @param {*} [options] Override http request option.
|
|
435
435
|
* @throws {RequiredError}
|
|
436
436
|
*/
|
|
437
|
-
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
437
|
+
async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadDocxTemplateResponseClass>> {
|
|
438
438
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
|
|
439
439
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
440
440
|
},
|
|
@@ -517,7 +517,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
517
517
|
* @param {*} [options] Override http request option.
|
|
518
518
|
* @throws {RequiredError}
|
|
519
519
|
*/
|
|
520
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
520
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UploadDocxTemplateResponseClass> {
|
|
521
521
|
return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
522
522
|
},
|
|
523
523
|
};
|
|
@@ -21,14 +21,14 @@ 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 { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
24
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
25
|
// @ts-ignore
|
|
28
26
|
import { GetProductDocumentResponseClass } from '../models';
|
|
29
27
|
// @ts-ignore
|
|
30
28
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
31
29
|
// @ts-ignore
|
|
30
|
+
import { ProductDocumentClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
32
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
33
33
|
// URLSearchParams not necessarily used
|
|
34
34
|
// @ts-ignore
|
|
@@ -190,82 +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
|
-
* @param {string} [authorization] Bearer Token
|
|
195
|
-
* @param {number} [pageSize] Page size
|
|
196
|
-
* @param {string} [pageToken] Page token
|
|
197
|
-
* @param {string} [filter] List filter
|
|
198
|
-
* @param {string} [search] Search query
|
|
199
|
-
* @param {string} [order] Ordering criteria
|
|
200
|
-
* @param {string} [expand] Extra fields to fetch
|
|
201
|
-
* @param {*} [options] Override http request option.
|
|
202
|
-
* @throws {RequiredError}
|
|
203
|
-
*/
|
|
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
193
|
* @param {string} [authorization] Bearer Token
|
|
270
194
|
* @param {number} [pageSize] Page size
|
|
271
195
|
* @param {string} [pageToken] Page token
|
|
@@ -276,11 +200,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
276
200
|
* @param {*} [options] Override http request option.
|
|
277
201
|
* @throws {RequiredError}
|
|
278
202
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
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(
|
|
455
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(
|
|
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
|
/**
|
|
@@ -482,7 +384,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
482
384
|
* @param {*} [options] Override http request option.
|
|
483
385
|
* @throws {RequiredError}
|
|
484
386
|
*/
|
|
485
|
-
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
387
|
+
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>> {
|
|
486
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
|
|
487
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
488
390
|
},
|
|
@@ -535,7 +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
440
|
* @param {string} [authorization] Bearer Token
|
|
540
441
|
* @param {number} [pageSize] Page size
|
|
541
442
|
* @param {string} [pageToken] Page token
|
|
@@ -546,25 +447,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
546
447
|
* @param {*} [options] Override http request option.
|
|
547
448
|
* @throws {RequiredError}
|
|
548
449
|
*/
|
|
549
|
-
listProductDocuments(
|
|
550
|
-
return localVarFp.listProductDocuments(
|
|
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
|
-
* @param {string} [authorization] Bearer Token
|
|
557
|
-
* @param {number} [pageSize] Page size
|
|
558
|
-
* @param {string} [pageToken] Page token
|
|
559
|
-
* @param {string} [filter] List filter
|
|
560
|
-
* @param {string} [search] Search query
|
|
561
|
-
* @param {string} [order] Ordering criteria
|
|
562
|
-
* @param {string} [expand] Extra fields to fetch
|
|
563
|
-
* @param {*} [options] Override http request option.
|
|
564
|
-
* @throws {RequiredError}
|
|
565
|
-
*/
|
|
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.
|
|
@@ -575,7 +459,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
575
459
|
* @param {*} [options] Override http request option.
|
|
576
460
|
* @throws {RequiredError}
|
|
577
461
|
*/
|
|
578
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
462
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass> {
|
|
579
463
|
return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
580
464
|
},
|
|
581
465
|
};
|
|
@@ -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.
|
|
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
|
/**
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
15
|
import { DeleteResponseClass } from '../models';
|
|
17
16
|
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
18
17
|
import { GetDocxTemplateResponseClass } from '../models';
|
|
@@ -20,6 +19,7 @@ import { ListDocxTemplatesResponseClass } from '../models';
|
|
|
20
19
|
import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
21
20
|
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
22
21
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
22
|
+
import { UploadDocxTemplateResponseClass } from '../models';
|
|
23
23
|
/**
|
|
24
24
|
* DocxTemplatesApi - axios parameter creator
|
|
25
25
|
* @export
|
|
@@ -150,7 +150,7 @@ export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
|
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
152
152
|
*/
|
|
153
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
153
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadDocxTemplateResponseClass>>;
|
|
154
154
|
};
|
|
155
155
|
/**
|
|
156
156
|
* DocxTemplatesApi - factory interface
|
|
@@ -216,7 +216,7 @@ export declare const DocxTemplatesApiFactory: (configuration?: Configuration, ba
|
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
217
217
|
* @throws {RequiredError}
|
|
218
218
|
*/
|
|
219
|
-
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
219
|
+
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UploadDocxTemplateResponseClass>;
|
|
220
220
|
};
|
|
221
221
|
/**
|
|
222
222
|
* Request parameters for deleteDocxTemplate operation in DocxTemplatesApi.
|
|
@@ -428,5 +428,5 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
428
428
|
* @throws {RequiredError}
|
|
429
429
|
* @memberof DocxTemplatesApi
|
|
430
430
|
*/
|
|
431
|
-
uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
431
|
+
uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadDocxTemplateResponseClass, any>>;
|
|
432
432
|
}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
15
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
17
16
|
import { GetProductDocumentResponseClass } from '../models';
|
|
18
17
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
18
|
+
import { ProductDocumentClass } from '../models';
|
|
19
19
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ProductDocumentsApi - axios parameter creator
|
|
@@ -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
|
-
|
|
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(
|
|
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
|
|
@@ -167,7 +135,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
167
135
|
* @param {*} [options] Override http request option.
|
|
168
136
|
* @throws {RequiredError}
|
|
169
137
|
*/
|
|
170
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
138
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>>;
|
|
171
139
|
};
|
|
172
140
|
/**
|
|
173
141
|
* ProductDocumentsApi - factory interface
|
|
@@ -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(
|
|
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
|
|
@@ -243,7 +195,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
243
195
|
* @param {*} [options] Override http request option.
|
|
244
196
|
* @throws {RequiredError}
|
|
245
197
|
*/
|
|
246
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
198
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass>;
|
|
247
199
|
};
|
|
248
200
|
/**
|
|
249
201
|
* Request parameters for deleteProductDocument operation in ProductDocumentsApi.
|
|
@@ -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
|
|
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
|
|
@@ -515,5 +397,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
515
397
|
* @throws {RequiredError}
|
|
516
398
|
* @memberof ProductDocumentsApi
|
|
517
399
|
*/
|
|
518
|
-
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
400
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductDocumentClass, any>>;
|
|
519
401
|
}
|