import type { AxiosInstance } from 'contentful-sdk-core' ; import { CollectionProp , GetSpaceParams , QueryParams } from '../../../common-types' ; import { PreviewApiKeyProps } from '../../../entities/preview-api-key' ; import { RestEndpoint } from '../types' ; import * as raw from './raw' ; export const get = ( http , params ) => { return raw . get < PreviewApiKeyProps > ( http , `/spaces/${ params . spaceId }/preview_api_keys/${ params . previewApiKeyId }` ) ; } ; export const getMany = ( http , params ) => { return raw . get < CollectionProp < PreviewApiKeyProps > > ( http , `/spaces/${ params . spaceId }/preview_api_keys` , { params : params . query , } ) ; } ;