@emilgroup/document-sdk-node 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +8 -8
- package/api/product-documents-api.ts +112 -0
- package/dist/api/document-templates-api.d.ts +8 -8
- package/dist/api/document-templates-api.js +6 -6
- package/dist/api/product-documents-api.d.ts +61 -0
- package/dist/api/product-documents-api.js +94 -0
- package/dist/models/create-doc-template-request-dto.d.ts +6 -0
- package/dist/models/doc-template-class.d.ts +6 -0
- package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/product-document-class.d.ts +0 -6
- package/dist/models/update-doc-template-request-dto.d.ts +6 -0
- package/models/create-doc-template-request-dto.ts +6 -0
- package/models/doc-template-class.ts +6 -0
- package/models/get-product-document-download-url-response-class.ts +30 -0
- package/models/grpc-create-doc-template-request-dto.ts +61 -0
- package/models/grpc-update-doc-template-request-dto.ts +67 -0
- package/models/index.ts +3 -0
- package/models/product-document-class.ts +0 -6
- package/models/update-doc-template-request-dto.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -36,8 +36,11 @@ models/get-doc-template-response-class.ts
|
|
|
36
36
|
models/get-document-download-url-response-class.ts
|
|
37
37
|
models/get-layout-request-dto.ts
|
|
38
38
|
models/get-layout-response-class.ts
|
|
39
|
+
models/get-product-document-download-url-response-class.ts
|
|
39
40
|
models/get-product-document-response-class.ts
|
|
40
41
|
models/get-signed-s3-key-url-response-class.ts
|
|
42
|
+
models/grpc-create-doc-template-request-dto.ts
|
|
43
|
+
models/grpc-update-doc-template-request-dto.ts
|
|
41
44
|
models/html-template-class.ts
|
|
42
45
|
models/index.ts
|
|
43
46
|
models/layout-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.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.5.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.5.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -141,7 +141,7 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
141
141
|
* @summary Retrieve the document template
|
|
142
142
|
* @param {number} id
|
|
143
143
|
* @param {string} [authorization] Bearer Token
|
|
144
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
144
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
145
145
|
* @param {*} [options] Override http request option.
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
*/
|
|
@@ -191,7 +191,7 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
191
191
|
* @summary List document templates
|
|
192
192
|
* @param {string} [authorization] Bearer Token
|
|
193
193
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
194
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
194
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
195
195
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
196
196
|
* @param {string} [search] Search document templates by name | slug
|
|
197
197
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -347,7 +347,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
347
347
|
* @summary Retrieve the document template
|
|
348
348
|
* @param {number} id
|
|
349
349
|
* @param {string} [authorization] Bearer Token
|
|
350
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
350
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
352
352
|
* @throws {RequiredError}
|
|
353
353
|
*/
|
|
@@ -360,7 +360,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
360
360
|
* @summary List document templates
|
|
361
361
|
* @param {string} [authorization] Bearer Token
|
|
362
362
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
363
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
363
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
364
364
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
365
365
|
* @param {string} [search] Search document templates by name | slug
|
|
366
366
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -422,7 +422,7 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
422
422
|
* @summary Retrieve the document template
|
|
423
423
|
* @param {number} id
|
|
424
424
|
* @param {string} [authorization] Bearer Token
|
|
425
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
425
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
@@ -434,7 +434,7 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
434
434
|
* @summary List document templates
|
|
435
435
|
* @param {string} [authorization] Bearer Token
|
|
436
436
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
437
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
437
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
438
438
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
439
439
|
* @param {string} [search] Search document templates by name | slug
|
|
440
440
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -523,7 +523,7 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
523
523
|
readonly authorization?: string
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
|
-
* Use this parameter to fetch additional information about the list items.
|
|
526
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
527
527
|
* @type {string}
|
|
528
528
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
529
529
|
*/
|
|
@@ -551,7 +551,7 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
|
551
551
|
readonly pageSize?: number
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
554
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
555
555
|
* @type {string}
|
|
556
556
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
557
557
|
*/
|
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { GetProductDocumentResponseClass } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -78,6 +80,54 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
89
|
+
options: localVarRequestOptions,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @param {string} productSlug
|
|
95
|
+
* @param {string} code
|
|
96
|
+
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
downloadProductDocument: async (productSlug: string, code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
102
|
+
assertParamExists('downloadProductDocument', 'productSlug', productSlug)
|
|
103
|
+
// verify required parameter 'code' is not null or undefined
|
|
104
|
+
assertParamExists('downloadProductDocument', 'code', code)
|
|
105
|
+
const localVarPath = `/documentservice/v1/documents/product/{productSlug}/{code}/download-url`
|
|
106
|
+
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)))
|
|
107
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
let baseAccessToken;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
118
|
+
const localVarHeaderParameter = {} as any;
|
|
119
|
+
const localVarQueryParameter = {} as any;
|
|
120
|
+
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
+
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
81
131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
133
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -285,6 +335,18 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
285
335
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductDocument(code, productSlug, authorization, options);
|
|
286
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
287
337
|
},
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @param {string} productSlug
|
|
341
|
+
* @param {string} code
|
|
342
|
+
* @param {string} [authorization] Bearer Token
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
async downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options);
|
|
348
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
|
+
},
|
|
288
350
|
/**
|
|
289
351
|
* Get a product document.
|
|
290
352
|
* @summary Retrieve the product document
|
|
@@ -351,6 +413,17 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
351
413
|
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
352
414
|
return localVarFp.deleteProductDocument(code, productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
353
415
|
},
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @param {string} productSlug
|
|
419
|
+
* @param {string} code
|
|
420
|
+
* @param {string} [authorization] Bearer Token
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
425
|
+
return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
|
|
426
|
+
},
|
|
354
427
|
/**
|
|
355
428
|
* Get a product document.
|
|
356
429
|
* @summary Retrieve the product document
|
|
@@ -423,6 +496,34 @@ export interface ProductDocumentsApiDeleteProductDocumentRequest {
|
|
|
423
496
|
readonly authorization?: string
|
|
424
497
|
}
|
|
425
498
|
|
|
499
|
+
/**
|
|
500
|
+
* Request parameters for downloadProductDocument operation in ProductDocumentsApi.
|
|
501
|
+
* @export
|
|
502
|
+
* @interface ProductDocumentsApiDownloadProductDocumentRequest
|
|
503
|
+
*/
|
|
504
|
+
export interface ProductDocumentsApiDownloadProductDocumentRequest {
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @type {string}
|
|
508
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
509
|
+
*/
|
|
510
|
+
readonly productSlug: string
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @type {string}
|
|
515
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
516
|
+
*/
|
|
517
|
+
readonly code: string
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Bearer Token
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
523
|
+
*/
|
|
524
|
+
readonly authorization?: string
|
|
525
|
+
}
|
|
526
|
+
|
|
426
527
|
/**
|
|
427
528
|
* Request parameters for getProductDocument operation in ProductDocumentsApi.
|
|
428
529
|
* @export
|
|
@@ -561,6 +662,17 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
561
662
|
return ProductDocumentsApiFp(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
562
663
|
}
|
|
563
664
|
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @param {ProductDocumentsApiDownloadProductDocumentRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
* @memberof ProductDocumentsApi
|
|
671
|
+
*/
|
|
672
|
+
public downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig) {
|
|
673
|
+
return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
674
|
+
}
|
|
675
|
+
|
|
564
676
|
/**
|
|
565
677
|
* Get a product document.
|
|
566
678
|
* @summary Retrieve the product document
|
|
@@ -47,7 +47,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
|
|
|
47
47
|
* @summary Retrieve the document template
|
|
48
48
|
* @param {number} id
|
|
49
49
|
* @param {string} [authorization] Bearer Token
|
|
50
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
50
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
@@ -57,7 +57,7 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
|
|
|
57
57
|
* @summary List document templates
|
|
58
58
|
* @param {string} [authorization] Bearer Token
|
|
59
59
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
60
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
61
61
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
62
62
|
* @param {string} [search] Search document templates by name | slug
|
|
63
63
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -105,7 +105,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
105
105
|
* @summary Retrieve the document template
|
|
106
106
|
* @param {number} id
|
|
107
107
|
* @param {string} [authorization] Bearer Token
|
|
108
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
108
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
@@ -115,7 +115,7 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
115
115
|
* @summary List document templates
|
|
116
116
|
* @param {string} [authorization] Bearer Token
|
|
117
117
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
118
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
118
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
119
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
120
120
|
* @param {string} [search] Search document templates by name | slug
|
|
121
121
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -163,7 +163,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
163
163
|
* @summary Retrieve the document template
|
|
164
164
|
* @param {number} id
|
|
165
165
|
* @param {string} [authorization] Bearer Token
|
|
166
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
166
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
@@ -173,7 +173,7 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
173
173
|
* @summary List document templates
|
|
174
174
|
* @param {string} [authorization] Bearer Token
|
|
175
175
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
176
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
176
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
177
177
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
178
178
|
* @param {string} [search] Search document templates by name | slug
|
|
179
179
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -250,7 +250,7 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
250
250
|
*/
|
|
251
251
|
readonly authorization?: string;
|
|
252
252
|
/**
|
|
253
|
-
* Use this parameter to fetch additional information about the list items.
|
|
253
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
254
254
|
* @type {string}
|
|
255
255
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
256
256
|
*/
|
|
@@ -275,7 +275,7 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
|
275
275
|
*/
|
|
276
276
|
readonly pageSize?: number;
|
|
277
277
|
/**
|
|
278
|
-
* A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
278
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
279
279
|
* @type {string}
|
|
280
280
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
281
281
|
*/
|
|
@@ -198,7 +198,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
198
198
|
* @summary Retrieve the document template
|
|
199
199
|
* @param {number} id
|
|
200
200
|
* @param {string} [authorization] Bearer Token
|
|
201
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
201
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
@@ -250,7 +250,7 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
250
250
|
* @summary List document templates
|
|
251
251
|
* @param {string} [authorization] Bearer Token
|
|
252
252
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
253
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
253
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
254
254
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
255
255
|
* @param {string} [search] Search document templates by name | slug
|
|
256
256
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -423,7 +423,7 @@ var DocumentTemplatesApiFp = function (configuration) {
|
|
|
423
423
|
* @summary Retrieve the document template
|
|
424
424
|
* @param {number} id
|
|
425
425
|
* @param {string} [authorization] Bearer Token
|
|
426
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
426
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
427
427
|
* @param {*} [options] Override http request option.
|
|
428
428
|
* @throws {RequiredError}
|
|
429
429
|
*/
|
|
@@ -445,7 +445,7 @@ var DocumentTemplatesApiFp = function (configuration) {
|
|
|
445
445
|
* @summary List document templates
|
|
446
446
|
* @param {string} [authorization] Bearer Token
|
|
447
447
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
448
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
448
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
449
449
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
450
450
|
* @param {string} [search] Search document templates by name | slug
|
|
451
451
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -525,7 +525,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
525
525
|
* @summary Retrieve the document template
|
|
526
526
|
* @param {number} id
|
|
527
527
|
* @param {string} [authorization] Bearer Token
|
|
528
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items.
|
|
528
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
529
529
|
* @param {*} [options] Override http request option.
|
|
530
530
|
* @throws {RequiredError}
|
|
531
531
|
*/
|
|
@@ -537,7 +537,7 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
537
537
|
* @summary List document templates
|
|
538
538
|
* @param {string} [authorization] Bearer Token
|
|
539
539
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
540
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list.
|
|
540
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
541
541
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
542
542
|
* @param {string} [search] Search document templates by name | slug
|
|
543
543
|
* @param {string} [order] Order response by createdAt.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
15
16
|
import { GetProductDocumentResponseClass } from '../models';
|
|
16
17
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
17
18
|
import { ProductDocumentClass } from '../models';
|
|
@@ -31,6 +32,15 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
31
32
|
* @throws {RequiredError}
|
|
32
33
|
*/
|
|
33
34
|
deleteProductDocument: (code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {string} productSlug
|
|
38
|
+
* @param {string} code
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
downloadProductDocument: (productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
44
|
/**
|
|
35
45
|
* Get a product document.
|
|
36
46
|
* @summary Retrieve the product document
|
|
@@ -82,6 +92,15 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
82
92
|
* @throws {RequiredError}
|
|
83
93
|
*/
|
|
84
94
|
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @param {string} productSlug
|
|
98
|
+
* @param {string} code
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
85
104
|
/**
|
|
86
105
|
* Get a product document.
|
|
87
106
|
* @summary Retrieve the product document
|
|
@@ -133,6 +152,15 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
133
152
|
* @throws {RequiredError}
|
|
134
153
|
*/
|
|
135
154
|
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {string} productSlug
|
|
158
|
+
* @param {string} code
|
|
159
|
+
* @param {string} [authorization] Bearer Token
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
136
164
|
/**
|
|
137
165
|
* Get a product document.
|
|
138
166
|
* @summary Retrieve the product document
|
|
@@ -194,6 +222,31 @@ export interface ProductDocumentsApiDeleteProductDocumentRequest {
|
|
|
194
222
|
*/
|
|
195
223
|
readonly authorization?: string;
|
|
196
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Request parameters for downloadProductDocument operation in ProductDocumentsApi.
|
|
227
|
+
* @export
|
|
228
|
+
* @interface ProductDocumentsApiDownloadProductDocumentRequest
|
|
229
|
+
*/
|
|
230
|
+
export interface ProductDocumentsApiDownloadProductDocumentRequest {
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
235
|
+
*/
|
|
236
|
+
readonly productSlug: string;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @type {string}
|
|
240
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
241
|
+
*/
|
|
242
|
+
readonly code: string;
|
|
243
|
+
/**
|
|
244
|
+
* Bearer Token
|
|
245
|
+
* @type {string}
|
|
246
|
+
* @memberof ProductDocumentsApiDownloadProductDocument
|
|
247
|
+
*/
|
|
248
|
+
readonly authorization?: string;
|
|
249
|
+
}
|
|
197
250
|
/**
|
|
198
251
|
* Request parameters for getProductDocument operation in ProductDocumentsApi.
|
|
199
252
|
* @export
|
|
@@ -315,6 +368,14 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
315
368
|
* @memberof ProductDocumentsApi
|
|
316
369
|
*/
|
|
317
370
|
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @param {ProductDocumentsApiDownloadProductDocumentRequest} requestParameters Request parameters.
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
* @memberof ProductDocumentsApi
|
|
377
|
+
*/
|
|
378
|
+
downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any>>;
|
|
318
379
|
/**
|
|
319
380
|
* Get a product document.
|
|
320
381
|
* @summary Retrieve the product document
|
|
@@ -148,6 +148,57 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
},
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @param {string} productSlug
|
|
154
|
+
* @param {string} code
|
|
155
|
+
* @param {string} [authorization] Bearer Token
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
160
|
+
if (options === void 0) { options = {}; }
|
|
161
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
switch (_a.label) {
|
|
165
|
+
case 0:
|
|
166
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('downloadProductDocument', 'productSlug', productSlug);
|
|
168
|
+
// verify required parameter 'code' is not null or undefined
|
|
169
|
+
(0, common_1.assertParamExists)('downloadProductDocument', 'code', code);
|
|
170
|
+
localVarPath = "/documentservice/v1/documents/product/{productSlug}/{code}/download-url"
|
|
171
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)))
|
|
172
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
173
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
baseAccessToken = configuration.accessToken;
|
|
177
|
+
}
|
|
178
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
179
|
+
localVarHeaderParameter = {};
|
|
180
|
+
localVarQueryParameter = {};
|
|
181
|
+
// authentication bearer required
|
|
182
|
+
// http bearer authentication required
|
|
183
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
184
|
+
case 1:
|
|
185
|
+
// authentication bearer required
|
|
186
|
+
// http bearer authentication required
|
|
187
|
+
_a.sent();
|
|
188
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
|
+
}
|
|
191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
192
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
194
|
+
return [2 /*return*/, {
|
|
195
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
}];
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
},
|
|
151
202
|
/**
|
|
152
203
|
* Get a product document.
|
|
153
204
|
* @summary Retrieve the product document
|
|
@@ -357,6 +408,27 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
357
408
|
});
|
|
358
409
|
});
|
|
359
410
|
},
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @param {string} productSlug
|
|
414
|
+
* @param {string} code
|
|
415
|
+
* @param {string} [authorization] Bearer Token
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
421
|
+
var localVarAxiosArgs;
|
|
422
|
+
return __generator(this, function (_a) {
|
|
423
|
+
switch (_a.label) {
|
|
424
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options)];
|
|
425
|
+
case 1:
|
|
426
|
+
localVarAxiosArgs = _a.sent();
|
|
427
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
},
|
|
360
432
|
/**
|
|
361
433
|
* Get a product document.
|
|
362
434
|
* @summary Retrieve the product document
|
|
@@ -450,6 +522,17 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
450
522
|
deleteProductDocument: function (code, productSlug, authorization, options) {
|
|
451
523
|
return localVarFp.deleteProductDocument(code, productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
452
524
|
},
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @param {string} productSlug
|
|
528
|
+
* @param {string} code
|
|
529
|
+
* @param {string} [authorization] Bearer Token
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
534
|
+
return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
535
|
+
},
|
|
453
536
|
/**
|
|
454
537
|
* Get a product document.
|
|
455
538
|
* @summary Retrieve the product document
|
|
@@ -517,6 +600,17 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
517
600
|
var _this = this;
|
|
518
601
|
return (0, exports.ProductDocumentsApiFp)(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
519
602
|
};
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @param {ProductDocumentsApiDownloadProductDocumentRequest} requestParameters Request parameters.
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
* @memberof ProductDocumentsApi
|
|
609
|
+
*/
|
|
610
|
+
ProductDocumentsApi.prototype.downloadProductDocument = function (requestParameters, options) {
|
|
611
|
+
var _this = this;
|
|
612
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
+
};
|
|
520
614
|
/**
|
|
521
615
|
* Get a product document.
|
|
522
616
|
* @summary Retrieve the product document
|
|
@@ -46,4 +46,10 @@ export interface CreateDocTemplateRequestDto {
|
|
|
46
46
|
* @memberof CreateDocTemplateRequestDto
|
|
47
47
|
*/
|
|
48
48
|
'productSlug'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The filename of the document template as it appears when sent to customers.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateDocTemplateRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
49
55
|
}
|
|
@@ -41,6 +41,12 @@ export interface DocTemplateClass {
|
|
|
41
41
|
* @memberof DocTemplateClass
|
|
42
42
|
*/
|
|
43
43
|
'slug': string;
|
|
44
|
+
/**
|
|
45
|
+
* The filename of the document template as it appears when sent to customers.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DocTemplateClass
|
|
48
|
+
*/
|
|
49
|
+
'label'?: string;
|
|
44
50
|
/**
|
|
45
51
|
* Unique identifier referencing the layout.
|
|
46
52
|
* @type {number}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 GetProductDocumentDownloadUrlResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetProductDocumentDownloadUrlResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-signed url for downloading product documents.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetProductDocumentDownloadUrlResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'url': string;
|
|
24
|
+
}
|
|
@@ -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,55 @@
|
|
|
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 { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GrpcCreateDocTemplateRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface GrpcCreateDocTemplateRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'slug': string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'layoutId': number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CreateHtmlTemplateDto}
|
|
40
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'productSlug'?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
55
|
+
}
|
|
@@ -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,61 @@
|
|
|
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 { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GrpcUpdateDocTemplateRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface GrpcUpdateDocTemplateRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'slug': string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'layoutId': number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CreateHtmlTemplateDto}
|
|
40
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'productSlug'?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
59
|
+
*/
|
|
60
|
+
'id': number;
|
|
61
|
+
}
|
|
@@ -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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -19,8 +19,11 @@ export * from './get-doc-template-response-class';
|
|
|
19
19
|
export * from './get-document-download-url-response-class';
|
|
20
20
|
export * from './get-layout-request-dto';
|
|
21
21
|
export * from './get-layout-response-class';
|
|
22
|
+
export * from './get-product-document-download-url-response-class';
|
|
22
23
|
export * from './get-product-document-response-class';
|
|
23
24
|
export * from './get-signed-s3-key-url-response-class';
|
|
25
|
+
export * from './grpc-create-doc-template-request-dto';
|
|
26
|
+
export * from './grpc-update-doc-template-request-dto';
|
|
24
27
|
export * from './html-template-class';
|
|
25
28
|
export * from './layout-class';
|
|
26
29
|
export * from './list-doc-template-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -35,8 +35,11 @@ __exportStar(require("./get-doc-template-response-class"), exports);
|
|
|
35
35
|
__exportStar(require("./get-document-download-url-response-class"), exports);
|
|
36
36
|
__exportStar(require("./get-layout-request-dto"), exports);
|
|
37
37
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
38
|
+
__exportStar(require("./get-product-document-download-url-response-class"), exports);
|
|
38
39
|
__exportStar(require("./get-product-document-response-class"), exports);
|
|
39
40
|
__exportStar(require("./get-signed-s3-key-url-response-class"), exports);
|
|
41
|
+
__exportStar(require("./grpc-create-doc-template-request-dto"), exports);
|
|
42
|
+
__exportStar(require("./grpc-update-doc-template-request-dto"), exports);
|
|
40
43
|
__exportStar(require("./html-template-class"), exports);
|
|
41
44
|
__exportStar(require("./layout-class"), exports);
|
|
42
45
|
__exportStar(require("./list-doc-template-request-dto"), exports);
|
|
@@ -75,12 +75,6 @@ export interface ProductDocumentClass {
|
|
|
75
75
|
* @memberof ProductDocumentClass
|
|
76
76
|
*/
|
|
77
77
|
'productSlug': string;
|
|
78
|
-
/**
|
|
79
|
-
* Product document filename
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof ProductDocumentClass
|
|
82
|
-
*/
|
|
83
|
-
'filename'?: string;
|
|
84
78
|
/**
|
|
85
79
|
* Time at which the object was created.
|
|
86
80
|
* @type {string}
|
|
@@ -46,6 +46,12 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
46
46
|
* @memberof UpdateDocTemplateRequestDto
|
|
47
47
|
*/
|
|
48
48
|
'productSlug'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The filename of the document template as it appears when sent to customers.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
49
55
|
/**
|
|
50
56
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
51
57
|
* @type {number}
|
|
@@ -51,5 +51,11 @@ export interface CreateDocTemplateRequestDto {
|
|
|
51
51
|
* @memberof CreateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The filename of the document template as it appears when sent to customers.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
54
60
|
}
|
|
55
61
|
|
|
@@ -46,6 +46,12 @@ export interface DocTemplateClass {
|
|
|
46
46
|
* @memberof DocTemplateClass
|
|
47
47
|
*/
|
|
48
48
|
'slug': string;
|
|
49
|
+
/**
|
|
50
|
+
* The filename of the document template as it appears when sent to customers.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DocTemplateClass
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
49
55
|
/**
|
|
50
56
|
* Unique identifier referencing the layout.
|
|
51
57
|
* @type {number}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GetProductDocumentDownloadUrlResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProductDocumentDownloadUrlResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Pre-signed url for downloading product documents.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetProductDocumentDownloadUrlResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GrpcCreateDocTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface GrpcCreateDocTemplateRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'layoutId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL DocumentService
|
|
5
|
+
* The EMIL DocumentService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GrpcUpdateDocTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface GrpcUpdateDocTemplateRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'layoutId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'id': number;
|
|
66
|
+
}
|
|
67
|
+
|
package/models/index.ts
CHANGED
|
@@ -19,8 +19,11 @@ export * from './get-doc-template-response-class';
|
|
|
19
19
|
export * from './get-document-download-url-response-class';
|
|
20
20
|
export * from './get-layout-request-dto';
|
|
21
21
|
export * from './get-layout-response-class';
|
|
22
|
+
export * from './get-product-document-download-url-response-class';
|
|
22
23
|
export * from './get-product-document-response-class';
|
|
23
24
|
export * from './get-signed-s3-key-url-response-class';
|
|
25
|
+
export * from './grpc-create-doc-template-request-dto';
|
|
26
|
+
export * from './grpc-update-doc-template-request-dto';
|
|
24
27
|
export * from './html-template-class';
|
|
25
28
|
export * from './layout-class';
|
|
26
29
|
export * from './list-doc-template-request-dto';
|
|
@@ -80,12 +80,6 @@ export interface ProductDocumentClass {
|
|
|
80
80
|
* @memberof ProductDocumentClass
|
|
81
81
|
*/
|
|
82
82
|
'productSlug': string;
|
|
83
|
-
/**
|
|
84
|
-
* Product document filename
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof ProductDocumentClass
|
|
87
|
-
*/
|
|
88
|
-
'filename'?: string;
|
|
89
83
|
/**
|
|
90
84
|
* Time at which the object was created.
|
|
91
85
|
* @type {string}
|
|
@@ -51,6 +51,12 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
51
51
|
* @memberof UpdateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The filename of the document template as it appears when sent to customers.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
54
60
|
/**
|
|
55
61
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
56
62
|
* @type {number}
|