@emilgroup/document-sdk-node 1.1.0 → 1.2.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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +0 -7
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +2 -4
  4. package/api/documents-api.ts +4 -213
  5. package/api/searchable-document-owners-api.ts +18 -18
  6. package/api.ts +0 -2
  7. package/base.ts +4 -4
  8. package/dist/api/document-templates-api.d.ts +3 -4
  9. package/dist/api/documents-api.d.ts +4 -113
  10. package/dist/api/documents-api.js +4 -187
  11. package/dist/api/searchable-document-owners-api.d.ts +15 -15
  12. package/dist/api/searchable-document-owners-api.js +8 -8
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/base.d.ts +1 -1
  16. package/dist/base.js +4 -4
  17. package/dist/models/create-doc-template-request-dto.d.ts +3 -9
  18. package/dist/models/create-document-request-dto.d.ts +0 -12
  19. package/dist/models/create-html-template-dto.d.ts +1 -1
  20. package/dist/models/doc-template-class.d.ts +18 -24
  21. package/dist/models/document-class.d.ts +2 -14
  22. package/dist/models/html-template-class.d.ts +7 -7
  23. package/dist/models/index.d.ts +0 -6
  24. package/dist/models/index.js +0 -6
  25. package/dist/models/layout-class.d.ts +10 -10
  26. package/dist/models/list-searchable-documents-response-class.d.ts +1 -1
  27. package/dist/models/update-doc-template-request-dto.d.ts +6 -12
  28. package/dist/models/update-document-request-dto.d.ts +0 -6
  29. package/models/create-doc-template-request-dto.ts +3 -9
  30. package/models/create-document-request-dto.ts +0 -12
  31. package/models/create-html-template-dto.ts +1 -1
  32. package/models/doc-template-class.ts +18 -24
  33. package/models/document-class.ts +2 -14
  34. package/models/html-template-class.ts +7 -7
  35. package/models/index.ts +0 -6
  36. package/models/layout-class.ts +10 -10
  37. package/models/list-searchable-documents-response-class.ts +1 -1
  38. package/models/update-doc-template-request-dto.ts +6 -12
  39. package/models/update-document-request-dto.ts +0 -6
  40. package/package.json +2 -2
  41. package/api/search-keywords-api.ts +0 -164
  42. package/dist/api/search-keywords-api.d.ts +0 -92
  43. package/dist/api/search-keywords-api.js +0 -225
  44. package/dist/models/create-doc-template-response-class.d.ts +0 -25
  45. package/dist/models/create-doc-template-response-class.js +0 -15
  46. package/dist/models/create-presigned-post-request-dto.d.ts +0 -127
  47. package/dist/models/create-presigned-post-request-dto.js +0 -51
  48. package/dist/models/create-presigned-post-response-class.d.ts +0 -30
  49. package/dist/models/create-presigned-post-response-class.js +0 -15
  50. package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
  51. package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
  52. package/dist/models/list-search-keywords-request-dto.d.ts +0 -24
  53. package/dist/models/list-search-keywords-request-dto.js +0 -15
  54. package/dist/models/list-search-keywords-response-class.d.ts +0 -24
  55. package/dist/models/list-search-keywords-response-class.js +0 -15
  56. package/models/create-doc-template-response-class.ts +0 -31
  57. package/models/create-presigned-post-request-dto.ts +0 -137
  58. package/models/create-presigned-post-response-class.ts +0 -36
  59. package/models/get-signed-s3-key-url-response-class.ts +0 -30
  60. package/models/list-search-keywords-request-dto.ts +0 -30
  61. package/models/list-search-keywords-response-class.ts +0 -30
@@ -13,10 +13,7 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateDocumentRequestDto } from '../models';
16
- import { CreatePresignedPostRequestDto } from '../models';
17
- import { CreatePresignedPostResponseClass } from '../models';
18
16
  import { GetDocumentDownloadUrlResponseClass } from '../models';
19
- import { GetSignedS3KeyUrlResponseClass } from '../models';
20
17
  import { ListDocumentsResponseClass } from '../models';
21
18
  import { UpdateDocumentRequestDto } from '../models';
22
19
  /**
@@ -25,7 +22,7 @@ import { UpdateDocumentRequestDto } from '../models';
25
22
  */
26
23
  export declare const DocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
27
24
  /**
28
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
25
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
29
26
  * @summary Create the document
30
27
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
31
28
  * @param {string} [authorization] Bearer Token
@@ -33,14 +30,6 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
33
30
  * @throws {RequiredError}
34
31
  */
35
32
  createDocument: (createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
- /**
37
- *
38
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
39
- * @param {string} [authorization] Bearer Token
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- createPresignedPost: (createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
33
  /**
45
34
  *
46
35
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -67,15 +56,6 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
67
56
  * @throws {RequiredError}
68
57
  */
69
58
  getDocumentDownloadUrl: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
- /**
71
- * This will return a presigned URL for a random S3 key
72
- * @summary Fetches a presigned URL for a S3 key
73
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
74
- * @param {string} [authorization] Bearer Token
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- getSignedS3keyUrl: (s3Key: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
59
  /**
80
60
  * 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.
81
61
  * @summary List documents
@@ -107,7 +87,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
107
87
  */
108
88
  export declare const DocumentsApiFp: (configuration?: Configuration) => {
109
89
  /**
110
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
90
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
111
91
  * @summary Create the document
112
92
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
113
93
  * @param {string} [authorization] Bearer Token
@@ -115,14 +95,6 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
115
95
  * @throws {RequiredError}
116
96
  */
117
97
  createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
118
- /**
119
- *
120
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
121
- * @param {string} [authorization] Bearer Token
122
- * @param {*} [options] Override http request option.
123
- * @throws {RequiredError}
124
- */
125
- createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
126
98
  /**
127
99
  *
128
100
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -149,15 +121,6 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
149
121
  * @throws {RequiredError}
150
122
  */
151
123
  getDocumentDownloadUrl(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocumentDownloadUrlResponseClass>>;
152
- /**
153
- * This will return a presigned URL for a random S3 key
154
- * @summary Fetches a presigned URL for a S3 key
155
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
156
- * @param {string} [authorization] Bearer Token
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- */
160
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSignedS3KeyUrlResponseClass>>;
161
124
  /**
162
125
  * 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.
163
126
  * @summary List documents
@@ -189,7 +152,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
189
152
  */
190
153
  export declare const DocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
191
154
  /**
192
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
155
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
193
156
  * @summary Create the document
194
157
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
195
158
  * @param {string} [authorization] Bearer Token
@@ -197,14 +160,6 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
197
160
  * @throws {RequiredError}
198
161
  */
199
162
  createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
200
- /**
201
- *
202
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
203
- * @param {string} [authorization] Bearer Token
204
- * @param {*} [options] Override http request option.
205
- * @throws {RequiredError}
206
- */
207
- createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
208
163
  /**
209
164
  *
210
165
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -231,15 +186,6 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
231
186
  * @throws {RequiredError}
232
187
  */
233
188
  getDocumentDownloadUrl(code: string, authorization?: string, options?: any): AxiosPromise<GetDocumentDownloadUrlResponseClass>;
234
- /**
235
- * This will return a presigned URL for a random S3 key
236
- * @summary Fetches a presigned URL for a S3 key
237
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
238
- * @param {string} [authorization] Bearer Token
239
- * @param {*} [options] Override http request option.
240
- * @throws {RequiredError}
241
- */
242
- getSignedS3keyUrl(s3Key: string, authorization?: string, options?: any): AxiosPromise<GetSignedS3KeyUrlResponseClass>;
243
189
  /**
244
190
  * 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.
245
191
  * @summary List documents
@@ -284,25 +230,6 @@ export interface DocumentsApiCreateDocumentRequest {
284
230
  */
285
231
  readonly authorization?: string;
286
232
  }
287
- /**
288
- * Request parameters for createPresignedPost operation in DocumentsApi.
289
- * @export
290
- * @interface DocumentsApiCreatePresignedPostRequest
291
- */
292
- export interface DocumentsApiCreatePresignedPostRequest {
293
- /**
294
- *
295
- * @type {CreatePresignedPostRequestDto}
296
- * @memberof DocumentsApiCreatePresignedPost
297
- */
298
- readonly createPresignedPostRequestDto: CreatePresignedPostRequestDto;
299
- /**
300
- * Bearer Token
301
- * @type {string}
302
- * @memberof DocumentsApiCreatePresignedPost
303
- */
304
- readonly authorization?: string;
305
- }
306
233
  /**
307
234
  * Request parameters for createTemporaryDocument operation in DocumentsApi.
308
235
  * @export
@@ -360,25 +287,6 @@ export interface DocumentsApiGetDocumentDownloadUrlRequest {
360
287
  */
361
288
  readonly authorization?: string;
362
289
  }
363
- /**
364
- * Request parameters for getSignedS3keyUrl operation in DocumentsApi.
365
- * @export
366
- * @interface DocumentsApiGetSignedS3keyUrlRequest
367
- */
368
- export interface DocumentsApiGetSignedS3keyUrlRequest {
369
- /**
370
- * Key for the file in S3 bucket to create the presigned download URL for
371
- * @type {string}
372
- * @memberof DocumentsApiGetSignedS3keyUrl
373
- */
374
- readonly s3Key: string;
375
- /**
376
- * Bearer Token
377
- * @type {string}
378
- * @memberof DocumentsApiGetSignedS3keyUrl
379
- */
380
- readonly authorization?: string;
381
- }
382
290
  /**
383
291
  * Request parameters for listDocuments operation in DocumentsApi.
384
292
  * @export
@@ -461,7 +369,7 @@ export interface DocumentsApiUpdateDocumentRequest {
461
369
  */
462
370
  export declare class DocumentsApi extends BaseAPI {
463
371
  /**
464
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
372
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
465
373
  * @summary Create the document
466
374
  * @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
467
375
  * @param {*} [options] Override http request option.
@@ -469,14 +377,6 @@ export declare class DocumentsApi extends BaseAPI {
469
377
  * @memberof DocumentsApi
470
378
  */
471
379
  createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
472
- /**
473
- *
474
- * @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
475
- * @param {*} [options] Override http request option.
476
- * @throws {RequiredError}
477
- * @memberof DocumentsApi
478
- */
479
- createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
480
380
  /**
481
381
  *
482
382
  * @param {DocumentsApiCreateTemporaryDocumentRequest} requestParameters Request parameters.
@@ -503,15 +403,6 @@ export declare class DocumentsApi extends BaseAPI {
503
403
  * @memberof DocumentsApi
504
404
  */
505
405
  getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocumentDownloadUrlResponseClass, any>>;
506
- /**
507
- * This will return a presigned URL for a random S3 key
508
- * @summary Fetches a presigned URL for a S3 key
509
- * @param {DocumentsApiGetSignedS3keyUrlRequest} requestParameters Request parameters.
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- * @memberof DocumentsApi
513
- */
514
- getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSignedS3KeyUrlResponseClass, any>>;
515
406
  /**
516
407
  * 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.
517
408
  * @summary List documents
@@ -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). Document can then be downloaded with
100
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
101
101
  * @summary Create the document
102
102
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
103
103
  * @param {string} [authorization] Bearer Token
@@ -145,54 +145,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
- /**
149
- *
150
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
151
- * @param {string} [authorization] Bearer Token
152
- * @param {*} [options] Override http request option.
153
- * @throws {RequiredError}
154
- */
155
- createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
156
- if (options === void 0) { options = {}; }
157
- return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
- return __generator(this, function (_a) {
160
- switch (_a.label) {
161
- case 0:
162
- // verify required parameter 'createPresignedPostRequestDto' is not null or undefined
163
- (0, common_1.assertParamExists)('createPresignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
164
- localVarPath = "/documentservice/v1/documents/pre-signed-post";
165
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
166
- if (configuration) {
167
- baseOptions = configuration.baseOptions;
168
- baseAccessToken = configuration.accessToken;
169
- }
170
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
171
- localVarHeaderParameter = {};
172
- localVarQueryParameter = {};
173
- // authentication bearer required
174
- // http bearer authentication required
175
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
- case 1:
177
- // authentication bearer required
178
- // http bearer authentication required
179
- _a.sent();
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
- }
183
- localVarHeaderParameter['Content-Type'] = 'application/json';
184
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
188
- return [2 /*return*/, {
189
- url: (0, common_1.toPathString)(localVarUrlObj),
190
- options: localVarRequestOptions,
191
- }];
192
- }
193
- });
194
- });
195
- },
196
148
  /**
197
149
  *
198
150
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -337,56 +289,6 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
337
289
  });
338
290
  });
339
291
  },
340
- /**
341
- * This will return a presigned URL for a random S3 key
342
- * @summary Fetches a presigned URL for a S3 key
343
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
344
- * @param {string} [authorization] Bearer Token
345
- * @param {*} [options] Override http request option.
346
- * @throws {RequiredError}
347
- */
348
- getSignedS3keyUrl: function (s3Key, authorization, options) {
349
- if (options === void 0) { options = {}; }
350
- return __awaiter(_this, void 0, void 0, function () {
351
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
352
- return __generator(this, function (_a) {
353
- switch (_a.label) {
354
- case 0:
355
- // verify required parameter 's3Key' is not null or undefined
356
- (0, common_1.assertParamExists)('getSignedS3keyUrl', 's3Key', s3Key);
357
- localVarPath = "/documentservice/v1/documents/signed-s3-url";
358
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
359
- if (configuration) {
360
- baseOptions = configuration.baseOptions;
361
- baseAccessToken = configuration.accessToken;
362
- }
363
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
364
- localVarHeaderParameter = {};
365
- localVarQueryParameter = {};
366
- // authentication bearer required
367
- // http bearer authentication required
368
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
369
- case 1:
370
- // authentication bearer required
371
- // http bearer authentication required
372
- _a.sent();
373
- if (s3Key !== undefined) {
374
- localVarQueryParameter['s3Key'] = s3Key;
375
- }
376
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
377
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
378
- }
379
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
- return [2 /*return*/, {
383
- url: (0, common_1.toPathString)(localVarUrlObj),
384
- options: localVarRequestOptions,
385
- }];
386
- }
387
- });
388
- });
389
- },
390
292
  /**
391
293
  * 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.
392
294
  * @summary List documents
@@ -519,7 +421,7 @@ var DocumentsApiFp = function (configuration) {
519
421
  var localVarAxiosParamCreator = (0, exports.DocumentsApiAxiosParamCreator)(configuration);
520
422
  return {
521
423
  /**
522
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
424
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
523
425
  * @summary Create the document
524
426
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
525
427
  * @param {string} [authorization] Bearer Token
@@ -539,26 +441,6 @@ var DocumentsApiFp = function (configuration) {
539
441
  });
540
442
  });
541
443
  },
542
- /**
543
- *
544
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
545
- * @param {string} [authorization] Bearer Token
546
- * @param {*} [options] Override http request option.
547
- * @throws {RequiredError}
548
- */
549
- createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- var localVarAxiosArgs;
552
- return __generator(this, function (_a) {
553
- switch (_a.label) {
554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options)];
555
- case 1:
556
- localVarAxiosArgs = _a.sent();
557
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
- }
559
- });
560
- });
561
- },
562
444
  /**
563
445
  *
564
446
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -621,27 +503,6 @@ var DocumentsApiFp = function (configuration) {
621
503
  });
622
504
  });
623
505
  },
624
- /**
625
- * This will return a presigned URL for a random S3 key
626
- * @summary Fetches a presigned URL for a S3 key
627
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
628
- * @param {string} [authorization] Bearer Token
629
- * @param {*} [options] Override http request option.
630
- * @throws {RequiredError}
631
- */
632
- getSignedS3keyUrl: function (s3Key, authorization, options) {
633
- return __awaiter(this, void 0, void 0, function () {
634
- var localVarAxiosArgs;
635
- return __generator(this, function (_a) {
636
- switch (_a.label) {
637
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, authorization, options)];
638
- case 1:
639
- localVarAxiosArgs = _a.sent();
640
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
641
- }
642
- });
643
- });
644
- },
645
506
  /**
646
507
  * 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.
647
508
  * @summary List documents
@@ -701,7 +562,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
701
562
  var localVarFp = (0, exports.DocumentsApiFp)(configuration);
702
563
  return {
703
564
  /**
704
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
565
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
705
566
  * @summary Create the document
706
567
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
707
568
  * @param {string} [authorization] Bearer Token
@@ -711,16 +572,6 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
711
572
  createDocument: function (createDocumentRequestDto, authorization, options) {
712
573
  return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
713
574
  },
714
- /**
715
- *
716
- * @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
717
- * @param {string} [authorization] Bearer Token
718
- * @param {*} [options] Override http request option.
719
- * @throws {RequiredError}
720
- */
721
- createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
722
- return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
723
- },
724
575
  /**
725
576
  *
726
577
  * @param {CreateDocumentRequestDto} createDocumentRequestDto
@@ -753,17 +604,6 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
753
604
  getDocumentDownloadUrl: function (code, authorization, options) {
754
605
  return localVarFp.getDocumentDownloadUrl(code, authorization, options).then(function (request) { return request(axios, basePath); });
755
606
  },
756
- /**
757
- * This will return a presigned URL for a random S3 key
758
- * @summary Fetches a presigned URL for a S3 key
759
- * @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
760
- * @param {string} [authorization] Bearer Token
761
- * @param {*} [options] Override http request option.
762
- * @throws {RequiredError}
763
- */
764
- getSignedS3keyUrl: function (s3Key, authorization, options) {
765
- return localVarFp.getSignedS3keyUrl(s3Key, authorization, options).then(function (request) { return request(axios, basePath); });
766
- },
767
607
  /**
768
608
  * 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.
769
609
  * @summary List documents
@@ -807,7 +647,7 @@ var DocumentsApi = /** @class */ (function (_super) {
807
647
  return _super !== null && _super.apply(this, arguments) || this;
808
648
  }
809
649
  /**
810
- * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
650
+ * This will create a document in database and upload the file to Amazon Simple Storage Service (S3). Document can then be downloaded with
811
651
  * @summary Create the document
812
652
  * @param {DocumentsApiCreateDocumentRequest} requestParameters Request parameters.
813
653
  * @param {*} [options] Override http request option.
@@ -818,17 +658,6 @@ var DocumentsApi = /** @class */ (function (_super) {
818
658
  var _this = this;
819
659
  return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
820
660
  };
821
- /**
822
- *
823
- * @param {DocumentsApiCreatePresignedPostRequest} requestParameters Request parameters.
824
- * @param {*} [options] Override http request option.
825
- * @throws {RequiredError}
826
- * @memberof DocumentsApi
827
- */
828
- DocumentsApi.prototype.createPresignedPost = function (requestParameters, options) {
829
- var _this = this;
830
- return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
831
- };
832
661
  /**
833
662
  *
834
663
  * @param {DocumentsApiCreateTemporaryDocumentRequest} requestParameters Request parameters.
@@ -864,18 +693,6 @@ var DocumentsApi = /** @class */ (function (_super) {
864
693
  var _this = this;
865
694
  return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
866
695
  };
867
- /**
868
- * This will return a presigned URL for a random S3 key
869
- * @summary Fetches a presigned URL for a S3 key
870
- * @param {DocumentsApiGetSignedS3keyUrlRequest} requestParameters Request parameters.
871
- * @param {*} [options] Override http request option.
872
- * @throws {RequiredError}
873
- * @memberof DocumentsApi
874
- */
875
- DocumentsApi.prototype.getSignedS3keyUrl = function (requestParameters, options) {
876
- var _this = this;
877
- return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
878
- };
879
696
  /**
880
697
  * 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.
881
698
  * @summary List documents
@@ -30,7 +30,7 @@ export declare const SearchableDocumentOwnersApiAxiosParamCreator: (configuratio
30
30
  * @param {*} [options] Override http request option.
31
31
  * @throws {RequiredError}
32
32
  */
33
- listSearchableDocumentOwners: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ listSearchableDocuments: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
34
  };
35
35
  /**
36
36
  * SearchableDocumentOwnersApi - functional programming interface
@@ -49,7 +49,7 @@ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configurati
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
51
51
  */
52
- listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
52
+ listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
53
53
  };
54
54
  /**
55
55
  * SearchableDocumentOwnersApi - factory interface
@@ -68,54 +68,54 @@ export declare const SearchableDocumentOwnersApiFactory: (configuration?: Config
68
68
  * @param {*} [options] Override http request option.
69
69
  * @throws {RequiredError}
70
70
  */
71
- listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
71
+ listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
72
72
  };
73
73
  /**
74
- * Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
74
+ * Request parameters for listSearchableDocuments operation in SearchableDocumentOwnersApi.
75
75
  * @export
76
- * @interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
76
+ * @interface SearchableDocumentOwnersApiListSearchableDocumentsRequest
77
77
  */
78
- export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest {
78
+ export interface SearchableDocumentOwnersApiListSearchableDocumentsRequest {
79
79
  /**
80
80
  * Bearer Token
81
81
  * @type {string}
82
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
82
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
83
83
  */
84
84
  readonly authorization?: string;
85
85
  /**
86
86
  * Page size
87
87
  * @type {number}
88
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
88
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
89
89
  */
90
90
  readonly pageSize?: number;
91
91
  /**
92
92
  * Page token
93
93
  * @type {string}
94
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
94
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
95
95
  */
96
96
  readonly pageToken?: string;
97
97
  /**
98
98
  * List filter
99
99
  * @type {string}
100
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
100
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
101
101
  */
102
102
  readonly filter?: string;
103
103
  /**
104
104
  * Search query
105
105
  * @type {string}
106
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
106
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
107
107
  */
108
108
  readonly search?: string;
109
109
  /**
110
110
  * Ordering criteria
111
111
  * @type {string}
112
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
112
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
113
113
  */
114
114
  readonly order?: string;
115
115
  /**
116
116
  * Extra fields to fetch
117
117
  * @type {string}
118
- * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
118
+ * @memberof SearchableDocumentOwnersApiListSearchableDocuments
119
119
  */
120
120
  readonly expand?: string;
121
121
  }
@@ -128,10 +128,10 @@ export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
128
128
  export declare class SearchableDocumentOwnersApi extends BaseAPI {
129
129
  /**
130
130
  *
131
- * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
131
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentsRequest} requestParameters Request parameters.
132
132
  * @param {*} [options] Override http request option.
133
133
  * @throws {RequiredError}
134
134
  * @memberof SearchableDocumentOwnersApi
135
135
  */
136
- listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
136
+ listSearchableDocuments(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
137
137
  }
@@ -108,7 +108,7 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
111
- listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
111
+ listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
112
112
  if (options === void 0) { options = {}; }
113
113
  return __awaiter(_this, void 0, void 0, function () {
114
114
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -185,12 +185,12 @@ var SearchableDocumentOwnersApiFp = function (configuration) {
185
185
  * @param {*} [options] Override http request option.
186
186
  * @throws {RequiredError}
187
187
  */
188
- listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
188
+ listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
189
189
  return __awaiter(this, void 0, void 0, function () {
190
190
  var localVarAxiosArgs;
191
191
  return __generator(this, function (_a) {
192
192
  switch (_a.label) {
193
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
193
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
194
194
  case 1:
195
195
  localVarAxiosArgs = _a.sent();
196
196
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -220,8 +220,8 @@ var SearchableDocumentOwnersApiFactory = function (configuration, basePath, axio
220
220
  * @param {*} [options] Override http request option.
221
221
  * @throws {RequiredError}
222
222
  */
223
- listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
224
- return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
223
+ listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
224
+ return localVarFp.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
225
225
  },
226
226
  };
227
227
  };
@@ -239,15 +239,15 @@ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
239
239
  }
240
240
  /**
241
241
  *
242
- * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
242
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentsRequest} requestParameters Request parameters.
243
243
  * @param {*} [options] Override http request option.
244
244
  * @throws {RequiredError}
245
245
  * @memberof SearchableDocumentOwnersApi
246
246
  */
247
- SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
247
+ SearchableDocumentOwnersApi.prototype.listSearchableDocuments = function (requestParameters, options) {
248
248
  var _this = this;
249
249
  if (requestParameters === void 0) { requestParameters = {}; }
250
- return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
250
+ return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
251
251
  };
252
252
  return SearchableDocumentOwnersApi;
253
253
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -12,6 +12,5 @@
12
12
  export * from './api/document-templates-api';
13
13
  export * from './api/documents-api';
14
14
  export * from './api/layouts-api';
15
- export * from './api/search-keywords-api';
16
15
  export * from './api/searchable-document-owners-api';
17
16
  export * from './api/searchable-documents-api';