@emilgroup/document-sdk-node 1.7.0 → 1.8.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 +1 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +206 -0
- package/dist/api/docx-templates-api.d.ts +112 -0
- package/dist/api/docx-templates-api.js +184 -0
- package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
- package/dist/models/get-docx-template-download-url-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/get-docx-template-download-url-response-class.ts +30 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -36,6 +36,7 @@ models/download-document-request-dto.ts
|
|
|
36
36
|
models/get-doc-template-request-dto.ts
|
|
37
37
|
models/get-doc-template-response-class.ts
|
|
38
38
|
models/get-document-download-url-response-class.ts
|
|
39
|
+
models/get-docx-template-download-url-response-class.ts
|
|
39
40
|
models/get-layout-request-dto.ts
|
|
40
41
|
models/get-layout-response-class.ts
|
|
41
42
|
models/get-product-document-download-url-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.8.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.8.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -21,6 +21,10 @@ 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 { DeleteResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
@@ -34,6 +38,96 @@ const FormData = require('form-data');
|
|
|
34
38
|
*/
|
|
35
39
|
export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
40
|
return {
|
|
41
|
+
/**
|
|
42
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
43
|
+
* @summary Delete the docx template
|
|
44
|
+
* @param {string} code
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
deleteDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'code' is not null or undefined
|
|
51
|
+
assertParamExists('deleteDocxTemplate', 'code', code)
|
|
52
|
+
const localVarPath = `/documentservice/v1/docx-templates/{code}`
|
|
53
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
let baseAccessToken;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
baseAccessToken = configuration.accessToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication bearer required
|
|
68
|
+
// http bearer authentication required
|
|
69
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
+
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Get a pre-signed download url for the given docx template.
|
|
88
|
+
* @summary Get pre-signed url for downloading docx template
|
|
89
|
+
* @param {string} code
|
|
90
|
+
* @param {string} [authorization] Bearer Token
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
downloadDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'code' is not null or undefined
|
|
96
|
+
assertParamExists('downloadDocxTemplate', 'code', code)
|
|
97
|
+
const localVarPath = `/documentservice/v1/docx-templates/{code}/download-url`
|
|
98
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
let baseAccessToken;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
baseAccessToken = configuration.accessToken;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
109
|
+
const localVarHeaderParameter = {} as any;
|
|
110
|
+
const localVarQueryParameter = {} as any;
|
|
111
|
+
|
|
112
|
+
// authentication bearer required
|
|
113
|
+
// http bearer authentication required
|
|
114
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
|
+
|
|
116
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
37
131
|
/**
|
|
38
132
|
* Get a docx template.
|
|
39
133
|
* @summary Retrieve the docx template
|
|
@@ -258,6 +352,30 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
258
352
|
export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
259
353
|
const localVarAxiosParamCreator = DocxTemplatesApiAxiosParamCreator(configuration)
|
|
260
354
|
return {
|
|
355
|
+
/**
|
|
356
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
357
|
+
* @summary Delete the docx template
|
|
358
|
+
* @param {string} code
|
|
359
|
+
* @param {string} [authorization] Bearer Token
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
async deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocxTemplate(code, authorization, options);
|
|
365
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
* Get a pre-signed download url for the given docx template.
|
|
369
|
+
* @summary Get pre-signed url for downloading docx template
|
|
370
|
+
* @param {string} code
|
|
371
|
+
* @param {string} [authorization] Bearer Token
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>> {
|
|
376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
377
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
378
|
+
},
|
|
261
379
|
/**
|
|
262
380
|
* Get a docx template.
|
|
263
381
|
* @summary Retrieve the docx template
|
|
@@ -322,6 +440,28 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
322
440
|
export const DocxTemplatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
323
441
|
const localVarFp = DocxTemplatesApiFp(configuration)
|
|
324
442
|
return {
|
|
443
|
+
/**
|
|
444
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
445
|
+
* @summary Delete the docx template
|
|
446
|
+
* @param {string} code
|
|
447
|
+
* @param {string} [authorization] Bearer Token
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
452
|
+
return localVarFp.deleteDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
* Get a pre-signed download url for the given docx template.
|
|
456
|
+
* @summary Get pre-signed url for downloading docx template
|
|
457
|
+
* @param {string} code
|
|
458
|
+
* @param {string} [authorization] Bearer Token
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass> {
|
|
463
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
464
|
+
},
|
|
325
465
|
/**
|
|
326
466
|
* Get a docx template.
|
|
327
467
|
* @summary Retrieve the docx template
|
|
@@ -375,6 +515,48 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
375
515
|
};
|
|
376
516
|
};
|
|
377
517
|
|
|
518
|
+
/**
|
|
519
|
+
* Request parameters for deleteDocxTemplate operation in DocxTemplatesApi.
|
|
520
|
+
* @export
|
|
521
|
+
* @interface DocxTemplatesApiDeleteDocxTemplateRequest
|
|
522
|
+
*/
|
|
523
|
+
export interface DocxTemplatesApiDeleteDocxTemplateRequest {
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof DocxTemplatesApiDeleteDocxTemplate
|
|
528
|
+
*/
|
|
529
|
+
readonly code: string
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Bearer Token
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof DocxTemplatesApiDeleteDocxTemplate
|
|
535
|
+
*/
|
|
536
|
+
readonly authorization?: string
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Request parameters for downloadDocxTemplate operation in DocxTemplatesApi.
|
|
541
|
+
* @export
|
|
542
|
+
* @interface DocxTemplatesApiDownloadDocxTemplateRequest
|
|
543
|
+
*/
|
|
544
|
+
export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
549
|
+
*/
|
|
550
|
+
readonly code: string
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Bearer Token
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
556
|
+
*/
|
|
557
|
+
readonly authorization?: string
|
|
558
|
+
}
|
|
559
|
+
|
|
378
560
|
/**
|
|
379
561
|
* Request parameters for getDocxTemplate operation in DocxTemplatesApi.
|
|
380
562
|
* @export
|
|
@@ -508,6 +690,30 @@ export interface DocxTemplatesApiUploadDocxTemplateRequest {
|
|
|
508
690
|
* @extends {BaseAPI}
|
|
509
691
|
*/
|
|
510
692
|
export class DocxTemplatesApi extends BaseAPI {
|
|
693
|
+
/**
|
|
694
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
695
|
+
* @summary Delete the docx template
|
|
696
|
+
* @param {DocxTemplatesApiDeleteDocxTemplateRequest} requestParameters Request parameters.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
* @memberof DocxTemplatesApi
|
|
700
|
+
*/
|
|
701
|
+
public deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
702
|
+
return DocxTemplatesApiFp(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Get a pre-signed download url for the given docx template.
|
|
707
|
+
* @summary Get pre-signed url for downloading docx template
|
|
708
|
+
* @param {DocxTemplatesApiDownloadDocxTemplateRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
* @memberof DocxTemplatesApi
|
|
712
|
+
*/
|
|
713
|
+
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
714
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
715
|
+
}
|
|
716
|
+
|
|
511
717
|
/**
|
|
512
718
|
* Get a docx template.
|
|
513
719
|
* @summary Retrieve the docx template
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { DeleteResponseClass } from '../models';
|
|
16
|
+
import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
|
|
15
17
|
import { SharedUpdateDocxTemplateRequestDto } from '../models';
|
|
16
18
|
import { UploadDocxTemplateRequestDto } from '../models';
|
|
17
19
|
/**
|
|
@@ -19,6 +21,24 @@ import { UploadDocxTemplateRequestDto } from '../models';
|
|
|
19
21
|
* @export
|
|
20
22
|
*/
|
|
21
23
|
export declare const DocxTemplatesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
26
|
+
* @summary Delete the docx template
|
|
27
|
+
* @param {string} code
|
|
28
|
+
* @param {string} [authorization] Bearer Token
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
deleteDocxTemplate: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
* Get a pre-signed download url for the given docx template.
|
|
35
|
+
* @summary Get pre-signed url for downloading docx template
|
|
36
|
+
* @param {string} code
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
downloadDocxTemplate: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
42
|
/**
|
|
23
43
|
* Get a docx template.
|
|
24
44
|
* @summary Retrieve the docx template
|
|
@@ -67,6 +87,24 @@ export declare const DocxTemplatesApiAxiosParamCreator: (configuration?: Configu
|
|
|
67
87
|
* @export
|
|
68
88
|
*/
|
|
69
89
|
export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
|
|
90
|
+
/**
|
|
91
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
92
|
+
* @summary Delete the docx template
|
|
93
|
+
* @param {string} code
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
deleteDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
99
|
+
/**
|
|
100
|
+
* Get a pre-signed download url for the given docx template.
|
|
101
|
+
* @summary Get pre-signed url for downloading docx template
|
|
102
|
+
* @param {string} code
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>>;
|
|
70
108
|
/**
|
|
71
109
|
* Get a docx template.
|
|
72
110
|
* @summary Retrieve the docx template
|
|
@@ -115,6 +153,24 @@ export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
|
|
|
115
153
|
* @export
|
|
116
154
|
*/
|
|
117
155
|
export declare const DocxTemplatesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
156
|
+
/**
|
|
157
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
158
|
+
* @summary Delete the docx template
|
|
159
|
+
* @param {string} code
|
|
160
|
+
* @param {string} [authorization] Bearer Token
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
deleteDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
165
|
+
/**
|
|
166
|
+
* Get a pre-signed download url for the given docx template.
|
|
167
|
+
* @summary Get pre-signed url for downloading docx template
|
|
168
|
+
* @param {string} code
|
|
169
|
+
* @param {string} [authorization] Bearer Token
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>;
|
|
118
174
|
/**
|
|
119
175
|
* Get a docx template.
|
|
120
176
|
* @summary Retrieve the docx template
|
|
@@ -158,6 +214,44 @@ export declare const DocxTemplatesApiFactory: (configuration?: Configuration, ba
|
|
|
158
214
|
*/
|
|
159
215
|
uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
|
|
160
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* Request parameters for deleteDocxTemplate operation in DocxTemplatesApi.
|
|
219
|
+
* @export
|
|
220
|
+
* @interface DocxTemplatesApiDeleteDocxTemplateRequest
|
|
221
|
+
*/
|
|
222
|
+
export interface DocxTemplatesApiDeleteDocxTemplateRequest {
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {string}
|
|
226
|
+
* @memberof DocxTemplatesApiDeleteDocxTemplate
|
|
227
|
+
*/
|
|
228
|
+
readonly code: string;
|
|
229
|
+
/**
|
|
230
|
+
* Bearer Token
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof DocxTemplatesApiDeleteDocxTemplate
|
|
233
|
+
*/
|
|
234
|
+
readonly authorization?: string;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Request parameters for downloadDocxTemplate operation in DocxTemplatesApi.
|
|
238
|
+
* @export
|
|
239
|
+
* @interface DocxTemplatesApiDownloadDocxTemplateRequest
|
|
240
|
+
*/
|
|
241
|
+
export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {string}
|
|
245
|
+
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
246
|
+
*/
|
|
247
|
+
readonly code: string;
|
|
248
|
+
/**
|
|
249
|
+
* Bearer Token
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
252
|
+
*/
|
|
253
|
+
readonly authorization?: string;
|
|
254
|
+
}
|
|
161
255
|
/**
|
|
162
256
|
* Request parameters for getDocxTemplate operation in DocxTemplatesApi.
|
|
163
257
|
* @export
|
|
@@ -277,6 +371,24 @@ export interface DocxTemplatesApiUploadDocxTemplateRequest {
|
|
|
277
371
|
* @extends {BaseAPI}
|
|
278
372
|
*/
|
|
279
373
|
export declare class DocxTemplatesApi extends BaseAPI {
|
|
374
|
+
/**
|
|
375
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
376
|
+
* @summary Delete the docx template
|
|
377
|
+
* @param {DocxTemplatesApiDeleteDocxTemplateRequest} requestParameters Request parameters.
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
* @memberof DocxTemplatesApi
|
|
381
|
+
*/
|
|
382
|
+
deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
383
|
+
/**
|
|
384
|
+
* Get a pre-signed download url for the given docx template.
|
|
385
|
+
* @summary Get pre-signed url for downloading docx template
|
|
386
|
+
* @param {DocxTemplatesApiDownloadDocxTemplateRequest} requestParameters Request parameters.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
* @memberof DocxTemplatesApi
|
|
390
|
+
*/
|
|
391
|
+
downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateDownloadUrlResponseClass, any>>;
|
|
280
392
|
/**
|
|
281
393
|
* Get a docx template.
|
|
282
394
|
* @summary Retrieve the docx template
|
|
@@ -96,6 +96,102 @@ var FormData = require('form-data');
|
|
|
96
96
|
var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
101
|
+
* @summary Delete the docx template
|
|
102
|
+
* @param {string} code
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
switch (_a.label) {
|
|
113
|
+
case 0:
|
|
114
|
+
// verify required parameter 'code' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('deleteDocxTemplate', 'code', code);
|
|
116
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}"
|
|
117
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
118
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
baseAccessToken = configuration.accessToken;
|
|
122
|
+
}
|
|
123
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
124
|
+
localVarHeaderParameter = {};
|
|
125
|
+
localVarQueryParameter = {};
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
129
|
+
case 1:
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
_a.sent();
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
|
+
}
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
}];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* Get a pre-signed download url for the given docx template.
|
|
149
|
+
* @summary Get pre-signed url for downloading docx template
|
|
150
|
+
* @param {string} code
|
|
151
|
+
* @param {string} [authorization] Bearer Token
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
156
|
+
if (options === void 0) { options = {}; }
|
|
157
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0:
|
|
162
|
+
// verify required parameter 'code' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('downloadDocxTemplate', 'code', code);
|
|
164
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}/download-url"
|
|
165
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
166
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
return [2 /*return*/, {
|
|
188
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
+
options: localVarRequestOptions,
|
|
190
|
+
}];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
},
|
|
99
195
|
/**
|
|
100
196
|
* Get a docx template.
|
|
101
197
|
* @summary Retrieve the docx template
|
|
@@ -324,6 +420,48 @@ exports.DocxTemplatesApiAxiosParamCreator = DocxTemplatesApiAxiosParamCreator;
|
|
|
324
420
|
var DocxTemplatesApiFp = function (configuration) {
|
|
325
421
|
var localVarAxiosParamCreator = (0, exports.DocxTemplatesApiAxiosParamCreator)(configuration);
|
|
326
422
|
return {
|
|
423
|
+
/**
|
|
424
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
425
|
+
* @summary Delete the docx template
|
|
426
|
+
* @param {string} code
|
|
427
|
+
* @param {string} [authorization] Bearer Token
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
433
|
+
var localVarAxiosArgs;
|
|
434
|
+
return __generator(this, function (_a) {
|
|
435
|
+
switch (_a.label) {
|
|
436
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDocxTemplate(code, authorization, options)];
|
|
437
|
+
case 1:
|
|
438
|
+
localVarAxiosArgs = _a.sent();
|
|
439
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Get a pre-signed download url for the given docx template.
|
|
446
|
+
* @summary Get pre-signed url for downloading docx template
|
|
447
|
+
* @param {string} code
|
|
448
|
+
* @param {string} [authorization] Bearer Token
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
454
|
+
var localVarAxiosArgs;
|
|
455
|
+
return __generator(this, function (_a) {
|
|
456
|
+
switch (_a.label) {
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
458
|
+
case 1:
|
|
459
|
+
localVarAxiosArgs = _a.sent();
|
|
460
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
},
|
|
327
465
|
/**
|
|
328
466
|
* Get a docx template.
|
|
329
467
|
* @summary Retrieve the docx template
|
|
@@ -424,6 +562,28 @@ exports.DocxTemplatesApiFp = DocxTemplatesApiFp;
|
|
|
424
562
|
var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
425
563
|
var localVarFp = (0, exports.DocxTemplatesApiFp)(configuration);
|
|
426
564
|
return {
|
|
565
|
+
/**
|
|
566
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
567
|
+
* @summary Delete the docx template
|
|
568
|
+
* @param {string} code
|
|
569
|
+
* @param {string} [authorization] Bearer Token
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
574
|
+
return localVarFp.deleteDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
* Get a pre-signed download url for the given docx template.
|
|
578
|
+
* @summary Get pre-signed url for downloading docx template
|
|
579
|
+
* @param {string} code
|
|
580
|
+
* @param {string} [authorization] Bearer Token
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
585
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
586
|
+
},
|
|
427
587
|
/**
|
|
428
588
|
* Get a docx template.
|
|
429
589
|
* @summary Retrieve the docx template
|
|
@@ -488,6 +648,30 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
488
648
|
function DocxTemplatesApi() {
|
|
489
649
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
490
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
653
|
+
* @summary Delete the docx template
|
|
654
|
+
* @param {DocxTemplatesApiDeleteDocxTemplateRequest} requestParameters Request parameters.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
* @memberof DocxTemplatesApi
|
|
658
|
+
*/
|
|
659
|
+
DocxTemplatesApi.prototype.deleteDocxTemplate = function (requestParameters, options) {
|
|
660
|
+
var _this = this;
|
|
661
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Get a pre-signed download url for the given docx template.
|
|
665
|
+
* @summary Get pre-signed url for downloading docx template
|
|
666
|
+
* @param {DocxTemplatesApiDownloadDocxTemplateRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
* @memberof DocxTemplatesApi
|
|
670
|
+
*/
|
|
671
|
+
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
672
|
+
var _this = this;
|
|
673
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
674
|
+
};
|
|
491
675
|
/**
|
|
492
676
|
* Get a docx template.
|
|
493
677
|
* @summary Retrieve the docx template
|
|
@@ -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 GetDocxTemplateDownloadUrlResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetDocxTemplateDownloadUrlResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-signed url for downloading the docx template.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetDocxTemplateDownloadUrlResponseClass
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './download-document-request-dto';
|
|
|
17
17
|
export * from './get-doc-template-request-dto';
|
|
18
18
|
export * from './get-doc-template-response-class';
|
|
19
19
|
export * from './get-document-download-url-response-class';
|
|
20
|
+
export * from './get-docx-template-download-url-response-class';
|
|
20
21
|
export * from './get-layout-request-dto';
|
|
21
22
|
export * from './get-layout-response-class';
|
|
22
23
|
export * from './get-product-document-download-url-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./download-document-request-dto"), exports);
|
|
|
33
33
|
__exportStar(require("./get-doc-template-request-dto"), exports);
|
|
34
34
|
__exportStar(require("./get-doc-template-response-class"), exports);
|
|
35
35
|
__exportStar(require("./get-document-download-url-response-class"), exports);
|
|
36
|
+
__exportStar(require("./get-docx-template-download-url-response-class"), exports);
|
|
36
37
|
__exportStar(require("./get-layout-request-dto"), exports);
|
|
37
38
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
38
39
|
__exportStar(require("./get-product-document-download-url-response-class"), exports);
|
|
@@ -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 GetDocxTemplateDownloadUrlResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDocxTemplateDownloadUrlResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Pre-signed url for downloading the docx template.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetDocxTemplateDownloadUrlResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
}
|
|
30
|
+
|
package/models/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './download-document-request-dto';
|
|
|
17
17
|
export * from './get-doc-template-request-dto';
|
|
18
18
|
export * from './get-doc-template-response-class';
|
|
19
19
|
export * from './get-document-download-url-response-class';
|
|
20
|
+
export * from './get-docx-template-download-url-response-class';
|
|
20
21
|
export * from './get-layout-request-dto';
|
|
21
22
|
export * from './get-layout-response-class';
|
|
22
23
|
export * from './get-product-document-download-url-response-class';
|