Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure the PANDIUM.yaml

Customize the connection settings page so it doesn't display options that aren't relevant to the Pokémon Trainer Academy's requests, and declare the tenant metadata the integration will store between

One of the PANDIUM.yaml's key purposes is to populate the Connections Settings page which allows users to customize how their tenant will run. Another is to declare the tenant metadata your integration stores between runs.

Your starter PANDIUM.yaml is on manifest version: 1.0, which is the version that supports tenant metadata. Leave that line as it is.

Right now the Pokémon Trainer Academy hasn't asked for any tenant settings, so we just need to remove the unnecessary configurations.

  1. Remove configs and everything under it from the the PANDIUM.yaml.

The Academy did ask that the integration never repeat a Pokémon. To manage that the integration has to remember which Pokémon it sent last, and tenant metadata is where it will keep that memory. The metadata_schema describes the shape of that data: at the end of every run Pandium validates whatever the integration printed to the standard out against this schema and merges it into the tenant's metadata.

  1. Replace the properties under metadata_schema with a single last_pokemon_id.

Your PANDIUM.yaml should now look like this:

version: 1.0
base: node:24
build: npm install --production && npm i --save-dev @types/node && npm run build
run: node .
metadata_schema:
  schema:
    name: metadata_schema
    properties:
      last_pokemon_id:
        type: number

Preview the Connection Settings form

You don't need to build a release to see what the PANDIUM.yaml will produce. The Pandium CLI can render the Connection Settings form straight from the file on your machine.

  1. Run pandium local preview-configs. This starts a local server and opens the form in your browser.

Since you removed all the configs, the form should now be empty: none of the starter's options are left. Leave the server running while you work on a PANDIUM.yaml; it reloads the form whenever you save the file, so you can check your changes before you push them. Press Ctrl+C when you're done.

The preview is generated from the file alone, so it doesn't reflect a particular tenant's settings or metadata. For that you'll check the Integration Hub, so let's take a look at how the connection settings page looks with this updated PANDIUM.yaml!

Last updated

Was this helpful?