@emilgroup/document-sdk 1.37.1-beta.0 → 1.37.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@1.37.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.37.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.37.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.37.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -92,11 +92,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
92
92
|
* @summary Get pre-signed url for downloading docx template
|
|
93
93
|
* @param {string} code
|
|
94
94
|
* @param {string} [authorization] Bearer Token
|
|
95
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
96
95
|
* @param {*} [options] Override http request option.
|
|
97
96
|
* @throws {RequiredError}
|
|
98
97
|
*/
|
|
99
|
-
downloadDocxTemplate: async (code: string, authorization?: string,
|
|
98
|
+
downloadDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
99
|
// verify required parameter 'code' is not null or undefined
|
|
101
100
|
assertParamExists('downloadDocxTemplate', 'code', code)
|
|
102
101
|
const localVarPath = `/documentservice/v1/docx-templates/{code}/download-url`
|
|
@@ -118,10 +117,6 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
118
117
|
// http bearer authentication required
|
|
119
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
119
|
|
|
121
|
-
if (contentDisposition !== undefined) {
|
|
122
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
120
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
121
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
122
|
}
|
|
@@ -383,12 +378,11 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
383
378
|
* @summary Get pre-signed url for downloading docx template
|
|
384
379
|
* @param {string} code
|
|
385
380
|
* @param {string} [authorization] Bearer Token
|
|
386
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
387
381
|
* @param {*} [options] Override http request option.
|
|
388
382
|
* @throws {RequiredError}
|
|
389
383
|
*/
|
|
390
|
-
async downloadDocxTemplate(code: string, authorization?: string,
|
|
391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
384
|
+
async downloadDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateDownloadUrlResponseClass>> {
|
|
385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options);
|
|
392
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
387
|
},
|
|
394
388
|
/**
|
|
@@ -472,12 +466,11 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
472
466
|
* @summary Get pre-signed url for downloading docx template
|
|
473
467
|
* @param {string} code
|
|
474
468
|
* @param {string} [authorization] Bearer Token
|
|
475
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
476
469
|
* @param {*} [options] Override http request option.
|
|
477
470
|
* @throws {RequiredError}
|
|
478
471
|
*/
|
|
479
|
-
downloadDocxTemplate(code: string, authorization?: string,
|
|
480
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
472
|
+
downloadDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateDownloadUrlResponseClass> {
|
|
473
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
|
|
481
474
|
},
|
|
482
475
|
/**
|
|
483
476
|
* Get a docx template.
|
|
@@ -573,13 +566,6 @@ export interface DocxTemplatesApiDownloadDocxTemplateRequest {
|
|
|
573
566
|
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
574
567
|
*/
|
|
575
568
|
readonly authorization?: string
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Content disposition override. Default will be depending on the document type.
|
|
579
|
-
* @type {'attachment' | 'inline'}
|
|
580
|
-
* @memberof DocxTemplatesApiDownloadDocxTemplate
|
|
581
|
-
*/
|
|
582
|
-
readonly contentDisposition?: 'attachment' | 'inline'
|
|
583
569
|
}
|
|
584
570
|
|
|
585
571
|
/**
|
|
@@ -743,7 +729,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
743
729
|
* @memberof DocxTemplatesApi
|
|
744
730
|
*/
|
|
745
731
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
746
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
732
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
747
733
|
}
|
|
748
734
|
|
|
749
735
|
/**
|
|
@@ -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.
|
|
@@ -145,11 +145,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
* @summary Get pre-signed url for downloading docx template
|
|
146
146
|
* @param {string} code
|
|
147
147
|
* @param {string} [authorization] Bearer Token
|
|
148
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
149
148
|
* @param {*} [options] Override http request option.
|
|
150
149
|
* @throws {RequiredError}
|
|
151
150
|
*/
|
|
152
|
-
downloadDocxTemplate: function (code, authorization,
|
|
151
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
153
152
|
if (options === void 0) { options = {}; }
|
|
154
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -175,9 +174,6 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
175
174
|
// authentication bearer required
|
|
176
175
|
// http bearer authentication required
|
|
177
176
|
_a.sent();
|
|
178
|
-
if (contentDisposition !== undefined) {
|
|
179
|
-
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
180
|
-
}
|
|
181
177
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
178
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
179
|
}
|
|
@@ -450,16 +446,15 @@ var DocxTemplatesApiFp = function (configuration) {
|
|
|
450
446
|
* @summary Get pre-signed url for downloading docx template
|
|
451
447
|
* @param {string} code
|
|
452
448
|
* @param {string} [authorization] Bearer Token
|
|
453
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
454
449
|
* @param {*} [options] Override http request option.
|
|
455
450
|
* @throws {RequiredError}
|
|
456
451
|
*/
|
|
457
|
-
downloadDocxTemplate: function (code, authorization,
|
|
452
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
458
453
|
return __awaiter(this, void 0, void 0, function () {
|
|
459
454
|
var localVarAxiosArgs;
|
|
460
455
|
return __generator(this, function (_a) {
|
|
461
456
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization,
|
|
457
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
463
458
|
case 1:
|
|
464
459
|
localVarAxiosArgs = _a.sent();
|
|
465
460
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -584,12 +579,11 @@ var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
584
579
|
* @summary Get pre-signed url for downloading docx template
|
|
585
580
|
* @param {string} code
|
|
586
581
|
* @param {string} [authorization] Bearer Token
|
|
587
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
588
582
|
* @param {*} [options] Override http request option.
|
|
589
583
|
* @throws {RequiredError}
|
|
590
584
|
*/
|
|
591
|
-
downloadDocxTemplate: function (code, authorization,
|
|
592
|
-
return localVarFp.downloadDocxTemplate(code, authorization,
|
|
585
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
586
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
587
|
},
|
|
594
588
|
/**
|
|
595
589
|
* Get a docx template.
|
|
@@ -678,7 +672,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
678
672
|
*/
|
|
679
673
|
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
680
674
|
var _this = this;
|
|
681
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
675
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
682
676
|
};
|
|
683
677
|
/**
|
|
684
678
|
* Get a docx template.
|