Skip to content

Commit

Permalink
Template new component connections with new display object (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorreece authored Oct 30, 2024
1 parent 87dc0dc commit 59967a8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prismatic-io/prism",
"version": "7.2.1",
"version": "7.2.2",
"description": "Build, deploy, and support integrations in Prismatic from the comfort of your command line",
"keywords": ["prismatic", "cli"],
"homepage": "https://prismatic.io",
Expand Down
12 changes: 8 additions & 4 deletions src/commands/components/init/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,10 @@ exports[`component generation tests wsdl - numberconversion should match scaffol
export const myConnection = connection({
key: "myConnection",
label: "My Connection",
comments: "This is my connection",
display: {
label: "My Connection",
description: "This is my connection",
},
inputs: {
username: {
label: "Username",
Expand Down Expand Up @@ -5029,8 +5031,10 @@ exports[`component generation tests wsdl - countryinfoservice should match scaff
export const myConnection = connection({
key: "myConnection",
label: "My Connection",
comments: "This is my connection",
display: {
label: "My Connection",
description: "This is my connection",
},
inputs: {
username: {
label: "Username",
Expand Down
6 changes: 4 additions & 2 deletions templates/connection/basic.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { connection } from "@prismatic-io/spectral";

export const <%= connection.key %> = connection({
key: "<%= connection.key %>",
label: "<%= connection.label %>",
comments: "<%= connection.comments %>",
display: {
label: "<%= connection.label %>",
description: "<%= connection.comments %>",
},
inputs: {
username: {
label: "Username",
Expand Down
6 changes: 4 additions & 2 deletions templates/connection/oauth.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import {

export const <%= connection.key %> = oauth2Connection({
key: "<%= connection.key %>",
label: "<%= connection.label %>",
comments: "<%= connection.comments %>",
display: {
label: "<%= connection.label %>",
description: "<%= connection.comments %>",
},
oauth2Type: OAuth2Type.AuthorizationCode,
inputs: {
authorizeUrl: {
Expand Down

0 comments on commit 59967a8

Please sign in to comment.