@powerhousedao/workflow 6.2.3-dev.13 → 6.2.3-dev.15

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.
@@ -2,7 +2,7 @@ import { lazy } from "react";
2
2
  //#region editors/workflow-editor/module.ts
3
3
  /** Document editor module for the "powerhouse/workflow" document type */
4
4
  const WorkflowEditor = {
5
- Component: lazy(() => import("../../editor-D7WL8J_4.mjs")),
5
+ Component: lazy(() => import("../../editor-iDEb5EeC.mjs")),
6
6
  documentTypes: ["powerhouse/workflow"],
7
7
  config: {
8
8
  id: "workflow-editor",
@@ -0,0 +1,424 @@
1
+ {
2
+ "name": "@powerhousedao/piece-reactor",
3
+ "version": "1.0.0",
4
+ "displayName": "Powerhouse Reactor",
5
+ "logoUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMTQgMTE0IiBmaWxsPSJub25lIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzE2MTYxNiIgZD0iTTcxLjI5MTkgMEwyNC4zNDE1IDM4Ljg3NzJDMTcuNDU0OCA0NC41Nzk4IDE2Ljk1MzkgNTQuOTY1OSAyMy4yNiA2MS4zMDQ3TDM5LjUwMjggNzcuNjMxOEM0NC4yNjg0IDgyLjQyMjEgNDUuMjk5NiA4OS43ODM0IDQyLjAzMzUgOTUuNjk4OEwzMS45MjkgMTE0SDE1LjJDNi44MDUyNyAxMTQgMCAxMDcuMTk1IDAgOTguOFYxNS4yQzAgNi44MDUyNyA2LjgwNTI3IDAgMTUuMiAwSDcxLjI5MTlaTTgwLjExMSAwTDcxLjM0MTIgMTUuOTc1OEM2OC4xMDc4IDIxLjg2NiA2OS4xMjU1IDI5LjE4MDQgNzMuODQ0MSAzMy45NjQxTDkxLjA3NTEgNTEuNDMzMUM5Ny4zNjc0IDU3LjgxMjQgOTYuODA0NCA2OC4yMjI3IDg5Ljg2MDcgNzMuODg2MUw0MC42NzgyIDExNEg5OC44QzEwNy4xOTUgMTE0IDExNCAxMDcuMTk1IDExNCA5OC44VjE1LjJDMTE0IDYuODA1MjcgMTA3LjE5NSAwIDk4LjggMEg4MC4xMTFaIi8+PC9zdmc+",
6
+ "actions": {
7
+ "document-create": {
8
+ "name": "document-create",
9
+ "displayName": "Create document",
10
+ "description": "Creates a Powerhouse document.",
11
+ "props": {
12
+ "documentType": {
13
+ "displayName": "Document type",
14
+ "required": false,
15
+ "refreshers": [],
16
+ "type": "DROPDOWN"
17
+ },
18
+ "name": {
19
+ "displayName": "Document name",
20
+ "required": false,
21
+ "type": "SHORT_TEXT"
22
+ },
23
+ "parentId": {
24
+ "displayName": "Parent drive/folder",
25
+ "required": false,
26
+ "refreshers": [],
27
+ "type": "DROPDOWN"
28
+ },
29
+ "actions": {
30
+ "displayName": "Initial actions",
31
+ "description": "e.g. [{ \"type\": \"SET_NAME\", \"input\": { \"name\": \"Invoice\" } }]",
32
+ "required": false,
33
+ "type": "JSON"
34
+ },
35
+ "actionType": {
36
+ "displayName": "Action type",
37
+ "description": "Suggestions for the action list above",
38
+ "required": false,
39
+ "refreshers": [
40
+ "documentType",
41
+ "documentId"
42
+ ],
43
+ "type": "DROPDOWN"
44
+ },
45
+ "payload": {
46
+ "displayName": "Payload",
47
+ "description": "JSON {documentType, name, actions?}, e.g. {{steps.draft.output}}",
48
+ "required": false,
49
+ "type": "SHORT_TEXT"
50
+ }
51
+ },
52
+ "requireAuth": false,
53
+ "errorHandlingOptions": {
54
+ "continueOnFailure": {
55
+ "defaultValue": false
56
+ },
57
+ "retryOnFailure": {
58
+ "defaultValue": false
59
+ }
60
+ }
61
+ },
62
+ "document-dispatch": {
63
+ "name": "document-dispatch",
64
+ "displayName": "Dispatch actions",
65
+ "description": "Sends actions to a document.",
66
+ "props": {
67
+ "documentId": {
68
+ "displayName": "Document id",
69
+ "description": "e.g. {{steps.create.output.documentId}}",
70
+ "required": true,
71
+ "refreshers": [
72
+ "documentType"
73
+ ],
74
+ "type": "DROPDOWN"
75
+ },
76
+ "documentType": {
77
+ "displayName": "Document type",
78
+ "description": "Design-time hint when the document id is an expression",
79
+ "required": false,
80
+ "refreshers": [],
81
+ "type": "DROPDOWN"
82
+ },
83
+ "actions": {
84
+ "displayName": "Actions",
85
+ "description": "e.g. [{ \"type\": \"SET_NAME\", \"input\": { \"name\": \"Invoice\" } }]",
86
+ "required": true,
87
+ "type": "JSON"
88
+ },
89
+ "actionType": {
90
+ "displayName": "Action type",
91
+ "description": "Suggestions for the action list above",
92
+ "required": false,
93
+ "refreshers": [
94
+ "documentType",
95
+ "documentId"
96
+ ],
97
+ "type": "DROPDOWN"
98
+ },
99
+ "allowedActions": {
100
+ "displayName": "Allowed action types",
101
+ "description": "Comma-separated whitelist; enforced when set",
102
+ "required": false,
103
+ "type": "SHORT_TEXT"
104
+ },
105
+ "branch": {
106
+ "displayName": "Branch",
107
+ "description": "Defaults to \"main\"",
108
+ "required": false,
109
+ "type": "SHORT_TEXT"
110
+ }
111
+ },
112
+ "requireAuth": false,
113
+ "errorHandlingOptions": {
114
+ "continueOnFailure": {
115
+ "defaultValue": false
116
+ },
117
+ "retryOnFailure": {
118
+ "defaultValue": false
119
+ }
120
+ }
121
+ },
122
+ "document-get": {
123
+ "name": "document-get",
124
+ "displayName": "Get document",
125
+ "description": "Reads a document's current state.",
126
+ "props": {
127
+ "documentId": {
128
+ "displayName": "Document id",
129
+ "description": "e.g. {{steps.find.output.documents.0.documentId}}",
130
+ "required": true,
131
+ "refreshers": [
132
+ "documentType"
133
+ ],
134
+ "type": "DROPDOWN"
135
+ },
136
+ "documentType": {
137
+ "displayName": "Document type",
138
+ "description": "Design-time hint when the document id is an expression",
139
+ "required": false,
140
+ "refreshers": [],
141
+ "type": "DROPDOWN"
142
+ }
143
+ },
144
+ "requireAuth": false,
145
+ "errorHandlingOptions": {
146
+ "continueOnFailure": {
147
+ "defaultValue": false
148
+ },
149
+ "retryOnFailure": {
150
+ "defaultValue": false
151
+ }
152
+ }
153
+ },
154
+ "document-find": {
155
+ "name": "document-find",
156
+ "displayName": "Find documents",
157
+ "description": "Lists documents by type and name.",
158
+ "props": {
159
+ "documentType": {
160
+ "displayName": "Document type",
161
+ "description": "Omit for any type",
162
+ "required": false,
163
+ "refreshers": [],
164
+ "type": "DROPDOWN"
165
+ },
166
+ "parentId": {
167
+ "displayName": "In drive/folder",
168
+ "description": "Omit for the whole reactor",
169
+ "required": false,
170
+ "refreshers": [],
171
+ "type": "DROPDOWN"
172
+ },
173
+ "name": {
174
+ "displayName": "Name contains",
175
+ "description": "Case-insensitive match",
176
+ "required": false,
177
+ "type": "SHORT_TEXT"
178
+ },
179
+ "matchPath": {
180
+ "displayName": "State field",
181
+ "description": "Dotted path into the document's state, e.g. \"orderId\" or \"settlement.status\". With a value below, only documents holding it are returned.",
182
+ "required": false,
183
+ "type": "SHORT_TEXT"
184
+ },
185
+ "matchValue": {
186
+ "displayName": "State value",
187
+ "description": "Compared as text, e.g. {{trigger.payload.orderId}}. Documents missing the field never match.",
188
+ "required": false,
189
+ "type": "SHORT_TEXT"
190
+ },
191
+ "includeState": {
192
+ "displayName": "Include state",
193
+ "description": "Returns each document's state as well as its id and name. Off by default: a page of documents carries a page of states.",
194
+ "required": false,
195
+ "defaultValue": false,
196
+ "type": "CHECKBOX"
197
+ },
198
+ "limit": {
199
+ "displayName": "Max results",
200
+ "description": "Defaults to 25",
201
+ "required": false,
202
+ "type": "NUMBER"
203
+ }
204
+ },
205
+ "requireAuth": false,
206
+ "errorHandlingOptions": {
207
+ "continueOnFailure": {
208
+ "defaultValue": false
209
+ },
210
+ "retryOnFailure": {
211
+ "defaultValue": false
212
+ }
213
+ }
214
+ },
215
+ "document-schema": {
216
+ "name": "document-schema",
217
+ "displayName": "Get document schema",
218
+ "description": "Action and state schemas of a document type.",
219
+ "props": {
220
+ "documentType": {
221
+ "displayName": "Document type",
222
+ "description": "Required unless a document id is given",
223
+ "required": false,
224
+ "refreshers": [],
225
+ "type": "DROPDOWN"
226
+ },
227
+ "documentId": {
228
+ "displayName": "Document id",
229
+ "description": "Resolves the type from this document instead",
230
+ "required": false,
231
+ "refreshers": [
232
+ "documentType"
233
+ ],
234
+ "type": "DROPDOWN"
235
+ },
236
+ "actionType": {
237
+ "displayName": "Only this action",
238
+ "description": "Omit to list every action",
239
+ "required": false,
240
+ "refreshers": [
241
+ "documentType",
242
+ "documentId"
243
+ ],
244
+ "type": "DROPDOWN"
245
+ }
246
+ },
247
+ "requireAuth": false,
248
+ "errorHandlingOptions": {
249
+ "continueOnFailure": {
250
+ "defaultValue": false
251
+ },
252
+ "retryOnFailure": {
253
+ "defaultValue": false
254
+ }
255
+ }
256
+ },
257
+ "document-types": {
258
+ "name": "document-types",
259
+ "displayName": "List document types",
260
+ "description": "Document models installed on this reactor.",
261
+ "props": {},
262
+ "requireAuth": false,
263
+ "errorHandlingOptions": {
264
+ "continueOnFailure": {
265
+ "defaultValue": false
266
+ },
267
+ "retryOnFailure": {
268
+ "defaultValue": false
269
+ }
270
+ }
271
+ }
272
+ },
273
+ "triggers": {
274
+ "document-event": {
275
+ "name": "document-event",
276
+ "displayName": "Document event",
277
+ "description": "Fires when a matching document operation lands.",
278
+ "requireAuth": false,
279
+ "props": {
280
+ "documentType": {
281
+ "displayName": "Document type",
282
+ "description": "e.g. powerhouse/connection",
283
+ "required": false,
284
+ "refreshers": [],
285
+ "type": "DROPDOWN"
286
+ },
287
+ "documentId": {
288
+ "displayName": "Document id",
289
+ "description": "Omit to match any document",
290
+ "required": false,
291
+ "refreshers": [
292
+ "documentType"
293
+ ],
294
+ "type": "DROPDOWN"
295
+ },
296
+ "actionType": {
297
+ "displayName": "Action type",
298
+ "description": "Omit to match any action",
299
+ "required": false,
300
+ "refreshers": [
301
+ "documentType",
302
+ "documentId"
303
+ ],
304
+ "type": "DROPDOWN"
305
+ }
306
+ },
307
+ "type": "POLLING",
308
+ "handshakeConfiguration": {
309
+ "strategy": "NONE"
310
+ },
311
+ "renewConfiguration": {
312
+ "strategy": "NONE"
313
+ },
314
+ "sampleData": {
315
+ "documentId": "01234567-89ab-cdef-0123-456789abcdef",
316
+ "documentType": "powerhouse/workflow",
317
+ "branch": "main",
318
+ "scope": "global",
319
+ "action": {
320
+ "type": "SET_NAME",
321
+ "input": {
322
+ "name": "Invoice"
323
+ }
324
+ },
325
+ "operation": {
326
+ "index": 7,
327
+ "timestampUtcMs": "1757500000000"
328
+ }
329
+ },
330
+ "testStrategy": "TEST_FUNCTION"
331
+ },
332
+ "document-created": {
333
+ "name": "document-created",
334
+ "displayName": "Document created",
335
+ "description": "Fires when a document is added to a drive.",
336
+ "requireAuth": false,
337
+ "props": {
338
+ "documentType": {
339
+ "displayName": "Document type",
340
+ "description": "Type of the created document; omit to match any",
341
+ "required": false,
342
+ "refreshers": [],
343
+ "type": "DROPDOWN"
344
+ },
345
+ "driveId": {
346
+ "displayName": "Drive",
347
+ "description": "Omit to match documents outside every drive too",
348
+ "required": false,
349
+ "refreshers": [],
350
+ "type": "DROPDOWN"
351
+ }
352
+ },
353
+ "type": "POLLING",
354
+ "handshakeConfiguration": {
355
+ "strategy": "NONE"
356
+ },
357
+ "renewConfiguration": {
358
+ "strategy": "NONE"
359
+ },
360
+ "sampleData": {
361
+ "documentId": "01234567-89ab-cdef-0123-456789abcdef",
362
+ "documentType": "powerhouse/workflow",
363
+ "name": "Invoice",
364
+ "driveId": "fedcba98-7654-3210-fedc-ba9876543210",
365
+ "parentId": null,
366
+ "operation": {
367
+ "index": 0,
368
+ "timestampUtcMs": "1757500000000"
369
+ }
370
+ },
371
+ "testStrategy": "TEST_FUNCTION"
372
+ },
373
+ "document-deleted": {
374
+ "name": "document-deleted",
375
+ "displayName": "Document deleted",
376
+ "description": "Fires when a document is removed from a drive.",
377
+ "requireAuth": false,
378
+ "props": {
379
+ "documentType": {
380
+ "displayName": "Document type",
381
+ "description": "Type of the deleted document; omit to match any",
382
+ "required": false,
383
+ "refreshers": [],
384
+ "type": "DROPDOWN"
385
+ },
386
+ "driveId": {
387
+ "displayName": "Drive",
388
+ "description": "Omit to match documents outside every drive too",
389
+ "required": false,
390
+ "refreshers": [],
391
+ "type": "DROPDOWN"
392
+ }
393
+ },
394
+ "type": "POLLING",
395
+ "handshakeConfiguration": {
396
+ "strategy": "NONE"
397
+ },
398
+ "renewConfiguration": {
399
+ "strategy": "NONE"
400
+ },
401
+ "sampleData": {
402
+ "documentId": "01234567-89ab-cdef-0123-456789abcdef",
403
+ "documentType": "powerhouse/workflow",
404
+ "name": "Invoice",
405
+ "driveId": "fedcba98-7654-3210-fedc-ba9876543210",
406
+ "parentId": null,
407
+ "operation": {
408
+ "index": 0,
409
+ "timestampUtcMs": "1757500000000"
410
+ }
411
+ },
412
+ "testStrategy": "TEST_FUNCTION"
413
+ }
414
+ },
415
+ "categories": [],
416
+ "description": "Read and write Powerhouse documents on the reactor this workflow runs in: create documents, dispatch actions, read state and schemas, and fire on document events.",
417
+ "authors": [
418
+ "powerhouse"
419
+ ],
420
+ "minimumSupportedRelease": "0.82.0",
421
+ "contextInfo": {
422
+ "version": "2"
423
+ }
424
+ }