Skip to content

Commit

Permalink
Contributor type; account host to also be user (#6214)
Browse files Browse the repository at this point in the history
* partially updated to work with Contributor type; account host to also be org; wip

* server-3900 fix compile errors

* Adjusted code to work with Contributor type

* fixed

---------

Co-authored-by: bobbykolev <bobbykolev@abv.bg>
Co-authored-by: Andrew Pazniak <andrew.pazniak@gmail.com>
  • Loading branch information
3 people authored May 23, 2024
1 parent 0159ac0 commit 20e3a82
Show file tree
Hide file tree
Showing 24 changed files with 1,727 additions and 660 deletions.
122 changes: 53 additions & 69 deletions src/core/apollo/generated/apollo-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,19 @@ export type CommunityGuidelinesFieldPolicy = {
id?: FieldPolicy<any> | FieldReadFunction<any>;
profile?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type CommunityGuidelinesTemplateKeySpecifier = (
| 'authorization'
| 'guidelines'
| 'id'
| 'profile'
| CommunityGuidelinesTemplateKeySpecifier
)[];
export type CommunityGuidelinesTemplateFieldPolicy = {
authorization?: FieldPolicy<any> | FieldReadFunction<any>;
guidelines?: FieldPolicy<any> | FieldReadFunction<any>;
id?: FieldPolicy<any> | FieldReadFunction<any>;
profile?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type CommunityPolicyKeySpecifier = ('admin' | 'id' | 'lead' | 'member' | CommunityPolicyKeySpecifier)[];
export type CommunityPolicyFieldPolicy = {
admin?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -954,6 +967,21 @@ export type ContextFieldPolicy = {
vision?: FieldPolicy<any> | FieldReadFunction<any>;
who?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type ContributorKeySpecifier = (
| 'agent'
| 'authorization'
| 'id'
| 'nameID'
| 'profile'
| ContributorKeySpecifier
)[];
export type ContributorFieldPolicy = {
agent?: FieldPolicy<any> | FieldReadFunction<any>;
authorization?: FieldPolicy<any> | FieldReadFunction<any>;
id?: FieldPolicy<any> | FieldReadFunction<any>;
nameID?: FieldPolicy<any> | FieldReadFunction<any>;
profile?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type ContributorRolesKeySpecifier = (
| 'applications'
| 'id'
Expand Down Expand Up @@ -1400,6 +1428,8 @@ export type LookupQueryResultsKeySpecifier = (
| 'calloutTemplate'
| 'collaboration'
| 'community'
| 'communityGuidelines'
| 'communityGuidelinesTemplate'
| 'context'
| 'document'
| 'innovationFlow'
Expand All @@ -1424,6 +1454,8 @@ export type LookupQueryResultsFieldPolicy = {
calloutTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
collaboration?: FieldPolicy<any> | FieldReadFunction<any>;
community?: FieldPolicy<any> | FieldReadFunction<any>;
communityGuidelines?: FieldPolicy<any> | FieldReadFunction<any>;
communityGuidelinesTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
context?: FieldPolicy<any> | FieldReadFunction<any>;
document?: FieldPolicy<any> | FieldReadFunction<any>;
innovationFlow?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -1506,6 +1538,7 @@ export type MutationKeySpecifier = (
| 'createActorGroup'
| 'createCalloutOnCollaboration'
| 'createCalloutTemplate'
| 'createCommunityGuidelinesTemplate'
| 'createContributionOnCallout'
| 'createDiscussion'
| 'createEventOnCalendar'
Expand Down Expand Up @@ -1665,6 +1698,7 @@ export type MutationFieldPolicy = {
createActorGroup?: FieldPolicy<any> | FieldReadFunction<any>;
createCalloutOnCollaboration?: FieldPolicy<any> | FieldReadFunction<any>;
createCalloutTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
createCommunityGuidelinesTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
createContributionOnCallout?: FieldPolicy<any> | FieldReadFunction<any>;
createDiscussion?: FieldPolicy<any> | FieldReadFunction<any>;
createEventOnCalendar?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -2246,60 +2280,6 @@ export type RelayPaginatedSpacePageInfoFieldPolicy = {
hasPreviousPage?: FieldPolicy<any> | FieldReadFunction<any>;
startCursor?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type RelayPaginatedUserKeySpecifier = (
| 'accountUpn'
| 'agent'
| 'authorization'
| 'communityRooms'
| 'directRooms'
| 'email'
| 'firstName'
| 'gender'
| 'id'
| 'isContactable'
| 'lastName'
| 'nameID'
| 'phone'
| 'preferences'
| 'profile'
| 'storageAggregator'
| RelayPaginatedUserKeySpecifier
)[];
export type RelayPaginatedUserFieldPolicy = {
accountUpn?: FieldPolicy<any> | FieldReadFunction<any>;
agent?: FieldPolicy<any> | FieldReadFunction<any>;
authorization?: FieldPolicy<any> | FieldReadFunction<any>;
communityRooms?: FieldPolicy<any> | FieldReadFunction<any>;
directRooms?: FieldPolicy<any> | FieldReadFunction<any>;
email?: FieldPolicy<any> | FieldReadFunction<any>;
firstName?: FieldPolicy<any> | FieldReadFunction<any>;
gender?: FieldPolicy<any> | FieldReadFunction<any>;
id?: FieldPolicy<any> | FieldReadFunction<any>;
isContactable?: FieldPolicy<any> | FieldReadFunction<any>;
lastName?: FieldPolicy<any> | FieldReadFunction<any>;
nameID?: FieldPolicy<any> | FieldReadFunction<any>;
phone?: FieldPolicy<any> | FieldReadFunction<any>;
preferences?: FieldPolicy<any> | FieldReadFunction<any>;
profile?: FieldPolicy<any> | FieldReadFunction<any>;
storageAggregator?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type RelayPaginatedUserEdgeKeySpecifier = ('node' | RelayPaginatedUserEdgeKeySpecifier)[];
export type RelayPaginatedUserEdgeFieldPolicy = {
node?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type RelayPaginatedUserPageInfoKeySpecifier = (
| 'endCursor'
| 'hasNextPage'
| 'hasPreviousPage'
| 'startCursor'
| RelayPaginatedUserPageInfoKeySpecifier
)[];
export type RelayPaginatedUserPageInfoFieldPolicy = {
endCursor?: FieldPolicy<any> | FieldReadFunction<any>;
hasNextPage?: FieldPolicy<any> | FieldReadFunction<any>;
hasPreviousPage?: FieldPolicy<any> | FieldReadFunction<any>;
startCursor?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type RolesResultKeySpecifier = ('displayName' | 'id' | 'nameID' | 'roles' | RolesResultKeySpecifier)[];
export type RolesResultFieldPolicy = {
displayName?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -2758,6 +2738,10 @@ export type TaskFieldPolicy = {
export type TemplatesSetKeySpecifier = (
| 'authorization'
| 'calloutTemplates'
| 'calloutTemplatesCount'
| 'communityGuidelinesTemplate'
| 'communityGuidelinesTemplates'
| 'communityGuidelinesTemplatesCount'
| 'id'
| 'innovationFlowTemplate'
| 'innovationFlowTemplates'
Expand All @@ -2773,6 +2757,10 @@ export type TemplatesSetKeySpecifier = (
export type TemplatesSetFieldPolicy = {
authorization?: FieldPolicy<any> | FieldReadFunction<any>;
calloutTemplates?: FieldPolicy<any> | FieldReadFunction<any>;
calloutTemplatesCount?: FieldPolicy<any> | FieldReadFunction<any>;
communityGuidelinesTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
communityGuidelinesTemplates?: FieldPolicy<any> | FieldReadFunction<any>;
communityGuidelinesTemplatesCount?: FieldPolicy<any> | FieldReadFunction<any>;
id?: FieldPolicy<any> | FieldReadFunction<any>;
innovationFlowTemplate?: FieldPolicy<any> | FieldReadFunction<any>;
innovationFlowTemplates?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -3260,6 +3248,13 @@ export type StrictTypedTypePolicies = {
keyFields?: false | CommunityGuidelinesKeySpecifier | (() => undefined | CommunityGuidelinesKeySpecifier);
fields?: CommunityGuidelinesFieldPolicy;
};
CommunityGuidelinesTemplate?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?:
| false
| CommunityGuidelinesTemplateKeySpecifier
| (() => undefined | CommunityGuidelinesTemplateKeySpecifier);
fields?: CommunityGuidelinesTemplateFieldPolicy;
};
CommunityPolicy?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | CommunityPolicyKeySpecifier | (() => undefined | CommunityPolicyKeySpecifier);
fields?: CommunityPolicyFieldPolicy;
Expand All @@ -3276,6 +3271,10 @@ export type StrictTypedTypePolicies = {
keyFields?: false | ContextKeySpecifier | (() => undefined | ContextKeySpecifier);
fields?: ContextFieldPolicy;
};
Contributor?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | ContributorKeySpecifier | (() => undefined | ContributorKeySpecifier);
fields?: ContributorFieldPolicy;
};
ContributorRoles?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | ContributorRolesKeySpecifier | (() => undefined | ContributorRolesKeySpecifier);
fields?: ContributorRolesFieldPolicy;
Expand Down Expand Up @@ -3549,21 +3548,6 @@ export type StrictTypedTypePolicies = {
| (() => undefined | RelayPaginatedSpacePageInfoKeySpecifier);
fields?: RelayPaginatedSpacePageInfoFieldPolicy;
};
RelayPaginatedUser?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | RelayPaginatedUserKeySpecifier | (() => undefined | RelayPaginatedUserKeySpecifier);
fields?: RelayPaginatedUserFieldPolicy;
};
RelayPaginatedUserEdge?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | RelayPaginatedUserEdgeKeySpecifier | (() => undefined | RelayPaginatedUserEdgeKeySpecifier);
fields?: RelayPaginatedUserEdgeFieldPolicy;
};
RelayPaginatedUserPageInfo?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?:
| false
| RelayPaginatedUserPageInfoKeySpecifier
| (() => undefined | RelayPaginatedUserPageInfoKeySpecifier);
fields?: RelayPaginatedUserPageInfoFieldPolicy;
};
RolesResult?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | RolesResultKeySpecifier | (() => undefined | RolesResultKeySpecifier);
fields?: RolesResultFieldPolicy;
Expand Down
Loading

0 comments on commit 20e3a82

Please sign in to comment.