import { ApiRequest , ApiVersionedResponse , ApiClaims } from '@mds-core/mds-api-server' ; import { GeographyMetadata , Geography , UUID } from '@mds-core/mds-types' ; export const GEOGRAPHY_AUTHOR_API_SUPPORTED_VERSIONS = [ '0.4.1' ] as const ; export type GEOGRAPHY_AUTHOR_API_SUPPORTED_VERSION = typeof GEOGRAPHY_AUTHOR_API_SUPPORTED_VERSIONS [ number ] ; export const [ GEOGRAPHY_AUTHOR_API_DEFAULT_VERSION ] = GEOGRAPHY_AUTHOR_API_SUPPORTED_VERSIONS ; export type GeographyAuthorApiRequest = ApiRequest ; export type GeographyAuthorApiAccessTokenScopes = 'geographies:read' | 'geographies:read:unpublished' | 'geographies:read:published' | 'geographies:write' | 'geographies:publish' ; export type GeographyAuthorApiResponse < TBody extends { } > = ApiVersionedResponse < GEOGRAPHY_AUTHOR_API_SUPPORTED_VERSION , ApiClaims < GeographyAuthorApiAccessTokenScopes > , TBody > ; export type GetGeographyMetadatumResponse = GeographyAuthorApiResponse < { data : { geography_metadata : GeographyMetadata ; } ; } > ; export type GetGeographyMetadataResponse = GeographyAuthorApiResponse < { data : { geography_metadata : GeographyMetadata [ ] ; } ; } > ; export type PostGeographyResponse = GeographyAuthorApiResponse < { data : { geography : Geography ; } ; } > ; export type PutGeographyResponse = GeographyAuthorApiResponse < { data : { geography : Geography ; } ; } > ; export type PublishGeographyResponse = GeographyAuthorApiResponse < { data : { geography : Geography ; } ; } > ; export type PutGeographyMetadataResponse = GeographyAuthorApiResponse < { data : { geography_metadata : GeographyMetadata ; } ; } > ; export type DeleteGeographyResponse = GeographyAuthorApiResponse < { data : { geography_id : UUID ; } ; } > ;