@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
|
@@ -35,7 +35,7 @@ const base_1 = require("../base");
|
|
|
35
35
|
const TeamAdministrationApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
* 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.
|
|
38
|
+
* 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).
|
|
39
39
|
* @summary Add members to a team
|
|
40
40
|
* @param {string} teamId
|
|
41
41
|
* @param {Array<string>} requestBody
|
|
@@ -71,6 +71,104 @@ const TeamAdministrationApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
options: localVarRequestOptions,
|
|
72
72
|
};
|
|
73
73
|
}),
|
|
74
|
+
/**
|
|
75
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
76
|
+
* @summary Turn a collaborative team into an organisation team
|
|
77
|
+
* @param {string} teamId
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
adminPromoteTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
|
|
82
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
83
|
+
(0, common_1.assertParamExists)('adminPromoteTeam', 'teamId', teamId);
|
|
84
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/promote`
|
|
85
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
93
|
+
const localVarHeaderParameter = {};
|
|
94
|
+
const localVarQueryParameter = {};
|
|
95
|
+
// authentication keycloak_auth required
|
|
96
|
+
// http bearer authentication required
|
|
97
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
98
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
99
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
|
+
return {
|
|
102
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
}),
|
|
106
|
+
/**
|
|
107
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
108
|
+
* @summary Remove members from a team
|
|
109
|
+
* @param {string} teamId
|
|
110
|
+
* @param {Array<string>} requestBody
|
|
111
|
+
* @param {*} [options] Override http request option.
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
*/
|
|
114
|
+
adminRemoveTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
|
|
115
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('adminRemoveTeamMembers', 'teamId', teamId);
|
|
117
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('adminRemoveTeamMembers', 'requestBody', requestBody);
|
|
119
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/members`
|
|
120
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
+
let baseOptions;
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
}
|
|
127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
128
|
+
const localVarHeaderParameter = {};
|
|
129
|
+
const localVarQueryParameter = {};
|
|
130
|
+
// authentication keycloak_auth required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
138
|
+
return {
|
|
139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
}),
|
|
143
|
+
/**
|
|
144
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
145
|
+
* @summary Kind and owners of every team
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
adminTeamKinds: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
150
|
+
const localVarPath = `/api/v1/admin/teams/kinds`;
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
}
|
|
157
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
158
|
+
const localVarHeaderParameter = {};
|
|
159
|
+
const localVarQueryParameter = {};
|
|
160
|
+
// authentication keycloak_auth required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
163
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
167
|
+
return {
|
|
168
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
}),
|
|
74
172
|
};
|
|
75
173
|
};
|
|
76
174
|
exports.TeamAdministrationApiAxiosParamCreator = TeamAdministrationApiAxiosParamCreator;
|
|
@@ -81,7 +179,7 @@ const TeamAdministrationApiFp = function (configuration) {
|
|
|
81
179
|
const localVarAxiosParamCreator = (0, exports.TeamAdministrationApiAxiosParamCreator)(configuration);
|
|
82
180
|
return {
|
|
83
181
|
/**
|
|
84
|
-
* 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.
|
|
182
|
+
* 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).
|
|
85
183
|
* @summary Add members to a team
|
|
86
184
|
* @param {string} teamId
|
|
87
185
|
* @param {Array<string>} requestBody
|
|
@@ -97,6 +195,54 @@ const TeamAdministrationApiFp = function (configuration) {
|
|
|
97
195
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
98
196
|
});
|
|
99
197
|
},
|
|
198
|
+
/**
|
|
199
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
200
|
+
* @summary Turn a collaborative team into an organisation team
|
|
201
|
+
* @param {string} teamId
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
adminPromoteTeam(teamId, options) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
var _a, _b, _c;
|
|
208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPromoteTeam(teamId, options);
|
|
209
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
210
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminPromoteTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
211
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
216
|
+
* @summary Remove members from a team
|
|
217
|
+
* @param {string} teamId
|
|
218
|
+
* @param {Array<string>} requestBody
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
var _a, _b, _c;
|
|
225
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRemoveTeamMembers(teamId, requestBody, options);
|
|
226
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
227
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminRemoveTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
228
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
/**
|
|
232
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
233
|
+
* @summary Kind and owners of every team
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
adminTeamKinds(options) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
var _a, _b, _c;
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTeamKinds(options);
|
|
241
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
242
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminTeamKinds']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
243
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
244
|
+
});
|
|
245
|
+
},
|
|
100
246
|
};
|
|
101
247
|
};
|
|
102
248
|
exports.TeamAdministrationApiFp = TeamAdministrationApiFp;
|
|
@@ -107,7 +253,7 @@ const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
|
|
|
107
253
|
const localVarFp = (0, exports.TeamAdministrationApiFp)(configuration);
|
|
108
254
|
return {
|
|
109
255
|
/**
|
|
110
|
-
* 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.
|
|
256
|
+
* 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).
|
|
111
257
|
* @summary Add members to a team
|
|
112
258
|
* @param {string} teamId
|
|
113
259
|
* @param {Array<string>} requestBody
|
|
@@ -117,6 +263,36 @@ const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
|
|
|
117
263
|
adminAddTeamMembers(teamId, requestBody, options) {
|
|
118
264
|
return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
119
265
|
},
|
|
266
|
+
/**
|
|
267
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
268
|
+
* @summary Turn a collaborative team into an organisation team
|
|
269
|
+
* @param {string} teamId
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
adminPromoteTeam(teamId, options) {
|
|
274
|
+
return localVarFp.adminPromoteTeam(teamId, options).then((request) => request(axios, basePath));
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
278
|
+
* @summary Remove members from a team
|
|
279
|
+
* @param {string} teamId
|
|
280
|
+
* @param {Array<string>} requestBody
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
285
|
+
return localVarFp.adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
286
|
+
},
|
|
287
|
+
/**
|
|
288
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
289
|
+
* @summary Kind and owners of every team
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
adminTeamKinds(options) {
|
|
294
|
+
return localVarFp.adminTeamKinds(options).then((request) => request(axios, basePath));
|
|
295
|
+
},
|
|
120
296
|
};
|
|
121
297
|
};
|
|
122
298
|
exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
|
|
@@ -125,7 +301,7 @@ exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
|
|
|
125
301
|
*/
|
|
126
302
|
class TeamAdministrationApi extends base_1.BaseAPI {
|
|
127
303
|
/**
|
|
128
|
-
* 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.
|
|
304
|
+
* 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).
|
|
129
305
|
* @summary Add members to a team
|
|
130
306
|
* @param {string} teamId
|
|
131
307
|
* @param {Array<string>} requestBody
|
|
@@ -135,5 +311,35 @@ class TeamAdministrationApi extends base_1.BaseAPI {
|
|
|
135
311
|
adminAddTeamMembers(teamId, requestBody, options) {
|
|
136
312
|
return (0, exports.TeamAdministrationApiFp)(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
137
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
316
|
+
* @summary Turn a collaborative team into an organisation team
|
|
317
|
+
* @param {string} teamId
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
adminPromoteTeam(teamId, options) {
|
|
322
|
+
return (0, exports.TeamAdministrationApiFp)(this.configuration).adminPromoteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
326
|
+
* @summary Remove members from a team
|
|
327
|
+
* @param {string} teamId
|
|
328
|
+
* @param {Array<string>} requestBody
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
333
|
+
return (0, exports.TeamAdministrationApiFp)(this.configuration).adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
337
|
+
* @summary Kind and owners of every team
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
adminTeamKinds(options) {
|
|
342
|
+
return (0, exports.TeamAdministrationApiFp)(this.configuration).adminTeamKinds(options).then((request) => request(this.axios, this.basePath));
|
|
343
|
+
}
|
|
138
344
|
}
|
|
139
345
|
exports.TeamAdministrationApi = TeamAdministrationApi;
|