@emilgroup/document-sdk 1.7.1 → 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 +4 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +760 -0
- package/api.ts +2 -0
- package/dist/api/docx-templates-api.d.ts +428 -0
- package/dist/api/docx-templates-api.js +722 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -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 +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
- package/dist/models/shared-update-docx-template-request-dto.js +15 -0
- package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
- package/dist/models/upload-docx-template-request-dto.js +15 -0
- package/models/get-docx-template-download-url-response-class.ts +30 -0
- package/models/index.ts +3 -0
- package/models/shared-update-docx-template-request-dto.ts +42 -0
- package/models/upload-docx-template-request-dto.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,722 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.DocxTemplatesApi = exports.DocxTemplatesApiFactory = exports.DocxTemplatesApiFp = exports.DocxTemplatesApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* DocxTemplatesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
97
|
+
* @summary Delete the docx template
|
|
98
|
+
* @param {string} code
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'code' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('deleteDocxTemplate', 'code', code);
|
|
112
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}"
|
|
113
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Get a pre-signed download url for the given docx template.
|
|
145
|
+
* @summary Get pre-signed url for downloading docx template
|
|
146
|
+
* @param {string} code
|
|
147
|
+
* @param {string} [authorization] Bearer Token
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
152
|
+
if (options === void 0) { options = {}; }
|
|
153
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
154
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
155
|
+
return __generator(this, function (_a) {
|
|
156
|
+
switch (_a.label) {
|
|
157
|
+
case 0:
|
|
158
|
+
// verify required parameter 'code' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('downloadDocxTemplate', 'code', code);
|
|
160
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}/download-url"
|
|
161
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
162
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
181
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
183
|
+
return [2 /*return*/, {
|
|
184
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
185
|
+
options: localVarRequestOptions,
|
|
186
|
+
}];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* Get a docx template.
|
|
193
|
+
* @summary Retrieve the docx template
|
|
194
|
+
* @param {string} code
|
|
195
|
+
* @param {string} [authorization] Bearer Token
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
getDocxTemplate: function (code, authorization, options) {
|
|
200
|
+
if (options === void 0) { options = {}; }
|
|
201
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
202
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
// verify required parameter 'code' is not null or undefined
|
|
207
|
+
(0, common_1.assertParamExists)('getDocxTemplate', 'code', code);
|
|
208
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}"
|
|
209
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
210
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
baseAccessToken = configuration.accessToken;
|
|
214
|
+
}
|
|
215
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
216
|
+
localVarHeaderParameter = {};
|
|
217
|
+
localVarQueryParameter = {};
|
|
218
|
+
// authentication bearer required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
221
|
+
case 1:
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
_a.sent();
|
|
225
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
|
+
}
|
|
228
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
229
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
231
|
+
return [2 /*return*/, {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
}];
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
241
|
+
* @summary List docx templates
|
|
242
|
+
* @param {string} [authorization] Bearer Token
|
|
243
|
+
* @param {number} [pageSize] Page size
|
|
244
|
+
* @param {string} [pageToken] Page token
|
|
245
|
+
* @param {string} [filter] List filter
|
|
246
|
+
* @param {string} [search] Search query
|
|
247
|
+
* @param {string} [order] Ordering criteria
|
|
248
|
+
* @param {string} [expand] Extra fields to fetch
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
253
|
+
if (options === void 0) { options = {}; }
|
|
254
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
255
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
256
|
+
return __generator(this, function (_a) {
|
|
257
|
+
switch (_a.label) {
|
|
258
|
+
case 0:
|
|
259
|
+
localVarPath = "/documentservice/v1/docx-templates";
|
|
260
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
baseAccessToken = configuration.accessToken;
|
|
264
|
+
}
|
|
265
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
266
|
+
localVarHeaderParameter = {};
|
|
267
|
+
localVarQueryParameter = {};
|
|
268
|
+
// authentication bearer required
|
|
269
|
+
// http bearer authentication required
|
|
270
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
271
|
+
case 1:
|
|
272
|
+
// authentication bearer required
|
|
273
|
+
// http bearer authentication required
|
|
274
|
+
_a.sent();
|
|
275
|
+
if (pageSize !== undefined) {
|
|
276
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
277
|
+
}
|
|
278
|
+
if (pageToken !== undefined) {
|
|
279
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
280
|
+
}
|
|
281
|
+
if (filter !== undefined) {
|
|
282
|
+
localVarQueryParameter['filter'] = filter;
|
|
283
|
+
}
|
|
284
|
+
if (search !== undefined) {
|
|
285
|
+
localVarQueryParameter['search'] = search;
|
|
286
|
+
}
|
|
287
|
+
if (order !== undefined) {
|
|
288
|
+
localVarQueryParameter['order'] = order;
|
|
289
|
+
}
|
|
290
|
+
if (expand !== undefined) {
|
|
291
|
+
localVarQueryParameter['expand'] = expand;
|
|
292
|
+
}
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
295
|
+
}
|
|
296
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
299
|
+
return [2 /*return*/, {
|
|
300
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
301
|
+
options: localVarRequestOptions,
|
|
302
|
+
}];
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Updates a docx template metadata.
|
|
309
|
+
* @summary Update the docx template
|
|
310
|
+
* @param {string} code
|
|
311
|
+
* @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
|
|
312
|
+
* @param {string} [authorization] Bearer Token
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
317
|
+
if (options === void 0) { options = {}; }
|
|
318
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
319
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
320
|
+
return __generator(this, function (_a) {
|
|
321
|
+
switch (_a.label) {
|
|
322
|
+
case 0:
|
|
323
|
+
// verify required parameter 'code' is not null or undefined
|
|
324
|
+
(0, common_1.assertParamExists)('updateDocxTemplate', 'code', code);
|
|
325
|
+
// verify required parameter 'sharedUpdateDocxTemplateRequestDto' is not null or undefined
|
|
326
|
+
(0, common_1.assertParamExists)('updateDocxTemplate', 'sharedUpdateDocxTemplateRequestDto', sharedUpdateDocxTemplateRequestDto);
|
|
327
|
+
localVarPath = "/documentservice/v1/docx-templates/{code}"
|
|
328
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
329
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
330
|
+
if (configuration) {
|
|
331
|
+
baseOptions = configuration.baseOptions;
|
|
332
|
+
baseAccessToken = configuration.accessToken;
|
|
333
|
+
}
|
|
334
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
335
|
+
localVarHeaderParameter = {};
|
|
336
|
+
localVarQueryParameter = {};
|
|
337
|
+
// authentication bearer required
|
|
338
|
+
// http bearer authentication required
|
|
339
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
340
|
+
case 1:
|
|
341
|
+
// authentication bearer required
|
|
342
|
+
// http bearer authentication required
|
|
343
|
+
_a.sent();
|
|
344
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
345
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
346
|
+
}
|
|
347
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
348
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
351
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sharedUpdateDocxTemplateRequestDto, localVarRequestOptions, configuration);
|
|
352
|
+
return [2 /*return*/, {
|
|
353
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
}];
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* Upload a docx template via a presigned Url.
|
|
362
|
+
* @summary Upload a docx template.
|
|
363
|
+
* @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
|
|
364
|
+
* @param {string} [authorization] Bearer Token
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
369
|
+
if (options === void 0) { options = {}; }
|
|
370
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
371
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
372
|
+
return __generator(this, function (_a) {
|
|
373
|
+
switch (_a.label) {
|
|
374
|
+
case 0:
|
|
375
|
+
// verify required parameter 'uploadDocxTemplateRequestDto' is not null or undefined
|
|
376
|
+
(0, common_1.assertParamExists)('uploadDocxTemplate', 'uploadDocxTemplateRequestDto', uploadDocxTemplateRequestDto);
|
|
377
|
+
localVarPath = "/documentservice/v1/docx-templates";
|
|
378
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
379
|
+
if (configuration) {
|
|
380
|
+
baseOptions = configuration.baseOptions;
|
|
381
|
+
baseAccessToken = configuration.accessToken;
|
|
382
|
+
}
|
|
383
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
384
|
+
localVarHeaderParameter = {};
|
|
385
|
+
localVarQueryParameter = {};
|
|
386
|
+
// authentication bearer required
|
|
387
|
+
// http bearer authentication required
|
|
388
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
389
|
+
case 1:
|
|
390
|
+
// authentication bearer required
|
|
391
|
+
// http bearer authentication required
|
|
392
|
+
_a.sent();
|
|
393
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
394
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
395
|
+
}
|
|
396
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
397
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
398
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
400
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadDocxTemplateRequestDto, localVarRequestOptions, configuration);
|
|
401
|
+
return [2 /*return*/, {
|
|
402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
403
|
+
options: localVarRequestOptions,
|
|
404
|
+
}];
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
},
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
exports.DocxTemplatesApiAxiosParamCreator = DocxTemplatesApiAxiosParamCreator;
|
|
412
|
+
/**
|
|
413
|
+
* DocxTemplatesApi - functional programming interface
|
|
414
|
+
* @export
|
|
415
|
+
*/
|
|
416
|
+
var DocxTemplatesApiFp = function (configuration) {
|
|
417
|
+
var localVarAxiosParamCreator = (0, exports.DocxTemplatesApiAxiosParamCreator)(configuration);
|
|
418
|
+
return {
|
|
419
|
+
/**
|
|
420
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
421
|
+
* @summary Delete the docx template
|
|
422
|
+
* @param {string} code
|
|
423
|
+
* @param {string} [authorization] Bearer Token
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
429
|
+
var localVarAxiosArgs;
|
|
430
|
+
return __generator(this, function (_a) {
|
|
431
|
+
switch (_a.label) {
|
|
432
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDocxTemplate(code, authorization, options)];
|
|
433
|
+
case 1:
|
|
434
|
+
localVarAxiosArgs = _a.sent();
|
|
435
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
/**
|
|
441
|
+
* Get a pre-signed download url for the given docx template.
|
|
442
|
+
* @summary Get pre-signed url for downloading docx template
|
|
443
|
+
* @param {string} code
|
|
444
|
+
* @param {string} [authorization] Bearer Token
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
+
var localVarAxiosArgs;
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
switch (_a.label) {
|
|
453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadDocxTemplate(code, authorization, options)];
|
|
454
|
+
case 1:
|
|
455
|
+
localVarAxiosArgs = _a.sent();
|
|
456
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Get a docx template.
|
|
463
|
+
* @summary Retrieve the docx template
|
|
464
|
+
* @param {string} code
|
|
465
|
+
* @param {string} [authorization] Bearer Token
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
getDocxTemplate: function (code, authorization, options) {
|
|
470
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
+
var localVarAxiosArgs;
|
|
472
|
+
return __generator(this, function (_a) {
|
|
473
|
+
switch (_a.label) {
|
|
474
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocxTemplate(code, authorization, options)];
|
|
475
|
+
case 1:
|
|
476
|
+
localVarAxiosArgs = _a.sent();
|
|
477
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
},
|
|
482
|
+
/**
|
|
483
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
484
|
+
* @summary List docx templates
|
|
485
|
+
* @param {string} [authorization] Bearer Token
|
|
486
|
+
* @param {number} [pageSize] Page size
|
|
487
|
+
* @param {string} [pageToken] Page token
|
|
488
|
+
* @param {string} [filter] List filter
|
|
489
|
+
* @param {string} [search] Search query
|
|
490
|
+
* @param {string} [order] Ordering criteria
|
|
491
|
+
* @param {string} [expand] Extra fields to fetch
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
*/
|
|
495
|
+
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
497
|
+
var localVarAxiosArgs;
|
|
498
|
+
return __generator(this, function (_a) {
|
|
499
|
+
switch (_a.label) {
|
|
500
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
501
|
+
case 1:
|
|
502
|
+
localVarAxiosArgs = _a.sent();
|
|
503
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
* Updates a docx template metadata.
|
|
510
|
+
* @summary Update the docx template
|
|
511
|
+
* @param {string} code
|
|
512
|
+
* @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
|
|
513
|
+
* @param {string} [authorization] Bearer Token
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
519
|
+
var localVarAxiosArgs;
|
|
520
|
+
return __generator(this, function (_a) {
|
|
521
|
+
switch (_a.label) {
|
|
522
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options)];
|
|
523
|
+
case 1:
|
|
524
|
+
localVarAxiosArgs = _a.sent();
|
|
525
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
});
|
|
529
|
+
},
|
|
530
|
+
/**
|
|
531
|
+
* Upload a docx template via a presigned Url.
|
|
532
|
+
* @summary Upload a docx template.
|
|
533
|
+
* @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
|
|
534
|
+
* @param {string} [authorization] Bearer Token
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
540
|
+
var localVarAxiosArgs;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options)];
|
|
544
|
+
case 1:
|
|
545
|
+
localVarAxiosArgs = _a.sent();
|
|
546
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
exports.DocxTemplatesApiFp = DocxTemplatesApiFp;
|
|
554
|
+
/**
|
|
555
|
+
* DocxTemplatesApi - factory interface
|
|
556
|
+
* @export
|
|
557
|
+
*/
|
|
558
|
+
var DocxTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
559
|
+
var localVarFp = (0, exports.DocxTemplatesApiFp)(configuration);
|
|
560
|
+
return {
|
|
561
|
+
/**
|
|
562
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
563
|
+
* @summary Delete the docx template
|
|
564
|
+
* @param {string} code
|
|
565
|
+
* @param {string} [authorization] Bearer Token
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
570
|
+
return localVarFp.deleteDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* Get a pre-signed download url for the given docx template.
|
|
574
|
+
* @summary Get pre-signed url for downloading docx template
|
|
575
|
+
* @param {string} code
|
|
576
|
+
* @param {string} [authorization] Bearer Token
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
581
|
+
return localVarFp.downloadDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
582
|
+
},
|
|
583
|
+
/**
|
|
584
|
+
* Get a docx template.
|
|
585
|
+
* @summary Retrieve the docx template
|
|
586
|
+
* @param {string} code
|
|
587
|
+
* @param {string} [authorization] Bearer Token
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
getDocxTemplate: function (code, authorization, options) {
|
|
592
|
+
return localVarFp.getDocxTemplate(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
596
|
+
* @summary List docx templates
|
|
597
|
+
* @param {string} [authorization] Bearer Token
|
|
598
|
+
* @param {number} [pageSize] Page size
|
|
599
|
+
* @param {string} [pageToken] Page token
|
|
600
|
+
* @param {string} [filter] List filter
|
|
601
|
+
* @param {string} [search] Search query
|
|
602
|
+
* @param {string} [order] Ordering criteria
|
|
603
|
+
* @param {string} [expand] Extra fields to fetch
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
*/
|
|
607
|
+
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
608
|
+
return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* Updates a docx template metadata.
|
|
612
|
+
* @summary Update the docx template
|
|
613
|
+
* @param {string} code
|
|
614
|
+
* @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
|
|
615
|
+
* @param {string} [authorization] Bearer Token
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
620
|
+
return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
621
|
+
},
|
|
622
|
+
/**
|
|
623
|
+
* Upload a docx template via a presigned Url.
|
|
624
|
+
* @summary Upload a docx template.
|
|
625
|
+
* @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
|
|
626
|
+
* @param {string} [authorization] Bearer Token
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
631
|
+
return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
632
|
+
},
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
exports.DocxTemplatesApiFactory = DocxTemplatesApiFactory;
|
|
636
|
+
/**
|
|
637
|
+
* DocxTemplatesApi - object-oriented interface
|
|
638
|
+
* @export
|
|
639
|
+
* @class DocxTemplatesApi
|
|
640
|
+
* @extends {BaseAPI}
|
|
641
|
+
*/
|
|
642
|
+
var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
643
|
+
__extends(DocxTemplatesApi, _super);
|
|
644
|
+
function DocxTemplatesApi() {
|
|
645
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Permanently deletes the docx template. Supply the unique code that was returned when you created the docx template and this will delete it.
|
|
649
|
+
* @summary Delete the docx template
|
|
650
|
+
* @param {DocxTemplatesApiDeleteDocxTemplateRequest} requestParameters Request parameters.
|
|
651
|
+
* @param {*} [options] Override http request option.
|
|
652
|
+
* @throws {RequiredError}
|
|
653
|
+
* @memberof DocxTemplatesApi
|
|
654
|
+
*/
|
|
655
|
+
DocxTemplatesApi.prototype.deleteDocxTemplate = function (requestParameters, options) {
|
|
656
|
+
var _this = this;
|
|
657
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Get a pre-signed download url for the given docx template.
|
|
661
|
+
* @summary Get pre-signed url for downloading docx template
|
|
662
|
+
* @param {DocxTemplatesApiDownloadDocxTemplateRequest} requestParameters Request parameters.
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
* @memberof DocxTemplatesApi
|
|
666
|
+
*/
|
|
667
|
+
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
668
|
+
var _this = this;
|
|
669
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* Get a docx template.
|
|
673
|
+
* @summary Retrieve the docx template
|
|
674
|
+
* @param {DocxTemplatesApiGetDocxTemplateRequest} requestParameters Request parameters.
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
* @memberof DocxTemplatesApi
|
|
678
|
+
*/
|
|
679
|
+
DocxTemplatesApi.prototype.getDocxTemplate = function (requestParameters, options) {
|
|
680
|
+
var _this = this;
|
|
681
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
685
|
+
* @summary List docx templates
|
|
686
|
+
* @param {DocxTemplatesApiListDocxTemplatesRequest} requestParameters Request parameters.
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
* @memberof DocxTemplatesApi
|
|
690
|
+
*/
|
|
691
|
+
DocxTemplatesApi.prototype.listDocxTemplates = function (requestParameters, options) {
|
|
692
|
+
var _this = this;
|
|
693
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
694
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
695
|
+
};
|
|
696
|
+
/**
|
|
697
|
+
* Updates a docx template metadata.
|
|
698
|
+
* @summary Update the docx template
|
|
699
|
+
* @param {DocxTemplatesApiUpdateDocxTemplateRequest} requestParameters Request parameters.
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
* @memberof DocxTemplatesApi
|
|
703
|
+
*/
|
|
704
|
+
DocxTemplatesApi.prototype.updateDocxTemplate = function (requestParameters, options) {
|
|
705
|
+
var _this = this;
|
|
706
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Upload a docx template via a presigned Url.
|
|
710
|
+
* @summary Upload a docx template.
|
|
711
|
+
* @param {DocxTemplatesApiUploadDocxTemplateRequest} requestParameters Request parameters.
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
* @memberof DocxTemplatesApi
|
|
715
|
+
*/
|
|
716
|
+
DocxTemplatesApi.prototype.uploadDocxTemplate = function (requestParameters, options) {
|
|
717
|
+
var _this = this;
|
|
718
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
719
|
+
};
|
|
720
|
+
return DocxTemplatesApi;
|
|
721
|
+
}(base_1.BaseAPI));
|
|
722
|
+
exports.DocxTemplatesApi = DocxTemplatesApi;
|