@prismatic-io/prism 6.0.3 → 6.0.5
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 +9 -9
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -31760,12 +31760,12 @@ type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "js
|
|
|
31760
31760
|
nodes {
|
|
31761
31761
|
id
|
|
31762
31762
|
name
|
|
31763
|
+
status
|
|
31763
31764
|
customer {
|
|
31764
31765
|
id
|
|
31765
31766
|
name
|
|
31766
31767
|
externalId
|
|
31767
31768
|
}
|
|
31768
|
-
port
|
|
31769
31769
|
}
|
|
31770
31770
|
pageInfo {
|
|
31771
31771
|
hasNextPage
|
|
@@ -31773,7 +31773,7 @@ type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "js
|
|
|
31773
31773
|
}
|
|
31774
31774
|
}
|
|
31775
31775
|
}
|
|
31776
|
-
`,variables:{after:s,customer:t}});r=[...r,...c],s=f.endCursor,a=f.hasNextPage}gue.ux.table(r,{id:{minWidth:8,extended:!0},name:{},customerId:{extended:!0,get:(c)=>c.customer?.id??""},customer:{get:(c)=>c.customer?.name??""},customerExternalId:{extended:!0,get:(c)=>c.customer?.externalId??""}
|
|
31776
|
+
`,variables:{after:s,customer:t}});r=[...r,...c],s=f.endCursor,a=f.hasNextPage}gue.ux.table(r,{id:{minWidth:8,extended:!0},name:{},customerId:{header:"Customer ID",extended:!0,get:(c)=>c.customer?.id??""},status:{get:(c)=>c.status??""},customer:{get:(c)=>c.customer?.name??""},customerExternalId:{header:"Customer External ID",extended:!0,get:(c)=>c.customer?.externalId??""}},{...e})}}var Eue=p_(A6(),1);var L9t="Only valid for Organization users.";class JPe extends Eue.Command{constructor(){super(...arguments)}static description="Create a JWT that may be used to register an On-Premise Resource.";static flags={customerId:Eue.Flags.string({char:"c",required:!1,description:`The ID of the customer for which to create the JWT. ${L9t}`}),orgOnly:Eue.Flags.boolean({required:!1,description:`Register a Resource available to Organization users only. ${L9t}`}),resourceId:Eue.Flags.string({char:"r",required:!1,description:"An optional ID of an existing On-Premise Resource for which to generate a new JWT."}),rotate:Eue.Flags.boolean({required:!1,description:"Invalidate all JWTs for the On-Premise Resource and get a new JWT."})};async run(){const{flags:{customerId:e,orgOnly:t,resourceId:r,rotate:a}}=await this.parse(JPe);if(a){const s=await E_({document:D_`
|
|
31777
31777
|
mutation rotateOnPremiseResourceJWT(
|
|
31778
31778
|
$customerId: ID
|
|
31779
31779
|
$resourceId: ID
|
|
@@ -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