query getVendorById($id: UUID!) @auth(level: USER) {
  vendor(id: $id) {
    id
    userId
    companyName
    email
    phone
    photoUrl
    address
    placeId
    latitude
    longitude
    street
    country
    zipCode
    billingAddress
    timezone
    legalName
    doingBusinessAs
    region
    state
    city
    serviceSpecialty
    approvalStatus
    isActive
    markup
    fee
    csat
    tier
    createdAt
    updatedAt
    createdBy
  }
}

query getVendorByUserId($userId: String!) @auth(level: USER) {
  vendors(where: { userId: { eq: $userId } }) {
    id
    userId
    companyName
    email
    phone
    photoUrl
    address
    placeId
    latitude
    longitude
    street
    country
    zipCode
    billingAddress
    timezone
    legalName
    doingBusinessAs
    region
    state
    city
    serviceSpecialty
    approvalStatus
    isActive
    markup
    fee
    csat
    tier
    createdAt
    updatedAt
    createdBy
  }
}

query listVendors @auth(level: USER) {
  vendors {
    id
    userId
    companyName
    email
    phone
    photoUrl
    address
    placeId
    latitude
    longitude
    street
    country
    zipCode
    billingAddress
    timezone
    legalName
    doingBusinessAs
    region
    state
    city
    serviceSpecialty
    approvalStatus
    isActive
    markup
    fee
    csat
    tier
    createdAt
    updatedAt
    createdBy
  }
}
