Skip to content

Commit

Permalink
Update libre graph client
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Mar 31, 2023
1 parent 3c01a96 commit d7d937b
Show file tree
Hide file tree
Showing 8 changed files with 533 additions and 197 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/enhancement-update-libregraph
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ libre-graph-api has been updated to v1.0
https://github.com/owncloud/web/pull/8132
https://github.com/owncloud/web/pull/8171
https://github.com/owncloud/web/pull/8250
https://github.com/owncloud/web/pull/8741
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.0-SNAPSHOT
6.5.0-SNAPSHOT
701 changes: 518 additions & 183 deletions packages/web-client/src/generated/api.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/web-client/src/generated/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
/**
* Libre Graph API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
*
* The version of the OpenAPI document: v1.0.1
*
Expand Down
2 changes: 1 addition & 1 deletion packages/web-client/src/generated/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
/**
* Libre Graph API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
*
* The version of the OpenAPI document: v1.0.1
*
Expand Down
2 changes: 1 addition & 1 deletion packages/web-client/src/generated/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
/**
* Libre Graph API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
*
* The version of the OpenAPI document: v1.0.1
*
Expand Down
2 changes: 1 addition & 1 deletion packages/web-client/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
/**
* Libre Graph API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
*
* The version of the OpenAPI document: v1.0.1
*
Expand Down
18 changes: 9 additions & 9 deletions packages/web-client/src/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import {
CollectionOfApplications,
ApplicationsApiFactory,
UserAppRoleAssignmentApiFactory,
AppRoleAssignment
AppRoleAssignment,
ExportPersonalDataRequest
} from './generated'

export interface Graph {
Expand Down Expand Up @@ -55,6 +56,10 @@ export interface Graph {
userId: string,
appRoleAssignment: AppRoleAssignment
) => AxiosPromise<AppRoleAssignment>
exportPersonalData: (
userId: string,
exportPersonalDataRequest?: ExportPersonalDataRequest
) => AxiosPromise<void>
}
groups: {
listGroups: (orderBy?: string) => AxiosPromise<CollectionOfGroup>
Expand Down Expand Up @@ -133,17 +138,16 @@ export const graph = (baseURI: string, axiosClient: AxiosInstance): Graph => {
deleteUser: (userId: string) => userApiFactory.deleteUser(userId),
listUsers: (orderBy?: any, filter?: string) =>
usersApiFactory.listUsers(
0,
0,
'',
filter,
false,
new Set<any>([orderBy]),
new Set<any>([]),
new Set<any>(['memberOf', 'appRoleAssignments'])
),
createUserAppRoleAssignment: (userId: string, appRoleAssignment: AppRoleAssignment) =>
userAppRoleAssignmentApiFactory.userCreateAppRoleAssignments(userId, appRoleAssignment)
userAppRoleAssignmentApiFactory.userCreateAppRoleAssignments(userId, appRoleAssignment),
exportPersonalData: (userId: string, exportPersonalDataRequest?: ExportPersonalDataRequest) =>
userApiFactory.exportPersonalData(userId, exportPersonalDataRequest)
},
groups: {
createGroup: (group: Group) => groupsApiFactory.createGroup(group),
Expand All @@ -152,11 +156,7 @@ export const graph = (baseURI: string, axiosClient: AxiosInstance): Graph => {
deleteGroup: (groupId: string) => groupApiFactory.deleteGroup(groupId),
listGroups: (orderBy?: any) =>
groupsApiFactory.listGroups(
0,
0,
'',
'',
false,
new Set<any>([orderBy]),
new Set<any>([]),
new Set<any>(['members'])
Expand Down

0 comments on commit d7d937b

Please sign in to comment.