@emilgroup/document-sdk-node 1.3.0 → 1.4.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 +1 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +21 -7
- 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 +13 -4
- package/dist/api/document-templates-api.js +13 -7
- 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 +7 -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 +24 -1
- package/dist/models/product-document-class.js +12 -2
- 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 +7 -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 +7 -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 +25 -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 +7 -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-node@1.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.4.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.4.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -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
|
|
@@ -193,12 +193,13 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
193
193
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
194
194
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
195
195
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
196
|
+
* @param {string} [search] Search document templates by name | slug
|
|
196
197
|
* @param {string} [order] Order response by createdAt.
|
|
197
198
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
198
199
|
* @param {*} [options] Override http request option.
|
|
199
200
|
* @throws {RequiredError}
|
|
200
201
|
*/
|
|
201
|
-
listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
|
+
listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
202
203
|
const localVarPath = `/documentservice/v1/doc-templates`;
|
|
203
204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
205
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -229,6 +230,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
229
230
|
localVarQueryParameter['filter'] = filter;
|
|
230
231
|
}
|
|
231
232
|
|
|
233
|
+
if (search !== undefined) {
|
|
234
|
+
localVarQueryParameter['search'] = search;
|
|
235
|
+
}
|
|
236
|
+
|
|
232
237
|
if (order !== undefined) {
|
|
233
238
|
localVarQueryParameter['order'] = order;
|
|
234
239
|
}
|
|
@@ -357,13 +362,14 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
357
362
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
358
363
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
359
364
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
365
|
+
* @param {string} [search] Search document templates by name | slug
|
|
360
366
|
* @param {string} [order] Order response by createdAt.
|
|
361
367
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
362
368
|
* @param {*} [options] Override http request option.
|
|
363
369
|
* @throws {RequiredError}
|
|
364
370
|
*/
|
|
365
|
-
async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
|
|
366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options);
|
|
371
|
+
async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
367
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
374
|
},
|
|
369
375
|
/**
|
|
@@ -430,13 +436,14 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
430
436
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
431
437
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
432
438
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
439
|
+
* @param {string} [search] Search document templates by name | slug
|
|
433
440
|
* @param {string} [order] Order response by createdAt.
|
|
434
441
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
435
442
|
* @param {*} [options] Override http request option.
|
|
436
443
|
* @throws {RequiredError}
|
|
437
444
|
*/
|
|
438
|
-
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
|
|
439
|
-
return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
|
|
445
|
+
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
|
|
446
|
+
return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
447
|
},
|
|
441
448
|
/**
|
|
442
449
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -557,6 +564,13 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
|
557
564
|
*/
|
|
558
565
|
readonly filter?: string
|
|
559
566
|
|
|
567
|
+
/**
|
|
568
|
+
* Search document templates by name | slug
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof DocumentTemplatesApiListDocTemplates
|
|
571
|
+
*/
|
|
572
|
+
readonly search?: string
|
|
573
|
+
|
|
560
574
|
/**
|
|
561
575
|
* Order response by createdAt.
|
|
562
576
|
* @type {string}
|
|
@@ -652,7 +666,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
652
666
|
* @memberof DocumentTemplatesApi
|
|
653
667
|
*/
|
|
654
668
|
public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
655
|
-
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
669
|
+
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
656
670
|
}
|
|
657
671
|
|
|
658
672
|
/**
|
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
|
@@ -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
|
|
@@ -59,12 +59,13 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
|
|
|
59
59
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
60
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
61
61
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
62
|
+
* @param {string} [search] Search document templates by name | slug
|
|
62
63
|
* @param {string} [order] Order response by createdAt.
|
|
63
64
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
64
65
|
* @param {*} [options] Override http request option.
|
|
65
66
|
* @throws {RequiredError}
|
|
66
67
|
*/
|
|
67
|
-
listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
|
+
listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
69
|
/**
|
|
69
70
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
70
71
|
* @summary Update the document template
|
|
@@ -116,12 +117,13 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
|
|
|
116
117
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
117
118
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
118
119
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
120
|
+
* @param {string} [search] Search document templates by name | slug
|
|
119
121
|
* @param {string} [order] Order response by createdAt.
|
|
120
122
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
121
123
|
* @param {*} [options] Override http request option.
|
|
122
124
|
* @throws {RequiredError}
|
|
123
125
|
*/
|
|
124
|
-
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>>;
|
|
126
|
+
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>>;
|
|
125
127
|
/**
|
|
126
128
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
127
129
|
* @summary Update the document template
|
|
@@ -173,12 +175,13 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
|
|
|
173
175
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
174
176
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
175
177
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
178
|
+
* @param {string} [search] Search document templates by name | slug
|
|
176
179
|
* @param {string} [order] Order response by createdAt.
|
|
177
180
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
178
181
|
* @param {*} [options] Override http request option.
|
|
179
182
|
* @throws {RequiredError}
|
|
180
183
|
*/
|
|
181
|
-
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
|
|
184
|
+
listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
|
|
182
185
|
/**
|
|
183
186
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
184
187
|
* @summary Update the document template
|
|
@@ -283,6 +286,12 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
|
283
286
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
284
287
|
*/
|
|
285
288
|
readonly filter?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Search document templates by name | slug
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof DocumentTemplatesApiListDocTemplates
|
|
293
|
+
*/
|
|
294
|
+
readonly search?: string;
|
|
286
295
|
/**
|
|
287
296
|
* Order response by createdAt.
|
|
288
297
|
* @type {string}
|
|
@@ -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
|
|
@@ -252,12 +252,13 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
252
252
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
253
253
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
254
254
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
255
|
+
* @param {string} [search] Search document templates by name | slug
|
|
255
256
|
* @param {string} [order] Order response by createdAt.
|
|
256
257
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
257
258
|
* @param {*} [options] Override http request option.
|
|
258
259
|
* @throws {RequiredError}
|
|
259
260
|
*/
|
|
260
|
-
listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
261
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
261
262
|
if (options === void 0) { options = {}; }
|
|
262
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
263
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -289,6 +290,9 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
|
|
|
289
290
|
if (filter !== undefined) {
|
|
290
291
|
localVarQueryParameter['filter'] = filter;
|
|
291
292
|
}
|
|
293
|
+
if (search !== undefined) {
|
|
294
|
+
localVarQueryParameter['search'] = search;
|
|
295
|
+
}
|
|
292
296
|
if (order !== undefined) {
|
|
293
297
|
localVarQueryParameter['order'] = order;
|
|
294
298
|
}
|
|
@@ -443,17 +447,18 @@ var DocumentTemplatesApiFp = function (configuration) {
|
|
|
443
447
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
444
448
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
445
449
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
450
|
+
* @param {string} [search] Search document templates by name | slug
|
|
446
451
|
* @param {string} [order] Order response by createdAt.
|
|
447
452
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
448
453
|
* @param {*} [options] Override http request option.
|
|
449
454
|
* @throws {RequiredError}
|
|
450
455
|
*/
|
|
451
|
-
listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
456
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
452
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
453
458
|
var localVarAxiosArgs;
|
|
454
459
|
return __generator(this, function (_a) {
|
|
455
460
|
switch (_a.label) {
|
|
456
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options)];
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
457
462
|
case 1:
|
|
458
463
|
localVarAxiosArgs = _a.sent();
|
|
459
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -534,13 +539,14 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
|
|
|
534
539
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
535
540
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
536
541
|
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
542
|
+
* @param {string} [search] Search document templates by name | slug
|
|
537
543
|
* @param {string} [order] Order response by createdAt.
|
|
538
544
|
* @param {string} [expand] Expand response by bodyTemplate.
|
|
539
545
|
* @param {*} [options] Override http request option.
|
|
540
546
|
* @throws {RequiredError}
|
|
541
547
|
*/
|
|
542
|
-
listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
|
|
543
|
-
return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
548
|
+
listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
549
|
+
return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
544
550
|
},
|
|
545
551
|
/**
|
|
546
552
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -615,7 +621,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
|
|
|
615
621
|
DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
|
|
616
622
|
var _this = this;
|
|
617
623
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
618
|
-
return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
624
|
+
return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
619
625
|
};
|
|
620
626
|
/**
|
|
621
627
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
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
|