@emilgroup/document-sdk-node 1.2.1 → 1.3.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 +6 -0
- package/README.md +2 -2
- package/api/documents-api.ts +8 -8
- package/api/product-documents-api.ts +599 -0
- package/api.ts +2 -0
- package/base.ts +1 -1
- package/dist/api/documents-api.d.ts +8 -8
- package/dist/api/documents-api.js +8 -8
- package/dist/api/product-documents-api.d.ts +345 -0
- package/dist/api/product-documents-api.js +558 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +1 -1
- package/dist/models/create-document-request-dto.d.ts +1 -0
- package/dist/models/create-document-request-dto.js +2 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +1 -0
- package/dist/models/create-presigned-post-request-dto.js +2 -1
- package/dist/models/delete-product-document-request-dto.d.ts +30 -0
- package/dist/models/delete-product-document-request-dto.js +15 -0
- package/dist/models/document-class.d.ts +1 -0
- package/dist/models/document-class.js +2 -1
- package/dist/models/get-product-document-response-class.d.ts +25 -0
- package/dist/models/get-product-document-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/list-product-documents-response-class.d.ts +31 -0
- package/dist/models/list-product-documents-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +99 -0
- package/dist/models/product-document-class.js +36 -0
- package/dist/models/upload-product-document-request-dto.d.ts +63 -0
- package/dist/models/upload-product-document-request-dto.js +24 -0
- package/models/create-document-request-dto.ts +2 -1
- package/models/create-presigned-post-request-dto.ts +2 -1
- package/models/delete-product-document-request-dto.ts +36 -0
- package/models/document-class.ts +2 -1
- package/models/get-product-document-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/list-product-documents-response-class.ts +37 -0
- package/models/product-document-class.ts +108 -0
- package/models/upload-product-document-request-dto.ts +72 -0
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ import { UpdateDocumentResponseClass } from '../models';
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const DocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
29
|
/**
|
|
30
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
30
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
31
31
|
* @summary Create the document
|
|
32
32
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
33
33
|
* @param {string} [authorization] Bearer Token
|
|
@@ -36,7 +36,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
36
36
|
*/
|
|
37
37
|
createDocument: (createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
38
|
/**
|
|
39
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
39
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
40
40
|
* @summary Upload documents using pre-signed URL
|
|
41
41
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
42
42
|
* @param {string} [authorization] Bearer Token
|
|
@@ -102,7 +102,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
102
102
|
*/
|
|
103
103
|
export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
104
104
|
/**
|
|
105
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
105
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
106
106
|
* @summary Create the document
|
|
107
107
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
108
108
|
* @param {string} [authorization] Bearer Token
|
|
@@ -111,7 +111,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
111
111
|
*/
|
|
112
112
|
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDocumentSyncResponseClass>>;
|
|
113
113
|
/**
|
|
114
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
114
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
115
115
|
* @summary Upload documents using pre-signed URL
|
|
116
116
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
117
117
|
* @param {string} [authorization] Bearer Token
|
|
@@ -177,7 +177,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
177
177
|
*/
|
|
178
178
|
export declare const DocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
179
179
|
/**
|
|
180
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
180
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
181
181
|
* @summary Create the document
|
|
182
182
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
183
183
|
* @param {string} [authorization] Bearer Token
|
|
@@ -186,7 +186,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
186
186
|
*/
|
|
187
187
|
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDocumentSyncResponseClass>;
|
|
188
188
|
/**
|
|
189
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
189
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
190
190
|
* @summary Upload documents using pre-signed URL
|
|
191
191
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
192
192
|
* @param {string} [authorization] Bearer Token
|
|
@@ -423,7 +423,7 @@ export interface DocumentsApiUpdateDocumentRequest {
|
|
|
423
423
|
*/
|
|
424
424
|
export declare class DocumentsApi extends BaseAPI {
|
|
425
425
|
/**
|
|
426
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
426
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
427
427
|
* @summary Create the document
|
|
428
428
|
* @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
|
|
429
429
|
* @param {*} [options] Override http request option.
|
|
@@ -432,7 +432,7 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
432
432
|
*/
|
|
433
433
|
createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocumentSyncResponseClass, any>>;
|
|
434
434
|
/**
|
|
435
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
435
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
436
436
|
* @summary Upload documents using pre-signed URL
|
|
437
437
|
* @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
|
|
438
438
|
* @param {*} [options] Override http request option.
|
|
@@ -97,7 +97,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
100
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
101
101
|
* @summary Create the document
|
|
102
102
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
@@ -146,7 +146,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
149
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
150
150
|
* @summary Upload documents using pre-signed URL
|
|
151
151
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
152
152
|
* @param {string} [authorization] Bearer Token
|
|
@@ -472,7 +472,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
472
472
|
var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
|
|
473
473
|
return {
|
|
474
474
|
/**
|
|
475
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
475
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
476
476
|
* @summary Create the document
|
|
477
477
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
478
478
|
* @param {string} [authorization] Bearer Token
|
|
@@ -493,7 +493,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
493
493
|
});
|
|
494
494
|
},
|
|
495
495
|
/**
|
|
496
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
496
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
497
497
|
* @summary Upload documents using pre-signed URL
|
|
498
498
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
499
499
|
* @param {string} [authorization] Bearer Token
|
|
@@ -635,7 +635,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
635
635
|
var localVarFp = (0, exports.DocumentsApiFp)(configuration);
|
|
636
636
|
return {
|
|
637
637
|
/**
|
|
638
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
638
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
639
639
|
* @summary Create the document
|
|
640
640
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
641
641
|
* @param {string} [authorization] Bearer Token
|
|
@@ -646,7 +646,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
646
646
|
return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
647
647
|
},
|
|
648
648
|
/**
|
|
649
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
649
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
650
650
|
* @summary Upload documents using pre-signed URL
|
|
651
651
|
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
652
652
|
* @param {string} [authorization] Bearer Token
|
|
@@ -732,7 +732,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
732
732
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
735
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
736
736
|
* @summary Create the document
|
|
737
737
|
* @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
|
|
738
738
|
* @param {*} [options] Override http request option.
|
|
@@ -744,7 +744,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
744
744
|
return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
745
745
|
};
|
|
746
746
|
/**
|
|
747
|
-
* This will create a URL that allows user upload its documents in Database.The URL will be expires between
|
|
747
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
748
748
|
* @summary Upload documents using pre-signed URL
|
|
749
749
|
* @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
|
|
750
750
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetProductDocumentResponseClass } from '../models';
|
|
16
|
+
import { ListProductDocumentsResponseClass } from '../models';
|
|
17
|
+
import { ProductDocumentClass } from '../models';
|
|
18
|
+
import { UploadProductDocumentRequestDto } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* ProductDocumentsApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Permanently deletes the product document. Supply the unique code that was returned when you created the product document and this will delete it.
|
|
26
|
+
* @summary Delete the product document
|
|
27
|
+
* @param {string} code
|
|
28
|
+
* @param {string} productSlug
|
|
29
|
+
* @param {string} [authorization] Bearer Token
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
deleteProductDocument: (code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* Get a product document.
|
|
36
|
+
* @summary Retrieve the product document
|
|
37
|
+
* @param {string} productSlug
|
|
38
|
+
* @param {string} code
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
getProductDocument: (productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
* @summary List product documents
|
|
47
|
+
* @param {string} productSlug
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {number} [pageSize] Page size
|
|
50
|
+
* @param {string} [pageToken] Page token
|
|
51
|
+
* @param {string} [filter] List filter
|
|
52
|
+
* @param {string} [search] Search query
|
|
53
|
+
* @param {string} [order] Ordering criteria
|
|
54
|
+
* @param {string} [expand] Extra fields to fetch
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
listProductDocuments: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
|
+
/**
|
|
60
|
+
* Upload a product document.
|
|
61
|
+
* @summary Create the product document
|
|
62
|
+
* @param {string} productSlug
|
|
63
|
+
* @param {UploadProductDocumentRequestDto} uploadProductDocumentRequestDto
|
|
64
|
+
* @param {string} [authorization] Bearer Token
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
uploadProductDocument: (productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* ProductDocumentsApi - functional programming interface
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
75
|
+
/**
|
|
76
|
+
* Permanently deletes the product document. Supply the unique code that was returned when you created the product document and this will delete it.
|
|
77
|
+
* @summary Delete the product document
|
|
78
|
+
* @param {string} code
|
|
79
|
+
* @param {string} productSlug
|
|
80
|
+
* @param {string} [authorization] Bearer Token
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
85
|
+
/**
|
|
86
|
+
* Get a product document.
|
|
87
|
+
* @summary Retrieve the product document
|
|
88
|
+
* @param {string} productSlug
|
|
89
|
+
* @param {string} code
|
|
90
|
+
* @param {string} [authorization] Bearer Token
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentResponseClass>>;
|
|
95
|
+
/**
|
|
96
|
+
* 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.
|
|
97
|
+
* @summary List product documents
|
|
98
|
+
* @param {string} productSlug
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {number} [pageSize] Page size
|
|
101
|
+
* @param {string} [pageToken] Page token
|
|
102
|
+
* @param {string} [filter] List filter
|
|
103
|
+
* @param {string} [search] Search query
|
|
104
|
+
* @param {string} [order] Ordering criteria
|
|
105
|
+
* @param {string} [expand] Extra fields to fetch
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
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>>;
|
|
110
|
+
/**
|
|
111
|
+
* Upload a product document.
|
|
112
|
+
* @summary Create the product document
|
|
113
|
+
* @param {string} productSlug
|
|
114
|
+
* @param {UploadProductDocumentRequestDto} uploadProductDocumentRequestDto
|
|
115
|
+
* @param {string} [authorization] Bearer Token
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>>;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* ProductDocumentsApi - factory interface
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export declare const ProductDocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
126
|
+
/**
|
|
127
|
+
* Permanently deletes the product document. Supply the unique code that was returned when you created the product document and this will delete it.
|
|
128
|
+
* @summary Delete the product document
|
|
129
|
+
* @param {string} code
|
|
130
|
+
* @param {string} productSlug
|
|
131
|
+
* @param {string} [authorization] Bearer Token
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
136
|
+
/**
|
|
137
|
+
* Get a product document.
|
|
138
|
+
* @summary Retrieve the product document
|
|
139
|
+
* @param {string} productSlug
|
|
140
|
+
* @param {string} code
|
|
141
|
+
* @param {string} [authorization] Bearer Token
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentResponseClass>;
|
|
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(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
161
|
+
/**
|
|
162
|
+
* Upload a product document.
|
|
163
|
+
* @summary Create the product document
|
|
164
|
+
* @param {string} productSlug
|
|
165
|
+
* @param {UploadProductDocumentRequestDto} uploadProductDocumentRequestDto
|
|
166
|
+
* @param {string} [authorization] Bearer Token
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass>;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Request parameters for deleteProductDocument operation in ProductDocumentsApi.
|
|
174
|
+
* @export
|
|
175
|
+
* @interface ProductDocumentsApiDeleteProductDocumentRequest
|
|
176
|
+
*/
|
|
177
|
+
export interface ProductDocumentsApiDeleteProductDocumentRequest {
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof ProductDocumentsApiDeleteProductDocument
|
|
182
|
+
*/
|
|
183
|
+
readonly code: string;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof ProductDocumentsApiDeleteProductDocument
|
|
188
|
+
*/
|
|
189
|
+
readonly productSlug: string;
|
|
190
|
+
/**
|
|
191
|
+
* Bearer Token
|
|
192
|
+
* @type {string}
|
|
193
|
+
* @memberof ProductDocumentsApiDeleteProductDocument
|
|
194
|
+
*/
|
|
195
|
+
readonly authorization?: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Request parameters for getProductDocument operation in ProductDocumentsApi.
|
|
199
|
+
* @export
|
|
200
|
+
* @interface ProductDocumentsApiGetProductDocumentRequest
|
|
201
|
+
*/
|
|
202
|
+
export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof ProductDocumentsApiGetProductDocument
|
|
207
|
+
*/
|
|
208
|
+
readonly productSlug: string;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @type {string}
|
|
212
|
+
* @memberof ProductDocumentsApiGetProductDocument
|
|
213
|
+
*/
|
|
214
|
+
readonly code: string;
|
|
215
|
+
/**
|
|
216
|
+
* Bearer Token
|
|
217
|
+
* @type {string}
|
|
218
|
+
* @memberof ProductDocumentsApiGetProductDocument
|
|
219
|
+
*/
|
|
220
|
+
readonly authorization?: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Request parameters for listProductDocuments operation in ProductDocumentsApi.
|
|
224
|
+
* @export
|
|
225
|
+
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
226
|
+
*/
|
|
227
|
+
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
232
|
+
*/
|
|
233
|
+
readonly productSlug: string;
|
|
234
|
+
/**
|
|
235
|
+
* Bearer Token
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
238
|
+
*/
|
|
239
|
+
readonly authorization?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Page size
|
|
242
|
+
* @type {number}
|
|
243
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
244
|
+
*/
|
|
245
|
+
readonly pageSize?: number;
|
|
246
|
+
/**
|
|
247
|
+
* Page token
|
|
248
|
+
* @type {string}
|
|
249
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
250
|
+
*/
|
|
251
|
+
readonly pageToken?: string;
|
|
252
|
+
/**
|
|
253
|
+
* List filter
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
256
|
+
*/
|
|
257
|
+
readonly filter?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Search query
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
262
|
+
*/
|
|
263
|
+
readonly search?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Ordering criteria
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
268
|
+
*/
|
|
269
|
+
readonly order?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Extra fields to fetch
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
274
|
+
*/
|
|
275
|
+
readonly expand?: string;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
279
|
+
* @export
|
|
280
|
+
* @interface ProductDocumentsApiUploadProductDocumentRequest
|
|
281
|
+
*/
|
|
282
|
+
export interface ProductDocumentsApiUploadProductDocumentRequest {
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @memberof ProductDocumentsApiUploadProductDocument
|
|
287
|
+
*/
|
|
288
|
+
readonly productSlug: string;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {UploadProductDocumentRequestDto}
|
|
292
|
+
* @memberof ProductDocumentsApiUploadProductDocument
|
|
293
|
+
*/
|
|
294
|
+
readonly uploadProductDocumentRequestDto: UploadProductDocumentRequestDto;
|
|
295
|
+
/**
|
|
296
|
+
* Bearer Token
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof ProductDocumentsApiUploadProductDocument
|
|
299
|
+
*/
|
|
300
|
+
readonly authorization?: string;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* ProductDocumentsApi - object-oriented interface
|
|
304
|
+
* @export
|
|
305
|
+
* @class ProductDocumentsApi
|
|
306
|
+
* @extends {BaseAPI}
|
|
307
|
+
*/
|
|
308
|
+
export declare class ProductDocumentsApi extends BaseAPI {
|
|
309
|
+
/**
|
|
310
|
+
* Permanently deletes the product document. Supply the unique code that was returned when you created the product document and this will delete it.
|
|
311
|
+
* @summary Delete the product document
|
|
312
|
+
* @param {ProductDocumentsApiDeleteProductDocumentRequest} requestParameters Request parameters.
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
* @memberof ProductDocumentsApi
|
|
316
|
+
*/
|
|
317
|
+
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
318
|
+
/**
|
|
319
|
+
* Get a product document.
|
|
320
|
+
* @summary Retrieve the product document
|
|
321
|
+
* @param {ProductDocumentsApiGetProductDocumentRequest} requestParameters Request parameters.
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
* @memberof ProductDocumentsApi
|
|
325
|
+
*/
|
|
326
|
+
getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any>>;
|
|
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 {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
* @memberof ProductDocumentsApi
|
|
334
|
+
*/
|
|
335
|
+
listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
|
|
336
|
+
/**
|
|
337
|
+
* Upload a product document.
|
|
338
|
+
* @summary Create the product document
|
|
339
|
+
* @param {ProductDocumentsApiUploadProductDocumentRequest} requestParameters Request parameters.
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
* @memberof ProductDocumentsApi
|
|
343
|
+
*/
|
|
344
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductDocumentClass, any>>;
|
|
345
|
+
}
|