Skip to content

Incorrect typing on ConfigurePropResponse #271

@fungairino

Description

@fungairino

There is a bug in the ConfigurePropResponse type:
https://github.com/PipedreamHQ/pipedream-sdk-typescript/blob/main/src/serialization/types/ConfigurePropResponse.ts#L26
It states that the Raw returned object includes a property named "string_options", but upon inspection of the network response api, this is not the case. It returns "stringOptions". For example, the icon_emoji in slack_v2-send-message-to-channel

curl 'https://api.pipedream.com/v1/connect//components/configure' \
 <..snip...>
  -H 'x-pd-environment: production' \
  --data-raw '{"external_user_id":"demo-2039e7bf-cb9c-4890-8aea-ebc82be2f69a","page":0,"id":"slack_v2-send-message-to-channel","prop_name":"icon_emoji","configured_props":{"slack":{"authProvisionId":"apn_ZWhLGrX"},"conversation":{"__lv":{"label":"Public channel: eduardo-test","value":"C09QCD0LWL8"}},"addToChannel":false,"customizeBotSettings":true},"dynamic_props_id":"dyp_oQUx8Q4"}'

returns:

{
    "stringOptions": [
        "bowtie",
        "squirrel",
        "glitch_crab",
        "piggy",
      <...snip...>
    ],
    "observations": [],
    "timings": {
        "lambda_configure_prop_called": 1762814017875,
        "lambda_done": 1762814017926
    },
    "t": {
        "ar": 1762814017706,
        "br": 1762814017837,
        "bp": 1762814017837,
        "bls": 1762814017837,
        "ble": 1762814017933,
        "lcp": 1762814017875,
        "le": 1762814017926
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions