@emilgroup/document-sdk-node 1.39.1-beta.1 → 1.39.1-beta.2
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 +3 -0
- package/README.md +2 -2
- package/api/documents-api.ts +124 -4
- package/dist/api/default-api.js +5 -18
- package/dist/api/document-templates-api.js +17 -46
- package/dist/api/documents-api.d.ts +76 -10
- package/dist/api/documents-api.js +129 -71
- package/dist/api/docx-templates-api.js +20 -53
- package/dist/api/layouts-api.js +17 -46
- package/dist/api/product-documents-api.d.ts +3 -3
- package/dist/api/product-documents-api.js +17 -46
- package/dist/api/search-keywords-api.js +5 -18
- package/dist/api/searchable-document-owners-api.js +5 -18
- package/dist/api/searchable-documents-api.d.ts +3 -3
- package/dist/api/searchable-documents-api.js +5 -18
- package/dist/base.js +15 -25
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/base64-metadata-class.d.ts +48 -0
- package/dist/models/base64-metadata-class.js +15 -0
- package/dist/models/convert-to-base64-request-dto.d.ts +30 -0
- package/dist/models/convert-to-base64-request-dto.js +15 -0
- package/dist/models/convert-to-base64-response-class.d.ts +37 -0
- package/dist/models/convert-to-base64-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/models/base64-metadata-class.ts +54 -0
- package/models/convert-to-base64-request-dto.ts +36 -0
- package/models/convert-to-base64-response-class.ts +43 -0
- package/models/index.ts +3 -0
- package/package.json +4 -4
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -105,6 +96,59 @@ var FormData = require('form-data');
|
|
|
105
96
|
var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
106
97
|
var _this = this;
|
|
107
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
101
|
+
* @summary Convert document to base64
|
|
102
|
+
* @param {string} code Document code
|
|
103
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
104
|
+
* @param {string} [authorization] Bearer Token
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
// verify required parameter 'code' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('convertToBase64', 'code', code);
|
|
117
|
+
// verify required parameter 'convertToBase64RequestDto' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('convertToBase64', 'convertToBase64RequestDto', convertToBase64RequestDto);
|
|
119
|
+
localVarPath = "/documentservice/v1/documents/{code}/base64"
|
|
120
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
121
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
baseAccessToken = configuration.accessToken;
|
|
125
|
+
}
|
|
126
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
127
|
+
localVarHeaderParameter = {};
|
|
128
|
+
localVarQueryParameter = {};
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
|
+
case 1:
|
|
133
|
+
// authentication bearer required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
_a.sent();
|
|
136
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
|
+
}
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(convertToBase64RequestDto, localVarRequestOptions, configuration);
|
|
144
|
+
return [2 /*return*/, {
|
|
145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
}];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
},
|
|
108
152
|
/**
|
|
109
153
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
110
154
|
* @summary Create the document
|
|
@@ -113,14 +157,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
113
157
|
* @param {*} [options] Override http request option.
|
|
114
158
|
* @throws {RequiredError}
|
|
115
159
|
*/
|
|
116
|
-
createDocument: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([createDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (createDocumentRequestDto, authorization, options) {
|
|
160
|
+
createDocument: function (createDocumentRequestDto, authorization, options) {
|
|
161
|
+
if (options === void 0) { options = {}; }
|
|
162
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
163
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
164
|
return __generator(this, function (_a) {
|
|
125
165
|
switch (_a.label) {
|
|
126
166
|
case 0:
|
|
@@ -166,14 +206,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
166
206
|
* @param {*} [options] Override http request option.
|
|
167
207
|
* @throws {RequiredError}
|
|
168
208
|
*/
|
|
169
|
-
createPresignedPost: function (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
args_1[_i - 2] = arguments[_i];
|
|
173
|
-
}
|
|
174
|
-
return __awaiter(_this, __spreadArray([createPresignedPostRequestDto_1, authorization_1], args_1, true), void 0, function (createPresignedPostRequestDto, authorization, options) {
|
|
209
|
+
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
210
|
+
if (options === void 0) { options = {}; }
|
|
211
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
212
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
-
if (options === void 0) { options = {}; }
|
|
177
213
|
return __generator(this, function (_a) {
|
|
178
214
|
switch (_a.label) {
|
|
179
215
|
case 0:
|
|
@@ -219,14 +255,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
219
255
|
* @param {*} [options] Override http request option.
|
|
220
256
|
* @throws {RequiredError}
|
|
221
257
|
*/
|
|
222
|
-
deleteDocument: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 2] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
258
|
+
deleteDocument: function (code, authorization, options) {
|
|
259
|
+
if (options === void 0) { options = {}; }
|
|
260
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
262
|
return __generator(this, function (_a) {
|
|
231
263
|
switch (_a.label) {
|
|
232
264
|
case 0:
|
|
@@ -272,14 +304,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
272
304
|
* @param {*} [options] Override http request option.
|
|
273
305
|
* @throws {RequiredError}
|
|
274
306
|
*/
|
|
275
|
-
getDocumentDownloadUrl: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 3] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, contentDisposition_1], args_1, true), void 0, function (code, authorization, contentDisposition, options) {
|
|
307
|
+
getDocumentDownloadUrl: function (code, authorization, contentDisposition, options) {
|
|
308
|
+
if (options === void 0) { options = {}; }
|
|
309
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
310
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
311
|
return __generator(this, function (_a) {
|
|
284
312
|
switch (_a.label) {
|
|
285
313
|
case 0:
|
|
@@ -328,14 +356,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
328
356
|
* @param {*} [options] Override http request option.
|
|
329
357
|
* @throws {RequiredError}
|
|
330
358
|
*/
|
|
331
|
-
getSignedS3keyUrl: function (
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
args_1[_i - 3] = arguments[_i];
|
|
335
|
-
}
|
|
336
|
-
return __awaiter(_this, __spreadArray([s3Key_1, authorization_1, contentDisposition_1], args_1, true), void 0, function (s3Key, authorization, contentDisposition, options) {
|
|
359
|
+
getSignedS3keyUrl: function (s3Key, authorization, contentDisposition, options) {
|
|
360
|
+
if (options === void 0) { options = {}; }
|
|
361
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
337
362
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
338
|
-
if (options === void 0) { options = {}; }
|
|
339
363
|
return __generator(this, function (_a) {
|
|
340
364
|
switch (_a.label) {
|
|
341
365
|
case 0:
|
|
@@ -391,14 +415,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
391
415
|
* @param {*} [options] Override http request option.
|
|
392
416
|
* @throws {RequiredError}
|
|
393
417
|
*/
|
|
394
|
-
listDocuments: function (
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
args_1[_i - 8] = arguments[_i];
|
|
398
|
-
}
|
|
399
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
418
|
+
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
419
|
+
if (options === void 0) { options = {}; }
|
|
420
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
400
421
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
401
|
-
if (options === void 0) { options = {}; }
|
|
402
422
|
return __generator(this, function (_a) {
|
|
403
423
|
switch (_a.label) {
|
|
404
424
|
case 0:
|
|
@@ -454,21 +474,17 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
454
474
|
});
|
|
455
475
|
},
|
|
456
476
|
/**
|
|
457
|
-
* This will save an external document in the database and return it.
|
|
477
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
458
478
|
* @summary Save external document
|
|
459
479
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
460
480
|
* @param {string} [authorization] Bearer Token
|
|
461
481
|
* @param {*} [options] Override http request option.
|
|
462
482
|
* @throws {RequiredError}
|
|
463
483
|
*/
|
|
464
|
-
saveExternalDocument: function (
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
args_1[_i - 2] = arguments[_i];
|
|
468
|
-
}
|
|
469
|
-
return __awaiter(_this, __spreadArray([saveExternalDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (saveExternalDocumentRequestDto, authorization, options) {
|
|
484
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
485
|
+
if (options === void 0) { options = {}; }
|
|
486
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
470
487
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
471
|
-
if (options === void 0) { options = {}; }
|
|
472
488
|
return __generator(this, function (_a) {
|
|
473
489
|
switch (_a.label) {
|
|
474
490
|
case 0:
|
|
@@ -515,14 +531,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
515
531
|
* @param {*} [options] Override http request option.
|
|
516
532
|
* @throws {RequiredError}
|
|
517
533
|
*/
|
|
518
|
-
updateDocument: function (
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
args_1[_i - 3] = arguments[_i];
|
|
522
|
-
}
|
|
523
|
-
return __awaiter(_this, __spreadArray([code_1, updateDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateDocumentRequestDto, authorization, options) {
|
|
534
|
+
updateDocument: function (code, updateDocumentRequestDto, authorization, options) {
|
|
535
|
+
if (options === void 0) { options = {}; }
|
|
536
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
524
537
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
525
|
-
if (options === void 0) { options = {}; }
|
|
526
538
|
return __generator(this, function (_a) {
|
|
527
539
|
switch (_a.label) {
|
|
528
540
|
case 0:
|
|
@@ -573,6 +585,28 @@ exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
|
573
585
|
var DocumentsApiFp = function (configuration) {
|
|
574
586
|
var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
|
|
575
587
|
return {
|
|
588
|
+
/**
|
|
589
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
590
|
+
* @summary Convert document to base64
|
|
591
|
+
* @param {string} code Document code
|
|
592
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
593
|
+
* @param {string} [authorization] Bearer Token
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
599
|
+
var localVarAxiosArgs;
|
|
600
|
+
return __generator(this, function (_a) {
|
|
601
|
+
switch (_a.label) {
|
|
602
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.convertToBase64(code, convertToBase64RequestDto, authorization, options)];
|
|
603
|
+
case 1:
|
|
604
|
+
localVarAxiosArgs = _a.sent();
|
|
605
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
});
|
|
609
|
+
},
|
|
576
610
|
/**
|
|
577
611
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
578
612
|
* @summary Create the document
|
|
@@ -708,7 +742,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
708
742
|
});
|
|
709
743
|
},
|
|
710
744
|
/**
|
|
711
|
-
* This will save an external document in the database and return it.
|
|
745
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
712
746
|
* @summary Save external document
|
|
713
747
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
714
748
|
* @param {string} [authorization] Bearer Token
|
|
@@ -760,6 +794,18 @@ exports.DocumentsApiFp = DocumentsApiFp;
|
|
|
760
794
|
var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
761
795
|
var localVarFp = (0, exports.DocumentsApiFp)(configuration);
|
|
762
796
|
return {
|
|
797
|
+
/**
|
|
798
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
799
|
+
* @summary Convert document to base64
|
|
800
|
+
* @param {string} code Document code
|
|
801
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
802
|
+
* @param {string} [authorization] Bearer Token
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
807
|
+
return localVarFp.convertToBase64(code, convertToBase64RequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
808
|
+
},
|
|
763
809
|
/**
|
|
764
810
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
765
811
|
* @summary Create the document
|
|
@@ -835,7 +881,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
835
881
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
836
882
|
},
|
|
837
883
|
/**
|
|
838
|
-
* This will save an external document in the database and return it.
|
|
884
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
839
885
|
* @summary Save external document
|
|
840
886
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
841
887
|
* @param {string} [authorization] Bearer Token
|
|
@@ -871,6 +917,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
871
917
|
function DocumentsApi() {
|
|
872
918
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
873
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
922
|
+
* @summary Convert document to base64
|
|
923
|
+
* @param {DocumentsApiConvertToBase64Request} requestParameters Request parameters.
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
* @memberof DocumentsApi
|
|
927
|
+
*/
|
|
928
|
+
DocumentsApi.prototype.convertToBase64 = function (requestParameters, options) {
|
|
929
|
+
var _this = this;
|
|
930
|
+
return (0, exports.DocumentsApiFp)(this.configuration).convertToBase64(requestParameters.code, requestParameters.convertToBase64RequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
931
|
+
};
|
|
874
932
|
/**
|
|
875
933
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
876
934
|
* @summary Create the document
|
|
@@ -945,7 +1003,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
945
1003
|
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(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); });
|
|
946
1004
|
};
|
|
947
1005
|
/**
|
|
948
|
-
* This will save an external document in the database and return it.
|
|
1006
|
+
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
949
1007
|
* @summary Save external document
|
|
950
1008
|
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
951
1009
|
* @param {*} [options] Override http request option.
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
deleteDocxTemplate: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
107
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -165,14 +152,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
165
152
|
* @param {*} [options] Override http request option.
|
|
166
153
|
* @throws {RequiredError}
|
|
167
154
|
*/
|
|
168
|
-
downloadDocxTemplate: function (
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
args_1[_i - 2] = arguments[_i];
|
|
172
|
-
}
|
|
173
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
155
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
156
|
+
if (options === void 0) { options = {}; }
|
|
157
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
174
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
175
|
-
if (options === void 0) { options = {}; }
|
|
176
159
|
return __generator(this, function (_a) {
|
|
177
160
|
switch (_a.label) {
|
|
178
161
|
case 0:
|
|
@@ -217,14 +200,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
217
200
|
* @param {*} [options] Override http request option.
|
|
218
201
|
* @throws {RequiredError}
|
|
219
202
|
*/
|
|
220
|
-
getDocxTemplate: function (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
args_1[_i - 2] = arguments[_i];
|
|
224
|
-
}
|
|
225
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
203
|
+
getDocxTemplate: function (code, authorization, options) {
|
|
204
|
+
if (options === void 0) { options = {}; }
|
|
205
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
226
206
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
227
|
-
if (options === void 0) { options = {}; }
|
|
228
207
|
return __generator(this, function (_a) {
|
|
229
208
|
switch (_a.label) {
|
|
230
209
|
case 0:
|
|
@@ -275,14 +254,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
275
254
|
* @param {*} [options] Override http request option.
|
|
276
255
|
* @throws {RequiredError}
|
|
277
256
|
*/
|
|
278
|
-
listDocxTemplates: function (
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
args_1[_i - 8] = arguments[_i];
|
|
282
|
-
}
|
|
283
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
257
|
+
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
|
+
if (options === void 0) { options = {}; }
|
|
259
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
284
260
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
285
|
-
if (options === void 0) { options = {}; }
|
|
286
261
|
return __generator(this, function (_a) {
|
|
287
262
|
switch (_a.label) {
|
|
288
263
|
case 0:
|
|
@@ -346,14 +321,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
346
321
|
* @param {*} [options] Override http request option.
|
|
347
322
|
* @throws {RequiredError}
|
|
348
323
|
*/
|
|
349
|
-
updateDocxTemplate: function (
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
args_1[_i - 3] = arguments[_i];
|
|
353
|
-
}
|
|
354
|
-
return __awaiter(_this, __spreadArray([code_1, sharedUpdateDocxTemplateRequestDto_1, authorization_1], args_1, true), void 0, function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
324
|
+
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
325
|
+
if (options === void 0) { options = {}; }
|
|
326
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
355
327
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
356
|
-
if (options === void 0) { options = {}; }
|
|
357
328
|
return __generator(this, function (_a) {
|
|
358
329
|
switch (_a.label) {
|
|
359
330
|
case 0:
|
|
@@ -402,14 +373,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
402
373
|
* @param {*} [options] Override http request option.
|
|
403
374
|
* @throws {RequiredError}
|
|
404
375
|
*/
|
|
405
|
-
uploadDocxTemplate: function (
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
args_1[_i - 2] = arguments[_i];
|
|
409
|
-
}
|
|
410
|
-
return __awaiter(_this, __spreadArray([uploadDocxTemplateRequestDto_1, authorization_1], args_1, true), void 0, function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
376
|
+
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
377
|
+
if (options === void 0) { options = {}; }
|
|
378
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
411
379
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
412
|
-
if (options === void 0) { options = {}; }
|
|
413
380
|
return __generator(this, function (_a) {
|
|
414
381
|
switch (_a.label) {
|
|
415
382
|
case 0:
|
package/dist/api/layouts-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
createLayout: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([createLayoutRequestDto_1, authorization_1], args_1, true), void 0, function (createLayoutRequestDto, authorization, options) {
|
|
107
|
+
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -166,14 +153,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
166
153
|
* @param {*} [options] Override http request option.
|
|
167
154
|
* @throws {RequiredError}
|
|
168
155
|
*/
|
|
169
|
-
deleteLayout: function (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
args_1[_i - 2] = arguments[_i];
|
|
173
|
-
}
|
|
174
|
-
return __awaiter(_this, __spreadArray([id_1, authorization_1], args_1, true), void 0, function (id, authorization, options) {
|
|
156
|
+
deleteLayout: function (id, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
-
if (options === void 0) { options = {}; }
|
|
177
160
|
return __generator(this, function (_a) {
|
|
178
161
|
switch (_a.label) {
|
|
179
162
|
case 0:
|
|
@@ -219,14 +202,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
219
202
|
* @param {*} [options] Override http request option.
|
|
220
203
|
* @throws {RequiredError}
|
|
221
204
|
*/
|
|
222
|
-
getLayout: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 3] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([id_1, id2_1, authorization_1], args_1, true), void 0, function (id, id2, authorization, options) {
|
|
205
|
+
getLayout: function (id, id2, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
209
|
return __generator(this, function (_a) {
|
|
231
210
|
switch (_a.label) {
|
|
232
211
|
case 0:
|
|
@@ -282,14 +261,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
282
261
|
* @param {*} [options] Override http request option.
|
|
283
262
|
* @throws {RequiredError}
|
|
284
263
|
*/
|
|
285
|
-
listLayouts: function (
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
args_1[_i - 8] = arguments[_i];
|
|
289
|
-
}
|
|
290
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
264
|
+
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
265
|
+
if (options === void 0) { options = {}; }
|
|
266
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
291
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
292
|
-
if (options === void 0) { options = {}; }
|
|
293
268
|
return __generator(this, function (_a) {
|
|
294
269
|
switch (_a.label) {
|
|
295
270
|
case 0:
|
|
@@ -353,14 +328,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
353
328
|
* @param {*} [options] Override http request option.
|
|
354
329
|
* @throws {RequiredError}
|
|
355
330
|
*/
|
|
356
|
-
updateLayout: function (
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
args_1[_i - 3] = arguments[_i];
|
|
360
|
-
}
|
|
361
|
-
return __awaiter(_this, __spreadArray([id_1, updateLayoutRequestDto_1, authorization_1], args_1, true), void 0, function (id, updateLayoutRequestDto, authorization, options) {
|
|
331
|
+
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
332
|
+
if (options === void 0) { options = {}; }
|
|
333
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
362
334
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
363
|
-
if (options === void 0) { options = {}; }
|
|
364
335
|
return __generator(this, function (_a) {
|
|
365
336
|
switch (_a.label) {
|
|
366
337
|
case 0:
|
|
@@ -42,7 +42,7 @@ export declare const ProductDocumentsApiAxiosParamCreator: (configuration?: Conf
|
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
downloadProductDocument: (productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
45
|
+
downloadProductDocument: (productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
/**
|
|
47
47
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
48
48
|
* @summary Retrieve the product document
|
|
@@ -105,7 +105,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
107
107
|
*/
|
|
108
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
108
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
109
109
|
/**
|
|
110
110
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
111
111
|
* @summary Retrieve the product document
|
|
@@ -168,7 +168,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
170
170
|
*/
|
|
171
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?:
|
|
171
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
172
172
|
/**
|
|
173
173
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
174
174
|
* @summary Retrieve the product document
|