@openfilz-sdk/typescript-ee 1.12.17 → 1.12.18

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 (88) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +21 -2
  4. package/api/ownership-api.ts +1076 -0
  5. package/api/sharing-api.ts +210 -0
  6. package/api.ts +2 -0
  7. package/dist/api/ownership-api.d.ts +505 -0
  8. package/dist/api/ownership-api.js +1015 -0
  9. package/dist/api/sharing-api.d.ts +104 -0
  10. package/dist/api/sharing-api.js +209 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/ownership-api.d.ts +505 -0
  14. package/dist/esm/api/ownership-api.js +1008 -0
  15. package/dist/esm/api/sharing-api.d.ts +104 -0
  16. package/dist/esm/api/sharing-api.js +202 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/enriched-audit-log.d.ts +9 -0
  20. package/dist/esm/models/enriched-audit-log.js +9 -0
  21. package/dist/esm/models/index.d.ts +7 -0
  22. package/dist/esm/models/index.js +7 -0
  23. package/dist/esm/models/notification-dto.d.ts +2 -0
  24. package/dist/esm/models/notification-dto.js +2 -0
  25. package/dist/esm/models/owned-document.d.ts +25 -0
  26. package/dist/esm/models/owned-document.js +17 -0
  27. package/dist/esm/models/owned-documents-filter.d.ts +45 -0
  28. package/dist/esm/models/owned-documents-filter.js +17 -0
  29. package/dist/esm/models/ownership-transfer-report.d.ts +29 -0
  30. package/dist/esm/models/ownership-transfer-report.js +14 -0
  31. package/dist/esm/models/ownership-transfer-request.d.ts +53 -0
  32. package/dist/esm/models/ownership-transfer-request.js +18 -0
  33. package/dist/esm/models/quota-check.d.ts +17 -0
  34. package/dist/esm/models/quota-check.js +14 -0
  35. package/dist/esm/models/search-by-audit-log-request.d.ts +9 -0
  36. package/dist/esm/models/search-by-audit-log-request.js +9 -0
  37. package/dist/esm/models/share-inheritance-request.d.ts +14 -0
  38. package/dist/esm/models/share-inheritance-request.js +14 -0
  39. package/dist/esm/models/share-inheritance.d.ts +16 -0
  40. package/dist/esm/models/share-inheritance.js +14 -0
  41. package/dist/esm/models/user-registration-request.d.ts +1 -0
  42. package/dist/models/enriched-audit-log.d.ts +9 -0
  43. package/dist/models/enriched-audit-log.js +9 -0
  44. package/dist/models/index.d.ts +7 -0
  45. package/dist/models/index.js +7 -0
  46. package/dist/models/notification-dto.d.ts +2 -0
  47. package/dist/models/notification-dto.js +2 -0
  48. package/dist/models/owned-document.d.ts +25 -0
  49. package/dist/models/owned-document.js +20 -0
  50. package/dist/models/owned-documents-filter.d.ts +45 -0
  51. package/dist/models/owned-documents-filter.js +20 -0
  52. package/dist/models/ownership-transfer-report.d.ts +29 -0
  53. package/dist/models/ownership-transfer-report.js +15 -0
  54. package/dist/models/ownership-transfer-request.d.ts +53 -0
  55. package/dist/models/ownership-transfer-request.js +21 -0
  56. package/dist/models/quota-check.d.ts +17 -0
  57. package/dist/models/quota-check.js +15 -0
  58. package/dist/models/search-by-audit-log-request.d.ts +9 -0
  59. package/dist/models/search-by-audit-log-request.js +9 -0
  60. package/dist/models/share-inheritance-request.d.ts +14 -0
  61. package/dist/models/share-inheritance-request.js +15 -0
  62. package/dist/models/share-inheritance.d.ts +16 -0
  63. package/dist/models/share-inheritance.js +15 -0
  64. package/dist/models/user-registration-request.d.ts +1 -0
  65. package/docs/OwnedDocument.md +32 -0
  66. package/docs/OwnedDocumentsFilter.md +31 -0
  67. package/docs/OwnershipApi.md +621 -0
  68. package/docs/OwnershipTransferReport.md +48 -0
  69. package/docs/OwnershipTransferRequest.md +37 -0
  70. package/docs/QuotaCheck.md +26 -0
  71. package/docs/ShareInheritance.md +24 -0
  72. package/docs/ShareInheritanceRequest.md +20 -0
  73. package/docs/SharingApi.md +114 -0
  74. package/docs/UserRegistrationRequest.md +2 -0
  75. package/models/enriched-audit-log-details.ts +26 -0
  76. package/models/enriched-audit-log.ts +9 -0
  77. package/models/index.ts +7 -0
  78. package/models/notification-dto.ts +2 -0
  79. package/models/owned-document.ts +34 -0
  80. package/models/owned-documents-filter.ts +54 -0
  81. package/models/ownership-transfer-report.ts +37 -0
  82. package/models/ownership-transfer-request.ts +64 -0
  83. package/models/quota-check.ts +23 -0
  84. package/models/search-by-audit-log-request.ts +9 -0
  85. package/models/share-inheritance-request.ts +20 -0
  86. package/models/share-inheritance.ts +22 -0
  87. package/models/user-registration-request.ts +1 -0
  88. package/package.json +1 -1
@@ -0,0 +1,210 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ShareInheritance } from '../models';
26
+ // @ts-ignore
27
+ import type { ShareInheritanceRequest } from '../models';
28
+ /**
29
+ * SharingApi - axios parameter creator
30
+ */
31
+ export const SharingApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Does the document receive the shares of its ancestors?
36
+ * @param {string} id
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getShareInheritance: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41
+ // verify required parameter 'id' is not null or undefined
42
+ assertParamExists('getShareInheritance', 'id', id)
43
+ const localVarPath = `/api/v1/documents/{id}/share-inheritance`
44
+ .replace('{id}', encodeURIComponent(String(id)));
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+
52
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
53
+ const localVarHeaderParameter = {} as any;
54
+ const localVarQueryParameter = {} as any;
55
+
56
+ // authentication keycloak_auth required
57
+ // http bearer authentication required
58
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
59
+
60
+ localVarHeaderParameter['Accept'] = '*/*';
61
+
62
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65
+
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ },
71
+ /**
72
+ * inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
73
+ * @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
74
+ * @param {string} id
75
+ * @param {ShareInheritanceRequest} shareInheritanceRequest
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ setShareInheritance: async (id: string, shareInheritanceRequest: ShareInheritanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
80
+ // verify required parameter 'id' is not null or undefined
81
+ assertParamExists('setShareInheritance', 'id', id)
82
+ // verify required parameter 'shareInheritanceRequest' is not null or undefined
83
+ assertParamExists('setShareInheritance', 'shareInheritanceRequest', shareInheritanceRequest)
84
+ const localVarPath = `/api/v1/users/share/inheritance/{id}`
85
+ .replace('{id}', encodeURIComponent(String(id)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+
93
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
94
+ const localVarHeaderParameter = {} as any;
95
+ const localVarQueryParameter = {} as any;
96
+
97
+ // authentication keycloak_auth required
98
+ // http bearer authentication required
99
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
100
+
101
+ localVarHeaderParameter['Content-Type'] = 'application/json';
102
+ localVarHeaderParameter['Accept'] = '*/*';
103
+
104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
107
+ localVarRequestOptions.data = serializeDataIfNeeded(shareInheritanceRequest, localVarRequestOptions, configuration)
108
+
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions,
112
+ };
113
+ },
114
+ }
115
+ };
116
+
117
+ /**
118
+ * SharingApi - functional programming interface
119
+ */
120
+ export const SharingApiFp = function(configuration?: Configuration) {
121
+ const localVarAxiosParamCreator = SharingApiAxiosParamCreator(configuration)
122
+ return {
123
+ /**
124
+ *
125
+ * @summary Does the document receive the shares of its ancestors?
126
+ * @param {string} id
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ async getShareInheritance(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareInheritance>> {
131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShareInheritance(id, options);
132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
133
+ const localVarOperationServerBasePath = operationServerMap['SharingApi.getShareInheritance']?.[localVarOperationServerIndex]?.url;
134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
135
+ },
136
+ /**
137
+ * inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
138
+ * @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
139
+ * @param {string} id
140
+ * @param {ShareInheritanceRequest} shareInheritanceRequest
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ async setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareInheritance>> {
145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setShareInheritance(id, shareInheritanceRequest, options);
146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147
+ const localVarOperationServerBasePath = operationServerMap['SharingApi.setShareInheritance']?.[localVarOperationServerIndex]?.url;
148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
149
+ },
150
+ }
151
+ };
152
+
153
+ /**
154
+ * SharingApi - factory interface
155
+ */
156
+ export const SharingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
157
+ const localVarFp = SharingApiFp(configuration)
158
+ return {
159
+ /**
160
+ *
161
+ * @summary Does the document receive the shares of its ancestors?
162
+ * @param {string} id
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ getShareInheritance(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShareInheritance> {
167
+ return localVarFp.getShareInheritance(id, options).then((request) => request(axios, basePath));
168
+ },
169
+ /**
170
+ * inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
171
+ * @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
172
+ * @param {string} id
173
+ * @param {ShareInheritanceRequest} shareInheritanceRequest
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareInheritance> {
178
+ return localVarFp.setShareInheritance(id, shareInheritanceRequest, options).then((request) => request(axios, basePath));
179
+ },
180
+ };
181
+ };
182
+
183
+ /**
184
+ * SharingApi - object-oriented interface
185
+ */
186
+ export class SharingApi extends BaseAPI {
187
+ /**
188
+ *
189
+ * @summary Does the document receive the shares of its ancestors?
190
+ * @param {string} id
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ public getShareInheritance(id: string, options?: RawAxiosRequestConfig) {
195
+ return SharingApiFp(this.configuration).getShareInheritance(id, options).then((request) => request(this.axios, this.basePath));
196
+ }
197
+
198
+ /**
199
+ * inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
200
+ * @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
201
+ * @param {string} id
202
+ * @param {ShareInheritanceRequest} shareInheritanceRequest
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ public setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig) {
207
+ return SharingApiFp(this.configuration).setShareInheritance(id, shareInheritanceRequest, options).then((request) => request(this.axios, this.basePath));
208
+ }
209
+ }
210
+
package/api.ts CHANGED
@@ -51,6 +51,7 @@ export * from './api/mcp-discovery-controller-api';
51
51
  export * from './api/mcp-token-admin-controller-api';
52
52
  export * from './api/notifications-api';
53
53
  export * from './api/organisation-settings-api';
54
+ export * from './api/ownership-api';
54
55
  export * from './api/pdftools-api';
55
56
  export * from './api/quota-administration-api';
56
57
  export * from './api/quotas-api';
@@ -58,6 +59,7 @@ export * from './api/scan-agent-api';
58
59
  export * from './api/scanner-proxy-api';
59
60
  export * from './api/search-administration-api';
60
61
  export * from './api/settings-api';
62
+ export * from './api/sharing-api';
61
63
  export * from './api/smart-filing-api';
62
64
  export * from './api/storage-encryption-administration-api';
63
65
  export * from './api/tus-controller-api';