@emilgroup/document-sdk-node 1.12.0 → 1.12.2
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 +0 -1
- package/README.md +2 -2
- package/api/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +210 -12
- package/dist/api/docx-templates-api.d.ts +4 -4
- package/dist/api/product-documents-api.d.ts +126 -8
- package/dist/api/product-documents-api.js +141 -8
- package/dist/models/create-document-request-dto.d.ts +1 -12
- package/dist/models/create-document-request-dto.js +1 -11
- package/dist/models/document-class.d.ts +1 -12
- package/dist/models/document-class.js +1 -11
- package/dist/models/docx-template-class.d.ts +1 -12
- package/dist/models/docx-template-class.js +0 -11
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- 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 +8 -25
- package/dist/models/product-document-class.js +2 -24
- package/models/create-document-request-dto.ts +1 -13
- package/models/document-class.ts +1 -13
- package/models/docx-template-class.ts +1 -15
- package/models/index.ts +0 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +9 -27
- package/package.json +1 -1
- package/dist/models/upload-docx-template-response-class.d.ts +0 -30
- package/dist/models/upload-docx-template-response-class.js +0 -15
- package/models/upload-docx-template-response-class.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -77,7 +77,6 @@ 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
|
|
81
80
|
models/upload-product-document-request-dto.ts
|
|
82
81
|
package.json
|
|
83
82
|
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.12.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.12.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.12.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.12.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { DeleteResponseClass } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
@@ -34,8 +36,6 @@ import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
|
34
36
|
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
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<CreatePresignedPostResponseClass>> {
|
|
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<CreatePresignedPostResponseClass> {
|
|
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
|
|
24
26
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { GetProductDocumentResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
29
31
|
// @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,6 +190,82 @@ 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
|
|
193
269
|
* @param {string} [authorization] Bearer Token
|
|
194
270
|
* @param {number} [pageSize] Page size
|
|
195
271
|
* @param {string} [pageToken] Page token
|
|
@@ -200,8 +276,11 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
200
276
|
* @param {*} [options] Override http request option.
|
|
201
277
|
* @throws {RequiredError}
|
|
202
278
|
*/
|
|
203
|
-
|
|
204
|
-
|
|
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)));
|
|
205
284
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
285
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
207
286
|
let baseOptions;
|
|
@@ -361,6 +440,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
361
440
|
/**
|
|
362
441
|
* 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.
|
|
363
442
|
* @summary List product documents
|
|
443
|
+
* @param {string} productSlug
|
|
364
444
|
* @param {string} [authorization] Bearer Token
|
|
365
445
|
* @param {number} [pageSize] Page size
|
|
366
446
|
* @param {string} [pageToken] Page token
|
|
@@ -371,8 +451,26 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
371
451
|
* @param {*} [options] Override http request option.
|
|
372
452
|
* @throws {RequiredError}
|
|
373
453
|
*/
|
|
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);
|
|
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);
|
|
376
474
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
475
|
},
|
|
378
476
|
/**
|
|
@@ -384,7 +482,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
384
482
|
* @param {*} [options] Override http request option.
|
|
385
483
|
* @throws {RequiredError}
|
|
386
484
|
*/
|
|
387
|
-
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
485
|
+
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
388
486
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
|
|
389
487
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
488
|
},
|
|
@@ -437,6 +535,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
437
535
|
/**
|
|
438
536
|
* 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.
|
|
439
537
|
* @summary List product documents
|
|
538
|
+
* @param {string} productSlug
|
|
440
539
|
* @param {string} [authorization] Bearer Token
|
|
441
540
|
* @param {number} [pageSize] Page size
|
|
442
541
|
* @param {string} [pageToken] Page token
|
|
@@ -447,8 +546,25 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
447
546
|
* @param {*} [options] Override http request option.
|
|
448
547
|
* @throws {RequiredError}
|
|
449
548
|
*/
|
|
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));
|
|
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
|
+
* @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));
|
|
452
568
|
},
|
|
453
569
|
/**
|
|
454
570
|
* Upload a product document.
|
|
@@ -459,7 +575,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
459
575
|
* @param {*} [options] Override http request option.
|
|
460
576
|
* @throws {RequiredError}
|
|
461
577
|
*/
|
|
462
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
578
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
463
579
|
return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
464
580
|
},
|
|
465
581
|
};
|
|
@@ -555,6 +671,13 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
555
671
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
556
672
|
*/
|
|
557
673
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @type {string}
|
|
677
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
678
|
+
*/
|
|
679
|
+
readonly productSlug: string
|
|
680
|
+
|
|
558
681
|
/**
|
|
559
682
|
* Bearer Token
|
|
560
683
|
* @type {string}
|
|
@@ -605,6 +728,69 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
605
728
|
readonly expand?: string
|
|
606
729
|
}
|
|
607
730
|
|
|
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
|
+
|
|
608
794
|
/**
|
|
609
795
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
610
796
|
* @export
|
|
@@ -684,8 +870,20 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
684
870
|
* @throws {RequiredError}
|
|
685
871
|
* @memberof ProductDocumentsApi
|
|
686
872
|
*/
|
|
687
|
-
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest
|
|
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));
|
|
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));
|
|
689
887
|
}
|
|
690
888
|
|
|
691
889
|
/**
|
|
@@ -12,6 +12,7 @@
|
|
|
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';
|
|
15
16
|
import { DeleteResponseClass } from '../models';
|
|
16
17
|
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
17
18
|
import { GetDocxTemplateResponseClass } from '../models';
|
|
@@ -19,7 +20,6 @@ import { ListDocxTemplatesResponseClass } from '../models';
|
|
|
19
20
|
import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
20
21
|
import { UpdateDocxTemplateResponseClass } from '../models';
|
|
21
22
|
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<CreatePresignedPostResponseClass>>;
|
|
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<CreatePresignedPostResponseClass>;
|
|
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<CreatePresignedPostResponseClass, 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';
|
|
15
16
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
16
17
|
import { GetProductDocumentResponseClass } from '../models';
|
|
17
18
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
18
|
-
import { ProductDocumentClass } from '../models';
|
|
19
19
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ProductDocumentsApi - axios parameter creator
|
|
@@ -55,6 +55,22 @@ 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
|
|
58
74
|
* @param {string} [authorization] Bearer Token
|
|
59
75
|
* @param {number} [pageSize] Page size
|
|
60
76
|
* @param {string} [pageToken] Page token
|
|
@@ -65,7 +81,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
65
81
|
* @param {*} [options] Override http request option.
|
|
66
82
|
* @throws {RequiredError}
|
|
67
83
|
*/
|
|
68
|
-
|
|
84
|
+
listProductDocuments_1: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
85
|
/**
|
|
70
86
|
* Upload a product document.
|
|
71
87
|
* @summary Create the product document
|
|
@@ -115,6 +131,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
115
131
|
/**
|
|
116
132
|
* 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.
|
|
117
133
|
* @summary List product documents
|
|
134
|
+
* @param {string} productSlug
|
|
118
135
|
* @param {string} [authorization] Bearer Token
|
|
119
136
|
* @param {number} [pageSize] Page size
|
|
120
137
|
* @param {string} [pageToken] Page token
|
|
@@ -125,7 +142,22 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
125
142
|
* @param {*} [options] Override http request option.
|
|
126
143
|
* @throws {RequiredError}
|
|
127
144
|
*/
|
|
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>>;
|
|
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>>;
|
|
129
161
|
/**
|
|
130
162
|
* Upload a product document.
|
|
131
163
|
* @summary Create the product document
|
|
@@ -135,7 +167,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
135
167
|
* @param {*} [options] Override http request option.
|
|
136
168
|
* @throws {RequiredError}
|
|
137
169
|
*/
|
|
138
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
170
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
139
171
|
};
|
|
140
172
|
/**
|
|
141
173
|
* ProductDocumentsApi - factory interface
|
|
@@ -175,6 +207,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
175
207
|
/**
|
|
176
208
|
* 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.
|
|
177
209
|
* @summary List product documents
|
|
210
|
+
* @param {string} productSlug
|
|
178
211
|
* @param {string} [authorization] Bearer Token
|
|
179
212
|
* @param {number} [pageSize] Page size
|
|
180
213
|
* @param {string} [pageToken] Page token
|
|
@@ -185,7 +218,22 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
185
218
|
* @param {*} [options] Override http request option.
|
|
186
219
|
* @throws {RequiredError}
|
|
187
220
|
*/
|
|
188
|
-
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
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>;
|
|
189
237
|
/**
|
|
190
238
|
* Upload a product document.
|
|
191
239
|
* @summary Create the product document
|
|
@@ -195,7 +243,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
195
243
|
* @param {*} [options] Override http request option.
|
|
196
244
|
* @throws {RequiredError}
|
|
197
245
|
*/
|
|
198
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
246
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
199
247
|
};
|
|
200
248
|
/**
|
|
201
249
|
* Request parameters for deleteProductDocument operation in ProductDocumentsApi.
|
|
@@ -278,6 +326,12 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
278
326
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
279
327
|
*/
|
|
280
328
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
333
|
+
*/
|
|
334
|
+
readonly productSlug: string;
|
|
281
335
|
/**
|
|
282
336
|
* Bearer Token
|
|
283
337
|
* @type {string}
|
|
@@ -321,6 +375,61 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
321
375
|
*/
|
|
322
376
|
readonly expand?: string;
|
|
323
377
|
}
|
|
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
|
+
}
|
|
324
433
|
/**
|
|
325
434
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
326
435
|
* @export
|
|
@@ -388,7 +497,16 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
388
497
|
* @throws {RequiredError}
|
|
389
498
|
* @memberof ProductDocumentsApi
|
|
390
499
|
*/
|
|
391
|
-
listProductDocuments(requestParameters
|
|
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>>;
|
|
392
510
|
/**
|
|
393
511
|
* Upload a product document.
|
|
394
512
|
* @summary Create the product document
|
|
@@ -397,5 +515,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
397
515
|
* @throws {RequiredError}
|
|
398
516
|
* @memberof ProductDocumentsApi
|
|
399
517
|
*/
|
|
400
|
-
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
518
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
|
|
401
519
|
}
|