@emilgroup/document-sdk 1.40.1-beta.1 → 1.40.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 +5 -5
- 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 +3 -3
|
@@ -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
|
};
|
|
@@ -101,6 +92,59 @@ var base_1 = require("../base");
|
|
|
101
92
|
var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
102
93
|
var _this = this;
|
|
103
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
97
|
+
* @summary Convert document to base64
|
|
98
|
+
* @param {string} code Document code
|
|
99
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
105
|
+
if (options === void 0) { options = {}; }
|
|
106
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('convertToBase64', 'code', code);
|
|
113
|
+
// verify required parameter 'convertToBase64RequestDto' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('convertToBase64', 'convertToBase64RequestDto', convertToBase64RequestDto);
|
|
115
|
+
localVarPath = "/documentservice/v1/documents/{code}/base64"
|
|
116
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(convertToBase64RequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return [2 /*return*/, {
|
|
141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
},
|
|
104
148
|
/**
|
|
105
149
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
106
150
|
* @summary Create the document
|
|
@@ -109,14 +153,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
109
153
|
* @param {*} [options] Override http request option.
|
|
110
154
|
* @throws {RequiredError}
|
|
111
155
|
*/
|
|
112
|
-
createDocument: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([createDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (createDocumentRequestDto, authorization, options) {
|
|
156
|
+
createDocument: function (createDocumentRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
160
|
return __generator(this, function (_a) {
|
|
121
161
|
switch (_a.label) {
|
|
122
162
|
case 0:
|
|
@@ -162,14 +202,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
162
202
|
* @param {*} [options] Override http request option.
|
|
163
203
|
* @throws {RequiredError}
|
|
164
204
|
*/
|
|
165
|
-
createPresignedPost: function (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
args_1[_i - 2] = arguments[_i];
|
|
169
|
-
}
|
|
170
|
-
return __awaiter(_this, __spreadArray([createPresignedPostRequestDto_1, authorization_1], args_1, true), void 0, function (createPresignedPostRequestDto, authorization, options) {
|
|
205
|
+
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
171
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
-
if (options === void 0) { options = {}; }
|
|
173
209
|
return __generator(this, function (_a) {
|
|
174
210
|
switch (_a.label) {
|
|
175
211
|
case 0:
|
|
@@ -215,14 +251,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
215
251
|
* @param {*} [options] Override http request option.
|
|
216
252
|
* @throws {RequiredError}
|
|
217
253
|
*/
|
|
218
|
-
deleteDocument: function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args_1[_i - 2] = arguments[_i];
|
|
222
|
-
}
|
|
223
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
254
|
+
deleteDocument: function (code, authorization, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
224
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
-
if (options === void 0) { options = {}; }
|
|
226
258
|
return __generator(this, function (_a) {
|
|
227
259
|
switch (_a.label) {
|
|
228
260
|
case 0:
|
|
@@ -268,14 +300,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
268
300
|
* @param {*} [options] Override http request option.
|
|
269
301
|
* @throws {RequiredError}
|
|
270
302
|
*/
|
|
271
|
-
getDocumentDownloadUrl: function (
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
args_1[_i - 3] = arguments[_i];
|
|
275
|
-
}
|
|
276
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, contentDisposition_1], args_1, true), void 0, function (code, authorization, contentDisposition, options) {
|
|
303
|
+
getDocumentDownloadUrl: function (code, authorization, contentDisposition, options) {
|
|
304
|
+
if (options === void 0) { options = {}; }
|
|
305
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
277
306
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
278
|
-
if (options === void 0) { options = {}; }
|
|
279
307
|
return __generator(this, function (_a) {
|
|
280
308
|
switch (_a.label) {
|
|
281
309
|
case 0:
|
|
@@ -324,14 +352,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
324
352
|
* @param {*} [options] Override http request option.
|
|
325
353
|
* @throws {RequiredError}
|
|
326
354
|
*/
|
|
327
|
-
getSignedS3keyUrl: function (
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
args_1[_i - 3] = arguments[_i];
|
|
331
|
-
}
|
|
332
|
-
return __awaiter(_this, __spreadArray([s3Key_1, authorization_1, contentDisposition_1], args_1, true), void 0, function (s3Key, authorization, contentDisposition, options) {
|
|
355
|
+
getSignedS3keyUrl: function (s3Key, authorization, contentDisposition, options) {
|
|
356
|
+
if (options === void 0) { options = {}; }
|
|
357
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
333
358
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
334
|
-
if (options === void 0) { options = {}; }
|
|
335
359
|
return __generator(this, function (_a) {
|
|
336
360
|
switch (_a.label) {
|
|
337
361
|
case 0:
|
|
@@ -387,14 +411,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
387
411
|
* @param {*} [options] Override http request option.
|
|
388
412
|
* @throws {RequiredError}
|
|
389
413
|
*/
|
|
390
|
-
listDocuments: function (
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
args_1[_i - 8] = arguments[_i];
|
|
394
|
-
}
|
|
395
|
-
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) {
|
|
414
|
+
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
415
|
+
if (options === void 0) { options = {}; }
|
|
416
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
396
417
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
397
|
-
if (options === void 0) { options = {}; }
|
|
398
418
|
return __generator(this, function (_a) {
|
|
399
419
|
switch (_a.label) {
|
|
400
420
|
case 0:
|
|
@@ -450,21 +470,17 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
450
470
|
});
|
|
451
471
|
},
|
|
452
472
|
/**
|
|
453
|
-
* This will save an external document in the database and return it.
|
|
473
|
+
* 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\"
|
|
454
474
|
* @summary Save external document
|
|
455
475
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
456
476
|
* @param {string} [authorization] Bearer Token
|
|
457
477
|
* @param {*} [options] Override http request option.
|
|
458
478
|
* @throws {RequiredError}
|
|
459
479
|
*/
|
|
460
|
-
saveExternalDocument: function (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
args_1[_i - 2] = arguments[_i];
|
|
464
|
-
}
|
|
465
|
-
return __awaiter(_this, __spreadArray([saveExternalDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (saveExternalDocumentRequestDto, authorization, options) {
|
|
480
|
+
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
481
|
+
if (options === void 0) { options = {}; }
|
|
482
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
466
483
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
467
|
-
if (options === void 0) { options = {}; }
|
|
468
484
|
return __generator(this, function (_a) {
|
|
469
485
|
switch (_a.label) {
|
|
470
486
|
case 0:
|
|
@@ -511,14 +527,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
511
527
|
* @param {*} [options] Override http request option.
|
|
512
528
|
* @throws {RequiredError}
|
|
513
529
|
*/
|
|
514
|
-
updateDocument: function (
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
args_1[_i - 3] = arguments[_i];
|
|
518
|
-
}
|
|
519
|
-
return __awaiter(_this, __spreadArray([code_1, updateDocumentRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateDocumentRequestDto, authorization, options) {
|
|
530
|
+
updateDocument: function (code, updateDocumentRequestDto, authorization, options) {
|
|
531
|
+
if (options === void 0) { options = {}; }
|
|
532
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
520
533
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
521
|
-
if (options === void 0) { options = {}; }
|
|
522
534
|
return __generator(this, function (_a) {
|
|
523
535
|
switch (_a.label) {
|
|
524
536
|
case 0:
|
|
@@ -569,6 +581,28 @@ exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
|
569
581
|
var DocumentsApiFp = function (configuration) {
|
|
570
582
|
var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
|
|
571
583
|
return {
|
|
584
|
+
/**
|
|
585
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
586
|
+
* @summary Convert document to base64
|
|
587
|
+
* @param {string} code Document code
|
|
588
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
589
|
+
* @param {string} [authorization] Bearer Token
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
595
|
+
var localVarAxiosArgs;
|
|
596
|
+
return __generator(this, function (_a) {
|
|
597
|
+
switch (_a.label) {
|
|
598
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.convertToBase64(code, convertToBase64RequestDto, authorization, options)];
|
|
599
|
+
case 1:
|
|
600
|
+
localVarAxiosArgs = _a.sent();
|
|
601
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
},
|
|
572
606
|
/**
|
|
573
607
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
574
608
|
* @summary Create the document
|
|
@@ -704,7 +738,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
704
738
|
});
|
|
705
739
|
},
|
|
706
740
|
/**
|
|
707
|
-
* This will save an external document in the database and return it.
|
|
741
|
+
* 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\"
|
|
708
742
|
* @summary Save external document
|
|
709
743
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
710
744
|
* @param {string} [authorization] Bearer Token
|
|
@@ -756,6 +790,18 @@ exports.DocumentsApiFp = DocumentsApiFp;
|
|
|
756
790
|
var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
757
791
|
var localVarFp = (0, exports.DocumentsApiFp)(configuration);
|
|
758
792
|
return {
|
|
793
|
+
/**
|
|
794
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
795
|
+
* @summary Convert document to base64
|
|
796
|
+
* @param {string} code Document code
|
|
797
|
+
* @param {ConvertToBase64RequestDto} convertToBase64RequestDto
|
|
798
|
+
* @param {string} [authorization] Bearer Token
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
convertToBase64: function (code, convertToBase64RequestDto, authorization, options) {
|
|
803
|
+
return localVarFp.convertToBase64(code, convertToBase64RequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
804
|
+
},
|
|
759
805
|
/**
|
|
760
806
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
761
807
|
* @summary Create the document
|
|
@@ -831,7 +877,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
831
877
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
832
878
|
},
|
|
833
879
|
/**
|
|
834
|
-
* This will save an external document in the database and return it.
|
|
880
|
+
* 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\"
|
|
835
881
|
* @summary Save external document
|
|
836
882
|
* @param {SaveExternalDocumentRequestDto} saveExternalDocumentRequestDto
|
|
837
883
|
* @param {string} [authorization] Bearer Token
|
|
@@ -867,6 +913,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
867
913
|
function DocumentsApi() {
|
|
868
914
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
869
915
|
}
|
|
916
|
+
/**
|
|
917
|
+
* Converts a document to base64 format with optional gzip compression for Zurich integration **Required Permissions** \"document-management.documents.view\"
|
|
918
|
+
* @summary Convert document to base64
|
|
919
|
+
* @param {DocumentsApiConvertToBase64Request} requestParameters Request parameters.
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
* @memberof DocumentsApi
|
|
923
|
+
*/
|
|
924
|
+
DocumentsApi.prototype.convertToBase64 = function (requestParameters, options) {
|
|
925
|
+
var _this = this;
|
|
926
|
+
return (0, exports.DocumentsApiFp)(this.configuration).convertToBase64(requestParameters.code, requestParameters.convertToBase64RequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
927
|
+
};
|
|
870
928
|
/**
|
|
871
929
|
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3). **Required Permissions** \"document-management.documents.create\"
|
|
872
930
|
* @summary Create the document
|
|
@@ -941,7 +999,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
941
999
|
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); });
|
|
942
1000
|
};
|
|
943
1001
|
/**
|
|
944
|
-
* This will save an external document in the database and return it.
|
|
1002
|
+
* 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\"
|
|
945
1003
|
* @summary Save external document
|
|
946
1004
|
* @param {DocumentsApiSaveExternalDocumentRequest} requestParameters Request parameters.
|
|
947
1005
|
* @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
|
};
|
|
@@ -109,14 +100,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
109
100
|
* @param {*} [options] Override http request option.
|
|
110
101
|
* @throws {RequiredError}
|
|
111
102
|
*/
|
|
112
|
-
deleteDocxTemplate: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
103
|
+
deleteDocxTemplate: function (code, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
107
|
return __generator(this, function (_a) {
|
|
121
108
|
switch (_a.label) {
|
|
122
109
|
case 0:
|
|
@@ -161,14 +148,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
161
148
|
* @param {*} [options] Override http request option.
|
|
162
149
|
* @throws {RequiredError}
|
|
163
150
|
*/
|
|
164
|
-
downloadDocxTemplate: function (
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
args_1[_i - 2] = arguments[_i];
|
|
168
|
-
}
|
|
169
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
151
|
+
downloadDocxTemplate: function (code, authorization, options) {
|
|
152
|
+
if (options === void 0) { options = {}; }
|
|
153
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
170
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
171
|
-
if (options === void 0) { options = {}; }
|
|
172
155
|
return __generator(this, function (_a) {
|
|
173
156
|
switch (_a.label) {
|
|
174
157
|
case 0:
|
|
@@ -213,14 +196,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
213
196
|
* @param {*} [options] Override http request option.
|
|
214
197
|
* @throws {RequiredError}
|
|
215
198
|
*/
|
|
216
|
-
getDocxTemplate: function (
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
args_1[_i - 2] = arguments[_i];
|
|
220
|
-
}
|
|
221
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
199
|
+
getDocxTemplate: function (code, authorization, options) {
|
|
200
|
+
if (options === void 0) { options = {}; }
|
|
201
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
222
202
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
223
|
-
if (options === void 0) { options = {}; }
|
|
224
203
|
return __generator(this, function (_a) {
|
|
225
204
|
switch (_a.label) {
|
|
226
205
|
case 0:
|
|
@@ -271,14 +250,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
271
250
|
* @param {*} [options] Override http request option.
|
|
272
251
|
* @throws {RequiredError}
|
|
273
252
|
*/
|
|
274
|
-
listDocxTemplates: function (
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
args_1[_i - 8] = arguments[_i];
|
|
278
|
-
}
|
|
279
|
-
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) {
|
|
253
|
+
listDocxTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
254
|
+
if (options === void 0) { options = {}; }
|
|
255
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
280
256
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
281
|
-
if (options === void 0) { options = {}; }
|
|
282
257
|
return __generator(this, function (_a) {
|
|
283
258
|
switch (_a.label) {
|
|
284
259
|
case 0:
|
|
@@ -342,14 +317,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
342
317
|
* @param {*} [options] Override http request option.
|
|
343
318
|
* @throws {RequiredError}
|
|
344
319
|
*/
|
|
345
|
-
updateDocxTemplate: function (
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
args_1[_i - 3] = arguments[_i];
|
|
349
|
-
}
|
|
350
|
-
return __awaiter(_this, __spreadArray([code_1, sharedUpdateDocxTemplateRequestDto_1, authorization_1], args_1, true), void 0, function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
320
|
+
updateDocxTemplate: function (code, sharedUpdateDocxTemplateRequestDto, authorization, options) {
|
|
321
|
+
if (options === void 0) { options = {}; }
|
|
322
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
351
323
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
|
-
if (options === void 0) { options = {}; }
|
|
353
324
|
return __generator(this, function (_a) {
|
|
354
325
|
switch (_a.label) {
|
|
355
326
|
case 0:
|
|
@@ -398,14 +369,10 @@ var DocxTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
398
369
|
* @param {*} [options] Override http request option.
|
|
399
370
|
* @throws {RequiredError}
|
|
400
371
|
*/
|
|
401
|
-
uploadDocxTemplate: function (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
args_1[_i - 2] = arguments[_i];
|
|
405
|
-
}
|
|
406
|
-
return __awaiter(_this, __spreadArray([uploadDocxTemplateRequestDto_1, authorization_1], args_1, true), void 0, function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
372
|
+
uploadDocxTemplate: function (uploadDocxTemplateRequestDto, authorization, options) {
|
|
373
|
+
if (options === void 0) { options = {}; }
|
|
374
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
407
375
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
408
|
-
if (options === void 0) { options = {}; }
|
|
409
376
|
return __generator(this, function (_a) {
|
|
410
377
|
switch (_a.label) {
|
|
411
378
|
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
|
};
|
|
@@ -109,14 +100,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
109
100
|
* @param {*} [options] Override http request option.
|
|
110
101
|
* @throws {RequiredError}
|
|
111
102
|
*/
|
|
112
|
-
createLayout: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([createLayoutRequestDto_1, authorization_1], args_1, true), void 0, function (createLayoutRequestDto, authorization, options) {
|
|
103
|
+
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
107
|
return __generator(this, function (_a) {
|
|
121
108
|
switch (_a.label) {
|
|
122
109
|
case 0:
|
|
@@ -162,14 +149,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
162
149
|
* @param {*} [options] Override http request option.
|
|
163
150
|
* @throws {RequiredError}
|
|
164
151
|
*/
|
|
165
|
-
deleteLayout: function (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
args_1[_i - 2] = arguments[_i];
|
|
169
|
-
}
|
|
170
|
-
return __awaiter(_this, __spreadArray([id_1, authorization_1], args_1, true), void 0, function (id, authorization, options) {
|
|
152
|
+
deleteLayout: function (id, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
171
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
-
if (options === void 0) { options = {}; }
|
|
173
156
|
return __generator(this, function (_a) {
|
|
174
157
|
switch (_a.label) {
|
|
175
158
|
case 0:
|
|
@@ -215,14 +198,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
215
198
|
* @param {*} [options] Override http request option.
|
|
216
199
|
* @throws {RequiredError}
|
|
217
200
|
*/
|
|
218
|
-
getLayout: function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args_1[_i - 3] = arguments[_i];
|
|
222
|
-
}
|
|
223
|
-
return __awaiter(_this, __spreadArray([id_1, id2_1, authorization_1], args_1, true), void 0, function (id, id2, authorization, options) {
|
|
201
|
+
getLayout: function (id, id2, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
224
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
-
if (options === void 0) { options = {}; }
|
|
226
205
|
return __generator(this, function (_a) {
|
|
227
206
|
switch (_a.label) {
|
|
228
207
|
case 0:
|
|
@@ -278,14 +257,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
278
257
|
* @param {*} [options] Override http request option.
|
|
279
258
|
* @throws {RequiredError}
|
|
280
259
|
*/
|
|
281
|
-
listLayouts: function (
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
args_1[_i - 8] = arguments[_i];
|
|
285
|
-
}
|
|
286
|
-
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) {
|
|
260
|
+
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
261
|
+
if (options === void 0) { options = {}; }
|
|
262
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
287
263
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
288
|
-
if (options === void 0) { options = {}; }
|
|
289
264
|
return __generator(this, function (_a) {
|
|
290
265
|
switch (_a.label) {
|
|
291
266
|
case 0:
|
|
@@ -349,14 +324,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
349
324
|
* @param {*} [options] Override http request option.
|
|
350
325
|
* @throws {RequiredError}
|
|
351
326
|
*/
|
|
352
|
-
updateLayout: function (
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
args_1[_i - 3] = arguments[_i];
|
|
356
|
-
}
|
|
357
|
-
return __awaiter(_this, __spreadArray([id_1, updateLayoutRequestDto_1, authorization_1], args_1, true), void 0, function (id, updateLayoutRequestDto, authorization, options) {
|
|
327
|
+
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
328
|
+
if (options === void 0) { options = {}; }
|
|
329
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
358
330
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
359
|
-
if (options === void 0) { options = {}; }
|
|
360
331
|
return __generator(this, function (_a) {
|
|
361
332
|
switch (_a.label) {
|
|
362
333
|
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
|