@emilgroup/document-sdk-node 1.28.0 → 1.28.2-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.
Files changed (153) hide show
  1. package/.openapi-generator/FILES +36 -0
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +67 -71
  4. package/api/documents-api.ts +39 -29
  5. package/api/docx-templates-api.ts +24 -12
  6. package/api/layouts-api.ts +20 -10
  7. package/api/product-documents-api.ts +14 -8
  8. package/api/search-keywords-api.ts +4 -2
  9. package/api/searchable-document-owners-api.ts +4 -2
  10. package/api/searchable-documents-api.ts +16 -16
  11. package/dist/api/document-templates-api.d.ts +59 -54
  12. package/dist/api/document-templates-api.js +34 -47
  13. package/dist/api/documents-api.d.ts +37 -31
  14. package/dist/api/documents-api.js +9 -11
  15. package/dist/api/docx-templates-api.d.ts +24 -18
  16. package/dist/api/layouts-api.d.ts +20 -15
  17. package/dist/api/product-documents-api.d.ts +15 -12
  18. package/dist/api/search-keywords-api.d.ts +4 -3
  19. package/dist/api/searchable-document-owners-api.d.ts +4 -3
  20. package/dist/api/searchable-documents-api.d.ts +13 -12
  21. package/dist/api/searchable-documents-api.js +9 -11
  22. package/dist/models/create-doc-template-request-dto.d.ts +2 -2
  23. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  24. package/dist/models/create-doc-template-response-class.js +15 -0
  25. package/dist/models/create-document-request-dto.d.ts +10 -10
  26. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  27. package/dist/models/create-document-sync-response-class.js +15 -0
  28. package/dist/models/create-layout-response-class.d.ts +25 -0
  29. package/dist/models/create-layout-response-class.js +15 -0
  30. package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
  31. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  32. package/dist/models/create-presigned-post-response-class.js +15 -0
  33. package/dist/models/delete-response-class.d.ts +24 -0
  34. package/dist/models/delete-response-class.js +15 -0
  35. package/dist/models/doc-template-class.d.ts +104 -0
  36. package/dist/models/doc-template-class.js +15 -0
  37. package/dist/models/document-class.d.ts +171 -0
  38. package/dist/models/document-class.js +53 -0
  39. package/dist/models/docx-template-class.d.ts +102 -0
  40. package/dist/models/docx-template-class.js +15 -0
  41. package/dist/models/download-document-request-dto.d.ts +30 -0
  42. package/dist/models/download-document-request-dto.js +15 -0
  43. package/dist/models/get-doc-template-request-dto.d.ts +30 -0
  44. package/dist/models/get-doc-template-request-dto.js +15 -0
  45. package/dist/models/get-doc-template-response-class.d.ts +25 -0
  46. package/dist/models/get-doc-template-response-class.js +15 -0
  47. package/dist/models/get-document-download-url-response-class.d.ts +24 -0
  48. package/dist/models/get-document-download-url-response-class.js +15 -0
  49. package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
  50. package/dist/models/get-docx-template-download-url-response-class.js +15 -0
  51. package/dist/models/get-docx-template-response-class.d.ts +25 -0
  52. package/dist/models/get-docx-template-response-class.js +15 -0
  53. package/dist/models/get-layout-response-class.d.ts +25 -0
  54. package/dist/models/get-layout-response-class.js +15 -0
  55. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  56. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  57. package/dist/models/get-product-document-response-class.d.ts +25 -0
  58. package/dist/models/get-product-document-response-class.js +15 -0
  59. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  60. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  61. package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
  62. package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
  63. package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
  64. package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
  65. package/dist/models/html-template-class.d.ts +78 -0
  66. package/dist/models/html-template-class.js +21 -0
  67. package/dist/models/index.d.ts +36 -0
  68. package/dist/models/index.js +36 -0
  69. package/dist/models/layout-class.d.ts +91 -0
  70. package/dist/models/layout-class.js +15 -0
  71. package/dist/models/list-doc-template-request-dto.d.ts +54 -0
  72. package/dist/models/list-doc-template-request-dto.js +15 -0
  73. package/dist/models/list-doc-templates-response-class.d.ts +31 -0
  74. package/dist/models/list-doc-templates-response-class.js +15 -0
  75. package/dist/models/list-documents-response-class.d.ts +31 -0
  76. package/dist/models/list-documents-response-class.js +15 -0
  77. package/dist/models/list-docx-templates-response-class.d.ts +31 -0
  78. package/dist/models/list-docx-templates-response-class.js +15 -0
  79. package/dist/models/list-layouts-response-class.d.ts +31 -0
  80. package/dist/models/list-layouts-response-class.js +15 -0
  81. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  82. package/dist/models/list-search-keywords-response-class.js +15 -0
  83. package/dist/models/list-searchable-document-owners-request-dto.d.ts +8 -1
  84. package/dist/models/list-searchable-document-owners-request-dto.js +7 -0
  85. package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
  86. package/dist/models/list-searchable-document-owners-response-class.js +15 -0
  87. package/dist/models/list-searchable-documents-request-dto.d.ts +8 -1
  88. package/dist/models/list-searchable-documents-request-dto.js +7 -0
  89. package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
  90. package/dist/models/list-searchable-documents-response-class.js +15 -0
  91. package/dist/models/searchable-document-class.d.ts +78 -0
  92. package/dist/models/searchable-document-class.js +15 -0
  93. package/dist/models/searchable-document-owner-class.d.ts +42 -0
  94. package/dist/models/searchable-document-owner-class.js +15 -0
  95. package/dist/models/update-doc-template-request-dto.d.ts +2 -2
  96. package/dist/models/update-doc-template-response-class.d.ts +25 -0
  97. package/dist/models/update-doc-template-response-class.js +15 -0
  98. package/dist/models/update-document-request-dto.d.ts +5 -5
  99. package/dist/models/update-document-response-class.d.ts +25 -0
  100. package/dist/models/update-document-response-class.js +15 -0
  101. package/dist/models/update-docx-template-response-class.d.ts +25 -0
  102. package/dist/models/update-docx-template-response-class.js +15 -0
  103. package/dist/models/update-layout-response-class.d.ts +25 -0
  104. package/dist/models/update-layout-response-class.js +15 -0
  105. package/dist/models/upload-docx-template-request-dto.d.ts +1 -1
  106. package/dist/models/upload-product-document-request-dto.d.ts +2 -2
  107. package/models/create-doc-template-request-dto.ts +2 -2
  108. package/models/create-doc-template-response-class.ts +31 -0
  109. package/models/create-document-request-dto.ts +10 -10
  110. package/models/create-document-sync-response-class.ts +31 -0
  111. package/models/create-layout-response-class.ts +31 -0
  112. package/models/create-presigned-post-request-dto.ts +4 -4
  113. package/models/create-presigned-post-response-class.ts +36 -0
  114. package/models/delete-response-class.ts +30 -0
  115. package/models/doc-template-class.ts +110 -0
  116. package/models/document-class.ts +181 -0
  117. package/models/docx-template-class.ts +108 -0
  118. package/models/download-document-request-dto.ts +36 -0
  119. package/models/get-doc-template-request-dto.ts +36 -0
  120. package/models/get-doc-template-response-class.ts +31 -0
  121. package/models/get-document-download-url-response-class.ts +30 -0
  122. package/models/get-docx-template-download-url-response-class.ts +30 -0
  123. package/models/get-docx-template-response-class.ts +31 -0
  124. package/models/get-layout-response-class.ts +31 -0
  125. package/models/get-product-document-download-url-response-class.ts +30 -0
  126. package/models/get-product-document-response-class.ts +31 -0
  127. package/models/get-signed-s3-key-url-response-class.ts +30 -0
  128. package/models/grpc-create-doc-template-request-dto.ts +61 -0
  129. package/models/grpc-update-doc-template-request-dto.ts +67 -0
  130. package/models/html-template-class.ts +87 -0
  131. package/models/index.ts +36 -0
  132. package/models/layout-class.ts +97 -0
  133. package/models/list-doc-template-request-dto.ts +60 -0
  134. package/models/list-doc-templates-response-class.ts +37 -0
  135. package/models/list-documents-response-class.ts +37 -0
  136. package/models/list-docx-templates-response-class.ts +37 -0
  137. package/models/list-layouts-response-class.ts +37 -0
  138. package/models/list-search-keywords-response-class.ts +30 -0
  139. package/models/list-searchable-document-owners-request-dto.ts +11 -1
  140. package/models/list-searchable-document-owners-response-class.ts +31 -0
  141. package/models/list-searchable-documents-request-dto.ts +11 -1
  142. package/models/list-searchable-documents-response-class.ts +37 -0
  143. package/models/searchable-document-class.ts +84 -0
  144. package/models/searchable-document-owner-class.ts +48 -0
  145. package/models/update-doc-template-request-dto.ts +2 -2
  146. package/models/update-doc-template-response-class.ts +31 -0
  147. package/models/update-document-request-dto.ts +5 -5
  148. package/models/update-document-response-class.ts +31 -0
  149. package/models/update-docx-template-response-class.ts +31 -0
  150. package/models/update-layout-response-class.ts +31 -0
  151. package/models/upload-docx-template-request-dto.ts +1 -1
  152. package/models/upload-product-document-request-dto.ts +2 -2
  153. 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<void>>;
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<void>>;
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<void>>;
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<void>>;
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<void>;
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<void>;
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<void>;
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<void>;
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<void, any>>;
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<void, any>>;
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<void, any>>;
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<void, any>>;
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<void>>;
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<void>;
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<void, any>>;
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<void>>;
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<void>;
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<void, any>>;
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 \&#39;*\&#39; 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, product: 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
@@ -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 \&#39;*\&#39; 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, product: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
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 \&#39;*\&#39; 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, product: string, authorization?: string, options?: any): AxiosPromise<void>;
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
- * PBM product the documents belongs to.
86
+ * Bearer Token
86
87
  * @type {string}
87
88
  * @memberof SearchableDocumentsApiListSearchableDocuments
88
89
  */
89
- readonly product: string;
90
+ readonly authorization?: string;
90
91
  /**
91
- * Bearer Token
92
- * @type {string}
92
+ * PBM product the documents belongs to.
93
+ * @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
93
94
  * @memberof SearchableDocumentsApiListSearchableDocuments
94
95
  */
95
- readonly authorization?: string;
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<void, any>>;
113
+ listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any>>;
113
114
  }
@@ -101,12 +101,12 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary List searchable documents
102
102
  * @param {string} searchText Text to search in the documents.
103
103
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
104
- * @param {string} product PBM product the documents belongs to.
105
104
  * @param {string} [authorization] Bearer Token
105
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
106
106
  * @param {*} [options] Override http request option.
107
107
  * @throws {RequiredError}
108
108
  */
109
- listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
109
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
110
110
  if (options === void 0) { options = {}; }
111
111
  return __awaiter(_this, void 0, void 0, function () {
112
112
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -117,8 +117,6 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
117
117
  (0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
118
118
  // verify required parameter 'ownerIds' is not null or undefined
119
119
  (0, common_1.assertParamExists)('listSearchableDocuments', 'ownerIds', ownerIds);
120
- // verify required parameter 'product' is not null or undefined
121
- (0, common_1.assertParamExists)('listSearchableDocuments', 'product', product);
122
120
  localVarPath = "/documentservice/v1/searchable-documents";
123
121
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
124
122
  if (configuration) {
@@ -173,17 +171,17 @@ var SearchableDocumentsApiFp = function (configuration) {
173
171
  * @summary List searchable documents
174
172
  * @param {string} searchText Text to search in the documents.
175
173
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
176
- * @param {string} product PBM product the documents belongs to.
177
174
  * @param {string} [authorization] Bearer Token
175
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
178
176
  * @param {*} [options] Override http request option.
179
177
  * @throws {RequiredError}
180
178
  */
181
- listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
179
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
182
180
  return __awaiter(this, void 0, void 0, function () {
183
181
  var localVarAxiosArgs;
184
182
  return __generator(this, function (_a) {
185
183
  switch (_a.label) {
186
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, product, authorization, options)];
184
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options)];
187
185
  case 1:
188
186
  localVarAxiosArgs = _a.sent();
189
187
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -206,13 +204,13 @@ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
206
204
  * @summary List searchable documents
207
205
  * @param {string} searchText Text to search in the documents.
208
206
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
209
- * @param {string} product PBM product the documents belongs to.
210
207
  * @param {string} [authorization] Bearer Token
208
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
211
209
  * @param {*} [options] Override http request option.
212
210
  * @throws {RequiredError}
213
211
  */
214
- listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
215
- return localVarFp.listSearchableDocuments(searchText, ownerIds, product, authorization, options).then(function (request) { return request(axios, basePath); });
212
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
213
+ return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then(function (request) { return request(axios, basePath); });
216
214
  },
217
215
  };
218
216
  };
@@ -238,7 +236,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
238
236
  */
239
237
  SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
240
238
  var _this = this;
241
- return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.product, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
239
+ return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
242
240
  };
243
241
  return SearchableDocumentsApi;
244
242
  }(base_1.BaseAPI));
@@ -45,11 +45,11 @@ export interface CreateDocTemplateRequestDto {
45
45
  * @type {string}
46
46
  * @memberof CreateDocTemplateRequestDto
47
47
  */
48
- 'productSlug': string;
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': string;
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': CreateDocumentRequestDtoStrategyEnum;
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': string;
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': string;
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': string;
65
+ 'leadCode'?: string;
66
66
  /**
67
67
  * Unique identifier referencing the entity.
68
68
  * @type {number}
69
69
  * @memberof CreateDocumentRequestDto
70
70
  */
71
- 'entityId': number;
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': object;
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': string;
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': string;
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': boolean;
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': CreateDocumentRequestDtoEngineEnum;
113
+ 'engine'?: CreateDocumentRequestDtoEngineEnum;
114
114
  }
115
115
  export declare const CreateDocumentRequestDtoStrategyEnum: {
116
116
  readonly Sync: "Sync";
@@ -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 { DocumentClass } from './document-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateDocumentSyncResponseClass
17
+ */
18
+ export interface CreateDocumentSyncResponseClass {
19
+ /**
20
+ * Document
21
+ * @type {DocumentClass}
22
+ * @memberof CreateDocumentSyncResponseClass
23
+ */
24
+ 'document': DocumentClass;
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 });
@@ -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 { LayoutClass } from './layout-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateLayoutResponseClass
17
+ */
18
+ export interface CreateLayoutResponseClass {
19
+ /**
20
+ * Layout
21
+ * @type {LayoutClass}
22
+ * @memberof CreateLayoutResponseClass
23
+ */
24
+ 'layout': LayoutClass;
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 });
@@ -44,19 +44,19 @@ export interface CreatePresignedPostRequestDto {
44
44
  * @type {string}
45
45
  * @memberof CreatePresignedPostRequestDto
46
46
  */
47
- 'policyCode': string;
47
+ 'policyCode'?: string;
48
48
  /**
49
49
  * Unique identifier of the account that this object belongs to.
50
50
  * @type {string}
51
51
  * @memberof CreatePresignedPostRequestDto
52
52
  */
53
- 'accountCode': string;
53
+ 'accountCode'?: string;
54
54
  /**
55
55
  * Unique identifier of the lead that this object belongs to.
56
56
  * @type {string}
57
57
  * @memberof CreatePresignedPostRequestDto
58
58
  */
59
- 'leadCode': string;
59
+ 'leadCode'?: string;
60
60
  /**
61
61
  * Identifier of the service that requested the creation of this document.
62
62
  * @type {string}
@@ -86,7 +86,7 @@ export interface CreatePresignedPostRequestDto {
86
86
  * @type {string}
87
87
  * @memberof CreatePresignedPostRequestDto
88
88
  */
89
- 'productSlug': string;
89
+ 'productSlug'?: string;
90
90
  /**
91
91
  * ERN under which the document will be uploaded. This is useful when uploading documents on behalf of a child organization
92
92
  * @type {string}
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePresignedPostResponseClass
16
+ */
17
+ export interface CreatePresignedPostResponseClass {
18
+ /**
19
+ * Upload document fields.
20
+ * @type {object}
21
+ * @memberof CreatePresignedPostResponseClass
22
+ */
23
+ 'fields': object;
24
+ /**
25
+ * Pre-signed Url.
26
+ * @type {string}
27
+ * @memberof CreatePresignedPostResponseClass
28
+ */
29
+ 'url': string;
30
+ }
@@ -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 });