@emilgroup/document-sdk 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 +1 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +1 -1
- package/api/documents-api.ts +1 -1
- package/api/layouts-api.ts +1 -1
- package/api/product-documents-api.ts +1 -1
- package/api/search-keywords-api.ts +1 -1
- package/api/searchable-document-owners-api.ts +1 -1
- package/api/searchable-documents-api.ts +21 -7
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/document-templates-api.d.ts +1 -1
- package/dist/api/document-templates-api.js +1 -1
- package/dist/api/documents-api.d.ts +1 -1
- package/dist/api/documents-api.js +1 -1
- package/dist/api/layouts-api.d.ts +1 -1
- package/dist/api/layouts-api.js +1 -1
- package/dist/api/product-documents-api.d.ts +1 -1
- package/dist/api/product-documents-api.js +1 -1
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +1 -1
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +1 -1
- package/dist/api/searchable-documents-api.d.ts +13 -4
- package/dist/api/searchable-documents-api.js +13 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/create-doc-template-request-dto.d.ts +1 -1
- package/dist/models/create-doc-template-request-dto.js +1 -1
- package/dist/models/create-doc-template-response-class.d.ts +1 -1
- package/dist/models/create-doc-template-response-class.js +1 -1
- package/dist/models/create-document-request-dto.d.ts +1 -1
- package/dist/models/create-document-request-dto.js +1 -1
- package/dist/models/create-document-sync-response-class.d.ts +1 -1
- package/dist/models/create-document-sync-response-class.js +1 -1
- package/dist/models/create-html-template-dto.d.ts +1 -1
- package/dist/models/create-html-template-dto.js +1 -1
- package/dist/models/create-layout-request-dto.d.ts +1 -1
- package/dist/models/create-layout-request-dto.js +1 -1
- package/dist/models/create-layout-response-class.d.ts +1 -1
- package/dist/models/create-layout-response-class.js +1 -1
- package/dist/models/create-presigned-post-request-dto.d.ts +1 -1
- package/dist/models/create-presigned-post-request-dto.js +1 -1
- package/dist/models/create-presigned-post-response-class.d.ts +1 -1
- package/dist/models/create-presigned-post-response-class.js +1 -1
- package/dist/models/delete-layout-request-dto.d.ts +1 -1
- package/dist/models/delete-layout-request-dto.js +1 -1
- package/dist/models/delete-product-document-request-dto.d.ts +1 -1
- package/dist/models/delete-product-document-request-dto.js +1 -1
- package/dist/models/delete-request-dto.d.ts +1 -1
- package/dist/models/delete-request-dto.js +1 -1
- package/dist/models/delete-response-class.d.ts +1 -1
- package/dist/models/delete-response-class.js +1 -1
- package/dist/models/doc-template-class.d.ts +1 -1
- package/dist/models/doc-template-class.js +1 -1
- package/dist/models/document-class.d.ts +1 -1
- package/dist/models/document-class.js +1 -1
- package/dist/models/download-document-request-dto.d.ts +1 -1
- package/dist/models/download-document-request-dto.js +1 -1
- package/dist/models/get-doc-template-request-dto.d.ts +1 -1
- package/dist/models/get-doc-template-request-dto.js +1 -1
- package/dist/models/get-doc-template-response-class.d.ts +1 -1
- package/dist/models/get-doc-template-response-class.js +1 -1
- package/dist/models/get-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-document-download-url-response-class.js +1 -1
- package/dist/models/get-layout-request-dto.d.ts +1 -1
- package/dist/models/get-layout-request-dto.js +1 -1
- package/dist/models/get-layout-response-class.d.ts +1 -1
- package/dist/models/get-layout-response-class.js +1 -1
- package/dist/models/get-product-document-response-class.d.ts +1 -1
- package/dist/models/get-product-document-response-class.js +1 -1
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +1 -1
- package/dist/models/get-signed-s3-key-url-response-class.js +1 -1
- package/dist/models/html-template-class.d.ts +1 -1
- package/dist/models/html-template-class.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/layout-class.d.ts +1 -1
- package/dist/models/layout-class.js +1 -1
- package/dist/models/list-doc-template-request-dto.d.ts +1 -1
- package/dist/models/list-doc-template-request-dto.js +1 -1
- package/dist/models/list-doc-templates-response-class.d.ts +1 -1
- package/dist/models/list-doc-templates-response-class.js +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.js +1 -1
- package/dist/models/list-layouts-response-class.d.ts +1 -1
- package/dist/models/list-layouts-response-class.js +1 -1
- package/dist/models/list-product-documents-response-class.d.ts +1 -1
- package/dist/models/list-product-documents-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +1 -1
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/list-search-keywords-request-dto.d.ts +1 -1
- package/dist/models/list-search-keywords-request-dto.js +1 -1
- package/dist/models/list-search-keywords-response-class.d.ts +1 -1
- package/dist/models/list-search-keywords-response-class.js +1 -1
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
- package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +1 -1
- package/dist/models/list-searchable-document-owners-response-class.js +1 -1
- package/dist/models/list-searchable-documents-request-dto.d.ts +14 -1
- package/dist/models/list-searchable-documents-request-dto.js +8 -1
- package/dist/models/list-searchable-documents-response-class.d.ts +1 -1
- package/dist/models/list-searchable-documents-response-class.js +1 -1
- package/dist/models/product-document-class.d.ts +1 -1
- package/dist/models/product-document-class.js +1 -1
- package/dist/models/searchable-document-class.d.ts +1 -1
- package/dist/models/searchable-document-class.js +1 -1
- package/dist/models/searchable-document-owner-class.d.ts +1 -1
- package/dist/models/searchable-document-owner-class.js +1 -1
- package/dist/models/update-doc-template-request-dto.d.ts +1 -1
- package/dist/models/update-doc-template-request-dto.js +1 -1
- package/dist/models/update-doc-template-response-class.d.ts +1 -1
- package/dist/models/update-doc-template-response-class.js +1 -1
- package/dist/models/update-document-request-dto.d.ts +1 -1
- package/dist/models/update-document-request-dto.js +1 -1
- package/dist/models/update-document-response-class.d.ts +1 -1
- package/dist/models/update-document-response-class.js +1 -1
- package/dist/models/update-html-template-dto.d.ts +1 -1
- package/dist/models/update-html-template-dto.js +1 -1
- package/dist/models/update-layout-request-dto.d.ts +1 -1
- package/dist/models/update-layout-request-dto.js +1 -1
- package/dist/models/update-layout-response-class.d.ts +1 -1
- package/dist/models/update-layout-response-class.js +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/create-doc-template-request-dto.ts +1 -1
- package/models/create-doc-template-response-class.ts +1 -1
- package/models/create-document-request-dto.ts +1 -1
- package/models/create-document-sync-response-class.ts +1 -1
- package/models/create-html-template-dto.ts +1 -1
- package/models/create-layout-request-dto.ts +1 -1
- package/models/create-layout-response-class.ts +1 -1
- package/models/create-presigned-post-request-dto.ts +1 -1
- package/models/create-presigned-post-response-class.ts +1 -1
- package/models/delete-layout-request-dto.ts +1 -1
- package/models/delete-product-document-request-dto.ts +1 -1
- package/models/delete-request-dto.ts +1 -1
- package/models/delete-response-class.ts +1 -1
- package/models/doc-template-class.ts +1 -1
- package/models/document-class.ts +1 -1
- package/models/download-document-request-dto.ts +1 -1
- 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-layout-response-class.ts +1 -1
- package/models/get-product-document-response-class.ts +1 -1
- package/models/get-signed-s3-key-url-response-class.ts +1 -1
- package/models/html-template-class.ts +1 -1
- package/models/index.ts +1 -0
- package/models/layout-class.ts +1 -1
- package/models/list-doc-template-request-dto.ts +1 -1
- package/models/list-doc-templates-response-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-layouts-response-class.ts +1 -1
- package/models/list-product-documents-response-class.ts +1 -1
- package/models/list-request-dto.ts +1 -1
- package/models/list-search-keywords-request-dto.ts +1 -1
- package/models/list-search-keywords-response-class.ts +1 -1
- package/models/list-searchable-document-owners-request-dto.ts +40 -0
- package/models/list-searchable-document-owners-response-class.ts +1 -1
- package/models/list-searchable-documents-request-dto.ts +17 -1
- package/models/list-searchable-documents-response-class.ts +1 -1
- package/models/product-document-class.ts +1 -1
- package/models/searchable-document-class.ts +1 -1
- package/models/searchable-document-owner-class.ts +1 -1
- package/models/update-doc-template-request-dto.ts +1 -1
- package/models/update-doc-template-response-class.ts +1 -1
- package/models/update-document-request-dto.ts +1 -1
- package/models/update-document-response-class.ts +1 -1
- package/models/update-html-template-dto.ts +1 -1
- package/models/update-layout-request-dto.ts +1 -1
- package/models/update-layout-response-class.ts +1 -1
- package/models/upload-product-document-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,7 @@ models/list-product-documents-response-class.ts
|
|
|
49
49
|
models/list-request-dto.ts
|
|
50
50
|
models/list-search-keywords-request-dto.ts
|
|
51
51
|
models/list-search-keywords-response-class.ts
|
|
52
|
+
models/list-searchable-document-owners-request-dto.ts
|
|
52
53
|
models/list-searchable-document-owners-response-class.ts
|
|
53
54
|
models/list-searchable-documents-request-dto.ts
|
|
54
55
|
models/list-searchable-documents-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk@1.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.2.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.2.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
package/api/documents-api.ts
CHANGED
package/api/layouts-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL DocumentService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -38,10 +38,11 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
|
|
|
38
38
|
* @param {string} searchText Text to search in the documents.
|
|
39
39
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
40
40
|
* @param {string} [authorization] Bearer Token
|
|
41
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
41
42
|
* @param {*} [options] Override http request option.
|
|
42
43
|
* @throws {RequiredError}
|
|
43
44
|
*/
|
|
44
|
-
listSearchableDocuments: async (searchText: string, ownerIds: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
listSearchableDocuments: async (searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
46
|
// verify required parameter 'searchText' is not null or undefined
|
|
46
47
|
assertParamExists('listSearchableDocuments', 'searchText', searchText)
|
|
47
48
|
// verify required parameter 'ownerIds' is not null or undefined
|
|
@@ -72,6 +73,10 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
|
|
|
72
73
|
localVarQueryParameter['ownerIds'] = ownerIds;
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
if (product !== undefined) {
|
|
77
|
+
localVarQueryParameter['product'] = product;
|
|
78
|
+
}
|
|
79
|
+
|
|
75
80
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
81
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
82
|
}
|
|
@@ -103,11 +108,12 @@ export const SearchableDocumentsApiFp = function(configuration?: Configuration)
|
|
|
103
108
|
* @param {string} searchText Text to search in the documents.
|
|
104
109
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
105
110
|
* @param {string} [authorization] Bearer Token
|
|
111
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
106
112
|
* @param {*} [options] Override http request option.
|
|
107
113
|
* @throws {RequiredError}
|
|
108
114
|
*/
|
|
109
|
-
async listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>> {
|
|
110
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, options);
|
|
115
|
+
async listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>> {
|
|
116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options);
|
|
111
117
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
112
118
|
},
|
|
113
119
|
}
|
|
@@ -126,11 +132,12 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
|
|
|
126
132
|
* @param {string} searchText Text to search in the documents.
|
|
127
133
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
128
134
|
* @param {string} [authorization] Bearer Token
|
|
135
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
129
136
|
* @param {*} [options] Override http request option.
|
|
130
137
|
* @throws {RequiredError}
|
|
131
138
|
*/
|
|
132
|
-
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: any): AxiosPromise<ListSearchableDocumentsResponseClass> {
|
|
133
|
-
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, options).then((request) => request(axios, basePath));
|
|
139
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListSearchableDocumentsResponseClass> {
|
|
140
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then((request) => request(axios, basePath));
|
|
134
141
|
},
|
|
135
142
|
};
|
|
136
143
|
};
|
|
@@ -161,6 +168,13 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
161
168
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
162
169
|
*/
|
|
163
170
|
readonly authorization?: string
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* PBM product the documents belongs to.
|
|
174
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
175
|
+
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
176
|
+
*/
|
|
177
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
|
|
164
178
|
}
|
|
165
179
|
|
|
166
180
|
/**
|
|
@@ -179,6 +193,6 @@ export class SearchableDocumentsApi extends BaseAPI {
|
|
|
179
193
|
* @memberof SearchableDocumentsApi
|
|
180
194
|
*/
|
|
181
195
|
public listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig) {
|
|
182
|
-
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
196
|
+
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
|
|
183
197
|
}
|
|
184
198
|
}
|
package/api.ts
CHANGED
package/base.ts
CHANGED
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL DocumentService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -144,7 +144,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
144
144
|
* The EMIL DocumentService API description
|
|
145
145
|
*
|
|
146
146
|
* The version of the OpenAPI document: 1.0
|
|
147
|
-
*
|
|
147
|
+
* Contact: kontakt@emil.de
|
|
148
148
|
*
|
|
149
149
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
150
150
|
* https://openapi-generator.tech
|
package/configuration.ts
CHANGED
package/dist/api/layouts-api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL DocumentService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -24,10 +24,11 @@ export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: C
|
|
|
24
24
|
* @param {string} searchText Text to search in the documents.
|
|
25
25
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
27
28
|
* @param {*} [options] Override http request option.
|
|
28
29
|
* @throws {RequiredError}
|
|
29
30
|
*/
|
|
30
|
-
listSearchableDocuments: (searchText: string, ownerIds: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
listSearchableDocuments: (searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* SearchableDocumentsApi - functional programming interface
|
|
@@ -40,10 +41,11 @@ export declare const SearchableDocumentsApiFp: (configuration?: Configuration) =
|
|
|
40
41
|
* @param {string} searchText Text to search in the documents.
|
|
41
42
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
42
43
|
* @param {string} [authorization] Bearer Token
|
|
44
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
43
45
|
* @param {*} [options] Override http request option.
|
|
44
46
|
* @throws {RequiredError}
|
|
45
47
|
*/
|
|
46
|
-
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>>;
|
|
48
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>>;
|
|
47
49
|
};
|
|
48
50
|
/**
|
|
49
51
|
* SearchableDocumentsApi - factory interface
|
|
@@ -56,10 +58,11 @@ export declare const SearchableDocumentsApiFactory: (configuration?: Configurati
|
|
|
56
58
|
* @param {string} searchText Text to search in the documents.
|
|
57
59
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
58
60
|
* @param {string} [authorization] Bearer Token
|
|
61
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
59
62
|
* @param {*} [options] Override http request option.
|
|
60
63
|
* @throws {RequiredError}
|
|
61
64
|
*/
|
|
62
|
-
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: any): AxiosPromise<ListSearchableDocumentsResponseClass>;
|
|
65
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListSearchableDocumentsResponseClass>;
|
|
63
66
|
};
|
|
64
67
|
/**
|
|
65
68
|
* Request parameters for listSearchableDocuments operation in SearchableDocumentsApi.
|
|
@@ -85,6 +88,12 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
85
88
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
86
89
|
*/
|
|
87
90
|
readonly authorization?: string;
|
|
91
|
+
/**
|
|
92
|
+
* PBM product the documents belongs to.
|
|
93
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
94
|
+
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
95
|
+
*/
|
|
96
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability';
|
|
88
97
|
}
|
|
89
98
|
/**
|
|
90
99
|
* SearchableDocumentsApi - object-oriented interface
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL DocumentService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -102,10 +102,11 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* @param {string} searchText Text to search in the documents.
|
|
103
103
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
104
104
|
* @param {string} [authorization] Bearer Token
|
|
105
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
listSearchableDocuments: function (searchText, ownerIds, authorization, options) {
|
|
109
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
109
110
|
if (options === void 0) { options = {}; }
|
|
110
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -138,6 +139,9 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
138
139
|
if (ownerIds !== undefined) {
|
|
139
140
|
localVarQueryParameter['ownerIds'] = ownerIds;
|
|
140
141
|
}
|
|
142
|
+
if (product !== undefined) {
|
|
143
|
+
localVarQueryParameter['product'] = product;
|
|
144
|
+
}
|
|
141
145
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
142
146
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
143
147
|
}
|
|
@@ -168,15 +172,16 @@ var SearchableDocumentsApiFp = function (configuration) {
|
|
|
168
172
|
* @param {string} searchText Text to search in the documents.
|
|
169
173
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
170
174
|
* @param {string} [authorization] Bearer Token
|
|
175
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
171
176
|
* @param {*} [options] Override http request option.
|
|
172
177
|
* @throws {RequiredError}
|
|
173
178
|
*/
|
|
174
|
-
listSearchableDocuments: function (searchText, ownerIds, authorization, options) {
|
|
179
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
175
180
|
return __awaiter(this, void 0, void 0, function () {
|
|
176
181
|
var localVarAxiosArgs;
|
|
177
182
|
return __generator(this, function (_a) {
|
|
178
183
|
switch (_a.label) {
|
|
179
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, options)];
|
|
184
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options)];
|
|
180
185
|
case 1:
|
|
181
186
|
localVarAxiosArgs = _a.sent();
|
|
182
187
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -200,11 +205,12 @@ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
200
205
|
* @param {string} searchText Text to search in the documents.
|
|
201
206
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
202
207
|
* @param {string} [authorization] Bearer Token
|
|
208
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
203
209
|
* @param {*} [options] Override http request option.
|
|
204
210
|
* @throws {RequiredError}
|
|
205
211
|
*/
|
|
206
|
-
listSearchableDocuments: function (searchText, ownerIds, authorization, options) {
|
|
207
|
-
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
212
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
213
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then(function (request) { return request(axios, basePath); });
|
|
208
214
|
},
|
|
209
215
|
};
|
|
210
216
|
};
|
|
@@ -230,7 +236,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
|
|
|
230
236
|
*/
|
|
231
237
|
SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
|
|
232
238
|
var _this = this;
|
|
233
|
-
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
239
|
+
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
234
240
|
};
|
|
235
241
|
return SearchableDocumentsApi;
|
|
236
242
|
}(base_1.BaseAPI));
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL DocumentService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -69,7 +69,7 @@ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios
|
|
|
69
69
|
* The EMIL DocumentService API description
|
|
70
70
|
*
|
|
71
71
|
* The version of the OpenAPI document: 1.0
|
|
72
|
-
*
|
|
72
|
+
* Contact: kontakt@emil.de
|
|
73
73
|
*
|
|
74
74
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
75
75
|
* https://openapi-generator.tech
|
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED