MCPcopy Index your code
hub / github.com/webiny/webiny-js / createWorkflowsSchema

Function createWorkflowsSchema

packages/api-workflows/src/graphql/workflows.ts:12–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import { DeleteWorkflowUseCase } from "~/features/workflow/DeleteWorkflow/index.js";
11
12export const createWorkflowsSchema = () => {
13 return new GraphQLSchemaPlugin({
14 typeDefs: /* GraphQL */ `
15 type WorkflowError {
16 code: String
17 message: String
18 data: JSON
19 stack: String
20 }
21
22 input WorkflowStepNotificationInput {
23 id: String!
24 }
25
26 input WorkflowStepTeamInput {
27 id: String!
28 }
29
30 input WorkflowStepInput {
31 id: String!
32 title: String!
33 color: String!
34 description: String
35 teams: [WorkflowStepTeamInput!]!
36 notifications: [WorkflowStepNotificationInput!]
37 }
38
39 input StoreWorkflowInput {
40 name: String!
41 steps: [WorkflowStepInput!]!
42 }
43
44 type WorkflowStepNotification {
45 id: String!
46 }
47
48 type WorkflowStepTeam {
49 id: String!
50 }
51
52 type WorkflowStep {
53 id: String!
54 title: String!
55 color: String!
56 description: String
57 teams: [WorkflowStepTeam!]!
58 notifications: [WorkflowStepNotification!]
59 }
60
61 type Workflow {
62 id: String!
63 app: String!
64 name: String!
65 steps: [WorkflowStep!]!
66 }
67
68 type ListWorkflowsMeta {
69 cursor: String

Callers 1

createWorkflowsFunction · 0.85

Calls 6

resolveFunction · 0.90
createZodErrorFunction · 0.90
resolveListFunction · 0.90
resolveMethod · 0.65
executeMethod · 0.65
isFailMethod · 0.45

Tested by

no test coverage detected