@emilgroup/document-sdk-node 1.49.1-beta.34 → 1.49.1-beta.35
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/document-templates-api.ts +40 -15
- package/api/documents-api.ts +88 -33
- package/api/docx-templates-api.ts +48 -18
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +40 -15
- package/api/product-documents-api.ts +48 -18
- package/api/search-keywords-api.ts +8 -3
- package/api/searchable-document-owners-api.ts +8 -3
- package/api/searchable-documents-api.ts +8 -3
- package/base.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/document-templates-api.d.ts +5 -5
- package/dist/api/document-templates-api.js +67 -38
- package/dist/api/documents-api.d.ts +11 -11
- package/dist/api/documents-api.js +153 -85
- package/dist/api/docx-templates-api.d.ts +6 -6
- package/dist/api/docx-templates-api.js +86 -47
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +5 -5
- package/dist/api/layouts-api.js +67 -38
- package/dist/api/product-documents-api.d.ts +6 -6
- package/dist/api/product-documents-api.js +78 -45
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +11 -7
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +11 -7
- package/dist/api/searchable-documents-api.d.ts +1 -1
- package/dist/api/searchable-documents-api.js +11 -7
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/package.json +2 -2
|
@@ -107,9 +107,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
deleteDocxTemplate: function (code, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'code' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('deleteDocxTemplate', 'code', code);
|
|
@@ -125,13 +126,19 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
localVarQueryParameter = {};
|
|
126
127
|
// authentication bearer required
|
|
127
128
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
132
|
+
];
|
|
129
133
|
case 1:
|
|
130
134
|
// authentication bearer required
|
|
131
135
|
// http bearer authentication required
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
_b.sent();
|
|
137
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
138
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
140
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
142
|
}
|
|
136
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
144
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -155,9 +162,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
155
162
|
downloadDocxTemplate: function (code, authorization, options) {
|
|
156
163
|
if (options === void 0) { options = {}; }
|
|
157
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
166
|
+
var _a;
|
|
167
|
+
return __generator(this, function (_b) {
|
|
168
|
+
switch (_b.label) {
|
|
161
169
|
case 0:
|
|
162
170
|
// verify required parameter 'code' is not null or undefined
|
|
163
171
|
(0, common_1.assertParamExists)('downloadDocxTemplate', 'code', code);
|
|
@@ -173,13 +181,19 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
173
181
|
localVarQueryParameter = {};
|
|
174
182
|
// authentication bearer required
|
|
175
183
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
185
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
186
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
187
|
+
];
|
|
177
188
|
case 1:
|
|
178
189
|
// authentication bearer required
|
|
179
190
|
// http bearer authentication required
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
_b.sent();
|
|
192
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
183
197
|
}
|
|
184
198
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
199
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -203,9 +217,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
203
217
|
getDocxTemplate: function (code, authorization, options) {
|
|
204
218
|
if (options === void 0) { options = {}; }
|
|
205
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
|
-
|
|
208
|
-
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
221
|
+
var _a;
|
|
222
|
+
return __generator(this, function (_b) {
|
|
223
|
+
switch (_b.label) {
|
|
209
224
|
case 0:
|
|
210
225
|
// verify required parameter 'code' is not null or undefined
|
|
211
226
|
(0, common_1.assertParamExists)('getDocxTemplate', 'code', code);
|
|
@@ -221,13 +236,19 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
221
236
|
localVarQueryParameter = {};
|
|
222
237
|
// authentication bearer required
|
|
223
238
|
// http bearer authentication required
|
|
224
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
239
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
240
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
241
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
242
|
+
];
|
|
225
243
|
case 1:
|
|
226
244
|
// authentication bearer required
|
|
227
245
|
// http bearer authentication required
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
246
|
+
_b.sent();
|
|
247
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
248
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
249
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
250
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
231
252
|
}
|
|
232
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -257,9 +278,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
257
278
|
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
279
|
if (options === void 0) { options = {}; }
|
|
259
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
261
|
-
|
|
262
|
-
|
|
281
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
282
|
+
var _a;
|
|
283
|
+
return __generator(this, function (_b) {
|
|
284
|
+
switch (_b.label) {
|
|
263
285
|
case 0:
|
|
264
286
|
localVarPath = "/documentservice/v1/docx-templates";
|
|
265
287
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -276,7 +298,7 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
276
298
|
case 1:
|
|
277
299
|
// authentication bearer required
|
|
278
300
|
// http bearer authentication required
|
|
279
|
-
|
|
301
|
+
_b.sent();
|
|
280
302
|
if (pageSize !== undefined) {
|
|
281
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
282
304
|
}
|
|
@@ -298,8 +320,11 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
298
320
|
if (filters !== undefined) {
|
|
299
321
|
localVarQueryParameter['filters'] = filters;
|
|
300
322
|
}
|
|
301
|
-
|
|
302
|
-
|
|
323
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
327
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
303
328
|
}
|
|
304
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -324,9 +349,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
324
349
|
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
325
350
|
if (options === void 0) { options = {}; }
|
|
326
351
|
return __awaiter(_this, void 0, void 0, function () {
|
|
327
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
328
|
-
|
|
329
|
-
|
|
352
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
353
|
+
var _a;
|
|
354
|
+
return __generator(this, function (_b) {
|
|
355
|
+
switch (_b.label) {
|
|
330
356
|
case 0:
|
|
331
357
|
// verify required parameter 'code' is not null or undefined
|
|
332
358
|
(0, common_1.assertParamExists)('updateDocxTemplate', 'code', code);
|
|
@@ -344,13 +370,19 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
344
370
|
localVarQueryParameter = {};
|
|
345
371
|
// authentication bearer required
|
|
346
372
|
// http bearer authentication required
|
|
347
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
373
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
375
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
376
|
+
];
|
|
348
377
|
case 1:
|
|
349
378
|
// authentication bearer required
|
|
350
379
|
// http bearer authentication required
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
380
|
+
_b.sent();
|
|
381
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
382
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
383
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
384
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
385
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
354
386
|
}
|
|
355
387
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
356
388
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -376,9 +408,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
376
408
|
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
377
409
|
if (options === void 0) { options = {}; }
|
|
378
410
|
return __awaiter(_this, void 0, void 0, function () {
|
|
379
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
380
|
-
|
|
381
|
-
|
|
411
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
412
|
+
var _a;
|
|
413
|
+
return __generator(this, function (_b) {
|
|
414
|
+
switch (_b.label) {
|
|
382
415
|
case 0:
|
|
383
416
|
// verify required parameter 'uploadDocxTemplateRequestDto' is not null or undefined
|
|
384
417
|
(0, common_1.assertParamExists)('uploadDocxTemplate', 'uploadDocxTemplateRequestDto', uploadDocxTemplateRequestDto);
|
|
@@ -393,13 +426,19 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
393
426
|
localVarQueryParameter = {};
|
|
394
427
|
// authentication bearer required
|
|
395
428
|
// http bearer authentication required
|
|
396
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
429
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
430
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
431
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
432
|
+
];
|
|
397
433
|
case 1:
|
|
398
434
|
// authentication bearer required
|
|
399
435
|
// http bearer authentication required
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
436
|
+
_b.sent();
|
|
437
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
438
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
439
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
440
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
441
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
403
442
|
}
|
|
404
443
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
444
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -664,7 +703,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
664
703
|
*/
|
|
665
704
|
DocxTemplatesApi.prototype.deleteDocxTemplate = function (requestParameters, options) {
|
|
666
705
|
var _this = this;
|
|
667
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
706
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
668
707
|
};
|
|
669
708
|
/**
|
|
670
709
|
* Get a pre-signed download url for the given docx template. **Required Permissions** \"document-management.docx-templates.view\"
|
|
@@ -676,7 +715,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
676
715
|
*/
|
|
677
716
|
DocxTemplatesApi.prototype.downloadDocxTemplate = function (requestParameters, options) {
|
|
678
717
|
var _this = this;
|
|
679
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
718
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
680
719
|
};
|
|
681
720
|
/**
|
|
682
721
|
* Get a docx template. **Required Permissions** \"document-management.docx-templates.view\"
|
|
@@ -688,7 +727,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
688
727
|
*/
|
|
689
728
|
DocxTemplatesApi.prototype.getDocxTemplate = function (requestParameters, options) {
|
|
690
729
|
var _this = this;
|
|
691
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
730
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
692
731
|
};
|
|
693
732
|
/**
|
|
694
733
|
* 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. **Required Permissions** \"document-management.docx-templates.view\"
|
|
@@ -701,7 +740,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
701
740
|
DocxTemplatesApi.prototype.listDocxTemplates = function (requestParameters, options) {
|
|
702
741
|
var _this = this;
|
|
703
742
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
704
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
743
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
705
744
|
};
|
|
706
745
|
/**
|
|
707
746
|
* Updates a docx template metadata. **Required Permissions** \"document-management.docx-templates.update\"
|
|
@@ -713,7 +752,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
713
752
|
*/
|
|
714
753
|
DocxTemplatesApi.prototype.updateDocxTemplate = function (requestParameters, options) {
|
|
715
754
|
var _this = this;
|
|
716
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
755
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
717
756
|
};
|
|
718
757
|
/**
|
|
719
758
|
* Upload a docx template via a presigned Url. **Required Permissions** \"document-management.docx-templates.create\"
|
|
@@ -725,7 +764,7 @@ var DocxTemplatesApi = /** @class */ (function (_super) {
|
|
|
725
764
|
*/
|
|
726
765
|
DocxTemplatesApi.prototype.uploadDocxTemplate = function (requestParameters, options) {
|
|
727
766
|
var _this = this;
|
|
728
|
-
return (0, exports.DocxTemplatesApiFp)(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
767
|
+
return (0, exports.DocxTemplatesApiFp)(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
729
768
|
};
|
|
730
769
|
return DocxTemplatesApi;
|
|
731
770
|
}(base_1.BaseAPI));
|
package/dist/api/health-api.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
|
|
70
70
|
}
|
package/dist/api/health-api.js
CHANGED
|
@@ -197,7 +197,7 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
197
197
|
*/
|
|
198
198
|
HealthApi.prototype.check = function (options) {
|
|
199
199
|
var _this = this;
|
|
200
|
-
return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
200
|
+
return (0, exports.HealthApiFp)(this.configuration).check(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
201
201
|
};
|
|
202
202
|
return HealthApi;
|
|
203
203
|
}(base_1.BaseAPI));
|
|
@@ -354,7 +354,7 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
* @memberof LayoutsApi
|
|
356
356
|
*/
|
|
357
|
-
createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}>>;
|
|
357
|
+
createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any, {}, any>>;
|
|
358
358
|
/**
|
|
359
359
|
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it. **Required Permissions** \"document-management.layouts.delete\"
|
|
360
360
|
* @summary Delete the layout
|
|
@@ -363,7 +363,7 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
* @memberof LayoutsApi
|
|
365
365
|
*/
|
|
366
|
-
deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
366
|
+
deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
367
367
|
/**
|
|
368
368
|
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information. **Required Permissions** \"document-management.layouts.view\"
|
|
369
369
|
* @summary Retrieve the layout
|
|
@@ -372,7 +372,7 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
* @memberof LayoutsApi
|
|
374
374
|
*/
|
|
375
|
-
getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}>>;
|
|
375
|
+
getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any, {}, any>>;
|
|
376
376
|
/**
|
|
377
377
|
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.layouts.view\"
|
|
378
378
|
* @summary List layouts
|
|
@@ -381,7 +381,7 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
* @memberof LayoutsApi
|
|
383
383
|
*/
|
|
384
|
-
listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}>>;
|
|
384
|
+
listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any, {}, any>>;
|
|
385
385
|
/**
|
|
386
386
|
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.layouts.update\"
|
|
387
387
|
* @summary Update the layout
|
|
@@ -390,5 +390,5 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
390
390
|
* @throws {RequiredError}
|
|
391
391
|
* @memberof LayoutsApi
|
|
392
392
|
*/
|
|
393
|
-
updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}>>;
|
|
393
|
+
updateLayout(requestParameters: LayoutsApiUpdateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLayoutResponseClass, any, {}, any>>;
|
|
394
394
|
}
|
package/dist/api/layouts-api.js
CHANGED
|
@@ -107,9 +107,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createLayoutRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createLayout', 'createLayoutRequestDto', createLayoutRequestDto);
|
|
@@ -124,13 +125,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
124
125
|
localVarQueryParameter = {};
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
+
];
|
|
128
132
|
case 1:
|
|
129
133
|
// authentication bearer required
|
|
130
134
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
141
|
}
|
|
135
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,9 +163,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
156
163
|
deleteLayout: function (id, authorization, options) {
|
|
157
164
|
if (options === void 0) { options = {}; }
|
|
158
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
162
170
|
case 0:
|
|
163
171
|
// verify required parameter 'id' is not null or undefined
|
|
164
172
|
(0, common_1.assertParamExists)('deleteLayout', 'id', id);
|
|
@@ -174,13 +182,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
174
182
|
localVarQueryParameter = {};
|
|
175
183
|
// authentication bearer required
|
|
176
184
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
185
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
+
];
|
|
178
189
|
case 1:
|
|
179
190
|
// authentication bearer required
|
|
180
191
|
// http bearer authentication required
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
197
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
198
|
}
|
|
185
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
200
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -205,9 +219,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
205
219
|
getLayout: function (id, id2, authorization, options) {
|
|
206
220
|
if (options === void 0) { options = {}; }
|
|
207
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
-
|
|
210
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
211
226
|
case 0:
|
|
212
227
|
// verify required parameter 'id' is not null or undefined
|
|
213
228
|
(0, common_1.assertParamExists)('getLayout', 'id', id);
|
|
@@ -229,12 +244,15 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
229
244
|
case 1:
|
|
230
245
|
// authentication bearer required
|
|
231
246
|
// http bearer authentication required
|
|
232
|
-
|
|
247
|
+
_b.sent();
|
|
233
248
|
if (id2 !== undefined) {
|
|
234
249
|
localVarQueryParameter['id'] = id2;
|
|
235
250
|
}
|
|
236
|
-
|
|
237
|
-
|
|
251
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
252
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
238
256
|
}
|
|
239
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
258
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -264,9 +282,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
264
282
|
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
265
283
|
if (options === void 0) { options = {}; }
|
|
266
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
267
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
|
-
|
|
269
|
-
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
286
|
+
var _a;
|
|
287
|
+
return __generator(this, function (_b) {
|
|
288
|
+
switch (_b.label) {
|
|
270
289
|
case 0:
|
|
271
290
|
localVarPath = "/documentservice/v1/layouts";
|
|
272
291
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -283,7 +302,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
283
302
|
case 1:
|
|
284
303
|
// authentication bearer required
|
|
285
304
|
// http bearer authentication required
|
|
286
|
-
|
|
305
|
+
_b.sent();
|
|
287
306
|
if (pageSize !== undefined) {
|
|
288
307
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
308
|
}
|
|
@@ -305,8 +324,11 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
305
324
|
if (filters !== undefined) {
|
|
306
325
|
localVarQueryParameter['filters'] = filters;
|
|
307
326
|
}
|
|
308
|
-
|
|
309
|
-
|
|
327
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
328
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
331
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
310
332
|
}
|
|
311
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
334
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -331,9 +353,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
331
353
|
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
332
354
|
if (options === void 0) { options = {}; }
|
|
333
355
|
return __awaiter(_this, void 0, void 0, function () {
|
|
334
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
-
|
|
336
|
-
|
|
356
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
357
|
+
var _a;
|
|
358
|
+
return __generator(this, function (_b) {
|
|
359
|
+
switch (_b.label) {
|
|
337
360
|
case 0:
|
|
338
361
|
// verify required parameter 'id' is not null or undefined
|
|
339
362
|
(0, common_1.assertParamExists)('updateLayout', 'id', id);
|
|
@@ -351,13 +374,19 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
351
374
|
localVarQueryParameter = {};
|
|
352
375
|
// authentication bearer required
|
|
353
376
|
// http bearer authentication required
|
|
354
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
377
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
378
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
379
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
380
|
+
];
|
|
355
381
|
case 1:
|
|
356
382
|
// authentication bearer required
|
|
357
383
|
// http bearer authentication required
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
384
|
+
_b.sent();
|
|
385
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
386
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
387
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
388
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
389
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
361
390
|
}
|
|
362
391
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
363
392
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -592,7 +621,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
592
621
|
*/
|
|
593
622
|
LayoutsApi.prototype.createLayout = function (requestParameters, options) {
|
|
594
623
|
var _this = this;
|
|
595
|
-
return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
624
|
+
return (0, exports.LayoutsApiFp)(this.configuration).createLayout(requestParameters.createLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
625
|
};
|
|
597
626
|
/**
|
|
598
627
|
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it. **Required Permissions** \"document-management.layouts.delete\"
|
|
@@ -604,7 +633,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
604
633
|
*/
|
|
605
634
|
LayoutsApi.prototype.deleteLayout = function (requestParameters, options) {
|
|
606
635
|
var _this = this;
|
|
607
|
-
return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
636
|
+
return (0, exports.LayoutsApiFp)(this.configuration).deleteLayout(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
637
|
};
|
|
609
638
|
/**
|
|
610
639
|
* Retrieves the details of the layout that was previously created. Supply the unique layout id that was returned when you created it and Emil Api will return the corresponding layout information. **Required Permissions** \"document-management.layouts.view\"
|
|
@@ -616,7 +645,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
616
645
|
*/
|
|
617
646
|
LayoutsApi.prototype.getLayout = function (requestParameters, options) {
|
|
618
647
|
var _this = this;
|
|
619
|
-
return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
648
|
+
return (0, exports.LayoutsApiFp)(this.configuration).getLayout(requestParameters.id, requestParameters.id2, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
620
649
|
};
|
|
621
650
|
/**
|
|
622
651
|
* Returns a list of layouts you have previously created. The layouts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.layouts.view\"
|
|
@@ -629,7 +658,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
629
658
|
LayoutsApi.prototype.listLayouts = function (requestParameters, options) {
|
|
630
659
|
var _this = this;
|
|
631
660
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
632
|
-
return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
661
|
+
return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
662
|
};
|
|
634
663
|
/**
|
|
635
664
|
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.layouts.update\"
|
|
@@ -641,7 +670,7 @@ var LayoutsApi = /** @class */ (function (_super) {
|
|
|
641
670
|
*/
|
|
642
671
|
LayoutsApi.prototype.updateLayout = function (requestParameters, options) {
|
|
643
672
|
var _this = this;
|
|
644
|
-
return (0, exports.LayoutsApiFp)(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
673
|
+
return (0, exports.LayoutsApiFp)(this.configuration).updateLayout(requestParameters.id, requestParameters.updateLayoutRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
645
674
|
};
|
|
646
675
|
return LayoutsApi;
|
|
647
676
|
}(base_1.BaseAPI));
|