Skip to content

Commit c39321a

Browse files
Merge pull request #5590 from alkem-io/develop
Release: Applications, InnovationFlow, Fixes
2 parents d9ae3eb + ac16fe7 commit c39321a

File tree

63 files changed

+1559
-1306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1559
-1306
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alkemio/client-web",
3-
"version": "0.53.4",
3+
"version": "0.53.5",
44
"description": "Alkemio client, enabling users to interact with Challenges hosted on the Alkemio platform.",
55
"author": "Alkemio Foundation",
66
"repository": {

src/core/apollo/generated/apollo-helpers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ export type MutationKeySpecifier = (
15541554
| 'updateTagset'
15551555
| 'updateUser'
15561556
| 'updateUserGroup'
1557+
| 'updateUserPlatformSettings'
15571558
| 'updateVisual'
15581559
| 'updateWhiteboard'
15591560
| 'updateWhiteboardContentRt'
@@ -1715,6 +1716,7 @@ export type MutationFieldPolicy = {
17151716
updateTagset?: FieldPolicy<any> | FieldReadFunction<any>;
17161717
updateUser?: FieldPolicy<any> | FieldReadFunction<any>;
17171718
updateUserGroup?: FieldPolicy<any> | FieldReadFunction<any>;
1719+
updateUserPlatformSettings?: FieldPolicy<any> | FieldReadFunction<any>;
17181720
updateVisual?: FieldPolicy<any> | FieldReadFunction<any>;
17191721
updateWhiteboard?: FieldPolicy<any> | FieldReadFunction<any>;
17201722
updateWhiteboardContentRt?: FieldPolicy<any> | FieldReadFunction<any>;

src/core/apollo/generated/apollo-hooks.ts

+152-85
Original file line numberDiff line numberDiff line change
@@ -1027,24 +1027,6 @@ export const CalloutWithWhiteboardFragmentDoc = gql`
10271027
}
10281028
${WhiteboardDetailsFragmentDoc}
10291029
`;
1030-
export const CalloutWithWhiteboardRtFragmentDoc = gql`
1031-
fragment CalloutWithWhiteboardRt on Callout {
1032-
id
1033-
nameID
1034-
type
1035-
authorization {
1036-
id
1037-
anonymousReadAccess
1038-
myPrivileges
1039-
}
1040-
framing {
1041-
whiteboardRt {
1042-
...WhiteboardRtDetails
1043-
}
1044-
}
1045-
}
1046-
${WhiteboardRtDetailsFragmentDoc}
1047-
`;
10481030
export const CollaborationWithWhiteboardDetailsFragmentDoc = gql`
10491031
fragment CollaborationWithWhiteboardDetails on Collaboration {
10501032
id
@@ -1688,16 +1670,16 @@ export const PendingMembershipsJourneyProfileFragmentDoc = gql`
16881670
fragment PendingMembershipsJourneyProfile on Profile {
16891671
id
16901672
displayName
1673+
visual(type: $visualType) {
1674+
id
1675+
uri
1676+
}
16911677
... on Profile @include(if: $fetchDetails) {
16921678
tagline
16931679
tagset {
16941680
id
16951681
tags
16961682
}
1697-
visual(type: $visualType) {
1698-
id
1699-
uri
1700-
}
17011683
}
17021684
}
17031685
`;
@@ -2772,6 +2754,7 @@ export const InnovationFlowTemplateCardFragmentDoc = gql`
27722754
profile {
27732755
...TemplateCardProfileInfo
27742756
}
2757+
definition
27752758
}
27762759
${TemplateCardProfileInfoFragmentDoc}
27772760
`;
@@ -8773,69 +8756,6 @@ export function refetchWhiteboardFromCalloutQuery(variables: SchemaTypes.Whitebo
87738756
return { query: WhiteboardFromCalloutDocument, variables: variables };
87748757
}
87758758

8776-
export const WhiteboardRtFromCalloutDocument = gql`
8777-
query WhiteboardRtFromCallout($calloutId: UUID!) {
8778-
lookup {
8779-
callout(ID: $calloutId) {
8780-
...CalloutWithWhiteboardRt
8781-
}
8782-
}
8783-
}
8784-
${CalloutWithWhiteboardRtFragmentDoc}
8785-
`;
8786-
8787-
/**
8788-
* __useWhiteboardRtFromCalloutQuery__
8789-
*
8790-
* To run a query within a React component, call `useWhiteboardRtFromCalloutQuery` and pass it any options that fit your needs.
8791-
* When your component renders, `useWhiteboardRtFromCalloutQuery` returns an object from Apollo Client that contains loading, error, and data properties
8792-
* you can use to render your UI.
8793-
*
8794-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
8795-
*
8796-
* @example
8797-
* const { data, loading, error } = useWhiteboardRtFromCalloutQuery({
8798-
* variables: {
8799-
* calloutId: // value for 'calloutId'
8800-
* },
8801-
* });
8802-
*/
8803-
export function useWhiteboardRtFromCalloutQuery(
8804-
baseOptions: Apollo.QueryHookOptions<
8805-
SchemaTypes.WhiteboardRtFromCalloutQuery,
8806-
SchemaTypes.WhiteboardRtFromCalloutQueryVariables
8807-
>
8808-
) {
8809-
const options = { ...defaultOptions, ...baseOptions };
8810-
return Apollo.useQuery<SchemaTypes.WhiteboardRtFromCalloutQuery, SchemaTypes.WhiteboardRtFromCalloutQueryVariables>(
8811-
WhiteboardRtFromCalloutDocument,
8812-
options
8813-
);
8814-
}
8815-
8816-
export function useWhiteboardRtFromCalloutLazyQuery(
8817-
baseOptions?: Apollo.LazyQueryHookOptions<
8818-
SchemaTypes.WhiteboardRtFromCalloutQuery,
8819-
SchemaTypes.WhiteboardRtFromCalloutQueryVariables
8820-
>
8821-
) {
8822-
const options = { ...defaultOptions, ...baseOptions };
8823-
return Apollo.useLazyQuery<
8824-
SchemaTypes.WhiteboardRtFromCalloutQuery,
8825-
SchemaTypes.WhiteboardRtFromCalloutQueryVariables
8826-
>(WhiteboardRtFromCalloutDocument, options);
8827-
}
8828-
8829-
export type WhiteboardRtFromCalloutQueryHookResult = ReturnType<typeof useWhiteboardRtFromCalloutQuery>;
8830-
export type WhiteboardRtFromCalloutLazyQueryHookResult = ReturnType<typeof useWhiteboardRtFromCalloutLazyQuery>;
8831-
export type WhiteboardRtFromCalloutQueryResult = Apollo.QueryResult<
8832-
SchemaTypes.WhiteboardRtFromCalloutQuery,
8833-
SchemaTypes.WhiteboardRtFromCalloutQueryVariables
8834-
>;
8835-
export function refetchWhiteboardRtFromCalloutQuery(variables: SchemaTypes.WhiteboardRtFromCalloutQueryVariables) {
8836-
return { query: WhiteboardRtFromCalloutDocument, variables: variables };
8837-
}
8838-
88398759
export const WhiteboardWithContentDocument = gql`
88408760
query WhiteboardWithContent($whiteboardId: UUID!) {
88418761
lookup {
@@ -11158,6 +11078,153 @@ export function refetchPlatformUpdatesRoomQuery(variables?: SchemaTypes.Platform
1115811078
return { query: PlatformUpdatesRoomDocument, variables: variables };
1115911079
}
1116011080

11081+
export const CommunityUserPrivilegesWithParentCommunityDocument = gql`
11082+
query communityUserPrivilegesWithParentCommunity(
11083+
$spaceNameId: UUID_NAMEID!
11084+
$challengeNameId: UUID_NAMEID = "mockid"
11085+
$opportunityNameId: UUID_NAMEID = "mockid"
11086+
$includeSpaceCommunity: Boolean = false
11087+
$includeChallenge: Boolean = false
11088+
$includeOpportunity: Boolean = false
11089+
) {
11090+
space(ID: $spaceNameId) {
11091+
id
11092+
community @include(if: $includeSpaceCommunity) {
11093+
id
11094+
myMembershipStatus
11095+
authorization {
11096+
id
11097+
myPrivileges
11098+
}
11099+
}
11100+
challenge(ID: $challengeNameId) @include(if: $includeChallenge) {
11101+
id
11102+
authorization {
11103+
id
11104+
myPrivileges
11105+
}
11106+
community {
11107+
id
11108+
myMembershipStatus
11109+
authorization {
11110+
id
11111+
myPrivileges
11112+
}
11113+
}
11114+
}
11115+
opportunity(ID: $opportunityNameId) @include(if: $includeOpportunity) {
11116+
id
11117+
authorization {
11118+
id
11119+
myPrivileges
11120+
}
11121+
community {
11122+
id
11123+
myMembershipStatus
11124+
authorization {
11125+
id
11126+
myPrivileges
11127+
}
11128+
leadUsers: usersInRole(role: LEAD) {
11129+
id
11130+
profile {
11131+
id
11132+
displayName
11133+
avatar: visual(type: AVATAR) {
11134+
...VisualUri
11135+
}
11136+
location {
11137+
id
11138+
country
11139+
city
11140+
}
11141+
}
11142+
}
11143+
adminUsers: usersInRole(role: ADMIN) {
11144+
id
11145+
profile {
11146+
id
11147+
displayName
11148+
avatar: visual(type: AVATAR) {
11149+
...VisualUri
11150+
}
11151+
location {
11152+
id
11153+
country
11154+
city
11155+
}
11156+
}
11157+
}
11158+
}
11159+
}
11160+
}
11161+
}
11162+
${VisualUriFragmentDoc}
11163+
`;
11164+
11165+
/**
11166+
* __useCommunityUserPrivilegesWithParentCommunityQuery__
11167+
*
11168+
* To run a query within a React component, call `useCommunityUserPrivilegesWithParentCommunityQuery` and pass it any options that fit your needs.
11169+
* When your component renders, `useCommunityUserPrivilegesWithParentCommunityQuery` returns an object from Apollo Client that contains loading, error, and data properties
11170+
* you can use to render your UI.
11171+
*
11172+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
11173+
*
11174+
* @example
11175+
* const { data, loading, error } = useCommunityUserPrivilegesWithParentCommunityQuery({
11176+
* variables: {
11177+
* spaceNameId: // value for 'spaceNameId'
11178+
* challengeNameId: // value for 'challengeNameId'
11179+
* opportunityNameId: // value for 'opportunityNameId'
11180+
* includeSpaceCommunity: // value for 'includeSpaceCommunity'
11181+
* includeChallenge: // value for 'includeChallenge'
11182+
* includeOpportunity: // value for 'includeOpportunity'
11183+
* },
11184+
* });
11185+
*/
11186+
export function useCommunityUserPrivilegesWithParentCommunityQuery(
11187+
baseOptions: Apollo.QueryHookOptions<
11188+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQuery,
11189+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11190+
>
11191+
) {
11192+
const options = { ...defaultOptions, ...baseOptions };
11193+
return Apollo.useQuery<
11194+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQuery,
11195+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11196+
>(CommunityUserPrivilegesWithParentCommunityDocument, options);
11197+
}
11198+
11199+
export function useCommunityUserPrivilegesWithParentCommunityLazyQuery(
11200+
baseOptions?: Apollo.LazyQueryHookOptions<
11201+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQuery,
11202+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11203+
>
11204+
) {
11205+
const options = { ...defaultOptions, ...baseOptions };
11206+
return Apollo.useLazyQuery<
11207+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQuery,
11208+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11209+
>(CommunityUserPrivilegesWithParentCommunityDocument, options);
11210+
}
11211+
11212+
export type CommunityUserPrivilegesWithParentCommunityQueryHookResult = ReturnType<
11213+
typeof useCommunityUserPrivilegesWithParentCommunityQuery
11214+
>;
11215+
export type CommunityUserPrivilegesWithParentCommunityLazyQueryHookResult = ReturnType<
11216+
typeof useCommunityUserPrivilegesWithParentCommunityLazyQuery
11217+
>;
11218+
export type CommunityUserPrivilegesWithParentCommunityQueryResult = Apollo.QueryResult<
11219+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQuery,
11220+
SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11221+
>;
11222+
export function refetchCommunityUserPrivilegesWithParentCommunityQuery(
11223+
variables: SchemaTypes.CommunityUserPrivilegesWithParentCommunityQueryVariables
11224+
) {
11225+
return { query: CommunityUserPrivilegesWithParentCommunityDocument, variables: variables };
11226+
}
11227+
1116111228
export const CommunityUserPrivilegesDocument = gql`
1116211229
query communityUserPrivileges($spaceNameId: UUID_NAMEID!, $communityId: UUID!) {
1116311230
space(ID: $spaceNameId) {

0 commit comments

Comments
 (0)