@emilgroup/document-sdk 1.26.0 → 1.27.1-beta.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 +36 -0
- package/README.md +2 -2
- package/api/document-templates-api.ts +67 -71
- package/api/documents-api.ts +44 -18
- package/api/docx-templates-api.ts +24 -12
- package/api/layouts-api.ts +20 -10
- package/api/product-documents-api.ts +14 -8
- package/api/search-keywords-api.ts +4 -2
- package/api/searchable-document-owners-api.ts +4 -2
- package/api/searchable-documents-api.ts +16 -16
- package/base.ts +15 -7
- package/dist/api/document-templates-api.d.ts +59 -54
- package/dist/api/document-templates-api.js +34 -47
- package/dist/api/documents-api.d.ts +37 -22
- package/dist/api/documents-api.js +12 -6
- package/dist/api/docx-templates-api.d.ts +24 -18
- package/dist/api/layouts-api.d.ts +20 -15
- package/dist/api/product-documents-api.d.ts +15 -12
- package/dist/api/search-keywords-api.d.ts +4 -3
- package/dist/api/searchable-document-owners-api.d.ts +4 -3
- package/dist/api/searchable-documents-api.d.ts +13 -12
- package/dist/api/searchable-documents-api.js +9 -11
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/create-doc-template-request-dto.d.ts +2 -2
- package/dist/models/create-doc-template-response-class.d.ts +25 -0
- package/dist/models/create-doc-template-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +10 -10
- package/dist/models/create-document-sync-response-class.d.ts +25 -0
- package/dist/models/create-document-sync-response-class.js +15 -0
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
- 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-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/doc-template-class.d.ts +92 -0
- package/dist/models/doc-template-class.js +15 -0
- package/dist/models/document-class.d.ts +165 -0
- package/dist/models/document-class.js +53 -0
- package/dist/models/docx-template-class.d.ts +90 -0
- package/dist/models/docx-template-class.js +15 -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-docx-template-download-url-response-class.d.ts +24 -0
- package/dist/models/get-docx-template-download-url-response-class.js +15 -0
- package/dist/models/get-docx-template-response-class.d.ts +25 -0
- package/dist/models/get-docx-template-response-class.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/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/get-product-document-response-class.d.ts +25 -0
- package/dist/models/get-product-document-response-class.js +15 -0
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
- package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/grpc-update-doc-template-request-dto.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 +36 -0
- package/dist/models/index.js +36 -0
- package/dist/models/layout-class.d.ts +79 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-doc-template-request-dto.d.ts +54 -0
- package/dist/models/list-doc-template-request-dto.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-docx-templates-response-class.d.ts +31 -0
- package/dist/models/list-docx-templates-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-search-keywords-response-class.d.ts +24 -0
- package/dist/models/list-search-keywords-response-class.js +15 -0
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +8 -1
- package/dist/models/list-searchable-document-owners-request-dto.js +7 -0
- package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
- package/dist/models/list-searchable-document-owners-response-class.js +15 -0
- package/dist/models/list-searchable-documents-request-dto.d.ts +8 -1
- package/dist/models/list-searchable-documents-request-dto.js +7 -0
- package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
- package/dist/models/list-searchable-documents-response-class.js +15 -0
- package/dist/models/searchable-document-class.d.ts +66 -0
- package/dist/models/searchable-document-class.js +15 -0
- package/dist/models/searchable-document-owner-class.d.ts +30 -0
- package/dist/models/searchable-document-owner-class.js +15 -0
- package/dist/models/update-doc-template-request-dto.d.ts +2 -2
- 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 +5 -5
- package/dist/models/update-document-response-class.d.ts +25 -0
- package/dist/models/update-document-response-class.js +15 -0
- package/dist/models/update-docx-template-response-class.d.ts +25 -0
- package/dist/models/update-docx-template-response-class.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/dist/models/upload-docx-template-request-dto.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +2 -2
- package/models/create-doc-template-request-dto.ts +2 -2
- package/models/create-doc-template-response-class.ts +31 -0
- package/models/create-document-request-dto.ts +10 -10
- package/models/create-document-sync-response-class.ts +31 -0
- package/models/create-layout-response-class.ts +31 -0
- package/models/create-presigned-post-request-dto.ts +4 -4
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/delete-response-class.ts +30 -0
- package/models/doc-template-class.ts +98 -0
- package/models/document-class.ts +175 -0
- package/models/docx-template-class.ts +96 -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-docx-template-download-url-response-class.ts +30 -0
- package/models/get-docx-template-response-class.ts +31 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/get-product-document-download-url-response-class.ts +30 -0
- package/models/get-product-document-response-class.ts +31 -0
- package/models/get-signed-s3-key-url-response-class.ts +30 -0
- package/models/grpc-create-doc-template-request-dto.ts +61 -0
- package/models/grpc-update-doc-template-request-dto.ts +67 -0
- package/models/html-template-class.ts +75 -0
- package/models/index.ts +36 -0
- package/models/layout-class.ts +85 -0
- package/models/list-doc-template-request-dto.ts +60 -0
- package/models/list-doc-templates-response-class.ts +37 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/list-docx-templates-response-class.ts +37 -0
- package/models/list-layouts-response-class.ts +37 -0
- package/models/list-search-keywords-response-class.ts +30 -0
- package/models/list-searchable-document-owners-request-dto.ts +11 -1
- package/models/list-searchable-document-owners-response-class.ts +31 -0
- package/models/list-searchable-documents-request-dto.ts +11 -1
- package/models/list-searchable-documents-response-class.ts +37 -0
- package/models/searchable-document-class.ts +72 -0
- package/models/searchable-document-owner-class.ts +36 -0
- package/models/update-doc-template-request-dto.ts +2 -2
- package/models/update-doc-template-response-class.ts +31 -0
- package/models/update-document-request-dto.ts +5 -5
- package/models/update-document-response-class.ts +31 -0
- package/models/update-docx-template-response-class.ts +31 -0
- package/models/update-layout-response-class.ts +31 -0
- package/models/upload-docx-template-request-dto.ts +1 -1
- package/models/upload-product-document-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePresignedPostResponseClass } from '../models';
|
|
16
|
+
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
17
|
+
import { GetProductDocumentResponseClass } from '../models';
|
|
15
18
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
16
19
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
17
20
|
/**
|
|
@@ -91,7 +94,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
91
94
|
* @param {*} [options] Override http request option.
|
|
92
95
|
* @throws {RequiredError}
|
|
93
96
|
*/
|
|
94
|
-
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
97
|
+
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
95
98
|
/**
|
|
96
99
|
* Get a pre-signed download url for the given product document.
|
|
97
100
|
* @summary Get pre-signed url for downloading product document
|
|
@@ -102,7 +105,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
102
105
|
* @param {*} [options] Override http request option.
|
|
103
106
|
* @throws {RequiredError}
|
|
104
107
|
*/
|
|
105
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
108
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
106
109
|
/**
|
|
107
110
|
* Get a product document.
|
|
108
111
|
* @summary Retrieve the product document
|
|
@@ -112,7 +115,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
112
115
|
* @param {*} [options] Override http request option.
|
|
113
116
|
* @throws {RequiredError}
|
|
114
117
|
*/
|
|
115
|
-
getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
118
|
+
getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentResponseClass>>;
|
|
116
119
|
/**
|
|
117
120
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
118
121
|
* @summary List product documents
|
|
@@ -138,7 +141,7 @@ export declare const ProductDocumentsApiFp: (configuration?: Configuration) => {
|
|
|
138
141
|
* @param {*} [options] Override http request option.
|
|
139
142
|
* @throws {RequiredError}
|
|
140
143
|
*/
|
|
141
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
144
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
|
|
142
145
|
};
|
|
143
146
|
/**
|
|
144
147
|
* ProductDocumentsApi - factory interface
|
|
@@ -154,7 +157,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
154
157
|
* @param {*} [options] Override http request option.
|
|
155
158
|
* @throws {RequiredError}
|
|
156
159
|
*/
|
|
157
|
-
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<
|
|
160
|
+
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
158
161
|
/**
|
|
159
162
|
* Get a pre-signed download url for the given product document.
|
|
160
163
|
* @summary Get pre-signed url for downloading product document
|
|
@@ -165,7 +168,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
165
168
|
* @param {*} [options] Override http request option.
|
|
166
169
|
* @throws {RequiredError}
|
|
167
170
|
*/
|
|
168
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<
|
|
171
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
169
172
|
/**
|
|
170
173
|
* Get a product document.
|
|
171
174
|
* @summary Retrieve the product document
|
|
@@ -175,7 +178,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
175
178
|
* @param {*} [options] Override http request option.
|
|
176
179
|
* @throws {RequiredError}
|
|
177
180
|
*/
|
|
178
|
-
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<
|
|
181
|
+
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentResponseClass>;
|
|
179
182
|
/**
|
|
180
183
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
181
184
|
* @summary List product documents
|
|
@@ -201,7 +204,7 @@ export declare const ProductDocumentsApiFactory: (configuration?: Configuration,
|
|
|
201
204
|
* @param {*} [options] Override http request option.
|
|
202
205
|
* @throws {RequiredError}
|
|
203
206
|
*/
|
|
204
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
207
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
|
|
205
208
|
};
|
|
206
209
|
/**
|
|
207
210
|
* Request parameters for deleteProductDocument operation in ProductDocumentsApi.
|
|
@@ -385,7 +388,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
385
388
|
* @throws {RequiredError}
|
|
386
389
|
* @memberof ProductDocumentsApi
|
|
387
390
|
*/
|
|
388
|
-
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
391
|
+
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
389
392
|
/**
|
|
390
393
|
* Get a pre-signed download url for the given product document.
|
|
391
394
|
* @summary Get pre-signed url for downloading product document
|
|
@@ -394,7 +397,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
394
397
|
* @throws {RequiredError}
|
|
395
398
|
* @memberof ProductDocumentsApi
|
|
396
399
|
*/
|
|
397
|
-
downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
400
|
+
downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any>>;
|
|
398
401
|
/**
|
|
399
402
|
* Get a product document.
|
|
400
403
|
* @summary Retrieve the product document
|
|
@@ -403,7 +406,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
403
406
|
* @throws {RequiredError}
|
|
404
407
|
* @memberof ProductDocumentsApi
|
|
405
408
|
*/
|
|
406
|
-
getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
409
|
+
getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any>>;
|
|
407
410
|
/**
|
|
408
411
|
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
409
412
|
* @summary List product documents
|
|
@@ -421,5 +424,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
421
424
|
* @throws {RequiredError}
|
|
422
425
|
* @memberof ProductDocumentsApi
|
|
423
426
|
*/
|
|
424
|
-
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
427
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
|
|
425
428
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListSearchKeywordsResponseClass } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* SearchKeywordsApi - axios parameter creator
|
|
17
18
|
* @export
|
|
@@ -40,7 +41,7 @@ export declare const SearchKeywordsApiFp: (configuration?: Configuration) => {
|
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
44
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>>;
|
|
44
45
|
};
|
|
45
46
|
/**
|
|
46
47
|
* SearchKeywordsApi - factory interface
|
|
@@ -55,7 +56,7 @@ export declare const SearchKeywordsApiFactory: (configuration?: Configuration, b
|
|
|
55
56
|
* @param {*} [options] Override http request option.
|
|
56
57
|
* @throws {RequiredError}
|
|
57
58
|
*/
|
|
58
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<
|
|
59
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass>;
|
|
59
60
|
};
|
|
60
61
|
/**
|
|
61
62
|
* Request parameters for listSearchKeywords operation in SearchKeywordsApi.
|
|
@@ -91,5 +92,5 @@ export declare class SearchKeywordsApi extends BaseAPI {
|
|
|
91
92
|
* @throws {RequiredError}
|
|
92
93
|
* @memberof SearchKeywordsApi
|
|
93
94
|
*/
|
|
94
|
-
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
95
|
+
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any>>;
|
|
95
96
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListSearchableDocumentOwnersResponseClass } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* SearchableDocumentOwnersApi - axios parameter creator
|
|
17
18
|
* @export
|
|
@@ -52,7 +53,7 @@ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configurati
|
|
|
52
53
|
* @param {*} [options] Override http request option.
|
|
53
54
|
* @throws {RequiredError}
|
|
54
55
|
*/
|
|
55
|
-
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
56
|
+
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
|
|
56
57
|
};
|
|
57
58
|
/**
|
|
58
59
|
* SearchableDocumentOwnersApi - factory interface
|
|
@@ -73,7 +74,7 @@ export declare const SearchableDocumentOwnersApiFactory: (configuration?: Config
|
|
|
73
74
|
* @param {*} [options] Override http request option.
|
|
74
75
|
* @throws {RequiredError}
|
|
75
76
|
*/
|
|
76
|
-
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
77
|
+
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
|
|
77
78
|
};
|
|
78
79
|
/**
|
|
79
80
|
* Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
|
|
@@ -145,5 +146,5 @@ export declare class SearchableDocumentOwnersApi extends BaseAPI {
|
|
|
145
146
|
* @throws {RequiredError}
|
|
146
147
|
* @memberof SearchableDocumentOwnersApi
|
|
147
148
|
*/
|
|
148
|
-
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
149
|
+
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
|
|
149
150
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListSearchableDocumentsResponseClass } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* SearchableDocumentsApi - axios parameter creator
|
|
17
18
|
* @export
|
|
@@ -22,12 +23,12 @@ export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: C
|
|
|
22
23
|
* @summary List searchable documents
|
|
23
24
|
* @param {string} searchText Text to search in the documents.
|
|
24
25
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
25
|
-
* @param {string} product PBM product the documents belongs to.
|
|
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,
|
|
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
|
|
@@ -39,12 +40,12 @@ export declare const SearchableDocumentsApiFp: (configuration?: Configuration) =
|
|
|
39
40
|
* @summary List searchable documents
|
|
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
|
-
* @param {string} product PBM product the documents belongs to.
|
|
43
43
|
* @param {string} [authorization] Bearer Token
|
|
44
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
44
45
|
* @param {*} [options] Override http request option.
|
|
45
46
|
* @throws {RequiredError}
|
|
46
47
|
*/
|
|
47
|
-
listSearchableDocuments(searchText: string, ownerIds: string,
|
|
48
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>>;
|
|
48
49
|
};
|
|
49
50
|
/**
|
|
50
51
|
* SearchableDocumentsApi - factory interface
|
|
@@ -56,12 +57,12 @@ export declare const SearchableDocumentsApiFactory: (configuration?: Configurati
|
|
|
56
57
|
* @summary List searchable documents
|
|
57
58
|
* @param {string} searchText Text to search in the documents.
|
|
58
59
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
59
|
-
* @param {string} product PBM product the documents belongs to.
|
|
60
60
|
* @param {string} [authorization] Bearer Token
|
|
61
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
61
62
|
* @param {*} [options] Override http request option.
|
|
62
63
|
* @throws {RequiredError}
|
|
63
64
|
*/
|
|
64
|
-
listSearchableDocuments(searchText: string, ownerIds: string,
|
|
65
|
+
listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListSearchableDocumentsResponseClass>;
|
|
65
66
|
};
|
|
66
67
|
/**
|
|
67
68
|
* Request parameters for listSearchableDocuments operation in SearchableDocumentsApi.
|
|
@@ -82,17 +83,17 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
82
83
|
*/
|
|
83
84
|
readonly ownerIds: string;
|
|
84
85
|
/**
|
|
85
|
-
*
|
|
86
|
+
* Bearer Token
|
|
86
87
|
* @type {string}
|
|
87
88
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
88
89
|
*/
|
|
89
|
-
readonly
|
|
90
|
+
readonly authorization?: string;
|
|
90
91
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {
|
|
92
|
+
* PBM product the documents belongs to.
|
|
93
|
+
* @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
|
|
93
94
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
94
95
|
*/
|
|
95
|
-
readonly
|
|
96
|
+
readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability';
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
99
|
* SearchableDocumentsApi - object-oriented interface
|
|
@@ -109,5 +110,5 @@ export declare class SearchableDocumentsApi extends BaseAPI {
|
|
|
109
110
|
* @throws {RequiredError}
|
|
110
111
|
* @memberof SearchableDocumentsApi
|
|
111
112
|
*/
|
|
112
|
-
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
113
|
+
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any>>;
|
|
113
114
|
}
|
|
@@ -97,12 +97,12 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* @summary List searchable documents
|
|
98
98
|
* @param {string} searchText Text to search in the documents.
|
|
99
99
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
100
|
-
* @param {string} product PBM product the documents belongs to.
|
|
101
100
|
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
102
102
|
* @param {*} [options] Override http request option.
|
|
103
103
|
* @throws {RequiredError}
|
|
104
104
|
*/
|
|
105
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
105
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
106
106
|
if (options === void 0) { options = {}; }
|
|
107
107
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -113,8 +113,6 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
113
113
|
(0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
|
|
114
114
|
// verify required parameter 'ownerIds' is not null or undefined
|
|
115
115
|
(0, common_1.assertParamExists)('listSearchableDocuments', 'ownerIds', ownerIds);
|
|
116
|
-
// verify required parameter 'product' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('listSearchableDocuments', 'product', product);
|
|
118
116
|
localVarPath = "/documentservice/v1/searchable-documents";
|
|
119
117
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
118
|
if (configuration) {
|
|
@@ -169,17 +167,17 @@ var SearchableDocumentsApiFp = function (configuration) {
|
|
|
169
167
|
* @summary List searchable documents
|
|
170
168
|
* @param {string} searchText Text to search in the documents.
|
|
171
169
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
172
|
-
* @param {string} product PBM product the documents belongs to.
|
|
173
170
|
* @param {string} [authorization] Bearer Token
|
|
171
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
174
172
|
* @param {*} [options] Override http request option.
|
|
175
173
|
* @throws {RequiredError}
|
|
176
174
|
*/
|
|
177
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
175
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
178
176
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
177
|
var localVarAxiosArgs;
|
|
180
178
|
return __generator(this, function (_a) {
|
|
181
179
|
switch (_a.label) {
|
|
182
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds,
|
|
180
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options)];
|
|
183
181
|
case 1:
|
|
184
182
|
localVarAxiosArgs = _a.sent();
|
|
185
183
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -202,13 +200,13 @@ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
202
200
|
* @summary List searchable documents
|
|
203
201
|
* @param {string} searchText Text to search in the documents.
|
|
204
202
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
205
|
-
* @param {string} product PBM product the documents belongs to.
|
|
206
203
|
* @param {string} [authorization] Bearer Token
|
|
204
|
+
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
207
205
|
* @param {*} [options] Override http request option.
|
|
208
206
|
* @throws {RequiredError}
|
|
209
207
|
*/
|
|
210
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
211
|
-
return localVarFp.listSearchableDocuments(searchText, ownerIds,
|
|
208
|
+
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
209
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then(function (request) { return request(axios, basePath); });
|
|
212
210
|
},
|
|
213
211
|
};
|
|
214
212
|
};
|
|
@@ -234,7 +232,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
|
|
|
234
232
|
*/
|
|
235
233
|
SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
|
|
236
234
|
var _this = this;
|
|
237
|
-
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.
|
|
235
|
+
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); });
|
|
238
236
|
};
|
|
239
237
|
return SearchableDocumentsApi;
|
|
240
238
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -52,11 +52,13 @@ export declare class BaseAPI {
|
|
|
52
52
|
protected axios: AxiosInstance;
|
|
53
53
|
protected configuration: Configuration | undefined;
|
|
54
54
|
private tokenData?;
|
|
55
|
+
private permissions;
|
|
55
56
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
57
|
selectEnvironment(env: Environment): void;
|
|
57
58
|
selectBasePath(path: string): void;
|
|
59
|
+
getPermissions(): Array<string>;
|
|
58
60
|
authorize(username: string, password: string): Promise<void>;
|
|
59
|
-
refreshTokenInternal(): Promise<
|
|
61
|
+
refreshTokenInternal(): Promise<LoginClass>;
|
|
60
62
|
private storeTokenData;
|
|
61
63
|
loadTokenData(): void;
|
|
62
64
|
cleanTokenData(): void;
|
package/dist/base.js
CHANGED
|
@@ -121,6 +121,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
121
121
|
if (axios === void 0) { axios = axios_1.default; }
|
|
122
122
|
this.basePath = basePath;
|
|
123
123
|
this.axios = axios;
|
|
124
|
+
this.permissions = [];
|
|
124
125
|
this.loadTokenData();
|
|
125
126
|
if (configuration) {
|
|
126
127
|
this.configuration = configuration;
|
|
@@ -143,11 +144,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
143
144
|
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
145
|
this.configuration.basePath = path;
|
|
145
146
|
};
|
|
147
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
148
|
+
return this.permissions;
|
|
149
|
+
};
|
|
146
150
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
147
151
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var options, response, accessToken;
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
152
|
+
var options, response, _a, accessToken, permissions;
|
|
153
|
+
return __generator(this, function (_b) {
|
|
154
|
+
switch (_b.label) {
|
|
151
155
|
case 0:
|
|
152
156
|
options = {
|
|
153
157
|
method: 'POST',
|
|
@@ -161,12 +165,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
165
|
};
|
|
162
166
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
163
167
|
case 1:
|
|
164
|
-
response =
|
|
165
|
-
|
|
168
|
+
response = _b.sent();
|
|
169
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
166
170
|
this.configuration.username = username;
|
|
167
171
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
168
172
|
this.tokenData.username = username;
|
|
169
173
|
this.tokenData.accessToken = accessToken;
|
|
174
|
+
this.permissions = permissions;
|
|
170
175
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
171
176
|
return [2 /*return*/];
|
|
172
177
|
}
|
|
@@ -175,13 +180,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
175
180
|
};
|
|
176
181
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
177
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
-
var username, options,
|
|
183
|
+
var username, options, response;
|
|
179
184
|
return __generator(this, function (_a) {
|
|
180
185
|
switch (_a.label) {
|
|
181
186
|
case 0:
|
|
182
187
|
username = this.configuration.username;
|
|
183
188
|
if (!username) {
|
|
184
|
-
|
|
189
|
+
throw new Error('Failed to refresh token.');
|
|
185
190
|
}
|
|
186
191
|
options = {
|
|
187
192
|
method: 'POST',
|
|
@@ -194,8 +199,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
194
199
|
};
|
|
195
200
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
196
201
|
case 1:
|
|
197
|
-
|
|
198
|
-
return [2 /*return*/,
|
|
202
|
+
response = _a.sent();
|
|
203
|
+
return [2 /*return*/, response.data];
|
|
199
204
|
}
|
|
200
205
|
});
|
|
201
206
|
});
|
|
@@ -221,22 +226,23 @@ var BaseAPI = /** @class */ (function () {
|
|
|
221
226
|
axios.interceptors.response.use(function (res) {
|
|
222
227
|
return res;
|
|
223
228
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
225
|
-
return __generator(this, function (
|
|
226
|
-
switch (
|
|
229
|
+
var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
|
|
230
|
+
return __generator(this, function (_c) {
|
|
231
|
+
switch (_c.label) {
|
|
227
232
|
case 0:
|
|
228
233
|
originalConfig = err.config;
|
|
229
234
|
if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
|
|
230
235
|
if (!((err.response.status === 401 || err.response.status === 403)
|
|
231
236
|
&& !originalConfig._retry)) return [3 /*break*/, 4];
|
|
232
237
|
originalConfig._retry = true;
|
|
233
|
-
|
|
238
|
+
_c.label = 1;
|
|
234
239
|
case 1:
|
|
235
|
-
|
|
240
|
+
_c.trys.push([1, 3, , 4]);
|
|
236
241
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
237
242
|
case 2:
|
|
238
|
-
|
|
243
|
+
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
239
244
|
accessToken = "Bearer ".concat(tokenString);
|
|
245
|
+
this.permissions = permissions;
|
|
240
246
|
delete originalConfig.headers['Authorization'];
|
|
241
247
|
originalConfig.headers['Authorization'] = accessToken;
|
|
242
248
|
this.configuration.accessToken = accessToken;
|
|
@@ -244,7 +250,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
244
250
|
this.storeTokenData(this.tokenData);
|
|
245
251
|
return [2 /*return*/, axios(originalConfig)];
|
|
246
252
|
case 3:
|
|
247
|
-
_error_1 =
|
|
253
|
+
_error_1 = _c.sent();
|
|
248
254
|
if (_error_1.response && _error_1.response.data) {
|
|
249
255
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
250
256
|
}
|
|
@@ -255,13 +261,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
255
261
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
256
262
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
257
263
|
_retry_count++;
|
|
258
|
-
|
|
264
|
+
_c.label = 6;
|
|
259
265
|
case 6:
|
|
260
|
-
|
|
266
|
+
_c.trys.push([6, 8, , 9]);
|
|
261
267
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
262
268
|
case 7:
|
|
263
|
-
|
|
269
|
+
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
264
270
|
accessToken = "Bearer ".concat(tokenString);
|
|
271
|
+
this.permissions = permissions;
|
|
265
272
|
_retry = true;
|
|
266
273
|
originalConfig.headers['Authorization'] = accessToken;
|
|
267
274
|
this.configuration.accessToken = accessToken;
|
|
@@ -269,7 +276,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
276
|
this.storeTokenData(this.tokenData);
|
|
270
277
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
271
278
|
case 8:
|
|
272
|
-
_error_2 =
|
|
279
|
+
_error_2 = _c.sent();
|
|
273
280
|
if (_error_2.response && _error_2.response.data) {
|
|
274
281
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
275
282
|
}
|
|
@@ -45,11 +45,11 @@ export interface CreateDocTemplateRequestDto {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof CreateDocTemplateRequestDto
|
|
47
47
|
*/
|
|
48
|
-
'productSlug'
|
|
48
|
+
'productSlug'?: string;
|
|
49
49
|
/**
|
|
50
50
|
* The filename of the document template as it appears when sent to customers.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateDocTemplateRequestDto
|
|
53
53
|
*/
|
|
54
|
-
'label'
|
|
54
|
+
'label'?: string;
|
|
55
55
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL DocumentService
|
|
3
|
+
* The EMIL DocumentService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DocTemplateClass } from './doc-template-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateDocTemplateResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateDocTemplateResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Document template.
|
|
21
|
+
* @type {DocTemplateClass}
|
|
22
|
+
* @memberof CreateDocTemplateResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'template': DocTemplateClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL DocumentService
|
|
6
|
+
* The EMIL DocumentService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38,7 +38,7 @@ export interface CreateDocumentRequestDto {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateDocumentRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'strategy'
|
|
41
|
+
'strategy'?: CreateDocumentRequestDtoStrategyEnum;
|
|
42
42
|
/**
|
|
43
43
|
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
44
44
|
* @type {string}
|
|
@@ -50,25 +50,25 @@ export interface CreateDocumentRequestDto {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateDocumentRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'policyCode'
|
|
53
|
+
'policyCode'?: string;
|
|
54
54
|
/**
|
|
55
55
|
* Unique identifier of the account that this object belongs to.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CreateDocumentRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'accountCode'
|
|
59
|
+
'accountCode'?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Unique identifier of the lead that this object belongs to.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof CreateDocumentRequestDto
|
|
64
64
|
*/
|
|
65
|
-
'leadCode'
|
|
65
|
+
'leadCode'?: string;
|
|
66
66
|
/**
|
|
67
67
|
* Unique identifier referencing the entity.
|
|
68
68
|
* @type {number}
|
|
69
69
|
* @memberof CreateDocumentRequestDto
|
|
70
70
|
*/
|
|
71
|
-
'entityId'
|
|
71
|
+
'entityId'?: number;
|
|
72
72
|
/**
|
|
73
73
|
* Identifier of the service that requested the creation of this document.
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface CreateDocumentRequestDto {
|
|
|
80
80
|
* @type {object}
|
|
81
81
|
* @memberof CreateDocumentRequestDto
|
|
82
82
|
*/
|
|
83
|
-
'metadata'
|
|
83
|
+
'metadata'?: object;
|
|
84
84
|
/**
|
|
85
85
|
* Type of the document expressed with its file extension.
|
|
86
86
|
* @type {string}
|
|
@@ -92,25 +92,25 @@ export interface CreateDocumentRequestDto {
|
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof CreateDocumentRequestDto
|
|
94
94
|
*/
|
|
95
|
-
'filename'
|
|
95
|
+
'filename'?: string;
|
|
96
96
|
/**
|
|
97
97
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
98
98
|
* @type {string}
|
|
99
99
|
* @memberof CreateDocumentRequestDto
|
|
100
100
|
*/
|
|
101
|
-
'productSlug'
|
|
101
|
+
'productSlug'?: string;
|
|
102
102
|
/**
|
|
103
103
|
* If true, the default margins will be skipped when generating the document.
|
|
104
104
|
* @type {boolean}
|
|
105
105
|
* @memberof CreateDocumentRequestDto
|
|
106
106
|
*/
|
|
107
|
-
'shouldSkipDefaultMargins'
|
|
107
|
+
'shouldSkipDefaultMargins'?: boolean;
|
|
108
108
|
/**
|
|
109
109
|
* Type of the document engine to use to generate the document. Defaults to HTML.
|
|
110
110
|
* @type {string}
|
|
111
111
|
* @memberof CreateDocumentRequestDto
|
|
112
112
|
*/
|
|
113
|
-
'engine'
|
|
113
|
+
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
114
114
|
}
|
|
115
115
|
export declare const CreateDocumentRequestDtoStrategyEnum: {
|
|
116
116
|
readonly Sync: "Sync";
|