@emilgroup/document-sdk 1.12.2 → 1.12.3

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 (165) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/docx-templates-api.ts +4 -4
  4. package/api/product-documents-api.ts +12 -210
  5. package/dist/api/default-api.d.ts +66 -0
  6. package/dist/api/default-api.js +196 -0
  7. package/dist/api/document-templates-api.d.ts +385 -0
  8. package/dist/api/document-templates-api.js +636 -0
  9. package/dist/api/documents-api.d.ts +488 -0
  10. package/dist/api/documents-api.js +817 -0
  11. package/dist/api/docx-templates-api.d.ts +432 -0
  12. package/dist/api/docx-templates-api.js +722 -0
  13. package/dist/api/layouts-api.d.ts +385 -0
  14. package/dist/api/layouts-api.js +638 -0
  15. package/dist/api/product-documents-api.d.ts +401 -0
  16. package/dist/api/product-documents-api.js +647 -0
  17. package/dist/api/search-keywords-api.d.ts +96 -0
  18. package/dist/api/search-keywords-api.js +225 -0
  19. package/dist/api/searchable-document-owners-api.d.ts +141 -0
  20. package/dist/api/searchable-document-owners-api.js +254 -0
  21. package/dist/api/searchable-documents-api.d.ts +114 -0
  22. package/dist/api/searchable-documents-api.js +239 -0
  23. package/dist/api.d.ts +20 -0
  24. package/dist/api.js +38 -0
  25. package/dist/base.d.ts +74 -0
  26. package/dist/base.js +298 -0
  27. package/dist/common.d.ts +91 -0
  28. package/dist/common.js +276 -0
  29. package/dist/configuration.d.ts +83 -0
  30. package/dist/configuration.js +44 -0
  31. package/dist/index.d.ts +15 -0
  32. package/dist/index.js +36 -0
  33. package/dist/models/create-doc-template-request-dto.d.ts +55 -0
  34. package/dist/models/create-doc-template-request-dto.js +15 -0
  35. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  36. package/dist/models/create-doc-template-response-class.js +15 -0
  37. package/dist/models/create-document-request-dto.d.ts +173 -0
  38. package/dist/models/create-document-request-dto.js +70 -0
  39. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  40. package/dist/models/create-document-sync-response-class.js +15 -0
  41. package/dist/models/create-html-template-dto.d.ts +24 -0
  42. package/dist/models/create-html-template-dto.js +15 -0
  43. package/dist/models/create-layout-request-dto.d.ts +49 -0
  44. package/dist/models/create-layout-request-dto.js +15 -0
  45. package/dist/models/create-layout-response-class.d.ts +25 -0
  46. package/dist/models/create-layout-response-class.js +15 -0
  47. package/dist/models/create-presigned-post-request-dto.d.ts +134 -0
  48. package/dist/models/create-presigned-post-request-dto.js +52 -0
  49. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  50. package/dist/models/create-presigned-post-response-class.js +15 -0
  51. package/dist/models/delete-layout-request-dto.d.ts +24 -0
  52. package/dist/models/delete-layout-request-dto.js +15 -0
  53. package/dist/models/delete-product-document-request-dto.d.ts +30 -0
  54. package/dist/models/delete-product-document-request-dto.js +15 -0
  55. package/dist/models/delete-request-dto.d.ts +24 -0
  56. package/dist/models/delete-request-dto.js +15 -0
  57. package/dist/models/delete-response-class.d.ts +24 -0
  58. package/dist/models/delete-response-class.js +15 -0
  59. package/dist/models/doc-template-class.d.ts +92 -0
  60. package/dist/models/doc-template-class.js +15 -0
  61. package/dist/models/document-class.d.ts +169 -0
  62. package/dist/models/document-class.js +62 -0
  63. package/dist/models/docx-template-class.d.ts +101 -0
  64. package/dist/models/docx-template-class.js +26 -0
  65. package/dist/models/download-document-request-dto.d.ts +30 -0
  66. package/dist/models/download-document-request-dto.js +15 -0
  67. package/dist/models/get-doc-template-request-dto.d.ts +30 -0
  68. package/dist/models/get-doc-template-request-dto.js +15 -0
  69. package/dist/models/get-doc-template-response-class.d.ts +25 -0
  70. package/dist/models/get-doc-template-response-class.js +15 -0
  71. package/dist/models/get-document-download-url-response-class.d.ts +24 -0
  72. package/dist/models/get-document-download-url-response-class.js +15 -0
  73. package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
  74. package/dist/models/get-docx-template-download-url-response-class.js +15 -0
  75. package/dist/models/get-docx-template-response-class.d.ts +25 -0
  76. package/dist/models/get-docx-template-response-class.js +15 -0
  77. package/dist/models/get-layout-request-dto.d.ts +24 -0
  78. package/dist/models/get-layout-request-dto.js +15 -0
  79. package/dist/models/get-layout-response-class.d.ts +25 -0
  80. package/dist/models/get-layout-response-class.js +15 -0
  81. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  82. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  83. package/dist/models/get-product-document-response-class.d.ts +25 -0
  84. package/dist/models/get-product-document-response-class.js +15 -0
  85. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  86. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  87. package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
  88. package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
  89. package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
  90. package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
  91. package/dist/models/html-template-class.d.ts +66 -0
  92. package/dist/models/html-template-class.js +21 -0
  93. package/dist/models/index.d.ts +61 -0
  94. package/dist/models/index.js +77 -0
  95. package/dist/models/inline-response200.d.ts +54 -0
  96. package/dist/models/inline-response200.js +15 -0
  97. package/dist/models/inline-response503.d.ts +54 -0
  98. package/dist/models/inline-response503.js +15 -0
  99. package/dist/models/layout-class.d.ts +79 -0
  100. package/dist/models/layout-class.js +15 -0
  101. package/dist/models/list-doc-template-request-dto.d.ts +54 -0
  102. package/dist/models/list-doc-template-request-dto.js +15 -0
  103. package/dist/models/list-doc-templates-response-class.d.ts +31 -0
  104. package/dist/models/list-doc-templates-response-class.js +15 -0
  105. package/dist/models/list-documents-response-class.d.ts +31 -0
  106. package/dist/models/list-documents-response-class.js +15 -0
  107. package/dist/models/list-docx-templates-response-class.d.ts +31 -0
  108. package/dist/models/list-docx-templates-response-class.js +15 -0
  109. package/dist/models/list-layouts-response-class.d.ts +31 -0
  110. package/dist/models/list-layouts-response-class.js +15 -0
  111. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  112. package/dist/models/list-product-documents-response-class.js +15 -0
  113. package/dist/models/list-request-dto.d.ts +54 -0
  114. package/dist/models/list-request-dto.js +15 -0
  115. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  116. package/dist/models/list-search-keywords-request-dto.js +15 -0
  117. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  118. package/dist/models/list-search-keywords-response-class.js +15 -0
  119. package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
  120. package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
  121. package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
  122. package/dist/models/list-searchable-document-owners-response-class.js +15 -0
  123. package/dist/models/list-searchable-documents-request-dto.d.ts +43 -0
  124. package/dist/models/list-searchable-documents-request-dto.js +22 -0
  125. package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
  126. package/dist/models/list-searchable-documents-response-class.js +15 -0
  127. package/dist/models/product-document-class.d.ts +134 -0
  128. package/dist/models/product-document-class.js +46 -0
  129. package/dist/models/searchable-document-class.d.ts +66 -0
  130. package/dist/models/searchable-document-class.js +15 -0
  131. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  132. package/dist/models/searchable-document-owner-class.js +15 -0
  133. package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
  134. package/dist/models/shared-update-docx-template-request-dto.js +15 -0
  135. package/dist/models/update-doc-template-request-dto.d.ts +61 -0
  136. package/dist/models/update-doc-template-request-dto.js +15 -0
  137. package/dist/models/update-doc-template-response-class.d.ts +25 -0
  138. package/dist/models/update-doc-template-response-class.js +15 -0
  139. package/dist/models/update-document-request-dto.d.ts +54 -0
  140. package/dist/models/update-document-request-dto.js +15 -0
  141. package/dist/models/update-document-response-class.d.ts +25 -0
  142. package/dist/models/update-document-response-class.js +15 -0
  143. package/dist/models/update-docx-template-response-class.d.ts +25 -0
  144. package/dist/models/update-docx-template-response-class.js +15 -0
  145. package/dist/models/update-html-template-dto.d.ts +42 -0
  146. package/dist/models/update-html-template-dto.js +21 -0
  147. package/dist/models/update-layout-request-dto.d.ts +55 -0
  148. package/dist/models/update-layout-request-dto.js +15 -0
  149. package/dist/models/update-layout-response-class.d.ts +25 -0
  150. package/dist/models/update-layout-response-class.js +15 -0
  151. package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
  152. package/dist/models/upload-docx-template-request-dto.js +15 -0
  153. package/dist/models/upload-docx-template-response-class.d.ts +30 -0
  154. package/dist/models/upload-docx-template-response-class.js +15 -0
  155. package/dist/models/upload-product-document-request-dto.d.ts +75 -0
  156. package/dist/models/upload-product-document-request-dto.js +24 -0
  157. package/models/create-document-request-dto.ts +13 -1
  158. package/models/document-class.ts +13 -1
  159. package/models/docx-template-class.ts +15 -1
  160. package/models/index.ts +1 -0
  161. package/models/inline-response200.ts +6 -6
  162. package/models/inline-response503.ts +6 -6
  163. package/models/product-document-class.ts +27 -9
  164. package/models/upload-docx-template-response-class.ts +36 -0
  165. package/package.json +1 -1
@@ -0,0 +1,254 @@
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
+ * Contact: kontakt@emil.de
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SearchableDocumentOwnersApi = exports.SearchableDocumentOwnersApiFactory = exports.SearchableDocumentOwnersApiFp = exports.SearchableDocumentOwnersApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * SearchableDocumentOwnersApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Returns the list of the searchable document owners.
97
+ * @summary List searchable document owners
98
+ * @param {string} [authorization] Bearer Token
99
+ * @param {number} [pageSize] Page size
100
+ * @param {string} [pageToken] Page token
101
+ * @param {string} [filter] List filter
102
+ * @param {string} [search] Search query
103
+ * @param {string} [order] Ordering criteria
104
+ * @param {string} [expand] Extra fields to fetch
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ localVarPath = "/documentservice/v1/searchable-document-owners";
116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (pageSize !== undefined) {
132
+ localVarQueryParameter['pageSize'] = pageSize;
133
+ }
134
+ if (pageToken !== undefined) {
135
+ localVarQueryParameter['pageToken'] = pageToken;
136
+ }
137
+ if (filter !== undefined) {
138
+ localVarQueryParameter['filter'] = filter;
139
+ }
140
+ if (search !== undefined) {
141
+ localVarQueryParameter['search'] = search;
142
+ }
143
+ if (order !== undefined) {
144
+ localVarQueryParameter['order'] = order;
145
+ }
146
+ if (expand !== undefined) {
147
+ localVarQueryParameter['expand'] = expand;
148
+ }
149
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
150
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
151
+ }
152
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
155
+ return [2 /*return*/, {
156
+ url: (0, common_1.toPathString)(localVarUrlObj),
157
+ options: localVarRequestOptions,
158
+ }];
159
+ }
160
+ });
161
+ });
162
+ },
163
+ };
164
+ };
165
+ exports.SearchableDocumentOwnersApiAxiosParamCreator = SearchableDocumentOwnersApiAxiosParamCreator;
166
+ /**
167
+ * SearchableDocumentOwnersApi - functional programming interface
168
+ * @export
169
+ */
170
+ var SearchableDocumentOwnersApiFp = function (configuration) {
171
+ var localVarAxiosParamCreator = (0, exports.SearchableDocumentOwnersApiAxiosParamCreator)(configuration);
172
+ return {
173
+ /**
174
+ * Returns the list of the searchable document owners.
175
+ * @summary List searchable document owners
176
+ * @param {string} [authorization] Bearer Token
177
+ * @param {number} [pageSize] Page size
178
+ * @param {string} [pageToken] Page token
179
+ * @param {string} [filter] List filter
180
+ * @param {string} [search] Search query
181
+ * @param {string} [order] Ordering criteria
182
+ * @param {string} [expand] Extra fields to fetch
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
187
+ return __awaiter(this, void 0, void 0, function () {
188
+ var localVarAxiosArgs;
189
+ return __generator(this, function (_a) {
190
+ switch (_a.label) {
191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
192
+ case 1:
193
+ localVarAxiosArgs = _a.sent();
194
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
195
+ }
196
+ });
197
+ });
198
+ },
199
+ };
200
+ };
201
+ exports.SearchableDocumentOwnersApiFp = SearchableDocumentOwnersApiFp;
202
+ /**
203
+ * SearchableDocumentOwnersApi - factory interface
204
+ * @export
205
+ */
206
+ var SearchableDocumentOwnersApiFactory = function (configuration, basePath, axios) {
207
+ var localVarFp = (0, exports.SearchableDocumentOwnersApiFp)(configuration);
208
+ return {
209
+ /**
210
+ * Returns the list of the searchable document owners.
211
+ * @summary List searchable document owners
212
+ * @param {string} [authorization] Bearer Token
213
+ * @param {number} [pageSize] Page size
214
+ * @param {string} [pageToken] Page token
215
+ * @param {string} [filter] List filter
216
+ * @param {string} [search] Search query
217
+ * @param {string} [order] Ordering criteria
218
+ * @param {string} [expand] Extra fields to fetch
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
223
+ return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
224
+ },
225
+ };
226
+ };
227
+ exports.SearchableDocumentOwnersApiFactory = SearchableDocumentOwnersApiFactory;
228
+ /**
229
+ * SearchableDocumentOwnersApi - object-oriented interface
230
+ * @export
231
+ * @class SearchableDocumentOwnersApi
232
+ * @extends {BaseAPI}
233
+ */
234
+ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
235
+ __extends(SearchableDocumentOwnersApi, _super);
236
+ function SearchableDocumentOwnersApi() {
237
+ return _super !== null && _super.apply(this, arguments) || this;
238
+ }
239
+ /**
240
+ * Returns the list of the searchable document owners.
241
+ * @summary List searchable document owners
242
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof SearchableDocumentOwnersApi
246
+ */
247
+ SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
248
+ var _this = this;
249
+ if (requestParameters === void 0) { requestParameters = {}; }
250
+ 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
+ };
252
+ return SearchableDocumentOwnersApi;
253
+ }(base_1.BaseAPI));
254
+ exports.SearchableDocumentOwnersApi = SearchableDocumentOwnersApi;
@@ -0,0 +1,114 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListSearchableDocumentsResponseClass } from '../models';
16
+ /**
17
+ * SearchableDocumentsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
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 \&#39;*\&#39; list provided).
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ listSearchableDocuments: (searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ };
33
+ /**
34
+ * SearchableDocumentsApi - functional programming interface
35
+ * @export
36
+ */
37
+ export declare const SearchableDocumentsApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * 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.
40
+ * @summary List searchable documents
41
+ * @param {string} searchText Text to search in the documents.
42
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
43
+ * @param {string} [authorization] Bearer Token
44
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentsResponseClass>>;
49
+ };
50
+ /**
51
+ * SearchableDocumentsApi - factory interface
52
+ * @export
53
+ */
54
+ export declare const SearchableDocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
55
+ /**
56
+ * 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.
57
+ * @summary List searchable documents
58
+ * @param {string} searchText Text to search in the documents.
59
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
60
+ * @param {string} [authorization] Bearer Token
61
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ listSearchableDocuments(searchText: string, ownerIds: string, authorization?: string, product?: 'car' | 'homeowner' | 'household' | 'privateLiability', options?: any): AxiosPromise<ListSearchableDocumentsResponseClass>;
66
+ };
67
+ /**
68
+ * Request parameters for listSearchableDocuments operation in SearchableDocumentsApi.
69
+ * @export
70
+ * @interface SearchableDocumentsApiListSearchableDocumentsRequest
71
+ */
72
+ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
73
+ /**
74
+ * Text to search in the documents.
75
+ * @type {string}
76
+ * @memberof SearchableDocumentsApiListSearchableDocuments
77
+ */
78
+ readonly searchText: string;
79
+ /**
80
+ * List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
81
+ * @type {string}
82
+ * @memberof SearchableDocumentsApiListSearchableDocuments
83
+ */
84
+ readonly ownerIds: string;
85
+ /**
86
+ * Bearer Token
87
+ * @type {string}
88
+ * @memberof SearchableDocumentsApiListSearchableDocuments
89
+ */
90
+ readonly authorization?: string;
91
+ /**
92
+ * PBM product the documents belongs to.
93
+ * @type {'car' | 'homeowner' | 'household' | 'privateLiability'}
94
+ * @memberof SearchableDocumentsApiListSearchableDocuments
95
+ */
96
+ readonly product?: 'car' | 'homeowner' | 'household' | 'privateLiability';
97
+ }
98
+ /**
99
+ * SearchableDocumentsApi - object-oriented interface
100
+ * @export
101
+ * @class SearchableDocumentsApi
102
+ * @extends {BaseAPI}
103
+ */
104
+ export declare class SearchableDocumentsApi extends BaseAPI {
105
+ /**
106
+ * 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.
107
+ * @summary List searchable documents
108
+ * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ * @memberof SearchableDocumentsApi
112
+ */
113
+ listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any>>;
114
+ }
@@ -0,0 +1,239 @@
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
+ * Contact: kontakt@emil.de
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SearchableDocumentsApi = exports.SearchableDocumentsApiFactory = exports.SearchableDocumentsApiFp = exports.SearchableDocumentsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * SearchableDocumentsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * 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.
97
+ * @summary List searchable documents
98
+ * @param {string} searchText Text to search in the documents.
99
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
100
+ * @param {string} [authorization] Bearer Token
101
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
106
+ if (options === void 0) { options = {}; }
107
+ return __awaiter(_this, void 0, void 0, function () {
108
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0:
112
+ // verify required parameter 'searchText' is not null or undefined
113
+ (0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
114
+ // verify required parameter 'ownerIds' is not null or undefined
115
+ (0, common_1.assertParamExists)('listSearchableDocuments', 'ownerIds', ownerIds);
116
+ localVarPath = "/documentservice/v1/searchable-documents";
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (searchText !== undefined) {
133
+ localVarQueryParameter['searchText'] = searchText;
134
+ }
135
+ if (ownerIds !== undefined) {
136
+ localVarQueryParameter['ownerIds'] = ownerIds;
137
+ }
138
+ if (product !== undefined) {
139
+ localVarQueryParameter['product'] = product;
140
+ }
141
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
142
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
143
+ }
144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
147
+ return [2 /*return*/, {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ }];
151
+ }
152
+ });
153
+ });
154
+ },
155
+ };
156
+ };
157
+ exports.SearchableDocumentsApiAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator;
158
+ /**
159
+ * SearchableDocumentsApi - functional programming interface
160
+ * @export
161
+ */
162
+ var SearchableDocumentsApiFp = function (configuration) {
163
+ var localVarAxiosParamCreator = (0, exports.SearchableDocumentsApiAxiosParamCreator)(configuration);
164
+ return {
165
+ /**
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 \&#39;*\&#39; list provided).
170
+ * @param {string} [authorization] Bearer Token
171
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
176
+ return __awaiter(this, void 0, void 0, function () {
177
+ var localVarAxiosArgs;
178
+ return __generator(this, function (_a) {
179
+ switch (_a.label) {
180
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options)];
181
+ case 1:
182
+ localVarAxiosArgs = _a.sent();
183
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
184
+ }
185
+ });
186
+ });
187
+ },
188
+ };
189
+ };
190
+ exports.SearchableDocumentsApiFp = SearchableDocumentsApiFp;
191
+ /**
192
+ * SearchableDocumentsApi - factory interface
193
+ * @export
194
+ */
195
+ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
196
+ var localVarFp = (0, exports.SearchableDocumentsApiFp)(configuration);
197
+ return {
198
+ /**
199
+ * 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.
200
+ * @summary List searchable documents
201
+ * @param {string} searchText Text to search in the documents.
202
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
203
+ * @param {string} [authorization] Bearer Token
204
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
209
+ return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then(function (request) { return request(axios, basePath); });
210
+ },
211
+ };
212
+ };
213
+ exports.SearchableDocumentsApiFactory = SearchableDocumentsApiFactory;
214
+ /**
215
+ * SearchableDocumentsApi - object-oriented interface
216
+ * @export
217
+ * @class SearchableDocumentsApi
218
+ * @extends {BaseAPI}
219
+ */
220
+ var SearchableDocumentsApi = /** @class */ (function (_super) {
221
+ __extends(SearchableDocumentsApi, _super);
222
+ function SearchableDocumentsApi() {
223
+ return _super !== null && _super.apply(this, arguments) || this;
224
+ }
225
+ /**
226
+ * 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.
227
+ * @summary List searchable documents
228
+ * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof SearchableDocumentsApi
232
+ */
233
+ SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
234
+ var _this = this;
235
+ return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
236
+ };
237
+ return SearchableDocumentsApi;
238
+ }(base_1.BaseAPI));
239
+ exports.SearchableDocumentsApi = SearchableDocumentsApi;
package/dist/api.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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
+ export * from './api/default-api';
13
+ export * from './api/document-templates-api';
14
+ export * from './api/documents-api';
15
+ export * from './api/docx-templates-api';
16
+ export * from './api/layouts-api';
17
+ export * from './api/product-documents-api';
18
+ export * from './api/search-keywords-api';
19
+ export * from './api/searchable-document-owners-api';
20
+ export * from './api/searchable-documents-api';
package/dist/api.js ADDED
@@ -0,0 +1,38 @@
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
+ * Contact: kontakt@emil.de
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/default-api"), exports);
31
+ __exportStar(require("./api/document-templates-api"), exports);
32
+ __exportStar(require("./api/documents-api"), exports);
33
+ __exportStar(require("./api/docx-templates-api"), exports);
34
+ __exportStar(require("./api/layouts-api"), exports);
35
+ __exportStar(require("./api/product-documents-api"), exports);
36
+ __exportStar(require("./api/search-keywords-api"), exports);
37
+ __exportStar(require("./api/searchable-document-owners-api"), exports);
38
+ __exportStar(require("./api/searchable-documents-api"), exports);