import { ApiRequest , ApiVersionedResponse , ApiClaims } from '@mds-core/mds-api-server' ; import { Geography , GeographySummary } from '@mds-core/mds-types' ; export const GEOGRAPHY_API_SUPPORTED_VERSIONS = [ '0.4.1' ] as const ; export type GEOGRAPHY_API_SUPPORTED_VERSION = typeof GEOGRAPHY_API_SUPPORTED_VERSIONS [ number ] ; export const [ GEOGRAPHY_API_DEFAULT_VERSION ] = GEOGRAPHY_API_SUPPORTED_VERSIONS ; export type GeographyApiRequest = ApiRequest ; export type GeographyApiAccessTokenScopes = 'geographies:read' | 'geographies:read:unpublished' | 'geographies:read:published' ; export type GeographyApiResponse < TBody extends { } > = ApiVersionedResponse < GEOGRAPHY_API_SUPPORTED_VERSION , ApiClaims < GeographyApiAccessTokenScopes > , TBody > ; export type GetGeographyResponse = GeographyApiResponse < { data : { geographies : Geography [ ] | GeographySummary [ ] ; } | { geography : Geography | GeographySummary ; } ; } > ; export type GetGeographiesResponse = GeographyApiResponse < { data : { geographies : Geography [ ] | GeographySummary [ ] ; } ; } > ;