|
@@ -21,6 +21,13 @@ export type Scalars = {
|
|
|
JSON: any;
|
|
|
};
|
|
|
|
|
|
+/** Key/value type with complex values. */
|
|
|
+export type KeyComplexValue = {
|
|
|
+ __typename?: 'KeyComplexValue';
|
|
|
+ key: Scalars['String'];
|
|
|
+ value?: Maybe<Scalars['JSON']>;
|
|
|
+};
|
|
|
+
|
|
|
/** Autogenerated return type of Login */
|
|
|
export type LoginPayload = {
|
|
|
__typename?: 'LoginPayload';
|
|
@@ -141,6 +148,8 @@ export type PageInfo = {
|
|
|
/** All available queries */
|
|
|
export type Queries = {
|
|
|
__typename?: 'Queries';
|
|
|
+ /** Configuration required for front end operation (more results returned for authenticated users) */
|
|
|
+ applicationConfig: Array<KeyComplexValue>;
|
|
|
/** Information about the authenticated user */
|
|
|
currentUser: User;
|
|
|
/** Fetches an object given its ID. */
|
|
@@ -238,6 +247,11 @@ export type LogoutMutationVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
export type LogoutMutation = { __typename?: 'Mutations', logout?: { __typename?: 'LogoutPayload', success: boolean } | null | undefined };
|
|
|
|
|
|
+export type ApplicationConfigQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
+
|
|
|
+
|
|
|
+export type ApplicationConfigQuery = { __typename?: 'Queries', applicationConfig: Array<{ __typename?: 'KeyComplexValue', key: string, value?: any | null | undefined }> };
|
|
|
+
|
|
|
export type CurrentUserQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
|
|
|
|
|
@@ -318,6 +332,31 @@ export function useLogoutMutation(options: VueApolloComposable.UseMutationOption
|
|
|
return VueApolloComposable.useMutation<LogoutMutation, LogoutMutationVariables>(LogoutDocument, options);
|
|
|
}
|
|
|
export type LogoutMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<LogoutMutation, LogoutMutationVariables>;
|
|
|
+export const ApplicationConfigDocument = gql`
|
|
|
+ query applicationConfig {
|
|
|
+ applicationConfig {
|
|
|
+ key
|
|
|
+ value
|
|
|
+ }
|
|
|
+}
|
|
|
+ `;
|
|
|
+
|
|
|
+/**
|
|
|
+ * __useApplicationConfigQuery__
|
|
|
+ *
|
|
|
+ * To run a query within a Vue component, call `useApplicationConfigQuery` and pass it any options that fit your needs.
|
|
|
+ * When your component renders, `useApplicationConfigQuery` returns an object from Apollo Client that contains result, loading and error properties
|
|
|
+ * you can use to render your UI.
|
|
|
+ *
|
|
|
+ * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
|
|
|
+ *
|
|
|
+ * @example
|
|
|
+ * const { result, loading, error } = useApplicationConfigQuery();
|
|
|
+ */
|
|
|
+export function useApplicationConfigQuery(options: VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<ApplicationConfigQuery, ApplicationConfigQueryVariables>> = {}) {
|
|
|
+ return VueApolloComposable.useQuery<ApplicationConfigQuery, ApplicationConfigQueryVariables>(ApplicationConfigDocument, {}, options);
|
|
|
+}
|
|
|
+export type ApplicationConfigQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<ApplicationConfigQuery, ApplicationConfigQueryVariables>;
|
|
|
export const CurrentUserDocument = gql`
|
|
|
query currentUser {
|
|
|
currentUser {
|