|
@@ -131,9 +131,6 @@ export type ListAppsResonse = {
|
|
export type Mutation = {
|
|
export type Mutation = {
|
|
__typename?: 'Mutation';
|
|
__typename?: 'Mutation';
|
|
installApp: App;
|
|
installApp: App;
|
|
- login: TokenResponse;
|
|
|
|
- logout: Scalars['Boolean'];
|
|
|
|
- register: TokenResponse;
|
|
|
|
startApp: App;
|
|
startApp: App;
|
|
stopApp: App;
|
|
stopApp: App;
|
|
uninstallApp: App;
|
|
uninstallApp: App;
|
|
@@ -145,14 +142,6 @@ export type MutationInstallAppArgs = {
|
|
input: AppInputType;
|
|
input: AppInputType;
|
|
};
|
|
};
|
|
|
|
|
|
-export type MutationLoginArgs = {
|
|
|
|
- input: UsernamePasswordInput;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-export type MutationRegisterArgs = {
|
|
|
|
- input: UsernamePasswordInput;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
export type MutationStartAppArgs = {
|
|
export type MutationStartAppArgs = {
|
|
id: Scalars['String'];
|
|
id: Scalars['String'];
|
|
};
|
|
};
|
|
@@ -177,21 +166,13 @@ export type Query = {
|
|
__typename?: 'Query';
|
|
__typename?: 'Query';
|
|
getApp: App;
|
|
getApp: App;
|
|
installedApps: Array<App>;
|
|
installedApps: Array<App>;
|
|
- isConfigured: Scalars['Boolean'];
|
|
|
|
listAppsInfo: ListAppsResonse;
|
|
listAppsInfo: ListAppsResonse;
|
|
- me?: Maybe<User>;
|
|
|
|
- refreshToken?: Maybe<TokenResponse>;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
export type QueryGetAppArgs = {
|
|
export type QueryGetAppArgs = {
|
|
id: Scalars['String'];
|
|
id: Scalars['String'];
|
|
};
|
|
};
|
|
|
|
|
|
-export type TokenResponse = {
|
|
|
|
- __typename?: 'TokenResponse';
|
|
|
|
- token: Scalars['String'];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
export type UpdateInfo = {
|
|
export type UpdateInfo = {
|
|
__typename?: 'UpdateInfo';
|
|
__typename?: 'UpdateInfo';
|
|
current: Scalars['Float'];
|
|
current: Scalars['Float'];
|
|
@@ -199,41 +180,12 @@ export type UpdateInfo = {
|
|
latest: Scalars['Float'];
|
|
latest: Scalars['Float'];
|
|
};
|
|
};
|
|
|
|
|
|
-export type User = {
|
|
|
|
- __typename?: 'User';
|
|
|
|
- createdAt: Scalars['DateTime'];
|
|
|
|
- id: Scalars['ID'];
|
|
|
|
- updatedAt: Scalars['DateTime'];
|
|
|
|
- username: Scalars['String'];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-export type UsernamePasswordInput = {
|
|
|
|
- password: Scalars['String'];
|
|
|
|
- username: Scalars['String'];
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
export type InstallAppMutationVariables = Exact<{
|
|
export type InstallAppMutationVariables = Exact<{
|
|
input: AppInputType;
|
|
input: AppInputType;
|
|
}>;
|
|
}>;
|
|
|
|
|
|
export type InstallAppMutation = { __typename?: 'Mutation'; installApp: { __typename: 'App'; id: string; status: AppStatusEnum } };
|
|
export type InstallAppMutation = { __typename?: 'Mutation'; installApp: { __typename: 'App'; id: string; status: AppStatusEnum } };
|
|
|
|
|
|
-export type LoginMutationVariables = Exact<{
|
|
|
|
- input: UsernamePasswordInput;
|
|
|
|
-}>;
|
|
|
|
-
|
|
|
|
-export type LoginMutation = { __typename?: 'Mutation'; login: { __typename?: 'TokenResponse'; token: string } };
|
|
|
|
-
|
|
|
|
-export type LogoutMutationVariables = Exact<{ [key: string]: never }>;
|
|
|
|
-
|
|
|
|
-export type LogoutMutation = { __typename?: 'Mutation'; logout: boolean };
|
|
|
|
-
|
|
|
|
-export type RegisterMutationVariables = Exact<{
|
|
|
|
- input: UsernamePasswordInput;
|
|
|
|
-}>;
|
|
|
|
-
|
|
|
|
-export type RegisterMutation = { __typename?: 'Mutation'; register: { __typename?: 'TokenResponse'; token: string } };
|
|
|
|
-
|
|
|
|
export type StartAppMutationVariables = Exact<{
|
|
export type StartAppMutationVariables = Exact<{
|
|
id: Scalars['String'];
|
|
id: Scalars['String'];
|
|
}>;
|
|
}>;
|
|
@@ -326,10 +278,6 @@ export type InstalledAppsQuery = {
|
|
}>;
|
|
}>;
|
|
};
|
|
};
|
|
|
|
|
|
-export type ConfiguredQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
-
|
|
|
|
-export type ConfiguredQuery = { __typename?: 'Query'; isConfigured: boolean };
|
|
|
|
-
|
|
|
|
export type ListAppsQueryVariables = Exact<{ [key: string]: never }>;
|
|
export type ListAppsQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
export type ListAppsQuery = {
|
|
export type ListAppsQuery = {
|
|
@@ -353,14 +301,6 @@ export type ListAppsQuery = {
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
-export type MeQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
-
|
|
|
|
-export type MeQuery = { __typename?: 'Query'; me?: { __typename?: 'User'; id: string } | null };
|
|
|
|
-
|
|
|
|
-export type RefreshTokenQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
-
|
|
|
|
-export type RefreshTokenQuery = { __typename?: 'Query'; refreshToken?: { __typename?: 'TokenResponse'; token: string } | null };
|
|
|
|
-
|
|
|
|
export const InstallAppDocument = gql`
|
|
export const InstallAppDocument = gql`
|
|
mutation InstallApp($input: AppInputType!) {
|
|
mutation InstallApp($input: AppInputType!) {
|
|
installApp(input: $input) {
|
|
installApp(input: $input) {
|
|
@@ -396,102 +336,6 @@ export function useInstallAppMutation(baseOptions?: Apollo.MutationHookOptions<I
|
|
export type InstallAppMutationHookResult = ReturnType<typeof useInstallAppMutation>;
|
|
export type InstallAppMutationHookResult = ReturnType<typeof useInstallAppMutation>;
|
|
export type InstallAppMutationResult = Apollo.MutationResult<InstallAppMutation>;
|
|
export type InstallAppMutationResult = Apollo.MutationResult<InstallAppMutation>;
|
|
export type InstallAppMutationOptions = Apollo.BaseMutationOptions<InstallAppMutation, InstallAppMutationVariables>;
|
|
export type InstallAppMutationOptions = Apollo.BaseMutationOptions<InstallAppMutation, InstallAppMutationVariables>;
|
|
-export const LoginDocument = gql`
|
|
|
|
- mutation Login($input: UsernamePasswordInput!) {
|
|
|
|
- login(input: $input) {
|
|
|
|
- token
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-export type LoginMutationFn = Apollo.MutationFunction<LoginMutation, LoginMutationVariables>;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useLoginMutation__
|
|
|
|
- *
|
|
|
|
- * To run a mutation, you first call `useLoginMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useLoginMutation` 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 [loginMutation, { data, loading, error }] = useLoginMutation({
|
|
|
|
- * variables: {
|
|
|
|
- * input: // value for 'input'
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useLoginMutation(baseOptions?: Apollo.MutationHookOptions<LoginMutation, LoginMutationVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useMutation<LoginMutation, LoginMutationVariables>(LoginDocument, options);
|
|
|
|
-}
|
|
|
|
-export type LoginMutationHookResult = ReturnType<typeof useLoginMutation>;
|
|
|
|
-export type LoginMutationResult = Apollo.MutationResult<LoginMutation>;
|
|
|
|
-export type LoginMutationOptions = Apollo.BaseMutationOptions<LoginMutation, LoginMutationVariables>;
|
|
|
|
-export const LogoutDocument = gql`
|
|
|
|
- mutation Logout {
|
|
|
|
- logout
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-export type LogoutMutationFn = Apollo.MutationFunction<LogoutMutation, LogoutMutationVariables>;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useLogoutMutation__
|
|
|
|
- *
|
|
|
|
- * To run a mutation, you first call `useLogoutMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useLogoutMutation` 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 [logoutMutation, { data, loading, error }] = useLogoutMutation({
|
|
|
|
- * variables: {
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useLogoutMutation(baseOptions?: Apollo.MutationHookOptions<LogoutMutation, LogoutMutationVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useMutation<LogoutMutation, LogoutMutationVariables>(LogoutDocument, options);
|
|
|
|
-}
|
|
|
|
-export type LogoutMutationHookResult = ReturnType<typeof useLogoutMutation>;
|
|
|
|
-export type LogoutMutationResult = Apollo.MutationResult<LogoutMutation>;
|
|
|
|
-export type LogoutMutationOptions = Apollo.BaseMutationOptions<LogoutMutation, LogoutMutationVariables>;
|
|
|
|
-export const RegisterDocument = gql`
|
|
|
|
- mutation Register($input: UsernamePasswordInput!) {
|
|
|
|
- register(input: $input) {
|
|
|
|
- token
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-export type RegisterMutationFn = Apollo.MutationFunction<RegisterMutation, RegisterMutationVariables>;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useRegisterMutation__
|
|
|
|
- *
|
|
|
|
- * To run a mutation, you first call `useRegisterMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useRegisterMutation` 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 [registerMutation, { data, loading, error }] = useRegisterMutation({
|
|
|
|
- * variables: {
|
|
|
|
- * input: // value for 'input'
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useRegisterMutation(baseOptions?: Apollo.MutationHookOptions<RegisterMutation, RegisterMutationVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useMutation<RegisterMutation, RegisterMutationVariables>(RegisterDocument, options);
|
|
|
|
-}
|
|
|
|
-export type RegisterMutationHookResult = ReturnType<typeof useRegisterMutation>;
|
|
|
|
-export type RegisterMutationResult = Apollo.MutationResult<RegisterMutation>;
|
|
|
|
-export type RegisterMutationOptions = Apollo.BaseMutationOptions<RegisterMutation, RegisterMutationVariables>;
|
|
|
|
export const StartAppDocument = gql`
|
|
export const StartAppDocument = gql`
|
|
mutation StartApp($id: String!) {
|
|
mutation StartApp($id: String!) {
|
|
startApp(id: $id) {
|
|
startApp(id: $id) {
|
|
@@ -789,38 +633,6 @@ export function useInstalledAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOpti
|
|
export type InstalledAppsQueryHookResult = ReturnType<typeof useInstalledAppsQuery>;
|
|
export type InstalledAppsQueryHookResult = ReturnType<typeof useInstalledAppsQuery>;
|
|
export type InstalledAppsLazyQueryHookResult = ReturnType<typeof useInstalledAppsLazyQuery>;
|
|
export type InstalledAppsLazyQueryHookResult = ReturnType<typeof useInstalledAppsLazyQuery>;
|
|
export type InstalledAppsQueryResult = Apollo.QueryResult<InstalledAppsQuery, InstalledAppsQueryVariables>;
|
|
export type InstalledAppsQueryResult = Apollo.QueryResult<InstalledAppsQuery, InstalledAppsQueryVariables>;
|
|
-export const ConfiguredDocument = gql`
|
|
|
|
- query Configured {
|
|
|
|
- isConfigured
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useConfiguredQuery__
|
|
|
|
- *
|
|
|
|
- * To run a query within a React component, call `useConfiguredQuery` and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useConfiguredQuery` 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 } = useConfiguredQuery({
|
|
|
|
- * variables: {
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useConfiguredQuery(baseOptions?: Apollo.QueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
|
|
|
|
-}
|
|
|
|
-export function useConfiguredLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useLazyQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
|
|
|
|
-}
|
|
|
|
-export type ConfiguredQueryHookResult = ReturnType<typeof useConfiguredQuery>;
|
|
|
|
-export type ConfiguredLazyQueryHookResult = ReturnType<typeof useConfiguredLazyQuery>;
|
|
|
|
-export type ConfiguredQueryResult = Apollo.QueryResult<ConfiguredQuery, ConfiguredQueryVariables>;
|
|
|
|
export const ListAppsDocument = gql`
|
|
export const ListAppsDocument = gql`
|
|
query ListApps {
|
|
query ListApps {
|
|
listAppsInfo {
|
|
listAppsInfo {
|
|
@@ -867,71 +679,3 @@ export function useListAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<L
|
|
export type ListAppsQueryHookResult = ReturnType<typeof useListAppsQuery>;
|
|
export type ListAppsQueryHookResult = ReturnType<typeof useListAppsQuery>;
|
|
export type ListAppsLazyQueryHookResult = ReturnType<typeof useListAppsLazyQuery>;
|
|
export type ListAppsLazyQueryHookResult = ReturnType<typeof useListAppsLazyQuery>;
|
|
export type ListAppsQueryResult = Apollo.QueryResult<ListAppsQuery, ListAppsQueryVariables>;
|
|
export type ListAppsQueryResult = Apollo.QueryResult<ListAppsQuery, ListAppsQueryVariables>;
|
|
-export const MeDocument = gql`
|
|
|
|
- query Me {
|
|
|
|
- me {
|
|
|
|
- id
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useMeQuery__
|
|
|
|
- *
|
|
|
|
- * To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useMeQuery` 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 } = useMeQuery({
|
|
|
|
- * variables: {
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
|
|
|
-}
|
|
|
|
-export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, options);
|
|
|
|
-}
|
|
|
|
-export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
|
|
|
|
-export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
|
|
|
|
-export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
|
|
|
|
-export const RefreshTokenDocument = gql`
|
|
|
|
- query RefreshToken {
|
|
|
|
- refreshToken {
|
|
|
|
- token
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-`;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * __useRefreshTokenQuery__
|
|
|
|
- *
|
|
|
|
- * To run a query within a React component, call `useRefreshTokenQuery` and pass it any options that fit your needs.
|
|
|
|
- * When your component renders, `useRefreshTokenQuery` 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 } = useRefreshTokenQuery({
|
|
|
|
- * variables: {
|
|
|
|
- * },
|
|
|
|
- * });
|
|
|
|
- */
|
|
|
|
-export function useRefreshTokenQuery(baseOptions?: Apollo.QueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
|
|
|
|
-}
|
|
|
|
-export function useRefreshTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
|
|
|
|
- const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
- return Apollo.useLazyQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
|
|
|
|
-}
|
|
|
|
-export type RefreshTokenQueryHookResult = ReturnType<typeof useRefreshTokenQuery>;
|
|
|
|
-export type RefreshTokenLazyQueryHookResult = ReturnType<typeof useRefreshTokenLazyQuery>;
|
|
|
|
-export type RefreshTokenQueryResult = Apollo.QueryResult<RefreshTokenQuery, RefreshTokenQueryVariables>;
|
|
|