From 1f27fbf4810044a015c3cd0dc403a4c37245f8b9 Mon Sep 17 00:00:00 2001 From: JanAckermann Date: Thu, 23 Jun 2022 12:33:48 +0200 Subject: [PATCH 01/13] Start implementation --- .../src/components/Groups/GroupsList.vue | 9 + .../Groups/SideBar/DetailsPanel.vue | 1 + .../components/Users/SideBar/DetailsPanel.vue | 18 +- .../components/Users/SideBar/EditPanel.vue | 21 +- .../Users/SideBar/GroupAssignmentsPanel.vue | 87 +++ .../components/Users/SideBar/UserInfoBox.vue | 24 + .../src/components/Users/UsersList.vue | 5 +- .../src/views/Groups.vue | 5 +- .../src/views/Users.vue | 99 ++- .../src/generated/.openapi-generator/VERSION | 2 +- packages/web-client/src/generated/api.ts | 576 +++++++----------- packages/web-client/src/generated/base.ts | 2 +- packages/web-client/src/generated/common.ts | 2 +- .../web-client/src/generated/configuration.ts | 2 +- packages/web-client/src/generated/index.ts | 2 +- packages/web-client/src/index.ts | 12 +- 16 files changed, 460 insertions(+), 407 deletions(-) create mode 100644 packages/web-app-user-management/src/components/Users/SideBar/GroupAssignmentsPanel.vue create mode 100644 packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue diff --git a/packages/web-app-user-management/src/components/Groups/GroupsList.vue b/packages/web-app-user-management/src/components/Groups/GroupsList.vue index 8529c58233c..a0f436728f5 100644 --- a/packages/web-app-user-management/src/components/Groups/GroupsList.vue +++ b/packages/web-app-user-management/src/components/Groups/GroupsList.vue @@ -32,6 +32,9 @@ + diff --git a/packages/web-app-user-management/src/components/Users/SideBar/GroupAssignmentsPanel.vue b/packages/web-app-user-management/src/components/Users/SideBar/GroupAssignmentsPanel.vue new file mode 100644 index 00000000000..10b6f777809 --- /dev/null +++ b/packages/web-app-user-management/src/components/Users/SideBar/GroupAssignmentsPanel.vue @@ -0,0 +1,87 @@ + + + diff --git a/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue b/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue new file mode 100644 index 00000000000..36621ddcc11 --- /dev/null +++ b/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue @@ -0,0 +1,24 @@ + + + diff --git a/packages/web-app-user-management/src/components/Users/UsersList.vue b/packages/web-app-user-management/src/components/Users/UsersList.vue index 45819063bc7..a1187dbbfa1 100644 --- a/packages/web-app-user-management/src/components/Users/UsersList.vue +++ b/packages/web-app-user-management/src/components/Users/UsersList.vue @@ -37,7 +37,10 @@ - + + + + diff --git a/packages/web-app-user-management/src/views/Groups.vue b/packages/web-app-user-management/src/views/Groups.vue index 5da1bce0e6b..c7054254d89 100644 --- a/packages/web-app-user-management/src/views/Groups.vue +++ b/packages/web-app-user-management/src/views/Groups.vue @@ -142,6 +142,9 @@ export default { const loadResourcesTask = useTask(function* (signal, ref) { const response = yield graphClient.groups.listGroups('displayName') groups.value = response.data.value || [] + groups.value.forEach(group => { + group.members = group.members || [] + }) }) return { @@ -340,7 +343,7 @@ export default { this.showMessage({ title: this.$gettext('Group was created successfully') }) - this.groups.push(response?.data) + this.groups.push({...response?.data, members: []}) } catch (error) { console.error(error) this.showMessage({ diff --git a/packages/web-app-user-management/src/views/Users.vue b/packages/web-app-user-management/src/views/Users.vue index 0391c801456..d22fee5c33d 100644 --- a/packages/web-app-user-management/src/views/Users.vue +++ b/packages/web-app-user-management/src/views/Users.vue @@ -76,6 +76,7 @@ @toggleSelectUser="toggleSelectUser" @toggleSelectAllUsers="toggleSelectAllUsers" @clickDetails="showDetailsSideBarPanel" + @clickGroupAssignments="showGroupAssignmentsPanel" @clickEdit="showEditSideBarPanel" /> @@ -95,8 +96,16 @@ v-if="activePanel === 'EditPanel'" :users="selectedUsers" :roles="roles" + :groups="groups" @confirm="editUser" /> + @@ -110,6 +119,7 @@ import CreateUserModal from '../components/Users/CreateUserModal.vue' import DeleteUserModal from '../components/Users/DeleteUserModal.vue' import DetailsPanel from '../components/Users/SideBar/DetailsPanel.vue' import EditPanel from '../components/Users/SideBar/EditPanel.vue' +import GroupAssignmentsPanel from '../components/Users/SideBar/GroupAssignmentsPanel.vue' import AppLoadingSpinner from 'web-pkg/src/components/AppLoadingSpinner.vue' import NoContentMessage from 'web-pkg/src/components/NoContentMessage.vue' import SideBar from 'web-pkg/src/components/sidebar/SideBar.vue' @@ -126,6 +136,7 @@ export default { components: { EditPanel, DetailsPanel, + GroupAssignmentsPanel, UsersList, AppLoadingSpinner, NoContentMessage, @@ -136,6 +147,7 @@ export default { setup() { const store = useStore() const users = ref([]) + const groups = ref([]) const roles = ref([]) const userAssignments = ref({}) const graphClient = clientService.graphAuthenticated( @@ -190,10 +202,21 @@ export default { userAssignments.value[ref.user?.id] = userAssignmentResponse.data?.assignments }) + const loadGroupsTask = useTask(function* (signal, ref) { + const groupsResponse = yield graphClient.groups.listGroups() + groups.value = groupsResponse.data.value + }) + const loadResourcesTask = useTask(function* (signal, ref) { const usersResponse = yield graphClient.users.listUsers('displayName') users.value = usersResponse.data.value || [] + users.value.forEach(user => { + user.memberOf = user.memberOf || [] + }) + + + yield loadGroupsTask.perform() yield loadRolesTask.perform() for (const user of users.value) { @@ -204,6 +227,7 @@ export default { return { users, roles, + groups, loadResourcesTask, graphClient } @@ -218,7 +242,7 @@ export default { } }, computed: { - ...mapGetters(['getToken']), + ...mapGetters(['getToken', 'configuration']), selectedUsersText() { const translated = this.$gettext('%{ userCount } selected') @@ -255,6 +279,14 @@ export default { component: EditPanel, default: false, enabled: this.selectedUsers.length === 1 + }, + { + app: 'GroupAssignmentsPanel', + icon: 'group-2', + title: $gettext('Group assignments'), + component: GroupAssignmentsPanel, + default: false, + enabled: this.selectedUsers.length === 1 } ] }, @@ -345,6 +377,12 @@ export default { this.sideBarOpen = true }, + showGroupAssignmentsPanel(user) { + this.selectedUsers = user ? [user] : [] + this.activePanel = 'GroupAssignmentsPanel' + this.sideBarOpen = true + }, + async deleteUsers(users) { const promises = users.map((user) => this.graphClient.users.deleteUser(user.id)) @@ -396,7 +434,7 @@ export default { this.showMessage({ title: this.$gettext('User was created successfully') }) - this.users.push(response?.data) + this.users.push({...response?.data, ...{memberOf: []}}) } catch (error) { console.error(error) this.showMessage({ @@ -408,8 +446,24 @@ export default { async editUser(editUser) { try { + const user = this.users.find((user) => user.id === editUser.id) await this.graphClient.users.editUser(editUser.id, editUser) + const groupsToAdd = editUser.memberOf.filter(editUserGroup => { + return !user.memberOf.includes(editUserGroup) + }) + const groupsToDelete = user.memberOf.filter(editUserGroup => { + return !editUser.memberOf.includes(editUserGroup) + }) + + + for(const groupToAdd of groupsToAdd ){ + await this.graphClient.groups.addMember(groupToAdd.id, user.id, this.configuration.server) + } + + for (const groupToDelete of groupsToDelete){ + await this.graphClient.groups.deleteMember(groupToDelete.id, user.id) + } /** * Setting api calls are just temporary and will be replaced with the graph api, * as the backend supports it. @@ -427,8 +481,7 @@ export default { } ) - const user = this.users.findIndex((user) => user.id === editUser.id) - this.$set(this.users, user, editUser) + this.$set(this.users, this.users.findIndex((user) => user.id === editUser.id), editUser) /** * The user object gets actually exchanged, therefore we update the selected users */ @@ -444,6 +497,44 @@ export default { status: 'danger' }) } + }, + + async editUserGroupAssignments(editUser){ + try { + const user = this.users.find((user) => user.id === editUser.id) + + const groupsToAdd = editUser.memberOf.filter(editUserGroup => { + return !user.memberOf.includes(editUserGroup) + }) + const groupsToDelete = user.memberOf.filter(editUserGroup => { + return !editUser.memberOf.includes(editUserGroup) + }) + + + for(const groupToAdd of groupsToAdd ){ + await this.graphClient.groups.addMember(groupToAdd.id, user.id, this.configuration.server) + } + + for (const groupToDelete of groupsToDelete){ + await this.graphClient.groups.deleteMember(groupToDelete.id, user.id) + } + + this.$set(this.users, this.users.findIndex((user) => user.id === editUser.id), editUser) + /** + * The user object gets actually exchanged, therefore we update the selected users + */ + this.selectedUsers = [editUser] + + this.showMessage({ + title: this.$gettext('Group assignments were edited successfully') + }) + } catch (error) { + console.error(error) + this.showMessage({ + title: this.$gettext('Failed to edit group assignments'), + status: 'danger' + }) + } } } } diff --git a/packages/web-client/src/generated/.openapi-generator/VERSION b/packages/web-client/src/generated/.openapi-generator/VERSION index 0984c4c1ad2..89648de3311 100644 --- a/packages/web-client/src/generated/.openapi-generator/VERSION +++ b/packages/web-client/src/generated/.openapi-generator/VERSION @@ -1 +1 @@ -5.4.0-SNAPSHOT \ No newline at end of file +6.0.1-SNAPSHOT \ No newline at end of file diff --git a/packages/web-client/src/generated/api.ts b/packages/web-client/src/generated/api.ts index ea24055fa7c..a96b7362ba5 100644 --- a/packages/web-client/src/generated/api.ts +++ b/packages/web-client/src/generated/api.ts @@ -4,7 +4,7 @@ * Libre Graph API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: v0.13.2 + * The version of the OpenAPI document: v0.14.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -500,18 +500,6 @@ export interface Group { * @memberof Group */ 'id'?: string; - /** - * - * @type {string} - * @memberof Group - */ - 'deletedDateTime'?: string; - /** - * Timestamp of when the group was created. The value cannot be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. - * @type {string} - * @memberof Group - */ - 'createdDateTime'?: string; /** * An optional description for the group. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search. * @type {string} @@ -524,108 +512,12 @@ export interface Group { * @memberof Group */ 'displayName'?: string; - /** - * Timestamp of when the group is set to expire. The value cannot be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only. - * @type {string} - * @memberof Group - */ - 'expirationDateTime'?: string; - /** - * The SMTP address for the group, for example, \'serviceadmins@owncloud.com\'. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). - * @type {string} - * @memberof Group - */ - 'mail'?: string; - /** - * Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. - * @type {string} - * @memberof Group - */ - 'onPremisesDomainName'?: string; - /** - * Indicates the last time at which the group was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in). - * @type {string} - * @memberof Group - */ - 'onPremisesLastSyncDateTime'?: string; - /** - * Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only. - * @type {string} - * @memberof Group - */ - 'onPremisesSamAccountName'?: string; - /** - * true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). - * @type {boolean} - * @memberof Group - */ - 'onPremisesSyncEnabled'?: boolean; - /** - * The preferred language for a group. Should follow ISO 639-1 Code; for example en-US. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). - * @type {string} - * @memberof Group - */ - 'preferredLanguage'?: string; - /** - * Specifies whether the group is a security group. Required. Returned by default. Supports $filter (eq, ne, not, in). - * @type {boolean} - * @memberof Group - */ - 'securityEnabled'?: boolean; - /** - * Security identifier of the group, used in Windows scenarios. Returned by default. - * @type {string} - * @memberof Group - */ - 'securityIdentifier'?: string; - /** - * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or Hiddenmembership. It can\'t be updated later. Other values of visibility can be updated after group creation. Groups assignable to roles are always Private. See group visibility options to learn more. Returned by default. Nullable. - * @type {string} - * @memberof Group - */ - 'visibility'?: string; - /** - * - * @type {DirectoryObject} - * @memberof Group - */ - 'createdOnBehalfOf'?: DirectoryObject; - /** - * Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. - * @type {Array} - * @memberof Group - */ - 'memberOf'?: Array; /** * Users and groups that are members of this group. HTTP Methods: GET (supported for all groups), Nullable. Supports $expand. - * @type {Array} - * @memberof Group - */ - 'members'?: Array; - /** - * The owners of the group. The owners are a set of non-admin users who are allowed to modify this object. Limited to 100 owners. Nullable. Supports $expand. - * @type {Array} - * @memberof Group - */ - 'owners'?: Array; - /** - * - * @type {Drive} - * @memberof Group - */ - 'drive'?: Drive; - /** - * The group\'s drives. Read-only. - * @type {Array} - * @memberof Group - */ - 'drives'?: Array; - /** - * - * @type {boolean} + * @type {Array} * @memberof Group */ - 'isArchived'?: boolean; + 'members'?: Array; /** * A list of member references to the members to be added. Up to 20 members can be added with a single request * @type {Set} @@ -883,6 +775,25 @@ export interface OpenGraphFile { */ 'processingMetadata'?: boolean; } +/** + * + * @export + * @interface PasswordChange + */ +export interface PasswordChange { + /** + * + * @type {string} + * @memberof PasswordChange + */ + 'currentPassword'?: string; + /** + * + * @type {string} + * @memberof PasswordChange + */ + 'newPassword'?: string; +} /** * Password Profile associated with a user * @export @@ -1148,84 +1059,12 @@ export interface User { * @memberof User */ 'id'?: string; - /** - * - * @type {string} - * @memberof User - */ - 'deletedDateTime'?: string; - /** - * true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter. - * @type {boolean} - * @memberof User - */ - 'accountEnabled'?: boolean; - /** - * The telephone numbers for the user. Only one number can be set for this property. Returned by default. Read-only for users synced from on-premises directory. - * @type {Array} - * @memberof User - */ - 'businessPhones'?: Array; - /** - * The city in which the user is located. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'city'?: string; - /** - * The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 characters.Returned only on $select. - * @type {string} - * @memberof User - */ - 'companyName'?: string; - /** - * The country/region in which the user is located; for example, \'US\' or \'UK\'. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'country'?: string; - /** - * The date and time the user was created. The value cannot be modified and is automatically populated when the entity is created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. Property is nullable. A null value indicates that an accurate creation time couldn\'t be determined for the user. Returned only on $select. Read-only. Supports $filter. - * @type {string} - * @memberof User - */ - 'createdDateTime'?: string; - /** - * The name for the department in which the user works. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'department'?: string; /** * The name displayed in the address book for the user. This value is usually the combination of the user\'s first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Returned by default. Supports $filter and $orderby. * @type {string} * @memberof User */ 'displayName'?: string; - /** - * The fax number of the user. Returned only on $select. - * @type {string} - * @memberof User - */ - 'faxNumber'?: string; - /** - * The given name (first name) of the user. Returned by default. Supports $filter. - * @type {string} - * @memberof User - */ - 'givenName'?: string; - /** - * The time when this user last changed their password. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Returned only on $select. Read-only. - * @type {string} - * @memberof User - */ - 'lastPasswordChangeDateTime'?: string; - /** - * Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, minorWithOutParentalConsent, minorWithParentalConsent, minorNoParentalConsentRequired, notAdult and adult. Refer to the legal age group property definitions for further information. Returned only on $select. - * @type {string} - * @memberof User - */ - 'legalAgeGroupClassification'?: string; /** * The SMTP address for the user, for example, \'jeff@contoso.onowncloud.com\'. Returned by default. Supports $filter and endsWith. * @type {string} @@ -1233,149 +1072,23 @@ export interface User { */ 'mail'?: string; /** - * The mail alias for the user. This property must be specified when a user is created. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'mailNickname'?: string; - /** - * The primary cellular telephone number for the user. Returned by default. Read-only for users synced from on-premises directory. - * @type {string} - * @memberof User - */ - 'mobilePhone'?: string; - /** - * Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. - * @type {string} - * @memberof User - */ - 'onPremisesDistinguishedName'?: string; - /** - * Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. - * @type {string} - * @memberof User - */ - 'onPremisesDomainName'?: string; - /** - * This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user\'s userPrincipalName (UPN) property. NOTE: The $ and _ characters cannot be used when specifying this property. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in).. - * @type {string} - * @memberof User - */ - 'onPremisesImmutableId'?: string; - /** - * true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). - * @type {boolean} - * @memberof User - */ - 'onPremisesSyncEnabled'?: boolean; - /** - * Indicates the last time at which the object was synced with the on-premises directory; for example: 2013-02-16T03:04:54Z. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in). - * @type {string} + * Groups that this user is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand. + * @type {Array} * @memberof User */ - 'onPremisesLastSyncDateTime'?: string; + 'memberOf'?: Array; /** * Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only. * @type {string} * @memberof User */ 'onPremisesSamAccountName'?: string; - /** - * Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith). - * @type {string} - * @memberof User - */ - 'onPremisesUserPrincipalName'?: string; - /** - * The office location in the user\'s place of business. Returned by default. - * @type {string} - * @memberof User - */ - 'officeLocation'?: string; /** * * @type {PasswordProfile} * @memberof User */ 'passwordProfile'?: PasswordProfile; - /** - * The postal code for the user\'s postal address. The postal code is specific to the user\'s country/region. In the United States of America, this attribute contains the ZIP code. Returned only on $select. - * @type {string} - * @memberof User - */ - 'postalCode'?: string; - /** - * The preferred language for the user. Should follow ISO 639-1 Code; for example \'en-US\'. Returned by default. - * @type {string} - * @memberof User - */ - 'preferredLanguage'?: string; - /** - * The state or province in the user\'s address. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'state'?: string; - /** - * The street address of the user\'s place of business. Returned only on $select. - * @type {string} - * @memberof User - */ - 'streetAddress'?: string; - /** - * The user\'s surname (family name or last name). Returned by default. Supports $filter. - * @type {string} - * @memberof User - */ - 'surname'?: string; - /** - * A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: \'US\', \'JP\', and \'GB\'. Not nullable. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'usageLocation'?: string; - /** - * The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user\'s email name. The general format is alias@domain, where domain must be present in the tenant\'s collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization. Returned by default. Supports $filter, $orderby, and endsWith. - * @type {string} - * @memberof User - */ - 'userPrincipalName'?: string; - /** - * A string value that can be used to classify user types in your directory, such as \'Member\' and \'Guest\'. Returned only on $select. Supports $filter. - * @type {string} - * @memberof User - */ - 'userType'?: string; - /** - * A freeform text entry field for the user to describe themselves. Returned only on $select. - * @type {string} - * @memberof User - */ - 'aboutMe'?: string; - /** - * The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Returned only on $select. - * @type {string} - * @memberof User - */ - 'birthday'?: string; - /** - * The preferred name for the user. Returned only on $select. - * @type {string} - * @memberof User - */ - 'preferredName'?: string; - /** - * - * @type {Drive} - * @memberof User - */ - 'drive'?: Drive; - /** - * A collection of drives available for this user. Read-only. - * @type {Array} - * @memberof User - */ - 'drives'?: Array; } /** @@ -1981,7 +1694,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * * @summary Add a member to a group * @param {string} groupId key: id of group - * @param {MemberReference} memberReference + * @param {MemberReference} memberReference Object to be added as member * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2103,11 +1816,12 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * * @summary Get entity from groups by key * @param {string} groupId key: id of group - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getGroup: async (groupId: string, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options: AxiosRequestConfig = {}): Promise => { + getGroup: async (groupId: string, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'groupId' is not null or undefined assertParamExists('getGroup', 'groupId', groupId) const localVarPath = `/groups/{group-id}` @@ -2127,6 +1841,10 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration localVarQueryParameter['$select'] = Array.from($select).join(COLLECTION_FORMATS.csv); } + if ($expand) { + localVarQueryParameter['$expand'] = Array.from($expand).join(COLLECTION_FORMATS.csv); + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2192,7 +1910,7 @@ export const GroupApiFp = function(configuration?: Configuration) { * * @summary Add a member to a group * @param {string} groupId key: id of group - * @param {MemberReference} memberReference + * @param {MemberReference} memberReference Object to be added as member * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2229,12 +1947,13 @@ export const GroupApiFp = function(configuration?: Configuration) { * * @summary Get entity from groups by key * @param {string} groupId key: id of group - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getGroup(groupId: string, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGroup(groupId, $select, options); + async getGroup(groupId: string, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroup(groupId, $select, $expand, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -2263,7 +1982,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * * @summary Add a member to a group * @param {string} groupId key: id of group - * @param {MemberReference} memberReference + * @param {MemberReference} memberReference Object to be added as member * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2297,12 +2016,13 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * * @summary Get entity from groups by key * @param {string} groupId key: id of group - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getGroup(groupId: string, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: any): AxiosPromise { - return localVarFp.getGroup(groupId, $select, options).then((request) => request(axios, basePath)); + getGroup(groupId: string, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: any): AxiosPromise { + return localVarFp.getGroup(groupId, $select, $expand, options).then((request) => request(axios, basePath)); }, /** * @@ -2329,7 +2049,7 @@ export class GroupApi extends BaseAPI { * * @summary Add a member to a group * @param {string} groupId key: id of group - * @param {MemberReference} memberReference + * @param {MemberReference} memberReference Object to be added as member * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi @@ -2369,13 +2089,14 @@ export class GroupApi extends BaseAPI { * * @summary Get entity from groups by key * @param {string} groupId key: id of group - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public getGroup(groupId: string, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: AxiosRequestConfig) { - return GroupApiFp(this.configuration).getGroup(groupId, $select, options).then((request) => request(this.axios, this.basePath)); + public getGroup(groupId: string, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: AxiosRequestConfig) { + return GroupApiFp(this.configuration).getGroup(groupId, $select, $expand, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2443,12 +2164,13 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'displayName' | 'displayName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listGroups: async ($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options: AxiosRequestConfig = {}): Promise => { + listGroups: async ($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc'>, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/groups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2489,6 +2211,10 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio localVarQueryParameter['$select'] = Array.from($select).join(COLLECTION_FORMATS.csv); } + if ($expand) { + localVarQueryParameter['$expand'] = Array.from($expand).join(COLLECTION_FORMATS.csv); + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2529,13 +2255,14 @@ export const GroupsApiFp = function(configuration?: Configuration) { * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'displayName' | 'displayName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups($top, $skip, $search, $filter, $count, $orderby, $select, options); + async listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc'>, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -2566,13 +2293,14 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'displayName' | 'displayName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: any): AxiosPromise { - return localVarFp.listGroups($top, $skip, $search, $filter, $count, $orderby, $select, options).then((request) => request(axios, basePath)); + listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc'>, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: any): AxiosPromise { + return localVarFp.listGroups($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options).then((request) => request(axios, basePath)); }, }; }; @@ -2604,14 +2332,122 @@ export class GroupsApi extends BaseAPI { * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>} [$select] Select properties to be returned + * @param {Set<'displayName' | 'displayName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'description' | 'displayName' | 'members'>} [$select] Select properties to be returned + * @param {Set<'members'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupsApi */ - public listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'createdDateTime' | 'createdDateTime desc' | 'description' | 'description desc' | 'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'securityEnabled' | 'securityEnabled desc' | 'securityIdentifier' | 'securityIdentifier desc' | 'visibility' | 'visibility desc' | 'isArchived' | 'isArchived desc'>, $select?: Set<'id' | 'deletedDateTime' | 'createdDateTime' | 'description' | 'displayName' | 'expirationDateTime' | 'mail' | 'onPremisesDomainName' | 'onPremisesLastSyncDateTime' | 'onPremisesNetBiosName' | 'onPremisesProvisioningErrors' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'preferredLanguage' | 'renewedDateTime' | 'securityEnabled' | 'securityIdentifier' | 'visibility' | 'isArchived' | 'createdOnBehalfOf' | 'memberOf' | 'members' | 'owners' | 'drive' | 'drives'>, options?: AxiosRequestConfig) { - return GroupsApiFp(this.configuration).listGroups($top, $skip, $search, $filter, $count, $orderby, $select, options).then((request) => request(this.axios, this.basePath)); + public listGroups($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc'>, $select?: Set<'id' | 'description' | 'displayName' | 'members'>, $expand?: Set<'members'>, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration).listGroups($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * MeChangepasswordApi - axios parameter creator + * @export + */ +export const MeChangepasswordApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Chanage your own password + * @param {PasswordChange} passwordChange Password change request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changeOwnPassword: async (passwordChange: PasswordChange, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'passwordChange' is not null or undefined + assertParamExists('changeOwnPassword', 'passwordChange', passwordChange) + const localVarPath = `/me/changePassword`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(passwordChange, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * MeChangepasswordApi - functional programming interface + * @export + */ +export const MeChangepasswordApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MeChangepasswordApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Chanage your own password + * @param {PasswordChange} passwordChange Password change request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async changeOwnPassword(passwordChange: PasswordChange, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.changeOwnPassword(passwordChange, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * MeChangepasswordApi - factory interface + * @export + */ +export const MeChangepasswordApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MeChangepasswordApiFp(configuration) + return { + /** + * + * @summary Chanage your own password + * @param {PasswordChange} passwordChange Password change request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changeOwnPassword(passwordChange: PasswordChange, options?: any): AxiosPromise { + return localVarFp.changeOwnPassword(passwordChange, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MeChangepasswordApi - object-oriented interface + * @export + * @class MeChangepasswordApi + * @extends {BaseAPI} + */ +export class MeChangepasswordApi extends BaseAPI { + /** + * + * @summary Chanage your own password + * @param {PasswordChange} passwordChange Password change request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MeChangepasswordApi + */ + public changeOwnPassword(passwordChange: PasswordChange, options?: AxiosRequestConfig) { + return MeChangepasswordApiFp(this.configuration).changeOwnPassword(passwordChange, options).then((request) => request(this.axios, this.basePath)); } } @@ -3207,12 +3043,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration) * * @summary Get entity from users by key * @param {string} userId key: id of user - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUser: async (userId: string, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options: AxiosRequestConfig = {}): Promise => { + getUser: async (userId: string, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'userId' is not null or undefined assertParamExists('getUser', 'userId', userId) const localVarPath = `/users/{user-id}` @@ -3313,12 +3149,12 @@ export const UserApiFp = function(configuration?: Configuration) { * * @summary Get entity from users by key * @param {string} userId key: id of user - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getUser(userId: string, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getUser(userId: string, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(userId, $select, $expand, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -3359,12 +3195,12 @@ export const UserApiFactory = function (configuration?: Configuration, basePath? * * @summary Get entity from users by key * @param {string} userId key: id of user - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUser(userId: string, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: any): AxiosPromise { + getUser(userId: string, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: any): AxiosPromise { return localVarFp.getUser(userId, $select, $expand, options).then((request) => request(axios, basePath)); }, /** @@ -3405,13 +3241,13 @@ export class UserApi extends BaseAPI { * * @summary Get entity from users by key * @param {string} userId key: id of user - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ - public getUser(userId: string, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: AxiosRequestConfig) { + public getUser(userId: string, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: AxiosRequestConfig) { return UserApiFp(this.configuration).getUser(userId, $select, $expand, options).then((request) => request(this.axios, this.basePath)); } @@ -3480,13 +3316,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listUsers: async ($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options: AxiosRequestConfig = {}): Promise => { + listUsers: async ($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/users`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3571,13 +3407,13 @@ export const UsersApiFp = function(configuration?: Configuration) { * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -3609,13 +3445,13 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: any): AxiosPromise { + listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: any): AxiosPromise { return localVarFp.listUsers($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options).then((request) => request(axios, basePath)); }, }; @@ -3648,14 +3484,14 @@ export class UsersApi extends BaseAPI { * @param {string} [$search] Search items by search phrases * @param {string} [$filter] Filter items by property values * @param {boolean} [$count] Include count of items - * @param {Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>} [$orderby] Order items by property values - * @param {Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>} [$select] Select properties to be returned - * @param {Set<'*' | 'drive' | 'drives'>} [$expand] Expand related entities + * @param {Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>} [$orderby] Order items by property values + * @param {Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>} [$select] Select properties to be returned + * @param {Set<'memberOf'>} [$expand] Expand related entities * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ - public listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'id' | 'id desc' | 'deletedDateTime' | 'deletedDateTime desc' | 'accountEnabled' | 'accountEnabled desc' | 'businessPhones' | 'businessPhones desc' | 'city' | 'city desc' | 'companyName' | 'companyName desc' | 'country' | 'country desc' | 'createdDateTime' | 'createdDateTime desc' | 'department' | 'department desc' | 'displayName' | 'displayName desc' | 'faxNumber' | 'faxNumber desc' | 'givenName' | 'givenName desc' | 'lastPasswordChangeDateTime' | 'lastPasswordChangeDateTime desc' | 'legalAgeGroupClassification' | 'legalAgeGroupClassification desc' | 'mail' | 'mail desc' | 'mailNickname' | 'mailNickname desc' | 'mobilePhone' | 'mobilePhone desc' | 'officeLocation' | 'officeLocation desc' | 'onPremisesDistinguishedName' | 'onPremisesDistinguishedName desc' | 'onPremisesDomainName' | 'onPremisesDomainName desc' | 'onPremisesImmutableId' | 'onPremisesImmutableId desc' | 'onPremisesLastSyncDateTime' | 'onPremisesLastSyncDateTime desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc' | 'onPremisesSyncEnabled' | 'onPremisesSyncEnabled desc' | 'onPremisesUserPrincipalName' | 'onPremisesUserPrincipalName desc' | 'postalCode' | 'postalCode desc' | 'preferredLanguage' | 'preferredLanguage desc' | 'state' | 'state desc' | 'streetAddress' | 'streetAddress desc' | 'surname' | 'surname desc' | 'usageLocation' | 'usageLocation desc' | 'userPrincipalName' | 'userPrincipalName desc' | 'userType' | 'userType desc' | 'aboutMe' | 'aboutMe desc' | 'birthday' | 'birthday desc' | 'preferredName' | 'preferredName desc'>, $select?: Set<'id' | 'deletedDateTime' | 'accountEnabled' | 'businessPhones' | 'city' | 'companyName' | 'country' | 'createdDateTime' | 'creationType' | 'department' | 'displayName' | 'faxNumber' | 'givenName' | 'lastPasswordChangeDateTime' | 'legalAgeGroupClassification' | 'licenseAssignmentStates' | 'mail' | 'mailNickname' | 'mobilePhone' | 'officeLocation' | 'onPremisesDistinguishedName' | 'onPremisesDomainName' | 'onPremisesImmutableId' | 'onPremisesLastSyncDateTime' | 'onPremisesSamAccountName' | 'onPremisesSyncEnabled' | 'onPremisesUserPrincipalName' | 'postalCode' | 'preferredLanguage' | 'state' | 'streetAddress' | 'surname' | 'usageLocation' | 'userPrincipalName' | 'userType' | 'aboutMe' | 'birthday' | 'preferredName' | 'drive' | 'drives'>, $expand?: Set<'*' | 'drive' | 'drives'>, options?: AxiosRequestConfig) { + public listUsers($top?: number, $skip?: number, $search?: string, $filter?: string, $count?: boolean, $orderby?: Set<'displayName' | 'displayName desc' | 'mail' | 'mail desc' | 'onPremisesSamAccountName' | 'onPremisesSamAccountName desc'>, $select?: Set<'id' | 'displayName' | 'mail' | 'memberOf' | 'onPremisesSamAccountName'>, $expand?: Set<'memberOf'>, options?: AxiosRequestConfig) { return UsersApiFp(this.configuration).listUsers($top, $skip, $search, $filter, $count, $orderby, $select, $expand, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/packages/web-client/src/generated/base.ts b/packages/web-client/src/generated/base.ts index 55a27a61b3b..7f9a33571cf 100644 --- a/packages/web-client/src/generated/base.ts +++ b/packages/web-client/src/generated/base.ts @@ -4,7 +4,7 @@ * Libre Graph API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: v0.13.2 + * The version of the OpenAPI document: v0.14.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/web-client/src/generated/common.ts b/packages/web-client/src/generated/common.ts index 4dcf7fd76d2..ed54e5cd7a0 100644 --- a/packages/web-client/src/generated/common.ts +++ b/packages/web-client/src/generated/common.ts @@ -4,7 +4,7 @@ * Libre Graph API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: v0.13.2 + * The version of the OpenAPI document: v0.14.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/web-client/src/generated/configuration.ts b/packages/web-client/src/generated/configuration.ts index bbdeaa930ef..7402891f4b1 100644 --- a/packages/web-client/src/generated/configuration.ts +++ b/packages/web-client/src/generated/configuration.ts @@ -4,7 +4,7 @@ * Libre Graph API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: v0.13.2 + * The version of the OpenAPI document: v0.14.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/web-client/src/generated/index.ts b/packages/web-client/src/generated/index.ts index 1e9628caa39..ab21f31696d 100644 --- a/packages/web-client/src/generated/index.ts +++ b/packages/web-client/src/generated/index.ts @@ -4,7 +4,7 @@ * Libre Graph API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: v0.13.2 + * The version of the OpenAPI document: v0.14.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/web-client/src/index.ts b/packages/web-client/src/index.ts index 5a304b5530c..bdd5aba8ce6 100644 --- a/packages/web-client/src/index.ts +++ b/packages/web-client/src/index.ts @@ -37,6 +37,8 @@ export interface Graph { createGroup: (group: Group) => AxiosPromise editGroup: (groupId: string, group: Group) => AxiosPromise deleteGroup: (groupId: string) => AxiosPromise + addMember: (groupId: string, userId:string, server: string) => AxiosPromise + deleteMember: (groupId: string, userId:string) => AxiosPromise } } @@ -73,14 +75,20 @@ const graph = (baseURI: string, axiosClient: AxiosInstance): Graph => { editUser: (userId: string, user: User) => userApiFactory.updateUser(userId, user), deleteUser: (userId: string) => userApiFactory.deleteUser(userId), listUsers: (orderBy?: any) => - usersApiFactory.listUsers(0, 0, '', '', false, new Set([orderBy])) + usersApiFactory.listUsers(0, 0, '', '', false, new Set([orderBy]), new Set([]), new Set(['memberOf'])) }, groups: { createGroup: (group: Group) => groupsApiFactory.createGroup(group), editGroup: (groupId: string, group: Group) => groupApiFactory.updateGroup(groupId, group), deleteGroup: (groupId: string) => groupApiFactory.deleteGroup(groupId), listGroups: (orderBy?: any) => - groupsApiFactory.listGroups(0, 0, '', '', false, new Set([orderBy])) + groupsApiFactory.listGroups(0, 0, '', '', false, new Set([orderBy]), new Set([]), new Set(['members']) ), + addMember: (groupId: string, userId: string, server: string) => { + groupApiFactory.addMember(groupId, {'@odata.id' : `${server}graph/v1.0/users/${userId}`} ) + }, + deleteMember: (groupId: string, userId: string) => { + groupApiFactory.deleteMember(groupId, userId ) + } } } } From 24a45c796a0bb67fb028cd8920926698540e1bc9 Mon Sep 17 00:00:00 2001 From: JanAckermann Date: Thu, 23 Jun 2022 12:35:52 +0200 Subject: [PATCH 02/13] Remove uneeded blank --- .../src/components/Groups/SideBar/DetailsPanel.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/web-app-user-management/src/components/Groups/SideBar/DetailsPanel.vue b/packages/web-app-user-management/src/components/Groups/SideBar/DetailsPanel.vue index fa00296a278..96e8610e3e5 100644 --- a/packages/web-app-user-management/src/components/Groups/SideBar/DetailsPanel.vue +++ b/packages/web-app-user-management/src/components/Groups/SideBar/DetailsPanel.vue @@ -17,7 +17,6 @@ :user-name="group.displayName" /> - Date: Thu, 23 Jun 2022 12:36:46 +0200 Subject: [PATCH 03/13] Remove uneeded panel --- .../src/components/Users/SideBar/EditPanel.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue b/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue index f82510a10cf..3ec7b7544d4 100644 --- a/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue +++ b/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue @@ -28,13 +28,11 @@ default-value="●●●●●●●●" /> Date: Thu, 23 Jun 2022 12:37:15 +0200 Subject: [PATCH 04/13] Remove uneeded prop --- .../src/components/Users/SideBar/EditPanel.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue b/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue index 3ec7b7544d4..d2d0e6944d1 100644 --- a/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue +++ b/packages/web-app-user-management/src/components/Users/SideBar/EditPanel.vue @@ -64,10 +64,6 @@ export default { roles: { type: Array, required: true - }, - groups: { - type: Array, - required: true } }, data() { From 6768f58227be4f05a18f880804c1136649386728 Mon Sep 17 00:00:00 2001 From: JanAckermann Date: Thu, 23 Jun 2022 12:37:43 +0200 Subject: [PATCH 05/13] Remove uneeded prop --- packages/web-app-user-management/src/views/Users.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/web-app-user-management/src/views/Users.vue b/packages/web-app-user-management/src/views/Users.vue index d22fee5c33d..65eda6826ab 100644 --- a/packages/web-app-user-management/src/views/Users.vue +++ b/packages/web-app-user-management/src/views/Users.vue @@ -96,7 +96,6 @@ v-if="activePanel === 'EditPanel'" :users="selectedUsers" :roles="roles" - :groups="groups" @confirm="editUser" /> Date: Thu, 23 Jun 2022 13:20:15 +0200 Subject: [PATCH 06/13] Lint --- .../src/components/Groups/GroupsList.vue | 2 +- .../components/Users/SideBar/DetailsPanel.vue | 9 ++--- .../components/Users/SideBar/EditPanel.vue | 2 +- .../Users/SideBar/GroupAssignmentsPanel.vue | 18 ++++----- .../components/Users/SideBar/UserInfoBox.vue | 17 +++++---- .../src/components/Users/UsersList.vue | 5 ++- .../src/views/Groups.vue | 4 +- .../src/views/Users.vue | 37 +++++++++++-------- packages/web-client/src/index.ts | 30 ++++++++++++--- 9 files changed, 74 insertions(+), 50 deletions(-) diff --git a/packages/web-app-user-management/src/components/Groups/GroupsList.vue b/packages/web-app-user-management/src/components/Groups/GroupsList.vue index a0f436728f5..7a8fc4a3ac6 100644 --- a/packages/web-app-user-management/src/components/Groups/GroupsList.vue +++ b/packages/web-app-user-management/src/components/Groups/GroupsList.vue @@ -33,7 +33,7 @@ diff --git a/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue b/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue index 36621ddcc11..a7a7c59776a 100644 --- a/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue +++ b/packages/web-app-user-management/src/components/Users/SideBar/UserInfoBox.vue @@ -1,23 +1,26 @@