@activepieces/piece-connections 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/piece-connections",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "main": "./src/index.js",
5
5
  "dependencies": {},
6
6
  "files": [
package/src/index.js CHANGED
@@ -7,4 +7,4 @@ Use this piece if you are unsure which connection to use beforehand, such as whe
7
7
  - You can retrieve the external ID from the connection settings page by hovering over the connection name.
8
8
  - Use this action to retrieve connection values by their external IDs from this project.
9
9
  - After testing the step, you can use the dynamic value in the piece by clicking (X) and referring to this step.
10
- `,Io=gn({audience:"both",name:"read_connection",displayName:"Read Connection",description:"Fetch connection by name",props:{info:dt.MarkDown({value:is}),connection_name:dt.ShortText({displayName:"Connection External ID",description:void 0,required:!0})},async run(e){let t=await e.connections.get(e.propsValue.connection_name);if(q(t))throw new Error(JSON.stringify({message:"Connection not found",connectionName:e.propsValue.connection_name}));return t}});var as=yo({displayName:"Connections",description:"Read connections dynamically",minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/new-core/connections.svg",categories:["CORE"],auth:Jt.None(),authors:["kishanprmr","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[Io],triggers:[]});0&&(module.exports={connections});
10
+ `,Io=gn({audience:"both",name:"read_connection",displayName:"Read Connection",description:"Fetch connection by name",aiMetadata:{description:"Looks up a stored app connection in the current project by its external ID, so a flow can resolve credentials at runtime instead of binding one fixed connection at build time (for example when the external ID arrives in a webhook payload). When the connection is known up front, configure the target piece action with its own auth instead. Requires the exact external ID and throws if no connection matches; read-only and idempotent.",idempotent:!0},props:{info:dt.MarkDown({value:is}),connection_name:dt.ShortText({displayName:"Connection External ID",description:void 0,required:!0})},async run(e){let t=await e.connections.get(e.propsValue.connection_name);if(q(t))throw new Error(JSON.stringify({message:"Connection not found",connectionName:e.propsValue.connection_name}));return t}});var as=yo({displayName:"Connections",description:"Read connections dynamically",minimumSupportedRelease:"0.36.1",logoUrl:"https://cdn.activepieces.com/pieces/new-core/connections.svg",categories:["CORE"],auth:Jt.None(),authors:["kishanprmr","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[Io],triggers:[]});0&&(module.exports={connections});