@emilgroup/document-sdk 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/docx-templates-api.ts +16 -8
  4. package/api/product-documents-api.ts +12 -25
  5. package/models/create-doc-template-request-dto.ts +2 -2
  6. package/models/create-document-request-dto.ts +3 -15
  7. package/models/create-layout-request-dto.ts +1 -1
  8. package/models/create-presigned-post-request-dto.ts +2 -2
  9. package/models/delete-product-document-request-dto.ts +1 -1
  10. package/models/doc-template-class.ts +2 -2
  11. package/models/document-class.ts +9 -15
  12. package/models/docx-template-class.ts +96 -0
  13. package/{dist/models/upload-product-document-request-dto.js → models/get-docx-template-response-class.ts} +18 -11
  14. package/models/index.ts +4 -0
  15. package/models/layout-class.ts +1 -1
  16. package/{dist/models/list-product-documents-response-class.d.ts → models/list-docx-templates-response-class.ts} +15 -9
  17. package/models/product-document-class.ts +3 -15
  18. package/models/update-doc-template-request-dto.ts +2 -2
  19. package/{dist/models/update-document-response-class.d.ts → models/update-docx-template-response-class.ts} +13 -7
  20. package/models/update-layout-request-dto.ts +1 -1
  21. package/models/upload-product-document-request-dto.ts +1 -1
  22. package/package.json +1 -2
  23. package/dist/api/default-api.d.ts +0 -66
  24. package/dist/api/default-api.js +0 -196
  25. package/dist/api/document-templates-api.d.ts +0 -385
  26. package/dist/api/document-templates-api.js +0 -636
  27. package/dist/api/documents-api.d.ts +0 -488
  28. package/dist/api/documents-api.js +0 -817
  29. package/dist/api/docx-templates-api.d.ts +0 -428
  30. package/dist/api/docx-templates-api.js +0 -722
  31. package/dist/api/layouts-api.d.ts +0 -385
  32. package/dist/api/layouts-api.js +0 -638
  33. package/dist/api/product-documents-api.d.ts +0 -410
  34. package/dist/api/product-documents-api.js +0 -652
  35. package/dist/api/search-keywords-api.d.ts +0 -96
  36. package/dist/api/search-keywords-api.js +0 -225
  37. package/dist/api/searchable-document-owners-api.d.ts +0 -141
  38. package/dist/api/searchable-document-owners-api.js +0 -254
  39. package/dist/api/searchable-documents-api.d.ts +0 -114
  40. package/dist/api/searchable-documents-api.js +0 -239
  41. package/dist/api.d.ts +0 -20
  42. package/dist/api.js +0 -38
  43. package/dist/base.d.ts +0 -74
  44. package/dist/base.js +0 -298
  45. package/dist/common.d.ts +0 -91
  46. package/dist/common.js +0 -276
  47. package/dist/configuration.d.ts +0 -83
  48. package/dist/configuration.js +0 -44
  49. package/dist/index.d.ts +0 -15
  50. package/dist/index.js +0 -36
  51. package/dist/models/create-doc-template-request-dto.d.ts +0 -55
  52. package/dist/models/create-doc-template-request-dto.js +0 -15
  53. package/dist/models/create-doc-template-response-class.d.ts +0 -25
  54. package/dist/models/create-doc-template-response-class.js +0 -15
  55. package/dist/models/create-document-request-dto.d.ts +0 -173
  56. package/dist/models/create-document-request-dto.js +0 -70
  57. package/dist/models/create-document-sync-response-class.d.ts +0 -25
  58. package/dist/models/create-document-sync-response-class.js +0 -15
  59. package/dist/models/create-html-template-dto.d.ts +0 -24
  60. package/dist/models/create-html-template-dto.js +0 -15
  61. package/dist/models/create-layout-request-dto.d.ts +0 -49
  62. package/dist/models/create-layout-request-dto.js +0 -15
  63. package/dist/models/create-layout-response-class.d.ts +0 -25
  64. package/dist/models/create-layout-response-class.js +0 -15
  65. package/dist/models/create-presigned-post-request-dto.d.ts +0 -134
  66. package/dist/models/create-presigned-post-request-dto.js +0 -52
  67. package/dist/models/create-presigned-post-response-class.d.ts +0 -30
  68. package/dist/models/create-presigned-post-response-class.js +0 -15
  69. package/dist/models/delete-layout-request-dto.d.ts +0 -24
  70. package/dist/models/delete-layout-request-dto.js +0 -15
  71. package/dist/models/delete-product-document-request-dto.d.ts +0 -30
  72. package/dist/models/delete-product-document-request-dto.js +0 -15
  73. package/dist/models/delete-request-dto.d.ts +0 -24
  74. package/dist/models/delete-request-dto.js +0 -15
  75. package/dist/models/delete-response-class.d.ts +0 -24
  76. package/dist/models/delete-response-class.js +0 -15
  77. package/dist/models/doc-template-class.d.ts +0 -92
  78. package/dist/models/doc-template-class.js +0 -15
  79. package/dist/models/document-class.d.ts +0 -163
  80. package/dist/models/document-class.js +0 -62
  81. package/dist/models/download-document-request-dto.d.ts +0 -30
  82. package/dist/models/download-document-request-dto.js +0 -15
  83. package/dist/models/get-doc-template-request-dto.d.ts +0 -30
  84. package/dist/models/get-doc-template-request-dto.js +0 -15
  85. package/dist/models/get-doc-template-response-class.d.ts +0 -25
  86. package/dist/models/get-doc-template-response-class.js +0 -15
  87. package/dist/models/get-document-download-url-response-class.d.ts +0 -24
  88. package/dist/models/get-document-download-url-response-class.js +0 -15
  89. package/dist/models/get-docx-template-download-url-response-class.d.ts +0 -24
  90. package/dist/models/get-docx-template-download-url-response-class.js +0 -15
  91. package/dist/models/get-layout-request-dto.d.ts +0 -24
  92. package/dist/models/get-layout-request-dto.js +0 -15
  93. package/dist/models/get-layout-response-class.d.ts +0 -25
  94. package/dist/models/get-layout-response-class.js +0 -15
  95. package/dist/models/get-product-document-download-url-response-class.d.ts +0 -24
  96. package/dist/models/get-product-document-download-url-response-class.js +0 -15
  97. package/dist/models/get-product-document-response-class.d.ts +0 -25
  98. package/dist/models/get-product-document-response-class.js +0 -15
  99. package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
  100. package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
  101. package/dist/models/grpc-create-doc-template-request-dto.d.ts +0 -55
  102. package/dist/models/grpc-create-doc-template-request-dto.js +0 -15
  103. package/dist/models/grpc-update-doc-template-request-dto.d.ts +0 -61
  104. package/dist/models/grpc-update-doc-template-request-dto.js +0 -15
  105. package/dist/models/html-template-class.d.ts +0 -66
  106. package/dist/models/html-template-class.js +0 -21
  107. package/dist/models/index.d.ts +0 -56
  108. package/dist/models/index.js +0 -72
  109. package/dist/models/inline-response200.d.ts +0 -54
  110. package/dist/models/inline-response200.js +0 -15
  111. package/dist/models/inline-response503.d.ts +0 -54
  112. package/dist/models/inline-response503.js +0 -15
  113. package/dist/models/layout-class.d.ts +0 -79
  114. package/dist/models/layout-class.js +0 -15
  115. package/dist/models/list-doc-template-request-dto.d.ts +0 -54
  116. package/dist/models/list-doc-template-request-dto.js +0 -15
  117. package/dist/models/list-doc-templates-response-class.d.ts +0 -31
  118. package/dist/models/list-doc-templates-response-class.js +0 -15
  119. package/dist/models/list-documents-response-class.d.ts +0 -31
  120. package/dist/models/list-documents-response-class.js +0 -15
  121. package/dist/models/list-layouts-response-class.d.ts +0 -31
  122. package/dist/models/list-layouts-response-class.js +0 -15
  123. package/dist/models/list-product-documents-response-class.js +0 -15
  124. package/dist/models/list-request-dto.d.ts +0 -54
  125. package/dist/models/list-request-dto.js +0 -15
  126. package/dist/models/list-search-keywords-request-dto.d.ts +0 -24
  127. package/dist/models/list-search-keywords-request-dto.js +0 -15
  128. package/dist/models/list-search-keywords-response-class.d.ts +0 -24
  129. package/dist/models/list-search-keywords-response-class.js +0 -15
  130. package/dist/models/list-searchable-document-owners-request-dto.d.ts +0 -31
  131. package/dist/models/list-searchable-document-owners-request-dto.js +0 -22
  132. package/dist/models/list-searchable-document-owners-response-class.d.ts +0 -25
  133. package/dist/models/list-searchable-document-owners-response-class.js +0 -15
  134. package/dist/models/list-searchable-documents-request-dto.d.ts +0 -43
  135. package/dist/models/list-searchable-documents-request-dto.js +0 -22
  136. package/dist/models/list-searchable-documents-response-class.d.ts +0 -31
  137. package/dist/models/list-searchable-documents-response-class.js +0 -15
  138. package/dist/models/product-document-class.d.ts +0 -134
  139. package/dist/models/product-document-class.js +0 -46
  140. package/dist/models/searchable-document-class.d.ts +0 -66
  141. package/dist/models/searchable-document-class.js +0 -15
  142. package/dist/models/searchable-document-owner-class.d.ts +0 -30
  143. package/dist/models/searchable-document-owner-class.js +0 -15
  144. package/dist/models/shared-update-docx-template-request-dto.d.ts +0 -36
  145. package/dist/models/shared-update-docx-template-request-dto.js +0 -15
  146. package/dist/models/update-doc-template-request-dto.d.ts +0 -61
  147. package/dist/models/update-doc-template-request-dto.js +0 -15
  148. package/dist/models/update-doc-template-response-class.d.ts +0 -25
  149. package/dist/models/update-doc-template-response-class.js +0 -15
  150. package/dist/models/update-document-request-dto.d.ts +0 -54
  151. package/dist/models/update-document-request-dto.js +0 -15
  152. package/dist/models/update-document-response-class.js +0 -15
  153. package/dist/models/update-html-template-dto.d.ts +0 -42
  154. package/dist/models/update-html-template-dto.js +0 -21
  155. package/dist/models/update-layout-request-dto.d.ts +0 -55
  156. package/dist/models/update-layout-request-dto.js +0 -15
  157. package/dist/models/update-layout-response-class.d.ts +0 -25
  158. package/dist/models/update-layout-response-class.js +0 -15
  159. package/dist/models/upload-docx-template-request-dto.d.ts +0 -54
  160. package/dist/models/upload-docx-template-request-dto.js +0 -15
  161. package/dist/models/upload-product-document-request-dto.d.ts +0 -75
@@ -32,11 +32,13 @@ models/delete-request-dto.ts
32
32
  models/delete-response-class.ts
33
33
  models/doc-template-class.ts
34
34
  models/document-class.ts
35
+ models/docx-template-class.ts
35
36
  models/download-document-request-dto.ts
36
37
  models/get-doc-template-request-dto.ts
37
38
  models/get-doc-template-response-class.ts
38
39
  models/get-document-download-url-response-class.ts
39
40
  models/get-docx-template-download-url-response-class.ts
41
+ models/get-docx-template-response-class.ts
40
42
  models/get-layout-request-dto.ts
41
43
  models/get-layout-response-class.ts
42
44
  models/get-product-document-download-url-response-class.ts
@@ -52,6 +54,7 @@ models/layout-class.ts
52
54
  models/list-doc-template-request-dto.ts
53
55
  models/list-doc-templates-response-class.ts
54
56
  models/list-documents-response-class.ts
57
+ models/list-docx-templates-response-class.ts
55
58
  models/list-layouts-response-class.ts
56
59
  models/list-product-documents-response-class.ts
57
60
  models/list-request-dto.ts
@@ -69,6 +72,7 @@ models/update-doc-template-request-dto.ts
69
72
  models/update-doc-template-response-class.ts
70
73
  models/update-document-request-dto.ts
71
74
  models/update-document-response-class.ts
75
+ models/update-docx-template-response-class.ts
72
76
  models/update-html-template-dto.ts
73
77
  models/update-layout-request-dto.ts
74
78
  models/update-layout-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk@1.10.0 --save
20
+ npm install @emilgroup/document-sdk@1.11.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.10.0
24
+ yarn add @emilgroup/document-sdk@1.11.1
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -21,12 +21,20 @@ 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 { CreatePresignedPostResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { DeleteResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
27
29
  // @ts-ignore
30
+ import { GetDocxTemplateResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListDocxTemplatesResponseClass } from '../models';
33
+ // @ts-ignore
28
34
  import { SharedUpdateDocxTemplateRequestDto } from '../models';
29
35
  // @ts-ignore
36
+ import { UpdateDocxTemplateResponseClass } from '../models';
37
+ // @ts-ignore
30
38
  import { UploadDocxTemplateRequestDto } from '../models';
31
39
  /**
32
40
  * DocxTemplatesApi - axios parameter creator
@@ -380,7 +388,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
380
388
  * @param {*} [options] Override http request option.
381
389
  * @throws {RequiredError}
382
390
  */
383
- async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
391
+ async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateResponseClass>> {
384
392
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
385
393
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
394
  },
@@ -397,7 +405,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
397
405
  * @param {*} [options] Override http request option.
398
406
  * @throws {RequiredError}
399
407
  */
400
- async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
408
+ async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocxTemplatesResponseClass>> {
401
409
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
402
410
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
403
411
  },
@@ -410,7 +418,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
410
418
  * @param {*} [options] Override http request option.
411
419
  * @throws {RequiredError}
412
420
  */
413
- async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
421
+ async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDocxTemplateResponseClass>> {
414
422
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
415
423
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
416
424
  },
@@ -422,7 +430,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
422
430
  * @param {*} [options] Override http request option.
423
431
  * @throws {RequiredError}
424
432
  */
425
- async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
433
+ async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
426
434
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
427
435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
436
  },
@@ -466,7 +474,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
466
474
  * @param {*} [options] Override http request option.
467
475
  * @throws {RequiredError}
468
476
  */
469
- getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<object> {
477
+ getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateResponseClass> {
470
478
  return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
471
479
  },
472
480
  /**
@@ -482,7 +490,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
482
490
  * @param {*} [options] Override http request option.
483
491
  * @throws {RequiredError}
484
492
  */
485
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
493
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
486
494
  return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
487
495
  },
488
496
  /**
@@ -494,7 +502,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
494
502
  * @param {*} [options] Override http request option.
495
503
  * @throws {RequiredError}
496
504
  */
497
- updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
505
+ updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDocxTemplateResponseClass> {
498
506
  return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
499
507
  },
500
508
  /**
@@ -505,7 +513,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
505
513
  * @param {*} [options] Override http request option.
506
514
  * @throws {RequiredError}
507
515
  */
508
- uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
516
+ uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
509
517
  return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
510
518
  },
511
519
  };
@@ -21,14 +21,14 @@ 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 { CreatePresignedPostResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { GetProductDocumentDownloadUrlResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { GetProductDocumentResponseClass } from '../models';
27
29
  // @ts-ignore
28
30
  import { ListProductDocumentsResponseClass } from '../models';
29
31
  // @ts-ignore
30
- import { ProductDocumentClass } from '../models';
31
- // @ts-ignore
32
32
  import { UploadProductDocumentRequestDto } from '../models';
33
33
  /**
34
34
  * ProductDocumentsApi - axios parameter creator
@@ -186,7 +186,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
186
186
  /**
187
187
  * 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.
188
188
  * @summary List product documents
189
- * @param {string} productSlug
190
189
  * @param {string} [authorization] Bearer Token
191
190
  * @param {number} [pageSize] Page size
192
191
  * @param {string} [pageToken] Page token
@@ -197,11 +196,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
197
196
  * @param {*} [options] Override http request option.
198
197
  * @throws {RequiredError}
199
198
  */
200
- listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
- // verify required parameter 'productSlug' is not null or undefined
202
- assertParamExists('listProductDocuments', 'productSlug', productSlug)
203
- const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
204
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
199
+ listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ const localVarPath = `/documentservice/v1/documents/product`;
205
201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
203
  let baseOptions;
@@ -361,7 +357,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
361
357
  /**
362
358
  * 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.
363
359
  * @summary List product documents
364
- * @param {string} productSlug
365
360
  * @param {string} [authorization] Bearer Token
366
361
  * @param {number} [pageSize] Page size
367
362
  * @param {string} [pageToken] Page token
@@ -372,8 +367,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
372
367
  * @param {*} [options] Override http request option.
373
368
  * @throws {RequiredError}
374
369
  */
375
- async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
376
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
370
+ async listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
377
372
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
378
373
  },
379
374
  /**
@@ -385,7 +380,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
385
380
  * @param {*} [options] Override http request option.
386
381
  * @throws {RequiredError}
387
382
  */
388
- async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>> {
383
+ async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
389
384
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
390
385
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
391
386
  },
@@ -438,7 +433,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
438
433
  /**
439
434
  * 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.
440
435
  * @summary List product documents
441
- * @param {string} productSlug
442
436
  * @param {string} [authorization] Bearer Token
443
437
  * @param {number} [pageSize] Page size
444
438
  * @param {string} [pageToken] Page token
@@ -449,8 +443,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
449
443
  * @param {*} [options] Override http request option.
450
444
  * @throws {RequiredError}
451
445
  */
452
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
453
- return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
446
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
447
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
454
448
  },
455
449
  /**
456
450
  * Upload a product document.
@@ -461,7 +455,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
461
455
  * @param {*} [options] Override http request option.
462
456
  * @throws {RequiredError}
463
457
  */
464
- uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass> {
458
+ uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
465
459
  return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
466
460
  },
467
461
  };
@@ -557,13 +551,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
557
551
  * @interface ProductDocumentsApiListProductDocumentsRequest
558
552
  */
559
553
  export interface ProductDocumentsApiListProductDocumentsRequest {
560
- /**
561
- *
562
- * @type {string}
563
- * @memberof ProductDocumentsApiListProductDocuments
564
- */
565
- readonly productSlug: string
566
-
567
554
  /**
568
555
  * Bearer Token
569
556
  * @type {string}
@@ -693,8 +680,8 @@ export class ProductDocumentsApi extends BaseAPI {
693
680
  * @throws {RequiredError}
694
681
  * @memberof ProductDocumentsApi
695
682
  */
696
- public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
697
- return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
684
+ return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
698
685
  }
699
686
 
700
687
  /**
@@ -28,7 +28,7 @@ export interface CreateDocTemplateRequestDto {
28
28
  */
29
29
  'name': string;
30
30
  /**
31
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
32
  * @type {string}
33
33
  * @memberof CreateDocTemplateRequestDto
34
34
  */
@@ -46,7 +46,7 @@ export interface CreateDocTemplateRequestDto {
46
46
  */
47
47
  'bodyTemplate': CreateHtmlTemplateDto;
48
48
  /**
49
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
49
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
50
50
  * @type {string}
51
51
  * @memberof CreateDocTemplateRequestDto
52
52
  */
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface CreateDocumentRequestDto {
23
23
  /**
24
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
25
  * @type {string}
26
26
  * @memberof CreateDocumentRequestDto
27
27
  */
@@ -37,7 +37,7 @@ export interface CreateDocumentRequestDto {
37
37
  * @type {string}
38
38
  * @memberof CreateDocumentRequestDto
39
39
  */
40
- 'entityType': CreateDocumentRequestDtoEntityTypeEnum;
40
+ 'entityType': string;
41
41
  /**
42
42
  * Specifies the document creation strategy to be used, either synchronous or asynchronous.
43
43
  * @type {string}
@@ -99,7 +99,7 @@ export interface CreateDocumentRequestDto {
99
99
  */
100
100
  'filename'?: string;
101
101
  /**
102
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
102
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
103
103
  * @type {string}
104
104
  * @memberof CreateDocumentRequestDto
105
105
  */
@@ -118,18 +118,6 @@ export interface CreateDocumentRequestDto {
118
118
  'engine'?: CreateDocumentRequestDtoEngineEnum;
119
119
  }
120
120
 
121
- export const CreateDocumentRequestDtoEntityTypeEnum = {
122
- PolicyApplication: 'policy_application',
123
- PolicyContract: 'policy_contract',
124
- PolicyAddendum: 'policy_addendum',
125
- InitialInvoice: 'initial_invoice',
126
- CorrectionInvoice: 'correction_invoice',
127
- RecurringInvoice: 'recurring_invoice',
128
- SepaMandate: 'sepa_mandate',
129
- Static: 'static'
130
- } as const;
131
-
132
- export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
133
121
  export const CreateDocumentRequestDtoStrategyEnum = {
134
122
  Sync: 'Sync',
135
123
  Async: 'Async'
@@ -28,7 +28,7 @@ export interface CreateLayoutRequestDto {
28
28
  */
29
29
  'name': string;
30
30
  /**
31
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
32
  * @type {string}
33
33
  * @memberof CreateLayoutRequestDto
34
34
  */
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface CreatePresignedPostRequestDto {
23
23
  /**
24
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
25
  * @type {string}
26
26
  * @memberof CreatePresignedPostRequestDto
27
27
  */
@@ -87,7 +87,7 @@ export interface CreatePresignedPostRequestDto {
87
87
  */
88
88
  'filename': string;
89
89
  /**
90
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
90
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
91
91
  * @type {string}
92
92
  * @memberof CreatePresignedPostRequestDto
93
93
  */
@@ -27,7 +27,7 @@ export interface DeleteProductDocumentRequestDto {
27
27
  */
28
28
  'code': string;
29
29
  /**
30
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
30
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
31
  * @type {string}
32
32
  * @memberof DeleteProductDocumentRequestDto
33
33
  */
@@ -41,7 +41,7 @@ export interface DocTemplateClass {
41
41
  */
42
42
  'name': string;
43
43
  /**
44
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
44
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
45
45
  * @type {string}
46
46
  * @memberof DocTemplateClass
47
47
  */
@@ -71,7 +71,7 @@ export interface DocTemplateClass {
71
71
  */
72
72
  'layout'?: LayoutClass;
73
73
  /**
74
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
74
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
75
75
  * @type {string}
76
76
  * @memberof DocTemplateClass
77
77
  */
@@ -33,7 +33,7 @@ export interface DocumentClass {
33
33
  */
34
34
  'code': string;
35
35
  /**
36
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
37
  * @type {string}
38
38
  * @memberof DocumentClass
39
39
  */
@@ -43,7 +43,7 @@ export interface DocumentClass {
43
43
  * @type {string}
44
44
  * @memberof DocumentClass
45
45
  */
46
- 'entityType': DocumentClassEntityTypeEnum;
46
+ 'entityType': string;
47
47
  /**
48
48
  * Payload used to replace variables in the template.
49
49
  * @type {object}
@@ -105,7 +105,7 @@ export interface DocumentClass {
105
105
  */
106
106
  'contentType': DocumentClassContentTypeEnum;
107
107
  /**
108
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
108
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
109
109
  * @type {string}
110
110
  * @memberof DocumentClass
111
111
  */
@@ -116,20 +116,14 @@ export interface DocumentClass {
116
116
  * @memberof DocumentClass
117
117
  */
118
118
  'createdAt': string;
119
+ /**
120
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
121
+ * @type {string}
122
+ * @memberof DocumentClass
123
+ */
124
+ 'ern': string;
119
125
  }
120
126
 
121
- export const DocumentClassEntityTypeEnum = {
122
- PolicyApplication: 'policy_application',
123
- PolicyContract: 'policy_contract',
124
- PolicyAddendum: 'policy_addendum',
125
- InitialInvoice: 'initial_invoice',
126
- CorrectionInvoice: 'correction_invoice',
127
- RecurringInvoice: 'recurring_invoice',
128
- SepaMandate: 'sepa_mandate',
129
- Static: 'static'
130
- } as const;
131
-
132
- export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
133
127
  export const DocumentClassRequesterEnum = {
134
128
  Accountservice: 'accountservice',
135
129
  Insuranceservice: 'insuranceservice',
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DocxTemplateClass
21
+ */
22
+ export interface DocxTemplateClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof DocxTemplateClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof DocxTemplateClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
+ * @type {string}
38
+ * @memberof DocxTemplateClass
39
+ */
40
+ 'slug': string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof DocxTemplateClass
45
+ */
46
+ 'productVersionId': number;
47
+ /**
48
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
49
+ * @type {string}
50
+ * @memberof DocxTemplateClass
51
+ */
52
+ 'productSlug': string;
53
+ /**
54
+ * Description of the document. Usually a short summary about the context in which the document is being used.
55
+ * @type {string}
56
+ * @memberof DocxTemplateClass
57
+ */
58
+ 'description': string;
59
+ /**
60
+ * The unique key used by Amazon Simple Storage Service (S3).
61
+ * @type {string}
62
+ * @memberof DocxTemplateClass
63
+ */
64
+ 's3Key': string;
65
+ /**
66
+ * Document entity type.
67
+ * @type {string}
68
+ * @memberof DocxTemplateClass
69
+ */
70
+ 'entityType': string;
71
+ /**
72
+ * Name of the file the end user will see when he downloads it.
73
+ * @type {string}
74
+ * @memberof DocxTemplateClass
75
+ */
76
+ 'filename': string;
77
+ /**
78
+ * Version number of the template, incremented each time a new version is uploaded.
79
+ * @type {number}
80
+ * @memberof DocxTemplateClass
81
+ */
82
+ 'versionNumber': number;
83
+ /**
84
+ * Time at which the object was created.
85
+ * @type {string}
86
+ * @memberof DocxTemplateClass
87
+ */
88
+ 'createdAt': string;
89
+ /**
90
+ * Time at which the object was updated.
91
+ * @type {string}
92
+ * @memberof DocxTemplateClass
93
+ */
94
+ 'updatedAt': string;
95
+ }
96
+
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /* tslint:disable */
3
2
  /* eslint-disable */
4
3
  /**
@@ -12,13 +11,21 @@
12
11
  * https://openapi-generator.tech
13
12
  * Do not edit the class manually.
14
13
  */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UploadProductDocumentRequestDtoContentTypeEnum = void 0;
17
- exports.UploadProductDocumentRequestDtoContentTypeEnum = {
18
- Pdf: 'pdf',
19
- Jpg: 'jpg',
20
- Png: 'png',
21
- Csv: 'csv',
22
- Doc: 'doc',
23
- Docx: 'docx'
24
- };
14
+
15
+
16
+ import { DocxTemplateClass } from './docx-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetDocxTemplateResponseClass
22
+ */
23
+ export interface GetDocxTemplateResponseClass {
24
+ /**
25
+ * Docx Template
26
+ * @type {DocxTemplateClass}
27
+ * @memberof GetDocxTemplateResponseClass
28
+ */
29
+ 'docxTemplate': DocxTemplateClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -13,11 +13,13 @@ export * from './delete-request-dto';
13
13
  export * from './delete-response-class';
14
14
  export * from './doc-template-class';
15
15
  export * from './document-class';
16
+ export * from './docx-template-class';
16
17
  export * from './download-document-request-dto';
17
18
  export * from './get-doc-template-request-dto';
18
19
  export * from './get-doc-template-response-class';
19
20
  export * from './get-document-download-url-response-class';
20
21
  export * from './get-docx-template-download-url-response-class';
22
+ export * from './get-docx-template-response-class';
21
23
  export * from './get-layout-request-dto';
22
24
  export * from './get-layout-response-class';
23
25
  export * from './get-product-document-download-url-response-class';
@@ -32,6 +34,7 @@ export * from './layout-class';
32
34
  export * from './list-doc-template-request-dto';
33
35
  export * from './list-doc-templates-response-class';
34
36
  export * from './list-documents-response-class';
37
+ export * from './list-docx-templates-response-class';
35
38
  export * from './list-layouts-response-class';
36
39
  export * from './list-product-documents-response-class';
37
40
  export * from './list-request-dto';
@@ -49,6 +52,7 @@ export * from './update-doc-template-request-dto';
49
52
  export * from './update-doc-template-response-class';
50
53
  export * from './update-document-request-dto';
51
54
  export * from './update-document-response-class';
55
+ export * from './update-docx-template-response-class';
52
56
  export * from './update-html-template-dto';
53
57
  export * from './update-layout-request-dto';
54
58
  export * from './update-layout-response-class';
@@ -40,7 +40,7 @@ export interface LayoutClass {
40
40
  */
41
41
  'name': string;
42
42
  /**
43
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
43
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
44
44
  * @type {string}
45
45
  * @memberof LayoutClass
46
46
  */
@@ -1,3 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
1
3
  /**
2
4
  * EMIL DocumentService
3
5
  * The EMIL DocumentService API description
@@ -9,23 +11,27 @@
9
11
  * https://openapi-generator.tech
10
12
  * Do not edit the class manually.
11
13
  */
12
- import { ProductDocumentClass } from './product-document-class';
14
+
15
+
16
+ import { DocxTemplateClass } from './docx-template-class';
17
+
13
18
  /**
14
- *
19
+ *
15
20
  * @export
16
- * @interface ListProductDocumentsResponseClass
21
+ * @interface ListDocxTemplatesResponseClass
17
22
  */
18
- export interface ListProductDocumentsResponseClass {
23
+ export interface ListDocxTemplatesResponseClass {
19
24
  /**
20
- * The list of documents.
21
- * @type {Array<ProductDocumentClass>}
22
- * @memberof ListProductDocumentsResponseClass
25
+ * The list of docx templates.
26
+ * @type {Array<DocxTemplateClass>}
27
+ * @memberof ListDocxTemplatesResponseClass
23
28
  */
24
- 'items': Array<ProductDocumentClass>;
29
+ 'items': Array<DocxTemplateClass>;
25
30
  /**
26
31
  * Next page token.
27
32
  * @type {string}
28
- * @memberof ListProductDocumentsResponseClass
33
+ * @memberof ListDocxTemplatesResponseClass
29
34
  */
30
35
  'nextPageToken': string;
31
36
  }
37
+