@emilgroup/document-sdk-node 1.11.3-beta.0 → 1.11.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +16 -8
- package/api/product-documents-api.ts +210 -12
- package/dist/api/docx-templates-api.d.ts +16 -12
- package/dist/api/product-documents-api.d.ts +126 -8
- package/dist/api/product-documents-api.js +141 -8
- package/dist/models/create-document-request-dto.d.ts +1 -12
- package/dist/models/create-document-request-dto.js +1 -11
- package/dist/models/document-class.d.ts +1 -12
- package/dist/models/document-class.js +1 -11
- package/dist/models/docx-template-class.d.ts +90 -0
- package/dist/models/docx-template-class.js +15 -0
- package/dist/models/get-docx-template-response-class.d.ts +25 -0
- package/dist/models/get-docx-template-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/list-docx-templates-response-class.d.ts +31 -0
- package/dist/models/list-docx-templates-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +2 -25
- package/dist/models/product-document-class.js +2 -24
- package/dist/models/update-docx-template-response-class.d.ts +25 -0
- package/dist/models/update-docx-template-response-class.js +15 -0
- package/models/create-document-request-dto.ts +1 -13
- package/models/document-class.ts +1 -13
- package/models/docx-template-class.ts +96 -0
- package/models/get-docx-template-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/list-docx-templates-response-class.ts +37 -0
- package/models/product-document-class.ts +3 -27
- package/models/update-docx-template-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
15
16
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
16
17
|
import { GetProductDocumentResponseClass } from '../models';
|
|
17
18
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
18
|
-
import { ProductDocumentClass } from '../models';
|
|
19
19
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* ProductDocumentsApi - axios parameter creator
|
|
@@ -55,6 +55,22 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
55
55
|
/**
|
|
56
56
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
57
57
|
* @summary List product documents
|
|
58
|
+
* @param {string} productSlug
|
|
59
|
+
* @param {string} [authorization] Bearer Token
|
|
60
|
+
* @param {number} [pageSize] Page size
|
|
61
|
+
* @param {string} [pageToken] Page token
|
|
62
|
+
* @param {string} [filter] List filter
|
|
63
|
+
* @param {string} [search] Search query
|
|
64
|
+
* @param {string} [order] Ordering criteria
|
|
65
|
+
* @param {string} [expand] Extra fields to fetch
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
listProductDocuments: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
+
/**
|
|
71
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
72
|
+
* @summary List product documents
|
|
73
|
+
* @param {string} productSlug
|
|
58
74
|
* @param {string} [authorization] Bearer Token
|
|
59
75
|
* @param {number} [pageSize] Page size
|
|
60
76
|
* @param {string} [pageToken] Page token
|
|
@@ -65,7 +81,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
65
81
|
* @param {*} [options] Override http request option.
|
|
66
82
|
* @throws {RequiredError}
|
|
67
83
|
*/
|
|
68
|
-
|
|
84
|
+
listProductDocuments_1: (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
85
|
/**
|
|
70
86
|
* Upload a product document.
|
|
71
87
|
* @summary Create the product document
|
|
@@ -115,6 +131,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
115
131
|
/**
|
|
116
132
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
117
133
|
* @summary List product documents
|
|
134
|
+
* @param {string} productSlug
|
|
118
135
|
* @param {string} [authorization] Bearer Token
|
|
119
136
|
* @param {number} [pageSize] Page size
|
|
120
137
|
* @param {string} [pageToken] Page token
|
|
@@ -125,7 +142,22 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
125
142
|
* @param {*} [options] Override http request option.
|
|
126
143
|
* @throws {RequiredError}
|
|
127
144
|
*/
|
|
128
|
-
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
145
|
+
listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
146
|
+
/**
|
|
147
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
148
|
+
* @summary List product documents
|
|
149
|
+
* @param {string} productSlug
|
|
150
|
+
* @param {string} [authorization] Bearer Token
|
|
151
|
+
* @param {number} [pageSize] Page size
|
|
152
|
+
* @param {string} [pageToken] Page token
|
|
153
|
+
* @param {string} [filter] List filter
|
|
154
|
+
* @param {string} [search] Search query
|
|
155
|
+
* @param {string} [order] Ordering criteria
|
|
156
|
+
* @param {string} [expand] Extra fields to fetch
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>>;
|
|
129
161
|
/**
|
|
130
162
|
* Upload a product document.
|
|
131
163
|
* @summary Create the product document
|
|
@@ -135,7 +167,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
135
167
|
* @param {*} [options] Override http request option.
|
|
136
168
|
* @throws {RequiredError}
|
|
137
169
|
*/
|
|
138
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
170
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
139
171
|
};
|
|
140
172
|
/**
|
|
141
173
|
* ProductDocumentsApi - factory interface
|
|
@@ -175,6 +207,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
175
207
|
/**
|
|
176
208
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
177
209
|
* @summary List product documents
|
|
210
|
+
* @param {string} productSlug
|
|
178
211
|
* @param {string} [authorization] Bearer Token
|
|
179
212
|
* @param {number} [pageSize] Page size
|
|
180
213
|
* @param {string} [pageToken] Page token
|
|
@@ -185,7 +218,22 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
185
218
|
* @param {*} [options] Override http request option.
|
|
186
219
|
* @throws {RequiredError}
|
|
187
220
|
*/
|
|
188
|
-
listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
221
|
+
listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
222
|
+
/**
|
|
223
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
224
|
+
* @summary List product documents
|
|
225
|
+
* @param {string} productSlug
|
|
226
|
+
* @param {string} [authorization] Bearer Token
|
|
227
|
+
* @param {number} [pageSize] Page size
|
|
228
|
+
* @param {string} [pageToken] Page token
|
|
229
|
+
* @param {string} [filter] List filter
|
|
230
|
+
* @param {string} [search] Search query
|
|
231
|
+
* @param {string} [order] Ordering criteria
|
|
232
|
+
* @param {string} [expand] Extra fields to fetch
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass>;
|
|
189
237
|
/**
|
|
190
238
|
* Upload a product document.
|
|
191
239
|
* @summary Create the product document
|
|
@@ -195,7 +243,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
195
243
|
* @param {*} [options] Override http request option.
|
|
196
244
|
* @throws {RequiredError}
|
|
197
245
|
*/
|
|
198
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
246
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
199
247
|
};
|
|
200
248
|
/**
|
|
201
249
|
* Request parameters for deleteProductDocument operation in ProductDocumentsApi.
|
|
@@ -278,6 +326,12 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
|
|
|
278
326
|
* @interface ProductDocumentsApiListProductDocumentsRequest
|
|
279
327
|
*/
|
|
280
328
|
export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof ProductDocumentsApiListProductDocuments
|
|
333
|
+
*/
|
|
334
|
+
readonly productSlug: string;
|
|
281
335
|
/**
|
|
282
336
|
* Bearer Token
|
|
283
337
|
* @type {string}
|
|
@@ -321,6 +375,61 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
321
375
|
*/
|
|
322
376
|
readonly expand?: string;
|
|
323
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
|
|
380
|
+
* @export
|
|
381
|
+
* @interface ProductDocumentsApiListProductDocuments0Request
|
|
382
|
+
*/
|
|
383
|
+
export interface ProductDocumentsApiListProductDocuments0Request {
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
388
|
+
*/
|
|
389
|
+
readonly productSlug: string;
|
|
390
|
+
/**
|
|
391
|
+
* Bearer Token
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
394
|
+
*/
|
|
395
|
+
readonly authorization?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Page size
|
|
398
|
+
* @type {number}
|
|
399
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
400
|
+
*/
|
|
401
|
+
readonly pageSize?: number;
|
|
402
|
+
/**
|
|
403
|
+
* Page token
|
|
404
|
+
* @type {string}
|
|
405
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
406
|
+
*/
|
|
407
|
+
readonly pageToken?: string;
|
|
408
|
+
/**
|
|
409
|
+
* List filter
|
|
410
|
+
* @type {string}
|
|
411
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
412
|
+
*/
|
|
413
|
+
readonly filter?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Search query
|
|
416
|
+
* @type {string}
|
|
417
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
418
|
+
*/
|
|
419
|
+
readonly search?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Ordering criteria
|
|
422
|
+
* @type {string}
|
|
423
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
424
|
+
*/
|
|
425
|
+
readonly order?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Extra fields to fetch
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof ProductDocumentsApiListProductDocuments0
|
|
430
|
+
*/
|
|
431
|
+
readonly expand?: string;
|
|
432
|
+
}
|
|
324
433
|
/**
|
|
325
434
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
326
435
|
* @export
|
|
@@ -388,7 +497,16 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
388
497
|
* @throws {RequiredError}
|
|
389
498
|
* @memberof ProductDocumentsApi
|
|
390
499
|
*/
|
|
391
|
-
listProductDocuments(requestParameters
|
|
500
|
+
listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
|
|
501
|
+
/**
|
|
502
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
503
|
+
* @summary List product documents
|
|
504
|
+
* @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
* @memberof ProductDocumentsApi
|
|
508
|
+
*/
|
|
509
|
+
listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any>>;
|
|
392
510
|
/**
|
|
393
511
|
* Upload a product document.
|
|
394
512
|
* @summary Create the product document
|
|
@@ -397,5 +515,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
397
515
|
* @throws {RequiredError}
|
|
398
516
|
* @memberof ProductDocumentsApi
|
|
399
517
|
*/
|
|
400
|
-
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
518
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
|
|
401
519
|
}
|
|
@@ -255,6 +255,79 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
255
255
|
/**
|
|
256
256
|
* 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.
|
|
257
257
|
* @summary List product documents
|
|
258
|
+
* @param {string} productSlug
|
|
259
|
+
* @param {string} [authorization] Bearer Token
|
|
260
|
+
* @param {number} [pageSize] Page size
|
|
261
|
+
* @param {string} [pageToken] Page token
|
|
262
|
+
* @param {string} [filter] List filter
|
|
263
|
+
* @param {string} [search] Search query
|
|
264
|
+
* @param {string} [order] Ordering criteria
|
|
265
|
+
* @param {string} [expand] Extra fields to fetch
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
270
|
+
if (options === void 0) { options = {}; }
|
|
271
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
272
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
277
|
+
(0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
|
|
278
|
+
localVarPath = "/documentservice/v1/documents/product/{productSlug}"
|
|
279
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
280
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
baseAccessToken = configuration.accessToken;
|
|
284
|
+
}
|
|
285
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
286
|
+
localVarHeaderParameter = {};
|
|
287
|
+
localVarQueryParameter = {};
|
|
288
|
+
// authentication bearer required
|
|
289
|
+
// http bearer authentication required
|
|
290
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
291
|
+
case 1:
|
|
292
|
+
// authentication bearer required
|
|
293
|
+
// http bearer authentication required
|
|
294
|
+
_a.sent();
|
|
295
|
+
if (pageSize !== undefined) {
|
|
296
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
297
|
+
}
|
|
298
|
+
if (pageToken !== undefined) {
|
|
299
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
300
|
+
}
|
|
301
|
+
if (filter !== undefined) {
|
|
302
|
+
localVarQueryParameter['filter'] = filter;
|
|
303
|
+
}
|
|
304
|
+
if (search !== undefined) {
|
|
305
|
+
localVarQueryParameter['search'] = search;
|
|
306
|
+
}
|
|
307
|
+
if (order !== undefined) {
|
|
308
|
+
localVarQueryParameter['order'] = order;
|
|
309
|
+
}
|
|
310
|
+
if (expand !== undefined) {
|
|
311
|
+
localVarQueryParameter['expand'] = expand;
|
|
312
|
+
}
|
|
313
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
314
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
315
|
+
}
|
|
316
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
317
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
318
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
319
|
+
return [2 /*return*/, {
|
|
320
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions,
|
|
322
|
+
}];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
},
|
|
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 {string} productSlug
|
|
258
331
|
* @param {string} [authorization] Bearer Token
|
|
259
332
|
* @param {number} [pageSize] Page size
|
|
260
333
|
* @param {string} [pageToken] Page token
|
|
@@ -265,14 +338,17 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
265
338
|
* @param {*} [options] Override http request option.
|
|
266
339
|
* @throws {RequiredError}
|
|
267
340
|
*/
|
|
268
|
-
|
|
341
|
+
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
269
342
|
if (options === void 0) { options = {}; }
|
|
270
343
|
return __awaiter(_this, void 0, void 0, function () {
|
|
271
344
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
345
|
return __generator(this, function (_a) {
|
|
273
346
|
switch (_a.label) {
|
|
274
347
|
case 0:
|
|
275
|
-
|
|
348
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
349
|
+
(0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
|
|
350
|
+
localVarPath = "/documentservice/v1/documents/product"
|
|
351
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
276
352
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
277
353
|
if (configuration) {
|
|
278
354
|
baseOptions = configuration.baseOptions;
|
|
@@ -452,6 +528,34 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
452
528
|
/**
|
|
453
529
|
* 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.
|
|
454
530
|
* @summary List product documents
|
|
531
|
+
* @param {string} productSlug
|
|
532
|
+
* @param {string} [authorization] Bearer Token
|
|
533
|
+
* @param {number} [pageSize] Page size
|
|
534
|
+
* @param {string} [pageToken] Page token
|
|
535
|
+
* @param {string} [filter] List filter
|
|
536
|
+
* @param {string} [search] Search query
|
|
537
|
+
* @param {string} [order] Ordering criteria
|
|
538
|
+
* @param {string} [expand] Extra fields to fetch
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
544
|
+
var localVarAxiosArgs;
|
|
545
|
+
return __generator(this, function (_a) {
|
|
546
|
+
switch (_a.label) {
|
|
547
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
548
|
+
case 1:
|
|
549
|
+
localVarAxiosArgs = _a.sent();
|
|
550
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* 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.
|
|
557
|
+
* @summary List product documents
|
|
558
|
+
* @param {string} productSlug
|
|
455
559
|
* @param {string} [authorization] Bearer Token
|
|
456
560
|
* @param {number} [pageSize] Page size
|
|
457
561
|
* @param {string} [pageToken] Page token
|
|
@@ -462,12 +566,12 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
462
566
|
* @param {*} [options] Override http request option.
|
|
463
567
|
* @throws {RequiredError}
|
|
464
568
|
*/
|
|
465
|
-
|
|
569
|
+
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
466
570
|
return __awaiter(this, void 0, void 0, function () {
|
|
467
571
|
var localVarAxiosArgs;
|
|
468
572
|
return __generator(this, function (_a) {
|
|
469
573
|
switch (_a.label) {
|
|
470
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
574
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
471
575
|
case 1:
|
|
472
576
|
localVarAxiosArgs = _a.sent();
|
|
473
577
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -546,6 +650,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
546
650
|
/**
|
|
547
651
|
* 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.
|
|
548
652
|
* @summary List product documents
|
|
653
|
+
* @param {string} productSlug
|
|
549
654
|
* @param {string} [authorization] Bearer Token
|
|
550
655
|
* @param {number} [pageSize] Page size
|
|
551
656
|
* @param {string} [pageToken] Page token
|
|
@@ -556,8 +661,25 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
556
661
|
* @param {*} [options] Override http request option.
|
|
557
662
|
* @throws {RequiredError}
|
|
558
663
|
*/
|
|
559
|
-
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
560
|
-
return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
664
|
+
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
665
|
+
return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* 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.
|
|
669
|
+
* @summary List product documents
|
|
670
|
+
* @param {string} productSlug
|
|
671
|
+
* @param {string} [authorization] Bearer Token
|
|
672
|
+
* @param {number} [pageSize] Page size
|
|
673
|
+
* @param {string} [pageToken] Page token
|
|
674
|
+
* @param {string} [filter] List filter
|
|
675
|
+
* @param {string} [search] Search query
|
|
676
|
+
* @param {string} [order] Ordering criteria
|
|
677
|
+
* @param {string} [expand] Extra fields to fetch
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
*/
|
|
681
|
+
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
682
|
+
return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
561
683
|
},
|
|
562
684
|
/**
|
|
563
685
|
* Upload a product document.
|
|
@@ -631,8 +753,19 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
631
753
|
*/
|
|
632
754
|
ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
633
755
|
var _this = this;
|
|
634
|
-
|
|
635
|
-
|
|
756
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* 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.
|
|
760
|
+
* @summary List product documents
|
|
761
|
+
* @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
* @memberof ProductDocumentsApi
|
|
765
|
+
*/
|
|
766
|
+
ProductDocumentsApi.prototype.listProductDocuments_1 = function (requestParameters, options) {
|
|
767
|
+
var _this = this;
|
|
768
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
636
769
|
};
|
|
637
770
|
/**
|
|
638
771
|
* Upload a product document.
|
|
@@ -32,7 +32,7 @@ export interface CreateDocumentRequestDto {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateDocumentRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'entityType':
|
|
35
|
+
'entityType': string;
|
|
36
36
|
/**
|
|
37
37
|
* Specifies the document creation strategy to be used, either synchronous or asynchronous.
|
|
38
38
|
* @type {string}
|
|
@@ -112,17 +112,6 @@ export interface CreateDocumentRequestDto {
|
|
|
112
112
|
*/
|
|
113
113
|
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
114
114
|
}
|
|
115
|
-
export declare const CreateDocumentRequestDtoEntityTypeEnum: {
|
|
116
|
-
readonly PolicyApplication: "policy_application";
|
|
117
|
-
readonly PolicyContract: "policy_contract";
|
|
118
|
-
readonly PolicyAddendum: "policy_addendum";
|
|
119
|
-
readonly InitialInvoice: "initial_invoice";
|
|
120
|
-
readonly CorrectionInvoice: "correction_invoice";
|
|
121
|
-
readonly RecurringInvoice: "recurring_invoice";
|
|
122
|
-
readonly SepaMandate: "sepa_mandate";
|
|
123
|
-
readonly Static: "static";
|
|
124
|
-
};
|
|
125
|
-
export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
|
|
126
115
|
export declare const CreateDocumentRequestDtoStrategyEnum: {
|
|
127
116
|
readonly Sync: "Sync";
|
|
128
117
|
readonly Async: "Async";
|
|
@@ -13,17 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum =
|
|
17
|
-
exports.CreateDocumentRequestDtoEntityTypeEnum = {
|
|
18
|
-
PolicyApplication: 'policy_application',
|
|
19
|
-
PolicyContract: 'policy_contract',
|
|
20
|
-
PolicyAddendum: 'policy_addendum',
|
|
21
|
-
InitialInvoice: 'initial_invoice',
|
|
22
|
-
CorrectionInvoice: 'correction_invoice',
|
|
23
|
-
RecurringInvoice: 'recurring_invoice',
|
|
24
|
-
SepaMandate: 'sepa_mandate',
|
|
25
|
-
Static: 'static'
|
|
26
|
-
};
|
|
16
|
+
exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = void 0;
|
|
27
17
|
exports.CreateDocumentRequestDtoStrategyEnum = {
|
|
28
18
|
Sync: 'Sync',
|
|
29
19
|
Async: 'Async'
|
|
@@ -38,7 +38,7 @@ export interface DocumentClass {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DocumentClass
|
|
40
40
|
*/
|
|
41
|
-
'entityType':
|
|
41
|
+
'entityType': string;
|
|
42
42
|
/**
|
|
43
43
|
* Payload used to replace variables in the template.
|
|
44
44
|
* @type {object}
|
|
@@ -118,17 +118,6 @@ export interface DocumentClass {
|
|
|
118
118
|
*/
|
|
119
119
|
'ern': string;
|
|
120
120
|
}
|
|
121
|
-
export declare const DocumentClassEntityTypeEnum: {
|
|
122
|
-
readonly PolicyApplication: "policy_application";
|
|
123
|
-
readonly PolicyContract: "policy_contract";
|
|
124
|
-
readonly PolicyAddendum: "policy_addendum";
|
|
125
|
-
readonly InitialInvoice: "initial_invoice";
|
|
126
|
-
readonly CorrectionInvoice: "correction_invoice";
|
|
127
|
-
readonly RecurringInvoice: "recurring_invoice";
|
|
128
|
-
readonly SepaMandate: "sepa_mandate";
|
|
129
|
-
readonly Static: "static";
|
|
130
|
-
};
|
|
131
|
-
export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
|
|
132
121
|
export declare const DocumentClassRequesterEnum: {
|
|
133
122
|
readonly Accountservice: "accountservice";
|
|
134
123
|
readonly Insuranceservice: "insuranceservice";
|
|
@@ -13,17 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum =
|
|
17
|
-
exports.DocumentClassEntityTypeEnum = {
|
|
18
|
-
PolicyApplication: 'policy_application',
|
|
19
|
-
PolicyContract: 'policy_contract',
|
|
20
|
-
PolicyAddendum: 'policy_addendum',
|
|
21
|
-
InitialInvoice: 'initial_invoice',
|
|
22
|
-
CorrectionInvoice: 'correction_invoice',
|
|
23
|
-
RecurringInvoice: 'recurring_invoice',
|
|
24
|
-
SepaMandate: 'sepa_mandate',
|
|
25
|
-
Static: 'static'
|
|
26
|
-
};
|
|
16
|
+
exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = void 0;
|
|
27
17
|
exports.DocumentClassRequesterEnum = {
|
|
28
18
|
Accountservice: 'accountservice',
|
|
29
19
|
Insuranceservice: 'insuranceservice',
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DocxTemplateClass
|
|
16
|
+
*/
|
|
17
|
+
export interface DocxTemplateClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DocxTemplateClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DocxTemplateClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DocxTemplateClass
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DocxTemplateClass
|
|
40
|
+
*/
|
|
41
|
+
'productVersionId': number;
|
|
42
|
+
/**
|
|
43
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DocxTemplateClass
|
|
46
|
+
*/
|
|
47
|
+
'productSlug': string;
|
|
48
|
+
/**
|
|
49
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof DocxTemplateClass
|
|
52
|
+
*/
|
|
53
|
+
'description': string;
|
|
54
|
+
/**
|
|
55
|
+
* The unique key used by Amazon Simple Storage Service (S3).
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DocxTemplateClass
|
|
58
|
+
*/
|
|
59
|
+
's3Key': string;
|
|
60
|
+
/**
|
|
61
|
+
* Document entity type.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DocxTemplateClass
|
|
64
|
+
*/
|
|
65
|
+
'entityType': string;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the file the end user will see when he downloads it.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof DocxTemplateClass
|
|
70
|
+
*/
|
|
71
|
+
'filename': string;
|
|
72
|
+
/**
|
|
73
|
+
* Version number of the template, incremented each time a new version is uploaded.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof DocxTemplateClass
|
|
76
|
+
*/
|
|
77
|
+
'versionNumber': number;
|
|
78
|
+
/**
|
|
79
|
+
* Time at which the object was created.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof DocxTemplateClass
|
|
82
|
+
*/
|
|
83
|
+
'createdAt': string;
|
|
84
|
+
/**
|
|
85
|
+
* Time at which the object was updated.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof DocxTemplateClass
|
|
88
|
+
*/
|
|
89
|
+
'updatedAt': string;
|
|
90
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 { DocxTemplateClass } from './docx-template-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetDocxTemplateResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetDocxTemplateResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Docx Template
|
|
21
|
+
* @type {DocxTemplateClass}
|
|
22
|
+
* @memberof GetDocxTemplateResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'docxTemplate': DocxTemplateClass;
|
|
25
|
+
}
|