@red-hat-developer-hub/backstage-plugin-orchestrator-common 1.24.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 (57) hide show
  1. package/CHANGELOG.md +228 -0
  2. package/README.md +5 -0
  3. package/config.d.ts +81 -0
  4. package/dist/QueryParams.cjs.js +12 -0
  5. package/dist/QueryParams.cjs.js.map +1 -0
  6. package/dist/QueryParams.esm.js +7 -0
  7. package/dist/QueryParams.esm.js.map +1 -0
  8. package/dist/constants.cjs.js +16 -0
  9. package/dist/constants.cjs.js.map +1 -0
  10. package/dist/constants.esm.js +9 -0
  11. package/dist/constants.esm.js.map +1 -0
  12. package/dist/generated/api/definition.cjs.js +7 -0
  13. package/dist/generated/api/definition.cjs.js.map +1 -0
  14. package/dist/generated/api/definition.esm.js +5 -0
  15. package/dist/generated/api/definition.esm.js.map +1 -0
  16. package/dist/generated/client/api.cjs.js +761 -0
  17. package/dist/generated/client/api.cjs.js.map +1 -0
  18. package/dist/generated/client/api.esm.js +744 -0
  19. package/dist/generated/client/api.esm.js.map +1 -0
  20. package/dist/generated/client/base.cjs.js +34 -0
  21. package/dist/generated/client/base.cjs.js.map +1 -0
  22. package/dist/generated/client/base.esm.js +25 -0
  23. package/dist/generated/client/base.esm.js.map +1 -0
  24. package/dist/generated/client/common.cjs.js +55 -0
  25. package/dist/generated/client/common.cjs.js.map +1 -0
  26. package/dist/generated/client/common.esm.js +48 -0
  27. package/dist/generated/client/common.esm.js.map +1 -0
  28. package/dist/generated/client/configuration.cjs.js +87 -0
  29. package/dist/generated/client/configuration.cjs.js.map +1 -0
  30. package/dist/generated/client/configuration.esm.js +85 -0
  31. package/dist/generated/client/configuration.esm.js.map +1 -0
  32. package/dist/index.cjs.js +63 -0
  33. package/dist/index.cjs.js.map +1 -0
  34. package/dist/index.d.ts +1570 -0
  35. package/dist/index.esm.js +11 -0
  36. package/dist/index.esm.js.map +1 -0
  37. package/dist/models.cjs.js +34 -0
  38. package/dist/models.cjs.js.map +1 -0
  39. package/dist/models.esm.js +29 -0
  40. package/dist/models.esm.js.map +1 -0
  41. package/dist/permissions.cjs.js +45 -0
  42. package/dist/permissions.cjs.js.map +1 -0
  43. package/dist/permissions.esm.js +38 -0
  44. package/dist/permissions.esm.js.map +1 -0
  45. package/dist/types.cjs.js +18 -0
  46. package/dist/types.cjs.js.map +1 -0
  47. package/dist/types.esm.js +14 -0
  48. package/dist/types.esm.js.map +1 -0
  49. package/dist/utils/StringUtils.cjs.js +8 -0
  50. package/dist/utils/StringUtils.cjs.js.map +1 -0
  51. package/dist/utils/StringUtils.esm.js +5 -0
  52. package/dist/utils/StringUtils.esm.js.map +1 -0
  53. package/dist/workflow.cjs.js +96 -0
  54. package/dist/workflow.cjs.js.map +1 -0
  55. package/dist/workflow.esm.js +87 -0
  56. package/dist/workflow.esm.js.map +1 -0
  57. package/package.json +85 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,228 @@
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
+
3
+ ## 1.24.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 54daa8c: Migrated from [janus-idp/backstage-plugins](https://github.com/janus-idp/backstage-plugins).
8
+
9
+ ## 1.24.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 25f1787: Add enum filters to orchestrator plugin
14
+
15
+ ## 1.23.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 0e6bfd3: feat: update Backstage to the latest version
20
+
21
+ Update to Backstage 1.32.5
22
+
23
+ ## 1.23.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 8244f28: chore(deps): update to backstage 1.32
28
+
29
+ ## 1.22.1
30
+
31
+ ### Patch Changes
32
+
33
+ - 8bd8660: fix(orchestrator): fix typo in package resolution
34
+
35
+ ## 1.22.0
36
+
37
+ ### Minor Changes
38
+
39
+ - d9551ae: feat(deps): update to backstage 1.31
40
+
41
+ ### Patch Changes
42
+
43
+ - d9551ae: change deps to peer deps in common packages
44
+ - d9551ae: upgrade to yarn v3
45
+
46
+ ### Bug Fixes
47
+
48
+ - **orchestrator:** remove default pagination on v2 endpoints ([#1983](https://github.com/janus-idp/backstage-plugins/issues/1983)) ([5e30274](https://github.com/janus-idp/backstage-plugins/commit/5e302748a25cbad127122407e5258576054eac3d))
49
+
50
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.13.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.12.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.0) (2024-07-26)
51
+
52
+ ### Features
53
+
54
+ - **deps:** update to backstage 1.29 ([#1900](https://github.com/janus-idp/backstage-plugins/issues/1900)) ([f53677f](https://github.com/janus-idp/backstage-plugins/commit/f53677fb02d6df43a9de98c43a9f101a6db76802))
55
+ - **orchestrator:** use v2 endpoints to retrieve instances ([#1956](https://github.com/janus-idp/backstage-plugins/issues/1956)) ([537502b](https://github.com/janus-idp/backstage-plugins/commit/537502b9d2ac13f2fb3f79188422d2c6e97f41fb))
56
+
57
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.12.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.11.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.12.0) (2024-07-24)
58
+
59
+ ### Features
60
+
61
+ - **deps:** update to backstage 1.28 ([#1891](https://github.com/janus-idp/backstage-plugins/issues/1891)) ([1ba1108](https://github.com/janus-idp/backstage-plugins/commit/1ba11088e0de60e90d138944267b83600dc446e5))
62
+ - **orchestrator:** use v2 endpoints to retrieve workflow overviews ([#1892](https://github.com/janus-idp/backstage-plugins/issues/1892)) ([cca1e53](https://github.com/janus-idp/backstage-plugins/commit/cca1e53bc6b3019b1c544f2f62bed8723ebf6130))
63
+
64
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.10.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.9.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.10.0) (2024-06-28)
65
+
66
+ ### Features
67
+
68
+ - **orchestrator:** remove unneeded orchestrator jira integration and endpoint ([#1833](https://github.com/janus-idp/backstage-plugins/issues/1833)) ([d2a76fd](https://github.com/janus-idp/backstage-plugins/commit/d2a76fd3db028f9774c821759bee5f38b7131c94))
69
+
70
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.9.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.8.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.9.0) (2024-06-13)
71
+
72
+ ### Features
73
+
74
+ - **deps:** update to backstage 1.27 ([#1683](https://github.com/janus-idp/backstage-plugins/issues/1683)) ([a14869c](https://github.com/janus-idp/backstage-plugins/commit/a14869c3f4177049cb8d6552b36c3ffd17e7997d))
75
+
76
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.8.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.8.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.8.1) (2024-06-04)
77
+
78
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.8.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.2...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.8.0) (2024-05-22)
79
+
80
+ ### Features
81
+
82
+ - **orchestrator:** add permissions to orchestrator plugin ([#1599](https://github.com/janus-idp/backstage-plugins/issues/1599)) ([d0a4531](https://github.com/janus-idp/backstage-plugins/commit/d0a453181e177eb1da7b1e231253b76a2d9356a8))
83
+
84
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.7.2](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.2) (2024-05-15)
85
+
86
+ ### Documentation
87
+
88
+ - **orchestrator:** removes instructions related to the editor ([#1664](https://github.com/janus-idp/backstage-plugins/issues/1664)) ([10a75b2](https://github.com/janus-idp/backstage-plugins/commit/10a75b2706c72751bd774d6fae4332bbc527dc2b))
89
+
90
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.7.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.1) (2024-05-09)
91
+
92
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.7.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.4...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.7.0) (2024-05-09)
93
+
94
+ ### Features
95
+
96
+ - **orchestrator:** add ability to re-trigger workflow in error state ([#1624](https://github.com/janus-idp/backstage-plugins/issues/1624)) ([8709a37](https://github.com/janus-idp/backstage-plugins/commit/8709a37d08c2eafc22f10bd2a41f0a105768222d))
97
+
98
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.6.4](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.3...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.4) (2024-04-18)
99
+
100
+ ### Bug Fixes
101
+
102
+ - **orchestrator:** allows serving the editor envelope in disconnected environments ([#1450](https://github.com/janus-idp/backstage-plugins/issues/1450)) ([1e778d8](https://github.com/janus-idp/backstage-plugins/commit/1e778d88336dfec79d48ece4fd8d2a035133b70e))
103
+
104
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.6.3](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.2...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.3) (2024-04-05)
105
+
106
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.6.2](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.2) (2024-04-04)
107
+
108
+ ### Bug Fixes
109
+
110
+ - **orchestrator:** add lastRunId to overview endpoints ([#1449](https://github.com/janus-idp/backstage-plugins/issues/1449)) ([cce56f7](https://github.com/janus-idp/backstage-plugins/commit/cce56f7de3acc41ecd30b1b9962d7817be69de7d))
111
+ - **orchestrator:** update devmode container tag ([#1439](https://github.com/janus-idp/backstage-plugins/issues/1439)) ([d59ad04](https://github.com/janus-idp/backstage-plugins/commit/d59ad044cd5d8d7566464f140cdbc1dfbad85a62))
112
+
113
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.6.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.1) (2024-03-29)
114
+
115
+ ### Bug Fixes
116
+
117
+ - **orchestrator:** fixes v2/instances endpoint ([#1414](https://github.com/janus-idp/backstage-plugins/issues/1414)) ([88b49df](https://github.com/janus-idp/backstage-plugins/commit/88b49df35cf10e231ba69c239e873cb10e7cc25b))
118
+
119
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.6.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.5.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.6.0) (2024-03-14)
120
+
121
+ ### Features
122
+
123
+ - **orchestrator:** verify availability and cache workflow definition IDs ([#1309](https://github.com/janus-idp/backstage-plugins/issues/1309)) ([4d322f1](https://github.com/janus-idp/backstage-plugins/commit/4d322f1fc5b6f8b1afedf40cfe1b24b2edae2ac1))
124
+
125
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.5.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.5.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.5.1) (2024-03-12)
126
+
127
+ ### Bug Fixes
128
+
129
+ - **orchestrator:** openapi files hash generation use nodejs script ([#1328](https://github.com/janus-idp/backstage-plugins/issues/1328)) ([e91c27e](https://github.com/janus-idp/backstage-plugins/commit/e91c27ecf7066149aa498e5b2e65a1d3653fa448))
130
+
131
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.5.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.4.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.5.0) (2024-03-11)
132
+
133
+ ### Features
134
+
135
+ - **orchestrator:** verify if auto-generated openapi files are up-to-date ([#1323](https://github.com/janus-idp/backstage-plugins/issues/1323)) ([650b435](https://github.com/janus-idp/backstage-plugins/commit/650b435ac53c517fc5e960734a4d3085399b1608))
136
+
137
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.4.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.4.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.4.1) (2024-03-11)
138
+
139
+ ### Bug Fixes
140
+
141
+ - **orchestrator:** add missing query parameter changes for /overview endpoint ([#1321](https://github.com/janus-idp/backstage-plugins/issues/1321)) ([241576d](https://github.com/janus-idp/backstage-plugins/commit/241576d242cd88e6d264180a69a5e1e9cd282df6))
142
+
143
+ ### Other changes
144
+
145
+ - **orchestrator:** add unit tests for v2 endpoints ([#1300](https://github.com/janus-idp/backstage-plugins/issues/1300)) ([9a13138](https://github.com/janus-idp/backstage-plugins/commit/9a13138c61d3cc7331f739da80f020bb68dd61e5))
146
+
147
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.4.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.7...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.4.0) (2024-03-07)
148
+
149
+ ### Features
150
+
151
+ - **orchestrator:** support pagination for /instances and /overview ([#1313](https://github.com/janus-idp/backstage-plugins/issues/1313)) ([79d5988](https://github.com/janus-idp/backstage-plugins/commit/79d598816f16c8346b6868bff4cc30d695cad518))
152
+
153
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.7](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.6...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.7) (2024-03-03)
154
+
155
+ ### Bug Fixes
156
+
157
+ - **orchestrator:** stop fetching workflow URI ([#1297](https://github.com/janus-idp/backstage-plugins/issues/1297)) ([2456a28](https://github.com/janus-idp/backstage-plugins/commit/2456a287dbff955a0916b9600e89a39511cd537a))
158
+
159
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.6](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.5...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.6) (2024-02-29)
160
+
161
+ ### Bug Fixes
162
+
163
+ - **orchestrator:** refactor 500 response to use ErrorResponse object ([#1290](https://github.com/janus-idp/backstage-plugins/issues/1290)) ([2580f3d](https://github.com/janus-idp/backstage-plugins/commit/2580f3d38cecf78334964666eb7c127c21b00924))
164
+
165
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.5](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.4...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.5) (2024-02-28)
166
+
167
+ ### Bug Fixes
168
+
169
+ - **orchestrator:** clean up the plugin code ([#1292](https://github.com/janus-idp/backstage-plugins/issues/1292)) ([ad27fb8](https://github.com/janus-idp/backstage-plugins/commit/ad27fb8e98913a6b80feb38ff58a7864e1953a7e))
170
+
171
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.4](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.3...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.4) (2024-02-28)
172
+
173
+ ### Bug Fixes
174
+
175
+ - **orchestrator:** regenerate Open API with new instance state ([#1289](https://github.com/janus-idp/backstage-plugins/issues/1289)) ([8755fdd](https://github.com/janus-idp/backstage-plugins/commit/8755fdd04dac406a4a02bfd7823d0993a6edf0b3))
176
+
177
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.3](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.2...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.3) (2024-02-28)
178
+
179
+ ### Bug Fixes
180
+
181
+ - **orchestrator:** handle nullable start/state properties of process instance ([#1277](https://github.com/janus-idp/backstage-plugins/issues/1277)) ([d8a43a5](https://github.com/janus-idp/backstage-plugins/commit/d8a43a5a164f83fc90d037ae3d7a355f5de543e0))
182
+
183
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.2](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.2) (2024-02-27)
184
+
185
+ ### Bug Fixes
186
+
187
+ - **orchestrator:** remove date-time format from spec ([#1282](https://github.com/janus-idp/backstage-plugins/issues/1282)) ([2b59dcf](https://github.com/janus-idp/backstage-plugins/commit/2b59dcf00082e617911289d8813ad02b83800470))
188
+
189
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.1) (2024-02-21)
190
+
191
+ ### Bug Fixes
192
+
193
+ - **orchestrator:** implementation of getWorkflowById (v2) ([#1233](https://github.com/janus-idp/backstage-plugins/issues/1233)) ([f9f9008](https://github.com/janus-idp/backstage-plugins/commit/f9f9008d29f244c2ae6d688d3e2dc9b65b705e5b))
194
+ - **orchestrator:** minor improvements and fixes ([#1242](https://github.com/janus-idp/backstage-plugins/issues/1242)) ([c9ec4cb](https://github.com/janus-idp/backstage-plugins/commit/c9ec4cbe1847268e8068edc69c7937c5e133c315))
195
+
196
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.3.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.2.1...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.3.0) (2024-02-20)
197
+
198
+ ### Features
199
+
200
+ - **orchestrator:** add OpenAPI v2 implementations ([#1182](https://github.com/janus-idp/backstage-plugins/issues/1182)) ([43ac2f3](https://github.com/janus-idp/backstage-plugins/commit/43ac2f3f492b5c977142a3cfd9868d5e193ceb02))
201
+
202
+ ### Bug Fixes
203
+
204
+ - **orchestrator:** decommission the ProcessInstance.lastUpdate field ([#1230](https://github.com/janus-idp/backstage-plugins/issues/1230)) ([9724e27](https://github.com/janus-idp/backstage-plugins/commit/9724e27eaa84fe73d7724f28c86409681b7f79f8))
205
+
206
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.2.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.2.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.2.1) (2024-02-16)
207
+
208
+ ### Bug Fixes
209
+
210
+ - **orchestrator:** resolve mismatch between execution data and composed schema ([#1217](https://github.com/janus-idp/backstage-plugins/issues/1217)) ([af85114](https://github.com/janus-idp/backstage-plugins/commit/af851148935e1ed083709cac145520d7551de737))
211
+
212
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.2.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.1.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.2.0) (2024-02-16)
213
+
214
+ ### Features
215
+
216
+ - **orchestrator:** add OpenAPI support ([#1123](https://github.com/janus-idp/backstage-plugins/issues/1123)) ([bd88e23](https://github.com/janus-idp/backstage-plugins/commit/bd88e2304c93761ce6754985074f004a5a3c8c4b))
217
+
218
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.1.0](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.0.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.1.0) (2024-02-02)
219
+
220
+ ### Features
221
+
222
+ - **orchestrator:** add the ability to rerun workflows in a new instance ([#1141](https://github.com/janus-idp/backstage-plugins/issues/1141)) ([fe326df](https://github.com/janus-idp/backstage-plugins/commit/fe326df569caa5a9e7b7ec809c1c371a2a936010))
223
+
224
+ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common 1.0.0 (2024-01-17)
225
+
226
+ ### Features
227
+
228
+ - **orchestrator:** add orchestrator plugin ([#783](https://github.com/janus-idp/backstage-plugins/issues/783)) ([cf5fe74](https://github.com/janus-idp/backstage-plugins/commit/cf5fe74db6992d9f51f5073bbcf20c8c346357a1)), closes [#28](https://github.com/janus-idp/backstage-plugins/issues/28) [#38](https://github.com/janus-idp/backstage-plugins/issues/38) [#35](https://github.com/janus-idp/backstage-plugins/issues/35) [#21](https://github.com/janus-idp/backstage-plugins/issues/21)
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Orchestrator Common Plugin for Backstage
2
+
3
+ Welcome to the common package for the Orchestrator plugin!
4
+
5
+ For more information about the Orchestrator plugin, see the [Orchestrator Plugin documentation](https://github.com/redhat-developer/rhdh-plugins/tree/main/workspaces/orchestrator/plugins/orchestrator) on GitHub.
package/config.d.ts ADDED
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Copyright 2024 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface Config {
17
+ /**
18
+ * Configuration for the Orchestrator plugin.
19
+ */
20
+ orchestrator?: {
21
+ sonataFlowService: {
22
+ /**
23
+ * Base URL of the Sonata Flow service.
24
+ * Default: http://localhost
25
+ */
26
+ baseUrl?: string;
27
+ /**
28
+ * Port of the Sonata Flow service.
29
+ * Default: no port
30
+ */
31
+ port?: string;
32
+ /**
33
+ * Whether to start the Sonata Flow service automatically.
34
+ * If set to `false`, the plugin assumes that the SonataFlow service is already running on `baseUrl`:`port` (or just `baseUrl` if `port` is not set).
35
+ * Default: false
36
+ */
37
+ autoStart?: boolean;
38
+ /**
39
+ * Workflows definitions source configurations
40
+ */
41
+ workflowsSource?:
42
+ | {
43
+ /**
44
+ * Remote git repository where workflows definitions are stored
45
+ */
46
+ gitRepositoryUrl: string;
47
+ /**
48
+ * Path to map workflow resources to SonataFlow service.
49
+ * Example: /home/orchestrator/workflows
50
+ */
51
+ localPath: string;
52
+ }
53
+ | {
54
+ localPath: string;
55
+ };
56
+
57
+ /**
58
+ * Container image name of the Sonata Flow service.
59
+ * Default: quay.io/kiegroup/kogito-swf-devmode-nightly:main-2024-02-19
60
+ */
61
+ container?: string;
62
+ /**
63
+ * Persistance configuration of the Sonata Flow service.
64
+ */
65
+ persistance?: {
66
+ /**
67
+ * Path in the container image to store persistance data.
68
+ * Default: /home/kogito/persistence
69
+ */
70
+ path?: string;
71
+ };
72
+ };
73
+ dataIndexService: {
74
+ /**
75
+ * URL of the Data Index service.
76
+ * Example: http://localhost:8099
77
+ */
78
+ url: string;
79
+ };
80
+ };
81
+ }
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const QUERY_PARAM_BUSINESS_KEY = "businessKey";
4
+ const QUERY_PARAM_INSTANCE_ID = "instanceId";
5
+ const QUERY_PARAM_INCLUDE_ASSESSMENT = "includeAssessment";
6
+ const QUERY_PARAM_ASSESSMENT_INSTANCE_ID = "assessmentInstanceId";
7
+
8
+ exports.QUERY_PARAM_ASSESSMENT_INSTANCE_ID = QUERY_PARAM_ASSESSMENT_INSTANCE_ID;
9
+ exports.QUERY_PARAM_BUSINESS_KEY = QUERY_PARAM_BUSINESS_KEY;
10
+ exports.QUERY_PARAM_INCLUDE_ASSESSMENT = QUERY_PARAM_INCLUDE_ASSESSMENT;
11
+ exports.QUERY_PARAM_INSTANCE_ID = QUERY_PARAM_INSTANCE_ID;
12
+ //# sourceMappingURL=QueryParams.cjs.js.map
@@ -0,0 +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;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ const QUERY_PARAM_BUSINESS_KEY = "businessKey";
2
+ const QUERY_PARAM_INSTANCE_ID = "instanceId";
3
+ const QUERY_PARAM_INCLUDE_ASSESSMENT = "includeAssessment";
4
+ const QUERY_PARAM_ASSESSMENT_INSTANCE_ID = "assessmentInstanceId";
5
+
6
+ export { QUERY_PARAM_ASSESSMENT_INSTANCE_ID, QUERY_PARAM_BUSINESS_KEY, QUERY_PARAM_INCLUDE_ASSESSMENT, QUERY_PARAM_INSTANCE_ID };
7
+ //# sourceMappingURL=QueryParams.esm.js.map
@@ -0,0 +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;;;;"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ const DEFAULT_SONATAFLOW_CONTAINER_IMAGE = "docker.io/apache/incubator-kie-sonataflow-devmode:latest";
4
+ const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = "/home/kogito/persistence";
5
+ const DEFAULT_SONATAFLOW_BASE_URL = "http://localhost";
6
+ const DEFAULT_WORKFLOWS_PATH = "workflows";
7
+ const ASSESSMENT_WORKFLOW_TYPE = "workflow-type/assessment";
8
+ const INFRASTRUCTURE_WORKFLOW_TYPE = "workflow-type/infrastructure";
9
+
10
+ exports.ASSESSMENT_WORKFLOW_TYPE = ASSESSMENT_WORKFLOW_TYPE;
11
+ exports.DEFAULT_SONATAFLOW_BASE_URL = DEFAULT_SONATAFLOW_BASE_URL;
12
+ exports.DEFAULT_SONATAFLOW_CONTAINER_IMAGE = DEFAULT_SONATAFLOW_CONTAINER_IMAGE;
13
+ exports.DEFAULT_SONATAFLOW_PERSISTENCE_PATH = DEFAULT_SONATAFLOW_PERSISTENCE_PATH;
14
+ exports.DEFAULT_WORKFLOWS_PATH = DEFAULT_WORKFLOWS_PATH;
15
+ exports.INFRASTRUCTURE_WORKFLOW_TYPE = INFRASTRUCTURE_WORKFLOW_TYPE;
16
+ //# sourceMappingURL=constants.cjs.js.map
@@ -0,0 +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 'docker.io/apache/incubator-kie-sonataflow-devmode:latest';\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;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ const DEFAULT_SONATAFLOW_CONTAINER_IMAGE = "docker.io/apache/incubator-kie-sonataflow-devmode:latest";
2
+ const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = "/home/kogito/persistence";
3
+ const DEFAULT_SONATAFLOW_BASE_URL = "http://localhost";
4
+ const DEFAULT_WORKFLOWS_PATH = "workflows";
5
+ const ASSESSMENT_WORKFLOW_TYPE = "workflow-type/assessment";
6
+ const INFRASTRUCTURE_WORKFLOW_TYPE = "workflow-type/infrastructure";
7
+
8
+ export { ASSESSMENT_WORKFLOW_TYPE, DEFAULT_SONATAFLOW_BASE_URL, DEFAULT_SONATAFLOW_CONTAINER_IMAGE, DEFAULT_SONATAFLOW_PERSISTENCE_PATH, DEFAULT_WORKFLOWS_PATH, INFRASTRUCTURE_WORKFLOW_TYPE };
9
+ //# sourceMappingURL=constants.esm.js.map
@@ -0,0 +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 'docker.io/apache/incubator-kie-sonataflow-devmode:latest';\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;;;;"}
@@ -0,0 +1,7 @@
1
+ 'use strict';
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/GetInstancesRequest"}}}},"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"}}],"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"]},"GetInstancesRequest":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"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"},"avgDurationMs":{"type":"number","minimum":0},"description":{"type":"string"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"totalCount":{"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"},"status":{"$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}},"required":["inputData"]},"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","CONTAINS","CONTAINS_ALL","CONTAINS_ANY","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
+ const openApiDocument = JSON.parse(OPENAPI);
5
+
6
+ exports.openApiDocument = openApiDocument;
7
+ //# sourceMappingURL=definition.cjs.js.map
@@ -0,0 +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/GetInstancesRequest\"}}}},\"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\"}}],\"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\"]},\"GetInstancesRequest\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"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\"},\"avgDurationMs\":{\"type\":\"number\",\"minimum\":0},\"description\":{\"type\":\"string\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"totalCount\":{\"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\"},\"status\":{\"$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}},\"required\":[\"inputData\"]},\"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\",\"CONTAINS\",\"CONTAINS_ALL\",\"CONTAINS_ANY\",\"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,sheAAA,CAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}
@@ -0,0 +1,5 @@
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/GetInstancesRequest"}}}},"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"}}],"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"]},"GetInstancesRequest":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"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"},"avgDurationMs":{"type":"number","minimum":0},"description":{"type":"string"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"totalCount":{"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"},"status":{"$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}},"required":["inputData"]},"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","CONTAINS","CONTAINS_ALL","CONTAINS_ANY","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
+ const openApiDocument = JSON.parse(OPENAPI);
3
+
4
+ export { openApiDocument };
5
+ //# sourceMappingURL=definition.esm.js.map