@red-hat-developer-hub/backstage-plugin-orchestrator-common 1.26.0 → 1.26.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/QueryParams.cjs.js.map +1 -1
  3. package/dist/QueryParams.esm.js.map +1 -1
  4. package/dist/constants.cjs.js.map +1 -1
  5. package/dist/constants.esm.js.map +1 -1
  6. package/dist/generated/api/definition.cjs.js +1 -1
  7. package/dist/generated/api/definition.cjs.js.map +1 -1
  8. package/dist/generated/api/definition.esm.js +1 -1
  9. package/dist/generated/api/definition.esm.js.map +1 -1
  10. package/dist/generated/client/api.cjs.js +0 -5
  11. package/dist/generated/client/api.cjs.js.map +1 -1
  12. package/dist/generated/client/api.esm.js +1 -5
  13. package/dist/generated/client/api.esm.js.map +1 -1
  14. package/dist/generated/client/base.cjs.js.map +1 -1
  15. package/dist/generated/client/base.esm.js.map +1 -1
  16. package/dist/generated/client/common.cjs.js.map +1 -1
  17. package/dist/generated/client/common.esm.js.map +1 -1
  18. package/dist/generated/client/configuration.cjs.js.map +1 -1
  19. package/dist/generated/client/configuration.esm.js.map +1 -1
  20. package/dist/index.cjs.js +1 -1
  21. package/dist/index.d.ts +2 -12
  22. package/dist/index.esm.js +2 -2
  23. package/dist/models.cjs.js.map +1 -1
  24. package/dist/models.esm.js.map +1 -1
  25. package/dist/permissions.cjs.js +9 -1
  26. package/dist/permissions.cjs.js.map +1 -1
  27. package/dist/permissions.esm.js +9 -2
  28. package/dist/permissions.esm.js.map +1 -1
  29. package/dist/types.cjs.js.map +1 -1
  30. package/dist/types.esm.js.map +1 -1
  31. package/dist/utils/StringUtils.cjs.js.map +1 -1
  32. package/dist/utils/StringUtils.esm.js.map +1 -1
  33. package/dist/workflow.cjs.js.map +1 -1
  34. package/dist/workflow.esm.js.map +1 -1
  35. package/package.json +11 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.13.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.1) (2024-08-02)
2
2
 
3
+ ## 1.26.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 29cf5fb: Limit viewable component to specific roles
8
+ - 754a051: Adapt UI for completedWith field removal
9
+
3
10
  ## 1.26.0
4
11
 
5
12
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParams.cjs.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport const QUERY_PARAM_BUSINESS_KEY = 'businessKey' as const;\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_INCLUDE_ASSESSMENT = 'includeAssessment' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":";;AAeO,MAAM,wBAA2B,GAAA,cAAA;AACjC,MAAM,uBAA0B,GAAA,aAAA;AAChC,MAAM,8BAAiC,GAAA,oBAAA;AACvC,MAAM,kCACX,GAAA;;;;;;;"}
1
+ {"version":3,"file":"QueryParams.cjs.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport const QUERY_PARAM_BUSINESS_KEY = 'businessKey' as const;\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_INCLUDE_ASSESSMENT = 'includeAssessment' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":";;AAeO,MAAM,wBAA2B,GAAA;AACjC,MAAM,uBAA0B,GAAA;AAChC,MAAM,8BAAiC,GAAA;AACvC,MAAM,kCACX,GAAA;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParams.esm.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport const QUERY_PARAM_BUSINESS_KEY = 'businessKey' as const;\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_INCLUDE_ASSESSMENT = 'includeAssessment' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":"AAeO,MAAM,wBAA2B,GAAA,cAAA;AACjC,MAAM,uBAA0B,GAAA,aAAA;AAChC,MAAM,8BAAiC,GAAA,oBAAA;AACvC,MAAM,kCACX,GAAA;;;;"}
1
+ {"version":3,"file":"QueryParams.esm.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport const QUERY_PARAM_BUSINESS_KEY = 'businessKey' as const;\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_INCLUDE_ASSESSMENT = 'includeAssessment' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":"AAeO,MAAM,wBAA2B,GAAA;AACjC,MAAM,uBAA0B,GAAA;AAChC,MAAM,8BAAiC,GAAA;AACvC,MAAM,kCACX,GAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:main';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":";;AAgBO,MAAM,kCACX,GAAA,2DAAA;AACK,MAAM,mCAAsC,GAAA,2BAAA;AAC5C,MAAM,2BAA8B,GAAA,mBAAA;AAEpC,MAAM,sBAAyB,GAAA,YAAA;AAE/B,MAAM,wBAA2B,GAAA,2BAAA;AACjC,MAAM,4BAA+B,GAAA;;;;;;;;;"}
1
+ {"version":3,"file":"constants.cjs.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:main';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":";;AAgBO,MAAM,kCACX,GAAA;AACK,MAAM,mCAAsC,GAAA;AAC5C,MAAM,2BAA8B,GAAA;AAEpC,MAAM,sBAAyB,GAAA;AAE/B,MAAM,wBAA2B,GAAA;AACjC,MAAM,4BAA+B,GAAA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:main';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":"AAgBO,MAAM,kCACX,GAAA,2DAAA;AACK,MAAM,mCAAsC,GAAA,2BAAA;AAC5C,MAAM,2BAA8B,GAAA,mBAAA;AAEpC,MAAM,sBAAyB,GAAA,YAAA;AAE/B,MAAM,wBAA2B,GAAA,2BAAA;AACjC,MAAM,4BAA+B,GAAA;;;;"}
1
+ {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:main';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":"AAgBO,MAAM,kCACX,GAAA;AACK,MAAM,mCAAsC,GAAA;AAC5C,MAAM,2BAA8B,GAAA;AAEpC,MAAM,sBAAyB,GAAA;AAE/B,MAAM,wBAA2B,GAAA;AACjC,MAAM,4BAA+B,GAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}},{"name":"includeAssessment","in":"query","required":false,"description":"Whethertoincludeassessment","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}},{"name":"businessKey","in":"query","description":"IDoftheparentworkflow","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"businessKey":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"completedWith":{"description":"Thestateofworkflowcompletion.","type":"string","enum":["error","success"]},"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true}}},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"}]},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
3
+ const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}},{"name":"includeAssessment","in":"query","required":false,"description":"Whethertoincludeassessment","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}},{"name":"businessKey","in":"query","description":"IDoftheparentworkflow","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"businessKey":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true}}},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"}]},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
4
4
  const openApiDocument = JSON.parse(OPENAPI);
5
5
 
6
6
  exports.openApiDocument = openApiDocument;
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}},{\"name\":\"includeAssessment\",\"in\":\"query\",\"required\":false,\"description\":\"Whethertoincludeassessment\",\"schema\":{\"type\":\"boolean\",\"default\":false}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/AssessedProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"businessKey\",\"in\":\"query\",\"description\":\"IDoftheparentworkflow\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowCategoryDTO\":{\"type\":\"string\",\"description\":\"Categoryoftheworkflow\",\"enum\":[\"assessment\",\"infrastructure\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"category\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"AssessedProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"instance\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"},\"assessedBy\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"required\":[\"instance\"]},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"businessKey\":{\"type\":\"string\"},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"completedWith\":{\"description\":\"Thestateofworkflowcompletion.\",\"type\":\"string\",\"enum\":[\"error\",\"success\"]},\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true}}},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"}]},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":";;AAGA,MAAM,OAAU,GAAA,CAAA,q2dAAA,CAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}
1
+ {"version":3,"file":"definition.cjs.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}},{\"name\":\"includeAssessment\",\"in\":\"query\",\"required\":false,\"description\":\"Whethertoincludeassessment\",\"schema\":{\"type\":\"boolean\",\"default\":false}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/AssessedProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"businessKey\",\"in\":\"query\",\"description\":\"IDoftheparentworkflow\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowCategoryDTO\":{\"type\":\"string\",\"description\":\"Categoryoftheworkflow\",\"enum\":[\"assessment\",\"infrastructure\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"category\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"AssessedProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"instance\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"},\"assessedBy\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"required\":[\"instance\"]},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"businessKey\":{\"type\":\"string\"},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true}}},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"}]},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":";;AAGA,MAAM,OAAU,GAAA,CAAA,0vdAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}
@@ -1,4 +1,4 @@
1
- const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}},{"name":"includeAssessment","in":"query","required":false,"description":"Whethertoincludeassessment","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}},{"name":"businessKey","in":"query","description":"IDoftheparentworkflow","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"businessKey":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"completedWith":{"description":"Thestateofworkflowcompletion.","type":"string","enum":["error","success"]},"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true}}},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"}]},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
1
+ const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}},{"name":"includeAssessment","in":"query","required":false,"description":"Whethertoincludeassessment","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}},{"name":"businessKey","in":"query","description":"IDoftheparentworkflow","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"businessKey":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true}}},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"}]},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
2
2
  const openApiDocument = JSON.parse(OPENAPI);
3
3
 
4
4
  export { openApiDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"definition.esm.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}},{\"name\":\"includeAssessment\",\"in\":\"query\",\"required\":false,\"description\":\"Whethertoincludeassessment\",\"schema\":{\"type\":\"boolean\",\"default\":false}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/AssessedProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"businessKey\",\"in\":\"query\",\"description\":\"IDoftheparentworkflow\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowCategoryDTO\":{\"type\":\"string\",\"description\":\"Categoryoftheworkflow\",\"enum\":[\"assessment\",\"infrastructure\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"category\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"AssessedProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"instance\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"},\"assessedBy\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"required\":[\"instance\"]},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"businessKey\":{\"type\":\"string\"},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"completedWith\":{\"description\":\"Thestateofworkflowcompletion.\",\"type\":\"string\",\"enum\":[\"error\",\"success\"]},\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true}}},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"}]},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":"AAGA,MAAM,OAAU,GAAA,CAAA,q2dAAA,CAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}
1
+ {"version":3,"file":"definition.esm.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}},{\"name\":\"includeAssessment\",\"in\":\"query\",\"required\":false,\"description\":\"Whethertoincludeassessment\",\"schema\":{\"type\":\"boolean\",\"default\":false}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/AssessedProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"businessKey\",\"in\":\"query\",\"description\":\"IDoftheparentworkflow\",\"required\":false,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowCategoryDTO\":{\"type\":\"string\",\"description\":\"Categoryoftheworkflow\",\"enum\":[\"assessment\",\"infrastructure\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"category\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"AssessedProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"instance\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"},\"assessedBy\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"required\":[\"instance\"]},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"businessKey\":{\"type\":\"string\"},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true}}},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"}]},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":"AAGA,MAAM,OAAU,GAAA,CAAA,0vdAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}