@emilgroup/document-sdk-node 1.2.0 → 1.2.1
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 +15 -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/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 +2 -0
- package/base.ts +1 -1
- 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/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 +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +1 -1
- 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 +20 -8
- 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 +127 -0
- package/dist/models/create-presigned-post-request-dto.js +51 -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-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 +20 -8
- 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-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 +14 -0
- package/dist/models/index.js +14 -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-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/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/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 +20 -8
- 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 +137 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-layout-request-dto.ts +1 -1
- 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 +20 -8
- 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-signed-s3-key-url-response-class.ts +30 -0
- package/models/html-template-class.ts +7 -7
- package/models/index.ts +14 -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-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/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/package.json +1 -1
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
* Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
|
|
37
|
+
* @summary List keywords
|
|
38
|
+
* @param {string} searchText Text to search in the documents.
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
listSearchKeywords: async (searchText: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'searchText' is not null or undefined
|
|
45
|
+
assertParamExists('listSearchKeywords', 'searchText', searchText)
|
|
46
|
+
const localVarPath = `/documentservice/v1/search-keywords`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
let baseAccessToken;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
baseAccessToken = configuration.accessToken;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
if (searchText !== undefined) {
|
|
65
|
+
localVarQueryParameter['searchText'] = searchText;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* SearchKeywordsApi - functional programming interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const SearchKeywordsApiFp = function(configuration?: Configuration) {
|
|
91
|
+
const localVarAxiosParamCreator = SearchKeywordsApiAxiosParamCreator(configuration)
|
|
92
|
+
return {
|
|
93
|
+
/**
|
|
94
|
+
* Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
|
|
95
|
+
* @summary List keywords
|
|
96
|
+
* @param {string} searchText Text to search in the documents.
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
async listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>> {
|
|
102
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchKeywords(searchText, authorization, options);
|
|
103
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* SearchKeywordsApi - factory interface
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const SearchKeywordsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
113
|
+
const localVarFp = SearchKeywordsApiFp(configuration)
|
|
114
|
+
return {
|
|
115
|
+
/**
|
|
116
|
+
* Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
|
|
117
|
+
* @summary List keywords
|
|
118
|
+
* @param {string} searchText Text to search in the documents.
|
|
119
|
+
* @param {string} [authorization] Bearer Token
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass> {
|
|
124
|
+
return localVarFp.listSearchKeywords(searchText, authorization, options).then((request) => request(axios, basePath));
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Request parameters for listSearchKeywords operation in SearchKeywordsApi.
|
|
131
|
+
* @export
|
|
132
|
+
* @interface SearchKeywordsApiListSearchKeywordsRequest
|
|
133
|
+
*/
|
|
134
|
+
export interface SearchKeywordsApiListSearchKeywordsRequest {
|
|
135
|
+
/**
|
|
136
|
+
* Text to search in the documents.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof SearchKeywordsApiListSearchKeywords
|
|
139
|
+
*/
|
|
140
|
+
readonly searchText: string
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Bearer Token
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof SearchKeywordsApiListSearchKeywords
|
|
146
|
+
*/
|
|
147
|
+
readonly authorization?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* SearchKeywordsApi - object-oriented interface
|
|
152
|
+
* @export
|
|
153
|
+
* @class SearchKeywordsApi
|
|
154
|
+
* @extends {BaseAPI}
|
|
155
|
+
*/
|
|
156
|
+
export class SearchKeywordsApi extends BaseAPI {
|
|
157
|
+
/**
|
|
158
|
+
* Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
|
|
159
|
+
* @summary List keywords
|
|
160
|
+
* @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
* @memberof SearchKeywordsApi
|
|
164
|
+
*/
|
|
165
|
+
public listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig) {
|
|
166
|
+
return SearchKeywordsApiFp(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -33,7 +33,8 @@ const FormData = require('form-data');
|
|
|
33
33
|
export const SearchableDocumentOwnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
34
|
return {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Returns the list of the searchable document owners.
|
|
37
|
+
* @summary List searchable document owners
|
|
37
38
|
* @param {string} [authorization] Bearer Token
|
|
38
39
|
* @param {number} [pageSize] Page size
|
|
39
40
|
* @param {string} [pageToken] Page token
|
|
@@ -44,7 +45,7 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
|
|
|
44
45
|
* @param {*} [options] Override http request option.
|
|
45
46
|
* @throws {RequiredError}
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
listSearchableDocumentOwners: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
49
|
const localVarPath = `/documentservice/v1/searchable-document-owners`;
|
|
49
50
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
51
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -113,7 +114,8 @@ export const SearchableDocumentOwnersApiFp = function(configuration?: Configurat
|
|
|
113
114
|
const localVarAxiosParamCreator = SearchableDocumentOwnersApiAxiosParamCreator(configuration)
|
|
114
115
|
return {
|
|
115
116
|
/**
|
|
116
|
-
*
|
|
117
|
+
* Returns the list of the searchable document owners.
|
|
118
|
+
* @summary List searchable document owners
|
|
117
119
|
* @param {string} [authorization] Bearer Token
|
|
118
120
|
* @param {number} [pageSize] Page size
|
|
119
121
|
* @param {string} [pageToken] Page token
|
|
@@ -124,8 +126,8 @@ export const SearchableDocumentOwnersApiFp = function(configuration?: Configurat
|
|
|
124
126
|
* @param {*} [options] Override http request option.
|
|
125
127
|
* @throws {RequiredError}
|
|
126
128
|
*/
|
|
127
|
-
async
|
|
128
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
129
|
+
async listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>> {
|
|
130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
129
131
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
130
132
|
},
|
|
131
133
|
}
|
|
@@ -139,7 +141,8 @@ export const SearchableDocumentOwnersApiFactory = function (configuration?: Conf
|
|
|
139
141
|
const localVarFp = SearchableDocumentOwnersApiFp(configuration)
|
|
140
142
|
return {
|
|
141
143
|
/**
|
|
142
|
-
*
|
|
144
|
+
* Returns the list of the searchable document owners.
|
|
145
|
+
* @summary List searchable document owners
|
|
143
146
|
* @param {string} [authorization] Bearer Token
|
|
144
147
|
* @param {number} [pageSize] Page size
|
|
145
148
|
* @param {string} [pageToken] Page token
|
|
@@ -150,64 +153,64 @@ export const SearchableDocumentOwnersApiFactory = function (configuration?: Conf
|
|
|
150
153
|
* @param {*} [options] Override http request option.
|
|
151
154
|
* @throws {RequiredError}
|
|
152
155
|
*/
|
|
153
|
-
|
|
154
|
-
return localVarFp.
|
|
156
|
+
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass> {
|
|
157
|
+
return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
155
158
|
},
|
|
156
159
|
};
|
|
157
160
|
};
|
|
158
161
|
|
|
159
162
|
/**
|
|
160
|
-
* Request parameters for
|
|
163
|
+
* Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
|
|
161
164
|
* @export
|
|
162
|
-
* @interface
|
|
165
|
+
* @interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
|
|
163
166
|
*/
|
|
164
|
-
export interface
|
|
167
|
+
export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest {
|
|
165
168
|
/**
|
|
166
169
|
* Bearer Token
|
|
167
170
|
* @type {string}
|
|
168
|
-
* @memberof
|
|
171
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
169
172
|
*/
|
|
170
173
|
readonly authorization?: string
|
|
171
174
|
|
|
172
175
|
/**
|
|
173
176
|
* Page size
|
|
174
177
|
* @type {number}
|
|
175
|
-
* @memberof
|
|
178
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
176
179
|
*/
|
|
177
180
|
readonly pageSize?: number
|
|
178
181
|
|
|
179
182
|
/**
|
|
180
183
|
* Page token
|
|
181
184
|
* @type {string}
|
|
182
|
-
* @memberof
|
|
185
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
183
186
|
*/
|
|
184
187
|
readonly pageToken?: string
|
|
185
188
|
|
|
186
189
|
/**
|
|
187
190
|
* List filter
|
|
188
191
|
* @type {string}
|
|
189
|
-
* @memberof
|
|
192
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
190
193
|
*/
|
|
191
194
|
readonly filter?: string
|
|
192
195
|
|
|
193
196
|
/**
|
|
194
197
|
* Search query
|
|
195
198
|
* @type {string}
|
|
196
|
-
* @memberof
|
|
199
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
197
200
|
*/
|
|
198
201
|
readonly search?: string
|
|
199
202
|
|
|
200
203
|
/**
|
|
201
204
|
* Ordering criteria
|
|
202
205
|
* @type {string}
|
|
203
|
-
* @memberof
|
|
206
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
204
207
|
*/
|
|
205
208
|
readonly order?: string
|
|
206
209
|
|
|
207
210
|
/**
|
|
208
211
|
* Extra fields to fetch
|
|
209
212
|
* @type {string}
|
|
210
|
-
* @memberof
|
|
213
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
|
|
211
214
|
*/
|
|
212
215
|
readonly expand?: string
|
|
213
216
|
}
|
|
@@ -220,13 +223,14 @@ export interface SearchableDocumentOwnersApiListSearchableDocumentsRequest {
|
|
|
220
223
|
*/
|
|
221
224
|
export class SearchableDocumentOwnersApi extends BaseAPI {
|
|
222
225
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @
|
|
226
|
+
* Returns the list of the searchable document owners.
|
|
227
|
+
* @summary List searchable document owners
|
|
228
|
+
* @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
|
|
225
229
|
* @param {*} [options] Override http request option.
|
|
226
230
|
* @throws {RequiredError}
|
|
227
231
|
* @memberof SearchableDocumentOwnersApi
|
|
228
232
|
*/
|
|
229
|
-
public
|
|
230
|
-
return SearchableDocumentOwnersApiFp(this.configuration).
|
|
233
|
+
public listSearchableDocumentOwners(requestParameters: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest = {}, options?: AxiosRequestConfig) {
|
|
234
|
+
return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
231
235
|
}
|
|
232
236
|
}
|
|
@@ -33,9 +33,10 @@ const FormData = require('form-data');
|
|
|
33
33
|
export const SearchableDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
34
|
return {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
* @param {string}
|
|
36
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
37
|
+
* @summary List searchable documents
|
|
38
|
+
* @param {string} searchText Text to search in the documents.
|
|
39
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
39
40
|
* @param {string} [authorization] Bearer Token
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
@@ -97,9 +98,10 @@ export const SearchableDocumentsApiFp = function(configuration?: Configuration)
|
|
|
97
98
|
const localVarAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator(configuration)
|
|
98
99
|
return {
|
|
99
100
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
102
|
-
* @param {string}
|
|
101
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
102
|
+
* @summary List searchable documents
|
|
103
|
+
* @param {string} searchText Text to search in the documents.
|
|
104
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
103
105
|
* @param {string} [authorization] Bearer Token
|
|
104
106
|
* @param {*} [options] Override http request option.
|
|
105
107
|
* @throws {RequiredError}
|
|
@@ -119,9 +121,10 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
|
|
|
119
121
|
const localVarFp = SearchableDocumentsApiFp(configuration)
|
|
120
122
|
return {
|
|
121
123
|
/**
|
|
122
|
-
*
|
|
123
|
-
* @
|
|
124
|
-
* @param {string}
|
|
124
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
125
|
+
* @summary List searchable documents
|
|
126
|
+
* @param {string} searchText Text to search in the documents.
|
|
127
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
125
128
|
* @param {string} [authorization] Bearer Token
|
|
126
129
|
* @param {*} [options] Override http request option.
|
|
127
130
|
* @throws {RequiredError}
|
|
@@ -139,14 +142,14 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
|
|
|
139
142
|
*/
|
|
140
143
|
export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
141
144
|
/**
|
|
142
|
-
* Text to search in the documents
|
|
145
|
+
* Text to search in the documents.
|
|
143
146
|
* @type {string}
|
|
144
147
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
145
148
|
*/
|
|
146
149
|
readonly searchText: string
|
|
147
150
|
|
|
148
151
|
/**
|
|
149
|
-
* List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
|
|
152
|
+
* List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
150
153
|
* @type {string}
|
|
151
154
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
152
155
|
*/
|
|
@@ -168,7 +171,8 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
168
171
|
*/
|
|
169
172
|
export class SearchableDocumentsApi extends BaseAPI {
|
|
170
173
|
/**
|
|
171
|
-
*
|
|
174
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
175
|
+
* @summary List searchable documents
|
|
172
176
|
* @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
173
177
|
* @param {*} [options] Override http request option.
|
|
174
178
|
* @throws {RequiredError}
|
package/api.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
27
27
|
import { DocumentTemplatesApi } from './api';
|
|
28
28
|
import { DocumentsApi } from './api';
|
|
29
29
|
import { LayoutsApi } from './api';
|
|
30
|
+
import { SearchKeywordsApi } from './api';
|
|
30
31
|
import { SearchableDocumentOwnersApi } from './api';
|
|
31
32
|
import { SearchableDocumentsApi } from './api';
|
|
32
33
|
|
|
@@ -34,6 +35,7 @@ import { SearchableDocumentsApi } from './api';
|
|
|
34
35
|
export * from './api/document-templates-api';
|
|
35
36
|
export * from './api/documents-api';
|
|
36
37
|
export * from './api/layouts-api';
|
|
38
|
+
export * from './api/search-keywords-api';
|
|
37
39
|
export * from './api/searchable-document-owners-api';
|
|
38
40
|
export * from './api/searchable-documents-api';
|
|
39
41
|
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|