@openfilz-sdk/typescript-ee 1.14.6 → 1.14.8
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.
- package/.openapi-generator/FILES +14 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +13 -2
- package/api/access-requests-api.ts +203 -0
- package/api/collaboration-controller-api.ts +79 -4
- package/api/comments-api.ts +152 -0
- package/api.ts +1 -0
- package/dist/api/access-requests-api.d.ts +100 -0
- package/dist/api/access-requests-api.js +202 -0
- package/dist/api/collaboration-controller-api.d.ts +37 -4
- package/dist/api/collaboration-controller-api.js +74 -4
- package/dist/api/comments-api.d.ts +67 -0
- package/dist/api/comments-api.js +140 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/access-requests-api.d.ts +100 -0
- package/dist/esm/api/access-requests-api.js +195 -0
- package/dist/esm/api/collaboration-controller-api.d.ts +37 -4
- package/dist/esm/api/collaboration-controller-api.js +74 -4
- package/dist/esm/api/comments-api.d.ts +67 -0
- package/dist/esm/api/comments-api.js +140 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/access-request-input.d.ts +31 -0
- package/dist/esm/models/access-request-input.js +18 -0
- package/dist/esm/models/access-request-status.d.ts +36 -0
- package/dist/esm/models/access-request-status.js +24 -0
- package/dist/esm/models/enriched-audit-log.d.ts +1 -0
- package/dist/esm/models/enriched-audit-log.js +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/mention-access-item.d.ts +29 -0
- package/dist/esm/models/mention-access-item.js +21 -0
- package/dist/esm/models/mention-access-preview.d.ts +15 -0
- package/dist/esm/models/mention-access-preview.js +14 -0
- package/dist/esm/models/mention-access-request.d.ts +21 -0
- package/dist/esm/models/mention-access-request.js +14 -0
- package/dist/esm/models/notification-dto.d.ts +3 -0
- package/dist/esm/models/notification-dto.js +3 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/esm/models/search-by-audit-log-request.js +1 -0
- package/dist/esm/models/share-expiry-request.d.ts +25 -0
- package/dist/esm/models/share-expiry-request.js +14 -0
- package/dist/esm/models/share-request.d.ts +4 -0
- package/dist/esm/models/share-result-error.d.ts +3 -0
- package/dist/esm/models/share-result-error.js +3 -0
- package/dist/esm/models/violation.d.ts +3 -0
- package/dist/esm/models/violation.js +3 -0
- package/dist/models/access-request-input.d.ts +31 -0
- package/dist/models/access-request-input.js +21 -0
- package/dist/models/access-request-status.d.ts +36 -0
- package/dist/models/access-request-status.js +27 -0
- package/dist/models/enriched-audit-log.d.ts +1 -0
- package/dist/models/enriched-audit-log.js +1 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/mention-access-item.d.ts +29 -0
- package/dist/models/mention-access-item.js +24 -0
- package/dist/models/mention-access-preview.d.ts +15 -0
- package/dist/models/mention-access-preview.js +15 -0
- package/dist/models/mention-access-request.d.ts +21 -0
- package/dist/models/mention-access-request.js +15 -0
- package/dist/models/notification-dto.d.ts +3 -0
- package/dist/models/notification-dto.js +3 -0
- package/dist/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/models/search-by-audit-log-request.js +1 -0
- package/dist/models/share-expiry-request.d.ts +25 -0
- package/dist/models/share-expiry-request.js +15 -0
- package/dist/models/share-request.d.ts +4 -0
- package/dist/models/share-result-error.d.ts +3 -0
- package/dist/models/share-result-error.js +3 -0
- package/dist/models/violation.d.ts +3 -0
- package/dist/models/violation.js +3 -0
- package/docs/AccessRequestInput.md +24 -0
- package/docs/AccessRequestStatus.md +26 -0
- package/docs/AccessRequestsApi.md +112 -0
- package/docs/CollaborationControllerApi.md +57 -1
- package/docs/CommentsApi.md +106 -0
- package/docs/MentionAccessItem.md +32 -0
- package/docs/MentionAccessPreview.md +20 -0
- package/docs/MentionAccessRequest.md +22 -0
- package/docs/ShareExpiryRequest.md +24 -0
- package/docs/ShareRequest.md +2 -0
- package/graphql/share.graphqls +43 -2
- package/models/access-request-input.ts +40 -0
- package/models/access-request-status.ts +46 -0
- package/models/enriched-audit-log.ts +1 -0
- package/models/index.ts +6 -0
- package/models/mention-access-item.ts +38 -0
- package/models/mention-access-preview.ts +23 -0
- package/models/mention-access-request.ts +27 -0
- package/models/notification-dto.ts +3 -0
- package/models/search-by-audit-log-request.ts +1 -0
- package/models/share-expiry-request.ts +31 -0
- package/models/share-request.ts +4 -0
- package/models/share-result-error.ts +3 -0
- package/models/violation.ts +3 -0
- package/package.json +1 -1
|
@@ -97,6 +97,74 @@ export const CommentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
options: localVarRequestOptions,
|
|
98
98
|
};
|
|
99
99
|
}),
|
|
100
|
+
/**
|
|
101
|
+
* Does what the preview lists: silent COMMENTER shares on the documents the caller manages, share requests to the owner on the others. Call it before saving the comment so the mentioned users are notified.
|
|
102
|
+
* @summary Give mentioned users comment access
|
|
103
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
grantMentionAccess: (mentionAccessRequest_1, ...args_1) => __awaiter(this, [mentionAccessRequest_1, ...args_1], void 0, function* (mentionAccessRequest, options = {}) {
|
|
108
|
+
// verify required parameter 'mentionAccessRequest' is not null or undefined
|
|
109
|
+
assertParamExists('grantMentionAccess', 'mentionAccessRequest', mentionAccessRequest);
|
|
110
|
+
const localVarPath = `/api/v1/documents/comments/mention-access/grant`;
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
}
|
|
117
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
118
|
+
const localVarHeaderParameter = {};
|
|
119
|
+
const localVarQueryParameter = {};
|
|
120
|
+
// authentication keycloak_auth required
|
|
121
|
+
// http bearer authentication required
|
|
122
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
123
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
128
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mentionAccessRequest, localVarRequestOptions, configuration);
|
|
129
|
+
return {
|
|
130
|
+
url: toPathString(localVarUrlObj),
|
|
131
|
+
options: localVarRequestOptions,
|
|
132
|
+
};
|
|
133
|
+
}),
|
|
134
|
+
/**
|
|
135
|
+
* Lists the mentioned users who cannot comment on the documents yet and what giving them access takes: a COMMENTER share (or READER → COMMENTER) on a document the caller manages, a share request to the owner on the others. Changes nothing.
|
|
136
|
+
* @summary Preview comment access for mentioned users
|
|
137
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
previewMentionAccess: (mentionAccessRequest_1, ...args_1) => __awaiter(this, [mentionAccessRequest_1, ...args_1], void 0, function* (mentionAccessRequest, options = {}) {
|
|
142
|
+
// verify required parameter 'mentionAccessRequest' is not null or undefined
|
|
143
|
+
assertParamExists('previewMentionAccess', 'mentionAccessRequest', mentionAccessRequest);
|
|
144
|
+
const localVarPath = `/api/v1/documents/comments/mention-access`;
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
if (configuration) {
|
|
149
|
+
baseOptions = configuration.baseOptions;
|
|
150
|
+
}
|
|
151
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
152
|
+
const localVarHeaderParameter = {};
|
|
153
|
+
const localVarQueryParameter = {};
|
|
154
|
+
// authentication keycloak_auth required
|
|
155
|
+
// http bearer authentication required
|
|
156
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
157
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
158
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
159
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
160
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
161
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
162
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mentionAccessRequest, localVarRequestOptions, configuration);
|
|
163
|
+
return {
|
|
164
|
+
url: toPathString(localVarUrlObj),
|
|
165
|
+
options: localVarRequestOptions,
|
|
166
|
+
};
|
|
167
|
+
}),
|
|
100
168
|
/**
|
|
101
169
|
* Update an existing comment. Only the comment creator can update their comment.
|
|
102
170
|
* @summary Update a comment
|
|
@@ -175,6 +243,38 @@ export const CommentsApiFp = function (configuration) {
|
|
|
175
243
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
176
244
|
});
|
|
177
245
|
},
|
|
246
|
+
/**
|
|
247
|
+
* Does what the preview lists: silent COMMENTER shares on the documents the caller manages, share requests to the owner on the others. Call it before saving the comment so the mentioned users are notified.
|
|
248
|
+
* @summary Give mentioned users comment access
|
|
249
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
grantMentionAccess(mentionAccessRequest, options) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
var _a, _b, _c;
|
|
256
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.grantMentionAccess(mentionAccessRequest, options);
|
|
257
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
258
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommentsApi.grantMentionAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
259
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
260
|
+
});
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
* Lists the mentioned users who cannot comment on the documents yet and what giving them access takes: a COMMENTER share (or READER → COMMENTER) on a document the caller manages, a share request to the owner on the others. Changes nothing.
|
|
264
|
+
* @summary Preview comment access for mentioned users
|
|
265
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
previewMentionAccess(mentionAccessRequest, options) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
var _a, _b, _c;
|
|
272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.previewMentionAccess(mentionAccessRequest, options);
|
|
273
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
274
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommentsApi.previewMentionAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
275
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
276
|
+
});
|
|
277
|
+
},
|
|
178
278
|
/**
|
|
179
279
|
* Update an existing comment. Only the comment creator can update their comment.
|
|
180
280
|
* @summary Update a comment
|
|
@@ -220,6 +320,26 @@ export const CommentsApiFactory = function (configuration, basePath, axios) {
|
|
|
220
320
|
deleteComment(id, options) {
|
|
221
321
|
return localVarFp.deleteComment(id, options).then((request) => request(axios, basePath));
|
|
222
322
|
},
|
|
323
|
+
/**
|
|
324
|
+
* Does what the preview lists: silent COMMENTER shares on the documents the caller manages, share requests to the owner on the others. Call it before saving the comment so the mentioned users are notified.
|
|
325
|
+
* @summary Give mentioned users comment access
|
|
326
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
grantMentionAccess(mentionAccessRequest, options) {
|
|
331
|
+
return localVarFp.grantMentionAccess(mentionAccessRequest, options).then((request) => request(axios, basePath));
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Lists the mentioned users who cannot comment on the documents yet and what giving them access takes: a COMMENTER share (or READER → COMMENTER) on a document the caller manages, a share request to the owner on the others. Changes nothing.
|
|
335
|
+
* @summary Preview comment access for mentioned users
|
|
336
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
previewMentionAccess(mentionAccessRequest, options) {
|
|
341
|
+
return localVarFp.previewMentionAccess(mentionAccessRequest, options).then((request) => request(axios, basePath));
|
|
342
|
+
},
|
|
223
343
|
/**
|
|
224
344
|
* Update an existing comment. Only the comment creator can update their comment.
|
|
225
345
|
* @summary Update a comment
|
|
@@ -257,6 +377,26 @@ export class CommentsApi extends BaseAPI {
|
|
|
257
377
|
deleteComment(id, options) {
|
|
258
378
|
return CommentsApiFp(this.configuration).deleteComment(id, options).then((request) => request(this.axios, this.basePath));
|
|
259
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* Does what the preview lists: silent COMMENTER shares on the documents the caller manages, share requests to the owner on the others. Call it before saving the comment so the mentioned users are notified.
|
|
382
|
+
* @summary Give mentioned users comment access
|
|
383
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
grantMentionAccess(mentionAccessRequest, options) {
|
|
388
|
+
return CommentsApiFp(this.configuration).grantMentionAccess(mentionAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Lists the mentioned users who cannot comment on the documents yet and what giving them access takes: a COMMENTER share (or READER → COMMENTER) on a document the caller manages, a share request to the owner on the others. Changes nothing.
|
|
392
|
+
* @summary Preview comment access for mentioned users
|
|
393
|
+
* @param {MentionAccessRequest} mentionAccessRequest
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
previewMentionAccess(mentionAccessRequest, options) {
|
|
398
|
+
return CommentsApiFp(this.configuration).previewMentionAccess(mentionAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
399
|
+
}
|
|
260
400
|
/**
|
|
261
401
|
* Update an existing comment. Only the comment creator can update their comment.
|
|
262
402
|
* @summary Update a comment
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './api/aimaintenance-api';
|
|
|
18
18
|
export * from './api/aisettings-api';
|
|
19
19
|
export * from './api/aitaxonomy-api';
|
|
20
20
|
export * from './api/aiteam-inboxes-api';
|
|
21
|
+
export * from './api/access-requests-api';
|
|
21
22
|
export * from './api/ai-analytics-admin-controller-api';
|
|
22
23
|
export * from './api/ai-archiving-admin-controller-api';
|
|
23
24
|
export * from './api/ai-cloud-usage-admin-controller-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from './api/aimaintenance-api';
|
|
|
20
20
|
export * from './api/aisettings-api';
|
|
21
21
|
export * from './api/aitaxonomy-api';
|
|
22
22
|
export * from './api/aiteam-inboxes-api';
|
|
23
|
+
export * from './api/access-requests-api';
|
|
23
24
|
export * from './api/ai-analytics-admin-controller-api';
|
|
24
25
|
export * from './api/ai-archiving-admin-controller-api';
|
|
25
26
|
export * from './api/ai-cloud-usage-admin-controller-api';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface AccessRequestInput {
|
|
13
|
+
/**
|
|
14
|
+
* The document (file or folder) the caller asks access to
|
|
15
|
+
*/
|
|
16
|
+
'documentId': string;
|
|
17
|
+
/**
|
|
18
|
+
* The access asked for; READER when absent
|
|
19
|
+
*/
|
|
20
|
+
'shareMode'?: AccessRequestInputShareModeEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Optional note to the owner
|
|
23
|
+
*/
|
|
24
|
+
'message'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const AccessRequestInputShareModeEnum: {
|
|
27
|
+
readonly Reader: "READER";
|
|
28
|
+
readonly Commenter: "COMMENTER";
|
|
29
|
+
readonly Editor: "EDITOR";
|
|
30
|
+
};
|
|
31
|
+
export type AccessRequestInputShareModeEnum = typeof AccessRequestInputShareModeEnum[keyof typeof AccessRequestInputShareModeEnum];
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export const AccessRequestInputShareModeEnum = {
|
|
15
|
+
Reader: 'READER',
|
|
16
|
+
Commenter: 'COMMENTER',
|
|
17
|
+
Editor: 'EDITOR',
|
|
18
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface AccessRequestStatus {
|
|
13
|
+
'documentId'?: string;
|
|
14
|
+
'state'?: AccessRequestStatusStateEnum;
|
|
15
|
+
/**
|
|
16
|
+
* PENDING: the access asked for
|
|
17
|
+
*/
|
|
18
|
+
'requestedMode'?: AccessRequestStatusRequestedModeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* PENDING: when the owner was last asked
|
|
21
|
+
*/
|
|
22
|
+
'requestedAt'?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const AccessRequestStatusStateEnum: {
|
|
25
|
+
readonly HasAccess: "HAS_ACCESS";
|
|
26
|
+
readonly NoAccess: "NO_ACCESS";
|
|
27
|
+
readonly Pending: "PENDING";
|
|
28
|
+
readonly OwnerCannotShare: "OWNER_CANNOT_SHARE";
|
|
29
|
+
};
|
|
30
|
+
export type AccessRequestStatusStateEnum = typeof AccessRequestStatusStateEnum[keyof typeof AccessRequestStatusStateEnum];
|
|
31
|
+
export declare const AccessRequestStatusRequestedModeEnum: {
|
|
32
|
+
readonly Reader: "READER";
|
|
33
|
+
readonly Commenter: "COMMENTER";
|
|
34
|
+
readonly Editor: "EDITOR";
|
|
35
|
+
};
|
|
36
|
+
export type AccessRequestStatusRequestedModeEnum = typeof AccessRequestStatusRequestedModeEnum[keyof typeof AccessRequestStatusRequestedModeEnum];
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export const AccessRequestStatusStateEnum = {
|
|
15
|
+
HasAccess: 'HAS_ACCESS',
|
|
16
|
+
NoAccess: 'NO_ACCESS',
|
|
17
|
+
Pending: 'PENDING',
|
|
18
|
+
OwnerCannotShare: 'OWNER_CANNOT_SHARE',
|
|
19
|
+
};
|
|
20
|
+
export const AccessRequestStatusRequestedModeEnum = {
|
|
21
|
+
Reader: 'READER',
|
|
22
|
+
Commenter: 'COMMENTER',
|
|
23
|
+
Editor: 'EDITOR',
|
|
24
|
+
};
|
|
@@ -69,6 +69,7 @@ export declare const EnrichedAuditLogActionEnum: {
|
|
|
69
69
|
readonly ShareDocumentCreate: "SHARE_DOCUMENT_CREATE";
|
|
70
70
|
readonly ShareDocumentUpdate: "SHARE_DOCUMENT_UPDATE";
|
|
71
71
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
72
|
+
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
72
73
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
73
74
|
readonly TeamCreated: "TEAM_CREATED";
|
|
74
75
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
@@ -55,6 +55,7 @@ export const EnrichedAuditLogActionEnum = {
|
|
|
55
55
|
ShareDocumentCreate: 'SHARE_DOCUMENT_CREATE',
|
|
56
56
|
ShareDocumentUpdate: 'SHARE_DOCUMENT_UPDATE',
|
|
57
57
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
58
|
+
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
58
59
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
59
60
|
TeamCreated: 'TEAM_CREATED',
|
|
60
61
|
TeamUpdated: 'TEAM_UPDATED',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './access-request-input';
|
|
2
|
+
export * from './access-request-status';
|
|
1
3
|
export * from './add-team-owner-request';
|
|
2
4
|
export * from './ai-analytics-view';
|
|
3
5
|
export * from './ai-chat-conversation';
|
|
@@ -109,6 +111,9 @@ export * from './list-ai-models-request';
|
|
|
109
111
|
export * from './mcp-agent-token-config';
|
|
110
112
|
export * from './mcp-agent-token-info';
|
|
111
113
|
export * from './mcp-agent-token-response';
|
|
114
|
+
export * from './mention-access-item';
|
|
115
|
+
export * from './mention-access-preview';
|
|
116
|
+
export * from './mention-access-request';
|
|
112
117
|
export * from './merge-request';
|
|
113
118
|
export * from './merge-source';
|
|
114
119
|
export * from './metadata-key-suggestion';
|
|
@@ -173,6 +178,7 @@ export * from './search-by-metadata-request';
|
|
|
173
178
|
export * from './search-metadata-request';
|
|
174
179
|
export * from './setting-dto';
|
|
175
180
|
export * from './settings';
|
|
181
|
+
export * from './share-expiry-request';
|
|
176
182
|
export * from './share-inheritance';
|
|
177
183
|
export * from './share-inheritance-request';
|
|
178
184
|
export * from './share-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './access-request-input';
|
|
2
|
+
export * from './access-request-status';
|
|
1
3
|
export * from './add-team-owner-request';
|
|
2
4
|
export * from './ai-analytics-view';
|
|
3
5
|
export * from './ai-chat-conversation';
|
|
@@ -109,6 +111,9 @@ export * from './list-ai-models-request';
|
|
|
109
111
|
export * from './mcp-agent-token-config';
|
|
110
112
|
export * from './mcp-agent-token-info';
|
|
111
113
|
export * from './mcp-agent-token-response';
|
|
114
|
+
export * from './mention-access-item';
|
|
115
|
+
export * from './mention-access-preview';
|
|
116
|
+
export * from './mention-access-request';
|
|
112
117
|
export * from './merge-request';
|
|
113
118
|
export * from './merge-source';
|
|
114
119
|
export * from './metadata-key-suggestion';
|
|
@@ -173,6 +178,7 @@ export * from './search-by-metadata-request';
|
|
|
173
178
|
export * from './search-metadata-request';
|
|
174
179
|
export * from './setting-dto';
|
|
175
180
|
export * from './settings';
|
|
181
|
+
export * from './share-expiry-request';
|
|
176
182
|
export * from './share-inheritance';
|
|
177
183
|
export * from './share-inheritance-request';
|
|
178
184
|
export * from './share-request';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface MentionAccessItem {
|
|
13
|
+
'docId'?: string;
|
|
14
|
+
'docName'?: string;
|
|
15
|
+
'userId'?: string;
|
|
16
|
+
'userName'?: string;
|
|
17
|
+
'userEmail'?: string;
|
|
18
|
+
'canRead'?: boolean;
|
|
19
|
+
'action'?: MentionAccessItemActionEnum;
|
|
20
|
+
}
|
|
21
|
+
export declare const MentionAccessItemActionEnum: {
|
|
22
|
+
readonly Share: "SHARE";
|
|
23
|
+
readonly Upgrade: "UPGRADE";
|
|
24
|
+
readonly RequestShare: "REQUEST_SHARE";
|
|
25
|
+
readonly RequestUpgrade: "REQUEST_UPGRADE";
|
|
26
|
+
readonly NotLicensed: "NOT_LICENSED";
|
|
27
|
+
readonly NotAllowed: "NOT_ALLOWED";
|
|
28
|
+
};
|
|
29
|
+
export type MentionAccessItemActionEnum = typeof MentionAccessItemActionEnum[keyof typeof MentionAccessItemActionEnum];
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export const MentionAccessItemActionEnum = {
|
|
15
|
+
Share: 'SHARE',
|
|
16
|
+
Upgrade: 'UPGRADE',
|
|
17
|
+
RequestShare: 'REQUEST_SHARE',
|
|
18
|
+
RequestUpgrade: 'REQUEST_UPGRADE',
|
|
19
|
+
NotLicensed: 'NOT_LICENSED',
|
|
20
|
+
NotAllowed: 'NOT_ALLOWED',
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MentionAccessItem } from './mention-access-item';
|
|
13
|
+
export interface MentionAccessPreview {
|
|
14
|
+
'items'?: Array<MentionAccessItem>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface MentionAccessRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Document IDs the comment is saved on (at most 200)
|
|
15
|
+
*/
|
|
16
|
+
'docIds': Set<string>;
|
|
17
|
+
/**
|
|
18
|
+
* User IDs mentioned in the comment (at most 100)
|
|
19
|
+
*/
|
|
20
|
+
'mentionedUserIds': Set<string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -45,5 +45,8 @@ export declare const NotificationDTOTypeEnum: {
|
|
|
45
45
|
readonly TeamInvitationDeclined: "TEAM_INVITATION_DECLINED";
|
|
46
46
|
readonly TeamMemberAdded: "TEAM_MEMBER_ADDED";
|
|
47
47
|
readonly TeamMemberRemoved: "TEAM_MEMBER_REMOVED";
|
|
48
|
+
readonly AccessRequestDeclined: "ACCESS_REQUEST_DECLINED";
|
|
49
|
+
readonly ShareExpiring: "SHARE_EXPIRING";
|
|
50
|
+
readonly ShareExpired: "SHARE_EXPIRED";
|
|
48
51
|
};
|
|
49
52
|
export type NotificationDTOTypeEnum = typeof NotificationDTOTypeEnum[keyof typeof NotificationDTOTypeEnum];
|
|
@@ -36,4 +36,7 @@ export const NotificationDTOTypeEnum = {
|
|
|
36
36
|
TeamInvitationDeclined: 'TEAM_INVITATION_DECLINED',
|
|
37
37
|
TeamMemberAdded: 'TEAM_MEMBER_ADDED',
|
|
38
38
|
TeamMemberRemoved: 'TEAM_MEMBER_REMOVED',
|
|
39
|
+
AccessRequestDeclined: 'ACCESS_REQUEST_DECLINED',
|
|
40
|
+
ShareExpiring: 'SHARE_EXPIRING',
|
|
41
|
+
ShareExpired: 'SHARE_EXPIRED',
|
|
39
42
|
};
|
|
@@ -85,6 +85,7 @@ export declare const SearchByAuditLogRequestActionEnum: {
|
|
|
85
85
|
readonly ShareDocumentCreate: "SHARE_DOCUMENT_CREATE";
|
|
86
86
|
readonly ShareDocumentUpdate: "SHARE_DOCUMENT_UPDATE";
|
|
87
87
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
88
|
+
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
88
89
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
89
90
|
readonly TeamCreated: "TEAM_CREATED";
|
|
90
91
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
@@ -59,6 +59,7 @@ export const SearchByAuditLogRequestActionEnum = {
|
|
|
59
59
|
ShareDocumentCreate: 'SHARE_DOCUMENT_CREATE',
|
|
60
60
|
ShareDocumentUpdate: 'SHARE_DOCUMENT_UPDATE',
|
|
61
61
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
62
|
+
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
62
63
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
63
64
|
TeamCreated: 'TEAM_CREATED',
|
|
64
65
|
TeamUpdated: 'TEAM_UPDATED',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ShareExpiryRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Shared documents
|
|
15
|
+
*/
|
|
16
|
+
'documentIds': Set<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Recipients (users or teams)
|
|
19
|
+
*/
|
|
20
|
+
'userIds': Set<string>;
|
|
21
|
+
/**
|
|
22
|
+
* New end of access (ISO-8601 instant), null = no end. A date in the past is refused (400).
|
|
23
|
+
*/
|
|
24
|
+
'expiresAt'?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -30,6 +30,10 @@ export interface ShareRequest {
|
|
|
30
30
|
* false = create the shares silently: no invitation e-mail and no bell notification to the recipients (bulk imports — a migration re-creating a source system\'s permissions must not mail thousands of invitations). Absent or true = notify. Share requests addressed to a document\'s owner are always notified.
|
|
31
31
|
*/
|
|
32
32
|
'notify'?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Optional end of access (ISO-8601 instant): on that date the recipients lose access and the owner is told. Absent = no end. A date in the past is refused (400). On a document the caller does not own, it travels with the share request and applies once the owner accepts.
|
|
35
|
+
*/
|
|
36
|
+
'expiresAt'?: string;
|
|
33
37
|
}
|
|
34
38
|
export declare const ShareRequestShareModeEnum: {
|
|
35
39
|
readonly Reader: "READER";
|
|
@@ -22,6 +22,9 @@ export declare const ShareResultErrorCodeEnum: {
|
|
|
22
22
|
readonly ShareErrNotAlreadyShared: "SHARE_ERR_NOT_ALREADY_SHARED";
|
|
23
23
|
readonly ShareErrOwner: "SHARE_ERR_OWNER";
|
|
24
24
|
readonly ShareErrNotScanned: "SHARE_ERR_NOT_SCANNED";
|
|
25
|
+
readonly ShareErrDocumentNotFound: "SHARE_ERR_DOCUMENT_NOT_FOUND";
|
|
26
|
+
readonly ShareErrInheritedShare: "SHARE_ERR_INHERITED_SHARE";
|
|
27
|
+
readonly ShareErrOwnerOnly: "SHARE_ERR_OWNER_ONLY";
|
|
25
28
|
readonly ShareErrRecipientNotLicensedPolicy: "SHARE_ERR_RECIPIENT_NOT_LICENSED_POLICY";
|
|
26
29
|
readonly ShareErrRecipientDomainPolicy: "SHARE_ERR_RECIPIENT_DOMAIN_POLICY";
|
|
27
30
|
readonly ShareErrTeamHasExternalMember: "SHARE_ERR_TEAM_HAS_EXTERNAL_MEMBER";
|
|
@@ -19,6 +19,9 @@ export const ShareResultErrorCodeEnum = {
|
|
|
19
19
|
ShareErrNotAlreadyShared: 'SHARE_ERR_NOT_ALREADY_SHARED',
|
|
20
20
|
ShareErrOwner: 'SHARE_ERR_OWNER',
|
|
21
21
|
ShareErrNotScanned: 'SHARE_ERR_NOT_SCANNED',
|
|
22
|
+
ShareErrDocumentNotFound: 'SHARE_ERR_DOCUMENT_NOT_FOUND',
|
|
23
|
+
ShareErrInheritedShare: 'SHARE_ERR_INHERITED_SHARE',
|
|
24
|
+
ShareErrOwnerOnly: 'SHARE_ERR_OWNER_ONLY',
|
|
22
25
|
ShareErrRecipientNotLicensedPolicy: 'SHARE_ERR_RECIPIENT_NOT_LICENSED_POLICY',
|
|
23
26
|
ShareErrRecipientDomainPolicy: 'SHARE_ERR_RECIPIENT_DOMAIN_POLICY',
|
|
24
27
|
ShareErrTeamHasExternalMember: 'SHARE_ERR_TEAM_HAS_EXTERNAL_MEMBER',
|
|
@@ -31,6 +31,9 @@ export declare const ViolationReasonEnum: {
|
|
|
31
31
|
readonly ShareErrNotAlreadyShared: "SHARE_ERR_NOT_ALREADY_SHARED";
|
|
32
32
|
readonly ShareErrOwner: "SHARE_ERR_OWNER";
|
|
33
33
|
readonly ShareErrNotScanned: "SHARE_ERR_NOT_SCANNED";
|
|
34
|
+
readonly ShareErrDocumentNotFound: "SHARE_ERR_DOCUMENT_NOT_FOUND";
|
|
35
|
+
readonly ShareErrInheritedShare: "SHARE_ERR_INHERITED_SHARE";
|
|
36
|
+
readonly ShareErrOwnerOnly: "SHARE_ERR_OWNER_ONLY";
|
|
34
37
|
readonly ShareErrRecipientNotLicensedPolicy: "SHARE_ERR_RECIPIENT_NOT_LICENSED_POLICY";
|
|
35
38
|
readonly ShareErrRecipientDomainPolicy: "SHARE_ERR_RECIPIENT_DOMAIN_POLICY";
|
|
36
39
|
readonly ShareErrTeamHasExternalMember: "SHARE_ERR_TEAM_HAS_EXTERNAL_MEMBER";
|
|
@@ -19,6 +19,9 @@ export const ViolationReasonEnum = {
|
|
|
19
19
|
ShareErrNotAlreadyShared: 'SHARE_ERR_NOT_ALREADY_SHARED',
|
|
20
20
|
ShareErrOwner: 'SHARE_ERR_OWNER',
|
|
21
21
|
ShareErrNotScanned: 'SHARE_ERR_NOT_SCANNED',
|
|
22
|
+
ShareErrDocumentNotFound: 'SHARE_ERR_DOCUMENT_NOT_FOUND',
|
|
23
|
+
ShareErrInheritedShare: 'SHARE_ERR_INHERITED_SHARE',
|
|
24
|
+
ShareErrOwnerOnly: 'SHARE_ERR_OWNER_ONLY',
|
|
22
25
|
ShareErrRecipientNotLicensedPolicy: 'SHARE_ERR_RECIPIENT_NOT_LICENSED_POLICY',
|
|
23
26
|
ShareErrRecipientDomainPolicy: 'SHARE_ERR_RECIPIENT_DOMAIN_POLICY',
|
|
24
27
|
ShareErrTeamHasExternalMember: 'SHARE_ERR_TEAM_HAS_EXTERNAL_MEMBER',
|