Source: Add params to postTypes

Description

Frontity allows for a params attribute on source like:

packages: [
    ...
    {
      name: "@frontity/wp-source",
      state: {
        source: {
          api: "https://mysite.com/wp-json",
          params: {
            orderby: "slug",
            order: "asc",
            per_page: "99"
          },
...

We would like to be able to add params also for postTypes, like:

          ...
          postsPage: "/news",
          postTypes: [
            {
              type: "quote",
              endpoint: "quote",
              archive: "/quote",
              params: {
                orderby: "date",
                order: "asc",
                per_page: "7"
              }
            }
          ]
...

This feature is based on a feature that was missing for a user.

Examples

Possible solution

I think this could be implemented the same way it’s already implemented for taxonomies (see frontity/packages/wp-source/src/libraries/handlers/taxonomy.ts).