import gql from 'graphql-tag';

export const MOBILESERVICES = gql`
  query MobileServices($input: CustomerServicesInput) {
    mobileServices(input: $input) {
      services {
        id
        mobileStatus
        phoneNumber
        created
        type
        status
        nickname
        name
        allocatedFrom
        allocatedTo
        user {
          id
          nationalId
          name
          nickname
          email
        }
      }
      pageInfo {
        hasNextPage
        nextPage
        totalCount
      }
    }
  }
`;

export const MOBILE_SERVICE_SETTINGS = gql`
  query MobileServiceSettings($mobileServiceId: String!) {
    mobileService(id: $mobileServiceId) {
      isAdvertisingAllowed
      isBirthdayToneAllowed
      isDirectMarketingAllowed
      isNotifyExcessUsageOneDayAllowed
      isServiceNumberAllowed
      isServiceUpdatesAllowed
      isVisibleToInfoProviders
    }
  }
`;
