@emilgroup/document-sdk-node 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +21 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +88 -94
- package/api/documents-api.ts +152 -34
- package/api/layouts-api.ts +52 -28
- package/api/product-documents-api.ts +599 -0
- package/api/search-keywords-api.ts +168 -0
- package/api/searchable-document-owners-api.ts +26 -22
- package/api/searchable-documents-api.ts +16 -12
- package/api.ts +4 -0
- package/dist/api/document-templates-api.d.ts +82 -78
- package/dist/api/document-templates-api.js +73 -67
- package/dist/api/documents-api.d.ts +93 -29
- package/dist/api/documents-api.js +121 -23
- package/dist/api/layouts-api.d.ts +52 -30
- package/dist/api/layouts-api.js +43 -23
- package/dist/api/product-documents-api.d.ts +345 -0
- package/dist/api/product-documents-api.js +558 -0
- package/dist/api/search-keywords-api.d.ts +96 -0
- package/dist/api/search-keywords-api.js +229 -0
- package/dist/api/searchable-document-owners-api.d.ts +23 -19
- package/dist/api/searchable-document-owners-api.js +16 -12
- package/dist/api/searchable-documents-api.d.ts +16 -12
- package/dist/api/searchable-documents-api.js +14 -10
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/models/create-doc-template-request-dto.d.ts +10 -4
- package/dist/models/create-doc-template-response-class.d.ts +25 -0
- package/dist/models/create-doc-template-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +21 -8
- package/dist/models/create-document-request-dto.js +2 -1
- package/dist/models/create-document-sync-response-class.d.ts +25 -0
- package/dist/models/create-document-sync-response-class.js +15 -0
- package/dist/models/create-html-template-dto.d.ts +1 -1
- package/dist/models/create-layout-request-dto.d.ts +10 -10
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
- package/dist/models/create-presigned-post-request-dto.js +52 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +1 -1
- package/dist/models/delete-product-document-request-dto.d.ts +30 -0
- package/dist/models/delete-product-document-request-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +1 -1
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/doc-template-class.d.ts +25 -19
- package/dist/models/document-class.d.ts +21 -8
- package/dist/models/document-class.js +2 -1
- package/dist/models/download-document-request-dto.d.ts +2 -2
- package/dist/models/get-doc-template-request-dto.d.ts +1 -1
- package/dist/models/get-doc-template-response-class.d.ts +1 -1
- package/dist/models/get-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-layout-request-dto.d.ts +1 -1
- package/dist/models/get-product-document-response-class.d.ts +25 -0
- package/dist/models/get-product-document-response-class.js +15 -0
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
- package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +7 -7
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/models/layout-class.d.ts +11 -11
- package/dist/models/list-doc-template-request-dto.d.ts +48 -0
- package/dist/models/list-doc-template-request-dto.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-layouts-response-class.d.ts +1 -1
- package/dist/models/list-product-documents-response-class.d.ts +31 -0
- package/dist/models/list-product-documents-response-class.js +15 -0
- package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
- package/dist/models/list-search-keywords-request-dto.js +15 -0
- package/dist/models/list-search-keywords-response-class.d.ts +24 -0
- package/dist/models/list-search-keywords-response-class.js +15 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
- package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
- package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
- package/dist/models/product-document-class.d.ts +99 -0
- package/dist/models/product-document-class.js +36 -0
- package/dist/models/searchable-document-class.d.ts +66 -0
- package/dist/models/searchable-document-class.js +15 -0
- package/dist/models/searchable-document-owner-class.d.ts +30 -0
- package/dist/models/searchable-document-owner-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +16 -10
- package/dist/models/update-doc-template-response-class.d.ts +1 -1
- package/dist/models/update-document-request-dto.d.ts +10 -4
- package/dist/models/update-document-response-class.d.ts +25 -0
- package/dist/models/update-document-response-class.js +15 -0
- package/dist/models/update-html-template-dto.d.ts +42 -0
- package/dist/models/update-html-template-dto.js +21 -0
- package/dist/models/update-layout-request-dto.d.ts +15 -15
- package/dist/models/update-layout-response-class.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +63 -0
- package/dist/models/upload-product-document-request-dto.js +24 -0
- package/models/create-doc-template-request-dto.ts +10 -4
- package/models/create-doc-template-response-class.ts +31 -0
- package/models/create-document-request-dto.ts +22 -9
- package/models/create-document-sync-response-class.ts +31 -0
- package/models/create-html-template-dto.ts +1 -1
- package/models/create-layout-request-dto.ts +10 -10
- package/models/create-layout-response-class.ts +31 -0
- package/models/create-presigned-post-request-dto.ts +138 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-layout-request-dto.ts +1 -1
- package/models/delete-product-document-request-dto.ts +36 -0
- package/models/delete-request-dto.ts +1 -1
- package/models/delete-response-class.ts +30 -0
- package/models/doc-template-class.ts +25 -19
- package/models/document-class.ts +22 -9
- package/models/download-document-request-dto.ts +2 -2
- package/models/get-doc-template-request-dto.ts +1 -1
- package/models/get-doc-template-response-class.ts +1 -1
- package/models/get-document-download-url-response-class.ts +1 -1
- package/models/get-layout-request-dto.ts +1 -1
- package/models/get-product-document-response-class.ts +31 -0
- package/models/get-signed-s3-key-url-response-class.ts +30 -0
- package/models/html-template-class.ts +7 -7
- package/models/index.ts +19 -0
- package/models/layout-class.ts +11 -11
- package/models/list-doc-template-request-dto.ts +54 -0
- package/models/list-doc-templates-response-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-layouts-response-class.ts +1 -1
- package/models/list-product-documents-response-class.ts +37 -0
- package/models/list-search-keywords-request-dto.ts +30 -0
- package/models/list-search-keywords-response-class.ts +30 -0
- package/models/list-searchable-document-owners-response-class.ts +3 -2
- package/models/list-searchable-documents-request-dto.ts +2 -2
- package/models/list-searchable-documents-response-class.ts +5 -4
- package/models/product-document-class.ts +108 -0
- package/models/searchable-document-class.ts +72 -0
- package/models/searchable-document-owner-class.ts +36 -0
- package/models/update-doc-template-request-dto.ts +16 -10
- package/models/update-doc-template-response-class.ts +1 -1
- package/models/update-document-request-dto.ts +10 -4
- package/models/update-document-response-class.ts +31 -0
- package/models/update-html-template-dto.ts +51 -0
- package/models/update-layout-request-dto.ts +15 -15
- package/models/update-layout-response-class.ts +1 -1
- package/models/upload-product-document-request-dto.ts +72 -0
- package/package.json +2 -2
|
@@ -97,7 +97,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
100
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
101
101
|
* @summary Create the document
|
|
102
102
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
@@ -146,22 +146,23 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @
|
|
149
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
150
|
+
* @summary Upload documents using pre-signed URL
|
|
151
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
151
152
|
* @param {string} [authorization] Bearer Token
|
|
152
153
|
* @param {*} [options] Override http request option.
|
|
153
154
|
* @throws {RequiredError}
|
|
154
155
|
*/
|
|
155
|
-
|
|
156
|
+
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
156
157
|
if (options === void 0) { options = {}; }
|
|
157
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
160
|
return __generator(this, function (_a) {
|
|
160
161
|
switch (_a.label) {
|
|
161
162
|
case 0:
|
|
162
|
-
// verify required parameter '
|
|
163
|
-
(0, common_1.assertParamExists)('
|
|
164
|
-
localVarPath = "/documentservice/v1/documents/
|
|
163
|
+
// verify required parameter 'createPresignedPostRequestDto' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('createPresignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
|
|
165
|
+
localVarPath = "/documentservice/v1/documents/pre-signed-post";
|
|
165
166
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
166
167
|
if (configuration) {
|
|
167
168
|
baseOptions = configuration.baseOptions;
|
|
@@ -184,7 +185,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
184
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
|
|
188
189
|
return [2 /*return*/, {
|
|
189
190
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
191
|
options: localVarRequestOptions,
|
|
@@ -289,6 +290,56 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
289
290
|
});
|
|
290
291
|
});
|
|
291
292
|
},
|
|
293
|
+
/**
|
|
294
|
+
* This will return a presigned URL for a random S3 key
|
|
295
|
+
* @summary Fetches a presigned URL for a S3 key
|
|
296
|
+
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
297
|
+
* @param {string} [authorization] Bearer Token
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
getSignedS3keyUrl: function (s3Key, authorization, options) {
|
|
302
|
+
if (options === void 0) { options = {}; }
|
|
303
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
304
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0:
|
|
308
|
+
// verify required parameter 's3Key' is not null or undefined
|
|
309
|
+
(0, common_1.assertParamExists)('getSignedS3keyUrl', 's3Key', s3Key);
|
|
310
|
+
localVarPath = "/documentservice/v1/documents/signed-s3-url";
|
|
311
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
baseAccessToken = configuration.accessToken;
|
|
315
|
+
}
|
|
316
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
317
|
+
localVarHeaderParameter = {};
|
|
318
|
+
localVarQueryParameter = {};
|
|
319
|
+
// authentication bearer required
|
|
320
|
+
// http bearer authentication required
|
|
321
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
322
|
+
case 1:
|
|
323
|
+
// authentication bearer required
|
|
324
|
+
// http bearer authentication required
|
|
325
|
+
_a.sent();
|
|
326
|
+
if (s3Key !== undefined) {
|
|
327
|
+
localVarQueryParameter['s3Key'] = s3Key;
|
|
328
|
+
}
|
|
329
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
330
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
331
|
+
}
|
|
332
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
333
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
334
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
335
|
+
return [2 /*return*/, {
|
|
336
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
337
|
+
options: localVarRequestOptions,
|
|
338
|
+
}];
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
},
|
|
292
343
|
/**
|
|
293
344
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
294
345
|
* @summary List documents
|
|
@@ -421,7 +472,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
421
472
|
var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
|
|
422
473
|
return {
|
|
423
474
|
/**
|
|
424
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
475
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
425
476
|
* @summary Create the document
|
|
426
477
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
427
478
|
* @param {string} [authorization] Bearer Token
|
|
@@ -442,18 +493,19 @@ var DocumentsApiFp = function (configuration) {
|
|
|
442
493
|
});
|
|
443
494
|
},
|
|
444
495
|
/**
|
|
445
|
-
*
|
|
446
|
-
* @
|
|
496
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
497
|
+
* @summary Upload documents using pre-signed URL
|
|
498
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
447
499
|
* @param {string} [authorization] Bearer Token
|
|
448
500
|
* @param {*} [options] Override http request option.
|
|
449
501
|
* @throws {RequiredError}
|
|
450
502
|
*/
|
|
451
|
-
|
|
503
|
+
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
452
504
|
return __awaiter(this, void 0, void 0, function () {
|
|
453
505
|
var localVarAxiosArgs;
|
|
454
506
|
return __generator(this, function (_a) {
|
|
455
507
|
switch (_a.label) {
|
|
456
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options)];
|
|
457
509
|
case 1:
|
|
458
510
|
localVarAxiosArgs = _a.sent();
|
|
459
511
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -503,6 +555,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
503
555
|
});
|
|
504
556
|
});
|
|
505
557
|
},
|
|
558
|
+
/**
|
|
559
|
+
* This will return a presigned URL for a random S3 key
|
|
560
|
+
* @summary Fetches a presigned URL for a S3 key
|
|
561
|
+
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
562
|
+
* @param {string} [authorization] Bearer Token
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
getSignedS3keyUrl: function (s3Key, authorization, options) {
|
|
567
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
568
|
+
var localVarAxiosArgs;
|
|
569
|
+
return __generator(this, function (_a) {
|
|
570
|
+
switch (_a.label) {
|
|
571
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options)];
|
|
572
|
+
case 1:
|
|
573
|
+
localVarAxiosArgs = _a.sent();
|
|
574
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
},
|
|
506
579
|
/**
|
|
507
580
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
508
581
|
* @summary List documents
|
|
@@ -562,7 +635,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
562
635
|
var localVarFp = (0, exports.DocumentsApiFp)(configuration);
|
|
563
636
|
return {
|
|
564
637
|
/**
|
|
565
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
638
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
566
639
|
* @summary Create the document
|
|
567
640
|
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
568
641
|
* @param {string} [authorization] Bearer Token
|
|
@@ -573,14 +646,15 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
573
646
|
return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
574
647
|
},
|
|
575
648
|
/**
|
|
576
|
-
*
|
|
577
|
-
* @
|
|
649
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
650
|
+
* @summary Upload documents using pre-signed URL
|
|
651
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
578
652
|
* @param {string} [authorization] Bearer Token
|
|
579
653
|
* @param {*} [options] Override http request option.
|
|
580
654
|
* @throws {RequiredError}
|
|
581
655
|
*/
|
|
582
|
-
|
|
583
|
-
return localVarFp.
|
|
656
|
+
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
657
|
+
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
584
658
|
},
|
|
585
659
|
/**
|
|
586
660
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
|
|
@@ -604,6 +678,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
604
678
|
getDocumentDownloadUrl: function (code, authorization, options) {
|
|
605
679
|
return localVarFp.getDocumentDownloadUrl(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
606
680
|
},
|
|
681
|
+
/**
|
|
682
|
+
* This will return a presigned URL for a random S3 key
|
|
683
|
+
* @summary Fetches a presigned URL for a S3 key
|
|
684
|
+
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
685
|
+
* @param {string} [authorization] Bearer Token
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
getSignedS3keyUrl: function (s3Key, authorization, options) {
|
|
690
|
+
return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
691
|
+
},
|
|
607
692
|
/**
|
|
608
693
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
609
694
|
* @summary List documents
|
|
@@ -647,7 +732,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
647
732
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
648
733
|
}
|
|
649
734
|
/**
|
|
650
|
-
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
735
|
+
* This will create a document in database and upload the file to Amazon Simple Storage Service (S3).
|
|
651
736
|
* @summary Create the document
|
|
652
737
|
* @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
|
|
653
738
|
* @param {*} [options] Override http request option.
|
|
@@ -659,15 +744,16 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
659
744
|
return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
660
745
|
};
|
|
661
746
|
/**
|
|
662
|
-
*
|
|
663
|
-
* @
|
|
747
|
+
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days.
|
|
748
|
+
* @summary Upload documents using pre-signed URL
|
|
749
|
+
* @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
|
|
664
750
|
* @param {*} [options] Override http request option.
|
|
665
751
|
* @throws {RequiredError}
|
|
666
752
|
* @memberof DocumentsApi
|
|
667
753
|
*/
|
|
668
|
-
DocumentsApi.prototype.
|
|
754
|
+
DocumentsApi.prototype.createPresignedPost = function (requestParameters, options) {
|
|
669
755
|
var _this = this;
|
|
670
|
-
return (0, exports.DocumentsApiFp)(this.configuration).
|
|
756
|
+
return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
671
757
|
};
|
|
672
758
|
/**
|
|
673
759
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it.
|
|
@@ -693,6 +779,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
693
779
|
var _this = this;
|
|
694
780
|
return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
695
781
|
};
|
|
782
|
+
/**
|
|
783
|
+
* This will return a presigned URL for a random S3 key
|
|
784
|
+
* @summary Fetches a presigned URL for a S3 key
|
|
785
|
+
* @param {DocumentsApiGetSignedS3keyUrlRequest} requestParameters Request parameters.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
* @memberof DocumentsApi
|
|
789
|
+
*/
|
|
790
|
+
DocumentsApi.prototype.getSignedS3keyUrl = function (requestParameters, options) {
|
|
791
|
+
var _this = this;
|
|
792
|
+
return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
793
|
+
};
|
|
696
794
|
/**
|
|
697
795
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
698
796
|
* @summary List documents
|
|
@@ -13,6 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateLayoutRequestDto } from '../models';
|
|
16
|
+
import { CreateLayoutResponseClass } from '../models';
|
|
17
|
+
import { DeleteResponseClass } from '../models';
|
|
16
18
|
import { GetLayoutResponseClass } from '../models';
|
|
17
19
|
import { ListLayoutsResponseClass } from '../models';
|
|
18
20
|
import { UpdateLayoutRequestDto } from '../models';
|
|
@@ -23,7 +25,8 @@ import { UpdateLayoutResponseClass } from '../models';
|
|
|
23
25
|
*/
|
|
24
26
|
export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* This will create a layout.
|
|
29
|
+
* @summary Create the layout
|
|
27
30
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
28
31
|
* @param {string} [authorization] Bearer Token
|
|
29
32
|
* @param {*} [options] Override http request option.
|
|
@@ -31,7 +34,8 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
31
34
|
*/
|
|
32
35
|
createLayout: (createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
38
|
+
* @summary Delete the layout
|
|
35
39
|
* @param {number} id
|
|
36
40
|
* @param {string} [authorization] Bearer Token
|
|
37
41
|
* @param {*} [options] Override http request option.
|
|
@@ -39,16 +43,18 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
39
43
|
*/
|
|
40
44
|
deleteLayout: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
46
|
+
* 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.
|
|
47
|
+
* @summary Retrieve the layout
|
|
43
48
|
* @param {string} id
|
|
44
|
-
* @param {number} id2
|
|
49
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
45
50
|
* @param {string} [authorization] Bearer Token
|
|
46
51
|
* @param {*} [options] Override http request option.
|
|
47
52
|
* @throws {RequiredError}
|
|
48
53
|
*/
|
|
49
54
|
getLayout: (id: string, id2: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
55
|
/**
|
|
51
|
-
*
|
|
56
|
+
* 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.
|
|
57
|
+
* @summary List layouts
|
|
52
58
|
* @param {string} [authorization] Bearer Token
|
|
53
59
|
* @param {number} [pageSize] Page size
|
|
54
60
|
* @param {string} [pageToken] Page token
|
|
@@ -61,7 +67,8 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
61
67
|
*/
|
|
62
68
|
listLayouts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
69
|
/**
|
|
64
|
-
*
|
|
70
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
71
|
+
* @summary Update the layout
|
|
65
72
|
* @param {number} id
|
|
66
73
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
67
74
|
* @param {string} [authorization] Bearer Token
|
|
@@ -76,32 +83,36 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
76
83
|
*/
|
|
77
84
|
export declare const LayoutsApiFp: (configuration?: Configuration) => {
|
|
78
85
|
/**
|
|
79
|
-
*
|
|
86
|
+
* This will create a layout.
|
|
87
|
+
* @summary Create the layout
|
|
80
88
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
81
89
|
* @param {string} [authorization] Bearer Token
|
|
82
90
|
* @param {*} [options] Override http request option.
|
|
83
91
|
* @throws {RequiredError}
|
|
84
92
|
*/
|
|
85
|
-
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
93
|
+
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLayoutResponseClass>>;
|
|
86
94
|
/**
|
|
87
|
-
*
|
|
95
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
96
|
+
* @summary Delete the layout
|
|
88
97
|
* @param {number} id
|
|
89
98
|
* @param {string} [authorization] Bearer Token
|
|
90
99
|
* @param {*} [options] Override http request option.
|
|
91
100
|
* @throws {RequiredError}
|
|
92
101
|
*/
|
|
93
|
-
deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
102
|
+
deleteLayout(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
94
103
|
/**
|
|
95
|
-
*
|
|
104
|
+
* 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.
|
|
105
|
+
* @summary Retrieve the layout
|
|
96
106
|
* @param {string} id
|
|
97
|
-
* @param {number} id2
|
|
107
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
98
108
|
* @param {string} [authorization] Bearer Token
|
|
99
109
|
* @param {*} [options] Override http request option.
|
|
100
110
|
* @throws {RequiredError}
|
|
101
111
|
*/
|
|
102
112
|
getLayout(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLayoutResponseClass>>;
|
|
103
113
|
/**
|
|
104
|
-
*
|
|
114
|
+
* 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.
|
|
115
|
+
* @summary List layouts
|
|
105
116
|
* @param {string} [authorization] Bearer Token
|
|
106
117
|
* @param {number} [pageSize] Page size
|
|
107
118
|
* @param {string} [pageToken] Page token
|
|
@@ -114,7 +125,8 @@ export declare const LayoutsApiFp: (configuration?: Configuration) => {
|
|
|
114
125
|
*/
|
|
115
126
|
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>>;
|
|
116
127
|
/**
|
|
117
|
-
*
|
|
128
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
129
|
+
* @summary Update the layout
|
|
118
130
|
* @param {number} id
|
|
119
131
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
120
132
|
* @param {string} [authorization] Bearer Token
|
|
@@ -129,32 +141,36 @@ export declare const LayoutsApiFp: (configuration?: Configuration) => {
|
|
|
129
141
|
*/
|
|
130
142
|
export declare const LayoutsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
131
143
|
/**
|
|
132
|
-
*
|
|
144
|
+
* This will create a layout.
|
|
145
|
+
* @summary Create the layout
|
|
133
146
|
* @param {CreateLayoutRequestDto} createLayoutRequestDto
|
|
134
147
|
* @param {string} [authorization] Bearer Token
|
|
135
148
|
* @param {*} [options] Override http request option.
|
|
136
149
|
* @throws {RequiredError}
|
|
137
150
|
*/
|
|
138
|
-
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
151
|
+
createLayout(createLayoutRequestDto: CreateLayoutRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLayoutResponseClass>;
|
|
139
152
|
/**
|
|
140
|
-
*
|
|
153
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
154
|
+
* @summary Delete the layout
|
|
141
155
|
* @param {number} id
|
|
142
156
|
* @param {string} [authorization] Bearer Token
|
|
143
157
|
* @param {*} [options] Override http request option.
|
|
144
158
|
* @throws {RequiredError}
|
|
145
159
|
*/
|
|
146
|
-
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<
|
|
160
|
+
deleteLayout(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
147
161
|
/**
|
|
148
|
-
*
|
|
162
|
+
* 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.
|
|
163
|
+
* @summary Retrieve the layout
|
|
149
164
|
* @param {string} id
|
|
150
|
-
* @param {number} id2
|
|
165
|
+
* @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
151
166
|
* @param {string} [authorization] Bearer Token
|
|
152
167
|
* @param {*} [options] Override http request option.
|
|
153
168
|
* @throws {RequiredError}
|
|
154
169
|
*/
|
|
155
170
|
getLayout(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetLayoutResponseClass>;
|
|
156
171
|
/**
|
|
157
|
-
*
|
|
172
|
+
* 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.
|
|
173
|
+
* @summary List layouts
|
|
158
174
|
* @param {string} [authorization] Bearer Token
|
|
159
175
|
* @param {number} [pageSize] Page size
|
|
160
176
|
* @param {string} [pageToken] Page token
|
|
@@ -167,7 +183,8 @@ export declare const LayoutsApiFactory: (configuration?: Configuration, basePath
|
|
|
167
183
|
*/
|
|
168
184
|
listLayouts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListLayoutsResponseClass>;
|
|
169
185
|
/**
|
|
170
|
-
*
|
|
186
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
187
|
+
* @summary Update the layout
|
|
171
188
|
* @param {number} id
|
|
172
189
|
* @param {UpdateLayoutRequestDto} updateLayoutRequestDto
|
|
173
190
|
* @param {string} [authorization] Bearer Token
|
|
@@ -227,7 +244,7 @@ export interface LayoutsApiGetLayoutRequest {
|
|
|
227
244
|
*/
|
|
228
245
|
readonly id: string;
|
|
229
246
|
/**
|
|
230
|
-
*
|
|
247
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
231
248
|
* @type {number}
|
|
232
249
|
* @memberof LayoutsApiGetLayout
|
|
233
250
|
*/
|
|
@@ -321,23 +338,26 @@ export interface LayoutsApiUpdateLayoutRequest {
|
|
|
321
338
|
*/
|
|
322
339
|
export declare class LayoutsApi extends BaseAPI {
|
|
323
340
|
/**
|
|
324
|
-
*
|
|
341
|
+
* This will create a layout.
|
|
342
|
+
* @summary Create the layout
|
|
325
343
|
* @param {LayoutsApiCreateLayoutRequest} requestParameters Request parameters.
|
|
326
344
|
* @param {*} [options] Override http request option.
|
|
327
345
|
* @throws {RequiredError}
|
|
328
346
|
* @memberof LayoutsApi
|
|
329
347
|
*/
|
|
330
|
-
createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
348
|
+
createLayout(requestParameters: LayoutsApiCreateLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLayoutResponseClass, any>>;
|
|
331
349
|
/**
|
|
332
|
-
*
|
|
350
|
+
* Permanently deletes the layout. Supply the unique code that was returned when you created the layout and this will delete it.
|
|
351
|
+
* @summary Delete the layout
|
|
333
352
|
* @param {LayoutsApiDeleteLayoutRequest} requestParameters Request parameters.
|
|
334
353
|
* @param {*} [options] Override http request option.
|
|
335
354
|
* @throws {RequiredError}
|
|
336
355
|
* @memberof LayoutsApi
|
|
337
356
|
*/
|
|
338
|
-
deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
357
|
+
deleteLayout(requestParameters: LayoutsApiDeleteLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
339
358
|
/**
|
|
340
|
-
*
|
|
359
|
+
* 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.
|
|
360
|
+
* @summary Retrieve the layout
|
|
341
361
|
* @param {LayoutsApiGetLayoutRequest} requestParameters Request parameters.
|
|
342
362
|
* @param {*} [options] Override http request option.
|
|
343
363
|
* @throws {RequiredError}
|
|
@@ -345,7 +365,8 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
345
365
|
*/
|
|
346
366
|
getLayout(requestParameters: LayoutsApiGetLayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLayoutResponseClass, any>>;
|
|
347
367
|
/**
|
|
348
|
-
*
|
|
368
|
+
* 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.
|
|
369
|
+
* @summary List layouts
|
|
349
370
|
* @param {LayoutsApiListLayoutsRequest} requestParameters Request parameters.
|
|
350
371
|
* @param {*} [options] Override http request option.
|
|
351
372
|
* @throws {RequiredError}
|
|
@@ -353,7 +374,8 @@ export declare class LayoutsApi extends BaseAPI {
|
|
|
353
374
|
*/
|
|
354
375
|
listLayouts(requestParameters?: LayoutsApiListLayoutsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLayoutsResponseClass, any>>;
|
|
355
376
|
/**
|
|
356
|
-
*
|
|
377
|
+
* Updates the specified layout by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
378
|
+
* @summary Update the layout
|
|
357
379
|
* @param {LayoutsApiUpdateLayoutRequest} requestParameters Request parameters.
|
|
358
380
|
* @param {*} [options] Override http request option.
|
|
359
381
|
* @throws {RequiredError}
|