@openfilz-sdk/typescript-ee 1.14.4 → 1.14.5
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 +32 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +35 -2
- package/api/collaboration-controller-api.ts +8 -8
- package/api/directory-administration-api.ts +200 -0
- package/api/team-administration-api.ts +221 -4
- package/api/teams-api.ts +1090 -0
- package/api/user-privacy-api.ts +4 -4
- package/api.ts +2 -0
- package/dist/api/collaboration-controller-api.d.ts +8 -8
- package/dist/api/collaboration-controller-api.js +8 -8
- package/dist/api/directory-administration-api.d.ts +99 -0
- package/dist/api/directory-administration-api.js +201 -0
- package/dist/api/team-administration-api.d.ts +101 -4
- package/dist/api/team-administration-api.js +210 -4
- package/dist/api/teams-api.d.ts +499 -0
- package/dist/api/teams-api.js +1039 -0
- package/dist/api/user-privacy-api.d.ts +4 -4
- package/dist/api/user-privacy-api.js +4 -4
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/collaboration-controller-api.d.ts +8 -8
- package/dist/esm/api/collaboration-controller-api.js +8 -8
- package/dist/esm/api/directory-administration-api.d.ts +99 -0
- package/dist/esm/api/directory-administration-api.js +194 -0
- package/dist/esm/api/team-administration-api.d.ts +101 -4
- package/dist/esm/api/team-administration-api.js +210 -4
- package/dist/esm/api/teams-api.d.ts +499 -0
- package/dist/esm/api/teams-api.js +1032 -0
- package/dist/esm/api/user-privacy-api.d.ts +4 -4
- package/dist/esm/api/user-privacy-api.js +4 -4
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/add-team-owner-request.d.ts +14 -0
- package/dist/esm/models/add-team-owner-request.js +14 -0
- package/dist/esm/models/create-collaborative-team-request.d.ts +14 -0
- package/dist/esm/models/create-collaborative-team-request.js +14 -0
- package/dist/esm/models/directory-hidden-request.d.ts +14 -0
- package/dist/esm/models/directory-hidden-request.js +14 -0
- package/dist/esm/models/enriched-audit-log.d.ts +7 -0
- package/dist/esm/models/enriched-audit-log.js +7 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/models/invite-to-team-request.d.ts +14 -0
- package/dist/esm/models/invite-to-team-request.js +14 -0
- package/dist/esm/models/my-team.d.ts +23 -0
- package/dist/esm/models/my-team.js +17 -0
- package/dist/esm/models/notification-dto.d.ts +5 -0
- package/dist/esm/models/notification-dto.js +5 -0
- package/dist/esm/models/rename-team-request.d.ts +14 -0
- package/dist/esm/models/rename-team-request.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
- package/dist/esm/models/search-by-audit-log-request.js +7 -0
- package/dist/esm/models/team-capabilities.d.ts +18 -0
- package/dist/esm/models/team-capabilities.js +14 -0
- package/dist/esm/models/team-details.d.ts +28 -0
- package/dist/esm/models/team-details.js +17 -0
- package/dist/esm/models/team-invitation-view.d.ts +20 -0
- package/dist/esm/models/team-invitation-view.js +14 -0
- package/dist/esm/models/team-invite-result.d.ts +23 -0
- package/dist/esm/models/team-invite-result.js +20 -0
- package/dist/esm/models/team-kind-view.d.ts +23 -0
- package/dist/esm/models/team-kind-view.js +17 -0
- package/dist/esm/models/team-owner-view.d.ts +16 -0
- package/dist/esm/models/team-owner-view.js +14 -0
- package/dist/esm/models/team-pending-invitee.d.ts +19 -0
- package/dist/esm/models/team-pending-invitee.js +14 -0
- package/dist/esm/models/team-person.d.ts +17 -0
- package/dist/esm/models/team-person.js +14 -0
- package/dist/esm/models/update-user-privacy-request.d.ts +3 -1
- package/dist/esm/models/user-privacy-dto.d.ts +8 -0
- package/dist/esm/models/user-privacy-dto.js +4 -1
- package/dist/models/add-team-owner-request.d.ts +14 -0
- package/dist/models/add-team-owner-request.js +15 -0
- package/dist/models/create-collaborative-team-request.d.ts +14 -0
- package/dist/models/create-collaborative-team-request.js +15 -0
- package/dist/models/directory-hidden-request.d.ts +14 -0
- package/dist/models/directory-hidden-request.js +15 -0
- package/dist/models/enriched-audit-log.d.ts +7 -0
- package/dist/models/enriched-audit-log.js +7 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/models/invite-to-team-request.d.ts +14 -0
- package/dist/models/invite-to-team-request.js +15 -0
- package/dist/models/my-team.d.ts +23 -0
- package/dist/models/my-team.js +20 -0
- package/dist/models/notification-dto.d.ts +5 -0
- package/dist/models/notification-dto.js +5 -0
- package/dist/models/rename-team-request.d.ts +14 -0
- package/dist/models/rename-team-request.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +7 -0
- package/dist/models/search-by-audit-log-request.js +7 -0
- package/dist/models/team-capabilities.d.ts +18 -0
- package/dist/models/team-capabilities.js +15 -0
- package/dist/models/team-details.d.ts +28 -0
- package/dist/models/team-details.js +20 -0
- package/dist/models/team-invitation-view.d.ts +20 -0
- package/dist/models/team-invitation-view.js +15 -0
- package/dist/models/team-invite-result.d.ts +23 -0
- package/dist/models/team-invite-result.js +23 -0
- package/dist/models/team-kind-view.d.ts +23 -0
- package/dist/models/team-kind-view.js +20 -0
- package/dist/models/team-owner-view.d.ts +16 -0
- package/dist/models/team-owner-view.js +15 -0
- package/dist/models/team-pending-invitee.d.ts +19 -0
- package/dist/models/team-pending-invitee.js +15 -0
- package/dist/models/team-person.d.ts +17 -0
- package/dist/models/team-person.js +15 -0
- package/dist/models/update-user-privacy-request.d.ts +3 -1
- package/dist/models/user-privacy-dto.d.ts +8 -0
- package/dist/models/user-privacy-dto.js +5 -0
- package/docs/AddTeamOwnerRequest.md +20 -0
- package/docs/CollaborationControllerApi.md +2 -2
- package/docs/CreateCollaborativeTeamRequest.md +20 -0
- package/docs/DirectoryAdministrationApi.md +107 -0
- package/docs/DirectoryHiddenRequest.md +20 -0
- package/docs/InviteToTeamRequest.md +20 -0
- package/docs/MyTeam.md +28 -0
- package/docs/RenameTeamRequest.md +20 -0
- package/docs/TeamAdministrationApi.md +153 -1
- package/docs/TeamCapabilities.md +28 -0
- package/docs/TeamDetails.md +34 -0
- package/docs/TeamInvitationView.md +32 -0
- package/docs/TeamInviteResult.md +22 -0
- package/docs/TeamKindView.md +26 -0
- package/docs/TeamOwnerView.md +24 -0
- package/docs/TeamPendingInvitee.md +30 -0
- package/docs/TeamPerson.md +26 -0
- package/docs/TeamsApi.md +724 -0
- package/docs/UpdateUserPrivacyRequest.md +5 -1
- package/docs/UserPrivacyApi.md +1 -1
- package/docs/UserPrivacyDTO.md +6 -0
- package/models/add-team-owner-request.ts +20 -0
- package/models/create-collaborative-team-request.ts +20 -0
- package/models/directory-hidden-request.ts +20 -0
- package/models/enriched-audit-log.ts +7 -0
- package/models/index.ts +14 -0
- package/models/invite-to-team-request.ts +20 -0
- package/models/my-team.ts +32 -0
- package/models/notification-dto.ts +5 -0
- package/models/rename-team-request.ts +20 -0
- package/models/search-by-audit-log-request.ts +7 -0
- package/models/team-capabilities.ts +24 -0
- package/models/team-details.ts +41 -0
- package/models/team-invitation-view.ts +26 -0
- package/models/team-invite-result.ts +32 -0
- package/models/team-kind-view.ts +34 -0
- package/models/team-owner-view.ts +22 -0
- package/models/team-pending-invitee.ts +25 -0
- package/models/team-person.ts +23 -0
- package/models/update-user-privacy-request.ts +3 -1
- package/models/user-privacy-dto.ts +11 -0
- package/package.json +1 -1
|
@@ -21,13 +21,15 @@ import globalAxios from 'axios';
|
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { TeamKindView } from '../models';
|
|
24
26
|
/**
|
|
25
27
|
* TeamAdministrationApi - axios parameter creator
|
|
26
28
|
*/
|
|
27
29
|
export const TeamAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
30
|
return {
|
|
29
31
|
/**
|
|
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.
|
|
32
|
+
* 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. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
|
|
31
33
|
* @summary Add members to a team
|
|
32
34
|
* @param {string} teamId
|
|
33
35
|
* @param {Array<string>} requestBody
|
|
@@ -63,6 +65,119 @@ export const TeamAdministrationApiAxiosParamCreator = function (configuration?:
|
|
|
63
65
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64
66
|
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
65
67
|
|
|
68
|
+
return {
|
|
69
|
+
url: toPathString(localVarUrlObj),
|
|
70
|
+
options: localVarRequestOptions,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
75
|
+
* @summary Turn a collaborative team into an organisation team
|
|
76
|
+
* @param {string} teamId
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
adminPromoteTeam: async (teamId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
81
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
82
|
+
assertParamExists('adminPromoteTeam', 'teamId', teamId)
|
|
83
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/promote`
|
|
84
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
87
|
+
let baseOptions;
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
93
|
+
const localVarHeaderParameter = {} as any;
|
|
94
|
+
const localVarQueryParameter = {} as any;
|
|
95
|
+
|
|
96
|
+
// authentication keycloak_auth required
|
|
97
|
+
// http bearer authentication required
|
|
98
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
url: toPathString(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
112
|
+
* @summary Remove members from a team
|
|
113
|
+
* @param {string} teamId
|
|
114
|
+
* @param {Array<string>} requestBody
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
adminRemoveTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
119
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
120
|
+
assertParamExists('adminRemoveTeamMembers', 'teamId', teamId)
|
|
121
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
122
|
+
assertParamExists('adminRemoveTeamMembers', 'requestBody', requestBody)
|
|
123
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/members`
|
|
124
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
|
+
let baseOptions;
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
133
|
+
const localVarHeaderParameter = {} as any;
|
|
134
|
+
const localVarQueryParameter = {} as any;
|
|
135
|
+
|
|
136
|
+
// authentication keycloak_auth required
|
|
137
|
+
// http bearer authentication required
|
|
138
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
139
|
+
|
|
140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
url: toPathString(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
154
|
+
* @summary Kind and owners of every team
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
adminTeamKinds: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
|
+
const localVarPath = `/api/v1/admin/teams/kinds`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
168
|
+
const localVarHeaderParameter = {} as any;
|
|
169
|
+
const localVarQueryParameter = {} as any;
|
|
170
|
+
|
|
171
|
+
// authentication keycloak_auth required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
174
|
+
|
|
175
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
176
|
+
|
|
177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
180
|
+
|
|
66
181
|
return {
|
|
67
182
|
url: toPathString(localVarUrlObj),
|
|
68
183
|
options: localVarRequestOptions,
|
|
@@ -78,7 +193,7 @@ export const TeamAdministrationApiFp = function(configuration?: Configuration) {
|
|
|
78
193
|
const localVarAxiosParamCreator = TeamAdministrationApiAxiosParamCreator(configuration)
|
|
79
194
|
return {
|
|
80
195
|
/**
|
|
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.
|
|
196
|
+
* 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. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
|
|
82
197
|
* @summary Add members to a team
|
|
83
198
|
* @param {string} teamId
|
|
84
199
|
* @param {Array<string>} requestBody
|
|
@@ -91,6 +206,45 @@ export const TeamAdministrationApiFp = function(configuration?: Configuration) {
|
|
|
91
206
|
const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminAddTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
92
207
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93
208
|
},
|
|
209
|
+
/**
|
|
210
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
211
|
+
* @summary Turn a collaborative team into an organisation team
|
|
212
|
+
* @param {string} teamId
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
async adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPromoteTeam(teamId, options);
|
|
218
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
219
|
+
const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminPromoteTeam']?.[localVarOperationServerIndex]?.url;
|
|
220
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
224
|
+
* @summary Remove members from a team
|
|
225
|
+
* @param {string} teamId
|
|
226
|
+
* @param {Array<string>} requestBody
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
async adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRemoveTeamMembers(teamId, requestBody, options);
|
|
232
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
233
|
+
const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminRemoveTeamMembers']?.[localVarOperationServerIndex]?.url;
|
|
234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
238
|
+
* @summary Kind and owners of every team
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
async adminTeamKinds(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TeamKindView>>> {
|
|
243
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminTeamKinds(options);
|
|
244
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
245
|
+
const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminTeamKinds']?.[localVarOperationServerIndex]?.url;
|
|
246
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
247
|
+
},
|
|
94
248
|
}
|
|
95
249
|
};
|
|
96
250
|
|
|
@@ -101,7 +255,7 @@ export const TeamAdministrationApiFactory = function (configuration?: Configurat
|
|
|
101
255
|
const localVarFp = TeamAdministrationApiFp(configuration)
|
|
102
256
|
return {
|
|
103
257
|
/**
|
|
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.
|
|
258
|
+
* 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. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
|
|
105
259
|
* @summary Add members to a team
|
|
106
260
|
* @param {string} teamId
|
|
107
261
|
* @param {Array<string>} requestBody
|
|
@@ -111,6 +265,36 @@ export const TeamAdministrationApiFactory = function (configuration?: Configurat
|
|
|
111
265
|
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
112
266
|
return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
113
267
|
},
|
|
268
|
+
/**
|
|
269
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
270
|
+
* @summary Turn a collaborative team into an organisation team
|
|
271
|
+
* @param {string} teamId
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
276
|
+
return localVarFp.adminPromoteTeam(teamId, options).then((request) => request(axios, basePath));
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
280
|
+
* @summary Remove members from a team
|
|
281
|
+
* @param {string} teamId
|
|
282
|
+
* @param {Array<string>} requestBody
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
287
|
+
return localVarFp.adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
291
|
+
* @summary Kind and owners of every team
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
adminTeamKinds(options?: RawAxiosRequestConfig): AxiosPromise<Array<TeamKindView>> {
|
|
296
|
+
return localVarFp.adminTeamKinds(options).then((request) => request(axios, basePath));
|
|
297
|
+
},
|
|
114
298
|
};
|
|
115
299
|
};
|
|
116
300
|
|
|
@@ -119,7 +303,7 @@ export const TeamAdministrationApiFactory = function (configuration?: Configurat
|
|
|
119
303
|
*/
|
|
120
304
|
export class TeamAdministrationApi extends BaseAPI {
|
|
121
305
|
/**
|
|
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.
|
|
306
|
+
* 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. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
|
|
123
307
|
* @summary Add members to a team
|
|
124
308
|
* @param {string} teamId
|
|
125
309
|
* @param {Array<string>} requestBody
|
|
@@ -129,5 +313,38 @@ export class TeamAdministrationApi extends BaseAPI {
|
|
|
129
313
|
public adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
130
314
|
return TeamAdministrationApiFp(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
131
315
|
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
319
|
+
* @summary Turn a collaborative team into an organisation team
|
|
320
|
+
* @param {string} teamId
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
public adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig) {
|
|
325
|
+
return TeamAdministrationApiFp(this.configuration).adminPromoteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
330
|
+
* @summary Remove members from a team
|
|
331
|
+
* @param {string} teamId
|
|
332
|
+
* @param {Array<string>} requestBody
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
public adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
337
|
+
return TeamAdministrationApiFp(this.configuration).adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
342
|
+
* @summary Kind and owners of every team
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
public adminTeamKinds(options?: RawAxiosRequestConfig) {
|
|
347
|
+
return TeamAdministrationApiFp(this.configuration).adminTeamKinds(options).then((request) => request(this.axios, this.basePath));
|
|
348
|
+
}
|
|
132
349
|
}
|
|
133
350
|
|