@prismatic-io/prism 6.0.0-preview4 → 6.0.0-preview5

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 CHANGED
@@ -32625,7 +32625,7 @@ For documentation on writing custom components, visit https://prismatic.io/docs/
32625
32625
  }
32626
32626
  }
32627
32627
  }
32628
- `,variables:{executionId:Z,nextCursor:X}}),{edges:W}=Y.logs;if(!W||W.length===0)return;const H=W.map(({node:O})=>O),K=H.reduce((O,{message:I})=>O||I.startsWith("Ending Instance"),!1),{cursor:q}=W[W.length-1];return{logs:H,cursor:q,executionComplete:K}}}var hV6=F3(OK(),1);var sk0=F3(FC8(),1),ClQ=sk0.default.v1,jlQ=sk0.default.v3,Q57=sk0.default.v4,SlQ=sk0.default.v5,klQ=sk0.default.NIL,vlQ=sk0.default.version,_lQ=sk0.default.validate,ylQ=sk0.default.stringify,blQ=sk0.default.parse;import JcZ from"path";class Qs0 extends hV6.Command{constructor(){super(...arguments)}static description="Initialize a new file for a Code Native Integration Flow";static flags={name:hV6.Flags.string({char:"n",description:"Name of the flow"}),description:hV6.Flags.string({char:"d",description:"Description for the flow"}),destinationPath:hV6.Flags.string({hidden:!0})};async run(){const{flags:Z}=await this.parse(Qs0),{name:X,description:Y}=await s00.prompt([{type:"input",name:"name",message:"Name of the flow",when:()=>!Z.name},{type:"input",name:"description",message:"Description for the flow",when:()=>!Z.description}],Z),W=QE(X),H=Z.destinationPath||`${W}.ts`;await cr(JcZ.join("flow","flow.ts.ejs"),H,{flow:{name:X,key:W,description:Y,stableKey:Q57()}})}static async invoke(Z,X){await Qs0.run(OX0(Z),X)}}var X57=F3(OK(),1);import YcZ from"fs/promises";var gV6=F3(OK(),1);import Xs0 from"path";class Js0 extends gV6.Command{constructor(){super(...arguments)}static description="Initialize a new Code Native Integration";static flags={name:gV6.Flags.string({char:"n",description:"Name of the integration"}),description:gV6.Flags.string({char:"d",description:"Description for the integration"}),connectionType:gV6.Flags.string({char:"t",description:"Type of connection",options:Object.keys(_o0)})};async run(){const{flags:Z}=await this.parse(Js0),{name:X,description:Y,connectionType:W}=await s00.prompt([{type:"input",name:"name",message:"Name of the integration",when:()=>!Z.name},{type:"input",name:"description",message:"Description for the integration",when:()=>!Z.description},{type:"list",name:"connectionType",message:"Type of connection",choices:Object.entries(_o0).map(([I,N])=>({name:N,value:I})),when:()=>!Z.connectionType}],Z),q={integration:{name:X,description:Y,key:QE(X)},configVar:{key:QE("Connection 1"),stableKey:Q57(),label:"Connection 1",connectionType:W},flow:{name:"Flow 1"}},O=[Xs0.join("assets","icon.png"),Xs0.join("src","index.ts"),Xs0.join("src","index.test.ts"),Xs0.join("src","client.ts"),"jest.config.js","package.json","tsconfig.json","webpack.config.js"];await Promise.all([...O.map((I)=>cr(Xs0.join("integration",`${I}.ejs`),I,q)),cr(Xs0.join("integration",`${W}.ts.ejs`),Xs0.join("src","configPages.ts"),q),Qs0.invoke({name:"Flow 1",description:"This is the first flow",destinationPath:Xs0.join("src","flows.ts")},this.config)]),await ko0({path:"package.json",scripts:{build:"webpack",import:"npm run build && prism integrations:import",test:"jest",lint:"eslint --ext .ts ."},eslintConfig:{root:!0,extends:["@prismatic-io/eslint-config-spectral"]},dependencies:{"@prismatic-io/spectral":"8.0.6"},devDependencies:{"@prismatic-io/eslint-config-spectral":"2.0.1","@types/jest":"26.0.24","copy-webpack-plugin":"11.0.0",jest:"27.0.6","ts-jest":"27.0.3","ts-loader":"9.2.3",typescript:"4.3.5",webpack:"5.76.3","webpack-cli":"5.0.1"}}),this.log(`
32628
+ `,variables:{executionId:Z,nextCursor:X}}),{edges:W}=Y.logs;if(!W||W.length===0)return;const H=W.map(({node:O})=>O),K=H.reduce((O,{message:I})=>O||I.startsWith("Ending Instance"),!1),{cursor:q}=W[W.length-1];return{logs:H,cursor:q,executionComplete:K}}}var hV6=F3(OK(),1);var sk0=F3(FC8(),1),ClQ=sk0.default.v1,jlQ=sk0.default.v3,Q57=sk0.default.v4,SlQ=sk0.default.v5,klQ=sk0.default.NIL,vlQ=sk0.default.version,_lQ=sk0.default.validate,ylQ=sk0.default.stringify,blQ=sk0.default.parse;import JcZ from"path";class Qs0 extends hV6.Command{constructor(){super(...arguments)}static description="Initialize a new file for a Code Native Integration Flow";static flags={name:hV6.Flags.string({char:"n",description:"Name of the flow"}),description:hV6.Flags.string({char:"d",description:"Description for the flow"}),destinationPath:hV6.Flags.string({hidden:!0})};async run(){const{flags:Z}=await this.parse(Qs0),{name:X,description:Y}=await s00.prompt([{type:"input",name:"name",message:"Name of the flow",when:()=>!Z.name},{type:"input",name:"description",message:"Description for the flow",when:()=>!Z.description}],Z),W=QE(X),H=Z.destinationPath||`${W}.ts`;await cr(JcZ.join("flow","flow.ts.ejs"),H,{flow:{name:X,key:W,description:Y,stableKey:Q57()}})}static async invoke(Z,X){await Qs0.run(OX0(Z),X)}}var X57=F3(OK(),1);import YcZ from"fs/promises";var gV6=F3(OK(),1);import Xs0 from"path";class Js0 extends gV6.Command{constructor(){super(...arguments)}static description="Initialize a new Code Native Integration";static flags={name:gV6.Flags.string({char:"n",description:"Name of the integration"}),description:gV6.Flags.string({char:"d",description:"Description for the integration"}),connectionType:gV6.Flags.string({char:"t",description:"Type of connection",options:Object.keys(_o0)})};async run(){const{flags:Z}=await this.parse(Js0),{name:X,description:Y,connectionType:W}=await s00.prompt([{type:"input",name:"name",message:"Name of the integration",when:()=>!Z.name},{type:"input",name:"description",message:"Description for the integration",when:()=>!Z.description},{type:"list",name:"connectionType",message:"Type of connection",choices:Object.entries(_o0).map(([I,N])=>({name:N,value:I})),when:()=>!Z.connectionType}],Z),q={integration:{name:X,description:Y,key:QE(X)},configVar:{key:QE("Connection 1"),stableKey:Q57(),label:"Connection 1",connectionType:W},flow:{name:"Flow 1"}},O=[Xs0.join("assets","icon.png"),Xs0.join("src","index.ts"),Xs0.join("src","index.test.ts"),Xs0.join("src","client.ts"),"jest.config.js","package.json","tsconfig.json","webpack.config.js"];await Promise.all([...O.map((I)=>cr(Xs0.join("integration",`${I}.ejs`),I,q)),cr(Xs0.join("integration",`${W}.ts.ejs`),Xs0.join("src","configPages.ts"),q),Qs0.invoke({name:"Flow 1",description:"This is the first flow",destinationPath:Xs0.join("src","flows.ts")},this.config)]),await ko0({path:"package.json",scripts:{build:"webpack",import:"npm run build && prism integrations:import",test:"jest",lint:"eslint --ext .ts ."},eslintConfig:{root:!0,extends:["@prismatic-io/eslint-config-spectral"]},dependencies:{"@prismatic-io/spectral":"8.0.6"},devDependencies:{"@prismatic-io/eslint-config-spectral":"2.0.1","@types/jest":"29.5.12","copy-webpack-plugin":"12.0.2",jest:"29.7.0","ts-jest":"29.1.2","ts-loader":"9.5.1",typescript:"5.4.5",webpack:"5.91.0","webpack-cli":"5.1.4"}}),this.log(`
32629
32629
  "${X}" is ready for development.
32630
32630
  To install dependencies, run either "npm install" or "yarn install"
32631
32631
  To run unit tests for the integration, run "npm run test" or "yarn test"
@@ -4925,5 +4925,5 @@
4925
4925
  "enableJsonFlag": false
4926
4926
  }
4927
4927
  },
4928
- "version": "6.0.0-preview4"
4928
+ "version": "6.0.0-preview5"
4929
4929
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/prism",
3
- "version": "6.0.0-preview4",
3
+ "version": "6.0.0-preview5",
4
4
  "description": "Build, deploy, and support integrations in Prismatic from the comfort of your command line",
5
5
  "keywords": ["prismatic", "cli"],
6
6
  "homepage": "https://prismatic.io",