import { configureWunderGraphOperations , MutationConfiguration , QueryConfiguration , SubscriptionConfiguration } from "./generated/wundergraph.operations.configuration" ; const disableAuth = < Configs extends QueryConfiguration | MutationConfiguration | SubscriptionConfiguration > ( config ) : Configs => { return { ... config , authentication : { required : false } } ; } ; const enableAuth = < Configs extends QueryConfiguration | MutationConfiguration | SubscriptionConfiguration > ( config ) : Configs => { return { ... config , authentication : { required : true } } ; } ; const operations = configureWunderGraphOperations ( { defaultConfig : { authentication : { required : false } } , queries : config => ( { ... config , caching : { enable : false , staleWhileRevalidate : 60 , maxAge : 60 , public : true } , liveQuery : { enable : true , pollingIntervalSeconds : 1 , } } ) , mutations : config => ( { ... config , } ) , subscriptions : config => ( { ... config , } ) , custom : { } } ) ; export default operations ;