From 322cf704998b02366975fefec57a397fe15b5525 Mon Sep 17 00:00:00 2001 From: Patryk Andrzejewski Date: Tue, 7 Mar 2023 13:30:57 +0100 Subject: [PATCH] Fix theme togle, sidebar menu styling (#3293) * Sync storage, style sidebar * Remove comments --- src/components/Sidebar/menu/ItemGroup.tsx | 10 +- src/components/Sidebar/menu/SingleItem.tsx | 12 +- src/components/Sidebar/user/Controls.tsx | 32 +- src/graphql/hooks.generated.ts | 1246 ++++++++++---------- src/graphql/types.generated.ts | 218 ++-- 5 files changed, 776 insertions(+), 742 deletions(-) diff --git a/src/components/Sidebar/menu/ItemGroup.tsx b/src/components/Sidebar/menu/ItemGroup.tsx index a68d91145..1e660d3a7 100644 --- a/src/components/Sidebar/menu/ItemGroup.tsx +++ b/src/components/Sidebar/menu/ItemGroup.tsx @@ -22,7 +22,6 @@ export const ItemGroup: React.FC = ({ menuItem }) => { = ({ menuItem }) => { to={menuItem?.url ?? ""} className={sprinkles({ width: "100%", + display: "block", })} > - + {menuItem.icon} {menuItem.label} diff --git a/src/components/Sidebar/menu/SingleItem.tsx b/src/components/Sidebar/menu/SingleItem.tsx index 652940700..d8fce5b9b 100644 --- a/src/components/Sidebar/menu/SingleItem.tsx +++ b/src/components/Sidebar/menu/SingleItem.tsx @@ -27,6 +27,7 @@ export const SingleItem: React.FC = ({ menuItem }) => { return ( = ({ menuItem }) => { - + {menuItem.icon} {menuItem.label} diff --git a/src/components/Sidebar/user/Controls.tsx b/src/components/Sidebar/user/Controls.tsx index 736afa639..352aff91b 100644 --- a/src/components/Sidebar/user/Controls.tsx +++ b/src/components/Sidebar/user/Controls.tsx @@ -11,22 +11,44 @@ import { sprinkles, Text, } from "@saleor/macaw-ui/next"; -import React from "react"; +import React, { useEffect } from "react"; import { FormattedMessage } from "react-intl"; import { Link } from "react-router-dom"; import { ThemeSwitcher } from "./ThemeSwitcher"; -export const UserControls = () => { - const { user, logout } = useUser(); +const useLegacyThemeHandler = () => { const { theme, setTheme } = useTheme(); const { setTheme: setLegacyTheme } = useLegacyTheme(); - const handleClick = () => { + const changeTheme = () => { setLegacyTheme(theme === "defaultLight" ? "dark" : "light"); setTheme(theme === "defaultLight" ? "defaultDark" : "defaultLight"); }; + const handleStorage = (event: StorageEvent) => { + if (!["macaw-ui-theme", "activeMacawUITheme"].includes(event.key)) { + return; + } + + const isDark = event.newValue.toLowerCase().includes("dark"); + setLegacyTheme(isDark ? "dark" : "light"); + setTheme(isDark ? "defaultDark" : "defaultLight"); + }; + + useEffect(() => { + window.addEventListener("storage", handleStorage); + + return () => window.removeEventListener("storage", handleStorage); + }, []); + + return { changeTheme, theme }; +}; + +export const UserControls = () => { + const { user, logout } = useUser(); + const { changeTheme, theme } = useLegacyThemeHandler(); + return ( @@ -88,7 +110,7 @@ export const UserControls = () => { alignItems="center" gap={5} marginTop={3} - onClick={handleClick} + onClick={changeTheme} {...listItemStyles} data-test-id="theme-switch" > diff --git a/src/graphql/hooks.generated.ts b/src/graphql/hooks.generated.ts index 89d89b51a..5055258c6 100644 --- a/src/graphql/hooks.generated.ts +++ b/src/graphql/hooks.generated.ts @@ -2844,6 +2844,629 @@ export const WebhookDetailsFragmentDoc = gql` customHeaders } ${WebhookFragmentDoc}`; +export const AppCreateDocument = gql` + mutation AppCreate($input: AppInput!) { + appCreate(input: $input) { + authToken + app { + ...App + } + errors { + ...AppError + } + } +} + ${AppFragmentDoc} +${AppErrorFragmentDoc}`; +export type AppCreateMutationFn = Apollo.MutationFunction; + +/** + * __useAppCreateMutation__ + * + * To run a mutation, you first call `useAppCreateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppCreateMutation` 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 [appCreateMutation, { data, loading, error }] = useAppCreateMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useAppCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppCreateDocument, options); + } +export type AppCreateMutationHookResult = ReturnType; +export type AppCreateMutationResult = Apollo.MutationResult; +export type AppCreateMutationOptions = Apollo.BaseMutationOptions; +export const AppDeleteDocument = gql` + mutation AppDelete($id: ID!) { + appDelete(id: $id) { + app { + ...App + } + errors { + ...AppError + } + } +} + ${AppFragmentDoc} +${AppErrorFragmentDoc}`; +export type AppDeleteMutationFn = Apollo.MutationFunction; + +/** + * __useAppDeleteMutation__ + * + * To run a mutation, you first call `useAppDeleteMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppDeleteMutation` 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 [appDeleteMutation, { data, loading, error }] = useAppDeleteMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppDeleteDocument, options); + } +export type AppDeleteMutationHookResult = ReturnType; +export type AppDeleteMutationResult = Apollo.MutationResult; +export type AppDeleteMutationOptions = Apollo.BaseMutationOptions; +export const AppDeleteFailedInstallationDocument = gql` + mutation AppDeleteFailedInstallation($id: ID!) { + appDeleteFailedInstallation(id: $id) { + appInstallation { + id + status + appName + message + } + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppDeleteFailedInstallationMutationFn = Apollo.MutationFunction; + +/** + * __useAppDeleteFailedInstallationMutation__ + * + * To run a mutation, you first call `useAppDeleteFailedInstallationMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppDeleteFailedInstallationMutation` 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 [appDeleteFailedInstallationMutation, { data, loading, error }] = useAppDeleteFailedInstallationMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppDeleteFailedInstallationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppDeleteFailedInstallationDocument, options); + } +export type AppDeleteFailedInstallationMutationHookResult = ReturnType; +export type AppDeleteFailedInstallationMutationResult = Apollo.MutationResult; +export type AppDeleteFailedInstallationMutationOptions = Apollo.BaseMutationOptions; +export const AppFetchDocument = gql` + mutation AppFetch($manifestUrl: String!) { + appFetchManifest(manifestUrl: $manifestUrl) { + manifest { + ...AppManifest + } + errors { + ...AppError + } + } +} + ${AppManifestFragmentDoc} +${AppErrorFragmentDoc}`; +export type AppFetchMutationFn = Apollo.MutationFunction; + +/** + * __useAppFetchMutation__ + * + * To run a mutation, you first call `useAppFetchMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppFetchMutation` 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 [appFetchMutation, { data, loading, error }] = useAppFetchMutation({ + * variables: { + * manifestUrl: // value for 'manifestUrl' + * }, + * }); + */ +export function useAppFetchMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppFetchDocument, options); + } +export type AppFetchMutationHookResult = ReturnType; +export type AppFetchMutationResult = Apollo.MutationResult; +export type AppFetchMutationOptions = Apollo.BaseMutationOptions; +export const AppInstallDocument = gql` + mutation AppInstall($input: AppInstallInput!) { + appInstall(input: $input) { + appInstallation { + id + status + appName + manifestUrl + } + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppInstallMutationFn = Apollo.MutationFunction; + +/** + * __useAppInstallMutation__ + * + * To run a mutation, you first call `useAppInstallMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppInstallMutation` 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 [appInstallMutation, { data, loading, error }] = useAppInstallMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useAppInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppInstallDocument, options); + } +export type AppInstallMutationHookResult = ReturnType; +export type AppInstallMutationResult = Apollo.MutationResult; +export type AppInstallMutationOptions = Apollo.BaseMutationOptions; +export const AppRetryInstallDocument = gql` + mutation AppRetryInstall($id: ID!) { + appRetryInstall(id: $id) { + appInstallation { + id + status + appName + manifestUrl + } + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppRetryInstallMutationFn = Apollo.MutationFunction; + +/** + * __useAppRetryInstallMutation__ + * + * To run a mutation, you first call `useAppRetryInstallMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppRetryInstallMutation` 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 [appRetryInstallMutation, { data, loading, error }] = useAppRetryInstallMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppRetryInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppRetryInstallDocument, options); + } +export type AppRetryInstallMutationHookResult = ReturnType; +export type AppRetryInstallMutationResult = Apollo.MutationResult; +export type AppRetryInstallMutationOptions = Apollo.BaseMutationOptions; +export const AppUpdateDocument = gql` + mutation AppUpdate($id: ID!, $input: AppInput!) { + appUpdate(id: $id, input: $input) { + app { + ...App + permissions { + code + name + } + } + errors { + ...AppError + message + permissions + } + } +} + ${AppFragmentDoc} +${AppErrorFragmentDoc}`; +export type AppUpdateMutationFn = Apollo.MutationFunction; + +/** + * __useAppUpdateMutation__ + * + * To run a mutation, you first call `useAppUpdateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppUpdateMutation` 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 [appUpdateMutation, { data, loading, error }] = useAppUpdateMutation({ + * variables: { + * id: // value for 'id' + * input: // value for 'input' + * }, + * }); + */ +export function useAppUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppUpdateDocument, options); + } +export type AppUpdateMutationHookResult = ReturnType; +export type AppUpdateMutationResult = Apollo.MutationResult; +export type AppUpdateMutationOptions = Apollo.BaseMutationOptions; +export const AppTokenCreateDocument = gql` + mutation AppTokenCreate($input: AppTokenInput!) { + appTokenCreate(input: $input) { + appToken { + name + authToken + id + } + authToken + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppTokenCreateMutationFn = Apollo.MutationFunction; + +/** + * __useAppTokenCreateMutation__ + * + * To run a mutation, you first call `useAppTokenCreateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppTokenCreateMutation` 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 [appTokenCreateMutation, { data, loading, error }] = useAppTokenCreateMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useAppTokenCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppTokenCreateDocument, options); + } +export type AppTokenCreateMutationHookResult = ReturnType; +export type AppTokenCreateMutationResult = Apollo.MutationResult; +export type AppTokenCreateMutationOptions = Apollo.BaseMutationOptions; +export const AppTokenDeleteDocument = gql` + mutation AppTokenDelete($id: ID!) { + appTokenDelete(id: $id) { + appToken { + name + authToken + id + } + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppTokenDeleteMutationFn = Apollo.MutationFunction; + +/** + * __useAppTokenDeleteMutation__ + * + * To run a mutation, you first call `useAppTokenDeleteMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppTokenDeleteMutation` 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 [appTokenDeleteMutation, { data, loading, error }] = useAppTokenDeleteMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppTokenDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppTokenDeleteDocument, options); + } +export type AppTokenDeleteMutationHookResult = ReturnType; +export type AppTokenDeleteMutationResult = Apollo.MutationResult; +export type AppTokenDeleteMutationOptions = Apollo.BaseMutationOptions; +export const AppActivateDocument = gql` + mutation AppActivate($id: ID!) { + appActivate(id: $id) { + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppActivateMutationFn = Apollo.MutationFunction; + +/** + * __useAppActivateMutation__ + * + * To run a mutation, you first call `useAppActivateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppActivateMutation` 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 [appActivateMutation, { data, loading, error }] = useAppActivateMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppActivateDocument, options); + } +export type AppActivateMutationHookResult = ReturnType; +export type AppActivateMutationResult = Apollo.MutationResult; +export type AppActivateMutationOptions = Apollo.BaseMutationOptions; +export const AppDeactivateDocument = gql` + mutation AppDeactivate($id: ID!) { + appDeactivate(id: $id) { + errors { + ...AppError + } + } +} + ${AppErrorFragmentDoc}`; +export type AppDeactivateMutationFn = Apollo.MutationFunction; + +/** + * __useAppDeactivateMutation__ + * + * To run a mutation, you first call `useAppDeactivateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAppDeactivateMutation` 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 [appDeactivateMutation, { data, loading, error }] = useAppDeactivateMutation({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useMutation(AppDeactivateDocument, options); + } +export type AppDeactivateMutationHookResult = ReturnType; +export type AppDeactivateMutationResult = Apollo.MutationResult; +export type AppDeactivateMutationOptions = Apollo.BaseMutationOptions; +export const AppsListDocument = gql` + query AppsList($before: String, $after: String, $first: Int, $last: Int, $sort: AppSortingInput, $filter: AppFilterInput) { + apps( + before: $before + after: $after + first: $first + last: $last + sortBy: $sort + filter: $filter + ) { + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + totalCount + edges { + node { + ...AppListItem + } + } + } +} + ${AppListItemFragmentDoc}`; + +/** + * __useAppsListQuery__ + * + * To run a query within a React component, call `useAppsListQuery` and pass it any options that fit your needs. + * When your component renders, `useAppsListQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @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; + * + * @example + * const { data, loading, error } = useAppsListQuery({ + * variables: { + * before: // value for 'before' + * after: // value for 'after' + * first: // value for 'first' + * last: // value for 'last' + * sort: // value for 'sort' + * filter: // value for 'filter' + * }, + * }); + */ +export function useAppsListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(AppsListDocument, options); + } +export function useAppsListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(AppsListDocument, options); + } +export type AppsListQueryHookResult = ReturnType; +export type AppsListLazyQueryHookResult = ReturnType; +export type AppsListQueryResult = Apollo.QueryResult; +export const AppsInstallationsDocument = gql` + query AppsInstallations { + appsInstallations { + ...AppInstallation + } +} + ${AppInstallationFragmentDoc}`; + +/** + * __useAppsInstallationsQuery__ + * + * To run a query within a React component, call `useAppsInstallationsQuery` and pass it any options that fit your needs. + * When your component renders, `useAppsInstallationsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @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; + * + * @example + * const { data, loading, error } = useAppsInstallationsQuery({ + * variables: { + * }, + * }); + */ +export function useAppsInstallationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(AppsInstallationsDocument, options); + } +export function useAppsInstallationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(AppsInstallationsDocument, options); + } +export type AppsInstallationsQueryHookResult = ReturnType; +export type AppsInstallationsLazyQueryHookResult = ReturnType; +export type AppsInstallationsQueryResult = Apollo.QueryResult; +export const AppDocument = gql` + query App($id: ID!) { + app(id: $id) { + ...App + aboutApp + permissions { + code + name + } + dataPrivacy + dataPrivacyUrl + } +} + ${AppFragmentDoc}`; + +/** + * __useAppQuery__ + * + * To run a query within a React component, call `useAppQuery` and pass it any options that fit your needs. + * When your component renders, `useAppQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @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; + * + * @example + * const { data, loading, error } = useAppQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useAppQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(AppDocument, options); + } +export function useAppLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(AppDocument, options); + } +export type AppQueryHookResult = ReturnType; +export type AppLazyQueryHookResult = ReturnType; +export type AppQueryResult = Apollo.QueryResult; +export const ExtensionListDocument = gql` + query ExtensionList($filter: AppExtensionFilterInput!) { + appExtensions(filter: $filter, first: 100) { + edges { + node { + id + label + url + mount + target + accessToken + permissions { + code + } + app { + id + appUrl + } + } + } + } +} + `; + +/** + * __useExtensionListQuery__ + * + * To run a query within a React component, call `useExtensionListQuery` and pass it any options that fit your needs. + * When your component renders, `useExtensionListQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @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; + * + * @example + * const { data, loading, error } = useExtensionListQuery({ + * variables: { + * filter: // value for 'filter' + * }, + * }); + */ +export function useExtensionListQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useQuery(ExtensionListDocument, options); + } +export function useExtensionListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return ApolloReactHooks.useLazyQuery(ExtensionListDocument, options); + } +export type ExtensionListQueryHookResult = ReturnType; +export type ExtensionListLazyQueryHookResult = ReturnType; +export type ExtensionListQueryResult = Apollo.QueryResult; export const AttributeBulkDeleteDocument = gql` mutation AttributeBulkDelete($ids: [ID!]!) { attributeBulkDelete(ids: $ids) { @@ -7628,629 +8251,6 @@ export function useMenuDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQuery export type MenuDetailsQueryHookResult = ReturnType; export type MenuDetailsLazyQueryHookResult = ReturnType; export type MenuDetailsQueryResult = Apollo.QueryResult; -export const AppCreateDocument = gql` - mutation AppCreate($input: AppInput!) { - appCreate(input: $input) { - authToken - app { - ...App - } - errors { - ...AppError - } - } -} - ${AppFragmentDoc} -${AppErrorFragmentDoc}`; -export type AppCreateMutationFn = Apollo.MutationFunction; - -/** - * __useAppCreateMutation__ - * - * To run a mutation, you first call `useAppCreateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppCreateMutation` 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 [appCreateMutation, { data, loading, error }] = useAppCreateMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useAppCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppCreateDocument, options); - } -export type AppCreateMutationHookResult = ReturnType; -export type AppCreateMutationResult = Apollo.MutationResult; -export type AppCreateMutationOptions = Apollo.BaseMutationOptions; -export const AppDeleteDocument = gql` - mutation AppDelete($id: ID!) { - appDelete(id: $id) { - app { - ...App - } - errors { - ...AppError - } - } -} - ${AppFragmentDoc} -${AppErrorFragmentDoc}`; -export type AppDeleteMutationFn = Apollo.MutationFunction; - -/** - * __useAppDeleteMutation__ - * - * To run a mutation, you first call `useAppDeleteMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppDeleteMutation` 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 [appDeleteMutation, { data, loading, error }] = useAppDeleteMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppDeleteDocument, options); - } -export type AppDeleteMutationHookResult = ReturnType; -export type AppDeleteMutationResult = Apollo.MutationResult; -export type AppDeleteMutationOptions = Apollo.BaseMutationOptions; -export const AppDeleteFailedInstallationDocument = gql` - mutation AppDeleteFailedInstallation($id: ID!) { - appDeleteFailedInstallation(id: $id) { - appInstallation { - id - status - appName - message - } - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppDeleteFailedInstallationMutationFn = Apollo.MutationFunction; - -/** - * __useAppDeleteFailedInstallationMutation__ - * - * To run a mutation, you first call `useAppDeleteFailedInstallationMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppDeleteFailedInstallationMutation` 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 [appDeleteFailedInstallationMutation, { data, loading, error }] = useAppDeleteFailedInstallationMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppDeleteFailedInstallationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppDeleteFailedInstallationDocument, options); - } -export type AppDeleteFailedInstallationMutationHookResult = ReturnType; -export type AppDeleteFailedInstallationMutationResult = Apollo.MutationResult; -export type AppDeleteFailedInstallationMutationOptions = Apollo.BaseMutationOptions; -export const AppFetchDocument = gql` - mutation AppFetch($manifestUrl: String!) { - appFetchManifest(manifestUrl: $manifestUrl) { - manifest { - ...AppManifest - } - errors { - ...AppError - } - } -} - ${AppManifestFragmentDoc} -${AppErrorFragmentDoc}`; -export type AppFetchMutationFn = Apollo.MutationFunction; - -/** - * __useAppFetchMutation__ - * - * To run a mutation, you first call `useAppFetchMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppFetchMutation` 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 [appFetchMutation, { data, loading, error }] = useAppFetchMutation({ - * variables: { - * manifestUrl: // value for 'manifestUrl' - * }, - * }); - */ -export function useAppFetchMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppFetchDocument, options); - } -export type AppFetchMutationHookResult = ReturnType; -export type AppFetchMutationResult = Apollo.MutationResult; -export type AppFetchMutationOptions = Apollo.BaseMutationOptions; -export const AppInstallDocument = gql` - mutation AppInstall($input: AppInstallInput!) { - appInstall(input: $input) { - appInstallation { - id - status - appName - manifestUrl - } - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppInstallMutationFn = Apollo.MutationFunction; - -/** - * __useAppInstallMutation__ - * - * To run a mutation, you first call `useAppInstallMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppInstallMutation` 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 [appInstallMutation, { data, loading, error }] = useAppInstallMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useAppInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppInstallDocument, options); - } -export type AppInstallMutationHookResult = ReturnType; -export type AppInstallMutationResult = Apollo.MutationResult; -export type AppInstallMutationOptions = Apollo.BaseMutationOptions; -export const AppRetryInstallDocument = gql` - mutation AppRetryInstall($id: ID!) { - appRetryInstall(id: $id) { - appInstallation { - id - status - appName - manifestUrl - } - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppRetryInstallMutationFn = Apollo.MutationFunction; - -/** - * __useAppRetryInstallMutation__ - * - * To run a mutation, you first call `useAppRetryInstallMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppRetryInstallMutation` 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 [appRetryInstallMutation, { data, loading, error }] = useAppRetryInstallMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppRetryInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppRetryInstallDocument, options); - } -export type AppRetryInstallMutationHookResult = ReturnType; -export type AppRetryInstallMutationResult = Apollo.MutationResult; -export type AppRetryInstallMutationOptions = Apollo.BaseMutationOptions; -export const AppUpdateDocument = gql` - mutation AppUpdate($id: ID!, $input: AppInput!) { - appUpdate(id: $id, input: $input) { - app { - ...App - permissions { - code - name - } - } - errors { - ...AppError - message - permissions - } - } -} - ${AppFragmentDoc} -${AppErrorFragmentDoc}`; -export type AppUpdateMutationFn = Apollo.MutationFunction; - -/** - * __useAppUpdateMutation__ - * - * To run a mutation, you first call `useAppUpdateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppUpdateMutation` 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 [appUpdateMutation, { data, loading, error }] = useAppUpdateMutation({ - * variables: { - * id: // value for 'id' - * input: // value for 'input' - * }, - * }); - */ -export function useAppUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppUpdateDocument, options); - } -export type AppUpdateMutationHookResult = ReturnType; -export type AppUpdateMutationResult = Apollo.MutationResult; -export type AppUpdateMutationOptions = Apollo.BaseMutationOptions; -export const AppTokenCreateDocument = gql` - mutation AppTokenCreate($input: AppTokenInput!) { - appTokenCreate(input: $input) { - appToken { - name - authToken - id - } - authToken - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppTokenCreateMutationFn = Apollo.MutationFunction; - -/** - * __useAppTokenCreateMutation__ - * - * To run a mutation, you first call `useAppTokenCreateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppTokenCreateMutation` 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 [appTokenCreateMutation, { data, loading, error }] = useAppTokenCreateMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useAppTokenCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppTokenCreateDocument, options); - } -export type AppTokenCreateMutationHookResult = ReturnType; -export type AppTokenCreateMutationResult = Apollo.MutationResult; -export type AppTokenCreateMutationOptions = Apollo.BaseMutationOptions; -export const AppTokenDeleteDocument = gql` - mutation AppTokenDelete($id: ID!) { - appTokenDelete(id: $id) { - appToken { - name - authToken - id - } - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppTokenDeleteMutationFn = Apollo.MutationFunction; - -/** - * __useAppTokenDeleteMutation__ - * - * To run a mutation, you first call `useAppTokenDeleteMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppTokenDeleteMutation` 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 [appTokenDeleteMutation, { data, loading, error }] = useAppTokenDeleteMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppTokenDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppTokenDeleteDocument, options); - } -export type AppTokenDeleteMutationHookResult = ReturnType; -export type AppTokenDeleteMutationResult = Apollo.MutationResult; -export type AppTokenDeleteMutationOptions = Apollo.BaseMutationOptions; -export const AppActivateDocument = gql` - mutation AppActivate($id: ID!) { - appActivate(id: $id) { - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppActivateMutationFn = Apollo.MutationFunction; - -/** - * __useAppActivateMutation__ - * - * To run a mutation, you first call `useAppActivateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppActivateMutation` 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 [appActivateMutation, { data, loading, error }] = useAppActivateMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppActivateDocument, options); - } -export type AppActivateMutationHookResult = ReturnType; -export type AppActivateMutationResult = Apollo.MutationResult; -export type AppActivateMutationOptions = Apollo.BaseMutationOptions; -export const AppDeactivateDocument = gql` - mutation AppDeactivate($id: ID!) { - appDeactivate(id: $id) { - errors { - ...AppError - } - } -} - ${AppErrorFragmentDoc}`; -export type AppDeactivateMutationFn = Apollo.MutationFunction; - -/** - * __useAppDeactivateMutation__ - * - * To run a mutation, you first call `useAppDeactivateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAppDeactivateMutation` 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 [appDeactivateMutation, { data, loading, error }] = useAppDeactivateMutation({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useMutation(AppDeactivateDocument, options); - } -export type AppDeactivateMutationHookResult = ReturnType; -export type AppDeactivateMutationResult = Apollo.MutationResult; -export type AppDeactivateMutationOptions = Apollo.BaseMutationOptions; -export const AppsListDocument = gql` - query AppsList($before: String, $after: String, $first: Int, $last: Int, $sort: AppSortingInput, $filter: AppFilterInput) { - apps( - before: $before - after: $after - first: $first - last: $last - sortBy: $sort - filter: $filter - ) { - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - totalCount - edges { - node { - ...AppListItem - } - } - } -} - ${AppListItemFragmentDoc}`; - -/** - * __useAppsListQuery__ - * - * To run a query within a React component, call `useAppsListQuery` and pass it any options that fit your needs. - * When your component renders, `useAppsListQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @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; - * - * @example - * const { data, loading, error } = useAppsListQuery({ - * variables: { - * before: // value for 'before' - * after: // value for 'after' - * first: // value for 'first' - * last: // value for 'last' - * sort: // value for 'sort' - * filter: // value for 'filter' - * }, - * }); - */ -export function useAppsListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(AppsListDocument, options); - } -export function useAppsListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(AppsListDocument, options); - } -export type AppsListQueryHookResult = ReturnType; -export type AppsListLazyQueryHookResult = ReturnType; -export type AppsListQueryResult = Apollo.QueryResult; -export const AppsInstallationsDocument = gql` - query AppsInstallations { - appsInstallations { - ...AppInstallation - } -} - ${AppInstallationFragmentDoc}`; - -/** - * __useAppsInstallationsQuery__ - * - * To run a query within a React component, call `useAppsInstallationsQuery` and pass it any options that fit your needs. - * When your component renders, `useAppsInstallationsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @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; - * - * @example - * const { data, loading, error } = useAppsInstallationsQuery({ - * variables: { - * }, - * }); - */ -export function useAppsInstallationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(AppsInstallationsDocument, options); - } -export function useAppsInstallationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(AppsInstallationsDocument, options); - } -export type AppsInstallationsQueryHookResult = ReturnType; -export type AppsInstallationsLazyQueryHookResult = ReturnType; -export type AppsInstallationsQueryResult = Apollo.QueryResult; -export const AppDocument = gql` - query App($id: ID!) { - app(id: $id) { - ...App - aboutApp - permissions { - code - name - } - dataPrivacy - dataPrivacyUrl - } -} - ${AppFragmentDoc}`; - -/** - * __useAppQuery__ - * - * To run a query within a React component, call `useAppQuery` and pass it any options that fit your needs. - * When your component renders, `useAppQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @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; - * - * @example - * const { data, loading, error } = useAppQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useAppQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(AppDocument, options); - } -export function useAppLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(AppDocument, options); - } -export type AppQueryHookResult = ReturnType; -export type AppLazyQueryHookResult = ReturnType; -export type AppQueryResult = Apollo.QueryResult; -export const ExtensionListDocument = gql` - query ExtensionList($filter: AppExtensionFilterInput!) { - appExtensions(filter: $filter, first: 100) { - edges { - node { - id - label - url - mount - target - accessToken - permissions { - code - } - app { - id - appUrl - } - } - } - } -} - `; - -/** - * __useExtensionListQuery__ - * - * To run a query within a React component, call `useExtensionListQuery` and pass it any options that fit your needs. - * When your component renders, `useExtensionListQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @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; - * - * @example - * const { data, loading, error } = useExtensionListQuery({ - * variables: { - * filter: // value for 'filter' - * }, - * }); - */ -export function useExtensionListQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery(ExtensionListDocument, options); - } -export function useExtensionListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery(ExtensionListDocument, options); - } -export type ExtensionListQueryHookResult = ReturnType; -export type ExtensionListLazyQueryHookResult = ReturnType; -export type ExtensionListQueryResult = Apollo.QueryResult; export const OrderCancelDocument = gql` mutation OrderCancel($id: ID!) { orderCancel(id: $id) { diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 59681289c..ac35ecfcd 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -6741,6 +6741,115 @@ export enum WeightUnitsEnum { TONNE = 'TONNE' } +export type AppCreateMutationVariables = Exact<{ + input: AppInput; +}>; + + +export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppDeleteFailedInstallationMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppDeleteFailedInstallationMutation = { __typename: 'Mutation', appDeleteFailedInstallation: { __typename: 'AppDeleteFailedInstallation', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, message: string | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppFetchMutationVariables = Exact<{ + manifestUrl: Scalars['String']; +}>; + + +export type AppFetchMutation = { __typename: 'Mutation', appFetchManifest: { __typename: 'AppFetchManifest', manifest: { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppInstallMutationVariables = Exact<{ + input: AppInstallInput; +}>; + + +export type AppInstallMutation = { __typename: 'Mutation', appInstall: { __typename: 'AppInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppRetryInstallMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppRetryInstallMutation = { __typename: 'Mutation', appRetryInstall: { __typename: 'AppRetryInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: AppInput; +}>; + + +export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; + +export type AppTokenCreateMutationVariables = Exact<{ + input: AppTokenInput; +}>; + + +export type AppTokenCreateMutation = { __typename: 'Mutation', appTokenCreate: { __typename: 'AppTokenCreate', authToken: string | null, appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppTokenDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppTokenDeleteMutation = { __typename: 'Mutation', appTokenDelete: { __typename: 'AppTokenDelete', appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppActivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppActivateMutation = { __typename: 'Mutation', appActivate: { __typename: 'AppActivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppDeactivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppDeactivateMutation = { __typename: 'Mutation', appDeactivate: { __typename: 'AppDeactivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; + +export type AppsListQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sort?: InputMaybe; + filter?: InputMaybe; +}>; + + +export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null } }> } | null }; + +export type AppsInstallationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AppsInstallationsQuery = { __typename: 'Query', appsInstallations: Array<{ __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string }> }; + +export type AppQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; + +export type ExtensionListQueryVariables = Exact<{ + filter: AppExtensionFilterInput; +}>; + + +export type ExtensionListQuery = { __typename: 'Query', appExtensions: { __typename: 'AppExtensionCountableConnection', edges: Array<{ __typename: 'AppExtensionCountableEdge', node: { __typename: 'AppExtension', id: string, label: string, url: string, mount: AppExtensionMountEnum, target: AppExtensionTargetEnum, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum }>, app: { __typename: 'App', id: string, appUrl: string | null } } }> } | null }; + export type AttributeBulkDeleteMutationVariables = Exact<{ ids: Array | Scalars['ID']; }>; @@ -8131,115 +8240,6 @@ export type MenuDetailsQueryVariables = Exact<{ export type MenuDetailsQuery = { __typename: 'Query', menu: { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null } | null }; -export type AppCreateMutationVariables = Exact<{ - input: AppInput; -}>; - - -export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppDeleteFailedInstallationMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppDeleteFailedInstallationMutation = { __typename: 'Mutation', appDeleteFailedInstallation: { __typename: 'AppDeleteFailedInstallation', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, message: string | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppFetchMutationVariables = Exact<{ - manifestUrl: Scalars['String']; -}>; - - -export type AppFetchMutation = { __typename: 'Mutation', appFetchManifest: { __typename: 'AppFetchManifest', manifest: { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppInstallMutationVariables = Exact<{ - input: AppInstallInput; -}>; - - -export type AppInstallMutation = { __typename: 'Mutation', appInstall: { __typename: 'AppInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppRetryInstallMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppRetryInstallMutation = { __typename: 'Mutation', appRetryInstall: { __typename: 'AppRetryInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: AppInput; -}>; - - -export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; - -export type AppTokenCreateMutationVariables = Exact<{ - input: AppTokenInput; -}>; - - -export type AppTokenCreateMutation = { __typename: 'Mutation', appTokenCreate: { __typename: 'AppTokenCreate', authToken: string | null, appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppTokenDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppTokenDeleteMutation = { __typename: 'Mutation', appTokenDelete: { __typename: 'AppTokenDelete', appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppActivateMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppActivateMutation = { __typename: 'Mutation', appActivate: { __typename: 'AppActivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppDeactivateMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppDeactivateMutation = { __typename: 'Mutation', appDeactivate: { __typename: 'AppDeactivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; - -export type AppsListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - sort?: InputMaybe; - filter?: InputMaybe; -}>; - - -export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null } }> } | null }; - -export type AppsInstallationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AppsInstallationsQuery = { __typename: 'Query', appsInstallations: Array<{ __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string }> }; - -export type AppQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks: Array<{ __typename: 'Webhook', id: string, name: string, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; - -export type ExtensionListQueryVariables = Exact<{ - filter: AppExtensionFilterInput; -}>; - - -export type ExtensionListQuery = { __typename: 'Query', appExtensions: { __typename: 'AppExtensionCountableConnection', edges: Array<{ __typename: 'AppExtensionCountableEdge', node: { __typename: 'AppExtension', id: string, label: string, url: string, mount: AppExtensionMountEnum, target: AppExtensionTargetEnum, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum }>, app: { __typename: 'App', id: string, appUrl: string | null } } }> } | null }; - export type OrderCancelMutationVariables = Exact<{ id: Scalars['ID']; }>;