diff --git a/packages/backend/src/graphql/schema.graphql b/packages/backend/src/graphql/schema.graphql index 6ffc0438..cd5486c2 100644 --- a/packages/backend/src/graphql/schema.graphql +++ b/packages/backend/src/graphql/schema.graphql @@ -1,5 +1,9 @@ type Query { - getApps(name: String, onlyWithTriggers: Boolean, onlyWithActions: Boolean): [App] + getApps( + name: String + onlyWithTriggers: Boolean + onlyWithActions: Boolean + ): [App] getApp(key: AvailableAppsEnumType!): App getConnectedApps(name: String): [App] testConnection(id: String!): Connection @@ -208,6 +212,7 @@ type Field { description: String docUrl: String clickToCopy: Boolean + options: [ArgumentOption] } type FlowConnection { @@ -412,7 +417,7 @@ type TriggerSubstepArgument { variables: Boolean source: TriggerSubstepArgumentSource dependsOn: [String] - options: [TriggerSubstepArgumentOption] + options: [ArgumentOption] } type TriggerSubstepArgumentSource { @@ -421,7 +426,7 @@ type TriggerSubstepArgumentSource { arguments: [TriggerSubstepArgumentSourceArgument] } -type TriggerSubstepArgumentOption { +type ArgumentOption { label: String value: JSONObject } diff --git a/packages/web/src/graphql/queries/get-app.ts b/packages/web/src/graphql/queries/get-app.ts index ce3219ed..aadbbf6a 100644 --- a/packages/web/src/graphql/queries/get-app.ts +++ b/packages/web/src/graphql/queries/get-app.ts @@ -21,6 +21,10 @@ export const GET_APP = gql` description docUrl clickToCopy + options { + label + value + } } authenticationSteps { step