@sammyleenug/plugin-automation 0.0.0-stage → 0.1.0
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.
- package/README.md +2 -2
- package/dist/components/WorkflowStatusTag.vue.d.ts +6 -0
- package/dist/composables.d.ts +16 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +861 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/AutomationApprovalsPage.vue.d.ts +3 -0
- package/dist/pages/AutomationCatalogPage.vue.d.ts +3 -0
- package/dist/pages/AutomationDependenciesPage.vue.d.ts +3 -0
- package/dist/pages/AutomationDesignerPage.vue.d.ts +3 -0
- package/dist/pages/AutomationExecutionsPage.vue.d.ts +3 -0
- package/dist/pages/AutomationOverviewPage.vue.d.ts +3 -0
- package/dist/pages/AutomationSettingsPage.vue.d.ts +3 -0
- package/dist/pages/AutomationsPage.vue.d.ts +3 -0
- package/dist/service.d.ts +19 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +66 -0
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @sammyleenug/plugin-automation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Umoja Workflows & Automation addon UI for dynamically discovered events and capabilities, workflow design, approvals, executions, dependencies, and settings. Exports the Vue plugin, descriptor, pages, `AutomationService`, composables, types, and status component.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
status: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AutomationService } from './service';
|
|
2
|
+
export declare function useAutomation(): {
|
|
3
|
+
service: AutomationService;
|
|
4
|
+
metadata: {
|
|
5
|
+
data: import('vue').Ref<import('./types').WorkflowMetadata | null, import('./types').WorkflowMetadata | null>;
|
|
6
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
error: import('vue').Ref<Error | null, Error | null>;
|
|
8
|
+
load: () => Promise<import('./types').WorkflowMetadata>;
|
|
9
|
+
};
|
|
10
|
+
workflows: {
|
|
11
|
+
data: import('vue').Ref<import('@sammyleenug/plugin-sdk').PaginatedResponse<import('./types').Workflow> | null, import('@sammyleenug/plugin-sdk').PaginatedResponse<import('./types').Workflow> | null>;
|
|
12
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
13
|
+
error: import('vue').Ref<Error | null, Error | null>;
|
|
14
|
+
load: () => Promise<import('@sammyleenug/plugin-sdk').PaginatedResponse<import('./types').Workflow>>;
|
|
15
|
+
};
|
|
16
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NavigationContribution } from '@sammyleenug/plugin-sdk';
|
|
2
|
+
import { default as WorkflowStatusTag } from './components/WorkflowStatusTag.vue';
|
|
3
|
+
import { default as AutomationApprovalsPage } from './pages/AutomationApprovalsPage.vue';
|
|
4
|
+
import { default as AutomationCatalogPage } from './pages/AutomationCatalogPage.vue';
|
|
5
|
+
import { default as AutomationDependenciesPage } from './pages/AutomationDependenciesPage.vue';
|
|
6
|
+
import { default as AutomationDesignerPage } from './pages/AutomationDesignerPage.vue';
|
|
7
|
+
import { default as AutomationExecutionsPage } from './pages/AutomationExecutionsPage.vue';
|
|
8
|
+
import { default as AutomationOverviewPage } from './pages/AutomationOverviewPage.vue';
|
|
9
|
+
import { default as AutomationSettingsPage } from './pages/AutomationSettingsPage.vue';
|
|
10
|
+
import { default as AutomationsPage } from './pages/AutomationsPage.vue';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export * from './service';
|
|
13
|
+
export * from './composables';
|
|
14
|
+
export { WorkflowStatusTag, AutomationApprovalsPage, AutomationCatalogPage, AutomationDependenciesPage, AutomationDesignerPage, AutomationExecutionsPage, AutomationOverviewPage, AutomationSettingsPage, AutomationsPage, };
|
|
15
|
+
export declare const automationPluginDescriptor: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
version: string;
|
|
19
|
+
navigation: NavigationContribution[];
|
|
20
|
+
capabilities: string[];
|
|
21
|
+
components: {
|
|
22
|
+
WorkflowStatusTag: import('vue').DefineComponent<{
|
|
23
|
+
status: string;
|
|
24
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
25
|
+
status: string;
|
|
26
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
};
|
|
28
|
+
routes: {
|
|
29
|
+
path: string;
|
|
30
|
+
name: string;
|
|
31
|
+
component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
meta: {
|
|
33
|
+
requiresAuth: boolean;
|
|
34
|
+
permission: string;
|
|
35
|
+
};
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
export declare const UmojaAutomationPlugin: {
|
|
39
|
+
descriptor: import('@sammyleenug/plugin-sdk').UmojaFrontendPluginDescriptor;
|
|
40
|
+
install(app: import('vue').App, options?: import('@sammyleenug/plugin-sdk').PluginInstallOptions): Promise<void>;
|
|
41
|
+
};
|
|
42
|
+
export default UmojaAutomationPlugin;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
import { usePluginApi as b, useAsyncResource as w, UmojaPageHeader as h, UmojaLoadingState as j, UmojaEmptyState as P, UmojaMetricCard as C, usePluginConfiguration as L, defineUmojaPlugin as H } from "@sammyleenug/plugin-sdk";
|
|
2
|
+
import { defineComponent as k, openBlock as u, createBlock as g, unref as e, onMounted as $, createElementBlock as d, createVNode as a, withCtx as _, createElementVNode as s, Fragment as D, renderList as E, createTextVNode as W, toDisplayString as x, reactive as z, ref as M, computed as I, withModifiers as B, createStaticVNode as F, createCommentVNode as J } from "vue";
|
|
3
|
+
import R from "primevue/tag";
|
|
4
|
+
import U from "primevue/datatable";
|
|
5
|
+
import m from "primevue/column";
|
|
6
|
+
import q from "primevue/button";
|
|
7
|
+
import K from "primevue/accordion";
|
|
8
|
+
import Q from "primevue/accordionpanel";
|
|
9
|
+
import X from "primevue/accordionheader";
|
|
10
|
+
import Y from "primevue/accordioncontent";
|
|
11
|
+
import O from "primevue/inputtext";
|
|
12
|
+
import Z from "primevue/textarea";
|
|
13
|
+
import N from "primevue/select";
|
|
14
|
+
import ee from "primevue/message";
|
|
15
|
+
import T from "primevue/inputnumber";
|
|
16
|
+
import { useRouter as ae } from "vue-router";
|
|
17
|
+
const S = /* @__PURE__ */ k({
|
|
18
|
+
__name: "WorkflowStatusTag",
|
|
19
|
+
props: {
|
|
20
|
+
status: {}
|
|
21
|
+
},
|
|
22
|
+
setup(p) {
|
|
23
|
+
const o = p;
|
|
24
|
+
function t() {
|
|
25
|
+
return ["active", "published", "succeeded", "approved", "valid"].includes(
|
|
26
|
+
o.status
|
|
27
|
+
) ? "success" : ["failed", "rejected", "unavailable"].includes(o.status) ? "danger" : ["paused", "pending", "waiting_approval"].includes(o.status) ? "warn" : "secondary";
|
|
28
|
+
}
|
|
29
|
+
return (n, v) => (u(), g(e(R), {
|
|
30
|
+
value: p.status.replaceAll("_", " "),
|
|
31
|
+
severity: t(),
|
|
32
|
+
class: "capitalize"
|
|
33
|
+
}, null, 8, ["value", "severity"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
class A {
|
|
37
|
+
constructor(o) {
|
|
38
|
+
this.api = o;
|
|
39
|
+
}
|
|
40
|
+
overview() {
|
|
41
|
+
return this.api.get("/workflows/overview");
|
|
42
|
+
}
|
|
43
|
+
workflows(o = 1) {
|
|
44
|
+
return this.api.request("/api/workflows", {
|
|
45
|
+
method: "GET",
|
|
46
|
+
query: { page: o, per_page: 50 },
|
|
47
|
+
raw: !0
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
workflow(o) {
|
|
51
|
+
return this.api.get(`/api/workflows/${encodeURIComponent(o)}`);
|
|
52
|
+
}
|
|
53
|
+
metadata() {
|
|
54
|
+
return this.api.get("/api/workflows/metadata");
|
|
55
|
+
}
|
|
56
|
+
events() {
|
|
57
|
+
return this.api.get("/api/workflows/events");
|
|
58
|
+
}
|
|
59
|
+
actions() {
|
|
60
|
+
return this.api.get("/api/workflows/actions");
|
|
61
|
+
}
|
|
62
|
+
dependencies() {
|
|
63
|
+
return this.api.request(
|
|
64
|
+
"/api/workflows/dependencies",
|
|
65
|
+
{ method: "GET", query: { page: 1, per_page: 100 }, raw: !0 }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
create(o) {
|
|
69
|
+
return this.api.post("/api/workflows", o);
|
|
70
|
+
}
|
|
71
|
+
update(o, t) {
|
|
72
|
+
return this.api.put(
|
|
73
|
+
`/api/workflows/${encodeURIComponent(o)}`,
|
|
74
|
+
t
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
addStep(o, t) {
|
|
78
|
+
return this.api.post(
|
|
79
|
+
`/api/workflows/${encodeURIComponent(o)}/steps`,
|
|
80
|
+
t
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
executions() {
|
|
84
|
+
return this.api.request(
|
|
85
|
+
"/api/workflows/executions",
|
|
86
|
+
{ method: "GET", query: { page: 1, per_page: 50 }, raw: !0 }
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
approvals(o = !1) {
|
|
90
|
+
return this.api.request(
|
|
91
|
+
o ? "/api/workflows/approvals/mine" : "/api/workflows/approvals",
|
|
92
|
+
{ method: "GET", query: { page: 1, per_page: 50 }, raw: !0 }
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
decide(o, t, n) {
|
|
96
|
+
return this.api.post(
|
|
97
|
+
`/api/workflows/approvals/${encodeURIComponent(o)}/decision`,
|
|
98
|
+
{ action: t, comment: n || null }
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const te = { class: "umoja-plugin-page" }, oe = {
|
|
103
|
+
key: 2,
|
|
104
|
+
class: "umoja-card"
|
|
105
|
+
}, ne = { class: "umoja-table-actions" }, ie = /* @__PURE__ */ k({
|
|
106
|
+
__name: "AutomationApprovalsPage",
|
|
107
|
+
setup(p) {
|
|
108
|
+
const o = new A(b()), t = w(() => o.approvals(!0));
|
|
109
|
+
$(() => t.load());
|
|
110
|
+
async function n(v, i) {
|
|
111
|
+
await o.decide(v, i), await t.load();
|
|
112
|
+
}
|
|
113
|
+
return (v, i) => {
|
|
114
|
+
var r;
|
|
115
|
+
return u(), d("main", te, [
|
|
116
|
+
a(e(h), {
|
|
117
|
+
title: "My Approvals",
|
|
118
|
+
subtitle: "Review requests assigned to you."
|
|
119
|
+
}),
|
|
120
|
+
e(t).loading.value ? (u(), g(e(j), { key: 0 })) : (r = e(t).data.value) != null && r.data.length ? (u(), d("div", oe, [
|
|
121
|
+
a(e(U), {
|
|
122
|
+
value: e(t).data.value.data
|
|
123
|
+
}, {
|
|
124
|
+
default: _(() => [
|
|
125
|
+
a(e(m), {
|
|
126
|
+
field: "title",
|
|
127
|
+
header: "Request"
|
|
128
|
+
}),
|
|
129
|
+
a(e(m), {
|
|
130
|
+
field: "status",
|
|
131
|
+
header: "Status"
|
|
132
|
+
}),
|
|
133
|
+
a(e(m), {
|
|
134
|
+
field: "due_at",
|
|
135
|
+
header: "Due"
|
|
136
|
+
}),
|
|
137
|
+
a(e(m), { header: "Actions" }, {
|
|
138
|
+
body: _(({ data: c }) => [
|
|
139
|
+
s("div", ne, [
|
|
140
|
+
a(e(q), {
|
|
141
|
+
icon: "pi pi-check",
|
|
142
|
+
rounded: "",
|
|
143
|
+
text: "",
|
|
144
|
+
severity: "success",
|
|
145
|
+
"aria-label": "Approve",
|
|
146
|
+
onClick: (V) => n(String(c.id), "approve")
|
|
147
|
+
}, null, 8, ["onClick"]),
|
|
148
|
+
a(e(q), {
|
|
149
|
+
icon: "pi pi-times",
|
|
150
|
+
rounded: "",
|
|
151
|
+
text: "",
|
|
152
|
+
severity: "danger",
|
|
153
|
+
"aria-label": "Reject",
|
|
154
|
+
onClick: (V) => n(String(c.id), "reject")
|
|
155
|
+
}, null, 8, ["onClick"])
|
|
156
|
+
])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["value"])
|
|
163
|
+
])) : (u(), g(e(P), {
|
|
164
|
+
key: 1,
|
|
165
|
+
title: "No pending approvals"
|
|
166
|
+
}))
|
|
167
|
+
]);
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}), se = { class: "umoja-plugin-page" }, le = {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: "umoja-form-grid"
|
|
173
|
+
}, ue = { class: "umoja-card" }, re = { class: "umoja-card" }, de = /* @__PURE__ */ k({
|
|
174
|
+
__name: "AutomationCatalogPage",
|
|
175
|
+
setup(p) {
|
|
176
|
+
const o = new A(b()), t = w(() => o.events()), n = w(() => o.actions());
|
|
177
|
+
return $(() => Promise.all([t.load(), n.load()])), (v, i) => (u(), d("main", se, [
|
|
178
|
+
a(e(h), {
|
|
179
|
+
title: "Event & Action Catalog",
|
|
180
|
+
subtitle: "Triggers and actions available under this company's subscriptions and your permissions."
|
|
181
|
+
}),
|
|
182
|
+
e(t).loading.value || e(n).loading.value ? (u(), g(e(j), { key: 0 })) : (u(), d("div", le, [
|
|
183
|
+
s("section", ue, [
|
|
184
|
+
i[0] || (i[0] = s("h2", null, "Event triggers", -1)),
|
|
185
|
+
a(e(K), { multiple: "" }, {
|
|
186
|
+
default: _(() => [
|
|
187
|
+
(u(!0), d(D, null, E(e(t).data.value, (r) => (u(), g(e(Q), {
|
|
188
|
+
key: r.module,
|
|
189
|
+
value: r.module
|
|
190
|
+
}, {
|
|
191
|
+
default: _(() => [
|
|
192
|
+
a(e(X), null, {
|
|
193
|
+
default: _(() => [
|
|
194
|
+
W(x(r.label) + " (" + x(r.events.length) + ")", 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 2
|
|
197
|
+
}, 1024),
|
|
198
|
+
a(e(Y), null, {
|
|
199
|
+
default: _(() => [
|
|
200
|
+
(u(!0), d(D, null, E(r.events, (c) => (u(), d("article", {
|
|
201
|
+
key: c.event_key,
|
|
202
|
+
class: "catalog-item"
|
|
203
|
+
}, [
|
|
204
|
+
s("strong", null, x(c.name), 1),
|
|
205
|
+
s("p", null, x(c.description), 1),
|
|
206
|
+
a(e(R), {
|
|
207
|
+
value: c.schema_version,
|
|
208
|
+
severity: "secondary"
|
|
209
|
+
}, null, 8, ["value"])
|
|
210
|
+
]))), 128))
|
|
211
|
+
]),
|
|
212
|
+
_: 2
|
|
213
|
+
}, 1024)
|
|
214
|
+
]),
|
|
215
|
+
_: 2
|
|
216
|
+
}, 1032, ["value"]))), 128))
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
})
|
|
220
|
+
]),
|
|
221
|
+
s("section", re, [
|
|
222
|
+
i[1] || (i[1] = s("h2", null, "Capability actions", -1)),
|
|
223
|
+
(u(!0), d(D, null, E(e(n).data.value, (r) => (u(), d("article", {
|
|
224
|
+
key: `${r.plugin_id}:${r.command}`,
|
|
225
|
+
class: "catalog-item"
|
|
226
|
+
}, [
|
|
227
|
+
s("strong", null, x(r.name), 1),
|
|
228
|
+
s("p", null, x(r.description), 1),
|
|
229
|
+
a(e(R), {
|
|
230
|
+
value: r.plugin_id
|
|
231
|
+
}, null, 8, ["value"])
|
|
232
|
+
]))), 128))
|
|
233
|
+
])
|
|
234
|
+
]))
|
|
235
|
+
]));
|
|
236
|
+
}
|
|
237
|
+
}), G = (p, o) => {
|
|
238
|
+
const t = p.__vccOpts || p;
|
|
239
|
+
for (const [n, v] of o)
|
|
240
|
+
t[n] = v;
|
|
241
|
+
return t;
|
|
242
|
+
}, pe = /* @__PURE__ */ G(de, [["__scopeId", "data-v-19e613ec"]]), me = { class: "umoja-plugin-page" }, ce = {
|
|
243
|
+
key: 2,
|
|
244
|
+
class: "umoja-card"
|
|
245
|
+
}, ve = /* @__PURE__ */ k({
|
|
246
|
+
__name: "AutomationDependenciesPage",
|
|
247
|
+
setup(p) {
|
|
248
|
+
const o = new A(b()), t = w(() => o.dependencies());
|
|
249
|
+
return $(() => t.load()), (n, v) => {
|
|
250
|
+
var i;
|
|
251
|
+
return u(), d("main", me, [
|
|
252
|
+
a(e(h), {
|
|
253
|
+
title: "Dependencies",
|
|
254
|
+
subtitle: "Automations paused by unavailable subscriptions, plugins, permissions, or owners."
|
|
255
|
+
}),
|
|
256
|
+
e(t).loading.value ? (u(), g(e(j), { key: 0 })) : (i = e(t).data.value) != null && i.data.length ? (u(), d("div", ce, [
|
|
257
|
+
a(e(U), {
|
|
258
|
+
value: e(t).data.value.data
|
|
259
|
+
}, {
|
|
260
|
+
default: _(() => [
|
|
261
|
+
a(e(m), {
|
|
262
|
+
field: "name",
|
|
263
|
+
header: "Automation"
|
|
264
|
+
}),
|
|
265
|
+
a(e(m), {
|
|
266
|
+
field: "dependency_status",
|
|
267
|
+
header: "Status"
|
|
268
|
+
}),
|
|
269
|
+
a(e(m), {
|
|
270
|
+
field: "dependency_issues",
|
|
271
|
+
header: "Issues"
|
|
272
|
+
}),
|
|
273
|
+
a(e(m), {
|
|
274
|
+
field: "updated_at",
|
|
275
|
+
header: "Checked"
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["value"])
|
|
280
|
+
])) : (u(), g(e(P), {
|
|
281
|
+
key: 1,
|
|
282
|
+
title: "All dependencies available"
|
|
283
|
+
}))
|
|
284
|
+
]);
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
}), fe = { class: "umoja-plugin-page" }, _e = { class: "umoja-card umoja-form-grid" }, ge = { class: "umoja-field" }, we = { class: "umoja-field" }, ke = { class: "umoja-field umoja-field--full" }, ye = { class: "designer-flow" }, be = { class: "umoja-card designer-node" }, he = { class: "umoja-field" }, Ae = { class: "umoja-card designer-node" }, xe = { class: "umoja-field" }, je = { class: "umoja-actions" }, $e = /* @__PURE__ */ k({
|
|
288
|
+
__name: "AutomationDesignerPage",
|
|
289
|
+
setup(p) {
|
|
290
|
+
const o = new A(b()), t = w(() => o.metadata()), n = z({
|
|
291
|
+
name: "",
|
|
292
|
+
description: "",
|
|
293
|
+
event_key: "",
|
|
294
|
+
action_key: "",
|
|
295
|
+
execution_mode: "sequential"
|
|
296
|
+
}), v = M(!1), i = M(""), r = I(
|
|
297
|
+
() => {
|
|
298
|
+
var y;
|
|
299
|
+
return ((y = t.data.value) == null ? void 0 : y.event_groups.flatMap(
|
|
300
|
+
(l) => l.events.map((f) => ({
|
|
301
|
+
label: `${l.label} · ${f.name}`,
|
|
302
|
+
value: f.event_key,
|
|
303
|
+
event: f
|
|
304
|
+
}))
|
|
305
|
+
)) || [];
|
|
306
|
+
}
|
|
307
|
+
), c = I(
|
|
308
|
+
() => {
|
|
309
|
+
var y;
|
|
310
|
+
return ((y = t.data.value) == null ? void 0 : y.action_catalog.map((l) => ({
|
|
311
|
+
label: `${l.name} · ${l.plugin_id}`,
|
|
312
|
+
value: `${l.plugin_id}|${l.command}`,
|
|
313
|
+
action: l
|
|
314
|
+
}))) || [];
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
$(() => t.load());
|
|
318
|
+
async function V() {
|
|
319
|
+
v.value = !0;
|
|
320
|
+
try {
|
|
321
|
+
const y = await o.create({
|
|
322
|
+
name: n.name,
|
|
323
|
+
description: n.description,
|
|
324
|
+
workflow_kind: "automation",
|
|
325
|
+
status: "draft",
|
|
326
|
+
trigger_type: "event",
|
|
327
|
+
trigger_event_key: n.event_key,
|
|
328
|
+
trigger_config: {},
|
|
329
|
+
conditions: [],
|
|
330
|
+
execution_mode: n.execution_mode,
|
|
331
|
+
is_active: !1
|
|
332
|
+
});
|
|
333
|
+
if (n.action_key) {
|
|
334
|
+
const [l, f] = n.action_key.split("|");
|
|
335
|
+
await o.addStep(y.id, {
|
|
336
|
+
name: "Execute capability",
|
|
337
|
+
description: null,
|
|
338
|
+
step_type: "action",
|
|
339
|
+
sequence: 1,
|
|
340
|
+
execution_mode: "sequential",
|
|
341
|
+
config: {
|
|
342
|
+
action_type: "capability",
|
|
343
|
+
plugin_id: l,
|
|
344
|
+
command: f,
|
|
345
|
+
input: {},
|
|
346
|
+
input_mapping: {}
|
|
347
|
+
},
|
|
348
|
+
conditions: [],
|
|
349
|
+
is_active: !0
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
i.value = "Draft automation created and validated.";
|
|
353
|
+
} finally {
|
|
354
|
+
v.value = !1;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return (y, l) => (u(), d("main", fe, [
|
|
358
|
+
a(e(h), {
|
|
359
|
+
title: "Automation Designer",
|
|
360
|
+
subtitle: "Build an event-triggered automation from dynamically discovered contracts."
|
|
361
|
+
}),
|
|
362
|
+
e(t).loading.value ? (u(), g(e(j), {
|
|
363
|
+
key: 0,
|
|
364
|
+
label: "Loading events and actions"
|
|
365
|
+
})) : (u(), d("form", {
|
|
366
|
+
key: 1,
|
|
367
|
+
class: "designer",
|
|
368
|
+
onSubmit: B(V, ["prevent"])
|
|
369
|
+
}, [
|
|
370
|
+
s("section", _e, [
|
|
371
|
+
s("div", ge, [
|
|
372
|
+
l[5] || (l[5] = s("label", null, "Name", -1)),
|
|
373
|
+
a(e(O), {
|
|
374
|
+
modelValue: n.name,
|
|
375
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => n.name = f)
|
|
376
|
+
}, null, 8, ["modelValue"])
|
|
377
|
+
]),
|
|
378
|
+
s("div", we, [
|
|
379
|
+
l[6] || (l[6] = s("label", null, "Execution", -1)),
|
|
380
|
+
a(e(N), {
|
|
381
|
+
modelValue: n.execution_mode,
|
|
382
|
+
"onUpdate:modelValue": l[1] || (l[1] = (f) => n.execution_mode = f),
|
|
383
|
+
options: ["sequential", "parallel"]
|
|
384
|
+
}, null, 8, ["modelValue"])
|
|
385
|
+
]),
|
|
386
|
+
s("div", ke, [
|
|
387
|
+
l[7] || (l[7] = s("label", null, "Description", -1)),
|
|
388
|
+
a(e(Z), {
|
|
389
|
+
modelValue: n.description,
|
|
390
|
+
"onUpdate:modelValue": l[2] || (l[2] = (f) => n.description = f),
|
|
391
|
+
rows: "3"
|
|
392
|
+
}, null, 8, ["modelValue"])
|
|
393
|
+
])
|
|
394
|
+
]),
|
|
395
|
+
s("section", ye, [
|
|
396
|
+
s("article", be, [
|
|
397
|
+
l[9] || (l[9] = s("span", { class: "umoja-icon" }, [
|
|
398
|
+
s("i", { class: "pi pi-bolt" })
|
|
399
|
+
], -1)),
|
|
400
|
+
s("div", he, [
|
|
401
|
+
l[8] || (l[8] = s("label", null, "When this event occurs", -1)),
|
|
402
|
+
a(e(N), {
|
|
403
|
+
modelValue: n.event_key,
|
|
404
|
+
"onUpdate:modelValue": l[3] || (l[3] = (f) => n.event_key = f),
|
|
405
|
+
options: r.value,
|
|
406
|
+
"option-label": "label",
|
|
407
|
+
"option-value": "value",
|
|
408
|
+
filter: "",
|
|
409
|
+
placeholder: "Choose an entitled event"
|
|
410
|
+
}, null, 8, ["modelValue", "options"])
|
|
411
|
+
])
|
|
412
|
+
]),
|
|
413
|
+
l[12] || (l[12] = F('<i class="pi pi-arrow-down designer-arrow" data-v-3b3bff22></i><article class="umoja-card designer-node" data-v-3b3bff22><span class="umoja-icon" data-v-3b3bff22><i class="pi pi-filter" data-v-3b3bff22></i></span><div data-v-3b3bff22><strong data-v-3b3bff22>Conditions</strong><p data-v-3b3bff22> No conditions — every matching event continues. Add advanced AND/OR rules after creating the draft. </p></div></article><i class="pi pi-arrow-down designer-arrow" data-v-3b3bff22></i>', 3)),
|
|
414
|
+
s("article", Ae, [
|
|
415
|
+
l[11] || (l[11] = s("span", { class: "umoja-icon" }, [
|
|
416
|
+
s("i", { class: "pi pi-play" })
|
|
417
|
+
], -1)),
|
|
418
|
+
s("div", xe, [
|
|
419
|
+
l[10] || (l[10] = s("label", null, "Then run this action", -1)),
|
|
420
|
+
a(e(N), {
|
|
421
|
+
modelValue: n.action_key,
|
|
422
|
+
"onUpdate:modelValue": l[4] || (l[4] = (f) => n.action_key = f),
|
|
423
|
+
options: c.value,
|
|
424
|
+
"option-label": "label",
|
|
425
|
+
"option-value": "value",
|
|
426
|
+
filter: "",
|
|
427
|
+
placeholder: "Choose an entitled capability"
|
|
428
|
+
}, null, 8, ["modelValue", "options"])
|
|
429
|
+
])
|
|
430
|
+
])
|
|
431
|
+
]),
|
|
432
|
+
i.value ? (u(), g(e(ee), {
|
|
433
|
+
key: 0,
|
|
434
|
+
severity: "success"
|
|
435
|
+
}, {
|
|
436
|
+
default: _(() => [
|
|
437
|
+
W(x(i.value), 1)
|
|
438
|
+
]),
|
|
439
|
+
_: 1
|
|
440
|
+
})) : J("", !0),
|
|
441
|
+
s("div", je, [
|
|
442
|
+
a(e(q), {
|
|
443
|
+
type: "submit",
|
|
444
|
+
label: "Save draft",
|
|
445
|
+
icon: "pi pi-save",
|
|
446
|
+
loading: v.value,
|
|
447
|
+
disabled: !n.name || !n.event_key
|
|
448
|
+
}, null, 8, ["loading", "disabled"])
|
|
449
|
+
])
|
|
450
|
+
], 32))
|
|
451
|
+
]));
|
|
452
|
+
}
|
|
453
|
+
}), Ve = /* @__PURE__ */ G($e, [["__scopeId", "data-v-3b3bff22"]]), qe = { class: "umoja-plugin-page" }, Ce = {
|
|
454
|
+
key: 2,
|
|
455
|
+
class: "umoja-card"
|
|
456
|
+
}, Se = /* @__PURE__ */ k({
|
|
457
|
+
__name: "AutomationExecutionsPage",
|
|
458
|
+
setup(p) {
|
|
459
|
+
const o = new A(b()), t = w(() => o.executions());
|
|
460
|
+
return $(() => t.load()), (n, v) => {
|
|
461
|
+
var i;
|
|
462
|
+
return u(), d("main", qe, [
|
|
463
|
+
a(e(h), {
|
|
464
|
+
title: "Executions",
|
|
465
|
+
subtitle: "Successful, pending, retried, and failed workflow runs."
|
|
466
|
+
}),
|
|
467
|
+
e(t).loading.value ? (u(), g(e(j), { key: 0 })) : (i = e(t).data.value) != null && i.data.length ? (u(), d("div", Ce, [
|
|
468
|
+
a(e(U), {
|
|
469
|
+
value: e(t).data.value.data
|
|
470
|
+
}, {
|
|
471
|
+
default: _(() => [
|
|
472
|
+
a(e(m), {
|
|
473
|
+
field: "trigger_event_key",
|
|
474
|
+
header: "Trigger"
|
|
475
|
+
}),
|
|
476
|
+
a(e(m), {
|
|
477
|
+
field: "status",
|
|
478
|
+
header: "Status"
|
|
479
|
+
}, {
|
|
480
|
+
body: _(({ data: r }) => [
|
|
481
|
+
a(S, {
|
|
482
|
+
status: r.status
|
|
483
|
+
}, null, 8, ["status"])
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
}),
|
|
487
|
+
a(e(m), {
|
|
488
|
+
field: "started_at",
|
|
489
|
+
header: "Started"
|
|
490
|
+
}),
|
|
491
|
+
a(e(m), {
|
|
492
|
+
field: "completed_at",
|
|
493
|
+
header: "Completed"
|
|
494
|
+
}),
|
|
495
|
+
a(e(m), {
|
|
496
|
+
field: "error_message",
|
|
497
|
+
header: "Error"
|
|
498
|
+
})
|
|
499
|
+
]),
|
|
500
|
+
_: 1
|
|
501
|
+
}, 8, ["value"])
|
|
502
|
+
])) : (u(), g(e(P), {
|
|
503
|
+
key: 1,
|
|
504
|
+
title: "No executions"
|
|
505
|
+
}))
|
|
506
|
+
]);
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
}), Pe = { class: "umoja-plugin-page" }, Ue = {
|
|
510
|
+
key: 1,
|
|
511
|
+
class: "umoja-card-grid"
|
|
512
|
+
}, De = /* @__PURE__ */ k({
|
|
513
|
+
__name: "AutomationOverviewPage",
|
|
514
|
+
setup(p) {
|
|
515
|
+
const o = new A(b()), t = w(() => o.overview());
|
|
516
|
+
return $(() => t.load()), (n, v) => {
|
|
517
|
+
var i, r, c, V;
|
|
518
|
+
return u(), d("main", Pe, [
|
|
519
|
+
a(e(h), {
|
|
520
|
+
title: "Workflows & Automation",
|
|
521
|
+
subtitle: "Event-driven automations and human approval workflows."
|
|
522
|
+
}),
|
|
523
|
+
e(t).loading.value ? (u(), g(e(j), { key: 0 })) : (u(), d("div", Ue, [
|
|
524
|
+
a(e(C), {
|
|
525
|
+
label: "Definitions",
|
|
526
|
+
value: Number(((i = e(t).data.value) == null ? void 0 : i.definitions) || 0),
|
|
527
|
+
icon: "pi pi-sitemap"
|
|
528
|
+
}, null, 8, ["value"]),
|
|
529
|
+
a(e(C), {
|
|
530
|
+
label: "Active",
|
|
531
|
+
value: Number(((r = e(t).data.value) == null ? void 0 : r.active_definitions) || 0),
|
|
532
|
+
icon: "pi pi-play-circle"
|
|
533
|
+
}, null, 8, ["value"]),
|
|
534
|
+
a(e(C), {
|
|
535
|
+
label: "Running",
|
|
536
|
+
value: Number(((c = e(t).data.value) == null ? void 0 : c.running_executions) || 0),
|
|
537
|
+
icon: "pi pi-spin pi-spinner"
|
|
538
|
+
}, null, 8, ["value"]),
|
|
539
|
+
a(e(C), {
|
|
540
|
+
label: "Pending approvals",
|
|
541
|
+
value: Number(((V = e(t).data.value) == null ? void 0 : V.pending_approvals) || 0),
|
|
542
|
+
icon: "pi pi-user-edit"
|
|
543
|
+
}, null, 8, ["value"])
|
|
544
|
+
]))
|
|
545
|
+
]);
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
}), Ee = { class: "umoja-plugin-page" }, Ne = { class: "umoja-field" }, Te = { class: "umoja-field" }, Re = { class: "umoja-field" }, Me = { class: "umoja-field" }, Ie = { class: "umoja-actions umoja-field--full" }, We = /* @__PURE__ */ k({
|
|
549
|
+
__name: "AutomationSettingsPage",
|
|
550
|
+
setup(p) {
|
|
551
|
+
const o = L("workflows-automation"), t = z({
|
|
552
|
+
default_timezone: "UTC",
|
|
553
|
+
max_loop_depth: 8,
|
|
554
|
+
default_approval_deadline_hours: 48,
|
|
555
|
+
execution_timeout_seconds: 300
|
|
556
|
+
});
|
|
557
|
+
async function n() {
|
|
558
|
+
await o.save(t);
|
|
559
|
+
}
|
|
560
|
+
return (v, i) => (u(), d("main", Ee, [
|
|
561
|
+
a(e(h), {
|
|
562
|
+
title: "Automation Settings",
|
|
563
|
+
subtitle: "Defaults for execution safety and approval deadlines."
|
|
564
|
+
}),
|
|
565
|
+
s("form", {
|
|
566
|
+
class: "umoja-card umoja-form-grid",
|
|
567
|
+
onSubmit: B(n, ["prevent"])
|
|
568
|
+
}, [
|
|
569
|
+
s("div", Ne, [
|
|
570
|
+
i[4] || (i[4] = s("label", null, "Default timezone", -1)),
|
|
571
|
+
a(e(O), {
|
|
572
|
+
modelValue: t.default_timezone,
|
|
573
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => t.default_timezone = r)
|
|
574
|
+
}, null, 8, ["modelValue"])
|
|
575
|
+
]),
|
|
576
|
+
s("div", Te, [
|
|
577
|
+
i[5] || (i[5] = s("label", null, "Maximum loop depth", -1)),
|
|
578
|
+
a(e(T), {
|
|
579
|
+
modelValue: t.max_loop_depth,
|
|
580
|
+
"onUpdate:modelValue": i[1] || (i[1] = (r) => t.max_loop_depth = r),
|
|
581
|
+
min: 1,
|
|
582
|
+
max: 32
|
|
583
|
+
}, null, 8, ["modelValue"])
|
|
584
|
+
]),
|
|
585
|
+
s("div", Re, [
|
|
586
|
+
i[6] || (i[6] = s("label", null, "Approval deadline (hours)", -1)),
|
|
587
|
+
a(e(T), {
|
|
588
|
+
modelValue: t.default_approval_deadline_hours,
|
|
589
|
+
"onUpdate:modelValue": i[2] || (i[2] = (r) => t.default_approval_deadline_hours = r),
|
|
590
|
+
min: 1
|
|
591
|
+
}, null, 8, ["modelValue"])
|
|
592
|
+
]),
|
|
593
|
+
s("div", Me, [
|
|
594
|
+
i[7] || (i[7] = s("label", null, "Execution timeout (seconds)", -1)),
|
|
595
|
+
a(e(T), {
|
|
596
|
+
modelValue: t.execution_timeout_seconds,
|
|
597
|
+
"onUpdate:modelValue": i[3] || (i[3] = (r) => t.execution_timeout_seconds = r),
|
|
598
|
+
min: 1,
|
|
599
|
+
max: 3600
|
|
600
|
+
}, null, 8, ["modelValue"])
|
|
601
|
+
]),
|
|
602
|
+
s("div", Ie, [
|
|
603
|
+
a(e(q), {
|
|
604
|
+
type: "submit",
|
|
605
|
+
label: "Save settings"
|
|
606
|
+
})
|
|
607
|
+
])
|
|
608
|
+
], 32)
|
|
609
|
+
]));
|
|
610
|
+
}
|
|
611
|
+
}), ze = { class: "umoja-plugin-page" }, Be = {
|
|
612
|
+
key: 2,
|
|
613
|
+
class: "umoja-card"
|
|
614
|
+
}, Oe = /* @__PURE__ */ k({
|
|
615
|
+
__name: "AutomationsPage",
|
|
616
|
+
setup(p) {
|
|
617
|
+
const o = ae(), t = new A(b()), n = w(() => t.workflows());
|
|
618
|
+
return $(() => n.load()), (v, i) => {
|
|
619
|
+
var r;
|
|
620
|
+
return u(), d("main", ze, [
|
|
621
|
+
a(e(h), {
|
|
622
|
+
title: "My Automations",
|
|
623
|
+
subtitle: "Create, publish, pause, and inspect reusable definitions."
|
|
624
|
+
}, {
|
|
625
|
+
actions: _(() => [
|
|
626
|
+
a(e(q), {
|
|
627
|
+
label: "New automation",
|
|
628
|
+
icon: "pi pi-plus",
|
|
629
|
+
onClick: i[0] || (i[0] = (c) => e(o).push("/addons/workflows-automation/designer"))
|
|
630
|
+
})
|
|
631
|
+
]),
|
|
632
|
+
_: 1
|
|
633
|
+
}),
|
|
634
|
+
e(n).loading.value ? (u(), g(e(j), { key: 0 })) : (r = e(n).data.value) != null && r.data.length ? (u(), d("div", Be, [
|
|
635
|
+
a(e(U), {
|
|
636
|
+
value: e(n).data.value.data
|
|
637
|
+
}, {
|
|
638
|
+
default: _(() => [
|
|
639
|
+
a(e(m), {
|
|
640
|
+
field: "name",
|
|
641
|
+
header: "Name"
|
|
642
|
+
}),
|
|
643
|
+
a(e(m), {
|
|
644
|
+
field: "trigger_event_key",
|
|
645
|
+
header: "Trigger"
|
|
646
|
+
}),
|
|
647
|
+
a(e(m), {
|
|
648
|
+
field: "status",
|
|
649
|
+
header: "Status"
|
|
650
|
+
}, {
|
|
651
|
+
body: _(({ data: c }) => [
|
|
652
|
+
a(S, {
|
|
653
|
+
status: c.status
|
|
654
|
+
}, null, 8, ["status"])
|
|
655
|
+
]),
|
|
656
|
+
_: 1
|
|
657
|
+
}),
|
|
658
|
+
a(e(m), {
|
|
659
|
+
field: "dependency_status",
|
|
660
|
+
header: "Dependencies"
|
|
661
|
+
}, {
|
|
662
|
+
body: _(({ data: c }) => [
|
|
663
|
+
a(S, {
|
|
664
|
+
status: c.dependency_status
|
|
665
|
+
}, null, 8, ["status"])
|
|
666
|
+
]),
|
|
667
|
+
_: 1
|
|
668
|
+
}),
|
|
669
|
+
a(e(m), {
|
|
670
|
+
field: "updated_at",
|
|
671
|
+
header: "Updated"
|
|
672
|
+
})
|
|
673
|
+
]),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["value"])
|
|
676
|
+
])) : (u(), g(e(P), {
|
|
677
|
+
key: 1,
|
|
678
|
+
title: "No automations"
|
|
679
|
+
}))
|
|
680
|
+
]);
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
function ua() {
|
|
685
|
+
const p = new A(b());
|
|
686
|
+
return {
|
|
687
|
+
service: p,
|
|
688
|
+
metadata: w(() => p.metadata()),
|
|
689
|
+
workflows: w(() => p.workflows())
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
const Ge = [
|
|
693
|
+
{
|
|
694
|
+
key: "overview",
|
|
695
|
+
label: "Overview",
|
|
696
|
+
path: "/addons/workflows-automation",
|
|
697
|
+
icon: "pi pi-chart-bar",
|
|
698
|
+
required_permission: "plugin.workflows-automation.read",
|
|
699
|
+
order: 10
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
key: "automations",
|
|
703
|
+
label: "My Automations",
|
|
704
|
+
path: "/addons/workflows-automation/automations",
|
|
705
|
+
icon: "pi pi-bolt",
|
|
706
|
+
required_permission: "plugin.workflows-automation.read",
|
|
707
|
+
order: 20
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
key: "designer",
|
|
711
|
+
label: "Automation Designer",
|
|
712
|
+
path: "/addons/workflows-automation/designer",
|
|
713
|
+
icon: "pi pi-sitemap",
|
|
714
|
+
required_permission: "plugin.workflows-automation.design",
|
|
715
|
+
order: 30
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
key: "catalog",
|
|
719
|
+
label: "Event & Action Catalog",
|
|
720
|
+
path: "/addons/workflows-automation/catalog",
|
|
721
|
+
icon: "pi pi-book",
|
|
722
|
+
required_permission: "plugin.workflows-automation.read",
|
|
723
|
+
order: 40
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
key: "approvals",
|
|
727
|
+
label: "My Approvals",
|
|
728
|
+
path: "/addons/workflows-automation/approvals/mine",
|
|
729
|
+
icon: "pi pi-user-edit",
|
|
730
|
+
required_permission: "plugin.workflows-automation.approve",
|
|
731
|
+
order: 50
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
key: "executions",
|
|
735
|
+
label: "Executions",
|
|
736
|
+
path: "/addons/workflows-automation/executions",
|
|
737
|
+
icon: "pi pi-history",
|
|
738
|
+
required_permission: "plugin.workflows-automation.read",
|
|
739
|
+
order: 60
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
key: "dependencies",
|
|
743
|
+
label: "Dependencies",
|
|
744
|
+
path: "/addons/workflows-automation/dependencies",
|
|
745
|
+
icon: "pi pi-link",
|
|
746
|
+
required_permission: "plugin.workflows-automation.read",
|
|
747
|
+
order: 70
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
key: "settings",
|
|
751
|
+
label: "Settings",
|
|
752
|
+
path: "/addons/workflows-automation/settings",
|
|
753
|
+
icon: "pi pi-cog",
|
|
754
|
+
required_permission: "plugin.workflows-automation.settings.manage",
|
|
755
|
+
order: 80
|
|
756
|
+
}
|
|
757
|
+
], Le = {
|
|
758
|
+
id: "workflows-automation",
|
|
759
|
+
name: "Workflows & Automation",
|
|
760
|
+
version: "0.1.0",
|
|
761
|
+
navigation: Ge,
|
|
762
|
+
capabilities: [
|
|
763
|
+
"workflow.automation.execute",
|
|
764
|
+
"workflow.approval.request",
|
|
765
|
+
"workflow.policy.evaluate"
|
|
766
|
+
],
|
|
767
|
+
components: { WorkflowStatusTag: S },
|
|
768
|
+
routes: [
|
|
769
|
+
{
|
|
770
|
+
path: "/addons/workflows-automation",
|
|
771
|
+
name: "plugin-automation-overview",
|
|
772
|
+
component: De,
|
|
773
|
+
meta: {
|
|
774
|
+
requiresAuth: !0,
|
|
775
|
+
permission: "plugin.workflows-automation.read"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
path: "/addons/workflows-automation/automations",
|
|
780
|
+
name: "plugin-automation-list",
|
|
781
|
+
component: Oe,
|
|
782
|
+
meta: {
|
|
783
|
+
requiresAuth: !0,
|
|
784
|
+
permission: "plugin.workflows-automation.read"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
path: "/addons/workflows-automation/designer",
|
|
789
|
+
name: "plugin-automation-designer",
|
|
790
|
+
component: Ve,
|
|
791
|
+
meta: {
|
|
792
|
+
requiresAuth: !0,
|
|
793
|
+
permission: "plugin.workflows-automation.design"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
path: "/addons/workflows-automation/catalog",
|
|
798
|
+
name: "plugin-automation-catalog",
|
|
799
|
+
component: pe,
|
|
800
|
+
meta: {
|
|
801
|
+
requiresAuth: !0,
|
|
802
|
+
permission: "plugin.workflows-automation.read"
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
path: "/addons/workflows-automation/approvals/mine",
|
|
807
|
+
name: "plugin-automation-approvals",
|
|
808
|
+
component: ie,
|
|
809
|
+
meta: {
|
|
810
|
+
requiresAuth: !0,
|
|
811
|
+
permission: "plugin.workflows-automation.approve"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
path: "/addons/workflows-automation/executions",
|
|
816
|
+
name: "plugin-automation-executions",
|
|
817
|
+
component: Se,
|
|
818
|
+
meta: {
|
|
819
|
+
requiresAuth: !0,
|
|
820
|
+
permission: "plugin.workflows-automation.read"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
path: "/addons/workflows-automation/dependencies",
|
|
825
|
+
name: "plugin-automation-dependencies",
|
|
826
|
+
component: ve,
|
|
827
|
+
meta: {
|
|
828
|
+
requiresAuth: !0,
|
|
829
|
+
permission: "plugin.workflows-automation.read"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
path: "/addons/workflows-automation/settings",
|
|
834
|
+
name: "plugin-automation-settings",
|
|
835
|
+
component: We,
|
|
836
|
+
meta: {
|
|
837
|
+
requiresAuth: !0,
|
|
838
|
+
permission: "plugin.workflows-automation.settings.manage"
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
]
|
|
842
|
+
}, ra = H(
|
|
843
|
+
Le
|
|
844
|
+
);
|
|
845
|
+
export {
|
|
846
|
+
ie as AutomationApprovalsPage,
|
|
847
|
+
pe as AutomationCatalogPage,
|
|
848
|
+
ve as AutomationDependenciesPage,
|
|
849
|
+
Ve as AutomationDesignerPage,
|
|
850
|
+
Se as AutomationExecutionsPage,
|
|
851
|
+
De as AutomationOverviewPage,
|
|
852
|
+
A as AutomationService,
|
|
853
|
+
We as AutomationSettingsPage,
|
|
854
|
+
Oe as AutomationsPage,
|
|
855
|
+
ra as UmojaAutomationPlugin,
|
|
856
|
+
S as WorkflowStatusTag,
|
|
857
|
+
Le as automationPluginDescriptor,
|
|
858
|
+
ra as default,
|
|
859
|
+
ua as useAutomation
|
|
860
|
+
};
|
|
861
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/WorkflowStatusTag.vue","../src/service.ts","../src/pages/AutomationApprovalsPage.vue","../src/pages/AutomationCatalogPage.vue","../src/pages/AutomationDependenciesPage.vue","../src/pages/AutomationDesignerPage.vue","../src/pages/AutomationExecutionsPage.vue","../src/pages/AutomationOverviewPage.vue","../src/pages/AutomationSettingsPage.vue","../src/pages/AutomationsPage.vue","../src/composables.ts","../src/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport Tag from \"primevue/tag\";\nconst props = defineProps<{ status: string }>();\nfunction severity() {\n if (\n [\"active\", \"published\", \"succeeded\", \"approved\", \"valid\"].includes(\n props.status,\n )\n )\n return \"success\";\n if ([\"failed\", \"rejected\", \"unavailable\"].includes(props.status))\n return \"danger\";\n if ([\"paused\", \"pending\", \"waiting_approval\"].includes(props.status))\n return \"warn\";\n return \"secondary\";\n}\n</script>\n<template>\n <Tag\n :value=\"status.replaceAll('_', ' ')\"\n :severity=\"severity()\"\n class=\"capitalize\"\n />\n</template>\n","import type {\n JsonObject,\n PaginatedResponse,\n UmojaApiClient,\n} from \"@sammyleenug/plugin-sdk\";\nimport type {\n ActionOption,\n EventGroup,\n Workflow,\n WorkflowExecution,\n WorkflowMetadata,\n} from \"./types\";\n\nexport class AutomationService {\n constructor(private readonly api: UmojaApiClient) {}\n overview() {\n return this.api.get<JsonObject>(\"/workflows/overview\");\n }\n workflows(page = 1) {\n return this.api.request<PaginatedResponse<Workflow>>(\"/api/workflows\", {\n method: \"GET\",\n query: { page, per_page: 50 },\n raw: true,\n });\n }\n workflow(id: string) {\n return this.api.get<JsonObject>(`/api/workflows/${encodeURIComponent(id)}`);\n }\n metadata() {\n return this.api.get<WorkflowMetadata>(\"/api/workflows/metadata\");\n }\n events() {\n return this.api.get<EventGroup[]>(\"/api/workflows/events\");\n }\n actions() {\n return this.api.get<ActionOption[]>(\"/api/workflows/actions\");\n }\n dependencies() {\n return this.api.request<PaginatedResponse<Workflow>>(\n \"/api/workflows/dependencies\",\n { method: \"GET\", query: { page: 1, per_page: 100 }, raw: true },\n );\n }\n create(input: JsonObject) {\n return this.api.post<Workflow>(\"/api/workflows\", input);\n }\n update(id: string, input: JsonObject) {\n return this.api.put<Workflow>(\n `/api/workflows/${encodeURIComponent(id)}`,\n input,\n );\n }\n addStep(workflowId: string, input: JsonObject) {\n return this.api.post(\n `/api/workflows/${encodeURIComponent(workflowId)}/steps`,\n input,\n );\n }\n executions() {\n return this.api.request<PaginatedResponse<WorkflowExecution>>(\n \"/api/workflows/executions\",\n { method: \"GET\", query: { page: 1, per_page: 50 }, raw: true },\n );\n }\n approvals(mine = false) {\n return this.api.request<PaginatedResponse<JsonObject>>(\n mine ? \"/api/workflows/approvals/mine\" : \"/api/workflows/approvals\",\n { method: \"GET\", query: { page: 1, per_page: 50 }, raw: true },\n );\n }\n decide(id: string, action: string, comment?: string) {\n return this.api.post(\n `/api/workflows/approvals/${encodeURIComponent(id)}/decision`,\n { action, comment: comment || null },\n );\n }\n}\n","<script setup lang=\"ts\">\nimport {\n UmojaEmptyState,\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport DataTable from \"primevue/datatable\";\nimport Column from \"primevue/column\";\nimport Button from \"primevue/button\";\nimport { onMounted } from \"vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst approvals = useAsyncResource(() => service.approvals(true));\nonMounted(() => approvals.load());\nasync function decide(id: string, action: string) {\n await service.decide(id, action);\n await approvals.load();\n}\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"My Approvals\"\n subtitle=\"Review requests assigned to you.\"\n /><UmojaLoadingState v-if=\"approvals.loading.value\" /><UmojaEmptyState\n v-else-if=\"!approvals.data.value?.data.length\"\n title=\"No pending approvals\"\n />\n <div v-else class=\"umoja-card\">\n <DataTable :value=\"approvals.data.value.data\"\n ><Column field=\"title\" header=\"Request\" /><Column\n field=\"status\"\n header=\"Status\" /><Column field=\"due_at\" header=\"Due\" /><Column\n header=\"Actions\"\n ><template #body=\"{ data }\"\n ><div class=\"umoja-table-actions\">\n <Button\n icon=\"pi pi-check\"\n rounded\n text\n severity=\"success\"\n aria-label=\"Approve\"\n @click=\"decide(String(data.id), 'approve')\"\n /><Button\n icon=\"pi pi-times\"\n rounded\n text\n severity=\"danger\"\n aria-label=\"Reject\"\n @click=\"decide(String(data.id), 'reject')\"\n /></div></template></Column\n ></DataTable>\n </div>\n </main>\n</template>\n","<script setup lang=\"ts\">\nimport {\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport Accordion from \"primevue/accordion\";\nimport AccordionPanel from \"primevue/accordionpanel\";\nimport AccordionHeader from \"primevue/accordionheader\";\nimport AccordionContent from \"primevue/accordioncontent\";\nimport Tag from \"primevue/tag\";\nimport { onMounted } from \"vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst events = useAsyncResource(() => service.events());\nconst actions = useAsyncResource(() => service.actions());\nonMounted(() => Promise.all([events.load(), actions.load()]));\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Event & Action Catalog\"\n subtitle=\"Triggers and actions available under this company's subscriptions and your permissions.\"\n /><UmojaLoadingState v-if=\"events.loading.value || actions.loading.value\" />\n <div v-else class=\"umoja-form-grid\">\n <section class=\"umoja-card\">\n <h2>Event triggers</h2>\n <Accordion multiple\n ><AccordionPanel\n v-for=\"group in events.data.value\"\n :key=\"group.module\"\n :value=\"group.module\"\n ><AccordionHeader\n >{{ group.label }} ({{ group.events.length }})</AccordionHeader\n ><AccordionContent\n ><article\n v-for=\"event in group.events\"\n :key=\"event.event_key\"\n class=\"catalog-item\"\n >\n <strong>{{ event.name }}</strong>\n <p>{{ event.description }}</p>\n <Tag\n :value=\"event.schema_version\"\n severity=\"secondary\"\n /></article></AccordionContent></AccordionPanel\n ></Accordion>\n </section>\n <section class=\"umoja-card\">\n <h2>Capability actions</h2>\n <article\n v-for=\"action in actions.data.value\"\n :key=\"`${action.plugin_id}:${action.command}`\"\n class=\"catalog-item\"\n >\n <strong>{{ action.name }}</strong>\n <p>{{ action.description }}</p>\n <Tag :value=\"action.plugin_id\" />\n </article>\n </section>\n </div>\n </main>\n</template>\n<style scoped>\n.catalog-item {\n padding: 1rem 0;\n border-bottom: 1px solid var(--surface-border);\n}\n.catalog-item:last-child {\n border: 0;\n}\n.catalog-item p {\n color: var(--text-color-secondary);\n}\n</style>\n","<script setup lang=\"ts\">\nimport {\n UmojaEmptyState,\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport DataTable from \"primevue/datatable\";\nimport Column from \"primevue/column\";\nimport { onMounted } from \"vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst dependencies = useAsyncResource(() => service.dependencies());\nonMounted(() => dependencies.load());\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Dependencies\"\n subtitle=\"Automations paused by unavailable subscriptions, plugins, permissions, or owners.\"\n /><UmojaLoadingState v-if=\"dependencies.loading.value\" /><UmojaEmptyState\n v-else-if=\"!dependencies.data.value?.data.length\"\n title=\"All dependencies available\"\n />\n <div v-else class=\"umoja-card\">\n <DataTable :value=\"dependencies.data.value.data\"\n ><Column field=\"name\" header=\"Automation\" /><Column\n field=\"dependency_status\"\n header=\"Status\" /><Column\n field=\"dependency_issues\"\n header=\"Issues\" /><Column field=\"updated_at\" header=\"Checked\"\n /></DataTable>\n </div>\n </main>\n</template>\n","<script setup lang=\"ts\">\nimport {\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport Button from \"primevue/button\";\nimport InputText from \"primevue/inputtext\";\nimport Textarea from \"primevue/textarea\";\nimport Select from \"primevue/select\";\nimport Message from \"primevue/message\";\nimport { computed, onMounted, reactive, ref } from \"vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst metadata = useAsyncResource(() => service.metadata());\nconst form = reactive({\n name: \"\",\n description: \"\",\n event_key: \"\",\n action_key: \"\",\n execution_mode: \"sequential\",\n});\nconst saving = ref(false);\nconst notice = ref(\"\");\nconst events = computed(\n () =>\n metadata.data.value?.event_groups.flatMap((group) =>\n group.events.map((event) => ({\n label: `${group.label} · ${event.name}`,\n value: event.event_key,\n event,\n })),\n ) || [],\n);\nconst actions = computed(\n () =>\n metadata.data.value?.action_catalog.map((action) => ({\n label: `${action.name} · ${action.plugin_id}`,\n value: `${action.plugin_id}|${action.command}`,\n action,\n })) || [],\n);\nonMounted(() => metadata.load());\nasync function save() {\n saving.value = true;\n try {\n const workflow = await service.create({\n name: form.name,\n description: form.description,\n workflow_kind: \"automation\",\n status: \"draft\",\n trigger_type: \"event\",\n trigger_event_key: form.event_key,\n trigger_config: {},\n conditions: [],\n execution_mode: form.execution_mode,\n is_active: false,\n });\n if (form.action_key) {\n const [plugin_id, command] = form.action_key.split(\"|\");\n await service.addStep(workflow.id, {\n name: \"Execute capability\",\n description: null,\n step_type: \"action\",\n sequence: 1,\n execution_mode: \"sequential\",\n config: {\n action_type: \"capability\",\n plugin_id,\n command,\n input: {},\n input_mapping: {},\n },\n conditions: [],\n is_active: true,\n });\n }\n notice.value = \"Draft automation created and validated.\";\n } finally {\n saving.value = false;\n }\n}\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Automation Designer\"\n subtitle=\"Build an event-triggered automation from dynamically discovered contracts.\"\n /><UmojaLoadingState\n v-if=\"metadata.loading.value\"\n label=\"Loading events and actions\"\n />\n <form v-else class=\"designer\" @submit.prevent=\"save\">\n <section class=\"umoja-card umoja-form-grid\">\n <div class=\"umoja-field\">\n <label>Name</label><InputText v-model=\"form.name\" />\n </div>\n <div class=\"umoja-field\">\n <label>Execution</label\n ><Select\n v-model=\"form.execution_mode\"\n :options=\"['sequential', 'parallel']\"\n />\n </div>\n <div class=\"umoja-field umoja-field--full\">\n <label>Description</label\n ><Textarea v-model=\"form.description\" rows=\"3\" />\n </div>\n </section>\n <section class=\"designer-flow\">\n <article class=\"umoja-card designer-node\">\n <span class=\"umoja-icon\"><i class=\"pi pi-bolt\" /></span>\n <div class=\"umoja-field\">\n <label>When this event occurs</label\n ><Select\n v-model=\"form.event_key\"\n :options=\"events\"\n option-label=\"label\"\n option-value=\"value\"\n filter\n placeholder=\"Choose an entitled event\"\n />\n </div>\n </article>\n <i class=\"pi pi-arrow-down designer-arrow\" />\n <article class=\"umoja-card designer-node\">\n <span class=\"umoja-icon\"><i class=\"pi pi-filter\" /></span>\n <div>\n <strong>Conditions</strong>\n <p>\n No conditions — every matching event continues. Add advanced\n AND/OR rules after creating the draft.\n </p>\n </div>\n </article>\n <i class=\"pi pi-arrow-down designer-arrow\" />\n <article class=\"umoja-card designer-node\">\n <span class=\"umoja-icon\"><i class=\"pi pi-play\" /></span>\n <div class=\"umoja-field\">\n <label>Then run this action</label\n ><Select\n v-model=\"form.action_key\"\n :options=\"actions\"\n option-label=\"label\"\n option-value=\"value\"\n filter\n placeholder=\"Choose an entitled capability\"\n />\n </div>\n </article>\n </section>\n <Message v-if=\"notice\" severity=\"success\">{{ notice }}</Message>\n <div class=\"umoja-actions\">\n <Button\n type=\"submit\"\n label=\"Save draft\"\n icon=\"pi pi-save\"\n :loading=\"saving\"\n :disabled=\"!form.name || !form.event_key\"\n />\n </div>\n </form>\n </main>\n</template>\n<style scoped>\n.designer {\n display: grid;\n gap: 1.5rem;\n}\n.designer-flow {\n display: grid;\n justify-items: center;\n gap: 0.75rem;\n}\n.designer-node {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n align-items: center;\n gap: 1rem;\n width: min(46rem, 100%);\n}\n.designer-node p {\n margin: 0.35rem 0 0;\n color: var(--text-color-secondary);\n}\n.designer-arrow {\n color: var(--text-color-secondary);\n}\n</style>\n","<script setup lang=\"ts\">\nimport {\n UmojaEmptyState,\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport DataTable from \"primevue/datatable\";\nimport Column from \"primevue/column\";\nimport { onMounted } from \"vue\";\nimport WorkflowStatusTag from \"../components/WorkflowStatusTag.vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst executions = useAsyncResource(() => service.executions());\nonMounted(() => executions.load());\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Executions\"\n subtitle=\"Successful, pending, retried, and failed workflow runs.\"\n /><UmojaLoadingState v-if=\"executions.loading.value\" /><UmojaEmptyState\n v-else-if=\"!executions.data.value?.data.length\"\n title=\"No executions\"\n />\n <div v-else class=\"umoja-card\">\n <DataTable :value=\"executions.data.value.data\"\n ><Column field=\"trigger_event_key\" header=\"Trigger\" /><Column\n field=\"status\"\n header=\"Status\"\n ><template #body=\"{ data }\"\n ><WorkflowStatusTag :status=\"data.status\" /></template></Column\n ><Column field=\"started_at\" header=\"Started\" /><Column\n field=\"completed_at\"\n header=\"Completed\" /><Column field=\"error_message\" header=\"Error\"\n /></DataTable>\n </div>\n </main>\n</template>\n","<script setup lang=\"ts\">\nimport {\n UmojaLoadingState,\n UmojaMetricCard,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport { onMounted } from \"vue\";\nimport { AutomationService } from \"../service\";\nconst service = new AutomationService(usePluginApi());\nconst overview = useAsyncResource(() => service.overview());\nonMounted(() => overview.load());\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Workflows & Automation\"\n subtitle=\"Event-driven automations and human approval workflows.\"\n /><UmojaLoadingState v-if=\"overview.loading.value\" />\n <div v-else class=\"umoja-card-grid\">\n <UmojaMetricCard\n label=\"Definitions\"\n :value=\"Number(overview.data.value?.definitions || 0)\"\n icon=\"pi pi-sitemap\"\n /><UmojaMetricCard\n label=\"Active\"\n :value=\"Number(overview.data.value?.active_definitions || 0)\"\n icon=\"pi pi-play-circle\"\n /><UmojaMetricCard\n label=\"Running\"\n :value=\"Number(overview.data.value?.running_executions || 0)\"\n icon=\"pi pi-spin pi-spinner\"\n /><UmojaMetricCard\n label=\"Pending approvals\"\n :value=\"Number(overview.data.value?.pending_approvals || 0)\"\n icon=\"pi pi-user-edit\"\n />\n </div>\n </main>\n</template>\n","<script setup lang=\"ts\">\nimport { UmojaPageHeader, usePluginConfiguration } from \"@sammyleenug/plugin-sdk\";\nimport Button from \"primevue/button\";\nimport InputText from \"primevue/inputtext\";\nimport InputNumber from \"primevue/inputnumber\";\nimport { reactive } from \"vue\";\nconst configuration = usePluginConfiguration(\"workflows-automation\");\nconst form = reactive({\n default_timezone: \"UTC\",\n max_loop_depth: 8,\n default_approval_deadline_hours: 48,\n execution_timeout_seconds: 300,\n});\nasync function save() {\n await configuration.save(form);\n}\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"Automation Settings\"\n subtitle=\"Defaults for execution safety and approval deadlines.\"\n />\n <form class=\"umoja-card umoja-form-grid\" @submit.prevent=\"save\">\n <div class=\"umoja-field\">\n <label>Default timezone</label\n ><InputText v-model=\"form.default_timezone\" />\n </div>\n <div class=\"umoja-field\">\n <label>Maximum loop depth</label\n ><InputNumber v-model=\"form.max_loop_depth\" :min=\"1\" :max=\"32\" />\n </div>\n <div class=\"umoja-field\">\n <label>Approval deadline (hours)</label\n ><InputNumber v-model=\"form.default_approval_deadline_hours\" :min=\"1\" />\n </div>\n <div class=\"umoja-field\">\n <label>Execution timeout (seconds)</label\n ><InputNumber\n v-model=\"form.execution_timeout_seconds\"\n :min=\"1\"\n :max=\"3600\"\n />\n </div>\n <div class=\"umoja-actions umoja-field--full\">\n <Button type=\"submit\" label=\"Save settings\" />\n </div>\n </form>\n </main>\n</template>\n","<script setup lang=\"ts\">\nimport {\n UmojaEmptyState,\n UmojaLoadingState,\n UmojaPageHeader,\n useAsyncResource,\n usePluginApi,\n} from \"@sammyleenug/plugin-sdk\";\nimport Button from \"primevue/button\";\nimport DataTable from \"primevue/datatable\";\nimport Column from \"primevue/column\";\nimport { useRouter } from \"vue-router\";\nimport { onMounted } from \"vue\";\nimport WorkflowStatusTag from \"../components/WorkflowStatusTag.vue\";\nimport { AutomationService } from \"../service\";\nconst router = useRouter();\nconst service = new AutomationService(usePluginApi());\nconst workflows = useAsyncResource(() => service.workflows());\nonMounted(() => workflows.load());\n</script>\n<template>\n <main class=\"umoja-plugin-page\">\n <UmojaPageHeader\n title=\"My Automations\"\n subtitle=\"Create, publish, pause, and inspect reusable definitions.\"\n ><template #actions\n ><Button\n label=\"New automation\"\n icon=\"pi pi-plus\"\n @click=\"\n router.push('/addons/workflows-automation/designer')\n \" /></template></UmojaPageHeader\n ><UmojaLoadingState v-if=\"workflows.loading.value\" /><UmojaEmptyState\n v-else-if=\"!workflows.data.value?.data.length\"\n title=\"No automations\"\n />\n <div v-else class=\"umoja-card\">\n <DataTable :value=\"workflows.data.value.data\"\n ><Column field=\"name\" header=\"Name\" /><Column\n field=\"trigger_event_key\"\n header=\"Trigger\" /><Column field=\"status\" header=\"Status\"\n ><template #body=\"{ data }\"\n ><WorkflowStatusTag :status=\"data.status\" /></template></Column\n ><Column field=\"dependency_status\" header=\"Dependencies\"\n ><template #body=\"{ data }\"\n ><WorkflowStatusTag\n :status=\"data.dependency_status\" /></template></Column\n ><Column field=\"updated_at\" header=\"Updated\"\n /></DataTable>\n </div>\n </main>\n</template>\n","import { useAsyncResource, usePluginApi } from \"@sammyleenug/plugin-sdk\";\nimport { AutomationService } from \"./service\";\nexport function useAutomation() {\n const service = new AutomationService(usePluginApi());\n return {\n service,\n metadata: useAsyncResource(() => service.metadata()),\n workflows: useAsyncResource(() => service.workflows()),\n };\n}\n","import {\n defineUmojaPlugin,\n type NavigationContribution,\n} from \"@sammyleenug/plugin-sdk\";\nimport WorkflowStatusTag from \"./components/WorkflowStatusTag.vue\";\nimport AutomationApprovalsPage from \"./pages/AutomationApprovalsPage.vue\";\nimport AutomationCatalogPage from \"./pages/AutomationCatalogPage.vue\";\nimport AutomationDependenciesPage from \"./pages/AutomationDependenciesPage.vue\";\nimport AutomationDesignerPage from \"./pages/AutomationDesignerPage.vue\";\nimport AutomationExecutionsPage from \"./pages/AutomationExecutionsPage.vue\";\nimport AutomationOverviewPage from \"./pages/AutomationOverviewPage.vue\";\nimport AutomationSettingsPage from \"./pages/AutomationSettingsPage.vue\";\nimport AutomationsPage from \"./pages/AutomationsPage.vue\";\nexport * from \"./types\";\nexport * from \"./service\";\nexport * from \"./composables\";\nexport {\n WorkflowStatusTag,\n AutomationApprovalsPage,\n AutomationCatalogPage,\n AutomationDependenciesPage,\n AutomationDesignerPage,\n AutomationExecutionsPage,\n AutomationOverviewPage,\n AutomationSettingsPage,\n AutomationsPage,\n};\nconst navigation: NavigationContribution[] = [\n {\n key: \"overview\",\n label: \"Overview\",\n path: \"/addons/workflows-automation\",\n icon: \"pi pi-chart-bar\",\n required_permission: \"plugin.workflows-automation.read\",\n order: 10,\n },\n {\n key: \"automations\",\n label: \"My Automations\",\n path: \"/addons/workflows-automation/automations\",\n icon: \"pi pi-bolt\",\n required_permission: \"plugin.workflows-automation.read\",\n order: 20,\n },\n {\n key: \"designer\",\n label: \"Automation Designer\",\n path: \"/addons/workflows-automation/designer\",\n icon: \"pi pi-sitemap\",\n required_permission: \"plugin.workflows-automation.design\",\n order: 30,\n },\n {\n key: \"catalog\",\n label: \"Event & Action Catalog\",\n path: \"/addons/workflows-automation/catalog\",\n icon: \"pi pi-book\",\n required_permission: \"plugin.workflows-automation.read\",\n order: 40,\n },\n {\n key: \"approvals\",\n label: \"My Approvals\",\n path: \"/addons/workflows-automation/approvals/mine\",\n icon: \"pi pi-user-edit\",\n required_permission: \"plugin.workflows-automation.approve\",\n order: 50,\n },\n {\n key: \"executions\",\n label: \"Executions\",\n path: \"/addons/workflows-automation/executions\",\n icon: \"pi pi-history\",\n required_permission: \"plugin.workflows-automation.read\",\n order: 60,\n },\n {\n key: \"dependencies\",\n label: \"Dependencies\",\n path: \"/addons/workflows-automation/dependencies\",\n icon: \"pi pi-link\",\n required_permission: \"plugin.workflows-automation.read\",\n order: 70,\n },\n {\n key: \"settings\",\n label: \"Settings\",\n path: \"/addons/workflows-automation/settings\",\n icon: \"pi pi-cog\",\n required_permission: \"plugin.workflows-automation.settings.manage\",\n order: 80,\n },\n];\nexport const automationPluginDescriptor = {\n id: \"workflows-automation\",\n name: \"Workflows & Automation\",\n version: \"0.1.0\",\n navigation,\n capabilities: [\n \"workflow.automation.execute\",\n \"workflow.approval.request\",\n \"workflow.policy.evaluate\",\n ],\n components: { WorkflowStatusTag },\n routes: [\n {\n path: \"/addons/workflows-automation\",\n name: \"plugin-automation-overview\",\n component: AutomationOverviewPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.read\",\n },\n },\n {\n path: \"/addons/workflows-automation/automations\",\n name: \"plugin-automation-list\",\n component: AutomationsPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.read\",\n },\n },\n {\n path: \"/addons/workflows-automation/designer\",\n name: \"plugin-automation-designer\",\n component: AutomationDesignerPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.design\",\n },\n },\n {\n path: \"/addons/workflows-automation/catalog\",\n name: \"plugin-automation-catalog\",\n component: AutomationCatalogPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.read\",\n },\n },\n {\n path: \"/addons/workflows-automation/approvals/mine\",\n name: \"plugin-automation-approvals\",\n component: AutomationApprovalsPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.approve\",\n },\n },\n {\n path: \"/addons/workflows-automation/executions\",\n name: \"plugin-automation-executions\",\n component: AutomationExecutionsPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.read\",\n },\n },\n {\n path: \"/addons/workflows-automation/dependencies\",\n name: \"plugin-automation-dependencies\",\n component: AutomationDependenciesPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.read\",\n },\n },\n {\n path: \"/addons/workflows-automation/settings\",\n name: \"plugin-automation-settings\",\n component: AutomationSettingsPage,\n meta: {\n requiresAuth: true,\n permission: \"plugin.workflows-automation.settings.manage\",\n },\n },\n ],\n};\nexport const UmojaAutomationPlugin = defineUmojaPlugin(\n automationPluginDescriptor,\n);\nexport default UmojaAutomationPlugin;\n"],"names":["props","__props","severity","_createBlock","_unref","Tag","AutomationService","api","page","id","input","workflowId","mine","action","comment","service","usePluginApi","approvals","useAsyncResource","onMounted","decide","_openBlock","_createElementBlock","_hoisted_1","_createVNode","UmojaPageHeader","UmojaLoadingState","_hoisted_2","DataTable","Column","_withCtx","data","_createElementVNode","_hoisted_3","Button","UmojaEmptyState","events","actions","_cache","Accordion","_Fragment","group","AccordionPanel","AccordionHeader","_toDisplayString","AccordionContent","_renderList","event","_hoisted_4","dependencies","metadata","form","reactive","saving","ref","notice","computed","_a","save","workflow","plugin_id","command","InputText","$event","Select","_hoisted_5","Textarea","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","Message","_hoisted_11","executions","WorkflowStatusTag","overview","UmojaMetricCard","configuration","usePluginConfiguration","InputNumber","router","useRouter","workflows","useAutomation","navigation","automationPluginDescriptor","AutomationOverviewPage","AutomationsPage","AutomationDesignerPage","AutomationCatalogPage","AutomationApprovalsPage","AutomationExecutionsPage","AutomationDependenciesPage","AutomationSettingsPage","UmojaAutomationPlugin","defineUmojaPlugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,UAAMA,IAAQC;AACd,aAASC,IAAW;AAClB,aACE,CAAC,UAAU,aAAa,aAAa,YAAY,OAAO,EAAE;AAAA,QACxDF,EAAM;AAAA,MAAA,IAGD,YACL,CAAC,UAAU,YAAY,aAAa,EAAE,SAASA,EAAM,MAAM,IACtD,WACL,CAAC,UAAU,WAAW,kBAAkB,EAAE,SAASA,EAAM,MAAM,IAC1D,SACF;AAAA,IACT;2BAGEG,EAIEC,EAAAC,CAAA,GAAA;AAAA,MAHC,OAAOJ,EAAA,OAAO,WAAU,KAAA,GAAA;AAAA,MACxB,UAAUC,EAAA;AAAA,MACX,OAAM;AAAA,IAAA;;;ACRH,MAAMI,EAAkB;AAAA,EAC7B,YAA6BC,GAAqB;AAArB,SAAA,MAAAA;AAAA,EAAsB;AAAA,EACnD,WAAW;AACT,WAAO,KAAK,IAAI,IAAgB,qBAAqB;AAAA,EACvD;AAAA,EACA,UAAUC,IAAO,GAAG;AAClB,WAAO,KAAK,IAAI,QAAqC,kBAAkB;AAAA,MACrE,QAAQ;AAAA,MACR,OAAO,EAAE,MAAAA,GAAM,UAAU,GAAA;AAAA,MACzB,KAAK;AAAA,IAAA,CACN;AAAA,EACH;AAAA,EACA,SAASC,GAAY;AACnB,WAAO,KAAK,IAAI,IAAgB,kBAAkB,mBAAmBA,CAAE,CAAC,EAAE;AAAA,EAC5E;AAAA,EACA,WAAW;AACT,WAAO,KAAK,IAAI,IAAsB,yBAAyB;AAAA,EACjE;AAAA,EACA,SAAS;AACP,WAAO,KAAK,IAAI,IAAkB,uBAAuB;AAAA,EAC3D;AAAA,EACA,UAAU;AACR,WAAO,KAAK,IAA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ACd,YAAY;AAAA,MAAA;AAAA,IACd;AAAA,IAEF;AAAA,MACE,MAAM;AAAA,MACN,MAAM;AAAA,MACN,WAAWC;AAAAA,MACX,MAAM;AAAA,QACJ,cAAc;AAAA,QACd,YAAY;AAAA,MAAA;AAAA,IACd;AAAA,EACF;AAEJ,GACaC,KAAwBC;AAAA,EACnCV;AACF;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JsonObject, PaginatedResponse, UmojaApiClient } from '@sammyleenug/plugin-sdk';
|
|
2
|
+
import { ActionOption, EventGroup, Workflow, WorkflowExecution, WorkflowMetadata } from './types';
|
|
3
|
+
export declare class AutomationService {
|
|
4
|
+
private readonly api;
|
|
5
|
+
constructor(api: UmojaApiClient);
|
|
6
|
+
overview(): Promise<JsonObject>;
|
|
7
|
+
workflows(page?: number): Promise<PaginatedResponse<Workflow>>;
|
|
8
|
+
workflow(id: string): Promise<JsonObject>;
|
|
9
|
+
metadata(): Promise<WorkflowMetadata>;
|
|
10
|
+
events(): Promise<EventGroup[]>;
|
|
11
|
+
actions(): Promise<ActionOption[]>;
|
|
12
|
+
dependencies(): Promise<PaginatedResponse<Workflow>>;
|
|
13
|
+
create(input: JsonObject): Promise<Workflow>;
|
|
14
|
+
update(id: string, input: JsonObject): Promise<Workflow>;
|
|
15
|
+
addStep(workflowId: string, input: JsonObject): Promise<unknown>;
|
|
16
|
+
executions(): Promise<PaginatedResponse<WorkflowExecution>>;
|
|
17
|
+
approvals(mine?: boolean): Promise<PaginatedResponse<JsonObject>>;
|
|
18
|
+
decide(id: string, action: string, comment?: string): Promise<unknown>;
|
|
19
|
+
}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.catalog-item[data-v-19e613ec]{padding:1rem 0;border-bottom:1px solid var(--surface-border)}.catalog-item[data-v-19e613ec]:last-child{border:0}.catalog-item p[data-v-19e613ec]{color:var(--text-color-secondary)}.designer[data-v-3b3bff22]{display:grid;gap:1.5rem}.designer-flow[data-v-3b3bff22]{display:grid;justify-items:center;gap:.75rem}.designer-node[data-v-3b3bff22]{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem;width:min(46rem,100%)}.designer-node p[data-v-3b3bff22]{margin:.35rem 0 0;color:var(--text-color-secondary)}.designer-arrow[data-v-3b3bff22]{color:var(--text-color-secondary)}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { JsonObject, PaginatedResponse } from '@sammyleenug/plugin-sdk';
|
|
2
|
+
export interface Workflow {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
status: string;
|
|
7
|
+
workflow_kind: string;
|
|
8
|
+
trigger_type: string;
|
|
9
|
+
trigger_event_key?: string | null;
|
|
10
|
+
conditions: JsonObject | JsonObject[];
|
|
11
|
+
execution_mode: string;
|
|
12
|
+
is_active: boolean;
|
|
13
|
+
dependency_status: string;
|
|
14
|
+
dependency_issues: unknown[];
|
|
15
|
+
updated_at: string;
|
|
16
|
+
}
|
|
17
|
+
export interface EventOption {
|
|
18
|
+
domain: string;
|
|
19
|
+
event_key: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string | null;
|
|
22
|
+
schema_version: string;
|
|
23
|
+
payload_schema: JsonObject;
|
|
24
|
+
payload_fields: Array<{
|
|
25
|
+
path: string;
|
|
26
|
+
field_type: string;
|
|
27
|
+
required: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
export interface EventGroup {
|
|
31
|
+
module: string;
|
|
32
|
+
label: string;
|
|
33
|
+
events: EventOption[];
|
|
34
|
+
}
|
|
35
|
+
export interface ActionOption {
|
|
36
|
+
plugin_id: string;
|
|
37
|
+
command: string;
|
|
38
|
+
capability_key?: string | null;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
required_permission: string;
|
|
42
|
+
input_schema: JsonObject;
|
|
43
|
+
output_schema: JsonObject;
|
|
44
|
+
}
|
|
45
|
+
export interface WorkflowMetadata {
|
|
46
|
+
trigger_types: string[];
|
|
47
|
+
workflow_statuses: string[];
|
|
48
|
+
execution_modes: string[];
|
|
49
|
+
step_types: string[];
|
|
50
|
+
action_types: string[];
|
|
51
|
+
event_groups: EventGroup[];
|
|
52
|
+
action_catalog: ActionOption[];
|
|
53
|
+
}
|
|
54
|
+
export interface WorkflowExecution {
|
|
55
|
+
id: string;
|
|
56
|
+
workflow_id: string;
|
|
57
|
+
status: string;
|
|
58
|
+
trigger_type: string;
|
|
59
|
+
trigger_event_key?: string | null;
|
|
60
|
+
input_payload: JsonObject;
|
|
61
|
+
output_payload: JsonObject;
|
|
62
|
+
error_message?: string | null;
|
|
63
|
+
started_at: string;
|
|
64
|
+
completed_at?: string | null;
|
|
65
|
+
}
|
|
66
|
+
export type WorkflowList = PaginatedResponse<Workflow>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sammyleenug/plugin-automation",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Umoja Workflows & Automation frontend plugin",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"./dist/style.css"
|
|
8
|
+
],
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "vite build"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@sammyleenug/plugin-sdk": "0.1.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"primevue": "^4.5.0",
|
|
30
|
+
"vue": "^3.4.0",
|
|
31
|
+
"vue-router": "^4.4.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
}
|
|
36
|
+
}
|