templateUpdates.api.ts 1.4 KB

123456789101112131415161718192021
  1. import * as Types from '#shared/graphql/types.ts';
  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 TemplateUpdatesDocument = gql`
  7. subscription templateUpdates($onlyActive: Boolean!) {
  8. templateUpdates(onlyActive: $onlyActive) {
  9. templates {
  10. id
  11. name
  12. }
  13. }
  14. }
  15. `;
  16. export function useTemplateUpdatesSubscription(variables: Types.TemplateUpdatesSubscriptionVariables | VueCompositionApi.Ref<Types.TemplateUpdatesSubscriptionVariables> | ReactiveFunction<Types.TemplateUpdatesSubscriptionVariables>, options: VueApolloComposable.UseSubscriptionOptions<Types.TemplateUpdatesSubscription, Types.TemplateUpdatesSubscriptionVariables> | VueCompositionApi.Ref<VueApolloComposable.UseSubscriptionOptions<Types.TemplateUpdatesSubscription, Types.TemplateUpdatesSubscriptionVariables>> | ReactiveFunction<VueApolloComposable.UseSubscriptionOptions<Types.TemplateUpdatesSubscription, Types.TemplateUpdatesSubscriptionVariables>> = {}) {
  17. return VueApolloComposable.useSubscription<Types.TemplateUpdatesSubscription, Types.TemplateUpdatesSubscriptionVariables>(TemplateUpdatesDocument, variables, options);
  18. }
  19. export type TemplateUpdatesSubscriptionCompositionFunctionResult = VueApolloComposable.UseSubscriptionReturn<Types.TemplateUpdatesSubscription, Types.TemplateUpdatesSubscriptionVariables>;