@emilgroup/document-sdk-node 1.44.1-beta.3 → 1.44.1-beta.30
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/base.ts +1 -0
- 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/base.d.ts +2 -1
- package/dist/base.js +1 -0
- 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 +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
-
api/default-api.ts
|
|
7
6
|
api/document-templates-api.ts
|
|
8
7
|
api/documents-api.ts
|
|
9
8
|
api/docx-templates-api.ts
|
|
9
|
+
api/health-api.ts
|
|
10
10
|
api/layouts-api.ts
|
|
11
11
|
api/product-documents-api.ts
|
|
12
12
|
api/search-keywords-api.ts
|
|
@@ -27,6 +27,7 @@ models/create-layout-response-class.ts
|
|
|
27
27
|
models/create-presigned-post-request-dto.ts
|
|
28
28
|
models/create-presigned-post-response-class.ts
|
|
29
29
|
models/create-qr-bill-document-request-dto.ts
|
|
30
|
+
models/create-qr-bill-document-response-class.ts
|
|
30
31
|
models/delete-layout-request-dto.ts
|
|
31
32
|
models/delete-product-document-request-dto.ts
|
|
32
33
|
models/delete-request-dto.ts
|
|
@@ -44,6 +45,7 @@ models/get-docx-template-download-url-response-class.ts
|
|
|
44
45
|
models/get-docx-template-response-class.ts
|
|
45
46
|
models/get-layout-request-dto.ts
|
|
46
47
|
models/get-layout-response-class.ts
|
|
48
|
+
models/get-product-document-download-url-request-rest-dto.ts
|
|
47
49
|
models/get-product-document-download-url-response-class.ts
|
|
48
50
|
models/get-product-document-response-class.ts
|
|
49
51
|
models/get-signed-s3-key-url-response-class.ts
|
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.44.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.44.1-beta.30 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.44.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.44.1-beta.30
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -31,12 +31,16 @@ import { CreatePresignedPostResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { CreateQrBillDocumentRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { CreateQrBillDocumentResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { ExportDocumentRequestDto } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { ExportDocumentResponseClass } from '../models';
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
42
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
40
44
|
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
41
45
|
// @ts-ignore
|
|
42
46
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -302,11 +306,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
302
306
|
* @summary Fetches a document download URL
|
|
303
307
|
* @param {string} code Document code
|
|
304
308
|
* @param {string} [authorization] Bearer Token
|
|
305
|
-
* @param {
|
|
309
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
306
310
|
* @param {*} [options] Override http request option.
|
|
307
311
|
* @throws {RequiredError}
|
|
308
312
|
*/
|
|
309
|
-
getDocumentDownloadUrl: async (code: string, authorization?: string, contentDisposition?:
|
|
313
|
+
getDocumentDownloadUrl: async (code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
310
314
|
// verify required parameter 'code' is not null or undefined
|
|
311
315
|
assertParamExists('getDocumentDownloadUrl', 'code', code)
|
|
312
316
|
const localVarPath = `/documentservice/v1/documents/{code}/download-url`
|
|
@@ -663,7 +667,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
663
667
|
* @param {*} [options] Override http request option.
|
|
664
668
|
* @throws {RequiredError}
|
|
665
669
|
*/
|
|
666
|
-
async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
670
|
+
async createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateQrBillDocumentResponseClass>> {
|
|
667
671
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options);
|
|
668
672
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
669
673
|
},
|
|
@@ -697,11 +701,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
697
701
|
* @summary Fetches a document download URL
|
|
698
702
|
* @param {string} code Document code
|
|
699
703
|
* @param {string} [authorization] Bearer Token
|
|
700
|
-
* @param {
|
|
704
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
701
705
|
* @param {*} [options] Override http request option.
|
|
702
706
|
* @throws {RequiredError}
|
|
703
707
|
*/
|
|
704
|
-
async getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?:
|
|
708
|
+
async getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocumentDownloadUrlResponseClass>> {
|
|
705
709
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, contentDisposition, options);
|
|
706
710
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
707
711
|
},
|
|
@@ -813,7 +817,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
813
817
|
* @param {*} [options] Override http request option.
|
|
814
818
|
* @throws {RequiredError}
|
|
815
819
|
*/
|
|
816
|
-
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
820
|
+
createQrBillDocument(createQrBillDocumentRequestDto: CreateQrBillDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreateQrBillDocumentResponseClass> {
|
|
817
821
|
return localVarFp.createQrBillDocument(createQrBillDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
818
822
|
},
|
|
819
823
|
/**
|
|
@@ -844,11 +848,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
844
848
|
* @summary Fetches a document download URL
|
|
845
849
|
* @param {string} code Document code
|
|
846
850
|
* @param {string} [authorization] Bearer Token
|
|
847
|
-
* @param {
|
|
851
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
848
852
|
* @param {*} [options] Override http request option.
|
|
849
853
|
* @throws {RequiredError}
|
|
850
854
|
*/
|
|
851
|
-
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?:
|
|
855
|
+
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetDocumentDownloadUrlResponseClass> {
|
|
852
856
|
return localVarFp.getDocumentDownloadUrl(code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
853
857
|
},
|
|
854
858
|
/**
|
|
@@ -1051,10 +1055,10 @@ export interface DocumentsApiGetDocumentDownloadUrlRequest {
|
|
|
1051
1055
|
|
|
1052
1056
|
/**
|
|
1053
1057
|
* Content disposition override. Default will be depending on the document type.
|
|
1054
|
-
* @type {
|
|
1058
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
1055
1059
|
* @memberof DocumentsApiGetDocumentDownloadUrl
|
|
1056
1060
|
*/
|
|
1057
|
-
readonly contentDisposition?:
|
|
1061
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto
|
|
1058
1062
|
}
|
|
1059
1063
|
|
|
1060
1064
|
/**
|
|
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* HealthApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
* 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.
|
|
@@ -70,11 +70,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* HealthApi - functional programming interface
|
|
74
74
|
* @export
|
|
75
75
|
*/
|
|
76
|
-
export const
|
|
77
|
-
const localVarAxiosParamCreator =
|
|
76
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
77
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
78
78
|
return {
|
|
79
79
|
/**
|
|
80
80
|
* 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.
|
|
@@ -90,11 +90,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* HealthApi - factory interface
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
export const
|
|
97
|
-
const localVarFp =
|
|
96
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
97
|
+
const localVarFp = HealthApiFp(configuration)
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* 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.
|
|
@@ -109,20 +109,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* HealthApi - object-oriented interface
|
|
113
113
|
* @export
|
|
114
|
-
* @class
|
|
114
|
+
* @class HealthApi
|
|
115
115
|
* @extends {BaseAPI}
|
|
116
116
|
*/
|
|
117
|
-
export class
|
|
117
|
+
export class HealthApi extends BaseAPI {
|
|
118
118
|
/**
|
|
119
119
|
* 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.
|
|
120
120
|
* @summary Health Check
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
|
-
* @memberof
|
|
123
|
+
* @memberof HealthApi
|
|
124
124
|
*/
|
|
125
125
|
public check(options?: AxiosRequestConfig) {
|
|
126
|
-
return
|
|
126
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { GetProductDocumentResponseClass } from '../models';
|
|
@@ -95,11 +97,11 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
95
97
|
* @param {string} productSlug Product slug
|
|
96
98
|
* @param {string} code Product document code
|
|
97
99
|
* @param {string} [authorization] Bearer Token
|
|
98
|
-
* @param {
|
|
100
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
99
101
|
* @param {*} [options] Override http request option.
|
|
100
102
|
* @throws {RequiredError}
|
|
101
103
|
*/
|
|
102
|
-
downloadProductDocument: async (productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
104
|
+
downloadProductDocument: async (productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
103
105
|
// verify required parameter 'productSlug' is not null or undefined
|
|
104
106
|
assertParamExists('downloadProductDocument', 'productSlug', productSlug)
|
|
105
107
|
// verify required parameter 'code' is not null or undefined
|
|
@@ -183,6 +185,82 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
183
185
|
|
|
184
186
|
|
|
185
187
|
|
|
188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
190
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
url: toPathString(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* 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\"
|
|
199
|
+
* @summary List product documents
|
|
200
|
+
* @param {string} [authorization] Bearer Token
|
|
201
|
+
* @param {number} [pageSize] Page size
|
|
202
|
+
* @param {string} [pageToken] Page token
|
|
203
|
+
* @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>
|
|
204
|
+
* @param {string} [search] Search query
|
|
205
|
+
* @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>
|
|
206
|
+
* @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/>
|
|
207
|
+
* @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>
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
212
|
+
const localVarPath = `/documentservice/v1/product-documents`;
|
|
213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
|
+
let baseOptions;
|
|
216
|
+
let baseAccessToken;
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
baseAccessToken = configuration.accessToken;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
223
|
+
const localVarHeaderParameter = {} as any;
|
|
224
|
+
const localVarQueryParameter = {} as any;
|
|
225
|
+
|
|
226
|
+
// authentication bearer required
|
|
227
|
+
// http bearer authentication required
|
|
228
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
229
|
+
|
|
230
|
+
if (pageSize !== undefined) {
|
|
231
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (pageToken !== undefined) {
|
|
235
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (filter !== undefined) {
|
|
239
|
+
localVarQueryParameter['filter'] = filter;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (search !== undefined) {
|
|
243
|
+
localVarQueryParameter['search'] = search;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (order !== undefined) {
|
|
247
|
+
localVarQueryParameter['order'] = order;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (expand !== undefined) {
|
|
251
|
+
localVarQueryParameter['expand'] = expand;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (filters !== undefined) {
|
|
255
|
+
localVarQueryParameter['filters'] = filters;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
259
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
186
264
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
265
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
266
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -207,9 +285,9 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
207
285
|
* @param {*} [options] Override http request option.
|
|
208
286
|
* @throws {RequiredError}
|
|
209
287
|
*/
|
|
210
|
-
|
|
288
|
+
listProductDocumentsByProduct: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
211
289
|
// verify required parameter 'productSlug' is not null or undefined
|
|
212
|
-
assertParamExists('
|
|
290
|
+
assertParamExists('listProductDocumentsByProduct', 'productSlug', productSlug)
|
|
213
291
|
const localVarPath = `/documentservice/v1/product-documents/{productSlug}`
|
|
214
292
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
215
293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -352,11 +430,11 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
352
430
|
* @param {string} productSlug Product slug
|
|
353
431
|
* @param {string} code Product document code
|
|
354
432
|
* @param {string} [authorization] Bearer Token
|
|
355
|
-
* @param {
|
|
433
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
356
434
|
* @param {*} [options] Override http request option.
|
|
357
435
|
* @throws {RequiredError}
|
|
358
436
|
*/
|
|
359
|
-
async downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
437
|
+
async downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
360
438
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, contentDisposition, options);
|
|
361
439
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
440
|
},
|
|
@@ -373,6 +451,24 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
373
451
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductDocument(productSlug, code, authorization, options);
|
|
374
452
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
453
|
},
|
|
454
|
+
/**
|
|
455
|
+
* 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\"
|
|
456
|
+
* @summary List product documents
|
|
457
|
+
* @param {string} [authorization] Bearer Token
|
|
458
|
+
* @param {number} [pageSize] Page size
|
|
459
|
+
* @param {string} [pageToken] Page token
|
|
460
|
+
* @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>
|
|
461
|
+
* @param {string} [search] Search query
|
|
462
|
+
* @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>
|
|
463
|
+
* @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/>
|
|
464
|
+
* @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>
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
async 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>> {
|
|
469
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
470
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
|
+
},
|
|
376
472
|
/**
|
|
377
473
|
* 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\"
|
|
378
474
|
* @summary List product documents
|
|
@@ -388,8 +484,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
388
484
|
* @param {*} [options] Override http request option.
|
|
389
485
|
* @throws {RequiredError}
|
|
390
486
|
*/
|
|
391
|
-
async
|
|
392
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
487
|
+
async 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>> {
|
|
488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
393
489
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
394
490
|
},
|
|
395
491
|
/**
|
|
@@ -433,11 +529,11 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
433
529
|
* @param {string} productSlug Product slug
|
|
434
530
|
* @param {string} code Product document code
|
|
435
531
|
* @param {string} [authorization] Bearer Token
|
|
436
|
-
* @param {
|
|
532
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
|
|
437
533
|
* @param {*} [options] Override http request option.
|
|
438
534
|
* @throws {RequiredError}
|
|
439
535
|
*/
|
|
440
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
536
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
441
537
|
return localVarFp.downloadProductDocument(productSlug, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
442
538
|
},
|
|
443
539
|
/**
|
|
@@ -452,6 +548,23 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
452
548
|
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentResponseClass> {
|
|
453
549
|
return localVarFp.getProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
|
|
454
550
|
},
|
|
551
|
+
/**
|
|
552
|
+
* 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\"
|
|
553
|
+
* @summary List product documents
|
|
554
|
+
* @param {string} [authorization] Bearer Token
|
|
555
|
+
* @param {number} [pageSize] Page size
|
|
556
|
+
* @param {string} [pageToken] Page token
|
|
557
|
+
* @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>
|
|
558
|
+
* @param {string} [search] Search query
|
|
559
|
+
* @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>
|
|
560
|
+
* @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/>
|
|
561
|
+
* @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>
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
566
|
+
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
567
|
+
},
|
|
455
568
|
/**
|
|
456
569
|
* 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\"
|
|
457
570
|
* @summary List product documents
|
|
@@ -467,8 +580,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
467
580
|
* @param {*} [options] Override http request option.
|
|
468
581
|
* @throws {RequiredError}
|
|
469
582
|
*/
|
|
470
|
-
|
|
471
|
-
return localVarFp.
|
|
583
|
+
listProductDocumentsByProduct(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
584
|
+
return localVarFp.listProductDocumentsByProduct(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
472
585
|
},
|
|
473
586
|
/**
|
|
474
587
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
@@ -541,11 +654,11 @@ export interface ProductDocumentsApiDownloadProductDocumentRequest {
|
|
|
541
654
|
readonly authorization?: string
|
|
542
655
|
|
|
543
656
|
/**
|
|
544
|
-
* Content disposition
|
|
545
|
-
* @type {
|
|
657
|
+
* Content disposition type
|
|
658
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
546
659
|
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
547
660
|
*/
|
|
548
|
-
readonly contentDisposition?:
|
|
661
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto
|
|
549
662
|
}
|
|
550
663
|
|
|
551
664
|
/**
|
|
@@ -582,13 +695,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
582
695
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
583
696
|
*/
|
|
584
697
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
585
|
-
/**
|
|
586
|
-
*
|
|
587
|
-
* @type {string}
|
|
588
|
-
* @memberof ProductDocumentsApiListProductDocuments
|
|
589
|
-
*/
|
|
590
|
-
readonly productSlug: string
|
|
591
|
-
|
|
592
698
|
/**
|
|
593
699
|
* Bearer Token
|
|
594
700
|
* @type {string}
|
|
@@ -646,6 +752,76 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
646
752
|
readonly filters?: string
|
|
647
753
|
}
|
|
648
754
|
|
|
755
|
+
/**
|
|
756
|
+
* Request parameters for listProductDocumentsByProduct operation in ProductDocumentsApi.
|
|
757
|
+
* @export
|
|
758
|
+
* @interface ProductDocumentsApiListProductDocumentsByProductRequest
|
|
759
|
+
*/
|
|
760
|
+
export interface ProductDocumentsApiListProductDocumentsByProductRequest {
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
765
|
+
*/
|
|
766
|
+
readonly productSlug: string
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Bearer Token
|
|
770
|
+
* @type {string}
|
|
771
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
772
|
+
*/
|
|
773
|
+
readonly authorization?: string
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Page size
|
|
777
|
+
* @type {number}
|
|
778
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
779
|
+
*/
|
|
780
|
+
readonly pageSize?: number
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Page token
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
786
|
+
*/
|
|
787
|
+
readonly pageToken?: string
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* 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>
|
|
791
|
+
* @type {string}
|
|
792
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
793
|
+
*/
|
|
794
|
+
readonly filter?: string
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Search query
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
800
|
+
*/
|
|
801
|
+
readonly search?: string
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* 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>
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
807
|
+
*/
|
|
808
|
+
readonly order?: string
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* 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/>
|
|
812
|
+
* @type {string}
|
|
813
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
814
|
+
*/
|
|
815
|
+
readonly expand?: string
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* 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>
|
|
819
|
+
* @type {string}
|
|
820
|
+
* @memberof ProductDocumentsApiListProductDocumentsByProduct
|
|
821
|
+
*/
|
|
822
|
+
readonly filters?: string
|
|
823
|
+
}
|
|
824
|
+
|
|
649
825
|
/**
|
|
650
826
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
651
827
|
* @export
|
|
@@ -725,8 +901,20 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
725
901
|
* @throws {RequiredError}
|
|
726
902
|
* @memberof ProductDocumentsApi
|
|
727
903
|
*/
|
|
728
|
-
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
|
|
729
|
-
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.
|
|
904
|
+
public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
905
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* 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\"
|
|
910
|
+
* @summary List product documents
|
|
911
|
+
* @param {ProductDocumentsApiListProductDocumentsByProductRequest} requestParameters Request parameters.
|
|
912
|
+
* @param {*} [options] Override http request option.
|
|
913
|
+
* @throws {RequiredError}
|
|
914
|
+
* @memberof ProductDocumentsApi
|
|
915
|
+
*/
|
|
916
|
+
public listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig) {
|
|
917
|
+
return ProductDocumentsApiFp(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
730
918
|
}
|
|
731
919
|
|
|
732
920
|
/**
|
package/api.ts
CHANGED
|
@@ -24,10 +24,10 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import { DefaultApi } from './api';
|
|
28
27
|
import { DocumentTemplatesApi } from './api';
|
|
29
28
|
import { DocumentsApi } from './api';
|
|
30
29
|
import { DocxTemplatesApi } from './api';
|
|
30
|
+
import { HealthApi } from './api';
|
|
31
31
|
import { LayoutsApi } from './api';
|
|
32
32
|
import { ProductDocumentsApi } from './api';
|
|
33
33
|
import { SearchKeywordsApi } from './api';
|
|
@@ -35,10 +35,10 @@ import { SearchableDocumentOwnersApi } from './api';
|
|
|
35
35
|
import { SearchableDocumentsApi } from './api';
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
export * from './api/default-api';
|
|
39
38
|
export * from './api/document-templates-api';
|
|
40
39
|
export * from './api/documents-api';
|
|
41
40
|
export * from './api/docx-templates-api';
|
|
41
|
+
export * from './api/health-api';
|
|
42
42
|
export * from './api/layouts-api';
|
|
43
43
|
export * from './api/product-documents-api';
|
|
44
44
|
export * from './api/search-keywords-api';
|
package/base.ts
CHANGED
|
@@ -60,6 +60,7 @@ export enum Environment {
|
|
|
60
60
|
Staging = 'https://apiv2-staging.emil.de',
|
|
61
61
|
Development = 'https://apiv2-dev.emil.de',
|
|
62
62
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
63
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
let _retry_count = 0
|