@emilgroup/document-sdk-node 1.2.0 → 1.2.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 (123) hide show
  1. package/.openapi-generator/FILES +15 -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/search-keywords-api.ts +168 -0
  7. package/api/searchable-document-owners-api.ts +26 -22
  8. package/api/searchable-documents-api.ts +16 -12
  9. package/api.ts +2 -0
  10. package/base.ts +1 -1
  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/search-keywords-api.d.ts +96 -0
  18. package/dist/api/search-keywords-api.js +229 -0
  19. package/dist/api/searchable-document-owners-api.d.ts +23 -19
  20. package/dist/api/searchable-document-owners-api.js +16 -12
  21. package/dist/api/searchable-documents-api.d.ts +16 -12
  22. package/dist/api/searchable-documents-api.js +14 -10
  23. package/dist/api.d.ts +1 -0
  24. package/dist/api.js +1 -0
  25. package/dist/base.js +1 -1
  26. package/dist/models/create-doc-template-request-dto.d.ts +10 -4
  27. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  28. package/dist/models/create-doc-template-response-class.js +15 -0
  29. package/dist/models/create-document-request-dto.d.ts +20 -8
  30. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  31. package/dist/models/create-document-sync-response-class.js +15 -0
  32. package/dist/models/create-html-template-dto.d.ts +1 -1
  33. package/dist/models/create-layout-request-dto.d.ts +10 -10
  34. package/dist/models/create-layout-response-class.d.ts +25 -0
  35. package/dist/models/create-layout-response-class.js +15 -0
  36. package/dist/models/create-presigned-post-request-dto.d.ts +127 -0
  37. package/dist/models/create-presigned-post-request-dto.js +51 -0
  38. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  39. package/dist/models/create-presigned-post-response-class.js +15 -0
  40. package/dist/models/delete-layout-request-dto.d.ts +1 -1
  41. package/dist/models/delete-request-dto.d.ts +1 -1
  42. package/dist/models/delete-response-class.d.ts +24 -0
  43. package/dist/models/delete-response-class.js +15 -0
  44. package/dist/models/doc-template-class.d.ts +25 -19
  45. package/dist/models/document-class.d.ts +20 -8
  46. package/dist/models/download-document-request-dto.d.ts +2 -2
  47. package/dist/models/get-doc-template-request-dto.d.ts +1 -1
  48. package/dist/models/get-doc-template-response-class.d.ts +1 -1
  49. package/dist/models/get-document-download-url-response-class.d.ts +1 -1
  50. package/dist/models/get-layout-request-dto.d.ts +1 -1
  51. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  52. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  53. package/dist/models/html-template-class.d.ts +7 -7
  54. package/dist/models/index.d.ts +14 -0
  55. package/dist/models/index.js +14 -0
  56. package/dist/models/layout-class.d.ts +11 -11
  57. package/dist/models/list-doc-template-request-dto.d.ts +48 -0
  58. package/dist/models/list-doc-template-request-dto.js +15 -0
  59. package/dist/models/list-doc-templates-response-class.d.ts +1 -1
  60. package/dist/models/list-documents-response-class.d.ts +1 -1
  61. package/dist/models/list-layouts-response-class.d.ts +1 -1
  62. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  63. package/dist/models/list-search-keywords-request-dto.js +15 -0
  64. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  65. package/dist/models/list-search-keywords-response-class.js +15 -0
  66. package/dist/models/list-searchable-document-owners-response-class.d.ts +3 -2
  67. package/dist/models/list-searchable-documents-request-dto.d.ts +2 -2
  68. package/dist/models/list-searchable-documents-response-class.d.ts +5 -4
  69. package/dist/models/searchable-document-class.d.ts +66 -0
  70. package/dist/models/searchable-document-class.js +15 -0
  71. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  72. package/dist/models/searchable-document-owner-class.js +15 -0
  73. package/dist/models/update-doc-template-request-dto.d.ts +16 -10
  74. package/dist/models/update-doc-template-response-class.d.ts +1 -1
  75. package/dist/models/update-document-request-dto.d.ts +10 -4
  76. package/dist/models/update-document-response-class.d.ts +25 -0
  77. package/dist/models/update-document-response-class.js +15 -0
  78. package/dist/models/update-html-template-dto.d.ts +42 -0
  79. package/dist/models/update-html-template-dto.js +21 -0
  80. package/dist/models/update-layout-request-dto.d.ts +15 -15
  81. package/dist/models/update-layout-response-class.d.ts +1 -1
  82. package/models/create-doc-template-request-dto.ts +10 -4
  83. package/models/create-doc-template-response-class.ts +31 -0
  84. package/models/create-document-request-dto.ts +20 -8
  85. package/models/create-document-sync-response-class.ts +31 -0
  86. package/models/create-html-template-dto.ts +1 -1
  87. package/models/create-layout-request-dto.ts +10 -10
  88. package/models/create-layout-response-class.ts +31 -0
  89. package/models/create-presigned-post-request-dto.ts +137 -0
  90. package/models/create-presigned-post-response-class.ts +36 -0
  91. package/models/delete-layout-request-dto.ts +1 -1
  92. package/models/delete-request-dto.ts +1 -1
  93. package/models/delete-response-class.ts +30 -0
  94. package/models/doc-template-class.ts +25 -19
  95. package/models/document-class.ts +20 -8
  96. package/models/download-document-request-dto.ts +2 -2
  97. package/models/get-doc-template-request-dto.ts +1 -1
  98. package/models/get-doc-template-response-class.ts +1 -1
  99. package/models/get-document-download-url-response-class.ts +1 -1
  100. package/models/get-layout-request-dto.ts +1 -1
  101. package/models/get-signed-s3-key-url-response-class.ts +30 -0
  102. package/models/html-template-class.ts +7 -7
  103. package/models/index.ts +14 -0
  104. package/models/layout-class.ts +11 -11
  105. package/models/list-doc-template-request-dto.ts +54 -0
  106. package/models/list-doc-templates-response-class.ts +1 -1
  107. package/models/list-documents-response-class.ts +1 -1
  108. package/models/list-layouts-response-class.ts +1 -1
  109. package/models/list-search-keywords-request-dto.ts +30 -0
  110. package/models/list-search-keywords-response-class.ts +30 -0
  111. package/models/list-searchable-document-owners-response-class.ts +3 -2
  112. package/models/list-searchable-documents-request-dto.ts +2 -2
  113. package/models/list-searchable-documents-response-class.ts +5 -4
  114. package/models/searchable-document-class.ts +72 -0
  115. package/models/searchable-document-owner-class.ts +36 -0
  116. package/models/update-doc-template-request-dto.ts +16 -10
  117. package/models/update-doc-template-response-class.ts +1 -1
  118. package/models/update-document-request-dto.ts +10 -4
  119. package/models/update-document-response-class.ts +31 -0
  120. package/models/update-html-template-dto.ts +51 -0
  121. package/models/update-layout-request-dto.ts +15 -15
  122. package/models/update-layout-response-class.ts +1 -1
  123. package/package.json +1 -1
@@ -97,7 +97,8 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * Returns the list of the searchable document owners.
101
+ * @summary List searchable document owners
101
102
  * @param {string} [authorization] Bearer Token
102
103
  * @param {number} [pageSize] Page size
103
104
  * @param {string} [pageToken] Page token
@@ -108,7 +109,7 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
108
109
  * @param {*} [options] Override http request option.
109
110
  * @throws {RequiredError}
110
111
  */
111
- listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
112
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
112
113
  if (options === void 0) { options = {}; }
113
114
  return __awaiter(_this, void 0, void 0, function () {
114
115
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -174,7 +175,8 @@ var SearchableDocumentOwnersApiFp = function (configuration) {
174
175
  var localVarAxiosParamCreator = (0, exports.SearchableDocumentOwnersApiAxiosParamCreator)(configuration);
175
176
  return {
176
177
  /**
177
- *
178
+ * Returns the list of the searchable document owners.
179
+ * @summary List searchable document owners
178
180
  * @param {string} [authorization] Bearer Token
179
181
  * @param {number} [pageSize] Page size
180
182
  * @param {string} [pageToken] Page token
@@ -185,12 +187,12 @@ var SearchableDocumentOwnersApiFp = function (configuration) {
185
187
  * @param {*} [options] Override http request option.
186
188
  * @throws {RequiredError}
187
189
  */
188
- listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
190
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
189
191
  return __awaiter(this, void 0, void 0, function () {
190
192
  var localVarAxiosArgs;
191
193
  return __generator(this, function (_a) {
192
194
  switch (_a.label) {
193
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
194
196
  case 1:
195
197
  localVarAxiosArgs = _a.sent();
196
198
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -209,7 +211,8 @@ var SearchableDocumentOwnersApiFactory = function (configuration, basePath, axio
209
211
  var localVarFp = (0, exports.SearchableDocumentOwnersApiFp)(configuration);
210
212
  return {
211
213
  /**
212
- *
214
+ * Returns the list of the searchable document owners.
215
+ * @summary List searchable document owners
213
216
  * @param {string} [authorization] Bearer Token
214
217
  * @param {number} [pageSize] Page size
215
218
  * @param {string} [pageToken] Page token
@@ -220,8 +223,8 @@ var SearchableDocumentOwnersApiFactory = function (configuration, basePath, axio
220
223
  * @param {*} [options] Override http request option.
221
224
  * @throws {RequiredError}
222
225
  */
223
- listSearchableDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
224
- return localVarFp.listSearchableDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
226
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
227
+ return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
225
228
  },
226
229
  };
227
230
  };
@@ -238,16 +241,17 @@ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
238
241
  return _super !== null && _super.apply(this, arguments) || this;
239
242
  }
240
243
  /**
241
- *
242
- * @param {SearchableDocumentOwnersApiListSearchableDocumentsRequest} requestParameters Request parameters.
244
+ * Returns the list of the searchable document owners.
245
+ * @summary List searchable document owners
246
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
243
247
  * @param {*} [options] Override http request option.
244
248
  * @throws {RequiredError}
245
249
  * @memberof SearchableDocumentOwnersApi
246
250
  */
247
- SearchableDocumentOwnersApi.prototype.listSearchableDocuments = function (requestParameters, options) {
251
+ SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
248
252
  var _this = this;
249
253
  if (requestParameters === void 0) { requestParameters = {}; }
250
- return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
254
+ return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocumentOwners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
251
255
  };
252
256
  return SearchableDocumentOwnersApi;
253
257
  }(base_1.BaseAPI));
@@ -19,9 +19,10 @@ import { ListSearchableDocumentsResponseClass } from '../models';
19
19
  */
20
20
  export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- *
23
- * @param {string} searchText Text to search in the documents
24
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
22
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
23
+ * @summary List searchable documents
24
+ * @param {string} searchText Text to search in the documents.
25
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
25
26
  * @param {string} [authorization] Bearer Token
26
27
  * @param {*} [options] Override http request option.
27
28
  * @throws {RequiredError}
@@ -34,9 +35,10 @@ export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: C
34
35
  */
35
36
  export declare const SearchableDocumentsApiFp: (configuration?: Configuration) => {
36
37
  /**
37
- *
38
- * @param {string} searchText Text to search in the documents
39
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
38
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
39
+ * @summary List searchable documents
40
+ * @param {string} searchText Text to search in the documents.
41
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
40
42
  * @param {string} [authorization] Bearer Token
41
43
  * @param {*} [options] Override http request option.
42
44
  * @throws {RequiredError}
@@ -49,9 +51,10 @@ export declare const SearchableDocumentsApiFp: (configuration?: Configuration) =
49
51
  */
50
52
  export declare const SearchableDocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
53
  /**
52
- *
53
- * @param {string} searchText Text to search in the documents
54
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
54
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
55
+ * @summary List searchable documents
56
+ * @param {string} searchText Text to search in the documents.
57
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
55
58
  * @param {string} [authorization] Bearer Token
56
59
  * @param {*} [options] Override http request option.
57
60
  * @throws {RequiredError}
@@ -65,13 +68,13 @@ export declare const SearchableDocumentsApiFactory: (configuration?: Configurati
65
68
  */
66
69
  export interface SearchableDocumentsApiListSearchableDocumentsRequest {
67
70
  /**
68
- * Text to search in the documents
71
+ * Text to search in the documents.
69
72
  * @type {string}
70
73
  * @memberof SearchableDocumentsApiListSearchableDocuments
71
74
  */
72
75
  readonly searchText: string;
73
76
  /**
74
- * List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
77
+ * List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
75
78
  * @type {string}
76
79
  * @memberof SearchableDocumentsApiListSearchableDocuments
77
80
  */
@@ -91,7 +94,8 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
91
94
  */
92
95
  export declare class SearchableDocumentsApi extends BaseAPI {
93
96
  /**
94
- *
97
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
98
+ * @summary List searchable documents
95
99
  * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
96
100
  * @param {*} [options] Override http request option.
97
101
  * @throws {RequiredError}
@@ -97,9 +97,10 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
101
- * @param {string} searchText Text to search in the documents
102
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
100
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
+ * @summary List searchable documents
102
+ * @param {string} searchText Text to search in the documents.
103
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
103
104
  * @param {string} [authorization] Bearer Token
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
@@ -162,9 +163,10 @@ var SearchableDocumentsApiFp = function (configuration) {
162
163
  var localVarAxiosParamCreator = (0, exports.SearchableDocumentsApiAxiosParamCreator)(configuration);
163
164
  return {
164
165
  /**
165
- *
166
- * @param {string} searchText Text to search in the documents
167
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
166
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
167
+ * @summary List searchable documents
168
+ * @param {string} searchText Text to search in the documents.
169
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
168
170
  * @param {string} [authorization] Bearer Token
169
171
  * @param {*} [options] Override http request option.
170
172
  * @throws {RequiredError}
@@ -193,9 +195,10 @@ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
193
195
  var localVarFp = (0, exports.SearchableDocumentsApiFp)(configuration);
194
196
  return {
195
197
  /**
196
- *
197
- * @param {string} searchText Text to search in the documents
198
- * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided)
198
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
199
+ * @summary List searchable documents
200
+ * @param {string} searchText Text to search in the documents.
201
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
199
202
  * @param {string} [authorization] Bearer Token
200
203
  * @param {*} [options] Override http request option.
201
204
  * @throws {RequiredError}
@@ -218,7 +221,8 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
218
221
  return _super !== null && _super.apply(this, arguments) || this;
219
222
  }
220
223
  /**
221
- *
224
+ * Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
225
+ * @summary List searchable documents
222
226
  * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
223
227
  * @param {*} [options] Override http request option.
224
228
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -12,5 +12,6 @@
12
12
  export * from './api/document-templates-api';
13
13
  export * from './api/documents-api';
14
14
  export * from './api/layouts-api';
15
+ export * from './api/search-keywords-api';
15
16
  export * from './api/searchable-document-owners-api';
16
17
  export * from './api/searchable-documents-api';
package/dist/api.js CHANGED
@@ -30,5 +30,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/document-templates-api"), exports);
31
31
  __exportStar(require("./api/documents-api"), exports);
32
32
  __exportStar(require("./api/layouts-api"), exports);
33
+ __exportStar(require("./api/search-keywords-api"), exports);
33
34
  __exportStar(require("./api/searchable-document-owners-api"), exports);
34
35
  __exportStar(require("./api/searchable-documents-api"), exports);
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -17,27 +17,33 @@ import { CreateHtmlTemplateDto } from './create-html-template-dto';
17
17
  */
18
18
  export interface CreateDocTemplateRequestDto {
19
19
  /**
20
- * Template name
20
+ * Template name.
21
21
  * @type {string}
22
22
  * @memberof CreateDocTemplateRequestDto
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 CreateDocTemplateRequestDto
29
29
  */
30
30
  'slug': string;
31
31
  /**
32
- *
32
+ * Unique identifier referencing the layout.
33
33
  * @type {number}
34
34
  * @memberof CreateDocTemplateRequestDto
35
35
  */
36
36
  'layoutId': number;
37
37
  /**
38
- *
38
+ * Body template.
39
39
  * @type {CreateHtmlTemplateDto}
40
40
  * @memberof CreateDocTemplateRequestDto
41
41
  */
42
42
  'bodyTemplate': CreateHtmlTemplateDto;
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.
45
+ * @type {string}
46
+ * @memberof CreateDocTemplateRequestDto
47
+ */
48
+ 'productSlug'?: string;
43
49
  }
@@ -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 { DocTemplateClass } from './doc-template-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateDocTemplateResponseClass
17
+ */
18
+ export interface CreateDocTemplateResponseClass {
19
+ /**
20
+ * Document template.
21
+ * @type {DocTemplateClass}
22
+ * @memberof CreateDocTemplateResponseClass
23
+ */
24
+ 'template': DocTemplateClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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,7 +16,7 @@
16
16
  */
17
17
  export interface CreateDocumentRequestDto {
18
18
  /**
19
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for this document.
19
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
20
20
  * @type {string}
21
21
  * @memberof CreateDocumentRequestDto
22
22
  */
@@ -28,13 +28,13 @@ export interface CreateDocumentRequestDto {
28
28
  */
29
29
  'payload': object;
30
30
  /**
31
- * Document entity type
31
+ * Document entity type.
32
32
  * @type {string}
33
33
  * @memberof CreateDocumentRequestDto
34
34
  */
35
35
  'entityType': CreateDocumentRequestDtoEntityTypeEnum;
36
36
  /**
37
- * Description of the document. Usually a short summary about the context in which the document is being used.
37
+ * Specifies the document creation strategy to be used, either synchronous or asynchronous.
38
38
  * @type {string}
39
39
  * @memberof CreateDocumentRequestDto
40
40
  */
@@ -46,19 +46,25 @@ export interface CreateDocumentRequestDto {
46
46
  */
47
47
  'description': string;
48
48
  /**
49
- * Unique identifier of the policy that the document belongs to
49
+ * Unique identifier of the policy that this object belongs to.
50
50
  * @type {string}
51
51
  * @memberof CreateDocumentRequestDto
52
52
  */
53
53
  'policyCode'?: string;
54
54
  /**
55
- * Unique identifier of the account that the document belongs to
55
+ * Unique identifier of the account that this object belongs to.
56
56
  * @type {string}
57
57
  * @memberof CreateDocumentRequestDto
58
58
  */
59
59
  'accountCode'?: string;
60
60
  /**
61
- * Unique identifier referencing the entity on the service the document belongs to.
61
+ * Unique identifier of the lead that this object belongs to.
62
+ * @type {string}
63
+ * @memberof CreateDocumentRequestDto
64
+ */
65
+ 'leadCode'?: string;
66
+ /**
67
+ * Unique identifier referencing the entity.
62
68
  * @type {number}
63
69
  * @memberof CreateDocumentRequestDto
64
70
  */
@@ -70,7 +76,7 @@ export interface CreateDocumentRequestDto {
70
76
  */
71
77
  'requester': CreateDocumentRequestDtoRequesterEnum;
72
78
  /**
73
- * Metadata can contain extra information that the document would need for specific cases.
79
+ * Metadata contains extra information that the object would need for specific cases.
74
80
  * @type {object}
75
81
  * @memberof CreateDocumentRequestDto
76
82
  */
@@ -80,13 +86,19 @@ export interface CreateDocumentRequestDto {
80
86
  * @type {string}
81
87
  * @memberof CreateDocumentRequestDto
82
88
  */
83
- 'contentType'?: CreateDocumentRequestDtoContentTypeEnum;
89
+ 'contentType': CreateDocumentRequestDtoContentTypeEnum;
84
90
  /**
85
91
  * Name of the file the end user will see when he downloads it.
86
92
  * @type {string}
87
93
  * @memberof CreateDocumentRequestDto
88
94
  */
89
95
  'filename'?: string;
96
+ /**
97
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
98
+ * @type {string}
99
+ * @memberof CreateDocumentRequestDto
100
+ */
101
+ 'productSlug'?: string;
90
102
  }
91
103
  export declare const CreateDocumentRequestDtoEntityTypeEnum: {
92
104
  readonly PolicyApplication: "policy_application";
@@ -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 CreateDocumentSyncResponseClass
17
+ */
18
+ export interface CreateDocumentSyncResponseClass {
19
+ /**
20
+ * Document
21
+ * @type {DocumentClass}
22
+ * @memberof CreateDocumentSyncResponseClass
23
+ */
24
+ 'document': DocumentClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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,7 +16,7 @@
16
16
  */
17
17
  export interface CreateHtmlTemplateDto {
18
18
  /**
19
- * Template draft content
19
+ * Template draft content.
20
20
  * @type {string}
21
21
  * @memberof CreateHtmlTemplateDto
22
22
  */
@@ -17,33 +17,33 @@ import { CreateHtmlTemplateDto } from './create-html-template-dto';
17
17
  */
18
18
  export interface CreateLayoutRequestDto {
19
19
  /**
20
- * Layout name
20
+ * Layout name.
21
21
  * @type {string}
22
22
  * @memberof CreateLayoutRequestDto
23
23
  */
24
24
  'name': string;
25
25
  /**
26
- * Layout 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 CreateLayoutRequestDto
29
29
  */
30
30
  'slug': string;
31
31
  /**
32
- * Layout style
33
- * @type {string}
34
- * @memberof CreateLayoutRequestDto
35
- */
36
- 'style': string;
37
- /**
38
- *
32
+ * Header template.
39
33
  * @type {CreateHtmlTemplateDto}
40
34
  * @memberof CreateLayoutRequestDto
41
35
  */
42
36
  'headerTemplate': CreateHtmlTemplateDto;
43
37
  /**
44
- *
38
+ * Footer template.
45
39
  * @type {CreateHtmlTemplateDto}
46
40
  * @memberof CreateLayoutRequestDto
47
41
  */
48
42
  'footerTemplate': CreateHtmlTemplateDto;
43
+ /**
44
+ * Layout style.
45
+ * @type {string}
46
+ * @memberof CreateLayoutRequestDto
47
+ */
48
+ 'style': string;
49
49
  }
@@ -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 { LayoutClass } from './layout-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateLayoutResponseClass
17
+ */
18
+ export interface CreateLayoutResponseClass {
19
+ /**
20
+ * Layout
21
+ * @type {LayoutClass}
22
+ * @memberof CreateLayoutResponseClass
23
+ */
24
+ 'layout': LayoutClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL DocumentService
6
+ * The EMIL DocumentService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });