export type CloudFunctionName =
  | 'login'
  | 'feedList'
  | 'userPosts'
  | 'postDetail'
  | 'postCreate'
  | 'postUpdate'
  | 'postDelete'
  | 'postLike'
  | 'commentCreate'
  | 'draftSave'
  | 'draftGet'
  | 'nearbyPets'
  | 'locationUpdate'
  | 'matchLike'
  | 'messageList'
  | 'messageSend'
  | 'messageThread'
  | 'conversationRead'
  | 'followToggle'
  | 'followList'
  | 'userList'
  | 'profileGet'
  | 'profileUpdate'
  | 'petList'
  | 'petSave'
  | 'petDelete'

export interface CursorResponse<T> {
  list: T[]
  nextCursor?: string
}

export interface CloudResult<T> {
  ok: boolean
  data?: T
  error?: string
}
