openpoke / decidim-module-reporting-proposals

A new component for Decidim based on Proposals focus on reporting geolocated actuations in a city
GNU Affero General Public License v3.0
6 stars 5 forks source link

Check API is returning component "Reporting Proposals" properly #40

Closed microstudi closed 1 year ago

microstudi commented 1 year ago

Currently the API, returns the component "reporting proposals" as proposals:

{
  "data": {
    "participatoryProcess": {
      "components": [
        {
          "id": "1",
          "__typename": "Pages",
          "name": {
            "translations": [
              {
                "text": "Pàgina"
              },
              {
                "text": "Page"
              },
              {
                "text": "Página"
              }
            ]
          }
        },
        {
          "id": "2",
          "__typename": "Meetings",
          "name": {
            "translations": [
              {
                "text": "Trobades"
              },
              {
                "text": "Meetings"
              },
              {
                "text": "Encuentros"
              }
            ]
          }
        },
        {
          "id": "3",
          "__typename": "Proposals",
          "name": {
            "translations": [
              {
                "text": "Propostes"
              },
              {
                "text": "Proposals"
              },
              {
                "text": "Propuestas"
              }
            ]
          }
        },
        {
          "id": "4",
          "__typename": "Budgets",
          "name": {
            "translations": [
              {
                "text": "Pressupostos"
              },
              {
                "text": "Budgets"
              },
              {
                "text": "Presupuestos"
              }
            ]
          }
        },
        {
          "id": "5",
          "__typename": "Surveys",
          "name": {
            "translations": [
              {
                "text": "Enquesta"
              },
              {
                "text": "Survey"
              },
              {
                "text": "Encuesta"
              }
            ]
          }
        },
        {
          "id": "6",
          "__typename": "Accountability",
          "name": {
            "translations": [
              {
                "text": "Seguiment"
              },
              {
                "text": "Accountability"
              },
              {
                "text": "Seguimiento"
              }
            ]
          }
        },
        {
          "id": "7",
          "__typename": "Debates",
          "name": {
            "translations": [
              {
                "text": "Debats"
              },
              {
                "text": "Debates"
              },
              {
                "text": "Debates"
              }
            ]
          }
        },
        {
          "id": "8",
          "__typename": "Sortitions",
          "name": {
            "translations": [
              {
                "text": "Sortejos"
              },
              {
                "text": "Sortitions"
              },
              {
                "text": "Sorteos"
              }
            ]
          }
        },
        {
          "id": "9",
          "__typename": "Blogs",
          "name": {
            "translations": [
              {
                "text": "Blog"
              },
              {
                "text": "Blog"
              },
              {
                "text": "Blog"
              }
            ]
          }
        },
        {
          "id": "10",
          "__typename": "Proposals",
          "name": {
            "translations": [
              {
                "text": "Propostes directes"
              },
              {
                "text": "Reporting proposals"
              },
              {
                "text": "Reporting proposals"
              }
            ]
          }
        }
      ]
    },
    "component": {
      "name": {
        "translations": [
          {
            "text": "Propostes directes"
          },
          {
            "text": "Reporting proposals"
          },
          {
            "text": "Reporting proposals"
          }
        ]
      },
      "id": "10",
      "proposals": {
        "edges": [
          {
            "node": {
              "id": "8",
              "title": {
                "translations": [
                  {
                    "text": "Tenetur in."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "9",
              "title": {
                "translations": [
                  {
                    "text": "Tenetur in. Voluptatem."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "10",
              "title": {
                "translations": [
                  {
                    "text": "Nemo reprehenderit."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "11",
              "title": {
                "translations": [
                  {
                    "text": "Nemo reprehenderit. Sit."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "12",
              "title": {
                "translations": [
                  {
                    "text": "Ut tenetur."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "13",
              "title": {
                "translations": [
                  {
                    "text": "Ut minus."
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "14",
              "title": {
                "translations": [
                  {
                    "text": "Temporibus ab."
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}