mutation CreateBuild($input: CreateBuildInput!) {
  createBuild(input: $input) {
    _id
    uuid
    createdAt
    expiryStarts
    expiryEnds
    buildType
    collectionToken
    ibans 
    responsibles {
      company
      person
    }
    areas
    info {
      govAddressCode
      buildName
      buildNo
      maxFloor
      undergroundFloor
      buildDate
      decisionPeriodDate
      taxNo
      liftCount
      heatingSystem
      coolingSystem
      hotWaterSystem
      blockServiceManCount
      securityServiceManCount
      garageCount
      managementRoomId
    }
  }
}

{
  "input": {
    "expiryStarts": "2025-01-10T08:00:00.000Z",
    "expiryEnds": "2099-12-31T00:00:00.000Z",
    "buildType": "675abc12ef90123456789aaa",
    "collectionToken": "COLL-TEST-2025-XYZ",
    "info": {
      "govAddressCode": "TR-34-12345",
      "buildName": "Aether Residence",
      "buildNo": "B-12",
      "maxFloor": 12,
      "undergroundFloor": 2,
      "buildDate": "2020-06-15T00:00:00.000Z",
      "decisionPeriodDate": "2020-05-01T00:00:00.000Z",
      "taxNo": "12345678901",
      "liftCount": 3,
      "heatingSystem": true,
      "coolingSystem": true,
      "hotWaterSystem": true,
      "blockServiceManCount": 2,
      "securityServiceManCount": 1,
      "garageCount": 30,
      "managementRoomId": 101
    }
  }
}

query ListBuild($input: ListArguments!) {
  builds(input: $input) {
    data {
      _id
      buildType {
        token
        typeToken
        type
      }
      collectionToken
      info {
        govAddressCode
        buildName
        buildNo
        maxFloor
        undergroundFloor
        buildDate
        decisionPeriodDate
        taxNo
        liftCount
        heatingSystem
        coolingSystem
        hotWaterSystem
        blockServiceManCount
        securityServiceManCount
        garageCount
        managementRoomId
      }
    }
    totalCount
  }
}

query GetBuildsAreas($id: String!, $input: ListArguments!) {
  getBuildsAreas(id: $id, input: $input) {
    data {
      _id
      uuid
      areaName
      areaCode
      areaType
      areaNetSize
      areaDirection
      areaGrossSize
    }
    totalCount
    __typename
  }
}
