@emilgroup/document-sdk-node 1.36.1-beta.0 → 1.36.1-beta.1
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/README.md +2 -2
- package/api/docx-templates-api.ts +6 -20
- package/dist/api/docx-templates-api.d.ts +3 -12
- package/dist/api/docx-templates-api.js +6 -12
- package/package.json +1 -1
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.36.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.36.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.36.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.36.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -96,11 +96,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
96
96
|
* @summary Get pre-signed url for downloading docx template
|
|
97
97
|
* @param {string} code
|
|
98
98
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
100
99
|
* @param {*} [options] Override http request option.
|
|
101
100
|
* @throws {RequiredError}
|
|
102
101
|
*/
|
|
103
|
-
downloadDocxTemplate: async (code: string, authorization?: string,
|
|
102
|
+
downloadDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
103
|
// verify required parameter 'code' is not null or undefined
|
|
105
104
|
assertParamExists('downloadDocxTemplate', 'code', code)
|
|
106
105
|
const localVarPath = `/documentservice/v1/docx-templates/{code}/download-url`
|
|
@@ -122,10 +121,6 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
122
121
|
// http bearer authentication required
|
|
123
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
123
|
|
|
125
|
-
if (contentDisposition !== undefined) {
|
|
126
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
124
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
125
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
126
|
}
|
|
@@ -387,12 +382,11 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
387
382
|
* @summary Get pre-signed url for downloading docx template
|
|
388
383
|
* @param {string} code
|
|
389
384
|
* @param {string} [authorization] Bearer Token
|
|
390
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
391
385
|
* @param {*} [options] Override http request option.
|
|
392
386
|
* @throws {RequiredError}
|
|
393
387
|
*/
|
|
394
|
-
async downloadDocxTemplate(code: string, authorization?: string,
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
388
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
396
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
391
|
},
|
|
398
392
|
/**
|
|
@@ -476,12 +470,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
476
470
|
* @summary Get pre-signed url for downloading docx template
|
|
477
471
|
* @param {string} code
|
|
478
472
|
* @param {string} [authorization] Bearer Token
|
|
479
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
480
473
|
* @param {*} [options] Override http request option.
|
|
481
474
|
* @throws {RequiredError}
|
|
482
475
|
*/
|
|
483
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
484
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
476
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass> {
|
|
477
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
485
478
|
},
|
|
486
479
|
/**
|
|
487
480
|
* Get a docx template.
|
|
@@ -577,13 +570,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
577
570
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
578
571
|
*/
|
|
579
572
|
readonly authorization?: string
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Content disposition override. Default will be depending on the document type.
|
|
583
|
-
* @type {'attachment' | 'inline'}
|
|
584
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
585
|
-
*/
|
|
586
|
-
readonly contentDisposition?: 'attachment' | 'inline'
|
|
587
573
|
}
|
|
588
574
|
|
|
589
575
|
/**
|
|
@@ -747,7 +733,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
747
733
|
* @memberof DocxTemplatesApi
|
|
748
734
|
*/
|
|
749
735
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
750
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
736
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
751
737
|
}
|
|
752
738
|
|
|
753
739
|
/**
|
|
@@ -39,11 +39,10 @@ export declare const DocxTemplatesApiAxiosParamCreator: (configuration?: Configu
|
|
|
39
39
|
* @summary Get pre-signed url for downloading docx template
|
|
40
40
|
* @param {string} code
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
43
42
|
* @param {*} [options] Override http request option.
|
|
44
43
|
* @throws {RequiredError}
|
|
45
44
|
*/
|
|
46
|
-
downloadDocxTemplate: (code: string, authorization?: string,
|
|
45
|
+
downloadDocxTemplate: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
46
|
/**
|
|
48
47
|
* Get a docx template.
|
|
49
48
|
* @summary Retrieve the docx template
|
|
@@ -107,11 +106,10 @@ export declare const DocxTemplatesApiFp: (configuration?: Configuration) => {
|
|
|
107
106
|
* @summary Get pre-signed url for downloading docx template
|
|
108
107
|
* @param {string} code
|
|
109
108
|
* @param {string} [authorization] Bearer Token
|
|
110
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
111
109
|
* @param {*} [options] Override http request option.
|
|
112
110
|
* @throws {RequiredError}
|
|
113
111
|
*/
|
|
114
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
112
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>>;
|
|
115
113
|
/**
|
|
116
114
|
* Get a docx template.
|
|
117
115
|
* @summary Retrieve the docx template
|
|
@@ -175,11 +173,10 @@ export declare const DocxTemplatesApiFactory: (configuration?: Configuration, ba
|
|
|
175
173
|
* @summary Get pre-signed url for downloading docx template
|
|
176
174
|
* @param {string} code
|
|
177
175
|
* @param {string} [authorization] Bearer Token
|
|
178
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
179
176
|
* @param {*} [options] Override http request option.
|
|
180
177
|
* @throws {RequiredError}
|
|
181
178
|
*/
|
|
182
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
179
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>;
|
|
183
180
|
/**
|
|
184
181
|
* Get a docx template.
|
|
185
182
|
* @summary Retrieve the docx template
|
|
@@ -261,12 +258,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
261
258
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
262
259
|
*/
|
|
263
260
|
readonly authorization?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Content disposition override. Default will be depending on the document type.
|
|
266
|
-
* @type {'attachment' | 'inline'}
|
|
267
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
268
|
-
*/
|
|
269
|
-
readonly contentDisposition?: 'attachment' | 'inline';
|
|
270
261
|
}
|
|
271
262
|
/**
|
|
272
263
|
* Request parameters for getDocxTemplate operation in DocxTemplatesApi.
|
|
@@ -149,11 +149,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* @summary Get pre-signed url for downloading docx template
|
|
150
150
|
* @param {string} code
|
|
151
151
|
* @param {string} [authorization] Bearer Token
|
|
152
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
153
152
|
* @param {*} [options] Override http request option.
|
|
154
153
|
* @throws {RequiredError}
|
|
155
154
|
*/
|
|
156
|
-
downloadDocxTemplate: function (code, authorization,
|
|
155
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
157
156
|
if (options === void 0) { options = {}; }
|
|
158
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -179,9 +178,6 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
179
178
|
// authentication bearer required
|
|
180
179
|
// http bearer authentication required
|
|
181
180
|
_a.sent();
|
|
182
|
-
if (contentDisposition !== undefined) {
|
|
183
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
184
|
-
}
|
|
185
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
186
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
187
183
|
}
|
|
@@ -454,16 +450,15 @@ var DocxTemplatesApiFp = function (configuration) {
|
|
|
454
450
|
* @summary Get pre-signed url for downloading docx template
|
|
455
451
|
* @param {string} code
|
|
456
452
|
* @param {string} [authorization] Bearer Token
|
|
457
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
458
453
|
* @param {*} [options] Override http request option.
|
|
459
454
|
* @throws {RequiredError}
|
|
460
455
|
*/
|
|
461
|
-
downloadDocxTemplate: function (code, authorization,
|
|
456
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
462
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
463
458
|
var localVarAxiosArgs;
|
|
464
459
|
return __generator(this, function (_a) {
|
|
465
460
|
switch (_a.label) {
|
|
466
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
467
462
|
case 1:
|
|
468
463
|
localVarAxiosArgs = _a.sent();
|
|
469
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -588,12 +583,11 @@ var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
588
583
|
* @summary Get pre-signed url for downloading docx template
|
|
589
584
|
* @param {string} code
|
|
590
585
|
* @param {string} [authorization] Bearer Token
|
|
591
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
592
586
|
* @param {*} [options] Override http request option.
|
|
593
587
|
* @throws {RequiredError}
|
|
594
588
|
*/
|
|
595
|
-
downloadDocxTemplate: function (code, authorization,
|
|
596
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
589
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
590
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
597
591
|
},
|
|
598
592
|
/**
|
|
599
593
|
* Get a docx template.
|
|
@@ -682,7 +676,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
682
676
|
*/
|
|
683
677
|
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
684
678
|
var _this = this;
|
|
685
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
679
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
686
680
|
};
|
|
687
681
|
/**
|
|
688
682
|
* Get a docx template.
|