api.ts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. import * as Types from './types';
  2. import gql from 'graphql-tag';
  3. import * as VueApolloComposable from '@vue/apollo-composable';
  4. import * as VueCompositionApi from 'vue';
  5. export type ReactiveFunction<TParam> = () => TParam;
  6. export const ErrorsFragmentDoc = gql`
  7. fragment errors on UserError {
  8. message
  9. field
  10. }
  11. `;
  12. export const ObjectAttributeValuesFragmentDoc = gql`
  13. fragment objectAttributeValues on ObjectAttributeValue {
  14. attribute {
  15. name
  16. display
  17. dataType
  18. dataOption
  19. screens
  20. editable
  21. active
  22. }
  23. value
  24. }
  25. `;
  26. export const LoginDocument = gql`
  27. mutation login($login: String!, $password: String!, $fingerprint: String!) {
  28. login(login: $login, password: $password, fingerprint: $fingerprint) {
  29. sessionId
  30. errors {
  31. ...errors
  32. }
  33. }
  34. }
  35. ${ErrorsFragmentDoc}`;
  36. /**
  37. * __useLoginMutation__
  38. *
  39. * To run a mutation, you first call `useLoginMutation` within a Vue component and pass it any options that fit your needs.
  40. * When your component renders, `useLoginMutation` returns an object that includes:
  41. * - A mutate function that you can call at any time to execute the mutation
  42. * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return
  43. *
  44. * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options;
  45. *
  46. * @example
  47. * const { mutate, loading, error, onDone } = useLoginMutation({
  48. * variables: {
  49. * login: // value for 'login'
  50. * password: // value for 'password'
  51. * fingerprint: // value for 'fingerprint'
  52. * },
  53. * });
  54. */
  55. export function useLoginMutation(options: VueApolloComposable.UseMutationOptions<Types.LoginMutation, Types.LoginMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.LoginMutation, Types.LoginMutationVariables>>) {
  56. return VueApolloComposable.useMutation<Types.LoginMutation, Types.LoginMutationVariables>(LoginDocument, options);
  57. }
  58. export type LoginMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.LoginMutation, Types.LoginMutationVariables>;
  59. export const LogoutDocument = gql`
  60. mutation logout {
  61. logout {
  62. success
  63. }
  64. }
  65. `;
  66. /**
  67. * __useLogoutMutation__
  68. *
  69. * To run a mutation, you first call `useLogoutMutation` within a Vue component and pass it any options that fit your needs.
  70. * When your component renders, `useLogoutMutation` returns an object that includes:
  71. * - A mutate function that you can call at any time to execute the mutation
  72. * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return
  73. *
  74. * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options;
  75. *
  76. * @example
  77. * const { mutate, loading, error, onDone } = useLogoutMutation();
  78. */
  79. export function useLogoutMutation(options: VueApolloComposable.UseMutationOptions<Types.LogoutMutation, Types.LogoutMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.LogoutMutation, Types.LogoutMutationVariables>> = {}) {
  80. return VueApolloComposable.useMutation<Types.LogoutMutation, Types.LogoutMutationVariables>(LogoutDocument, options);
  81. }
  82. export type LogoutMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.LogoutMutation, Types.LogoutMutationVariables>;
  83. export const ApplicationBuildChecksumDocument = gql`
  84. query applicationBuildChecksum {
  85. applicationBuildChecksum
  86. }
  87. `;
  88. /**
  89. * __useApplicationBuildChecksumQuery__
  90. *
  91. * To run a query within a Vue component, call `useApplicationBuildChecksumQuery` and pass it any options that fit your needs.
  92. * When your component renders, `useApplicationBuildChecksumQuery` returns an object from Apollo Client that contains result, loading and error properties
  93. * you can use to render your UI.
  94. *
  95. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  96. *
  97. * @example
  98. * const { result, loading, error } = useApplicationBuildChecksumQuery();
  99. */
  100. export function useApplicationBuildChecksumQuery(options: VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>> = {}) {
  101. return VueApolloComposable.useQuery<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>(ApplicationBuildChecksumDocument, {}, options);
  102. }
  103. export function useApplicationBuildChecksumLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>> = {}) {
  104. return VueApolloComposable.useLazyQuery<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>(ApplicationBuildChecksumDocument, {}, options);
  105. }
  106. export type ApplicationBuildChecksumQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.ApplicationBuildChecksumQuery, Types.ApplicationBuildChecksumQueryVariables>;
  107. export const ApplicationConfigDocument = gql`
  108. query applicationConfig {
  109. applicationConfig {
  110. key
  111. value
  112. }
  113. }
  114. `;
  115. /**
  116. * __useApplicationConfigQuery__
  117. *
  118. * To run a query within a Vue component, call `useApplicationConfigQuery` and pass it any options that fit your needs.
  119. * When your component renders, `useApplicationConfigQuery` returns an object from Apollo Client that contains result, loading and error properties
  120. * you can use to render your UI.
  121. *
  122. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  123. *
  124. * @example
  125. * const { result, loading, error } = useApplicationConfigQuery();
  126. */
  127. export function useApplicationConfigQuery(options: VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> = {}) {
  128. return VueApolloComposable.useQuery<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>(ApplicationConfigDocument, {}, options);
  129. }
  130. export function useApplicationConfigLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>> = {}) {
  131. return VueApolloComposable.useLazyQuery<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>(ApplicationConfigDocument, {}, options);
  132. }
  133. export type ApplicationConfigQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.ApplicationConfigQuery, Types.ApplicationConfigQueryVariables>;
  134. export const CurrentUserDocument = gql`
  135. query currentUser {
  136. currentUser {
  137. firstname
  138. lastname
  139. preferences
  140. objectAttributeValues {
  141. ...objectAttributeValues
  142. }
  143. organization {
  144. name
  145. objectAttributeValues {
  146. ...objectAttributeValues
  147. }
  148. }
  149. permissions {
  150. names
  151. }
  152. }
  153. }
  154. ${ObjectAttributeValuesFragmentDoc}`;
  155. /**
  156. * __useCurrentUserQuery__
  157. *
  158. * To run a query within a Vue component, call `useCurrentUserQuery` and pass it any options that fit your needs.
  159. * When your component renders, `useCurrentUserQuery` returns an object from Apollo Client that contains result, loading and error properties
  160. * you can use to render your UI.
  161. *
  162. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  163. *
  164. * @example
  165. * const { result, loading, error } = useCurrentUserQuery();
  166. */
  167. export function useCurrentUserQuery(options: VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>> = {}) {
  168. return VueApolloComposable.useQuery<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>(CurrentUserDocument, {}, options);
  169. }
  170. export function useCurrentUserLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>> = {}) {
  171. return VueApolloComposable.useLazyQuery<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>(CurrentUserDocument, {}, options);
  172. }
  173. export type CurrentUserQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.CurrentUserQuery, Types.CurrentUserQueryVariables>;
  174. export const LocalesDocument = gql`
  175. query locales {
  176. locales {
  177. locale
  178. alias
  179. name
  180. dir
  181. active
  182. }
  183. }
  184. `;
  185. /**
  186. * __useLocalesQuery__
  187. *
  188. * To run a query within a Vue component, call `useLocalesQuery` and pass it any options that fit your needs.
  189. * When your component renders, `useLocalesQuery` returns an object from Apollo Client that contains result, loading and error properties
  190. * you can use to render your UI.
  191. *
  192. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  193. *
  194. * @example
  195. * const { result, loading, error } = useLocalesQuery();
  196. */
  197. export function useLocalesQuery(options: VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables>> = {}) {
  198. return VueApolloComposable.useQuery<Types.LocalesQuery, Types.LocalesQueryVariables>(LocalesDocument, {}, options);
  199. }
  200. export function useLocalesLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.LocalesQuery, Types.LocalesQueryVariables>> = {}) {
  201. return VueApolloComposable.useLazyQuery<Types.LocalesQuery, Types.LocalesQueryVariables>(LocalesDocument, {}, options);
  202. }
  203. export type LocalesQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.LocalesQuery, Types.LocalesQueryVariables>;
  204. export const OverviewsDocument = gql`
  205. query overviews($withTicketCount: Boolean!) {
  206. overviews {
  207. edges {
  208. node {
  209. id
  210. name
  211. link
  212. prio
  213. order
  214. view
  215. active
  216. ticketCount @include(if: $withTicketCount)
  217. }
  218. cursor
  219. }
  220. pageInfo {
  221. endCursor
  222. hasNextPage
  223. }
  224. }
  225. }
  226. `;
  227. /**
  228. * __useOverviewsQuery__
  229. *
  230. * To run a query within a Vue component, call `useOverviewsQuery` and pass it any options that fit your needs.
  231. * When your component renders, `useOverviewsQuery` returns an object from Apollo Client that contains result, loading and error properties
  232. * you can use to render your UI.
  233. *
  234. * @param variables that will be passed into the query
  235. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  236. *
  237. * @example
  238. * const { result, loading, error } = useOverviewsQuery({
  239. * withTicketCount: // value for 'withTicketCount'
  240. * });
  241. */
  242. export function useOverviewsQuery(variables: Types.OverviewsQueryVariables | VueCompositionApi.Ref<Types.OverviewsQueryVariables> | ReactiveFunction<Types.OverviewsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables>> = {}) {
  243. return VueApolloComposable.useQuery<Types.OverviewsQuery, Types.OverviewsQueryVariables>(OverviewsDocument, variables, options);
  244. }
  245. export function useOverviewsLazyQuery(variables: Types.OverviewsQueryVariables | VueCompositionApi.Ref<Types.OverviewsQueryVariables> | ReactiveFunction<Types.OverviewsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.OverviewsQuery, Types.OverviewsQueryVariables>> = {}) {
  246. return VueApolloComposable.useLazyQuery<Types.OverviewsQuery, Types.OverviewsQueryVariables>(OverviewsDocument, variables, options);
  247. }
  248. export type OverviewsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.OverviewsQuery, Types.OverviewsQueryVariables>;
  249. export const SessionIdDocument = gql`
  250. query sessionId {
  251. sessionId
  252. }
  253. `;
  254. /**
  255. * __useSessionIdQuery__
  256. *
  257. * To run a query within a Vue component, call `useSessionIdQuery` and pass it any options that fit your needs.
  258. * When your component renders, `useSessionIdQuery` returns an object from Apollo Client that contains result, loading and error properties
  259. * you can use to render your UI.
  260. *
  261. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  262. *
  263. * @example
  264. * const { result, loading, error } = useSessionIdQuery();
  265. */
  266. export function useSessionIdQuery(options: VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables>> = {}) {
  267. return VueApolloComposable.useQuery<Types.SessionIdQuery, Types.SessionIdQueryVariables>(SessionIdDocument, {}, options);
  268. }
  269. export function useSessionIdLazyQuery(options: VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.SessionIdQuery, Types.SessionIdQueryVariables>> = {}) {
  270. return VueApolloComposable.useLazyQuery<Types.SessionIdQuery, Types.SessionIdQueryVariables>(SessionIdDocument, {}, options);
  271. }
  272. export type SessionIdQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.SessionIdQuery, Types.SessionIdQueryVariables>;
  273. export const TranslationsDocument = gql`
  274. query translations($locale: String!, $cacheKey: String) {
  275. translations(locale: $locale, cacheKey: $cacheKey) {
  276. isCacheStillValid
  277. cacheKey
  278. translations
  279. }
  280. }
  281. `;
  282. /**
  283. * __useTranslationsQuery__
  284. *
  285. * To run a query within a Vue component, call `useTranslationsQuery` and pass it any options that fit your needs.
  286. * When your component renders, `useTranslationsQuery` returns an object from Apollo Client that contains result, loading and error properties
  287. * you can use to render your UI.
  288. *
  289. * @param variables that will be passed into the query
  290. * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options;
  291. *
  292. * @example
  293. * const { result, loading, error } = useTranslationsQuery({
  294. * locale: // value for 'locale'
  295. * cacheKey: // value for 'cacheKey'
  296. * });
  297. */
  298. export function useTranslationsQuery(variables: Types.TranslationsQueryVariables | VueCompositionApi.Ref<Types.TranslationsQueryVariables> | ReactiveFunction<Types.TranslationsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables>> = {}) {
  299. return VueApolloComposable.useQuery<Types.TranslationsQuery, Types.TranslationsQueryVariables>(TranslationsDocument, variables, options);
  300. }
  301. export function useTranslationsLazyQuery(variables: Types.TranslationsQueryVariables | VueCompositionApi.Ref<Types.TranslationsQueryVariables> | ReactiveFunction<Types.TranslationsQueryVariables>, options: VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.TranslationsQuery, Types.TranslationsQueryVariables>> = {}) {
  302. return VueApolloComposable.useLazyQuery<Types.TranslationsQuery, Types.TranslationsQueryVariables>(TranslationsDocument, variables, options);
  303. }
  304. export type TranslationsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.TranslationsQuery, Types.TranslationsQueryVariables>;
  305. export const AppMaintenanceDocument = gql`
  306. subscription appMaintenance {
  307. appMaintenance {
  308. type
  309. }
  310. }
  311. `;
  312. /**
  313. * __useAppMaintenanceSubscription__
  314. *
  315. * To run a query within a Vue component, call `useAppMaintenanceSubscription` and pass it any options that fit your needs.
  316. * When your component renders, `useAppMaintenanceSubscription` returns an object from Apollo Client that contains result, loading and error properties
  317. * you can use to render your UI.
  318. *
  319. * @param options that will be passed into the subscription, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/subscription.html#options;
  320. *
  321. * @example
  322. * const { result, loading, error } = useAppMaintenanceSubscription();
  323. */
  324. export function useAppMaintenanceSubscription(options: VueApolloComposable.UseSubscriptionOptions<Types.AppMaintenanceSubscription, Types.AppMaintenanceSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.AppMaintenanceSubscription, Types.AppMaintenanceSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.AppMaintenanceSubscription, Types.AppMaintenanceSubscriptionVariables>> = {}) {
  325. return VueApolloComposable.useSubscription<Types.AppMaintenanceSubscription, Types.AppMaintenanceSubscriptionVariables>(AppMaintenanceDocument, {}, options);
  326. }
  327. export type AppMaintenanceSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.AppMaintenanceSubscription, Types.AppMaintenanceSubscriptionVariables>;
  328. export const ConfigUpdatesDocument = gql`
  329. subscription configUpdates {
  330. configUpdates {
  331. setting {
  332. key
  333. value
  334. }
  335. }
  336. }
  337. `;
  338. /**
  339. * __useConfigUpdatesSubscription__
  340. *
  341. * To run a query within a Vue component, call `useConfigUpdatesSubscription` and pass it any options that fit your needs.
  342. * When your component renders, `useConfigUpdatesSubscription` returns an object from Apollo Client that contains result, loading and error properties
  343. * you can use to render your UI.
  344. *
  345. * @param options that will be passed into the subscription, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/subscription.html#options;
  346. *
  347. * @example
  348. * const { result, loading, error } = useConfigUpdatesSubscription();
  349. */
  350. export function useConfigUpdatesSubscription(options: VueApolloComposable.UseSubscriptionOptions<Types.ConfigUpdatesSubscription, Types.ConfigUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.ConfigUpdatesSubscription, Types.ConfigUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.ConfigUpdatesSubscription, Types.ConfigUpdatesSubscriptionVariables>> = {}) {
  351. return VueApolloComposable.useSubscription<Types.ConfigUpdatesSubscription, Types.ConfigUpdatesSubscriptionVariables>(ConfigUpdatesDocument, {}, options);
  352. }
  353. export type ConfigUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.ConfigUpdatesSubscription, Types.ConfigUpdatesSubscriptionVariables>;
  354. export const PushMessagesDocument = gql`
  355. subscription pushMessages {
  356. pushMessages {
  357. title
  358. text
  359. }
  360. }
  361. `;
  362. /**
  363. * __usePushMessagesSubscription__
  364. *
  365. * To run a query within a Vue component, call `usePushMessagesSubscription` and pass it any options that fit your needs.
  366. * When your component renders, `usePushMessagesSubscription` returns an object from Apollo Client that contains result, loading and error properties
  367. * you can use to render your UI.
  368. *
  369. * @param options that will be passed into the subscription, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/subscription.html#options;
  370. *
  371. * @example
  372. * const { result, loading, error } = usePushMessagesSubscription();
  373. */
  374. export function usePushMessagesSubscription(options: VueApolloComposable.UseSubscriptionOptions<Types.PushMessagesSubscription, Types.PushMessagesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.PushMessagesSubscription, Types.PushMessagesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.PushMessagesSubscription, Types.PushMessagesSubscriptionVariables>> = {}) {
  375. return VueApolloComposable.useSubscription<Types.PushMessagesSubscription, Types.PushMessagesSubscriptionVariables>(PushMessagesDocument, {}, options);
  376. }
  377. export type PushMessagesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.PushMessagesSubscription, Types.PushMessagesSubscriptionVariables>;