Skip to content

Commit

Permalink
Merge pull request #400 from alkem-io/orgs
Browse files Browse the repository at this point in the history
Orgs settings passing cleanly; avoided some role assignment errors that were being thrown
  • Loading branch information
techsmyth authored Dec 27, 2024
2 parents 20b9585 + eea9c09 commit 6831912
Show file tree
Hide file tree
Showing 10 changed files with 411 additions and 363 deletions.
18 changes: 18 additions & 0 deletions server-api/src/core/generated/alkemio-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190765,3 +190765,21 @@ export type VirtualContributorQuery = {
};
};
};

export type GetMyUserInfoQueryVariables = Exact<{ [key: string]: never }>;

export type GetMyUserInfoQuery = {
me: {
user?:
| {
id: string;
nameID: string;
email: string;
profile: { id: string; displayName: string };
agent: { id: string };
account?: { id: string } | undefined;
}
| undefined;
};
platform: { myRoles: Array<PlatformRole> };
};
67 changes: 67 additions & 0 deletions server-api/src/core/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202459,6 +202459,26 @@ export type VirtualContributorQuery = {
};
};

export type GetMyUserInfoQueryVariables = SchemaTypes.Exact<{
[key: string]: never;
}>;

export type GetMyUserInfoQuery = {
me: {
user?:
| {
id: string;
nameID: string;
email: string;
profile: { id: string; displayName: string };
agent: { id: string };
account?: { id: string } | undefined;
}
| undefined;
};
platform: { myRoles: Array<SchemaTypes.PlatformRole> };
};

export const UserDataLightFragmentDoc = gql`
fragment UserDataLight on User {
id
Expand Down Expand Up @@ -206379,6 +206399,30 @@ export const VirtualContributorDocument = gql`
}
${TagsetDetailsFragmentDoc}
`;
export const GetMyUserInfoDocument = gql`
query getMyUserInfo {
me {
user {
id
nameID
email
profile {
id
displayName
}
agent {
id
}
account {
id
}
}
}
platform {
myRoles
}
}
`;

export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
Expand Down Expand Up @@ -206681,6 +206725,7 @@ const GetUserReferenceUriDocumentString = print(GetUserReferenceUriDocument);
const GetUsersDataDocumentString = print(GetUsersDataDocument);
const MeQueryDocumentString = print(MeQueryDocument);
const VirtualContributorDocumentString = print(VirtualContributorDocument);
const GetMyUserInfoDocumentString = print(GetMyUserInfoDocument);
export function getSdk(
client: GraphQLClient,
withWrapper: SdkFunctionWrapper = defaultWrapper
Expand Down Expand Up @@ -210074,6 +210119,28 @@ export function getSdk(
variables
);
},
getMyUserInfo(
variables?: SchemaTypes.GetMyUserInfoQueryVariables,
requestHeaders?: GraphQLClientRequestHeaders
): Promise<{
data: SchemaTypes.GetMyUserInfoQuery;
errors?: GraphQLError[];
extensions?: any;
headers: Headers;
status: number;
}> {
return withWrapper(
wrappedRequestHeaders =>
client.rawRequest<SchemaTypes.GetMyUserInfoQuery>(
GetMyUserInfoDocumentString,
variables,
{ ...requestHeaders, ...wrappedRequestHeaders }
),
'getMyUserInfo',
'query',
variables
);
},
};
}
export type Sdk = ReturnType<typeof getSdk>;
Loading

0 comments on commit 6831912

Please sign in to comment.