@openfilz-sdk/typescript-ee 1.14.4 → 1.14.6
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 +36 -3
- package/api/collaboration-controller-api.ts +12 -12
- package/api/directory-administration-api.ts +200 -0
- package/api/notifications-api.ts +8 -8
- 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 +12 -12
- package/dist/api/collaboration-controller-api.js +12 -12
- package/dist/api/directory-administration-api.d.ts +99 -0
- package/dist/api/directory-administration-api.js +201 -0
- package/dist/api/notifications-api.d.ts +8 -8
- package/dist/api/notifications-api.js +8 -8
- 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 +12 -12
- package/dist/esm/api/collaboration-controller-api.js +12 -12
- 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/notifications-api.d.ts +8 -8
- package/dist/esm/api/notifications-api.js +8 -8
- 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 +3 -3
- 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/NotificationsApi.md +2 -2
- 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
|
@@ -32,8 +32,8 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @summary Get
|
|
35
|
+
* The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
|
|
36
|
+
* @summary Get notifications
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
@@ -187,8 +187,8 @@ export const NotificationsApiFp = function (configuration) {
|
|
|
187
187
|
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration);
|
|
188
188
|
return {
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @summary Get
|
|
190
|
+
* The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
|
|
191
|
+
* @summary Get notifications
|
|
192
192
|
* @param {*} [options] Override http request option.
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
*/
|
|
@@ -271,8 +271,8 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
|
|
|
271
271
|
const localVarFp = NotificationsApiFp(configuration);
|
|
272
272
|
return {
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
275
|
-
* @summary Get
|
|
274
|
+
* The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
|
|
275
|
+
* @summary Get notifications
|
|
276
276
|
* @param {*} [options] Override http request option.
|
|
277
277
|
* @throws {RequiredError}
|
|
278
278
|
*/
|
|
@@ -323,8 +323,8 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
|
|
|
323
323
|
*/
|
|
324
324
|
export class NotificationsApi extends BaseAPI {
|
|
325
325
|
/**
|
|
326
|
-
*
|
|
327
|
-
* @summary Get
|
|
326
|
+
* The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
|
|
327
|
+
* @summary Get notifications
|
|
328
328
|
* @param {*} [options] Override http request option.
|
|
329
329
|
* @throws {RequiredError}
|
|
330
330
|
*/
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { TeamKindView } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* TeamAdministrationApi - axios parameter creator
|
|
17
18
|
*/
|
|
18
19
|
export declare const TeamAdministrationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19
20
|
/**
|
|
20
|
-
* 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.
|
|
21
|
+
* 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).
|
|
21
22
|
* @summary Add members to a team
|
|
22
23
|
* @param {string} teamId
|
|
23
24
|
* @param {Array<string>} requestBody
|
|
@@ -25,13 +26,37 @@ export declare const TeamAdministrationApiAxiosParamCreator: (configuration?: Co
|
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
28
|
adminAddTeamMembers: (teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
31
|
+
* @summary Turn a collaborative team into an organisation team
|
|
32
|
+
* @param {string} teamId
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
adminPromoteTeam: (teamId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
38
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
39
|
+
* @summary Remove members from a team
|
|
40
|
+
* @param {string} teamId
|
|
41
|
+
* @param {Array<string>} requestBody
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
adminRemoveTeamMembers: (teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
+
/**
|
|
47
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
48
|
+
* @summary Kind and owners of every team
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
adminTeamKinds: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
53
|
};
|
|
29
54
|
/**
|
|
30
55
|
* TeamAdministrationApi - functional programming interface
|
|
31
56
|
*/
|
|
32
57
|
export declare const TeamAdministrationApiFp: (configuration?: Configuration) => {
|
|
33
58
|
/**
|
|
34
|
-
* 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.
|
|
59
|
+
* 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).
|
|
35
60
|
* @summary Add members to a team
|
|
36
61
|
* @param {string} teamId
|
|
37
62
|
* @param {Array<string>} requestBody
|
|
@@ -39,13 +64,37 @@ export declare const TeamAdministrationApiFp: (configuration?: Configuration) =>
|
|
|
39
64
|
* @throws {RequiredError}
|
|
40
65
|
*/
|
|
41
66
|
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
67
|
+
/**
|
|
68
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
69
|
+
* @summary Turn a collaborative team into an organisation team
|
|
70
|
+
* @param {string} teamId
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
75
|
+
/**
|
|
76
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
77
|
+
* @summary Remove members from a team
|
|
78
|
+
* @param {string} teamId
|
|
79
|
+
* @param {Array<string>} requestBody
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
84
|
+
/**
|
|
85
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
86
|
+
* @summary Kind and owners of every team
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
adminTeamKinds(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TeamKindView>>>;
|
|
42
91
|
};
|
|
43
92
|
/**
|
|
44
93
|
* TeamAdministrationApi - factory interface
|
|
45
94
|
*/
|
|
46
95
|
export declare const TeamAdministrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
96
|
/**
|
|
48
|
-
* 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.
|
|
97
|
+
* 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).
|
|
49
98
|
* @summary Add members to a team
|
|
50
99
|
* @param {string} teamId
|
|
51
100
|
* @param {Array<string>} requestBody
|
|
@@ -53,13 +102,37 @@ export declare const TeamAdministrationApiFactory: (configuration?: Configuratio
|
|
|
53
102
|
* @throws {RequiredError}
|
|
54
103
|
*/
|
|
55
104
|
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
107
|
+
* @summary Turn a collaborative team into an organisation team
|
|
108
|
+
* @param {string} teamId
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
115
|
+
* @summary Remove members from a team
|
|
116
|
+
* @param {string} teamId
|
|
117
|
+
* @param {Array<string>} requestBody
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
124
|
+
* @summary Kind and owners of every team
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
adminTeamKinds(options?: RawAxiosRequestConfig): AxiosPromise<Array<TeamKindView>>;
|
|
56
129
|
};
|
|
57
130
|
/**
|
|
58
131
|
* TeamAdministrationApi - object-oriented interface
|
|
59
132
|
*/
|
|
60
133
|
export declare class TeamAdministrationApi extends BaseAPI {
|
|
61
134
|
/**
|
|
62
|
-
* 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.
|
|
135
|
+
* 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).
|
|
63
136
|
* @summary Add members to a team
|
|
64
137
|
* @param {string} teamId
|
|
65
138
|
* @param {Array<string>} requestBody
|
|
@@ -67,4 +140,28 @@ export declare class TeamAdministrationApi extends BaseAPI {
|
|
|
67
140
|
* @throws {RequiredError}
|
|
68
141
|
*/
|
|
69
142
|
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
143
|
+
/**
|
|
144
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
145
|
+
* @summary Turn a collaborative team into an organisation team
|
|
146
|
+
* @param {string} teamId
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
adminPromoteTeam(teamId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
151
|
+
/**
|
|
152
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
153
|
+
* @summary Remove members from a team
|
|
154
|
+
* @param {string} teamId
|
|
155
|
+
* @param {Array<string>} requestBody
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
adminRemoveTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
160
|
+
/**
|
|
161
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
162
|
+
* @summary Kind and owners of every team
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
adminTeamKinds(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TeamKindView[], any, {}, any>>;
|
|
70
167
|
}
|
|
@@ -32,7 +32,7 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
export const TeamAdministrationApiAxiosParamCreator = function (configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
|
-
* 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.
|
|
35
|
+
* 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).
|
|
36
36
|
* @summary Add members to a team
|
|
37
37
|
* @param {string} teamId
|
|
38
38
|
* @param {Array<string>} requestBody
|
|
@@ -68,6 +68,104 @@ export const TeamAdministrationApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
options: localVarRequestOptions,
|
|
69
69
|
};
|
|
70
70
|
}),
|
|
71
|
+
/**
|
|
72
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
73
|
+
* @summary Turn a collaborative team into an organisation team
|
|
74
|
+
* @param {string} teamId
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
adminPromoteTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
|
|
79
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
80
|
+
assertParamExists('adminPromoteTeam', 'teamId', teamId);
|
|
81
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/promote`
|
|
82
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication keycloak_auth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
95
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
return {
|
|
99
|
+
url: toPathString(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
105
|
+
* @summary Remove members from a team
|
|
106
|
+
* @param {string} teamId
|
|
107
|
+
* @param {Array<string>} requestBody
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
adminRemoveTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
|
|
112
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
113
|
+
assertParamExists('adminRemoveTeamMembers', 'teamId', teamId);
|
|
114
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
115
|
+
assertParamExists('adminRemoveTeamMembers', 'requestBody', requestBody);
|
|
116
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/members`
|
|
117
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
120
|
+
let baseOptions;
|
|
121
|
+
if (configuration) {
|
|
122
|
+
baseOptions = configuration.baseOptions;
|
|
123
|
+
}
|
|
124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
125
|
+
const localVarHeaderParameter = {};
|
|
126
|
+
const localVarQueryParameter = {};
|
|
127
|
+
// authentication keycloak_auth required
|
|
128
|
+
// http bearer authentication required
|
|
129
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
135
|
+
return {
|
|
136
|
+
url: toPathString(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
}),
|
|
140
|
+
/**
|
|
141
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
142
|
+
* @summary Kind and owners of every team
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
adminTeamKinds: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
147
|
+
const localVarPath = `/api/v1/admin/teams/kinds`;
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
if (configuration) {
|
|
152
|
+
baseOptions = configuration.baseOptions;
|
|
153
|
+
}
|
|
154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
155
|
+
const localVarHeaderParameter = {};
|
|
156
|
+
const localVarQueryParameter = {};
|
|
157
|
+
// authentication keycloak_auth required
|
|
158
|
+
// http bearer authentication required
|
|
159
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
160
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
+
return {
|
|
165
|
+
url: toPathString(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
}),
|
|
71
169
|
};
|
|
72
170
|
};
|
|
73
171
|
/**
|
|
@@ -77,7 +175,7 @@ export const TeamAdministrationApiFp = function (configuration) {
|
|
|
77
175
|
const localVarAxiosParamCreator = TeamAdministrationApiAxiosParamCreator(configuration);
|
|
78
176
|
return {
|
|
79
177
|
/**
|
|
80
|
-
* 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.
|
|
178
|
+
* 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).
|
|
81
179
|
* @summary Add members to a team
|
|
82
180
|
* @param {string} teamId
|
|
83
181
|
* @param {Array<string>} requestBody
|
|
@@ -93,6 +191,54 @@ export const TeamAdministrationApiFp = function (configuration) {
|
|
|
93
191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
94
192
|
});
|
|
95
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
196
|
+
* @summary Turn a collaborative team into an organisation team
|
|
197
|
+
* @param {string} teamId
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
adminPromoteTeam(teamId, options) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
var _a, _b, _c;
|
|
204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPromoteTeam(teamId, options);
|
|
205
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
206
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamAdministrationApi.adminPromoteTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
207
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
212
|
+
* @summary Remove members from a team
|
|
213
|
+
* @param {string} teamId
|
|
214
|
+
* @param {Array<string>} requestBody
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
var _a, _b, _c;
|
|
221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRemoveTeamMembers(teamId, requestBody, options);
|
|
222
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
223
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamAdministrationApi.adminRemoveTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
224
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
229
|
+
* @summary Kind and owners of every team
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
adminTeamKinds(options) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
var _a, _b, _c;
|
|
236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTeamKinds(options);
|
|
237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
238
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamAdministrationApi.adminTeamKinds']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
239
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
240
|
+
});
|
|
241
|
+
},
|
|
96
242
|
};
|
|
97
243
|
};
|
|
98
244
|
/**
|
|
@@ -102,7 +248,7 @@ export const TeamAdministrationApiFactory = function (configuration, basePath, a
|
|
|
102
248
|
const localVarFp = TeamAdministrationApiFp(configuration);
|
|
103
249
|
return {
|
|
104
250
|
/**
|
|
105
|
-
* 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.
|
|
251
|
+
* 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).
|
|
106
252
|
* @summary Add members to a team
|
|
107
253
|
* @param {string} teamId
|
|
108
254
|
* @param {Array<string>} requestBody
|
|
@@ -112,6 +258,36 @@ export const TeamAdministrationApiFactory = function (configuration, basePath, a
|
|
|
112
258
|
adminAddTeamMembers(teamId, requestBody, options) {
|
|
113
259
|
return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
114
260
|
},
|
|
261
|
+
/**
|
|
262
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
263
|
+
* @summary Turn a collaborative team into an organisation team
|
|
264
|
+
* @param {string} teamId
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
adminPromoteTeam(teamId, options) {
|
|
269
|
+
return localVarFp.adminPromoteTeam(teamId, options).then((request) => request(axios, basePath));
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
273
|
+
* @summary Remove members from a team
|
|
274
|
+
* @param {string} teamId
|
|
275
|
+
* @param {Array<string>} requestBody
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
280
|
+
return localVarFp.adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
284
|
+
* @summary Kind and owners of every team
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
adminTeamKinds(options) {
|
|
289
|
+
return localVarFp.adminTeamKinds(options).then((request) => request(axios, basePath));
|
|
290
|
+
},
|
|
115
291
|
};
|
|
116
292
|
};
|
|
117
293
|
/**
|
|
@@ -119,7 +295,7 @@ export const TeamAdministrationApiFactory = function (configuration, basePath, a
|
|
|
119
295
|
*/
|
|
120
296
|
export class TeamAdministrationApi extends BaseAPI {
|
|
121
297
|
/**
|
|
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.
|
|
298
|
+
* 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
299
|
* @summary Add members to a team
|
|
124
300
|
* @param {string} teamId
|
|
125
301
|
* @param {Array<string>} requestBody
|
|
@@ -129,4 +305,34 @@ export class TeamAdministrationApi extends BaseAPI {
|
|
|
129
305
|
adminAddTeamMembers(teamId, requestBody, options) {
|
|
130
306
|
return TeamAdministrationApiFp(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
131
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
|
|
310
|
+
* @summary Turn a collaborative team into an organisation team
|
|
311
|
+
* @param {string} teamId
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
adminPromoteTeam(teamId, options) {
|
|
316
|
+
return TeamAdministrationApiFp(this.configuration).adminPromoteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Each removed member is told (notification) and loses any ownership of the team.
|
|
320
|
+
* @summary Remove members from a team
|
|
321
|
+
* @param {string} teamId
|
|
322
|
+
* @param {Array<string>} requestBody
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
adminRemoveTeamMembers(teamId, requestBody, options) {
|
|
327
|
+
return TeamAdministrationApiFp(this.configuration).adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
|
|
331
|
+
* @summary Kind and owners of every team
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
adminTeamKinds(options) {
|
|
336
|
+
return TeamAdministrationApiFp(this.configuration).adminTeamKinds(options).then((request) => request(this.axios, this.basePath));
|
|
337
|
+
}
|
|
132
338
|
}
|