import type { AxiosInstance } from 'contentful-sdk-core' ; import { CollectionProp , GetSpaceParams , QueryParams } from '../../../common-types' ; import { SpaceMemberProps } from '../../../entities/space-member' ; import { RestEndpoint } from '../types' ; import * as raw from './raw' ; export const get = ( http , params ) => raw . get < SpaceMemberProps > ( http , `/spaces/${ params . spaceId }/space_members/${ params . spaceMemberId }` ) ; export const getMany = ( http , params ) => raw . get < CollectionProp < SpaceMemberProps > > ( http , `/spaces/${ params . spaceId }/space_members` , { params : params . query , } ) ;