Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Administration ORG/User/Packs UI update + Org Verification #6866

Merged
merged 13 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/core/apollo/generated/apollo-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type AccountKeySpecifier = (
| 'innovationPacks'
| 'spaces'
| 'storageAggregator'
| 'subscriptions'
| 'type'
| 'updatedDate'
| 'virtualContributors'
Expand All @@ -29,10 +30,16 @@ export type AccountFieldPolicy = {
innovationPacks?: FieldPolicy<any> | FieldReadFunction<any>;
spaces?: FieldPolicy<any> | FieldReadFunction<any>;
storageAggregator?: FieldPolicy<any> | FieldReadFunction<any>;
subscriptions?: FieldPolicy<any> | FieldReadFunction<any>;
type?: FieldPolicy<any> | FieldReadFunction<any>;
updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
virtualContributors?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type AccountSubscriptionKeySpecifier = ('expires' | 'name' | AccountSubscriptionKeySpecifier)[];
export type AccountSubscriptionFieldPolicy = {
expires?: FieldPolicy<any> | FieldReadFunction<any>;
name?: FieldPolicy<any> | FieldReadFunction<any>;
};
export type ActivityCreatedSubscriptionResultKeySpecifier = (
| 'activity'
| ActivityCreatedSubscriptionResultKeySpecifier
Expand Down Expand Up @@ -1398,6 +1405,7 @@ export type DocumentKeySpecifier = (
| 'mimeType'
| 'size'
| 'tagset'
| 'temporaryLocation'
| 'updatedDate'
| 'uploadedDate'
| 'url'
Expand All @@ -1412,6 +1420,7 @@ export type DocumentFieldPolicy = {
mimeType?: FieldPolicy<any> | FieldReadFunction<any>;
size?: FieldPolicy<any> | FieldReadFunction<any>;
tagset?: FieldPolicy<any> | FieldReadFunction<any>;
temporaryLocation?: FieldPolicy<any> | FieldReadFunction<any>;
updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
uploadedDate?: FieldPolicy<any> | FieldReadFunction<any>;
url?: FieldPolicy<any> | FieldReadFunction<any>;
Expand Down Expand Up @@ -3595,6 +3604,10 @@ export type StrictTypedTypePolicies = {
keyFields?: false | AccountKeySpecifier | (() => undefined | AccountKeySpecifier);
fields?: AccountFieldPolicy;
};
AccountSubscription?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?: false | AccountSubscriptionKeySpecifier | (() => undefined | AccountSubscriptionKeySpecifier);
fields?: AccountSubscriptionFieldPolicy;
};
ActivityCreatedSubscriptionResult?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
keyFields?:
| false
Expand Down
218 changes: 218 additions & 0 deletions src/core/apollo/generated/apollo-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4491,6 +4491,10 @@ export const AccountInformationDocument = gql`
spaces {
id
level
authorization {
id
myPrivileges
}
profile {
...AccountItemProfile
cardBanner: visual(type: CARD) {
Expand All @@ -4500,6 +4504,10 @@ export const AccountInformationDocument = gql`
}
community {
id
authorization {
id
myPrivileges
}
}
subspaces {
id
Expand Down Expand Up @@ -11444,21 +11452,152 @@ export function refetchRolesOrganizationQuery(variables: SchemaTypes.RolesOrgani
return { query: RolesOrganizationDocument, variables: variables };
}

export const AssignLicensePlanToAccountDocument = gql`
mutation AssignLicensePlanToAccount($licensePlanId: UUID!, $accountId: UUID!, $licensingId: UUID!) {
assignLicensePlanToAccount(
planData: { accountID: $accountId, licensePlanID: $licensePlanId, licensingID: $licensingId }
) {
id
}
}
`;
export type AssignLicensePlanToAccountMutationFn = Apollo.MutationFunction<
SchemaTypes.AssignLicensePlanToAccountMutation,
SchemaTypes.AssignLicensePlanToAccountMutationVariables
>;

/**
* __useAssignLicensePlanToAccountMutation__
*
* To run a mutation, you first call `useAssignLicensePlanToAccountMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useAssignLicensePlanToAccountMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [assignLicensePlanToAccountMutation, { data, loading, error }] = useAssignLicensePlanToAccountMutation({
* variables: {
* licensePlanId: // value for 'licensePlanId'
* accountId: // value for 'accountId'
* licensingId: // value for 'licensingId'
* },
* });
*/
export function useAssignLicensePlanToAccountMutation(
baseOptions?: Apollo.MutationHookOptions<
SchemaTypes.AssignLicensePlanToAccountMutation,
SchemaTypes.AssignLicensePlanToAccountMutationVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation<
SchemaTypes.AssignLicensePlanToAccountMutation,
SchemaTypes.AssignLicensePlanToAccountMutationVariables
>(AssignLicensePlanToAccountDocument, options);
}

export type AssignLicensePlanToAccountMutationHookResult = ReturnType<typeof useAssignLicensePlanToAccountMutation>;
export type AssignLicensePlanToAccountMutationResult =
Apollo.MutationResult<SchemaTypes.AssignLicensePlanToAccountMutation>;
export type AssignLicensePlanToAccountMutationOptions = Apollo.BaseMutationOptions<
SchemaTypes.AssignLicensePlanToAccountMutation,
SchemaTypes.AssignLicensePlanToAccountMutationVariables
>;
export const RevokeLicensePlanFromAccountDocument = gql`
mutation RevokeLicensePlanFromAccount($licensePlanId: UUID!, $accountId: UUID!, $licensingId: UUID!) {
revokeLicensePlanFromAccount(
planData: { accountID: $accountId, licensePlanID: $licensePlanId, licensingID: $licensingId }
) {
id
}
}
`;
export type RevokeLicensePlanFromAccountMutationFn = Apollo.MutationFunction<
SchemaTypes.RevokeLicensePlanFromAccountMutation,
SchemaTypes.RevokeLicensePlanFromAccountMutationVariables
>;

/**
* __useRevokeLicensePlanFromAccountMutation__
*
* To run a mutation, you first call `useRevokeLicensePlanFromAccountMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useRevokeLicensePlanFromAccountMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [revokeLicensePlanFromAccountMutation, { data, loading, error }] = useRevokeLicensePlanFromAccountMutation({
* variables: {
* licensePlanId: // value for 'licensePlanId'
* accountId: // value for 'accountId'
* licensingId: // value for 'licensingId'
* },
* });
*/
export function useRevokeLicensePlanFromAccountMutation(
baseOptions?: Apollo.MutationHookOptions<
SchemaTypes.RevokeLicensePlanFromAccountMutation,
SchemaTypes.RevokeLicensePlanFromAccountMutationVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation<
SchemaTypes.RevokeLicensePlanFromAccountMutation,
SchemaTypes.RevokeLicensePlanFromAccountMutationVariables
>(RevokeLicensePlanFromAccountDocument, options);
}

export type RevokeLicensePlanFromAccountMutationHookResult = ReturnType<typeof useRevokeLicensePlanFromAccountMutation>;
export type RevokeLicensePlanFromAccountMutationResult =
Apollo.MutationResult<SchemaTypes.RevokeLicensePlanFromAccountMutation>;
export type RevokeLicensePlanFromAccountMutationOptions = Apollo.BaseMutationOptions<
SchemaTypes.RevokeLicensePlanFromAccountMutation,
SchemaTypes.RevokeLicensePlanFromAccountMutationVariables
>;
export const AdminGlobalOrganizationsListDocument = gql`
query adminGlobalOrganizationsList($first: Int!, $after: UUID, $filter: OrganizationFilterInput) {
organizationsPaginated(first: $first, after: $after, filter: $filter) {
organization {
id
account {
id
subscriptions {
name
}
}
profile {
id
url
displayName
}
verification {
id
lifecycle {
id
state
}
}
}
pageInfo {
...PageInfo
}
}
platform {
id
licensing {
id
plans {
id
name
type
licenseCredential
}
}
}
}
${PageInfoFragmentDoc}
`;
Expand Down Expand Up @@ -11521,6 +11660,59 @@ export function refetchAdminGlobalOrganizationsListQuery(
return { query: AdminGlobalOrganizationsListDocument, variables: variables };
}

export const AdminOrganizationVerifyDocument = gql`
mutation adminOrganizationVerify($input: OrganizationVerificationEventInput!) {
eventOnOrganizationVerification(organizationVerificationEventData: $input) {
id
lifecycle {
id
nextEvents
state
}
}
}
`;
export type AdminOrganizationVerifyMutationFn = Apollo.MutationFunction<
SchemaTypes.AdminOrganizationVerifyMutation,
SchemaTypes.AdminOrganizationVerifyMutationVariables
>;

/**
* __useAdminOrganizationVerifyMutation__
*
* To run a mutation, you first call `useAdminOrganizationVerifyMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useAdminOrganizationVerifyMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [adminOrganizationVerifyMutation, { data, loading, error }] = useAdminOrganizationVerifyMutation({
* variables: {
* input: // value for 'input'
* },
* });
*/
export function useAdminOrganizationVerifyMutation(
baseOptions?: Apollo.MutationHookOptions<
SchemaTypes.AdminOrganizationVerifyMutation,
SchemaTypes.AdminOrganizationVerifyMutationVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation<
SchemaTypes.AdminOrganizationVerifyMutation,
SchemaTypes.AdminOrganizationVerifyMutationVariables
>(AdminOrganizationVerifyDocument, options);
}

export type AdminOrganizationVerifyMutationHookResult = ReturnType<typeof useAdminOrganizationVerifyMutation>;
export type AdminOrganizationVerifyMutationResult = Apollo.MutationResult<SchemaTypes.AdminOrganizationVerifyMutation>;
export type AdminOrganizationVerifyMutationOptions = Apollo.BaseMutationOptions<
SchemaTypes.AdminOrganizationVerifyMutation,
SchemaTypes.AdminOrganizationVerifyMutationVariables
>;
export const OrganizationInfoDocument = gql`
query organizationInfo($organizationId: UUID_NAMEID!, $includeAssociates: Boolean = false) {
organization(ID: $organizationId) {
Expand Down Expand Up @@ -12719,6 +12911,12 @@ export const UserListDocument = gql`
usersPaginated(first: $first, after: $after, filter: $filter) {
users {
id
account {
id
subscriptions {
name
}
}
profile {
id
url
Expand All @@ -12731,6 +12929,18 @@ export const UserListDocument = gql`
hasNextPage
}
}
platform {
id
licensing {
id
plans {
id
name
type
licenseCredential
}
}
}
}
`;

Expand Down Expand Up @@ -22756,12 +22966,20 @@ export const NewVirtualContributorMySpacesDocument = gql`
id
community {
id
authorization {
id
myPrivileges
}
}
profile {
id
displayName
url
}
authorization {
id
myPrivileges
}
subspaces {
id
type
Expand Down
Loading