@emilgroup/document-sdk 1.12.2 → 1.16.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 (157) hide show
  1. package/README.md +2 -2
  2. package/api/product-documents-api.ts +8 -206
  3. package/dist/api/default-api.d.ts +66 -0
  4. package/dist/api/default-api.js +196 -0
  5. package/dist/api/document-templates-api.d.ts +385 -0
  6. package/dist/api/document-templates-api.js +636 -0
  7. package/dist/api/documents-api.d.ts +488 -0
  8. package/dist/api/documents-api.js +817 -0
  9. package/dist/api/docx-templates-api.d.ts +432 -0
  10. package/dist/api/docx-templates-api.js +722 -0
  11. package/dist/api/layouts-api.d.ts +385 -0
  12. package/dist/api/layouts-api.js +638 -0
  13. package/dist/api/product-documents-api.d.ts +401 -0
  14. package/dist/api/product-documents-api.js +647 -0
  15. package/dist/api/search-keywords-api.d.ts +96 -0
  16. package/dist/api/search-keywords-api.js +225 -0
  17. package/dist/api/searchable-document-owners-api.d.ts +141 -0
  18. package/dist/api/searchable-document-owners-api.js +254 -0
  19. package/dist/api/searchable-documents-api.d.ts +114 -0
  20. package/dist/api/searchable-documents-api.js +239 -0
  21. package/dist/api.d.ts +20 -0
  22. package/dist/api.js +38 -0
  23. package/dist/base.d.ts +74 -0
  24. package/dist/base.js +298 -0
  25. package/dist/common.d.ts +91 -0
  26. package/dist/common.js +276 -0
  27. package/dist/configuration.d.ts +83 -0
  28. package/dist/configuration.js +44 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +36 -0
  31. package/dist/models/create-doc-template-request-dto.d.ts +55 -0
  32. package/dist/models/create-doc-template-request-dto.js +15 -0
  33. package/dist/models/create-doc-template-response-class.d.ts +25 -0
  34. package/dist/models/create-doc-template-response-class.js +15 -0
  35. package/dist/models/create-document-request-dto.d.ts +162 -0
  36. package/dist/models/create-document-request-dto.js +60 -0
  37. package/dist/models/create-document-sync-response-class.d.ts +25 -0
  38. package/dist/models/create-document-sync-response-class.js +15 -0
  39. package/dist/models/create-html-template-dto.d.ts +24 -0
  40. package/dist/models/create-html-template-dto.js +15 -0
  41. package/dist/models/create-layout-request-dto.d.ts +49 -0
  42. package/dist/models/create-layout-request-dto.js +15 -0
  43. package/dist/models/create-layout-response-class.d.ts +25 -0
  44. package/dist/models/create-layout-response-class.js +15 -0
  45. package/dist/models/create-presigned-post-request-dto.d.ts +134 -0
  46. package/dist/models/create-presigned-post-request-dto.js +52 -0
  47. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  48. package/dist/models/create-presigned-post-response-class.js +15 -0
  49. package/dist/models/delete-layout-request-dto.d.ts +24 -0
  50. package/dist/models/delete-layout-request-dto.js +15 -0
  51. package/dist/models/delete-product-document-request-dto.d.ts +30 -0
  52. package/dist/models/delete-product-document-request-dto.js +15 -0
  53. package/dist/models/delete-request-dto.d.ts +24 -0
  54. package/dist/models/delete-request-dto.js +15 -0
  55. package/dist/models/delete-response-class.d.ts +24 -0
  56. package/dist/models/delete-response-class.js +15 -0
  57. package/dist/models/doc-template-class.d.ts +92 -0
  58. package/dist/models/doc-template-class.js +15 -0
  59. package/dist/models/document-class.d.ts +158 -0
  60. package/dist/models/document-class.js +52 -0
  61. package/dist/models/docx-template-class.d.ts +90 -0
  62. package/dist/models/docx-template-class.js +15 -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-docx-template-response-class.d.ts +25 -0
  74. package/dist/models/get-docx-template-response-class.js +15 -0
  75. package/dist/models/get-layout-request-dto.d.ts +24 -0
  76. package/dist/models/get-layout-request-dto.js +15 -0
  77. package/dist/models/get-layout-response-class.d.ts +25 -0
  78. package/dist/models/get-layout-response-class.js +15 -0
  79. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  80. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  81. package/dist/models/get-product-document-response-class.d.ts +25 -0
  82. package/dist/models/get-product-document-response-class.js +15 -0
  83. package/dist/models/get-signed-s3-key-url-response-class.d.ts +24 -0
  84. package/dist/models/get-signed-s3-key-url-response-class.js +15 -0
  85. package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
  86. package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
  87. package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
  88. package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
  89. package/dist/models/html-template-class.d.ts +66 -0
  90. package/dist/models/html-template-class.js +21 -0
  91. package/dist/models/index.d.ts +60 -0
  92. package/dist/models/index.js +76 -0
  93. package/dist/models/inline-response200.d.ts +54 -0
  94. package/dist/models/inline-response200.js +15 -0
  95. package/dist/models/inline-response503.d.ts +54 -0
  96. package/dist/models/inline-response503.js +15 -0
  97. package/dist/models/layout-class.d.ts +79 -0
  98. package/dist/models/layout-class.js +15 -0
  99. package/dist/models/list-doc-template-request-dto.d.ts +54 -0
  100. package/dist/models/list-doc-template-request-dto.js +15 -0
  101. package/dist/models/list-doc-templates-response-class.d.ts +31 -0
  102. package/dist/models/list-doc-templates-response-class.js +15 -0
  103. package/dist/models/list-documents-response-class.d.ts +31 -0
  104. package/dist/models/list-documents-response-class.js +15 -0
  105. package/dist/models/list-docx-templates-response-class.d.ts +31 -0
  106. package/dist/models/list-docx-templates-response-class.js +15 -0
  107. package/dist/models/list-layouts-response-class.d.ts +31 -0
  108. package/dist/models/list-layouts-response-class.js +15 -0
  109. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  110. package/dist/models/list-product-documents-response-class.js +15 -0
  111. package/dist/models/list-request-dto.d.ts +54 -0
  112. package/dist/models/list-request-dto.js +15 -0
  113. package/dist/models/list-search-keywords-request-dto.d.ts +24 -0
  114. package/dist/models/list-search-keywords-request-dto.js +15 -0
  115. package/dist/models/list-search-keywords-response-class.d.ts +24 -0
  116. package/dist/models/list-search-keywords-response-class.js +15 -0
  117. package/dist/models/list-searchable-document-owners-request-dto.d.ts +31 -0
  118. package/dist/models/list-searchable-document-owners-request-dto.js +22 -0
  119. package/dist/models/list-searchable-document-owners-response-class.d.ts +25 -0
  120. package/dist/models/list-searchable-document-owners-response-class.js +15 -0
  121. package/dist/models/list-searchable-documents-request-dto.d.ts +43 -0
  122. package/dist/models/list-searchable-documents-request-dto.js +22 -0
  123. package/dist/models/list-searchable-documents-response-class.d.ts +31 -0
  124. package/dist/models/list-searchable-documents-response-class.js +15 -0
  125. package/dist/models/product-document-class.d.ts +117 -0
  126. package/dist/models/product-document-class.js +24 -0
  127. package/dist/models/searchable-document-class.d.ts +66 -0
  128. package/dist/models/searchable-document-class.js +15 -0
  129. package/dist/models/searchable-document-owner-class.d.ts +30 -0
  130. package/dist/models/searchable-document-owner-class.js +15 -0
  131. package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
  132. package/dist/models/shared-update-docx-template-request-dto.js +15 -0
  133. package/dist/models/update-doc-template-request-dto.d.ts +61 -0
  134. package/dist/models/update-doc-template-request-dto.js +15 -0
  135. package/dist/models/update-doc-template-response-class.d.ts +25 -0
  136. package/dist/models/update-doc-template-response-class.js +15 -0
  137. package/dist/models/update-document-request-dto.d.ts +54 -0
  138. package/dist/models/update-document-request-dto.js +15 -0
  139. package/dist/models/update-document-response-class.d.ts +25 -0
  140. package/dist/models/update-document-response-class.js +15 -0
  141. package/dist/models/update-docx-template-response-class.d.ts +25 -0
  142. package/dist/models/update-docx-template-response-class.js +15 -0
  143. package/dist/models/update-html-template-dto.d.ts +42 -0
  144. package/dist/models/update-html-template-dto.js +21 -0
  145. package/dist/models/update-layout-request-dto.d.ts +55 -0
  146. package/dist/models/update-layout-request-dto.js +15 -0
  147. package/dist/models/update-layout-response-class.d.ts +25 -0
  148. package/dist/models/update-layout-response-class.js +15 -0
  149. package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
  150. package/dist/models/upload-docx-template-request-dto.js +15 -0
  151. package/dist/models/upload-product-document-request-dto.d.ts +75 -0
  152. package/dist/models/upload-product-document-request-dto.js +24 -0
  153. package/models/docx-template-class.ts +1 -1
  154. package/models/inline-response200.ts +6 -6
  155. package/models/inline-response503.ts +6 -6
  156. package/models/product-document-class.ts +1 -1
  157. package/package.json +1 -1
@@ -0,0 +1,96 @@
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 { ListSearchKeywordsResponseClass } from '../models';
16
+ /**
17
+ * SearchKeywordsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SearchKeywordsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
23
+ * @summary List keywords
24
+ * @param {string} searchText Text to search in the documents.
25
+ * @param {string} [authorization] Bearer Token
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ listSearchKeywords: (searchText: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * SearchKeywordsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const SearchKeywordsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
38
+ * @summary List keywords
39
+ * @param {string} searchText Text to search in the documents.
40
+ * @param {string} [authorization] Bearer Token
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchKeywordsResponseClass>>;
45
+ };
46
+ /**
47
+ * SearchKeywordsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const SearchKeywordsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
53
+ * @summary List keywords
54
+ * @param {string} searchText Text to search in the documents.
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<ListSearchKeywordsResponseClass>;
60
+ };
61
+ /**
62
+ * Request parameters for listSearchKeywords operation in SearchKeywordsApi.
63
+ * @export
64
+ * @interface SearchKeywordsApiListSearchKeywordsRequest
65
+ */
66
+ export interface SearchKeywordsApiListSearchKeywordsRequest {
67
+ /**
68
+ * Text to search in the documents.
69
+ * @type {string}
70
+ * @memberof SearchKeywordsApiListSearchKeywords
71
+ */
72
+ readonly searchText: string;
73
+ /**
74
+ * Bearer Token
75
+ * @type {string}
76
+ * @memberof SearchKeywordsApiListSearchKeywords
77
+ */
78
+ readonly authorization?: string;
79
+ }
80
+ /**
81
+ * SearchKeywordsApi - object-oriented interface
82
+ * @export
83
+ * @class SearchKeywordsApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class SearchKeywordsApi extends BaseAPI {
87
+ /**
88
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
89
+ * @summary List keywords
90
+ * @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof SearchKeywordsApi
94
+ */
95
+ listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any>>;
96
+ }
@@ -0,0 +1,225 @@
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.SearchKeywordsApi = exports.SearchKeywordsApiFactory = exports.SearchKeywordsApiFp = exports.SearchKeywordsApiAxiosParamCreator = 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
+ * SearchKeywordsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
97
+ * @summary List keywords
98
+ * @param {string} searchText Text to search in the documents.
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listSearchKeywords: function (searchText, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'searchText' is not null or undefined
111
+ (0, common_1.assertParamExists)('listSearchKeywords', 'searchText', searchText);
112
+ localVarPath = "/documentservice/v1/search-keywords";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (searchText !== undefined) {
129
+ localVarQueryParameter['searchText'] = searchText;
130
+ }
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ return [2 /*return*/, {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ }];
141
+ }
142
+ });
143
+ });
144
+ },
145
+ };
146
+ };
147
+ exports.SearchKeywordsApiAxiosParamCreator = SearchKeywordsApiAxiosParamCreator;
148
+ /**
149
+ * SearchKeywordsApi - functional programming interface
150
+ * @export
151
+ */
152
+ var SearchKeywordsApiFp = function (configuration) {
153
+ var localVarAxiosParamCreator = (0, exports.SearchKeywordsApiAxiosParamCreator)(configuration);
154
+ return {
155
+ /**
156
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
157
+ * @summary List keywords
158
+ * @param {string} searchText Text to search in the documents.
159
+ * @param {string} [authorization] Bearer Token
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listSearchKeywords: function (searchText, authorization, options) {
164
+ return __awaiter(this, void 0, void 0, function () {
165
+ var localVarAxiosArgs;
166
+ return __generator(this, function (_a) {
167
+ switch (_a.label) {
168
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchKeywords(searchText, authorization, options)];
169
+ case 1:
170
+ localVarAxiosArgs = _a.sent();
171
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
172
+ }
173
+ });
174
+ });
175
+ },
176
+ };
177
+ };
178
+ exports.SearchKeywordsApiFp = SearchKeywordsApiFp;
179
+ /**
180
+ * SearchKeywordsApi - factory interface
181
+ * @export
182
+ */
183
+ var SearchKeywordsApiFactory = function (configuration, basePath, axios) {
184
+ var localVarFp = (0, exports.SearchKeywordsApiFp)(configuration);
185
+ return {
186
+ /**
187
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
188
+ * @summary List keywords
189
+ * @param {string} searchText Text to search in the documents.
190
+ * @param {string} [authorization] Bearer Token
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ listSearchKeywords: function (searchText, authorization, options) {
195
+ return localVarFp.listSearchKeywords(searchText, authorization, options).then(function (request) { return request(axios, basePath); });
196
+ },
197
+ };
198
+ };
199
+ exports.SearchKeywordsApiFactory = SearchKeywordsApiFactory;
200
+ /**
201
+ * SearchKeywordsApi - object-oriented interface
202
+ * @export
203
+ * @class SearchKeywordsApi
204
+ * @extends {BaseAPI}
205
+ */
206
+ var SearchKeywordsApi = /** @class */ (function (_super) {
207
+ __extends(SearchKeywordsApi, _super);
208
+ function SearchKeywordsApi() {
209
+ return _super !== null && _super.apply(this, arguments) || this;
210
+ }
211
+ /**
212
+ * Returns a list of search keywords, including synonyms, used to search and browse documents based on user-entered text.
213
+ * @summary List keywords
214
+ * @param {SearchKeywordsApiListSearchKeywordsRequest} requestParameters Request parameters.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof SearchKeywordsApi
218
+ */
219
+ SearchKeywordsApi.prototype.listSearchKeywords = function (requestParameters, options) {
220
+ var _this = this;
221
+ return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
222
+ };
223
+ return SearchKeywordsApi;
224
+ }(base_1.BaseAPI));
225
+ exports.SearchKeywordsApi = SearchKeywordsApi;
@@ -0,0 +1,141 @@
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 { ListSearchableDocumentOwnersResponseClass } from '../models';
16
+ /**
17
+ * SearchableDocumentOwnersApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SearchableDocumentOwnersApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Returns the list of the searchable document owners.
23
+ * @summary List searchable document owners
24
+ * @param {string} [authorization] Bearer Token
25
+ * @param {number} [pageSize] Page size
26
+ * @param {string} [pageToken] Page token
27
+ * @param {string} [filter] List filter
28
+ * @param {string} [search] Search query
29
+ * @param {string} [order] Ordering criteria
30
+ * @param {string} [expand] Extra fields to fetch
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ listSearchableDocumentOwners: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ };
36
+ /**
37
+ * SearchableDocumentOwnersApi - functional programming interface
38
+ * @export
39
+ */
40
+ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configuration) => {
41
+ /**
42
+ * Returns the list of the searchable document owners.
43
+ * @summary List searchable document owners
44
+ * @param {string} [authorization] Bearer Token
45
+ * @param {number} [pageSize] Page size
46
+ * @param {string} [pageToken] Page token
47
+ * @param {string} [filter] List filter
48
+ * @param {string} [search] Search query
49
+ * @param {string} [order] Ordering criteria
50
+ * @param {string} [expand] Extra fields to fetch
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSearchableDocumentOwnersResponseClass>>;
55
+ };
56
+ /**
57
+ * SearchableDocumentOwnersApi - factory interface
58
+ * @export
59
+ */
60
+ export declare const SearchableDocumentOwnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
61
+ /**
62
+ * Returns the list of the searchable document owners.
63
+ * @summary List searchable document owners
64
+ * @param {string} [authorization] Bearer Token
65
+ * @param {number} [pageSize] Page size
66
+ * @param {string} [pageToken] Page token
67
+ * @param {string} [filter] List filter
68
+ * @param {string} [search] Search query
69
+ * @param {string} [order] Ordering criteria
70
+ * @param {string} [expand] Extra fields to fetch
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSearchableDocumentOwnersResponseClass>;
75
+ };
76
+ /**
77
+ * Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
78
+ * @export
79
+ * @interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest
80
+ */
81
+ export interface SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest {
82
+ /**
83
+ * Bearer Token
84
+ * @type {string}
85
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
86
+ */
87
+ readonly authorization?: string;
88
+ /**
89
+ * Page size
90
+ * @type {number}
91
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
92
+ */
93
+ readonly pageSize?: number;
94
+ /**
95
+ * Page token
96
+ * @type {string}
97
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
98
+ */
99
+ readonly pageToken?: string;
100
+ /**
101
+ * List filter
102
+ * @type {string}
103
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
104
+ */
105
+ readonly filter?: string;
106
+ /**
107
+ * Search query
108
+ * @type {string}
109
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
110
+ */
111
+ readonly search?: string;
112
+ /**
113
+ * Ordering criteria
114
+ * @type {string}
115
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
116
+ */
117
+ readonly order?: string;
118
+ /**
119
+ * Extra fields to fetch
120
+ * @type {string}
121
+ * @memberof SearchableDocumentOwnersApiListSearchableDocumentOwners
122
+ */
123
+ readonly expand?: string;
124
+ }
125
+ /**
126
+ * SearchableDocumentOwnersApi - object-oriented interface
127
+ * @export
128
+ * @class SearchableDocumentOwnersApi
129
+ * @extends {BaseAPI}
130
+ */
131
+ export declare class SearchableDocumentOwnersApi extends BaseAPI {
132
+ /**
133
+ * Returns the list of the searchable document owners.
134
+ * @summary List searchable document owners
135
+ * @param {SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest} requestParameters Request parameters.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof SearchableDocumentOwnersApi
139
+ */
140
+ listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any>>;
141
+ }