@emilgroup/document-sdk-node 1.0.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 +45 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/document-templates-api.ts +675 -0
- package/api/documents-api.ts +762 -0
- package/api/layouts-api.ts +661 -0
- package/api/searchable-document-owners-api.ts +232 -0
- package/api/searchable-documents-api.ts +180 -0
- package/api.ts +44 -0
- package/base.ts +255 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/document-templates-api.d.ts +372 -0
- package/dist/api/document-templates-api.js +628 -0
- package/dist/api/documents-api.d.ts +424 -0
- package/dist/api/documents-api.js +723 -0
- package/dist/api/layouts-api.d.ts +363 -0
- package/dist/api/layouts-api.js +622 -0
- package/dist/api/searchable-document-owners-api.d.ts +137 -0
- package/dist/api/searchable-document-owners-api.js +254 -0
- package/dist/api/searchable-documents-api.d.ts +101 -0
- package/dist/api/searchable-documents-api.js +233 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +40 -0
- package/dist/base.d.ts +76 -0
- package/dist/base.js +364 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/create-doc-template-request-dto.d.ts +43 -0
- package/dist/models/create-doc-template-request-dto.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +143 -0
- package/dist/models/create-document-request-dto.js +65 -0
- package/dist/models/create-html-template-dto.d.ts +24 -0
- package/dist/models/create-html-template-dto.js +15 -0
- package/dist/models/create-layout-request-dto.d.ts +49 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +103 -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 +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-request-dto.d.ts +24 -0
- package/dist/models/delete-request-dto.js +15 -0
- package/dist/models/doc-template-class.d.ts +80 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +150 -0
- package/dist/models/document-class.js +61 -0
- package/dist/models/download-document-request-dto.d.ts +30 -0
- package/dist/models/download-document-request-dto.js +15 -0
- package/dist/models/get-doc-template-request-dto.d.ts +30 -0
- package/dist/models/get-doc-template-request-dto.js +15 -0
- package/dist/models/get-doc-template-response-class.d.ts +25 -0
- package/dist/models/get-doc-template-response-class.js +15 -0
- package/dist/models/get-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-document-download-url-response-class.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +66 -0
- package/dist/models/html-template-class.js +21 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +44 -0
- package/dist/models/layout-class.d.ts +79 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-templates-response-class.d.ts +31 -0
- package/dist/models/list-doc-templates-response-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +31 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +24 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +30 -0
- package/dist/models/list-searchable-documents-request-dto.js +15 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +30 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +49 -0
- package/dist/models/update-doc-template-request-dto.js +15 -0
- package/dist/models/update-doc-template-response-class.d.ts +25 -0
- package/dist/models/update-doc-template-response-class.js +15 -0
- package/dist/models/update-document-request-dto.d.ts +48 -0
- package/dist/models/update-document-request-dto.js +15 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-doc-template-request-dto.ts +49 -0
- package/models/create-document-request-dto.ts +155 -0
- package/models/create-html-template-dto.ts +30 -0
- package/models/create-layout-request-dto.ts +55 -0
- package/models/create-presigned-post-request-dto.ts +113 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-layout-request-dto.ts +30 -0
- package/models/delete-request-dto.ts +30 -0
- package/models/doc-template-class.ts +86 -0
- package/models/document-class.ts +161 -0
- package/models/download-document-request-dto.ts +36 -0
- package/models/get-doc-template-request-dto.ts +36 -0
- package/models/get-doc-template-response-class.ts +31 -0
- package/models/get-document-download-url-response-class.ts +30 -0
- package/models/get-layout-request-dto.ts +30 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/html-template-class.ts +75 -0
- package/models/index.ts +28 -0
- package/models/layout-class.ts +85 -0
- package/models/list-doc-templates-response-class.ts +37 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/list-layouts-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/list-searchable-document-owners-response-class.ts +30 -0
- package/models/list-searchable-documents-request-dto.ts +36 -0
- package/models/list-searchable-documents-response-class.ts +36 -0
- package/models/update-doc-template-request-dto.ts +55 -0
- package/models/update-doc-template-response-class.ts +31 -0
- package/models/update-document-request-dto.ts +54 -0
- package/models/update-layout-request-dto.ts +61 -0
- package/models/update-layout-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,232 @@
|
|
|
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 { ListSearchableDocumentOwnersResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* SearchableDocumentOwnersApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const SearchableDocumentOwnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {number} [pageSize] Page size
|
|
39
|
+
* @param {string} [pageToken] Page token
|
|
40
|
+
* @param {string} [filter] List filter
|
|
41
|
+
* @param {string} [search] Search query
|
|
42
|
+
* @param {string} [order] Ordering criteria
|
|
43
|
+
* @param {string} [expand] Extra fields to fetch
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
listSearchableDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
const localVarPath = `/documentservice/v1/searchable-document-owners`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (pageSize !== undefined) {
|
|
67
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (pageToken !== undefined) {
|
|
71
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (filter !== undefined) {
|
|
75
|
+
localVarQueryParameter['filter'] = filter;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (search !== undefined) {
|
|
79
|
+
localVarQueryParameter['search'] = search;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (order !== undefined) {
|
|
83
|
+
localVarQueryParameter['order'] = order;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (expand !== undefined) {
|
|
87
|
+
localVarQueryParameter['expand'] = expand;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
91
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
url: toPathString(localVarUrlObj),
|
|
102
|
+
options: localVarRequestOptions,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* SearchableDocumentOwnersApi - functional programming interface
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const SearchableDocumentOwnersApiFp = function(configuration?: Configuration) {
|
|
113
|
+
const localVarAxiosParamCreator = SearchableDocumentOwnersApiAxiosParamCreator(configuration)
|
|
114
|
+
return {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {string} [authorization] Bearer Token
|
|
118
|
+
* @param {number} [pageSize] Page size
|
|
119
|
+
* @param {string} [pageToken] Page token
|
|
120
|
+
* @param {string} [filter] List filter
|
|
121
|
+
* @param {string} [search] Search query
|
|
122
|
+
* @param {string} [order] Ordering criteria
|
|
123
|
+
* @param {string} [expand] Extra fields to fetch
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
async listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>> {
|
|
128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
129
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
130
|
+
},
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* SearchableDocumentOwnersApi - factory interface
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const SearchableDocumentOwnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
139
|
+
const localVarFp = SearchableDocumentOwnersApiFp(configuration)
|
|
140
|
+
return {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param {string} [authorization] Bearer Token
|
|
144
|
+
* @param {number} [pageSize] Page size
|
|
145
|
+
* @param {string} [pageToken] Page token
|
|
146
|
+
* @param {string} [filter] List filter
|
|
147
|
+
* @param {string} [search] Search query
|
|
148
|
+
* @param {string} [order] Ordering criteria
|
|
149
|
+
* @param {string} [expand] Extra fields to fetch
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
listSearchableDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass> {
|
|
154
|
+
return localVarFp.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Request parameters for listSearchableDocuments operation in SearchableDocumentOwnersApi.
|
|
161
|
+
* @export
|
|
162
|
+
* @interface SearchableDocumentOwnersApiListSearchableDocumentsRequest
|
|
163
|
+
*/
|
|
164
|
+
export interface SearchableDocumentOwnersApiListSearchableDocumentsRequest {
|
|
165
|
+
/**
|
|
166
|
+
* Bearer Token
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
169
|
+
*/
|
|
170
|
+
readonly authorization?: string
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Page size
|
|
174
|
+
* @type {number}
|
|
175
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
176
|
+
*/
|
|
177
|
+
readonly pageSize?: number
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Page token
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
183
|
+
*/
|
|
184
|
+
readonly pageToken?: string
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* List filter
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
190
|
+
*/
|
|
191
|
+
readonly filter?: string
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Search query
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
197
|
+
*/
|
|
198
|
+
readonly search?: string
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Ordering criteria
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
204
|
+
*/
|
|
205
|
+
readonly order?: string
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Extra fields to fetch
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof SearchableDocumentOwnersApiListSearchableDocuments
|
|
211
|
+
*/
|
|
212
|
+
readonly expand?: string
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* SearchableDocumentOwnersApi - object-oriented interface
|
|
217
|
+
* @export
|
|
218
|
+
* @class SearchableDocumentOwnersApi
|
|
219
|
+
* @extends {BaseAPI}
|
|
220
|
+
*/
|
|
221
|
+
export class SearchableDocumentOwnersApi extends BaseAPI {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @param {SearchableDocumentOwnersApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
* @memberof SearchableDocumentOwnersApi
|
|
228
|
+
*/
|
|
229
|
+
public listSearchableDocuments(requestParameters: SearchableDocumentOwnersApiListSearchableDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
230
|
+
return SearchableDocumentOwnersApiFp(this.configuration).listSearchableDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
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 { ListSearchableDocumentsResponseClass } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* SearchableDocumentsApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const SearchableDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {string} searchText Text to search in the documents
|
|
38
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
listSearchableDocuments: async (searchText: string, ownerIds: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'searchText' is not null or undefined
|
|
45
|
+
assertParamExists('listSearchableDocuments', 'searchText', searchText)
|
|
46
|
+
// verify required parameter 'ownerIds' is not null or undefined
|
|
47
|
+
assertParamExists('listSearchableDocuments', 'ownerIds', ownerIds)
|
|
48
|
+
const localVarPath = `/documentservice/v1/searchable-documents`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (searchText !== undefined) {
|
|
67
|
+
localVarQueryParameter['searchText'] = searchText;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (ownerIds !== undefined) {
|
|
71
|
+
localVarQueryParameter['ownerIds'] = ownerIds;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* SearchableDocumentsApi - functional programming interface
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const SearchableDocumentsApiFp = function(configuration?: Configuration) {
|
|
97
|
+
const localVarAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator(configuration)
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {string} searchText Text to search in the documents
|
|
102
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
async listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>> {
|
|
108
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, options);
|
|
109
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
110
|
+
},
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* SearchableDocumentsApi - factory interface
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const SearchableDocumentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
119
|
+
const localVarFp = SearchableDocumentsApiFp(configuration)
|
|
120
|
+
return {
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @param {string} searchText Text to search in the documents
|
|
124
|
+
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
|
|
125
|
+
* @param {string} [authorization] Bearer Token
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: any): AxiosPromise<ListSearchableDocumentsResponseClass> {
|
|
130
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, options).then((request) => request(axios, basePath));
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Request parameters for listSearchableDocuments operation in SearchableDocumentsApi.
|
|
137
|
+
* @export
|
|
138
|
+
* @interface SearchableDocumentsApiListSearchableDocumentsRequest
|
|
139
|
+
*/
|
|
140
|
+
export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
141
|
+
/**
|
|
142
|
+
* Text to search in the documents
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
145
|
+
*/
|
|
146
|
+
readonly searchText: string
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
152
|
+
*/
|
|
153
|
+
readonly ownerIds: string
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Bearer Token
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
159
|
+
*/
|
|
160
|
+
readonly authorization?: string
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* SearchableDocumentsApi - object-oriented interface
|
|
165
|
+
* @export
|
|
166
|
+
* @class SearchableDocumentsApi
|
|
167
|
+
* @extends {BaseAPI}
|
|
168
|
+
*/
|
|
169
|
+
export class SearchableDocumentsApi extends BaseAPI {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof SearchableDocumentsApi
|
|
176
|
+
*/
|
|
177
|
+
public listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig) {
|
|
178
|
+
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
}
|
package/api.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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 { Configuration } from './configuration';
|
|
17
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
18
|
+
// URLSearchParams not necessarily used
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { URL, URLSearchParams } from 'url';
|
|
21
|
+
import FormData from 'form-data'
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { DocumentTemplatesApi } from './api';
|
|
28
|
+
import { DocumentsApi } from './api';
|
|
29
|
+
import { LayoutsApi } from './api';
|
|
30
|
+
import { SearchableDocumentOwnersApi } from './api';
|
|
31
|
+
import { SearchableDocumentsApi } from './api';
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export * from './api/document-templates-api';
|
|
35
|
+
export * from './api/documents-api';
|
|
36
|
+
export * from './api/layouts-api';
|
|
37
|
+
export * from './api/searchable-document-owners-api';
|
|
38
|
+
export * from './api/searchable-documents-api';
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export enum Environment {
|
|
42
|
+
Production = 'https://apiv2.emil.de',
|
|
43
|
+
Test = 'https://apiv2-test.emil.de',
|
|
44
|
+
}
|