fix(deps): update typescript-vue-apollo to v6 for codegen v8
typescript-vue-apollo 5.x fails plugin validation under @graphql-codegen/cli 8
("The path argument must be of type string"). 6.0.0 targets plugin-helpers 8.
typescript-operations v7 emits every schema type used in a document, so
running it in the same output as the typescript plugin produced a duplicate
Range declaration. Split codegen into schema.ts (typescript) and
operations.ts (operations, vue-apollo, fragment-matcher) with
importSchemaTypesFrom, matching the Shiny frontend layout, and import
Event, DanceHallDistance and Range from the schema file.
Lockfile regenerated in cypress/base:26.13.0 to keep Linux optional deps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ECBwyGcBKZhkRgyVyrLXPo
This commit is contained in:
1 parent
1a8661c5c0
commit
ce43a97e03
9 files changed
+215
-318
No files matched your search
+29
-189
@@ -1,248 +1,90 @@
|
||||
/** Internal type. DO NOT USE DIRECTLY. */
|
||||
import * as VueApolloComposable from '@vue/apollo-composable'
|
||||
import type * as VueCompositionApi from 'vue'
|
||||
|
||||
import { gql } from '@/utils/gql'
|
||||
export type Maybe<T> = T | null | undefined
|
||||
export type InputMaybe<T> = T | null | undefined
|
||||
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
|
||||
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }
|
||||
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }
|
||||
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }
|
||||
|
||||
import type * as Types from './schema'
|
||||
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
|
||||
/** Internal type. DO NOT USE DIRECTLY. */
|
||||
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
|
||||
export type ReactiveFunction<TParam> = () => TParam
|
||||
/** All built-in and custom scalars, mapped to their actual values */
|
||||
export type Scalars = {
|
||||
ID: { input: string; output: string }
|
||||
String: { input: string; output: string }
|
||||
Boolean: { input: boolean; output: boolean }
|
||||
Int: { input: number; output: number }
|
||||
Float: { input: number; output: number }
|
||||
LocalDate: { input: string; output: string }
|
||||
LocalDateTime: { input: string; output: string }
|
||||
}
|
||||
|
||||
/** Band */
|
||||
export type Band = {
|
||||
__typename?: 'Band'
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
name: Scalars['String']['output']
|
||||
}
|
||||
|
||||
/** DanceHall */
|
||||
export type DanceHall = {
|
||||
__typename?: 'DanceHall'
|
||||
city: Maybe<Scalars['String']['output']>
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
latitude: Maybe<Scalars['Float']['output']>
|
||||
longitude: Maybe<Scalars['Float']['output']>
|
||||
municipality: Maybe<Scalars['String']['output']>
|
||||
name: Maybe<Scalars['String']['output']>
|
||||
state: Maybe<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
/** DanceHallDistance */
|
||||
export type DanceHallDistance = {
|
||||
__typename?: 'DanceHallDistance'
|
||||
distance: Scalars['Int']['output']
|
||||
duration: Scalars['String']['output']
|
||||
origin: Scalars['String']['output']
|
||||
}
|
||||
|
||||
/** Event */
|
||||
export type Event = {
|
||||
__typename?: 'Event'
|
||||
/** The band of the event */
|
||||
band: Maybe<Band>
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
/** The place of the event */
|
||||
danceHall: Maybe<DanceHall>
|
||||
/** The date of the event */
|
||||
date: Scalars['LocalDate']['output']
|
||||
/** The driving distances and driving durations to the event from the provided origins */
|
||||
distances: Array<DanceHallDistance>
|
||||
/** Additional information regarding the event */
|
||||
extraInfo: Maybe<Scalars['String']['output']>
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
/** The time of the event */
|
||||
time: Maybe<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
export type Mutation = {
|
||||
__typename?: 'Mutation'
|
||||
/** Remove provided origin from authenticated user */
|
||||
RemoveOrigin: Scalars['Boolean']['output']
|
||||
/** Save provided origin for authenticated user */
|
||||
SaveOrigin: Scalars['Boolean']['output']
|
||||
/** Toggle band in ignore list */
|
||||
ToggleIgnoreBand: Scalars['Boolean']['output']
|
||||
/** Toggle city in ignore list */
|
||||
ToggleIgnoreCity: Scalars['Boolean']['output']
|
||||
/** Toggle dance hall in ignore list */
|
||||
ToggleIgnoreDanceHall: Scalars['Boolean']['output']
|
||||
/** Toggle municipality in ignore list */
|
||||
ToggleIgnoreMunicipality: Scalars['Boolean']['output']
|
||||
/** Toggle state in ignore list */
|
||||
ToggleIgnoreState: Scalars['Boolean']['output']
|
||||
}
|
||||
|
||||
|
||||
export type MutationRemoveOriginArgs = {
|
||||
origin: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationSaveOriginArgs = {
|
||||
origin: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreBandArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreCityArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreDanceHallArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreMunicipalityArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreStateArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
export type Query = {
|
||||
__typename?: 'Query'
|
||||
/** Fetch address for provided lat/long */
|
||||
AddressFromLatLng: Scalars['String']['output']
|
||||
/** Find bands given provided criteria */
|
||||
Bands: Array<Band>
|
||||
/** Find dance halls given provided criteria */
|
||||
DanceHalls: Array<DanceHall>
|
||||
/** Find events given provided criteria */
|
||||
Events: Array<Event>
|
||||
/** Fetch ignored bands for authenticated user */
|
||||
IgnoredBands: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored cities for authenticated user */
|
||||
IgnoredCities: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored dance halls for authenticated user */
|
||||
IgnoredDanceHalls: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored municipalities for authenticated user */
|
||||
IgnoredMunicipalities: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored states for authenticated user */
|
||||
IgnoredStates: Array<Scalars['String']['output']>
|
||||
/** Fetch origins for authenticated user */
|
||||
Origins: Array<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
|
||||
export type QueryAddressFromLatLngArgs = {
|
||||
latlng: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type QueryEventsArgs = {
|
||||
includeHidden?: InputMaybe<Scalars['Boolean']['input']>
|
||||
origins?: InputMaybe<Array<Scalars['String']['input']>>
|
||||
range?: InputMaybe<Range>
|
||||
search?: InputMaybe<Scalars['String']['input']>
|
||||
}
|
||||
|
||||
export enum Range {
|
||||
OneMonth = 'ONE_MONTH',
|
||||
OneQuarter = 'ONE_QUARTER',
|
||||
OneWeek = 'ONE_WEEK',
|
||||
OneYear = 'ONE_YEAR',
|
||||
TwoWeeks = 'TWO_WEEKS'
|
||||
}
|
||||
|
||||
export type RemoveOriginMutationVariables = Exact<{
|
||||
origin: Scalars['String']['input']
|
||||
origin: string
|
||||
}>
|
||||
|
||||
|
||||
export type RemoveOriginMutation = { __typename?: 'Mutation'; removed: boolean }
|
||||
export type RemoveOriginMutation = { removed: boolean }
|
||||
|
||||
export type SaveOriginMutationVariables = Exact<{
|
||||
origin: Scalars['String']['input']
|
||||
origin: string
|
||||
}>
|
||||
|
||||
|
||||
export type SaveOriginMutation = { __typename?: 'Mutation'; saved: boolean }
|
||||
export type SaveOriginMutation = { saved: boolean }
|
||||
|
||||
export type ToggleIgnoreBandMutationVariables = Exact<{
|
||||
name: Scalars['String']['input']
|
||||
name: string
|
||||
}>
|
||||
|
||||
|
||||
export type ToggleIgnoreBandMutation = { __typename?: 'Mutation'; ignore: boolean }
|
||||
export type ToggleIgnoreBandMutation = { ignore: boolean }
|
||||
|
||||
export type ToggleIgnoreCityMutationVariables = Exact<{
|
||||
name: Scalars['String']['input']
|
||||
name: string
|
||||
}>
|
||||
|
||||
|
||||
export type ToggleIgnoreCityMutation = { __typename?: 'Mutation'; ignore: boolean }
|
||||
export type ToggleIgnoreCityMutation = { ignore: boolean }
|
||||
|
||||
export type ToggleIgnoreDanceHallMutationVariables = Exact<{
|
||||
name: Scalars['String']['input']
|
||||
name: string
|
||||
}>
|
||||
|
||||
|
||||
export type ToggleIgnoreDanceHallMutation = { __typename?: 'Mutation'; ignore: boolean }
|
||||
export type ToggleIgnoreDanceHallMutation = { ignore: boolean }
|
||||
|
||||
export type ToggleIgnoreMunicipalityMutationVariables = Exact<{
|
||||
name: Scalars['String']['input']
|
||||
name: string
|
||||
}>
|
||||
|
||||
|
||||
export type ToggleIgnoreMunicipalityMutation = { __typename?: 'Mutation'; ignore: boolean }
|
||||
export type ToggleIgnoreMunicipalityMutation = { ignore: boolean }
|
||||
|
||||
export type ToggleIgnoreStateMutationVariables = Exact<{
|
||||
name: Scalars['String']['input']
|
||||
name: string
|
||||
}>
|
||||
|
||||
|
||||
export type ToggleIgnoreStateMutation = { __typename?: 'Mutation'; ignore: boolean }
|
||||
export type ToggleIgnoreStateMutation = { ignore: boolean }
|
||||
|
||||
export type FetchAddressQueryVariables = Exact<{
|
||||
latlng: Scalars['String']['input']
|
||||
latlng: string
|
||||
}>
|
||||
|
||||
|
||||
export type FetchAddressQuery = { __typename?: 'Query'; address: string }
|
||||
export type FetchAddressQuery = { address: string }
|
||||
|
||||
export type FetchFiltersQueryVariables = Exact<{ [key: string]: never }>
|
||||
|
||||
|
||||
export type FetchFiltersQuery = { __typename?: 'Query'; bands: Array<string>; cities: Array<string>; states: Array<string>; danceHalls: Array<string>; municipalities: Array<string> }
|
||||
export type FetchFiltersQuery = { bands: Array<string>; cities: Array<string>; states: Array<string>; danceHalls: Array<string>; municipalities: Array<string> }
|
||||
|
||||
export type FindEventsQueryVariables = Exact<{
|
||||
range?: InputMaybe<Range>
|
||||
origins?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>
|
||||
includeOrigins: Scalars['Boolean']['input']
|
||||
search?: InputMaybe<Scalars['String']['input']>
|
||||
includeHidden?: InputMaybe<Scalars['Boolean']['input']>
|
||||
range?: Types.Range | null | undefined
|
||||
origins?: Array<string> | string | null | undefined
|
||||
includeOrigins: boolean
|
||||
search?: string | null | undefined
|
||||
includeHidden?: boolean | null | undefined
|
||||
}>
|
||||
|
||||
|
||||
export type FindEventsQuery = { __typename?: 'Query'; origins?: Array<string>; events: Array<{ __typename?: 'Event'; date: string; time: string | null | undefined; extraInfo: string | null | undefined; band: { __typename?: 'Band'; name: string } | null | undefined; danceHall: { __typename?: 'DanceHall'; name: string | null | undefined; city: string | null | undefined; municipality: string | null | undefined; state: string | null | undefined } | null | undefined; distances: Array<{ __typename?: 'DanceHallDistance'; origin: string; distance: number; duration: string }> }> }
|
||||
export type FindEventsQuery = { origins?: Array<string>; events: Array<{ date: string; time: string | null | undefined; extraInfo: string | null | undefined; band: { name: string } | null | undefined; danceHall: { name: string | null | undefined; city: string | null | undefined; municipality: string | null | undefined; state: string | null | undefined } | null | undefined; distances: Array<{ origin: string; distance: number; duration: string }> }> }
|
||||
|
||||
export type FindOriginsQueryVariables = Exact<{ [key: string]: never }>
|
||||
|
||||
|
||||
export type FindOriginsQuery = { __typename?: 'Query'; origins: Array<string> }
|
||||
export type FindOriginsQuery = { origins: Array<string> }
|
||||
|
||||
|
||||
export const RemoveOriginDocument = gql`
|
||||
@@ -572,7 +414,6 @@ export function useFindOriginsLazyQuery(options: VueApolloComposable.UseQueryOpt
|
||||
return VueApolloComposable.useLazyQuery<FindOriginsQuery, FindOriginsQueryVariables>(FindOriginsDocument, {}, options)
|
||||
}
|
||||
export type FindOriginsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<FindOriginsQuery, FindOriginsQueryVariables>
|
||||
|
||||
export interface PossibleTypesResultData {
|
||||
possibleTypes: {
|
||||
[key: string]: string[]
|
||||
@@ -582,4 +423,3 @@ const result: PossibleTypesResultData = {
|
||||
'possibleTypes': {},
|
||||
}
|
||||
export default result
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
export type Maybe<T> = T | null | undefined
|
||||
export type InputMaybe<T> = T | null | undefined
|
||||
/** All built-in and custom scalars, mapped to their actual values */
|
||||
export type Scalars = {
|
||||
ID: { input: string; output: string }
|
||||
String: { input: string; output: string }
|
||||
Boolean: { input: boolean; output: boolean }
|
||||
Int: { input: number; output: number }
|
||||
Float: { input: number; output: number }
|
||||
LocalDate: { input: string; output: string }
|
||||
LocalDateTime: { input: string; output: string }
|
||||
}
|
||||
|
||||
/** Band */
|
||||
export type Band = {
|
||||
__typename?: 'Band'
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
name: Scalars['String']['output']
|
||||
}
|
||||
|
||||
/** DanceHall */
|
||||
export type DanceHall = {
|
||||
__typename?: 'DanceHall'
|
||||
city: Maybe<Scalars['String']['output']>
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
latitude: Maybe<Scalars['Float']['output']>
|
||||
longitude: Maybe<Scalars['Float']['output']>
|
||||
municipality: Maybe<Scalars['String']['output']>
|
||||
name: Maybe<Scalars['String']['output']>
|
||||
state: Maybe<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
/** DanceHallDistance */
|
||||
export type DanceHallDistance = {
|
||||
__typename?: 'DanceHallDistance'
|
||||
distance: Scalars['Int']['output']
|
||||
duration: Scalars['String']['output']
|
||||
origin: Scalars['String']['output']
|
||||
}
|
||||
|
||||
/** Event */
|
||||
export type Event = {
|
||||
__typename?: 'Event'
|
||||
/** The band of the event */
|
||||
band: Maybe<Band>
|
||||
created: Scalars['LocalDateTime']['output']
|
||||
/** The place of the event */
|
||||
danceHall: Maybe<DanceHall>
|
||||
/** The date of the event */
|
||||
date: Scalars['LocalDate']['output']
|
||||
/** The driving distances and driving durations to the event from the provided origins */
|
||||
distances: Array<DanceHallDistance>
|
||||
/** Additional information regarding the event */
|
||||
extraInfo: Maybe<Scalars['String']['output']>
|
||||
id: Maybe<Scalars['String']['output']>
|
||||
/** The time of the event */
|
||||
time: Maybe<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
export type Mutation = {
|
||||
__typename?: 'Mutation'
|
||||
/** Remove provided origin from authenticated user */
|
||||
RemoveOrigin: Scalars['Boolean']['output']
|
||||
/** Save provided origin for authenticated user */
|
||||
SaveOrigin: Scalars['Boolean']['output']
|
||||
/** Toggle band in ignore list */
|
||||
ToggleIgnoreBand: Scalars['Boolean']['output']
|
||||
/** Toggle city in ignore list */
|
||||
ToggleIgnoreCity: Scalars['Boolean']['output']
|
||||
/** Toggle dance hall in ignore list */
|
||||
ToggleIgnoreDanceHall: Scalars['Boolean']['output']
|
||||
/** Toggle municipality in ignore list */
|
||||
ToggleIgnoreMunicipality: Scalars['Boolean']['output']
|
||||
/** Toggle state in ignore list */
|
||||
ToggleIgnoreState: Scalars['Boolean']['output']
|
||||
}
|
||||
|
||||
|
||||
export type MutationRemoveOriginArgs = {
|
||||
origin: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationSaveOriginArgs = {
|
||||
origin: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreBandArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreCityArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreDanceHallArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreMunicipalityArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type MutationToggleIgnoreStateArgs = {
|
||||
name: Scalars['String']['input']
|
||||
}
|
||||
|
||||
export type Query = {
|
||||
__typename?: 'Query'
|
||||
/** Fetch address for provided lat/long */
|
||||
AddressFromLatLng: Scalars['String']['output']
|
||||
/** Find bands given provided criteria */
|
||||
Bands: Array<Band>
|
||||
/** Find dance halls given provided criteria */
|
||||
DanceHalls: Array<DanceHall>
|
||||
/** Find events given provided criteria */
|
||||
Events: Array<Event>
|
||||
/** Fetch ignored bands for authenticated user */
|
||||
IgnoredBands: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored cities for authenticated user */
|
||||
IgnoredCities: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored dance halls for authenticated user */
|
||||
IgnoredDanceHalls: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored municipalities for authenticated user */
|
||||
IgnoredMunicipalities: Array<Scalars['String']['output']>
|
||||
/** Fetch ignored states for authenticated user */
|
||||
IgnoredStates: Array<Scalars['String']['output']>
|
||||
/** Fetch origins for authenticated user */
|
||||
Origins: Array<Scalars['String']['output']>
|
||||
}
|
||||
|
||||
|
||||
export type QueryAddressFromLatLngArgs = {
|
||||
latlng: Scalars['String']['input']
|
||||
}
|
||||
|
||||
|
||||
export type QueryEventsArgs = {
|
||||
includeHidden?: InputMaybe<Scalars['Boolean']['input']>
|
||||
origins?: InputMaybe<Array<Scalars['String']['input']>>
|
||||
range?: InputMaybe<Range>
|
||||
search?: InputMaybe<Scalars['String']['input']>
|
||||
}
|
||||
|
||||
export enum Range {
|
||||
OneMonth = 'ONE_MONTH',
|
||||
OneQuarter = 'ONE_QUARTER',
|
||||
OneWeek = 'ONE_WEEK',
|
||||
OneYear = 'ONE_YEAR',
|
||||
TwoWeeks = 'TWO_WEEKS'
|
||||
}
|
||||
Reference in new issue
Block a user