@emilgroup/document-sdk-node 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 +2 -2
  23. package/dist/api/default-api.d.ts +0 -66
  24. package/dist/api/default-api.js +0 -200
  25. package/dist/api/document-templates-api.d.ts +0 -385
  26. package/dist/api/document-templates-api.js +0 -640
  27. package/dist/api/documents-api.d.ts +0 -488
  28. package/dist/api/documents-api.js +0 -821
  29. package/dist/api/docx-templates-api.d.ts +0 -428
  30. package/dist/api/docx-templates-api.js +0 -726
  31. package/dist/api/layouts-api.d.ts +0 -385
  32. package/dist/api/layouts-api.js +0 -642
  33. package/dist/api/product-documents-api.d.ts +0 -410
  34. package/dist/api/product-documents-api.js +0 -656
  35. package/dist/api/search-keywords-api.d.ts +0 -96
  36. package/dist/api/search-keywords-api.js +0 -229
  37. package/dist/api/searchable-document-owners-api.d.ts +0 -141
  38. package/dist/api/searchable-document-owners-api.js +0 -258
  39. package/dist/api/searchable-documents-api.d.ts +0 -114
  40. package/dist/api/searchable-documents-api.js +0 -243
  41. package/dist/api.d.ts +0 -20
  42. package/dist/api.js +0 -38
  43. package/dist/base.d.ts +0 -78
  44. package/dist/base.js +0 -394
  45. package/dist/common.d.ts +0 -92
  46. package/dist/common.js +0 -277
  47. package/dist/configuration.d.ts +0 -90
  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-node@1.10.0 --save
20
+ npm install @emilgroup/document-sdk-node@1.11.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.10.0
24
+ yarn add @emilgroup/document-sdk-node@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
  // URLSearchParams not necessarily used
32
40
  // @ts-ignore
@@ -384,7 +392,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
384
392
  * @param {*} [options] Override http request option.
385
393
  * @throws {RequiredError}
386
394
  */
387
- async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
395
+ async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDocxTemplateResponseClass>> {
388
396
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
389
397
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
390
398
  },
@@ -401,7 +409,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
401
409
  * @param {*} [options] Override http request option.
402
410
  * @throws {RequiredError}
403
411
  */
404
- 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>> {
412
+ 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>> {
405
413
  const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
406
414
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
407
415
  },
@@ -414,7 +422,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
414
422
  * @param {*} [options] Override http request option.
415
423
  * @throws {RequiredError}
416
424
  */
417
- async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
425
+ async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDocxTemplateResponseClass>> {
418
426
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
419
427
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
420
428
  },
@@ -426,7 +434,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
426
434
  * @param {*} [options] Override http request option.
427
435
  * @throws {RequiredError}
428
436
  */
429
- async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
437
+ async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
430
438
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
431
439
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
432
440
  },
@@ -470,7 +478,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
470
478
  * @param {*} [options] Override http request option.
471
479
  * @throws {RequiredError}
472
480
  */
473
- getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<object> {
481
+ getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<GetDocxTemplateResponseClass> {
474
482
  return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
475
483
  },
476
484
  /**
@@ -486,7 +494,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
486
494
  * @param {*} [options] Override http request option.
487
495
  * @throws {RequiredError}
488
496
  */
489
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
497
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocxTemplatesResponseClass> {
490
498
  return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
491
499
  },
492
500
  /**
@@ -498,7 +506,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
498
506
  * @param {*} [options] Override http request option.
499
507
  * @throws {RequiredError}
500
508
  */
501
- updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
509
+ updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDocxTemplateResponseClass> {
502
510
  return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
503
511
  },
504
512
  /**
@@ -509,7 +517,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
509
517
  * @param {*} [options] Override http request option.
510
518
  * @throws {RequiredError}
511
519
  */
512
- uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
520
+ uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
513
521
  return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
514
522
  },
515
523
  };
@@ -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
  // URLSearchParams not necessarily used
34
34
  // @ts-ignore
@@ -190,7 +190,6 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
190
190
  /**
191
191
  * 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.
192
192
  * @summary List product documents
193
- * @param {string} productSlug
194
193
  * @param {string} [authorization] Bearer Token
195
194
  * @param {number} [pageSize] Page size
196
195
  * @param {string} [pageToken] Page token
@@ -201,11 +200,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
201
200
  * @param {*} [options] Override http request option.
202
201
  * @throws {RequiredError}
203
202
  */
204
- listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
- // verify required parameter 'productSlug' is not null or undefined
206
- assertParamExists('listProductDocuments', 'productSlug', productSlug)
207
- const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
208
- .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
203
+ listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ const localVarPath = `/documentservice/v1/documents/product`;
209
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
211
207
  let baseOptions;
@@ -365,7 +361,6 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
365
361
  /**
366
362
  * 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.
367
363
  * @summary List product documents
368
- * @param {string} productSlug
369
364
  * @param {string} [authorization] Bearer Token
370
365
  * @param {number} [pageSize] Page size
371
366
  * @param {string} [pageToken] Page token
@@ -376,8 +371,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
376
371
  * @param {*} [options] Override http request option.
377
372
  * @throws {RequiredError}
378
373
  */
379
- 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>> {
380
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
374
+ 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>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
381
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
377
  },
383
378
  /**
@@ -389,7 +384,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
389
384
  * @param {*} [options] Override http request option.
390
385
  * @throws {RequiredError}
391
386
  */
392
- async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>> {
387
+ async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
393
388
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
394
389
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
395
390
  },
@@ -442,7 +437,6 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
442
437
  /**
443
438
  * 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.
444
439
  * @summary List product documents
445
- * @param {string} productSlug
446
440
  * @param {string} [authorization] Bearer Token
447
441
  * @param {number} [pageSize] Page size
448
442
  * @param {string} [pageToken] Page token
@@ -453,8 +447,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
453
447
  * @param {*} [options] Override http request option.
454
448
  * @throws {RequiredError}
455
449
  */
456
- listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
457
- return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
450
+ listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
451
+ return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
458
452
  },
459
453
  /**
460
454
  * Upload a product document.
@@ -465,7 +459,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
465
459
  * @param {*} [options] Override http request option.
466
460
  * @throws {RequiredError}
467
461
  */
468
- uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass> {
462
+ uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
469
463
  return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
470
464
  },
471
465
  };
@@ -561,13 +555,6 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
561
555
  * @interface ProductDocumentsApiListProductDocumentsRequest
562
556
  */
563
557
  export interface ProductDocumentsApiListProductDocumentsRequest {
564
- /**
565
- *
566
- * @type {string}
567
- * @memberof ProductDocumentsApiListProductDocuments
568
- */
569
- readonly productSlug: string
570
-
571
558
  /**
572
559
  * Bearer Token
573
560
  * @type {string}
@@ -697,8 +684,8 @@ export class ProductDocumentsApi extends BaseAPI {
697
684
  * @throws {RequiredError}
698
685
  * @memberof ProductDocumentsApi
699
686
  */
700
- public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
701
- 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));
687
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
688
+ 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));
702
689
  }
703
690
 
704
691
  /**
@@ -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
+