@openfilz-sdk/typescript-ee 1.13.3 → 1.14.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.
- package/.openapi-generator/FILES +22 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +31 -2
- package/api/sharing-policy-api.ts +1471 -0
- package/api/team-administration-api.ts +133 -0
- package/api.ts +2 -0
- package/dist/api/sharing-policy-api.d.ts +662 -0
- package/dist/api/sharing-policy-api.js +1399 -0
- package/dist/api/team-administration-api.d.ts +70 -0
- package/dist/api/team-administration-api.js +139 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/sharing-policy-api.d.ts +662 -0
- package/dist/esm/api/sharing-policy-api.js +1392 -0
- package/dist/esm/api/team-administration-api.d.ts +70 -0
- package/dist/esm/api/team-administration-api.js +132 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/effective-policy.d.ts +31 -0
- package/dist/esm/models/effective-policy.js +24 -0
- package/dist/esm/models/enriched-audit-log.d.ts +2 -0
- package/dist/esm/models/enriched-audit-log.js +2 -0
- package/dist/esm/models/global-policy.d.ts +26 -0
- package/dist/esm/models/global-policy.js +19 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/item.d.ts +1 -7
- package/dist/esm/models/my-policy.d.ts +30 -0
- package/dist/esm/models/my-policy.js +24 -0
- package/dist/esm/models/notification-dto.d.ts +1 -0
- package/dist/esm/models/notification-dto.js +1 -0
- package/dist/esm/models/override-request.d.ts +21 -0
- package/dist/esm/models/override-request.js +19 -0
- package/dist/esm/models/override-view.d.ts +27 -0
- package/dist/esm/models/override-view.js +19 -0
- package/dist/esm/models/revoke-request.d.ts +16 -0
- package/dist/esm/models/revoke-request.js +14 -0
- package/dist/esm/models/revoke-result.d.ts +18 -0
- package/dist/esm/models/revoke-result.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/esm/models/search-by-audit-log-request.js +2 -0
- package/dist/esm/models/share-result-error.d.ts +6 -0
- package/dist/esm/models/share-result-error.js +6 -0
- package/dist/esm/models/violation.d.ts +41 -0
- package/dist/esm/models/violation.js +28 -0
- package/dist/esm/models/violations-response.d.ts +17 -0
- package/dist/esm/models/violations-response.js +14 -0
- package/dist/models/effective-policy.d.ts +31 -0
- package/dist/models/effective-policy.js +27 -0
- package/dist/models/enriched-audit-log.d.ts +2 -0
- package/dist/models/enriched-audit-log.js +2 -0
- package/dist/models/global-policy.d.ts +26 -0
- package/dist/models/global-policy.js +22 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/item.d.ts +1 -7
- package/dist/models/my-policy.d.ts +30 -0
- package/dist/models/my-policy.js +27 -0
- package/dist/models/notification-dto.d.ts +1 -0
- package/dist/models/notification-dto.js +1 -0
- package/dist/models/override-request.d.ts +21 -0
- package/dist/models/override-request.js +22 -0
- package/dist/models/override-view.d.ts +27 -0
- package/dist/models/override-view.js +22 -0
- package/dist/models/revoke-request.d.ts +16 -0
- package/dist/models/revoke-request.js +15 -0
- package/dist/models/revoke-result.d.ts +18 -0
- package/dist/models/revoke-result.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/models/search-by-audit-log-request.js +2 -0
- package/dist/models/share-result-error.d.ts +6 -0
- package/dist/models/share-result-error.js +6 -0
- package/dist/models/violation.d.ts +41 -0
- package/dist/models/violation.js +31 -0
- package/dist/models/violations-response.d.ts +17 -0
- package/dist/models/violations-response.js +15 -0
- package/docs/EffectivePolicy.md +28 -0
- package/docs/GlobalPolicy.md +30 -0
- package/docs/Item.md +2 -14
- package/docs/MyPolicy.md +26 -0
- package/docs/OverrideRequest.md +20 -0
- package/docs/OverrideView.md +32 -0
- package/docs/RevokeRequest.md +22 -0
- package/docs/RevokeResult.md +28 -0
- package/docs/SharingPolicyApi.md +988 -0
- package/docs/TeamAdministrationApi.md +62 -0
- package/docs/Violation.md +42 -0
- package/docs/ViolationsResponse.md +24 -0
- package/graphql/share.graphqls +2 -0
- package/models/effective-policy.ts +41 -0
- package/models/enriched-audit-log.ts +2 -0
- package/models/global-policy.ts +35 -0
- package/models/index.ts +9 -0
- package/models/item.ts +1 -7
- package/models/my-policy.ts +40 -0
- package/models/notification-dto.ts +1 -0
- package/models/override-request.ts +30 -0
- package/models/override-view.ts +36 -0
- package/models/revoke-request.ts +24 -0
- package/models/revoke-result.ts +24 -0
- package/models/search-by-audit-log-request.ts +2 -0
- package/models/share-result-error.ts +6 -0
- package/models/violation.ts +50 -0
- package/models/violations-response.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
/**
|
|
25
|
+
* TeamAdministrationApi - axios parameter creator
|
|
26
|
+
*/
|
|
27
|
+
export const TeamAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
31
|
+
* @summary Add members to a team
|
|
32
|
+
* @param {string} teamId
|
|
33
|
+
* @param {Array<string>} requestBody
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
adminAddTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
39
|
+
assertParamExists('adminAddTeamMembers', 'teamId', teamId)
|
|
40
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
41
|
+
assertParamExists('adminAddTeamMembers', 'requestBody', requestBody)
|
|
42
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/members`
|
|
43
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
if (configuration) {
|
|
48
|
+
baseOptions = configuration.baseOptions;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
52
|
+
const localVarHeaderParameter = {} as any;
|
|
53
|
+
const localVarQueryParameter = {} as any;
|
|
54
|
+
|
|
55
|
+
// authentication keycloak_auth required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58
|
+
|
|
59
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
60
|
+
|
|
61
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* TeamAdministrationApi - functional programming interface
|
|
76
|
+
*/
|
|
77
|
+
export const TeamAdministrationApiFp = function(configuration?: Configuration) {
|
|
78
|
+
const localVarAxiosParamCreator = TeamAdministrationApiAxiosParamCreator(configuration)
|
|
79
|
+
return {
|
|
80
|
+
/**
|
|
81
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
82
|
+
* @summary Add members to a team
|
|
83
|
+
* @param {string} teamId
|
|
84
|
+
* @param {Array<string>} requestBody
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
async adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
89
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminAddTeamMembers(teamId, requestBody, options);
|
|
90
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
91
|
+
const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminAddTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
92
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* TeamAdministrationApi - factory interface
|
|
99
|
+
*/
|
|
100
|
+
export const TeamAdministrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
101
|
+
const localVarFp = TeamAdministrationApiFp(configuration)
|
|
102
|
+
return {
|
|
103
|
+
/**
|
|
104
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
105
|
+
* @summary Add members to a team
|
|
106
|
+
* @param {string} teamId
|
|
107
|
+
* @param {Array<string>} requestBody
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
112
|
+
return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* TeamAdministrationApi - object-oriented interface
|
|
119
|
+
*/
|
|
120
|
+
export class TeamAdministrationApi extends BaseAPI {
|
|
121
|
+
/**
|
|
122
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
123
|
+
* @summary Add members to a team
|
|
124
|
+
* @param {string} teamId
|
|
125
|
+
* @param {Array<string>} requestBody
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
public adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
130
|
+
return TeamAdministrationApiFp(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
package/api.ts
CHANGED
|
@@ -60,8 +60,10 @@ export * from './api/scanner-proxy-api';
|
|
|
60
60
|
export * from './api/search-administration-api';
|
|
61
61
|
export * from './api/settings-api';
|
|
62
62
|
export * from './api/sharing-api';
|
|
63
|
+
export * from './api/sharing-policy-api';
|
|
63
64
|
export * from './api/smart-filing-api';
|
|
64
65
|
export * from './api/storage-encryption-administration-api';
|
|
66
|
+
export * from './api/team-administration-api';
|
|
65
67
|
export * from './api/tus-controller-api';
|
|
66
68
|
export * from './api/upload-token-controller-api';
|
|
67
69
|
export * from './api/user-privacy-api';
|