@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.
- package/.openapi-generator/FILES +0 -7
- package/README.md +2 -2
- package/api/document-templates-api.ts +2 -4
- package/api/documents-api.ts +4 -213
- package/api/searchable-document-owners-api.ts +18 -18
- package/api.ts +0 -2
- package/base.ts +4 -4
- package/dist/api/document-templates-api.d.ts +3 -4
- package/dist/api/documents-api.d.ts +4 -113
- package/dist/api/documents-api.js +4 -187
- package/dist/api/searchable-document-owners-api.d.ts +15 -15
- package/dist/api/searchable-document-owners-api.js +8 -8
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +4 -4
- package/dist/models/create-doc-template-request-dto.d.ts +3 -9
- package/dist/models/create-document-request-dto.d.ts +0 -12
- package/dist/models/create-html-template-dto.d.ts +1 -1
- package/dist/models/doc-template-class.d.ts +18 -24
- package/dist/models/document-class.d.ts +2 -14
- package/dist/models/html-template-class.d.ts +7 -7
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/layout-class.d.ts +10 -10
- package/dist/models/list-searchable-documents-response-class.d.ts +1 -1
- package/dist/models/update-doc-template-request-dto.d.ts +6 -12
- package/dist/models/update-document-request-dto.d.ts +0 -6
- package/models/create-doc-template-request-dto.ts +3 -9
- package/models/create-document-request-dto.ts +0 -12
- package/models/create-html-template-dto.ts +1 -1
- package/models/doc-template-class.ts +18 -24
- package/models/document-class.ts +2 -14
- package/models/html-template-class.ts +7 -7
- package/models/index.ts +0 -6
- package/models/layout-class.ts +10 -10
- package/models/list-searchable-documents-response-class.ts +1 -1
- package/models/update-doc-template-request-dto.ts +6 -12
- package/models/update-document-request-dto.ts +0 -6
- package/package.json +2 -2
- package/api/search-keywords-api.ts +0 -164
- package/dist/api/search-keywords-api.d.ts +0 -92
- package/dist/api/search-keywords-api.js +0 -225
- package/dist/models/create-doc-template-response-class.d.ts +0 -25
- package/dist/models/create-doc-template-response-class.js +0 -15
- package/dist/models/create-presigned-post-request-dto.d.ts +0 -127
- package/dist/models/create-presigned-post-request-dto.js +0 -51
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
- package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
- package/dist/models/list-search-keywords-request-dto.d.ts +0 -24
- package/dist/models/list-search-keywords-request-dto.js +0 -15
- package/dist/models/list-search-keywords-response-class.d.ts +0 -24
- package/dist/models/list-search-keywords-response-class.js +0 -15
- package/models/create-doc-template-response-class.ts +0 -31
- package/models/create-presigned-post-request-dto.ts +0 -137
- package/models/create-presigned-post-response-class.ts +0 -36
- package/models/get-signed-s3-key-url-response-class.ts +0 -30
- package/models/list-search-keywords-request-dto.ts +0 -30
- package/models/list-search-keywords-response-class.ts +0 -30
package/models/document-class.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface DocumentClass {
|
|
|
49
49
|
* @type {object}
|
|
50
50
|
* @memberof DocumentClass
|
|
51
51
|
*/
|
|
52
|
-
'payload'
|
|
52
|
+
'payload': object;
|
|
53
53
|
/**
|
|
54
54
|
* Unique identifier of the policy that the document belongs to
|
|
55
55
|
* @type {string}
|
|
@@ -62,12 +62,6 @@ export interface DocumentClass {
|
|
|
62
62
|
* @memberof DocumentClass
|
|
63
63
|
*/
|
|
64
64
|
'accountCode'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Unique identifier of the lead that the document belongs to
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof DocumentClass
|
|
69
|
-
*/
|
|
70
|
-
'leadCode'?: string;
|
|
71
65
|
/**
|
|
72
66
|
* Unique identifier referencing the entity on the service the document belongs to.
|
|
73
67
|
* @type {number}
|
|
@@ -85,7 +79,7 @@ export interface DocumentClass {
|
|
|
85
79
|
* @type {object}
|
|
86
80
|
* @memberof DocumentClass
|
|
87
81
|
*/
|
|
88
|
-
'metadata'
|
|
82
|
+
'metadata': object;
|
|
89
83
|
/**
|
|
90
84
|
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
91
85
|
* @type {string}
|
|
@@ -104,12 +98,6 @@ export interface DocumentClass {
|
|
|
104
98
|
* @memberof DocumentClass
|
|
105
99
|
*/
|
|
106
100
|
'contentType': DocumentClassContentTypeEnum;
|
|
107
|
-
/**
|
|
108
|
-
* Product that this document belong to
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof DocumentClass
|
|
111
|
-
*/
|
|
112
|
-
'productSlug'?: string;
|
|
113
101
|
/**
|
|
114
102
|
* Time at which the object was created.
|
|
115
103
|
* @type {string}
|
|
@@ -21,43 +21,43 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface HtmlTemplateClass {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Template id
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof HtmlTemplateClass
|
|
27
27
|
*/
|
|
28
28
|
'id': number;
|
|
29
29
|
/**
|
|
30
|
-
* Template type
|
|
30
|
+
* Template type
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof HtmlTemplateClass
|
|
33
33
|
*/
|
|
34
34
|
'type': HtmlTemplateClassTypeEnum;
|
|
35
35
|
/**
|
|
36
|
-
* Template content
|
|
36
|
+
* Template content
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof HtmlTemplateClass
|
|
39
39
|
*/
|
|
40
40
|
'content': string;
|
|
41
41
|
/**
|
|
42
|
-
* Template draft content
|
|
42
|
+
* Template draft content
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof HtmlTemplateClass
|
|
45
45
|
*/
|
|
46
46
|
'draftContent': string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Template created at
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof HtmlTemplateClass
|
|
51
51
|
*/
|
|
52
52
|
'createdAt': string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Template updated at
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof HtmlTemplateClass
|
|
57
57
|
*/
|
|
58
58
|
'updatedAt': string;
|
|
59
59
|
/**
|
|
60
|
-
* Template
|
|
60
|
+
* Template updated at
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof HtmlTemplateClass
|
|
63
63
|
*/
|
package/models/index.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export * from './create-doc-template-request-dto';
|
|
2
|
-
export * from './create-doc-template-response-class';
|
|
3
2
|
export * from './create-document-request-dto';
|
|
4
3
|
export * from './create-html-template-dto';
|
|
5
4
|
export * from './create-layout-request-dto';
|
|
6
|
-
export * from './create-presigned-post-request-dto';
|
|
7
|
-
export * from './create-presigned-post-response-class';
|
|
8
5
|
export * from './delete-layout-request-dto';
|
|
9
6
|
export * from './delete-request-dto';
|
|
10
7
|
export * from './doc-template-class';
|
|
@@ -15,15 +12,12 @@ export * from './get-doc-template-response-class';
|
|
|
15
12
|
export * from './get-document-download-url-response-class';
|
|
16
13
|
export * from './get-layout-request-dto';
|
|
17
14
|
export * from './get-layout-response-class';
|
|
18
|
-
export * from './get-signed-s3-key-url-response-class';
|
|
19
15
|
export * from './html-template-class';
|
|
20
16
|
export * from './layout-class';
|
|
21
17
|
export * from './list-doc-templates-response-class';
|
|
22
18
|
export * from './list-documents-response-class';
|
|
23
19
|
export * from './list-layouts-response-class';
|
|
24
20
|
export * from './list-request-dto';
|
|
25
|
-
export * from './list-search-keywords-request-dto';
|
|
26
|
-
export * from './list-search-keywords-response-class';
|
|
27
21
|
export * from './list-searchable-document-owners-response-class';
|
|
28
22
|
export * from './list-searchable-documents-request-dto';
|
|
29
23
|
export * from './list-searchable-documents-response-class';
|
package/models/layout-class.ts
CHANGED
|
@@ -22,55 +22,55 @@ import { HtmlTemplateClass } from './html-template-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface LayoutClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Layout id
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof LayoutClass
|
|
28
28
|
*/
|
|
29
29
|
'id': number;
|
|
30
30
|
/**
|
|
31
|
-
* Record owner
|
|
31
|
+
* Record owner
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof LayoutClass
|
|
34
34
|
*/
|
|
35
35
|
'owner': string;
|
|
36
36
|
/**
|
|
37
|
-
* Layout name
|
|
37
|
+
* Layout name
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof LayoutClass
|
|
40
40
|
*/
|
|
41
41
|
'name': string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Layout slug
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof LayoutClass
|
|
46
46
|
*/
|
|
47
47
|
'slug': string;
|
|
48
48
|
/**
|
|
49
|
-
* Layout style
|
|
49
|
+
* Layout style
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof LayoutClass
|
|
52
52
|
*/
|
|
53
53
|
'style': string;
|
|
54
54
|
/**
|
|
55
|
-
* Header Template
|
|
55
|
+
* Header Template
|
|
56
56
|
* @type {HtmlTemplateClass}
|
|
57
57
|
* @memberof LayoutClass
|
|
58
58
|
*/
|
|
59
59
|
'headerTemplate': HtmlTemplateClass;
|
|
60
60
|
/**
|
|
61
|
-
* Footer Template
|
|
61
|
+
* Footer Template
|
|
62
62
|
* @type {HtmlTemplateClass}
|
|
63
63
|
* @memberof LayoutClass
|
|
64
64
|
*/
|
|
65
65
|
'footerTemplate': HtmlTemplateClass;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Layout created at
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof LayoutClass
|
|
70
70
|
*/
|
|
71
71
|
'createdAt': string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Layout updated at
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof LayoutClass
|
|
76
76
|
*/
|
|
@@ -80,6 +80,6 @@ export interface LayoutClass {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof LayoutClass
|
|
82
82
|
*/
|
|
83
|
-
'deletedAt'
|
|
83
|
+
'deletedAt': string;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -27,7 +27,7 @@ export interface ListSearchableDocumentsResponseClass {
|
|
|
27
27
|
*/
|
|
28
28
|
'documents': Array<string>;
|
|
29
29
|
/**
|
|
30
|
-
* Keywords used for search and to be highlighted in
|
|
30
|
+
* Keywords used for search and to be highlighted in teh document preview
|
|
31
31
|
* @type {Array<string>}
|
|
32
32
|
* @memberof ListSearchableDocumentsResponseClass
|
|
33
33
|
*/
|
|
@@ -22,23 +22,23 @@ import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface UpdateDocTemplateRequestDto {
|
|
24
24
|
/**
|
|
25
|
-
* Template name
|
|
25
|
+
* Template name
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateDocTemplateRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'name': string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Template slug
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateDocTemplateRequestDto
|
|
34
34
|
*/
|
|
35
35
|
'slug': string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Template id
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof UpdateDocTemplateRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'id': number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {CreateHtmlTemplateDto}
|
|
@@ -46,16 +46,10 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
46
46
|
*/
|
|
47
47
|
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof UpdateDocTemplateRequestDto
|
|
52
|
-
*/
|
|
53
|
-
'productSlug'?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* Template id
|
|
49
|
+
*
|
|
56
50
|
* @type {number}
|
|
57
51
|
* @memberof UpdateDocTemplateRequestDto
|
|
58
52
|
*/
|
|
59
|
-
'
|
|
53
|
+
'layoutId': number;
|
|
60
54
|
}
|
|
61
55
|
|
|
@@ -38,12 +38,6 @@ export interface UpdateDocumentRequestDto {
|
|
|
38
38
|
* @memberof UpdateDocumentRequestDto
|
|
39
39
|
*/
|
|
40
40
|
'accountCode'?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Lead code
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof UpdateDocumentRequestDto
|
|
45
|
-
*/
|
|
46
|
-
'leadCode'?: string;
|
|
47
41
|
/**
|
|
48
42
|
* Entity id
|
|
49
43
|
* @type {number}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/document-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/document-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DocumentService
|
|
5
|
-
* The EMIL DocumentService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListSearchKeywordsResponseClass } from '../models';
|
|
25
|
-
// URLSearchParams not necessarily used
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import { URL, URLSearchParams } from 'url';
|
|
28
|
-
const FormData = require('form-data');
|
|
29
|
-
/**
|
|
30
|
-
* SearchKeywordsApi - axios parameter creator
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
export const SearchKeywordsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
-
return {
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {string} searchText Text to search in the documents
|
|
38
|
-
* @param {string} [authorization] Bearer Token
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
listSearchKeywords: async (searchText: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
-
// verify required parameter 'searchText' is not null or undefined
|
|
44
|
-
assertParamExists('listSearchKeywords', 'searchText', searchText)
|
|
45
|
-
const localVarPath = `/documentservice/v1/search-keywords`;
|
|
46
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
-
let baseOptions;
|
|
49
|
-
let baseAccessToken;
|
|
50
|
-
if (configuration) {
|
|
51
|
-
baseOptions = configuration.baseOptions;
|
|
52
|
-
baseAccessToken = configuration.accessToken;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56
|
-
const localVarHeaderParameter = {} as any;
|
|
57
|
-
const localVarQueryParameter = {} as any;
|
|
58
|
-
|
|
59
|
-
// authentication bearer required
|
|
60
|
-
// http bearer authentication required
|
|
61
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
-
|
|
63
|
-
if (searchText !== undefined) {
|
|
64
|
-
localVarQueryParameter['searchText'] = searchText;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
url: toPathString(localVarUrlObj),
|
|
79
|
-
options: localVarRequestOptions,
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* SearchKeywordsApi - functional programming interface
|
|
87
|
-
* @export
|
|
88
|
-
*/
|
|
89
|
-
export const SearchKeywordsApiFp = function(configuration?: Configuration) {
|
|
90
|
-
const localVarAxiosParamCreator = SearchKeywordsApiAxiosParamCreator(configuration)
|
|
91
|
-
return {
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param {string} searchText Text to search in the documents
|
|
95
|
-
* @param {string} [authorization] Bearer Token
|
|
96
|
-
* @param {*} [options] Override http request option.
|
|
97
|
-
* @throws {RequiredError}
|
|
98
|
-
*/
|
|
99
|
-
async listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>> {
|
|
100
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchKeywords(searchText, authorization, options);
|
|
101
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
102
|
-
},
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* SearchKeywordsApi - factory interface
|
|
108
|
-
* @export
|
|
109
|
-
*/
|
|
110
|
-
export const SearchKeywordsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
111
|
-
const localVarFp = SearchKeywordsApiFp(configuration)
|
|
112
|
-
return {
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @param {string} searchText Text to search in the documents
|
|
116
|
-
* @param {string} [authorization] Bearer Token
|
|
117
|
-
* @param {*} [options] Override http request option.
|
|
118
|
-
* @throws {RequiredError}
|
|
119
|
-
*/
|
|
120
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass> {
|
|
121
|
-
return localVarFp.listSearchKeywords(searchText, authorization, options).then((request) => request(axios, basePath));
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Request parameters for listSearchKeywords operation in SearchKeywordsApi.
|
|
128
|
-
* @export
|
|
129
|
-
* @interface SearchKeywordsApiListSearchKeywordsRequest
|
|
130
|
-
*/
|
|
131
|
-
export interface SearchKeywordsApiListSearchKeywordsRequest {
|
|
132
|
-
/**
|
|
133
|
-
* Text to search in the documents
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof SearchKeywordsApiListSearchKeywords
|
|
136
|
-
*/
|
|
137
|
-
readonly searchText: string
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Bearer Token
|
|
141
|
-
* @type {string}
|
|
142
|
-
* @memberof SearchKeywordsApiListSearchKeywords
|
|
143
|
-
*/
|
|
144
|
-
readonly authorization?: string
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* SearchKeywordsApi - object-oriented interface
|
|
149
|
-
* @export
|
|
150
|
-
* @class SearchKeywordsApi
|
|
151
|
-
* @extends {BaseAPI}
|
|
152
|
-
*/
|
|
153
|
-
export class SearchKeywordsApi extends BaseAPI {
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
|
|
157
|
-
* @param {*} [options] Override http request option.
|
|
158
|
-
* @throws {RequiredError}
|
|
159
|
-
* @memberof SearchKeywordsApi
|
|
160
|
-
*/
|
|
161
|
-
public listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig) {
|
|
162
|
-
return SearchKeywordsApiFp(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL DocumentService
|
|
3
|
-
* The EMIL DocumentService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ListSearchKeywordsResponseClass } from '../models';
|
|
16
|
-
/**
|
|
17
|
-
* SearchKeywordsApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export declare const SearchKeywordsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {string} searchText Text to search in the documents
|
|
24
|
-
* @param {string} [authorization] Bearer Token
|
|
25
|
-
* @param {*} [options] Override http request option.
|
|
26
|
-
* @throws {RequiredError}
|
|
27
|
-
*/
|
|
28
|
-
listSearchKeywords: (searchText: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* SearchKeywordsApi - functional programming interface
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const SearchKeywordsApiFp: (configuration?: Configuration) => {
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {string} searchText Text to search in the documents
|
|
38
|
-
* @param {string} [authorization] Bearer Token
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>>;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* SearchKeywordsApi - factory interface
|
|
46
|
-
* @export
|
|
47
|
-
*/
|
|
48
|
-
export declare const SearchKeywordsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param {string} searchText Text to search in the documents
|
|
52
|
-
* @param {string} [authorization] Bearer Token
|
|
53
|
-
* @param {*} [options] Override http request option.
|
|
54
|
-
* @throws {RequiredError}
|
|
55
|
-
*/
|
|
56
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass>;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Request parameters for listSearchKeywords operation in SearchKeywordsApi.
|
|
60
|
-
* @export
|
|
61
|
-
* @interface SearchKeywordsApiListSearchKeywordsRequest
|
|
62
|
-
*/
|
|
63
|
-
export interface SearchKeywordsApiListSearchKeywordsRequest {
|
|
64
|
-
/**
|
|
65
|
-
* Text to search in the documents
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof SearchKeywordsApiListSearchKeywords
|
|
68
|
-
*/
|
|
69
|
-
readonly searchText: string;
|
|
70
|
-
/**
|
|
71
|
-
* Bearer Token
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof SearchKeywordsApiListSearchKeywords
|
|
74
|
-
*/
|
|
75
|
-
readonly authorization?: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* SearchKeywordsApi - object-oriented interface
|
|
79
|
-
* @export
|
|
80
|
-
* @class SearchKeywordsApi
|
|
81
|
-
* @extends {BaseAPI}
|
|
82
|
-
*/
|
|
83
|
-
export declare class SearchKeywordsApi extends BaseAPI {
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
|
|
87
|
-
* @param {*} [options] Override http request option.
|
|
88
|
-
* @throws {RequiredError}
|
|
89
|
-
* @memberof SearchKeywordsApi
|
|
90
|
-
*/
|
|
91
|
-
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any>>;
|
|
92
|
-
}
|