@emilgroup/document-sdk-node 1.2.0 → 1.3.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 (141) hide show
  1. package/.openapi-generator/FILES +21 -0
  2. package/README.md +2 -2
  3. package/api/document-templates-api.ts +88 -94
  4. package/api/documents-api.ts +152 -34
  5. package/api/layouts-api.ts +52 -28
  6. package/api/product-documents-api.ts +599 -0
  7. package/api/search-keywords-api.ts +168 -0
  8. package/api/searchable-document-owners-api.ts +26 -22
  9. package/api/searchable-documents-api.ts +16 -12
  10. package/api.ts +4 -0
  11. package/dist/api/document-templates-api.d.ts +82 -78
  12. package/dist/api/document-templates-api.js +73 -67
  13. package/dist/api/documents-api.d.ts +93 -29
  14. package/dist/api/documents-api.js +121 -23
  15. package/dist/api/layouts-api.d.ts +52 -30
  16. package/dist/api/layouts-api.js +43 -23
  17. package/dist/api/product-documents-api.d.ts +345 -0
  18. package/dist/api/product-documents-api.js +558 -0
  19. package/dist/api/search-keywords-api.d.ts +96 -0
  20. package/dist/api/search-keywords-api.js +229 -0
  21. package/dist/api/searchable-document-owners-api.d.ts +23 -19
  22. package/dist/api/searchable-document-owners-api.js +16 -12
  23. package/dist/api/searchable-documents-api.d.ts +16 -12
  24. package/dist/api/searchable-documents-api.js +14 -10
  25. package/dist/api.d.ts +2 -0
  26. package/dist/api.js +2 -0
  27. package/dist/models/create-doc-template-request-dto.d.ts +10 -4
  28. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  29. package/dist/models/create-doc-template-response-class.js +15 -0
  30. package/dist/models/create-document-request-dto.d.ts +21 -8
  31. package/dist/models/create-document-request-dto.js +2 -1
  32. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  33. package/dist/models/create-document-sync-response-class.js +15 -0
  34. package/dist/models/create-html-template-dto.d.ts +1 -1
  35. package/dist/models/create-layout-request-dto.d.ts +10 -10
  36. package/dist/models/create-layout-response-class.d.ts +25 -0
  37. package/dist/models/create-layout-response-class.js +15 -0
  38. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  39. package/dist/models/create-presigned-post-request-dto.js +52 -0
  40. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  41. package/dist/models/create-presigned-post-response-class.js +15 -0
  42. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  43. package/dist/models/delete-product-document-request-dto.d.ts +30 -0
  44. package/dist/models/delete-product-document-request-dto.js +15 -0
  45. package/dist/models/delete-request-dto.d.ts +1 -1
  46. package/dist/models/delete-response-class.d.ts +24 -0
  47. package/dist/models/delete-response-class.js +15 -0
  48. package/dist/models/doc-template-class.d.ts +25 -19
  49. package/dist/models/document-class.d.ts +21 -8
  50. package/dist/models/document-class.js +2 -1
  51. package/dist/models/download-document-request-dto.d.ts +2 -2
  52. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  53. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  54. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  55. package/dist/models/get-layout-request-dto.d.ts +1 -1
  56. package/dist/models/get-product-document-response-class.d.ts +25 -0
  57. package/dist/models/get-product-document-response-class.js +15 -0
  58. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  59. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  60. package/dist/models/html-template-class.d.ts +7 -7
  61. package/dist/models/index.d.ts +19 -0
  62. package/dist/models/index.js +19 -0
  63. package/dist/models/layout-class.d.ts +11 -11
  64. package/dist/models/list-doc-template-request-dto.d.ts +48 -0
  65. package/dist/models/list-doc-template-request-dto.js +15 -0
  66. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  67. package/dist/models/list-documents-response-class.d.ts +1 -1
  68. package/dist/models/list-layouts-response-class.d.ts +1 -1
  69. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  70. package/dist/models/list-product-documents-response-class.js +15 -0
  71. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  72. package/dist/models/list-search-keywords-request-dto.js +15 -0
  73. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  74. package/dist/models/list-search-keywords-response-class.js +15 -0
  75. package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
  76. package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
  77. package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
  78. package/dist/models/product-document-class.d.ts +99 -0
  79. package/dist/models/product-document-class.js +36 -0
  80. package/dist/models/searchable-document-class.d.ts +66 -0
  81. package/dist/models/searchable-document-class.js +15 -0
  82. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  83. package/dist/models/searchable-document-owner-class.js +15 -0
  84. package/dist/models/update-doc-template-request-dto.d.ts +16 -10
  85. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  86. package/dist/models/update-document-request-dto.d.ts +10 -4
  87. package/dist/models/update-document-response-class.d.ts +25 -0
  88. package/dist/models/update-document-response-class.js +15 -0
  89. package/dist/models/update-html-template-dto.d.ts +42 -0
  90. package/dist/models/update-html-template-dto.js +21 -0
  91. package/dist/models/update-layout-request-dto.d.ts +15 -15
  92. package/dist/models/update-layout-response-class.d.ts +1 -1
  93. package/dist/models/upload-product-document-request-dto.d.ts +63 -0
  94. package/dist/models/upload-product-document-request-dto.js +24 -0
  95. package/models/create-doc-template-request-dto.ts +10 -4
  96. package/models/create-doc-template-response-class.ts +31 -0
  97. package/models/create-document-request-dto.ts +22 -9
  98. package/models/create-document-sync-response-class.ts +31 -0
  99. package/models/create-html-template-dto.ts +1 -1
  100. package/models/create-layout-request-dto.ts +10 -10
  101. package/models/create-layout-response-class.ts +31 -0
  102. package/models/create-presigned-post-request-dto.ts +138 -0
  103. package/models/create-presigned-post-response-class.ts +36 -0
  104. package/models/delete-layout-request-dto.ts +1 -1
  105. package/models/delete-product-document-request-dto.ts +36 -0
  106. package/models/delete-request-dto.ts +1 -1
  107. package/models/delete-response-class.ts +30 -0
  108. package/models/doc-template-class.ts +25 -19
  109. package/models/document-class.ts +22 -9
  110. package/models/download-document-request-dto.ts +2 -2
  111. package/models/get-doc-template-request-dto.ts +1 -1
  112. package/models/get-doc-template-response-class.ts +1 -1
  113. package/models/get-document-download-url-response-class.ts +1 -1
  114. package/models/get-layout-request-dto.ts +1 -1
  115. package/models/get-product-document-response-class.ts +31 -0
  116. package/models/get-signed-s3-key-url-response-class.ts +30 -0
  117. package/models/html-template-class.ts +7 -7
  118. package/models/index.ts +19 -0
  119. package/models/layout-class.ts +11 -11
  120. package/models/list-doc-template-request-dto.ts +54 -0
  121. package/models/list-doc-templates-response-class.ts +1 -1
  122. package/models/list-documents-response-class.ts +1 -1
  123. package/models/list-layouts-response-class.ts +1 -1
  124. package/models/list-product-documents-response-class.ts +37 -0
  125. package/models/list-search-keywords-request-dto.ts +30 -0
  126. package/models/list-search-keywords-response-class.ts +30 -0
  127. package/models/list-searchable-document-owners-response-class.ts +3 -2
  128. package/models/list-searchable-documents-request-dto.ts +2 -2
  129. package/models/list-searchable-documents-response-class.ts +5 -4
  130. package/models/product-document-class.ts +108 -0
  131. package/models/searchable-document-class.ts +72 -0
  132. package/models/searchable-document-owner-class.ts +36 -0
  133. package/models/update-doc-template-request-dto.ts +16 -10
  134. package/models/update-doc-template-response-class.ts +1 -1
  135. package/models/update-document-request-dto.ts +10 -4
  136. package/models/update-document-response-class.ts +31 -0
  137. package/models/update-html-template-dto.ts +51 -0
  138. package/models/update-layout-request-dto.ts +15 -15
  139. package/models/update-layout-response-class.ts +1 -1
  140. package/models/upload-product-document-request-dto.ts +72 -0
  141. package/package.json +2 -2
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ProductDocumentClass } from './product-document-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListProductDocumentsResponseClass
17
+ */
18
+ export interface ListProductDocumentsResponseClass {
19
+ /**
20
+ * The list of documents.
21
+ * @type {Array<ProductDocumentClass>}
22
+ * @memberof ListProductDocumentsResponseClass
23
+ */
24
+ 'items': Array<ProductDocumentClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListProductDocumentsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListSearchKeywordsRequestDto
16
+ */
17
+ export interface ListSearchKeywordsRequestDto {
18
+ /**
19
+ * Text to search in the documents.
20
+ * @type {string}
21
+ * @memberof ListSearchKeywordsRequestDto
22
+ */
23
+ 'searchText': string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListSearchKeywordsResponseClass
16
+ */
17
+ export interface ListSearchKeywordsResponseClass {
18
+ /**
19
+ * Keywords used for search and to be highlighted in the document preview.
20
+ * @type {Array<string>}
21
+ * @memberof ListSearchKeywordsResponseClass
22
+ */
23
+ 'keywords': Array<string>;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SearchableDocumentOwnerClass } from './searchable-document-owner-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,8 +18,8 @@
17
18
  export interface ListSearchableDocumentOwnersResponseClass {
18
19
  /**
19
20
  * Searchable document owners
20
- * @type {Array<string>}
21
+ * @type {Array<SearchableDocumentOwnerClass>}
21
22
  * @memberof ListSearchableDocumentOwnersResponseClass
22
23
  */
23
- 'owners': Array<string>;
24
+ 'owners': Array<SearchableDocumentOwnerClass>;
24
25
  }
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface ListSearchableDocumentsRequestDto {
18
18
  /**
19
- * Text to search in the documents
19
+ * Text to search in the documents.
20
20
  * @type {string}
21
21
  * @memberof ListSearchableDocumentsRequestDto
22
22
  */
23
23
  'searchText': string;
24
24
  /**
25
- * List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
25
+ * List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
26
26
  * @type {string}
27
27
  * @memberof ListSearchableDocumentsRequestDto
28
28
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SearchableDocumentClass } from './searchable-document-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,13 +17,13 @@
16
17
  */
17
18
  export interface ListSearchableDocumentsResponseClass {
18
19
  /**
19
- * Searchable documents that match the search criteria
20
- * @type {Array<string>}
20
+ * Searchable documents that match the search criteria.
21
+ * @type {Array<SearchableDocumentClass>}
21
22
  * @memberof ListSearchableDocumentsResponseClass
22
23
  */
23
- 'documents': Array<string>;
24
+ 'documents': Array<SearchableDocumentClass>;
24
25
  /**
25
- * Keywords used for search and to be highlighted in teh document preview
26
+ * Keywords used for search and to be highlighted in the document preview.
26
27
  * @type {Array<string>}
27
28
  * @memberof ListSearchableDocumentsResponseClass
28
29
  */
@@ -0,0 +1,99 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ProductDocumentClass
16
+ */
17
+ export interface ProductDocumentClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof ProductDocumentClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof ProductDocumentClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Unique identifier of the product that this object belongs to.
32
+ * @type {string}
33
+ * @memberof ProductDocumentClass
34
+ */
35
+ 'productCode': string;
36
+ /**
37
+ * Unique identifier referencing the product.
38
+ * @type {number}
39
+ * @memberof ProductDocumentClass
40
+ */
41
+ 'productVersionId': number;
42
+ /**
43
+ * Type of the product document.
44
+ * @type {string}
45
+ * @memberof ProductDocumentClass
46
+ */
47
+ 'type': string;
48
+ /**
49
+ * Description of the document. Usually a short summary about the context in which the document is being used.
50
+ * @type {string}
51
+ * @memberof ProductDocumentClass
52
+ */
53
+ 'description': string;
54
+ /**
55
+ * The unique key used by Amazon Simple Storage Service (S3).
56
+ * @type {string}
57
+ * @memberof ProductDocumentClass
58
+ */
59
+ 's3Key': string;
60
+ /**
61
+ * Type of the document expressed with its file extension.
62
+ * @type {string}
63
+ * @memberof ProductDocumentClass
64
+ */
65
+ 'contentType': ProductDocumentClassContentTypeEnum;
66
+ /**
67
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
68
+ * @type {string}
69
+ * @memberof ProductDocumentClass
70
+ */
71
+ 'productSlug': string;
72
+ /**
73
+ * Time at which the object was created.
74
+ * @type {string}
75
+ * @memberof ProductDocumentClass
76
+ */
77
+ 'createdAt': string;
78
+ }
79
+ export declare const ProductDocumentClassContentTypeEnum: {
80
+ readonly Pdf: "pdf";
81
+ readonly Jpg: "jpg";
82
+ readonly Png: "png";
83
+ readonly Gz: "gz";
84
+ readonly Csv: "csv";
85
+ readonly Doc: "doc";
86
+ readonly Docx: "docx";
87
+ readonly Html: "html";
88
+ readonly Json: "json";
89
+ readonly Xml: "xml";
90
+ readonly Txt: "txt";
91
+ readonly Zip: "zip";
92
+ readonly Tar: "tar";
93
+ readonly Rar: "rar";
94
+ readonly Mp4: "MP4";
95
+ readonly Mov: "MOV";
96
+ readonly Wmv: "WMV";
97
+ readonly Avi: "AVI";
98
+ };
99
+ export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProductDocumentClassContentTypeEnum = void 0;
17
+ exports.ProductDocumentClassContentTypeEnum = {
18
+ Pdf: 'pdf',
19
+ Jpg: 'jpg',
20
+ Png: 'png',
21
+ Gz: 'gz',
22
+ Csv: 'csv',
23
+ Doc: 'doc',
24
+ Docx: 'docx',
25
+ Html: 'html',
26
+ Json: 'json',
27
+ Xml: 'xml',
28
+ Txt: 'txt',
29
+ Zip: 'zip',
30
+ Tar: 'tar',
31
+ Rar: 'rar',
32
+ Mp4: 'MP4',
33
+ Mov: 'MOV',
34
+ Wmv: 'WMV',
35
+ Avi: 'AVI'
36
+ };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SearchableDocumentClass
16
+ */
17
+ export interface SearchableDocumentClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof SearchableDocumentClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Searchable document name.
26
+ * @type {string}
27
+ * @memberof SearchableDocumentClass
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
32
+ * @type {number}
33
+ * @memberof SearchableDocumentClass
34
+ */
35
+ 'ownerId': number;
36
+ /**
37
+ * Searchable document owner name.
38
+ * @type {string}
39
+ * @memberof SearchableDocumentClass
40
+ */
41
+ 'ownerName': string;
42
+ /**
43
+ * Headlines (snippets) from the document.
44
+ * @type {Array<string>}
45
+ * @memberof SearchableDocumentClass
46
+ */
47
+ 'headlines': Array<string>;
48
+ /**
49
+ * S3 key of the searchable document file.
50
+ * @type {string}
51
+ * @memberof SearchableDocumentClass
52
+ */
53
+ 's3Key': string;
54
+ /**
55
+ * Signed URL to download the document file from S3.
56
+ * @type {string}
57
+ * @memberof SearchableDocumentClass
58
+ */
59
+ 'signedS3Url': string;
60
+ /**
61
+ * Rank of the document in the search.
62
+ * @type {number}
63
+ * @memberof SearchableDocumentClass
64
+ */
65
+ 'rank': number;
66
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SearchableDocumentOwnerClass
16
+ */
17
+ export interface SearchableDocumentOwnerClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof SearchableDocumentOwnerClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Searchable document owner name.
26
+ * @type {string}
27
+ * @memberof SearchableDocumentOwnerClass
28
+ */
29
+ 'name': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CreateHtmlTemplateDto } from './create-html-template-dto';
12
+ import { UpdateHtmlTemplateDto } from './update-html-template-dto';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -17,33 +17,39 @@ import { CreateHtmlTemplateDto } from './create-html-template-dto';
17
17
  */
18
18
  export interface UpdateDocTemplateRequestDto {
19
19
  /**
20
- * Template name
20
+ * Template name.
21
21
  * @type {string}
22
22
  * @memberof UpdateDocTemplateRequestDto
23
23
  */
24
24
  'name': string;
25
25
  /**
26
- * Template slug
26
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
27
27
  * @type {string}
28
28
  * @memberof UpdateDocTemplateRequestDto
29
29
  */
30
30
  'slug': string;
31
31
  /**
32
- * Template id
32
+ * Unique identifier referencing the layout.
33
33
  * @type {number}
34
34
  * @memberof UpdateDocTemplateRequestDto
35
35
  */
36
- 'id': number;
36
+ 'layoutId': number;
37
+ /**
38
+ * Body templates.
39
+ * @type {UpdateHtmlTemplateDto}
40
+ * @memberof UpdateDocTemplateRequestDto
41
+ */
42
+ 'bodyTemplate': UpdateHtmlTemplateDto;
37
43
  /**
38
- *
39
- * @type {CreateHtmlTemplateDto}
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
+ * @type {string}
40
46
  * @memberof UpdateDocTemplateRequestDto
41
47
  */
42
- 'bodyTemplate': CreateHtmlTemplateDto;
48
+ 'productSlug'?: string;
43
49
  /**
44
- *
50
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
45
51
  * @type {number}
46
52
  * @memberof UpdateDocTemplateRequestDto
47
53
  */
48
- 'layoutId': number;
54
+ 'id': number;
49
55
  }
@@ -17,7 +17,7 @@ import { DocTemplateClass } from './doc-template-class';
17
17
  */
18
18
  export interface UpdateDocTemplateResponseClass {
19
19
  /**
20
- * Document template
20
+ * Document template.
21
21
  * @type {DocTemplateClass}
22
22
  * @memberof UpdateDocTemplateResponseClass
23
23
  */
@@ -16,25 +16,31 @@
16
16
  */
17
17
  export interface UpdateDocumentRequestDto {
18
18
  /**
19
- * Document description
19
+ * Document description.
20
20
  * @type {string}
21
21
  * @memberof UpdateDocumentRequestDto
22
22
  */
23
23
  'description'?: string;
24
24
  /**
25
- * Policy code
25
+ * Unique identifier of the policy that this object belongs to.
26
26
  * @type {string}
27
27
  * @memberof UpdateDocumentRequestDto
28
28
  */
29
29
  'policyCode'?: string;
30
30
  /**
31
- * Account code
31
+ * Unique identifier of the account that this object belongs to.
32
32
  * @type {string}
33
33
  * @memberof UpdateDocumentRequestDto
34
34
  */
35
35
  'accountCode'?: string;
36
36
  /**
37
- * Entity id
37
+ * Unique identifier of the lead that this object belongs to.
38
+ * @type {string}
39
+ * @memberof UpdateDocumentRequestDto
40
+ */
41
+ 'leadCode'?: string;
42
+ /**
43
+ * Unique identifier referencing the entity.
38
44
  * @type {number}
39
45
  * @memberof UpdateDocumentRequestDto
40
46
  */
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { DocumentClass } from './document-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateDocumentResponseClass
17
+ */
18
+ export interface UpdateDocumentResponseClass {
19
+ /**
20
+ * Document
21
+ * @type {DocumentClass}
22
+ * @memberof UpdateDocumentResponseClass
23
+ */
24
+ 'document': DocumentClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateHtmlTemplateDto
16
+ */
17
+ export interface UpdateHtmlTemplateDto {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof UpdateHtmlTemplateDto
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Template type based on HTML layout elements: Header,Body and Footer.
26
+ * @type {string}
27
+ * @memberof UpdateHtmlTemplateDto
28
+ */
29
+ 'type': UpdateHtmlTemplateDtoTypeEnum;
30
+ /**
31
+ * Template draft content.
32
+ * @type {string}
33
+ * @memberof UpdateHtmlTemplateDto
34
+ */
35
+ 'draftContent': string;
36
+ }
37
+ export declare const UpdateHtmlTemplateDtoTypeEnum: {
38
+ readonly Header: "header";
39
+ readonly Footer: "footer";
40
+ readonly Body: "body";
41
+ };
42
+ export type UpdateHtmlTemplateDtoTypeEnum = typeof UpdateHtmlTemplateDtoTypeEnum[keyof typeof UpdateHtmlTemplateDtoTypeEnum];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateHtmlTemplateDtoTypeEnum = void 0;
17
+ exports.UpdateHtmlTemplateDtoTypeEnum = {
18
+ Header: 'header',
19
+ Footer: 'footer',
20
+ Body: 'body'
21
+ };