@emilgroup/document-sdk-node 1.11.1 → 1.11.3-beta.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 (151) hide show
  1. package/.openapi-generator/FILES +0 -4
  2. package/README.md +2 -2
  3. package/api/docx-templates-api.ts +8 -16
  4. package/api/product-documents-api.ts +4 -4
  5. package/dist/api/default-api.d.ts +66 -0
  6. package/dist/api/default-api.js +200 -0
  7. package/dist/api/document-templates-api.d.ts +385 -0
  8. package/dist/api/document-templates-api.js +640 -0
  9. package/dist/api/documents-api.d.ts +488 -0
  10. package/dist/api/documents-api.js +821 -0
  11. package/dist/api/docx-templates-api.d.ts +428 -0
  12. package/dist/api/docx-templates-api.js +726 -0
  13. package/dist/api/layouts-api.d.ts +385 -0
  14. package/dist/api/layouts-api.js +642 -0
  15. package/dist/api/product-documents-api.d.ts +401 -0
  16. package/dist/api/product-documents-api.js +651 -0
  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 +141 -0
  20. package/dist/api/searchable-document-owners-api.js +258 -0
  21. package/dist/api/searchable-documents-api.d.ts +114 -0
  22. package/dist/api/searchable-documents-api.js +243 -0
  23. package/dist/api.d.ts +20 -0
  24. package/dist/api.js +38 -0
  25. package/dist/base.d.ts +78 -0
  26. package/dist/base.js +394 -0
  27. package/dist/common.d.ts +92 -0
  28. package/dist/common.js +277 -0
  29. package/dist/configuration.d.ts +90 -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/{models/update-docx-template-response-class.ts → dist/models/create-document-sync-response-class.d.ts} +7 -13
  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/{models/docx-template-class.ts → dist/models/doc-template-class.d.ts} +41 -45
  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/download-document-request-dto.d.ts +30 -0
  64. package/dist/models/download-document-request-dto.js +15 -0
  65. package/dist/models/get-doc-template-request-dto.d.ts +30 -0
  66. package/dist/models/get-doc-template-request-dto.js +15 -0
  67. package/dist/models/get-doc-template-response-class.d.ts +25 -0
  68. package/dist/models/get-doc-template-response-class.js +15 -0
  69. package/dist/models/get-document-download-url-response-class.d.ts +24 -0
  70. package/dist/models/get-document-download-url-response-class.js +15 -0
  71. package/dist/models/get-docx-template-download-url-response-class.d.ts +24 -0
  72. package/dist/models/get-docx-template-download-url-response-class.js +15 -0
  73. package/dist/models/get-layout-request-dto.d.ts +24 -0
  74. package/dist/models/get-layout-request-dto.js +15 -0
  75. package/dist/models/get-layout-response-class.d.ts +25 -0
  76. package/dist/models/get-layout-response-class.js +15 -0
  77. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  78. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  79. package/dist/models/get-product-document-response-class.d.ts +25 -0
  80. package/dist/models/get-product-document-response-class.js +15 -0
  81. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  82. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  83. package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
  84. package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
  85. package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
  86. package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
  87. package/dist/models/html-template-class.d.ts +66 -0
  88. package/dist/models/html-template-class.js +21 -0
  89. package/dist/models/index.d.ts +56 -0
  90. package/dist/models/index.js +72 -0
  91. package/dist/models/inline-response200.d.ts +54 -0
  92. package/dist/models/inline-response200.js +15 -0
  93. package/dist/models/inline-response503.d.ts +54 -0
  94. package/dist/models/inline-response503.js +15 -0
  95. package/dist/models/layout-class.d.ts +79 -0
  96. package/dist/models/layout-class.js +15 -0
  97. package/dist/models/list-doc-template-request-dto.d.ts +54 -0
  98. package/dist/models/list-doc-template-request-dto.js +15 -0
  99. package/dist/models/list-doc-templates-response-class.d.ts +31 -0
  100. package/dist/models/list-doc-templates-response-class.js +15 -0
  101. package/dist/models/list-documents-response-class.d.ts +31 -0
  102. package/dist/models/list-documents-response-class.js +15 -0
  103. package/dist/models/list-layouts-response-class.d.ts +31 -0
  104. package/dist/models/list-layouts-response-class.js +15 -0
  105. package/{models/list-docx-templates-response-class.ts → dist/models/list-product-documents-response-class.d.ts} +9 -15
  106. package/dist/models/list-product-documents-response-class.js +15 -0
  107. package/dist/models/list-request-dto.d.ts +54 -0
  108. package/dist/models/list-request-dto.js +15 -0
  109. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  110. package/dist/models/list-search-keywords-request-dto.js +15 -0
  111. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  112. package/dist/models/list-search-keywords-response-class.js +15 -0
  113. package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
  114. package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
  115. package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
  116. package/dist/models/list-searchable-document-owners-response-class.js +15 -0
  117. package/dist/models/list-searchable-documents-request-dto.d.ts +43 -0
  118. package/dist/models/list-searchable-documents-request-dto.js +22 -0
  119. package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
  120. package/dist/models/list-searchable-documents-response-class.js +15 -0
  121. package/dist/models/product-document-class.d.ts +134 -0
  122. package/dist/models/product-document-class.js +46 -0
  123. package/dist/models/searchable-document-class.d.ts +66 -0
  124. package/dist/models/searchable-document-class.js +15 -0
  125. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  126. package/dist/models/searchable-document-owner-class.js +15 -0
  127. package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
  128. package/dist/models/shared-update-docx-template-request-dto.js +15 -0
  129. package/dist/models/update-doc-template-request-dto.d.ts +61 -0
  130. package/dist/models/update-doc-template-request-dto.js +15 -0
  131. package/dist/models/update-doc-template-response-class.d.ts +25 -0
  132. package/dist/models/update-doc-template-response-class.js +15 -0
  133. package/dist/models/update-document-request-dto.d.ts +54 -0
  134. package/dist/models/update-document-request-dto.js +15 -0
  135. package/dist/models/update-document-response-class.d.ts +25 -0
  136. package/dist/models/update-document-response-class.js +15 -0
  137. package/dist/models/update-html-template-dto.d.ts +42 -0
  138. package/dist/models/update-html-template-dto.js +21 -0
  139. package/dist/models/update-layout-request-dto.d.ts +55 -0
  140. package/dist/models/update-layout-request-dto.js +15 -0
  141. package/dist/models/update-layout-response-class.d.ts +25 -0
  142. package/dist/models/update-layout-response-class.js +15 -0
  143. package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
  144. package/dist/models/upload-docx-template-request-dto.js +15 -0
  145. package/dist/models/upload-product-document-request-dto.d.ts +75 -0
  146. package/{models/get-docx-template-response-class.ts → dist/models/upload-product-document-request-dto.js} +11 -18
  147. package/models/create-document-request-dto.ts +13 -1
  148. package/models/document-class.ts +13 -1
  149. package/models/index.ts +0 -4
  150. package/models/product-document-class.ts +13 -1
  151. package/package.json +2 -2
@@ -0,0 +1,258 @@
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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SearchableDocumentOwnersApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns the list of the searchable document owners.
101
+ * @summary List searchable document owners
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {number} [pageSize] Page size
104
+ * @param {string} [pageToken] Page token
105
+ * @param {string} [filter] List filter
106
+ * @param {string} [search] Search query
107
+ * @param {string} [order] Ordering criteria
108
+ * @param {string} [expand] Extra fields to fetch
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
113
+ if (options === void 0) { options = {}; }
114
+ return __awaiter(_this, void 0, void 0, function () {
115
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ localVarPath = "/documentservice/v1/searchable-document-owners";
120
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
126
+ localVarHeaderParameter = {};
127
+ localVarQueryParameter = {};
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
137
+ }
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+ if (filter !== undefined) {
142
+ localVarQueryParameter['filter'] = filter;
143
+ }
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+ if (order !== undefined) {
148
+ localVarQueryParameter['order'] = order;
149
+ }
150
+ if (expand !== undefined) {
151
+ localVarQueryParameter['expand'] = expand;
152
+ }
153
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
+ }
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
159
+ return [2 /*return*/, {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ }];
163
+ }
164
+ });
165
+ });
166
+ },
167
+ };
168
+ };
169
+ exports.SearchableDocumentOwnersApiAxiosParamCreator = SearchableDocumentOwnersApiAxiosParamCreator;
170
+ /**
171
+ * SearchableDocumentOwnersApi - functional programming interface
172
+ * @export
173
+ */
174
+ var SearchableDocumentOwnersApiFp = function (configuration) {
175
+ var localVarAxiosParamCreator = (0, exports.SearchableDocumentOwnersApiAxiosParamCreator)(configuration);
176
+ return {
177
+ /**
178
+ * Returns the list of the searchable document owners.
179
+ * @summary List searchable document owners
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {number} [pageSize] Page size
182
+ * @param {string} [pageToken] Page token
183
+ * @param {string} [filter] List filter
184
+ * @param {string} [search] Search query
185
+ * @param {string} [order] Ordering criteria
186
+ * @param {string} [expand] Extra fields to fetch
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var localVarAxiosArgs;
193
+ return __generator(this, function (_a) {
194
+ switch (_a.label) {
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, options)];
196
+ case 1:
197
+ localVarAxiosArgs = _a.sent();
198
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
199
+ }
200
+ });
201
+ });
202
+ },
203
+ };
204
+ };
205
+ exports.SearchableDocumentOwnersApiFp = SearchableDocumentOwnersApiFp;
206
+ /**
207
+ * SearchableDocumentOwnersApi - factory interface
208
+ * @export
209
+ */
210
+ var SearchableDocumentOwnersApiFactory = function (configuration, basePath, axios) {
211
+ var localVarFp = (0, exports.SearchableDocumentOwnersApiFp)(configuration);
212
+ return {
213
+ /**
214
+ * Returns the list of the searchable document owners.
215
+ * @summary List searchable document owners
216
+ * @param {string} [authorization] Bearer Token
217
+ * @param {number} [pageSize] Page size
218
+ * @param {string} [pageToken] Page token
219
+ * @param {string} [filter] List filter
220
+ * @param {string} [search] Search query
221
+ * @param {string} [order] Ordering criteria
222
+ * @param {string} [expand] Extra fields to fetch
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
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); });
228
+ },
229
+ };
230
+ };
231
+ exports.SearchableDocumentOwnersApiFactory = SearchableDocumentOwnersApiFactory;
232
+ /**
233
+ * SearchableDocumentOwnersApi - object-oriented interface
234
+ * @export
235
+ * @class SearchableDocumentOwnersApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
239
+ __extends(SearchableDocumentOwnersApi, _super);
240
+ function SearchableDocumentOwnersApi() {
241
+ return _super !== null && _super.apply(this, arguments) || this;
242
+ }
243
+ /**
244
+ * Returns the list of the searchable document owners.
245
+ * @summary List searchable document owners
246
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof SearchableDocumentOwnersApi
250
+ */
251
+ SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
252
+ var _this = this;
253
+ if (requestParameters === void 0) { requestParameters = {}; }
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); });
255
+ };
256
+ return SearchableDocumentOwnersApi;
257
+ }(base_1.BaseAPI));
258
+ 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,243 @@
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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SearchableDocumentsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
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 \&#39;*\&#39; list provided).
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
110
+ if (options === void 0) { options = {}; }
111
+ return __awaiter(_this, void 0, void 0, function () {
112
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0:
116
+ // verify required parameter 'searchText' is not null or undefined
117
+ (0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
118
+ // verify required parameter 'ownerIds' is not null or undefined
119
+ (0, common_1.assertParamExists)('listSearchableDocuments', 'ownerIds', ownerIds);
120
+ localVarPath = "/documentservice/v1/searchable-documents";
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (searchText !== undefined) {
137
+ localVarQueryParameter['searchText'] = searchText;
138
+ }
139
+ if (ownerIds !== undefined) {
140
+ localVarQueryParameter['ownerIds'] = ownerIds;
141
+ }
142
+ if (product !== undefined) {
143
+ localVarQueryParameter['product'] = product;
144
+ }
145
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
+ }
148
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return [2 /*return*/, {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ }];
155
+ }
156
+ });
157
+ });
158
+ },
159
+ };
160
+ };
161
+ exports.SearchableDocumentsApiAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator;
162
+ /**
163
+ * SearchableDocumentsApi - functional programming interface
164
+ * @export
165
+ */
166
+ var SearchableDocumentsApiFp = function (configuration) {
167
+ var localVarAxiosParamCreator = (0, exports.SearchableDocumentsApiAxiosParamCreator)(configuration);
168
+ return {
169
+ /**
170
+ * 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.
171
+ * @summary List searchable documents
172
+ * @param {string} searchText Text to search in the documents.
173
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
174
+ * @param {string} [authorization] Bearer Token
175
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
180
+ return __awaiter(this, void 0, void 0, function () {
181
+ var localVarAxiosArgs;
182
+ return __generator(this, function (_a) {
183
+ switch (_a.label) {
184
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, authorization, product, options)];
185
+ case 1:
186
+ localVarAxiosArgs = _a.sent();
187
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ };
193
+ };
194
+ exports.SearchableDocumentsApiFp = SearchableDocumentsApiFp;
195
+ /**
196
+ * SearchableDocumentsApi - factory interface
197
+ * @export
198
+ */
199
+ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
200
+ var localVarFp = (0, exports.SearchableDocumentsApiFp)(configuration);
201
+ return {
202
+ /**
203
+ * 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.
204
+ * @summary List searchable documents
205
+ * @param {string} searchText Text to search in the documents.
206
+ * @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \&#39;*\&#39; list provided).
207
+ * @param {string} [authorization] Bearer Token
208
+ * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
213
+ return localVarFp.listSearchableDocuments(searchText, ownerIds, authorization, product, options).then(function (request) { return request(axios, basePath); });
214
+ },
215
+ };
216
+ };
217
+ exports.SearchableDocumentsApiFactory = SearchableDocumentsApiFactory;
218
+ /**
219
+ * SearchableDocumentsApi - object-oriented interface
220
+ * @export
221
+ * @class SearchableDocumentsApi
222
+ * @extends {BaseAPI}
223
+ */
224
+ var SearchableDocumentsApi = /** @class */ (function (_super) {
225
+ __extends(SearchableDocumentsApi, _super);
226
+ function SearchableDocumentsApi() {
227
+ return _super !== null && _super.apply(this, arguments) || this;
228
+ }
229
+ /**
230
+ * 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.
231
+ * @summary List searchable documents
232
+ * @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ * @memberof SearchableDocumentsApi
236
+ */
237
+ SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
238
+ var _this = this;
239
+ 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); });
240
+ };
241
+ return SearchableDocumentsApi;
242
+ }(base_1.BaseAPI));
243
+ 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';