@emilgroup/document-sdk-node 1.44.1-beta.3 → 1.44.1-beta.31
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 +3 -1
- package/README.md +2 -2
- package/api/documents-api.ts +14 -10
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api/product-documents-api.ts +212 -24
- package/api.ts +2 -2
- package/dist/api/documents-api.d.ts +13 -11
- package/dist/api/documents-api.js +3 -3
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api/product-documents-api.d.ts +129 -19
- package/dist/api/product-documents-api.js +139 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/create-qr-bill-document-response-class.d.ts +25 -0
- package/dist/models/create-qr-bill-document-response-class.js +15 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +29 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.js +20 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/layout-class.d.ts +0 -12
- package/models/create-qr-bill-document-response-class.ts +31 -0
- package/models/get-product-document-download-url-request-rest-dto.ts +38 -0
- package/models/index.ts +2 -0
- package/models/layout-class.ts +0 -12
- package/package.json +1 -1
|
@@ -17,9 +17,11 @@ import { CreateDocumentSyncResponseClass } from '../models';
|
|
|
17
17
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
18
18
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
19
19
|
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
20
|
+
import { CreateQrBillDocumentResponseClass } from '../models';
|
|
20
21
|
import { ExportDocumentRequestDto } from '../models';
|
|
21
22
|
import { ExportDocumentResponseClass } from '../models';
|
|
22
23
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
24
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
23
25
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
24
26
|
import { ListDocumentsResponseClass } from '../models';
|
|
25
27
|
import { MergeDocumentsRequestDto } from '../models';
|
|
@@ -83,11 +85,11 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
83
85
|
* @summary Fetches a document download URL
|
|
84
86
|
* @param {string} code Document code
|
|
85
87
|
* @param {string} [authorization] Bearer Token
|
|
86
|
-
* @param {
|
|
88
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
87
89
|
* @param {*} [options] Override http request option.
|
|
88
90
|
* @throws {RequiredError}
|
|
89
91
|
*/
|
|
90
|
-
getDocumentDownloadUrl: (code: string, authorization?: string, contentDisposition?:
|
|
92
|
+
getDocumentDownloadUrl: (code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
93
|
/**
|
|
92
94
|
* This will return a presigned URL for a random S3 key
|
|
93
95
|
* @summary Fetches a presigned URL for a S3 key
|
|
@@ -173,7 +175,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
173
175
|
* @param {*} [options] Override http request option.
|
|
174
176
|
* @throws {RequiredError}
|
|
175
177
|
*/
|
|
176
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
178
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>>;
|
|
177
179
|
/**
|
|
178
180
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
179
181
|
* @summary Delete the document
|
|
@@ -198,11 +200,11 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
198
200
|
* @summary Fetches a document download URL
|
|
199
201
|
* @param {string} code Document code
|
|
200
202
|
* @param {string} [authorization] Bearer Token
|
|
201
|
-
* @param {
|
|
203
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
202
204
|
* @param {*} [options] Override http request option.
|
|
203
205
|
* @throws {RequiredError}
|
|
204
206
|
*/
|
|
205
|
-
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?:
|
|
207
|
+
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocumentDownloadUrlResponseClass>>;
|
|
206
208
|
/**
|
|
207
209
|
* This will return a presigned URL for a random S3 key
|
|
208
210
|
* @summary Fetches a presigned URL for a S3 key
|
|
@@ -288,7 +290,7 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
288
290
|
* @param {*} [options] Override http request option.
|
|
289
291
|
* @throws {RequiredError}
|
|
290
292
|
*/
|
|
291
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
293
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass>;
|
|
292
294
|
/**
|
|
293
295
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
294
296
|
* @summary Delete the document
|
|
@@ -313,11 +315,11 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
313
315
|
* @summary Fetches a document download URL
|
|
314
316
|
* @param {string} code Document code
|
|
315
317
|
* @param {string} [authorization] Bearer Token
|
|
316
|
-
* @param {
|
|
318
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
317
319
|
* @param {*} [options] Override http request option.
|
|
318
320
|
* @throws {RequiredError}
|
|
319
321
|
*/
|
|
320
|
-
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?:
|
|
322
|
+
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetDocumentDownloadUrlResponseClass>;
|
|
321
323
|
/**
|
|
322
324
|
* This will return a presigned URL for a random S3 key
|
|
323
325
|
* @summary Fetches a presigned URL for a S3 key
|
|
@@ -493,10 +495,10 @@ export interface DocumentsApiGetDocumentDownloadUrlRequest {
|
|
|
493
495
|
readonly authorization?: string;
|
|
494
496
|
/**
|
|
495
497
|
* Content disposition override. Default will be depending on the document type.
|
|
496
|
-
* @type {
|
|
498
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
497
499
|
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
498
500
|
*/
|
|
499
|
-
readonly contentDisposition?:
|
|
501
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto;
|
|
500
502
|
}
|
|
501
503
|
/**
|
|
502
504
|
* Request parameters for getSignedS3keyUrl operation in DocumentsApi.
|
|
@@ -674,7 +676,7 @@ export declare class DocumentsApi extends BaseAPI {
|
|
|
674
676
|
* @throws {RequiredError}
|
|
675
677
|
* @memberof DocumentsApi
|
|
676
678
|
*/
|
|
677
|
-
createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
679
|
+
createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQrBillDocumentResponseClass, any, {}>>;
|
|
678
680
|
/**
|
|
679
681
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
680
682
|
* @summary Delete the document
|
|
@@ -349,7 +349,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
349
349
|
* @summary Fetches a document download URL
|
|
350
350
|
* @param {string} code Document code
|
|
351
351
|
* @param {string} [authorization] Bearer Token
|
|
352
|
-
* @param {
|
|
352
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
353
353
|
* @param {*} [options] Override http request option.
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
*/
|
|
@@ -794,7 +794,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
794
794
|
* @summary Fetches a document download URL
|
|
795
795
|
* @param {string} code Document code
|
|
796
796
|
* @param {string} [authorization] Bearer Token
|
|
797
|
-
* @param {
|
|
797
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
798
798
|
* @param {*} [options] Override http request option.
|
|
799
799
|
* @throws {RequiredError}
|
|
800
800
|
*/
|
|
@@ -995,7 +995,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
995
995
|
* @summary Fetches a document download URL
|
|
996
996
|
* @param {string} code Document code
|
|
997
997
|
* @param {string} [authorization] Bearer Token
|
|
998
|
-
* @param {
|
|
998
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
999
999
|
* @param {*} [options] Override http request option.
|
|
1000
1000
|
* @throws {RequiredError}
|
|
1001
1001
|
*/
|
|
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { InlineResponse200 } from '../models';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* HealthApi - axios parameter creator
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
23
|
* @summary Health Check
|
|
@@ -27,10 +27,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
27
27
|
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* HealthApi - functional programming interface
|
|
31
31
|
* @export
|
|
32
32
|
*/
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
34
34
|
/**
|
|
35
35
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
36
|
* @summary Health Check
|
|
@@ -40,10 +40,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
40
40
|
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* HealthApi - factory interface
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
47
|
/**
|
|
48
48
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
49
|
* @summary Health Check
|
|
@@ -53,18 +53,18 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
53
53
|
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* HealthApi - object-oriented interface
|
|
57
57
|
* @export
|
|
58
|
-
* @class
|
|
58
|
+
* @class HealthApi
|
|
59
59
|
* @extends {BaseAPI}
|
|
60
60
|
*/
|
|
61
|
-
export declare class
|
|
61
|
+
export declare class HealthApi extends BaseAPI {
|
|
62
62
|
/**
|
|
63
63
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
64
|
* @summary Health Check
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
69
|
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,10 +90,10 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* HealthApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var HealthApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -128,13 +128,13 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
|
-
exports.
|
|
131
|
+
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* HealthApi - functional programming interface
|
|
134
134
|
* @export
|
|
135
135
|
*/
|
|
136
|
-
var
|
|
137
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
136
|
+
var HealthApiFp = function (configuration) {
|
|
137
|
+
var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
138
138
|
return {
|
|
139
139
|
/**
|
|
140
140
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -157,13 +157,13 @@ var DefaultApiFp = function (configuration) {
|
|
|
157
157
|
},
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
exports.
|
|
160
|
+
exports.HealthApiFp = HealthApiFp;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* HealthApi - factory interface
|
|
163
163
|
* @export
|
|
164
164
|
*/
|
|
165
|
-
var
|
|
166
|
-
var localVarFp = (0, exports.
|
|
165
|
+
var HealthApiFactory = function (configuration, basePath, axios) {
|
|
166
|
+
var localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
167
167
|
return {
|
|
168
168
|
/**
|
|
169
169
|
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
@@ -176,16 +176,16 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
176
176
|
},
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
-
exports.
|
|
179
|
+
exports.HealthApiFactory = HealthApiFactory;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* HealthApi - object-oriented interface
|
|
182
182
|
* @export
|
|
183
|
-
* @class
|
|
183
|
+
* @class HealthApi
|
|
184
184
|
* @extends {BaseAPI}
|
|
185
185
|
*/
|
|
186
|
-
var
|
|
187
|
-
__extends(
|
|
188
|
-
function
|
|
186
|
+
var HealthApi = /** @class */ (function (_super) {
|
|
187
|
+
__extends(HealthApi, _super);
|
|
188
|
+
function HealthApi() {
|
|
189
189
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
@@ -193,12 +193,12 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
193
193
|
* @summary Health Check
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
|
-
* @memberof
|
|
196
|
+
* @memberof HealthApi
|
|
197
197
|
*/
|
|
198
|
-
|
|
198
|
+
HealthApi.prototype.check = function (options) {
|
|
199
199
|
var _this = this;
|
|
200
|
-
return (0, exports.
|
|
200
|
+
return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
201
201
|
};
|
|
202
|
-
return
|
|
202
|
+
return HealthApi;
|
|
203
203
|
}(base_1.BaseAPI));
|
|
204
|
-
exports.
|
|
204
|
+
exports.HealthApi = HealthApi;
|
|
@@ -13,6 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
16
17
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
17
18
|
import { GetProductDocumentResponseClass } from '../models';
|
|
18
19
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -38,11 +39,11 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
38
39
|
* @param {string} productSlug Product slug
|
|
39
40
|
* @param {string} code Product document code
|
|
40
41
|
* @param {string} [authorization] Bearer Token
|
|
41
|
-
* @param {
|
|
42
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
42
43
|
* @param {*} [options] Override http request option.
|
|
43
44
|
* @throws {RequiredError}
|
|
44
45
|
*/
|
|
45
|
-
downloadProductDocument: (productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
46
|
+
downloadProductDocument: (productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
47
|
/**
|
|
47
48
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
48
49
|
* @summary Retrieve the product document
|
|
@@ -53,6 +54,21 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
53
54
|
* @throws {RequiredError}
|
|
54
55
|
*/
|
|
55
56
|
getProductDocument: (productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
59
|
+
* @summary List product documents
|
|
60
|
+
* @param {string} [authorization] Bearer Token
|
|
61
|
+
* @param {number} [pageSize] Page size
|
|
62
|
+
* @param {string} [pageToken] Page token
|
|
63
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
64
|
+
* @param {string} [search] Search query
|
|
65
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
66
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
67
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
listProductDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
72
|
/**
|
|
57
73
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
58
74
|
* @summary List product documents
|
|
@@ -68,7 +84,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
68
84
|
* @param {*} [options] Override http request option.
|
|
69
85
|
* @throws {RequiredError}
|
|
70
86
|
*/
|
|
71
|
-
|
|
87
|
+
listProductDocumentsByProduct: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
72
88
|
/**
|
|
73
89
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
74
90
|
* @summary Create the product document
|
|
@@ -101,11 +117,11 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
101
117
|
* @param {string} productSlug Product slug
|
|
102
118
|
* @param {string} code Product document code
|
|
103
119
|
* @param {string} [authorization] Bearer Token
|
|
104
|
-
* @param {
|
|
120
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
105
121
|
* @param {*} [options] Override http request option.
|
|
106
122
|
* @throws {RequiredError}
|
|
107
123
|
*/
|
|
108
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
124
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
109
125
|
/**
|
|
110
126
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
111
127
|
* @summary Retrieve the product document
|
|
@@ -116,6 +132,21 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
116
132
|
* @throws {RequiredError}
|
|
117
133
|
*/
|
|
118
134
|
getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentResponseClass>>;
|
|
135
|
+
/**
|
|
136
|
+
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
137
|
+
* @summary List product documents
|
|
138
|
+
* @param {string} [authorization] Bearer Token
|
|
139
|
+
* @param {number} [pageSize] Page size
|
|
140
|
+
* @param {string} [pageToken] Page token
|
|
141
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
142
|
+
* @param {string} [search] Search query
|
|
143
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
144
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
145
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
119
150
|
/**
|
|
120
151
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
121
152
|
* @summary List product documents
|
|
@@ -131,7 +162,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
131
162
|
* @param {*} [options] Override http request option.
|
|
132
163
|
* @throws {RequiredError}
|
|
133
164
|
*/
|
|
134
|
-
|
|
165
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
135
166
|
/**
|
|
136
167
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
137
168
|
* @summary Create the product document
|
|
@@ -164,11 +195,11 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
164
195
|
* @param {string} productSlug Product slug
|
|
165
196
|
* @param {string} code Product document code
|
|
166
197
|
* @param {string} [authorization] Bearer Token
|
|
167
|
-
* @param {
|
|
198
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
168
199
|
* @param {*} [options] Override http request option.
|
|
169
200
|
* @throws {RequiredError}
|
|
170
201
|
*/
|
|
171
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
202
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
172
203
|
/**
|
|
173
204
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
174
205
|
* @summary Retrieve the product document
|
|
@@ -179,6 +210,21 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
179
210
|
* @throws {RequiredError}
|
|
180
211
|
*/
|
|
181
212
|
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentResponseClass>;
|
|
213
|
+
/**
|
|
214
|
+
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
215
|
+
* @summary List product documents
|
|
216
|
+
* @param {string} [authorization] Bearer Token
|
|
217
|
+
* @param {number} [pageSize] Page size
|
|
218
|
+
* @param {string} [pageToken] Page token
|
|
219
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
220
|
+
* @param {string} [search] Search query
|
|
221
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
222
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
223
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
182
228
|
/**
|
|
183
229
|
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
184
230
|
* @summary List product documents
|
|
@@ -194,7 +240,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
194
240
|
* @param {*} [options] Override http request option.
|
|
195
241
|
* @throws {RequiredError}
|
|
196
242
|
*/
|
|
197
|
-
|
|
243
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
198
244
|
/**
|
|
199
245
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
200
246
|
* @summary Create the product document
|
|
@@ -256,11 +302,11 @@ export interface ProductDocumentsApiDownloadProductDocumentRequest {
|
|
|
256
302
|
*/
|
|
257
303
|
readonly authorization?: string;
|
|
258
304
|
/**
|
|
259
|
-
* Content disposition
|
|
260
|
-
* @type {
|
|
305
|
+
* Content disposition type
|
|
306
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
261
307
|
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
262
308
|
*/
|
|
263
|
-
readonly contentDisposition?:
|
|
309
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto;
|
|
264
310
|
}
|
|
265
311
|
/**
|
|
266
312
|
* Request parameters for getProductDocument operation in ProductDocumentsApi.
|
|
@@ -293,12 +339,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
293
339
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
294
340
|
*/
|
|
295
341
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
296
|
-
/**
|
|
297
|
-
*
|
|
298
|
-
* @type {string}
|
|
299
|
-
* @memberof ProductDocumentsApiListProductDocuments
|
|
300
|
-
*/
|
|
301
|
-
readonly productSlug: string;
|
|
302
342
|
/**
|
|
303
343
|
* Bearer Token
|
|
304
344
|
* @type {string}
|
|
@@ -348,6 +388,67 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
348
388
|
*/
|
|
349
389
|
readonly filters?: string;
|
|
350
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
|
|
393
|
+
* @export
|
|
394
|
+
* @interface ProductDocumentsApiListProductDocumentsByProductRequest
|
|
395
|
+
*/
|
|
396
|
+
export interface ProductDocumentsApiListProductDocumentsByProductRequest {
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
401
|
+
*/
|
|
402
|
+
readonly productSlug: string;
|
|
403
|
+
/**
|
|
404
|
+
* Bearer Token
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
407
|
+
*/
|
|
408
|
+
readonly authorization?: string;
|
|
409
|
+
/**
|
|
410
|
+
* Page size
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
413
|
+
*/
|
|
414
|
+
readonly pageSize?: number;
|
|
415
|
+
/**
|
|
416
|
+
* Page token
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
419
|
+
*/
|
|
420
|
+
readonly pageToken?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
425
|
+
*/
|
|
426
|
+
readonly filter?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Search query
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
431
|
+
*/
|
|
432
|
+
readonly search?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
|
|
435
|
+
* @type {string}
|
|
436
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
437
|
+
*/
|
|
438
|
+
readonly order?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
443
|
+
*/
|
|
444
|
+
readonly expand?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
449
|
+
*/
|
|
450
|
+
readonly filters?: string;
|
|
451
|
+
}
|
|
351
452
|
/**
|
|
352
453
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
353
454
|
* @export
|
|
@@ -415,7 +516,16 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
415
516
|
* @throws {RequiredError}
|
|
416
517
|
* @memberof ProductDocumentsApi
|
|
417
518
|
*/
|
|
418
|
-
listProductDocuments(requestParameters
|
|
519
|
+
listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
520
|
+
/**
|
|
521
|
+
* 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. **Required Permissions** \"document-management.documents.view\"
|
|
522
|
+
* @summary List product documents
|
|
523
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
* @memberof ProductDocumentsApi
|
|
527
|
+
*/
|
|
528
|
+
listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
419
529
|
/**
|
|
420
530
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
421
531
|
* @summary Create the product document
|