@prismatic-io/prism 6.0.3 → 6.0.4
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.
- package/lib/index.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -32646,7 +32646,7 @@ For documentation on writing code-native integrations, visit https://prismatic.i
|
|
|
32646
32646
|
}
|
|
32647
32647
|
}
|
|
32648
32648
|
}
|
|
32649
|
-
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32649
|
+
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r,isPublic:c}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32650
32650
|
query connections($componentId: ID!, $input: String) {
|
|
32651
32651
|
component (id: $componentId) {
|
|
32652
32652
|
connections (label_Icontains: $input, first: 10) {
|
|
@@ -32678,7 +32678,7 @@ For documentation on writing code-native integrations, visit https://prismatic.i
|
|
|
32678
32678
|
}
|
|
32679
32679
|
}
|
|
32680
32680
|
}
|
|
32681
|
-
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32681
|
+
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r,isPublic:c}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32682
32682
|
query actions($componentId: ID!, $input: String) {
|
|
32683
32683
|
actions(isDataSource: true, component: $componentId, searchTerms_Fulltext: $input, first: 10) {
|
|
32684
32684
|
nodes {
|
|
@@ -32708,7 +32708,7 @@ For documentation on writing code-native integrations, visit https://prismatic.i
|
|
|
32708
32708
|
}
|
|
32709
32709
|
}
|
|
32710
32710
|
}
|
|
32711
|
-
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32711
|
+
`,variables:{input:e}})).components.nodes.map(({id:r,key:a,label:s,public:c})=>({name:c?s:`${s} (private)`,value:{key:a,id:r,isPublic:c}}))}async searchSelectors(e,t){return(await E_({document:D_`
|
|
32712
32712
|
query actions($componentId: ID!, $input: String) {
|
|
32713
32713
|
actions(isTrigger: true, component: $componentId, searchTerms_Fulltext: $input, first: 10) {
|
|
32714
32714
|
nodes {
|
|
@@ -32727,16 +32727,16 @@ For documentation on writing code-native integrations, visit https://prismatic.i
|
|
|
32727
32727
|
}
|
|
32728
32728
|
}
|
|
32729
32729
|
}
|
|
32730
|
-
`,variables:{componentId:e.id,input:t}})).actions.nodes.map(({id:a,key:s,label:c,inputs:f})=>({name:c,value:{key:s,id:a,inputs:f.nodes.map(({key:x,comments:A,collection:E,required:T,default:P})=>({key:x,comments:A,valueType:E==="keyvaluelist"?"KeyValuePair[]":"string",required:T&&!P}))}}))}}var fXn=["trigger","connection","dataSource"];var tVu={trigger:new pXn,dataSource:new cXn,connection:new lXn};class Yke extends Ban.Command{constructor(){super(...arguments)}static description="Generate a new Component Selector for use in Code-Native Integrations";static flags={type:Ban.Flags.string({char:"t",description:"Type of component selector",options:fXn})};async run(){const{flags:e}=await this.parse(Yke),t=e.type??await Pan({message:"Type of the component selector",source:(
|
|
32730
|
+
`,variables:{componentId:e.id,input:t}})).actions.nodes.map(({id:a,key:s,label:c,inputs:f})=>({name:c,value:{key:s,id:a,inputs:f.nodes.map(({key:x,comments:A,collection:E,required:T,default:P})=>({key:x,comments:A,valueType:E==="keyvaluelist"?"KeyValuePair[]":"string",required:T&&!P}))}}))}}var fXn=["trigger","connection","dataSource"];var tVu={trigger:new pXn,dataSource:new cXn,connection:new lXn};class Yke extends Ban.Command{constructor(){super(...arguments)}static description="Generate a new Component Selector for use in Code-Native Integrations";static flags={type:Ban.Flags.string({char:"t",description:"Type of component selector",options:fXn})};async run(){const{flags:e}=await this.parse(Yke),t=e.type??await Pan({message:"Type of the component selector",source:(x)=>Promise.resolve(fXn.filter((A)=>A.includes(x??"")).map((A)=>({name:A,value:A})))}),r=tVu[t],a=await Pan({message:"Desired component",source:(x)=>r.searchComponents(x??"")}),s=await Pan({message:"Selector",source:(x)=>r.searchSelectors(a,x??"")}),c=a.isPublic?`"${a.key}"`:`{ key: "${a.key}", isPublic: false }`,f=`
|
|
32731
32731
|
interface ${cN0(`${a.key} ${s.key} ${t}`)} {
|
|
32732
32732
|
type: "${t}";
|
|
32733
|
-
component:
|
|
32733
|
+
component: ${c};
|
|
32734
32734
|
key: "${s.key}";
|
|
32735
32735
|
values: {
|
|
32736
|
-
${s.inputs.map(({key:
|
|
32736
|
+
${s.inputs.map(({key:x,comments:A,valueType:E,required:T})=>`${A?` // ${A}\n`:""} ${x}${T?"":"?"}: ${E};`).join("\n")}
|
|
32737
32737
|
};
|
|
32738
32738
|
}
|
|
32739
|
-
`;this.log(
|
|
32739
|
+
`;this.log(f)}}var IY0=p_(A6(),1);class Xke extends IY0.Command{constructor(){super(...arguments)}static description="List Integration versions";static flags={...IY0.ux.table.flags(),"latest-available":IY0.Flags.boolean({char:"l",description:"Show only the latest available version"})};static args={integration:IY0.Args.string({required:!0,description:"ID of an integration"})};async run(){const{flags:e,args:{integration:t}}=await this.parse(Xke),r=await E_({document:D_`
|
|
32740
32740
|
query listIntegrationVersions(
|
|
32741
32741
|
$integrationId: ID!
|
|
32742
32742
|
$onlyAvailable: Boolean
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED