@emilgroup/document-sdk 1.1.0 → 1.5.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 (195) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -22
  3. package/api/document-templates-api.ts +29 -19
  4. package/api/documents-api.ts +1 -5
  5. package/api/layouts-api.ts +1 -5
  6. package/api/product-documents-api.ts +113 -5
  7. package/api/search-keywords-api.ts +1 -5
  8. package/api/searchable-document-owners-api.ts +1 -5
  9. package/api/searchable-documents-api.ts +21 -11
  10. package/api.ts +1 -5
  11. package/base.ts +60 -94
  12. package/common.ts +2 -3
  13. package/configuration.ts +1 -9
  14. package/dist/api/document-templates-api.d.ts +21 -12
  15. package/dist/api/document-templates-api.js +24 -22
  16. package/dist/api/documents-api.d.ts +1 -1
  17. package/dist/api/documents-api.js +8 -12
  18. package/dist/api/layouts-api.d.ts +1 -1
  19. package/dist/api/layouts-api.js +6 -10
  20. package/dist/api/product-documents-api.d.ts +62 -1
  21. package/dist/api/product-documents-api.js +99 -9
  22. package/dist/api/search-keywords-api.d.ts +1 -1
  23. package/dist/api/search-keywords-api.js +2 -6
  24. package/dist/api/searchable-document-owners-api.d.ts +1 -1
  25. package/dist/api/searchable-document-owners-api.js +2 -6
  26. package/dist/api/searchable-documents-api.d.ts +13 -4
  27. package/dist/api/searchable-documents-api.js +14 -12
  28. package/dist/api.d.ts +1 -1
  29. package/dist/api.js +1 -1
  30. package/dist/base.d.ts +6 -10
  31. package/dist/base.js +41 -137
  32. package/dist/common.d.ts +2 -3
  33. package/dist/common.js +2 -3
  34. package/dist/configuration.d.ts +1 -8
  35. package/dist/configuration.js +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/models/create-doc-template-request-dto.d.ts +7 -1
  39. package/dist/models/create-doc-template-request-dto.js +1 -1
  40. package/dist/models/create-doc-template-response-class.d.ts +1 -1
  41. package/dist/models/create-doc-template-response-class.js +1 -1
  42. package/dist/models/create-document-request-dto.d.ts +1 -1
  43. package/dist/models/create-document-request-dto.js +1 -1
  44. package/dist/models/create-document-sync-response-class.d.ts +1 -1
  45. package/dist/models/create-document-sync-response-class.js +1 -1
  46. package/dist/models/create-html-template-dto.d.ts +1 -1
  47. package/dist/models/create-html-template-dto.js +1 -1
  48. package/dist/models/create-layout-request-dto.d.ts +1 -1
  49. package/dist/models/create-layout-request-dto.js +1 -1
  50. package/dist/models/create-layout-response-class.d.ts +1 -1
  51. package/dist/models/create-layout-response-class.js +1 -1
  52. package/dist/models/create-presigned-post-request-dto.d.ts +1 -1
  53. package/dist/models/create-presigned-post-request-dto.js +1 -1
  54. package/dist/models/create-presigned-post-response-class.d.ts +1 -1
  55. package/dist/models/create-presigned-post-response-class.js +1 -1
  56. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  57. package/dist/models/delete-layout-request-dto.js +1 -1
  58. package/dist/models/delete-product-document-request-dto.d.ts +1 -1
  59. package/dist/models/delete-product-document-request-dto.js +1 -1
  60. package/dist/models/delete-request-dto.d.ts +1 -1
  61. package/dist/models/delete-request-dto.js +1 -1
  62. package/dist/models/delete-response-class.d.ts +1 -1
  63. package/dist/models/delete-response-class.js +1 -1
  64. package/dist/models/doc-template-class.d.ts +7 -1
  65. package/dist/models/doc-template-class.js +1 -1
  66. package/dist/models/document-class.d.ts +1 -1
  67. package/dist/models/document-class.js +1 -1
  68. package/dist/models/download-document-request-dto.d.ts +1 -1
  69. package/dist/models/download-document-request-dto.js +1 -1
  70. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  71. package/dist/models/get-doc-template-request-dto.js +1 -1
  72. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  73. package/dist/models/get-doc-template-response-class.js +1 -1
  74. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  75. package/dist/models/get-document-download-url-response-class.js +1 -1
  76. package/dist/models/get-layout-request-dto.d.ts +1 -1
  77. package/dist/models/get-layout-request-dto.js +1 -1
  78. package/dist/models/get-layout-response-class.d.ts +1 -1
  79. package/dist/models/get-layout-response-class.js +1 -1
  80. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  81. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  82. package/dist/models/get-product-document-response-class.d.ts +1 -1
  83. package/dist/models/get-product-document-response-class.js +1 -1
  84. package/dist/models/get-signed-s3-key-url-response-class.d.ts +1 -1
  85. package/dist/models/get-signed-s3-key-url-response-class.js +1 -1
  86. package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
  87. package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
  88. package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
  89. package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
  90. package/dist/models/html-template-class.d.ts +1 -1
  91. package/dist/models/html-template-class.js +1 -1
  92. package/dist/models/index.d.ts +4 -0
  93. package/dist/models/index.js +4 -0
  94. package/dist/models/layout-class.d.ts +1 -1
  95. package/dist/models/layout-class.js +1 -1
  96. package/dist/models/list-doc-template-request-dto.d.ts +7 -1
  97. package/dist/models/list-doc-template-request-dto.js +1 -1
  98. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  99. package/dist/models/list-doc-templates-response-class.js +1 -1
  100. package/dist/models/list-documents-response-class.d.ts +1 -1
  101. package/dist/models/list-documents-response-class.js +1 -1
  102. package/dist/models/list-layouts-response-class.d.ts +1 -1
  103. package/dist/models/list-layouts-response-class.js +1 -1
  104. package/dist/models/list-product-documents-response-class.d.ts +1 -1
  105. package/dist/models/list-product-documents-response-class.js +1 -1
  106. package/dist/models/list-request-dto.d.ts +1 -1
  107. package/dist/models/list-request-dto.js +1 -1
  108. package/dist/models/list-search-keywords-request-dto.d.ts +1 -1
  109. package/dist/models/list-search-keywords-request-dto.js +1 -1
  110. package/dist/models/list-search-keywords-response-class.d.ts +1 -1
  111. package/dist/models/list-search-keywords-response-class.js +1 -1
  112. package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
  113. package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
  114. package/dist/models/list-searchable-document-owners-response-class.d.ts +1 -1
  115. package/dist/models/list-searchable-document-owners-response-class.js +1 -1
  116. package/dist/models/list-searchable-documents-request-dto.d.ts +14 -1
  117. package/dist/models/list-searchable-documents-request-dto.js +8 -1
  118. package/dist/models/list-searchable-documents-response-class.d.ts +1 -1
  119. package/dist/models/list-searchable-documents-response-class.js +1 -1
  120. package/dist/models/product-document-class.d.ts +18 -1
  121. package/dist/models/product-document-class.js +12 -2
  122. package/dist/models/searchable-document-class.d.ts +1 -1
  123. package/dist/models/searchable-document-class.js +1 -1
  124. package/dist/models/searchable-document-owner-class.d.ts +1 -1
  125. package/dist/models/searchable-document-owner-class.js +1 -1
  126. package/dist/models/update-doc-template-request-dto.d.ts +7 -1
  127. package/dist/models/update-doc-template-request-dto.js +1 -1
  128. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  129. package/dist/models/update-doc-template-response-class.js +1 -1
  130. package/dist/models/update-document-request-dto.d.ts +1 -1
  131. package/dist/models/update-document-request-dto.js +1 -1
  132. package/dist/models/update-document-response-class.d.ts +1 -1
  133. package/dist/models/update-document-response-class.js +1 -1
  134. package/dist/models/update-html-template-dto.d.ts +1 -1
  135. package/dist/models/update-html-template-dto.js +1 -1
  136. package/dist/models/update-layout-request-dto.d.ts +1 -1
  137. package/dist/models/update-layout-request-dto.js +1 -1
  138. package/dist/models/update-layout-response-class.d.ts +1 -1
  139. package/dist/models/update-layout-response-class.js +1 -1
  140. package/dist/models/upload-product-document-request-dto.d.ts +7 -1
  141. package/dist/models/upload-product-document-request-dto.js +1 -1
  142. package/index.ts +1 -1
  143. package/models/create-doc-template-request-dto.ts +7 -1
  144. package/models/create-doc-template-response-class.ts +1 -1
  145. package/models/create-document-request-dto.ts +1 -1
  146. package/models/create-document-sync-response-class.ts +1 -1
  147. package/models/create-html-template-dto.ts +1 -1
  148. package/models/create-layout-request-dto.ts +1 -1
  149. package/models/create-layout-response-class.ts +1 -1
  150. package/models/create-presigned-post-request-dto.ts +1 -1
  151. package/models/create-presigned-post-response-class.ts +1 -1
  152. package/models/delete-layout-request-dto.ts +1 -1
  153. package/models/delete-product-document-request-dto.ts +1 -1
  154. package/models/delete-request-dto.ts +1 -1
  155. package/models/delete-response-class.ts +1 -1
  156. package/models/doc-template-class.ts +7 -1
  157. package/models/document-class.ts +1 -1
  158. package/models/download-document-request-dto.ts +1 -1
  159. package/models/get-doc-template-request-dto.ts +1 -1
  160. package/models/get-doc-template-response-class.ts +1 -1
  161. package/models/get-document-download-url-response-class.ts +1 -1
  162. package/models/get-layout-request-dto.ts +1 -1
  163. package/models/get-layout-response-class.ts +1 -1
  164. package/models/get-product-document-download-url-response-class.ts +30 -0
  165. package/models/get-product-document-response-class.ts +1 -1
  166. package/models/get-signed-s3-key-url-response-class.ts +1 -1
  167. package/models/grpc-create-doc-template-request-dto.ts +61 -0
  168. package/models/grpc-update-doc-template-request-dto.ts +67 -0
  169. package/models/html-template-class.ts +1 -1
  170. package/models/index.ts +4 -0
  171. package/models/layout-class.ts +1 -1
  172. package/models/list-doc-template-request-dto.ts +7 -1
  173. package/models/list-doc-templates-response-class.ts +1 -1
  174. package/models/list-documents-response-class.ts +1 -1
  175. package/models/list-layouts-response-class.ts +1 -1
  176. package/models/list-product-documents-response-class.ts +1 -1
  177. package/models/list-request-dto.ts +1 -1
  178. package/models/list-search-keywords-request-dto.ts +1 -1
  179. package/models/list-search-keywords-response-class.ts +1 -1
  180. package/models/list-searchable-document-owners-request-dto.ts +40 -0
  181. package/models/list-searchable-document-owners-response-class.ts +1 -1
  182. package/models/list-searchable-documents-request-dto.ts +17 -1
  183. package/models/list-searchable-documents-response-class.ts +1 -1
  184. package/models/product-document-class.ts +19 -1
  185. package/models/searchable-document-class.ts +1 -1
  186. package/models/searchable-document-owner-class.ts +1 -1
  187. package/models/update-doc-template-request-dto.ts +7 -1
  188. package/models/update-doc-template-response-class.ts +1 -1
  189. package/models/update-document-request-dto.ts +1 -1
  190. package/models/update-document-response-class.ts +1 -1
  191. package/models/update-html-template-dto.ts +1 -1
  192. package/models/update-layout-request-dto.ts +1 -1
  193. package/models/update-layout-response-class.ts +1 -1
  194. package/models/upload-product-document-request-dto.ts +7 -1
  195. package/package.json +2 -5
@@ -36,8 +36,11 @@ models/get-doc-template-response-class.ts
36
36
  models/get-document-download-url-response-class.ts
37
37
  models/get-layout-request-dto.ts
38
38
  models/get-layout-response-class.ts
39
+ models/get-product-document-download-url-response-class.ts
39
40
  models/get-product-document-response-class.ts
40
41
  models/get-signed-s3-key-url-response-class.ts
42
+ models/grpc-create-doc-template-request-dto.ts
43
+ models/grpc-update-doc-template-request-dto.ts
41
44
  models/html-template-class.ts
42
45
  models/index.ts
43
46
  models/layout-class.ts
@@ -49,6 +52,7 @@ models/list-product-documents-response-class.ts
49
52
  models/list-request-dto.ts
50
53
  models/list-search-keywords-request-dto.ts
51
54
  models/list-search-keywords-response-class.ts
55
+ models/list-searchable-document-owners-request-dto.ts
52
56
  models/list-searchable-document-owners-response-class.ts
53
57
  models/list-searchable-documents-request-dto.ts
54
58
  models/list-searchable-documents-response-class.ts
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Emil Documents SDK
2
2
 
3
- This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used with Nodejs based applications.
3
+ This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated module can be used with client-based applications (i.e. React).
4
4
 
5
5
  Language level
6
6
  * ES5 - you must have a Promises/A+ library installed
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk@1.1.0 --save
20
+ npm install @emilgroup/document-sdk@1.5.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.1.0
24
+ yarn add @emilgroup/document-sdk@1.5.0
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -31,32 +31,15 @@ import { DocumentsApi } from '@emilgroup/document-sdk'
31
31
 
32
32
  const documentsApi = new DocumentsApi();
33
33
  ```
34
- ## Credentials
35
34
 
36
- To use authentication protected endpoints, you have to first authorize. To do so, the easiest way is to provide a configuration file under `~/.emil/credentials` with the following content:
37
-
38
- ```shell
39
- emil_username=XXXXX@XXXX.XXX
40
- emil_password=XXXXXXXXXXXXXX
41
- ```
42
-
43
- It is also possible to provide environment variables instead:
44
-
45
- ```shell
46
- export EMIL_USERNAME=XXXXX@XXXX.XXX
47
- export EMIL_PASSWORD=XXXXXXXXXXXXXX
48
- ```
49
-
50
- ## Example
51
-
52
- Here is a basic functionning example:
35
+ To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `DocumentsApi`:
53
36
 
54
37
  ```ts
55
38
  async function listDocuments(): Promise<Void> {
56
39
  try {
57
40
  const documentsApi = new DocumentsApi();
58
41
 
59
- await documentsApi.initialize(); // should be called only once per Api.
42
+ await documentsApi.authorize('username', 'password');
60
43
 
61
44
  const { data: { items } } = await documentsApi.listDocuments();
62
45
 
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -34,10 +34,6 @@ import { ListDocTemplatesResponseClass } from '../models';
34
34
  import { UpdateDocTemplateRequestDto } from '../models';
35
35
  // @ts-ignore
36
36
  import { UpdateDocTemplateResponseClass } from '../models';
37
- // URLSearchParams not necessarily used
38
- // @ts-ignore
39
- import { URL, URLSearchParams } from 'url';
40
- const FormData = require('form-data');
41
37
  /**
42
38
  * DocumentTemplatesApi - axios parameter creator
43
39
  * @export
@@ -141,7 +137,7 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
141
137
  * @summary Retrieve the document template
142
138
  * @param {number} id
143
139
  * @param {string} [authorization] Bearer Token
144
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
140
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
145
141
  * @param {*} [options] Override http request option.
146
142
  * @throws {RequiredError}
147
143
  */
@@ -191,14 +187,15 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
191
187
  * @summary List document templates
192
188
  * @param {string} [authorization] Bearer Token
193
189
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
194
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
190
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
195
191
  * @param {string} [filter] Filter response by productSlug, slug and name.
192
+ * @param {string} [search] Search document templates by name | slug
196
193
  * @param {string} [order] Order response by createdAt.
197
194
  * @param {string} [expand] Expand response by bodyTemplate.
198
195
  * @param {*} [options] Override http request option.
199
196
  * @throws {RequiredError}
200
197
  */
201
- listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
199
  const localVarPath = `/documentservice/v1/doc-templates`;
203
200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
201
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -229,6 +226,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
229
226
  localVarQueryParameter['filter'] = filter;
230
227
  }
231
228
 
229
+ if (search !== undefined) {
230
+ localVarQueryParameter['search'] = search;
231
+ }
232
+
232
233
  if (order !== undefined) {
233
234
  localVarQueryParameter['order'] = order;
234
235
  }
@@ -342,7 +343,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
342
343
  * @summary Retrieve the document template
343
344
  * @param {number} id
344
345
  * @param {string} [authorization] Bearer Token
345
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
346
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
346
347
  * @param {*} [options] Override http request option.
347
348
  * @throws {RequiredError}
348
349
  */
@@ -355,15 +356,16 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
355
356
  * @summary List document templates
356
357
  * @param {string} [authorization] Bearer Token
357
358
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
358
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
359
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
359
360
  * @param {string} [filter] Filter response by productSlug, slug and name.
361
+ * @param {string} [search] Search document templates by name | slug
360
362
  * @param {string} [order] Order response by createdAt.
361
363
  * @param {string} [expand] Expand response by bodyTemplate.
362
364
  * @param {*} [options] Override http request option.
363
365
  * @throws {RequiredError}
364
366
  */
365
- async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options);
367
+ async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
367
369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
370
  },
369
371
  /**
@@ -416,7 +418,7 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
416
418
  * @summary Retrieve the document template
417
419
  * @param {number} id
418
420
  * @param {string} [authorization] Bearer Token
419
- * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
421
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
420
422
  * @param {*} [options] Override http request option.
421
423
  * @throws {RequiredError}
422
424
  */
@@ -428,15 +430,16 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
428
430
  * @summary List document templates
429
431
  * @param {string} [authorization] Bearer Token
430
432
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
431
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
433
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
432
434
  * @param {string} [filter] Filter response by productSlug, slug and name.
435
+ * @param {string} [search] Search document templates by name | slug
433
436
  * @param {string} [order] Order response by createdAt.
434
437
  * @param {string} [expand] Expand response by bodyTemplate.
435
438
  * @param {*} [options] Override http request option.
436
439
  * @throws {RequiredError}
437
440
  */
438
- listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
439
- return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
441
+ listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
442
+ return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
440
443
  },
441
444
  /**
442
445
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -516,7 +519,7 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
516
519
  readonly authorization?: string
517
520
 
518
521
  /**
519
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
522
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
520
523
  * @type {string}
521
524
  * @memberof DocumentTemplatesApiGetDocTemplate
522
525
  */
@@ -544,7 +547,7 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
544
547
  readonly pageSize?: number
545
548
 
546
549
  /**
547
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
550
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
548
551
  * @type {string}
549
552
  * @memberof DocumentTemplatesApiListDocTemplates
550
553
  */
@@ -557,6 +560,13 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
557
560
  */
558
561
  readonly filter?: string
559
562
 
563
+ /**
564
+ * Search document templates by name | slug
565
+ * @type {string}
566
+ * @memberof DocumentTemplatesApiListDocTemplates
567
+ */
568
+ readonly search?: string
569
+
560
570
  /**
561
571
  * Order response by createdAt.
562
572
  * @type {string}
@@ -652,7 +662,7 @@ export class DocumentTemplatesApi extends BaseAPI {
652
662
  * @memberof DocumentTemplatesApi
653
663
  */
654
664
  public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
655
- return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
665
+ return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
656
666
  }
657
667
 
658
668
  /**
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -38,10 +38,6 @@ import { ListDocumentsResponseClass } from '../models';
38
38
  import { UpdateDocumentRequestDto } from '../models';
39
39
  // @ts-ignore
40
40
  import { UpdateDocumentResponseClass } from '../models';
41
- // URLSearchParams not necessarily used
42
- // @ts-ignore
43
- import { URL, URLSearchParams } from 'url';
44
- const FormData = require('form-data');
45
41
  /**
46
42
  * DocumentsApi - axios parameter creator
47
43
  * @export
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -34,10 +34,6 @@ import { ListLayoutsResponseClass } from '../models';
34
34
  import { UpdateLayoutRequestDto } from '../models';
35
35
  // @ts-ignore
36
36
  import { UpdateLayoutResponseClass } from '../models';
37
- // URLSearchParams not necessarily used
38
- // @ts-ignore
39
- import { URL, URLSearchParams } from 'url';
40
- const FormData = require('form-data');
41
37
  /**
42
38
  * LayoutsApi - axios parameter creator
43
39
  * @export
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { GetProductDocumentDownloadUrlResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { GetProductDocumentResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { ListProductDocumentsResponseClass } from '../models';
@@ -28,10 +30,6 @@ import { ListProductDocumentsResponseClass } from '../models';
28
30
  import { ProductDocumentClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { UploadProductDocumentRequestDto } from '../models';
31
- // URLSearchParams not necessarily used
32
- // @ts-ignore
33
- import { URL, URLSearchParams } from 'url';
34
- const FormData = require('form-data');
35
33
  /**
36
34
  * ProductDocumentsApi - axios parameter creator
37
35
  * @export
@@ -78,6 +76,54 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
78
76
 
79
77
 
80
78
 
79
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
80
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ *
90
+ * @param {string} productSlug
91
+ * @param {string} code
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ downloadProductDocument: async (productSlug: string, code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'productSlug' is not null or undefined
98
+ assertParamExists('downloadProductDocument', 'productSlug', productSlug)
99
+ // verify required parameter 'code' is not null or undefined
100
+ assertParamExists('downloadProductDocument', 'code', code)
101
+ const localVarPath = `/documentservice/v1/documents/product/{productSlug}/{code}/download-url`
102
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)))
103
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
+ let baseOptions;
107
+ let baseAccessToken;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ baseAccessToken = configuration.accessToken;
111
+ }
112
+
113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
114
+ const localVarHeaderParameter = {} as any;
115
+ const localVarQueryParameter = {} as any;
116
+
117
+ // authentication bearer required
118
+ // http bearer authentication required
119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
+
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ }
124
+
125
+
126
+
81
127
  setSearchParams(localVarUrlObj, localVarQueryParameter);
82
128
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
129
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -285,6 +331,18 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
285
331
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductDocument(code, productSlug, authorization, options);
286
332
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
287
333
  },
334
+ /**
335
+ *
336
+ * @param {string} productSlug
337
+ * @param {string} code
338
+ * @param {string} [authorization] Bearer Token
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ async downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
343
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options);
344
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
+ },
288
346
  /**
289
347
  * Get a product document.
290
348
  * @summary Retrieve the product document
@@ -351,6 +409,17 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
351
409
  deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<object> {
352
410
  return localVarFp.deleteProductDocument(code, productSlug, authorization, options).then((request) => request(axios, basePath));
353
411
  },
412
+ /**
413
+ *
414
+ * @param {string} productSlug
415
+ * @param {string} code
416
+ * @param {string} [authorization] Bearer Token
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
421
+ return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
422
+ },
354
423
  /**
355
424
  * Get a product document.
356
425
  * @summary Retrieve the product document
@@ -423,6 +492,34 @@ export interface ProductDocumentsApiDeleteProductDocumentRequest {
423
492
  readonly authorization?: string
424
493
  }
425
494
 
495
+ /**
496
+ * Request parameters for downloadProductDocument operation in ProductDocumentsApi.
497
+ * @export
498
+ * @interface ProductDocumentsApiDownloadProductDocumentRequest
499
+ */
500
+ export interface ProductDocumentsApiDownloadProductDocumentRequest {
501
+ /**
502
+ *
503
+ * @type {string}
504
+ * @memberof ProductDocumentsApiDownloadProductDocument
505
+ */
506
+ readonly productSlug: string
507
+
508
+ /**
509
+ *
510
+ * @type {string}
511
+ * @memberof ProductDocumentsApiDownloadProductDocument
512
+ */
513
+ readonly code: string
514
+
515
+ /**
516
+ * Bearer Token
517
+ * @type {string}
518
+ * @memberof ProductDocumentsApiDownloadProductDocument
519
+ */
520
+ readonly authorization?: string
521
+ }
522
+
426
523
  /**
427
524
  * Request parameters for getProductDocument operation in ProductDocumentsApi.
428
525
  * @export
@@ -561,6 +658,17 @@ export class ProductDocumentsApi extends BaseAPI {
561
658
  return ProductDocumentsApiFp(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
562
659
  }
563
660
 
661
+ /**
662
+ *
663
+ * @param {ProductDocumentsApiDownloadProductDocumentRequest} requestParameters Request parameters.
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ * @memberof ProductDocumentsApi
667
+ */
668
+ public downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig) {
669
+ return ProductDocumentsApiFp(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
670
+ }
671
+
564
672
  /**
565
673
  * Get a product document.
566
674
  * @summary Retrieve the product document
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -22,10 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { ListSearchKeywordsResponseClass } from '../models';
25
- // URLSearchParams not necessarily used
26
- // @ts-ignore
27
- import { URL, URLSearchParams } from 'url';
28
- const FormData = require('form-data');
29
25
  /**
30
26
  * SearchKeywordsApi - axios parameter creator
31
27
  * @export
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -22,10 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { ListSearchableDocumentOwnersResponseClass } from '../models';
25
- // URLSearchParams not necessarily used
26
- // @ts-ignore
27
- import { URL, URLSearchParams } from 'url';
28
- const FormData = require('form-data');
29
25
  /**
30
26
  * SearchableDocumentOwnersApi - axios parameter creator
31
27
  * @export
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -22,10 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { ListSearchableDocumentsResponseClass } from '../models';
25
- // URLSearchParams not necessarily used
26
- // @ts-ignore
27
- import { URL, URLSearchParams } from 'url';
28
- const FormData = require('form-data');
29
25
  /**
30
26
  * SearchableDocumentsApi - axios parameter creator
31
27
  * @export
@@ -38,10 +34,11 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
38
34
  * @param {string} searchText Text to search in the documents.
39
35
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
40
36
  * @param {string} [authorization] Bearer Token
37
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
41
38
  * @param {*} [options] Override http request option.
42
39
  * @throws {RequiredError}
43
40
  */
44
- listSearchableDocuments: async (searchText: string, ownerIds: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41
+ listSearchableDocuments: async (searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
42
  // verify required parameter 'searchText' is not null or undefined
46
43
  assertParamExists('listSearchableDocuments', 'searchText', searchText)
47
44
  // verify required parameter 'ownerIds' is not null or undefined
@@ -72,6 +69,10 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
72
69
  localVarQueryParameter['ownerIds'] = ownerIds;
73
70
  }
74
71
 
72
+ if (product !== undefined) {
73
+ localVarQueryParameter['product'] = product;
74
+ }
75
+
75
76
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
77
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
78
  }
@@ -103,11 +104,12 @@ export const SearchableDocumentsApiFp = function(configuration?: Configuration)
103
104
  * @param {string} searchText Text to search in the documents.
104
105
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
105
106
  * @param {string} [authorization] Bearer Token
107
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
106
108
  * @param {*} [options] Override http request option.
107
109
  * @throws {RequiredError}
108
110
  */
109
- async listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>> {
110
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, options);
111
+ async listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>> {
112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options);
111
113
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
112
114
  },
113
115
  }
@@ -126,11 +128,12 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
126
128
  * @param {string} searchText Text to search in the documents.
127
129
  * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
128
130
  * @param {string} [authorization] Bearer Token
131
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
129
132
  * @param {*} [options] Override http request option.
130
133
  * @throws {RequiredError}
131
134
  */
132
- listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, options?: any): AxiosPromise<ListSearchableDocumentsResponseClass> {
133
- return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, options).then((request) => request(axios, basePath));
135
+ listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListSearchableDocumentsResponseClass> {
136
+ return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then((request) => request(axios, basePath));
134
137
  },
135
138
  };
136
139
  };
@@ -161,6 +164,13 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
161
164
  * @memberof SearchableDocumentsApiListSearchableDocuments
162
165
  */
163
166
  readonly authorization?: string
167
+
168
+ /**
169
+ * PBM product the documents belongs to.
170
+ * @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
171
+ * @memberof SearchableDocumentsApiListSearchableDocuments
172
+ */
173
+ readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability'
164
174
  }
165
175
 
166
176
  /**
@@ -179,6 +189,6 @@ export class SearchableDocumentsApi extends BaseAPI {
179
189
  * @memberof SearchableDocumentsApi
180
190
  */
181
191
  public listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig) {
182
- return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
192
+ return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
183
193
  }
184
194
  }
package/api.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL DocumentService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -15,10 +15,6 @@
15
15
 
16
16
  import { Configuration } from './configuration';
17
17
  import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
18
- // URLSearchParams not necessarily used
19
- // @ts-ignore
20
- import { URL, URLSearchParams } from 'url';
21
- import FormData from 'form-data'
22
18
  // Some imports not used depending on template conditions
23
19
  // @ts-ignore
24
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';