@powerhousedao/workflow 6.2.3-dev.44 → 6.2.3-dev.46
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/dist/browser/{BlockSelector-C-C56Wcf.js → BlockSelector-B41mSc0W.js} +431 -411
- package/dist/browser/BlockSelector-B41mSc0W.js.map +1 -0
- package/dist/browser/assets/{entry-KqlcH_wb.js → entry-CtB3hwiW.js} +99 -3
- package/dist/browser/assets/{projection-entry-CumnZXAR.js → projection-entry-Cd33KgnS.js} +2 -3
- package/dist/browser/{connection-BUum0hJI.js → connection-BP17lpt3.js} +2 -2
- package/dist/browser/{connection-BUum0hJI.js.map → connection-BP17lpt3.js.map} +1 -1
- package/dist/browser/{connection-form-C9iDnI6H.js → connection-form-CkRzKggD.js} +524 -13
- package/dist/browser/connection-form-CkRzKggD.js.map +1 -0
- package/dist/browser/{data-tree-B4W7ZUmG.js → data-tree-BugZMgLk.js} +2 -2
- package/dist/browser/{data-tree-B4W7ZUmG.js.map → data-tree-BugZMgLk.js.map} +1 -1
- package/dist/browser/document-models/connection/index.js +3 -3
- package/dist/browser/document-models/index.js +3 -3
- package/dist/browser/document-models/workflow/index.js +2 -2
- package/dist/browser/{document-models-C1ZgIZyV.js → document-models-B7IwLbfO.js} +3 -3
- package/dist/browser/{document-models-C1ZgIZyV.js.map → document-models-B7IwLbfO.js.map} +1 -1
- package/dist/browser/{editor-cEmJfc9W.js → editor-9eSmoDTm.js} +331 -39
- package/dist/browser/editor-9eSmoDTm.js.map +1 -0
- package/dist/browser/{editor-4BJf6hN7.js → editor-DvK4LPwF.js} +7 -10
- package/dist/browser/editor-DvK4LPwF.js.map +1 -0
- package/dist/browser/{editor-Crt3ZeGd.js → editor-ldDYxtLV.js} +166 -43
- package/dist/browser/editor-ldDYxtLV.js.map +1 -0
- package/dist/browser/editors/connection-editor/module.js +1 -1
- package/dist/browser/editors/workflow-editor/module.js +1 -1
- package/dist/browser/editors/workflow-studio/module.js +1 -1
- package/dist/browser/graphql-Cr1ia6fo.js +2474 -0
- package/dist/browser/graphql-Cr1ia6fo.js.map +1 -0
- package/dist/browser/index.js +9 -5
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{module-jDZ4pq3W.js → module-B2BMwu5E.js} +129 -17
- package/dist/browser/module-B2BMwu5E.js.map +1 -0
- package/dist/browser/{module-DU2vb3FH.js → module-D4UiG9ii.js} +13 -5
- package/dist/browser/module-D4UiG9ii.js.map +1 -0
- package/dist/browser/reactor/index.js +2 -2
- package/dist/browser/{runtime-queries-Ds2kk-Ow.js → runtime-queries-IZG_nonR.js} +85 -11
- package/dist/browser/runtime-queries-IZG_nonR.js.map +1 -0
- package/dist/browser/{trigger-text-5CT870cu.js → trigger-text-C37YRggR.js} +142 -20
- package/dist/browser/trigger-text-C37YRggR.js.map +1 -0
- package/dist/browser/upgrade-manifests-C_9cyumV.js +8 -0
- package/dist/browser/{upgrade-manifests-BpakVE9l.js.map → upgrade-manifests-C_9cyumV.js.map} +1 -1
- package/dist/browser/{workflow-BxShRhVy.js → workflow-DFLQ2cFr.js} +2 -2
- package/dist/browser/{workflow-BxShRhVy.js.map → workflow-DFLQ2cFr.js.map} +1 -1
- package/dist/node/{BlockSelector-C9_1wbx4.mjs → BlockSelector-BMnBzXcA.mjs} +431 -411
- package/dist/node/BlockSelector-BMnBzXcA.mjs.map +1 -0
- package/dist/node/{connection-D544oqVW.mjs → connection-BxJoL8js.mjs} +2 -2
- package/dist/node/{connection-D544oqVW.mjs.map → connection-BxJoL8js.mjs.map} +1 -1
- package/dist/node/{connection-form-DUOXUqBz.mjs → connection-form-DZFudcoD.mjs} +524 -13
- package/dist/node/connection-form-DZFudcoD.mjs.map +1 -0
- package/dist/node/{data-tree-CoV-swZZ.mjs → data-tree-CR8IOshA.mjs} +2 -2
- package/dist/node/{data-tree-CoV-swZZ.mjs.map → data-tree-CR8IOshA.mjs.map} +1 -1
- package/dist/node/document-models/connection/index.mjs +3 -3
- package/dist/node/document-models/index.mjs +3 -3
- package/dist/node/document-models/workflow/index.mjs +2 -2
- package/dist/node/{editor-BFDE4Q3v.mjs → editor-BV5CYmUI.mjs} +7 -10
- package/dist/node/editor-BV5CYmUI.mjs.map +1 -0
- package/dist/node/{editor-D2jRtRNl.mjs → editor-D_P9-st9.mjs} +166 -43
- package/dist/node/editor-D_P9-st9.mjs.map +1 -0
- package/dist/node/{editor-BwOQIwVw.mjs → editor-NUaiiO4B.mjs} +331 -39
- package/dist/node/editor-NUaiiO4B.mjs.map +1 -0
- package/dist/node/editors/connection-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-studio/module.mjs +1 -1
- package/dist/node/graphql-BGVLRhC1.mjs +14554 -0
- package/dist/node/graphql-BGVLRhC1.mjs.map +1 -0
- package/dist/node/index.mjs +9 -6
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{module-BMwJQh65.mjs → module-BlT-atBQ.mjs} +129 -17
- package/dist/node/module-BlT-atBQ.mjs.map +1 -0
- package/dist/node/{module-Dhe5E-VA.mjs → module-BsqRZox1.mjs} +13 -5
- package/dist/node/module-BsqRZox1.mjs.map +1 -0
- package/dist/node/pieces/reactor/descriptor.json +34 -17
- package/dist/node/pieces/reactor/index.mjs +67 -67
- package/dist/node/pieces/reactor/package.json +1 -1
- package/dist/node/{runtime-queries-D5EGaCrH.mjs → runtime-queries-BM6I7dDA.mjs} +85 -11
- package/dist/node/runtime-queries-BM6I7dDA.mjs.map +1 -0
- package/dist/node/{trigger-text-CXnnanWC.mjs → trigger-text-78ZhfT-b.mjs} +142 -20
- package/dist/node/trigger-text-78ZhfT-b.mjs.map +1 -0
- package/dist/node/upgrade-manifests-CYZfts3a.mjs +8 -0
- package/dist/node/{upgrade-manifests-CmNd742Y.mjs.map → upgrade-manifests-CYZfts3a.mjs.map} +1 -1
- package/dist/node/{workflow-CGzYGZnr.mjs → workflow-BpfdBHyS.mjs} +2 -2
- package/dist/node/{workflow-CGzYGZnr.mjs.map → workflow-BpfdBHyS.mjs.map} +1 -1
- package/dist/powerhouse.manifest.json +1 -1
- package/dist/style.css +44 -0
- package/dist/types/ai/workflow-tools.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/config/error.d.ts +15 -1
- package/dist/types/document-models/connection/v1/gen/config/error.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/connection/error.d.ts +13 -1
- package/dist/types/document-models/connection/v1/gen/connection/error.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/document-model.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/reducer.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/schema/types.d.ts +11 -2
- package/dist/types/document-models/connection/v1/gen/schema/types.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/gen/schema/zod.d.ts +3 -1
- package/dist/types/document-models/connection/v1/gen/schema/zod.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/src/reactor-connection.d.ts +17 -0
- package/dist/types/document-models/connection/v1/src/reactor-connection.d.ts.map +1 -0
- package/dist/types/document-models/connection/v1/src/reducers/config.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/src/reducers/connection.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/src/utils.d.ts +1 -1
- package/dist/types/document-models/connection/v1/src/utils.d.ts.map +1 -1
- package/dist/types/document-models/connection/v1/tests/reactor-connection.test.d.ts +2 -0
- package/dist/types/document-models/connection/v1/tests/reactor-connection.test.d.ts.map +1 -0
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +7 -0
- package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/steps.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/src/reducers/trigger.d.ts.map +1 -1
- package/dist/types/document-models/workflow/v1/tests/reactor-connection.test.d.ts +2 -0
- package/dist/types/document-models/workflow/v1/tests/reactor-connection.test.d.ts.map +1 -0
- package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts +1 -1
- package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/ReactorBindings.d.ts +6 -0
- package/dist/types/editors/connection-editor/ReactorBindings.d.ts.map +1 -0
- package/dist/types/editors/connection-editor/ReactorConnectionSettings.d.ts +7 -0
- package/dist/types/editors/connection-editor/ReactorConnectionSettings.d.ts.map +1 -0
- package/dist/types/editors/connection-editor/connection-callbacks.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/connection-form.d.ts +4 -1
- package/dist/types/editors/connection-editor/connection-form.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/connection-usage.d.ts +13 -3
- package/dist/types/editors/connection-editor/connection-usage.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/connection-editor/status.d.ts.map +1 -1
- package/dist/types/editors/shared/data-viewer.d.ts.map +1 -1
- package/dist/types/editors/shared/document-ref.d.ts +5 -0
- package/dist/types/editors/shared/document-ref.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/document/useWorkflowModel.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/reactor-hooks.d.ts +25 -0
- package/dist/types/editors/workflow-editor/reactor-hooks.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-client.d.ts +16 -1
- package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/runtime-contract.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/runtime-contract.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/runtime-persist.d.ts +1 -1
- package/dist/types/editors/workflow-editor/ui/CreateConnectionModal.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts +3 -0
- package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts +13 -0
- package/dist/types/editors/workflow-editor/ui/PublishControls.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ReactorConnectionField.d.ts +9 -0
- package/dist/types/editors/workflow-editor/ui/ReactorConnectionField.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/SignInPrompt.d.ts +6 -0
- package/dist/types/editors/workflow-editor/ui/SignInPrompt.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/StepError.d.ts +4 -0
- package/dist/types/editors/workflow-editor/ui/StepError.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts +1 -0
- package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/SwitchboardGrants.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/SwitchboardGrants.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/design-time.d.ts +1 -0
- package/dist/types/editors/workflow-editor/ui/design-time.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/document-options.d.ts +24 -0
- package/dist/types/editors/workflow-editor/ui/document-options.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/document-options.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/document-options.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/document-shape.d.ts +8 -0
- package/dist/types/editors/workflow-editor/ui/document-shape.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/document-shape.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/document-shape.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/expression-scope.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/forms.d.ts +5 -1
- package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/model.d.ts +14 -0
- package/dist/types/editors/workflow-editor/ui/model.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts +6 -3
- package/dist/types/editors/workflow-editor/ui/query-keys.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/reactor-access.d.ts +43 -0
- package/dist/types/editors/workflow-editor/ui/reactor-access.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/reactor-access.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/reactor-access.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/reactor-connection-create.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/reactor-connection-create.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/reactor-connection-create.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/reactor-connection-create.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/reactor-view.d.ts +25 -0
- package/dist/types/editors/workflow-editor/ui/reactor-view.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/reactor-view.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/reactor-view.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/use-validity.d.ts +1 -0
- package/dist/types/editors/workflow-editor/ui/use-validity.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/validation.d.ts +3 -1
- package/dist/types/editors/workflow-editor/ui/validation.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
- package/dist/types/pieces/reactor/index.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-create.d.ts +4 -3
- package/dist/types/pieces/reactor/lib/actions/document-create.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts +2 -2
- package/dist/types/pieces/reactor/lib/actions/document-dispatch.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-find.d.ts +3 -2
- package/dist/types/pieces/reactor/lib/actions/document-find.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-get.d.ts +2 -2
- package/dist/types/pieces/reactor/lib/actions/document-get.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts +2 -2
- package/dist/types/pieces/reactor/lib/actions/document-schema.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-types.d.ts +1 -1
- package/dist/types/pieces/reactor/lib/actions/document-types.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/documents.d.ts +32 -0
- package/dist/types/pieces/reactor/lib/documents.d.ts.map +1 -0
- package/dist/types/pieces/reactor/lib/parse.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/reactor.d.ts +15 -4
- package/dist/types/pieces/reactor/lib/reactor.d.ts.map +1 -1
- package/dist/types/pieces/reactor/lib/triggers/document-event.d.ts +6 -6
- package/dist/types/pieces/reactor/lib/triggers/document-event.d.ts.map +1 -1
- package/dist/types/pieces/reactor/reactor.test.d.ts +2 -0
- package/dist/types/pieces/reactor/reactor.test.d.ts.map +1 -0
- package/dist/types/pieces/reactor/test-signer.d.ts +3 -0
- package/dist/types/pieces/reactor/test-signer.d.ts.map +1 -0
- package/dist/types/scripts/ui-stack.d.ts +4 -1
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/dist/types/test/drive-window.d.ts +6 -0
- package/dist/types/test/drive-window.d.ts.map +1 -0
- package/dist/types/test/runtime-schema.d.ts +17 -0
- package/dist/types/test/runtime-schema.d.ts.map +1 -0
- package/dist/types/test/ui/reactor-connection.spec.d.ts +2 -0
- package/dist/types/test/ui/reactor-connection.spec.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/browser/BlockSelector-C-C56Wcf.js.map +0 -1
- package/dist/browser/connection-form-C9iDnI6H.js.map +0 -1
- package/dist/browser/editor-4BJf6hN7.js.map +0 -1
- package/dist/browser/editor-Crt3ZeGd.js.map +0 -1
- package/dist/browser/editor-cEmJfc9W.js.map +0 -1
- package/dist/browser/module-DU2vb3FH.js.map +0 -1
- package/dist/browser/module-jDZ4pq3W.js.map +0 -1
- package/dist/browser/runtime-queries-Ds2kk-Ow.js.map +0 -1
- package/dist/browser/trigger-text-5CT870cu.js.map +0 -1
- package/dist/browser/upgrade-manifests-BpakVE9l.js +0 -8
- package/dist/node/BlockSelector-C9_1wbx4.mjs.map +0 -1
- package/dist/node/connection-form-DUOXUqBz.mjs.map +0 -1
- package/dist/node/editor-BFDE4Q3v.mjs.map +0 -1
- package/dist/node/editor-BwOQIwVw.mjs.map +0 -1
- package/dist/node/editor-D2jRtRNl.mjs.map +0 -1
- package/dist/node/module-BMwJQh65.mjs.map +0 -1
- package/dist/node/module-Dhe5E-VA.mjs.map +0 -1
- package/dist/node/runtime-queries-D5EGaCrH.mjs.map +0 -1
- package/dist/node/trigger-text-CXnnanWC.mjs.map +0 -1
- package/dist/node/upgrade-manifests-CmNd742Y.mjs +0 -8
- package/dist/types/pieces/reactor/lib/actions/dispatch-outcome.test.d.ts +0 -2
- package/dist/types/pieces/reactor/lib/actions/dispatch-outcome.test.d.ts.map +0 -1
|
@@ -27,6 +27,7 @@ export interface TriggerModel extends BlockStateModel {
|
|
|
27
27
|
triggerName: string;
|
|
28
28
|
config: unknown;
|
|
29
29
|
connectionId: string | null;
|
|
30
|
+
reactorConnectionId?: string | null;
|
|
30
31
|
}
|
|
31
32
|
export type BackoffKindValue = "FIXED" | "EXPONENTIAL";
|
|
32
33
|
export interface RetryPolicyModel {
|
|
@@ -44,6 +45,7 @@ export interface StepModel extends BlockStateModel {
|
|
|
44
45
|
pieceVersion: string;
|
|
45
46
|
actionName: string;
|
|
46
47
|
connectionId: string | null;
|
|
48
|
+
reactorConnectionId?: string | null;
|
|
47
49
|
config: unknown;
|
|
48
50
|
retry: RetryPolicyModel | null;
|
|
49
51
|
timeoutSeconds: number | null;
|
|
@@ -66,9 +68,19 @@ export interface VariableModel {
|
|
|
66
68
|
description: string | null;
|
|
67
69
|
type?: VariableTypeValue | null;
|
|
68
70
|
}
|
|
71
|
+
export interface PublishedBlockModel {
|
|
72
|
+
id: string;
|
|
73
|
+
label: string;
|
|
74
|
+
pieceName: string;
|
|
75
|
+
pieceVersion: string;
|
|
76
|
+
kind: "action" | "trigger";
|
|
77
|
+
name: string;
|
|
78
|
+
reactorConnectionId: string | null;
|
|
79
|
+
}
|
|
69
80
|
export interface PublishedModel {
|
|
70
81
|
version: number;
|
|
71
82
|
publishedAt: string;
|
|
83
|
+
blocks?: PublishedBlockModel[];
|
|
72
84
|
}
|
|
73
85
|
export interface WorkflowModel {
|
|
74
86
|
name: string;
|
|
@@ -100,6 +112,7 @@ export interface UpdateStepInputModel {
|
|
|
100
112
|
pieceVersion?: string;
|
|
101
113
|
actionName?: string;
|
|
102
114
|
connectionId?: string | null;
|
|
115
|
+
reactorConnectionId?: string | null;
|
|
103
116
|
config?: unknown;
|
|
104
117
|
retry?: RetryPolicyModel | null;
|
|
105
118
|
timeoutSeconds?: number | null;
|
|
@@ -119,6 +132,7 @@ export interface WorkflowEditorCallbacks {
|
|
|
119
132
|
triggerName: string;
|
|
120
133
|
config: unknown;
|
|
121
134
|
connectionId?: string | null;
|
|
135
|
+
reactorConnectionId?: string | null;
|
|
122
136
|
} & ConfigExtras) => AddedBlock;
|
|
123
137
|
clearTrigger: () => void;
|
|
124
138
|
addStep: (input: AddStepInputModel) => AddedBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAEhF,MAAM,W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C,KAAK,EAAE;QACnB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,IAAI,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;KACjC,KAAK,IAAI,CAAC;IACX,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAGrC,gBAAgB,EAAE,CAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,MAAM,KACT,UAAU,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,CACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,iBAAiB,KACrB,UAAU,CAAC;IAGhB,aAAa,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAG5D,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,QAAQ,EAAE,CAAC,IAAI,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,KAAK,IAAI,CAAC;CACZ;AAGD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAWpE"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { BlockRef } from "@powerhousedao/pieces-framework/block-type";
|
|
2
2
|
export declare function blockPart(block: BlockRef): readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string];
|
|
3
3
|
export declare function blockRefKey(block: BlockRef): string;
|
|
4
|
-
export type RuntimeQueryKind = "catalog" | "form" | "pieceActions" | "pieceTriggers" | "searchBlocks" | "outputTree" | "options" | "dynamic" | "connections" | "webhook" | "latestRun" | "runs" | "run" | "secret" | "blockResolutions";
|
|
4
|
+
export type RuntimeQueryKind = "catalog" | "form" | "pieceActions" | "pieceTriggers" | "searchBlocks" | "outputTree" | "options" | "dynamic" | "connections" | "webhook" | "latestRun" | "runs" | "run" | "secret" | "blockResolutions" | "reactorAccess" | "reactorDenial";
|
|
5
5
|
export interface ResolverKeyInput {
|
|
6
6
|
block: BlockRef;
|
|
7
7
|
propName: string;
|
|
8
8
|
refreshers: unknown[];
|
|
9
9
|
connectionId?: string | null;
|
|
10
10
|
searchValue?: string | null;
|
|
11
|
+
reactorConnectionId?: string | null;
|
|
11
12
|
}
|
|
12
13
|
export declare const runtimeKeys: {
|
|
13
14
|
all: (scope: string) => readonly [string];
|
|
@@ -19,8 +20,8 @@ export declare const runtimeKeys: {
|
|
|
19
20
|
outputTrees: (scope: string) => readonly [string, "outputTree"];
|
|
20
21
|
outputTree: (scope: string, block: BlockRef, config: unknown) => readonly [string, "outputTree", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], {}];
|
|
21
22
|
stepOutputTree: (scope: string, workflowId: string, stepId: string, testedAt: string | null) => readonly [string, "outputTree", "step", string, string, string | null];
|
|
22
|
-
options: (scope: string, input: ResolverKeyInput) => readonly [string, "dynamic" | "options", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], string, unknown[], string | null, string | null];
|
|
23
|
-
dynamic: (scope: string, input: ResolverKeyInput) => readonly [string, "dynamic" | "options", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], string, unknown[], string | null, string | null];
|
|
23
|
+
options: (scope: string, input: ResolverKeyInput) => readonly [string, "dynamic" | "options", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], string, unknown[], string | null, string | null, string | null];
|
|
24
|
+
dynamic: (scope: string, input: ResolverKeyInput) => readonly [string, "dynamic" | "options", readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string], string, unknown[], string | null, string | null, string | null];
|
|
24
25
|
connections: (scope: string, filter?: string | null) => readonly [string, "connections"] | readonly [string, "connections", string | null];
|
|
25
26
|
webhook: (scope: string, workflowId: string) => readonly [string, "webhook", string];
|
|
26
27
|
latestRun: (scope: string, workflowId: string) => readonly [string, "latestRun", string];
|
|
@@ -44,6 +45,8 @@ export declare const runtimeKeys: {
|
|
|
44
45
|
readonly limit: number | null;
|
|
45
46
|
}];
|
|
46
47
|
run: (scope: string, runId: string) => readonly [string, "run", string];
|
|
48
|
+
reactorAccess: (scope: string, viewer: string | null) => readonly [string, "reactorAccess", string | null];
|
|
49
|
+
reactorDenial: (scope: string, workflowId: string) => readonly [string, "reactorDenial", string];
|
|
47
50
|
secret: (scope: string, ref: string) => readonly [string, "secret", string];
|
|
48
51
|
allBlockResolutions: (scope: string, workflowId: string) => readonly [string, "blockResolutions", string];
|
|
49
52
|
blockResolutions: (scope: string, workflowId: string, blocks: readonly BlockRef[]) => readonly [string, "blockResolutions", string, (readonly [string, string, import("@powerhousedao/pieces-framework/block-type").BlockKind, string])[]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/query-keys.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAG3E,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,qGAExC;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAED,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,MAAM,GACN,cAAc,GACd,eAAe,GACf,cAAc,GACd,YAAY,GACZ,SAAS,GACT,SAAS,GACT,aAAa,GACb,SAAS,GACT,WAAW,GACX,MAAM,GACN,KAAK,GACL,QAAQ,GACR,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/query-keys.ts"],"names":[],"mappings":"AAEA,OAAO,K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YPE = "REACTOR";
|
|
3
|
+
export declare function isReactorConnection(connection: {
|
|
4
|
+
connectorId: string;
|
|
5
|
+
authType: string;
|
|
6
|
+
}): boolean;
|
|
7
|
+
export declare function reactorConnections<T extends {
|
|
8
|
+
connectorId: string;
|
|
9
|
+
authType: string;
|
|
10
|
+
}>(connections: readonly T[]): T[];
|
|
11
|
+
export declare function signInRequired(access: {
|
|
12
|
+
authEnforcement: boolean;
|
|
13
|
+
} | undefined, signedIn: boolean): boolean;
|
|
14
|
+
export interface ReactorIdentityView {
|
|
15
|
+
address: string | null;
|
|
16
|
+
key: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function switchboardGrantId(identity: ReactorIdentityView): string;
|
|
19
|
+
export declare const SWITCHBOARD_DOCUMENT_OPERATIONS: readonly ["DELETE_DOCUMENT", "ADD_RELATIONSHIP", "REMOVE_RELATIONSHIP"];
|
|
20
|
+
export declare function switchboardGrants(identity: ReactorIdentityView | null | undefined, authConditions: boolean | null | undefined): Grant[];
|
|
21
|
+
export declare function switchboardMayWrite(auth: PHAuthState | undefined, identity: ReactorIdentityView): boolean;
|
|
22
|
+
export interface GrantSubject {
|
|
23
|
+
address?: string;
|
|
24
|
+
key?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function canChangeGrants(auth: PHAuthState | undefined, subject: GrantSubject): boolean;
|
|
27
|
+
export interface GrantPlan {
|
|
28
|
+
grantable: string[];
|
|
29
|
+
noPermission: string[];
|
|
30
|
+
notHere: string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function planGrants(ids: readonly string[], authOf: (id: string) => PHAuthState | undefined | null, subject: GrantSubject): GrantPlan;
|
|
33
|
+
export interface ReactorConfigDraft {
|
|
34
|
+
access?: "read";
|
|
35
|
+
}
|
|
36
|
+
export declare function withReactorConfig(current: ReactorConfigDraft, patch: {
|
|
37
|
+
access?: "read" | "write";
|
|
38
|
+
}): {
|
|
39
|
+
endpoint: "local";
|
|
40
|
+
access?: "read";
|
|
41
|
+
};
|
|
42
|
+
export declare function accessMismatch(requireReactor: "read" | "write" | null | undefined, access: "read" | undefined): string | null;
|
|
43
|
+
//# sourceMappingURL=reactor-access.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-access.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-access.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,WAAW,EACjB,MAAM,sCAAsC,CAAC;AAG9C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,wBAAgB,mBAAmB,CAAC,UAAU,EAAE;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAKV;AAED,wBAAgB,kBAAkB,CAChC,CAAC,SAAS;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EACnD,WAAW,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAEhC;AAGD,wBAAgB,cAAc,CAC5B,MAAM,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,EAChD,QAAQ,EAAE,OAAO,GAChB,OAAO,CAET;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAGD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAExE;AAID,eAAO,MAAM,+BAA+B,YAC1C,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,CACb,CAAC;AAIX,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAChD,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GACzC,KAAK,EAAE,CAuBT;AAID,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAgBT;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAID,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,OAAO,EAAE,YAAY,GACpB,OAAO,CAQT;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAID,wBAAgB,UAAU,CACxB,GAAG,EAAE,SAAS,MAAM,EAAE,EACtB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,WAAW,GAAG,SAAS,GAAG,IAAI,EACtD,OAAO,EAAE,YAAY,GACpB,SAAS,CASX;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GACnC;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAQxC;AAGD,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EACnD,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,MAAM,GAAG,IAAI,CAIf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-access.test.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-access.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare function newReactorConnectionActions(name: string, requireReactor: "read" | "write"): (import("document-models/connection").RecordCheckResultAction | import("document-models/connection").SetConfigAction | import("document-models/connection").SetConnectionNameAction | import("document-models/connection").SetConnectorAction | import("document-model").SetNameAction)[];
|
|
2
|
+
//# sourceMappingURL=reactor-connection-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-connection-create.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-connection-create.ts"],"names":[],"mappings":"AAOA,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,GAAG,OAAO,6RAqBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-connection-create.test.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-connection-create.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare function shortAddress(address: string): string;
|
|
2
|
+
export interface PublishOperation {
|
|
3
|
+
index: number;
|
|
4
|
+
error?: string | null;
|
|
5
|
+
action: {
|
|
6
|
+
type: string;
|
|
7
|
+
context?: {
|
|
8
|
+
signer?: {
|
|
9
|
+
user?: {
|
|
10
|
+
address?: string | null;
|
|
11
|
+
} | null;
|
|
12
|
+
signatures?: readonly unknown[] | null;
|
|
13
|
+
} | null;
|
|
14
|
+
} | null;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare function publisherOf(operations: readonly PublishOperation[]): string | null | undefined;
|
|
18
|
+
export declare function runsAsText(publisher: string | null | undefined, loading: boolean, hostAddress?: string | null): string | null;
|
|
19
|
+
export interface PublishedBlock {
|
|
20
|
+
label: string;
|
|
21
|
+
reactorConnectionId?: string | null;
|
|
22
|
+
requireReactor: "read" | "write" | null | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare function missingInPublished(blocks: readonly PublishedBlock[]): string[];
|
|
25
|
+
//# sourceMappingURL=reactor-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-view.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-view.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,EAAE;gBACP,IAAI,CAAC,EAAE;oBAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;iBAAE,GAAG,IAAI,CAAC;gBAC1C,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC;aACxC,GAAG,IAAI,CAAC;SACV,GAAG,IAAI,CAAC;KACV,CAAC;CACH;AAID,wBAAgB,WAAW,CACzB,UAAU,EAAE,SAAS,gBAAgB,EAAE,GACtC,MAAM,GAAG,IAAI,GAAG,SAAS,CAW3B;AAGD,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAC1B,MAAM,GAAG,IAAI,CAgBf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CACrD;AAGD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,cAAc,EAAE,GAChC,MAAM,EAAE,CAIV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor-view.test.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/reactor-view.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-validity.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/use-validity.ts"],"names":[],"mappings":"AAUA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,aAAa,EAAE,GAAG,SAAS,CAAC;CAClE;
|
|
1
|
+
{"version":3,"file":"use-validity.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/use-validity.ts"],"names":[],"mappings":"AAUA,OAAO,EAA2B,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,aAAa,EAAE,GAAG,SAAS,CAAC;CAClE;AA2CD,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,CAmB7D;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;CAC/C;AAID,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CA6DpE"}
|
|
@@ -5,7 +5,7 @@ import type { ResolverKeyInput } from "./query-keys.js";
|
|
|
5
5
|
export declare function isEmptyValue(value: unknown): boolean;
|
|
6
6
|
export declare function isPropVisible(prop: BlockFormProp, config: Record<string, unknown>): boolean;
|
|
7
7
|
export declare function missingRequired(props: BlockFormProp[], config: unknown): string[];
|
|
8
|
-
export declare function resolverInputFor(block: BlockRef, prop: BlockFormProp, config: Record<string, unknown>, connectionId: string | null | undefined): ResolverKeyInput;
|
|
8
|
+
export declare function resolverInputFor(block: BlockRef, prop: BlockFormProp, config: Record<string, unknown>, connectionId: string | null | undefined, reactorConnectionId?: string | null): ResolverKeyInput;
|
|
9
9
|
export declare function settingFor(settings: readonly PropertySettingModel[] | null | undefined, prop: string): PropertySettingModel | undefined;
|
|
10
10
|
export declare function parsePropList(result: unknown): BlockFormProp[];
|
|
11
11
|
export declare function storedSchema(settings: readonly PropertySettingModel[] | null | undefined, prop: string): BlockFormProp[] | undefined;
|
|
@@ -19,10 +19,12 @@ export interface ValidityInput {
|
|
|
19
19
|
block: BlockRef;
|
|
20
20
|
config: unknown;
|
|
21
21
|
connectionId: string | null | undefined;
|
|
22
|
+
reactorConnectionId?: string | null;
|
|
22
23
|
propertySettings?: readonly PropertySettingModel[] | null;
|
|
23
24
|
skip?: boolean | null;
|
|
24
25
|
resolveDynamic?: (input: ResolverKeyInput) => BlockFormProp[] | undefined;
|
|
25
26
|
}
|
|
27
|
+
export declare const REACTOR_CONNECTION_LABEL = "Reactor connection";
|
|
26
28
|
export declare function blockMissing(input: ValidityInput): string[] | null;
|
|
27
29
|
export declare function undeclaredPortIssues(form: BlockForm | null | "loading" | undefined, outgoingPorts: readonly string[] | undefined): string[];
|
|
28
30
|
export interface WorkflowReadiness {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/validation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAA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,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,aAAa,EAAE,GAAG,SAAS,CAAC;CAC3E;AAED,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAI7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,IAAI,CA6ClE;AAGD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EAC9C,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3C,MAAM,EAAE,CAMV;AAED,MAAM,WAAW,iBAAiB;IAEhC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IAEpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAGD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAAE,EAAE,EAC3D,UAAU,EAAE,OAAO,GAClB,iBAAiB,CAWnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsTable.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/RunsTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"RunsTable.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/RunsTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA6KjD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOhD,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWjD;AAgMD,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,2CAwTA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../pieces/reactor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../pieces/reactor/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,4DAqBlB,CAAC;eAEY,OAAO"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { type FolderTarget } from "../reactor.js";
|
|
2
|
+
export declare const documentCreateAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
2
3
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
3
4
|
name: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
4
5
|
parentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
5
|
-
folderId: import("@powerhousedao/pieces-framework").DropdownProperty<
|
|
6
|
+
folderId: import("@powerhousedao/pieces-framework").DropdownProperty<FolderTarget, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<FolderTarget, true, undefined>;
|
|
6
7
|
actionType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
7
8
|
input: import("@powerhousedao/pieces-framework").DynamicProperties<false, undefined>;
|
|
8
9
|
actions: {
|
|
@@ -20,5 +21,5 @@ export declare const documentCreateAction: import("@powerhousedao/pieces-framewo
|
|
|
20
21
|
};
|
|
21
22
|
payload: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
22
23
|
parse: import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, false> | import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, true>;
|
|
23
|
-
}>;
|
|
24
|
+
}>, "write">;
|
|
24
25
|
//# sourceMappingURL=document-create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-create.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-create.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-create.ts"],"names":[],"mappings":"AAwBA,OAAO,EAUL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAgGvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;YAiF/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const documentDispatchAction: import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
1
|
+
export declare const documentDispatchAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
2
2
|
documentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
3
3
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
4
4
|
actionType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
@@ -19,5 +19,5 @@ export declare const documentDispatchAction: import("@powerhousedao/pieces-frame
|
|
|
19
19
|
allowedActions: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
20
20
|
branch: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
21
21
|
parse: import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, false> | import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, true>;
|
|
22
|
-
}>;
|
|
22
|
+
}>, "write">;
|
|
23
23
|
//# sourceMappingURL=document-dispatch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-dispatch.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-dispatch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-dispatch.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-dispatch.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;YA8FjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const documentFindAction: import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
1
|
+
export declare const documentFindAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
2
2
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
3
3
|
parentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
4
4
|
name: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
@@ -6,5 +6,6 @@ export declare const documentFindAction: import("@powerhousedao/pieces-framework
|
|
|
6
6
|
matchValue: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
7
7
|
includeState: import("@powerhousedao/pieces-framework").CheckboxProperty<false>;
|
|
8
8
|
limit: import("@powerhousedao/pieces-framework").NumberProperty<false>;
|
|
9
|
-
|
|
9
|
+
cursor: import("@powerhousedao/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
}>, "read">;
|
|
10
11
|
//# sourceMappingURL=document-find.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-find.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-find.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-find.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-find.ts"],"names":[],"mappings":"AA+DA,eAAO,MAAM,kBAAkB;;;;;;;;;WAkI7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const documentGetAction: import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
1
|
+
export declare const documentGetAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
2
2
|
documentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
3
3
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
4
4
|
parse: import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, false> | import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, true>;
|
|
5
|
-
}>;
|
|
5
|
+
}>, "read">;
|
|
6
6
|
//# sourceMappingURL=document-get.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-get.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-get.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-get.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;WAiC5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const documentSchemaAction: import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
1
|
+
export declare const documentSchemaAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {
|
|
2
2
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
3
3
|
documentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
4
4
|
actionType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
5
5
|
parse: import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, false> | import("@powerhousedao/pieces-framework").StaticDropdownProperty<import("../parse.js").ParseMode, true>;
|
|
6
|
-
}>;
|
|
6
|
+
}>, "read">;
|
|
7
7
|
//# sourceMappingURL=document-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-schema.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-schema.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,oBAAoB;;;;;WAuD/B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const documentTypesAction: import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {}>;
|
|
1
|
+
export declare const documentTypesAction: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").IAction<import("@powerhousedao/pieces-framework").PieceAuthProperty, {}>, "read">;
|
|
2
2
|
//# sourceMappingURL=document-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-types.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document-types.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/actions/document-types.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,gLAW9B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Action, DocumentModelModule, PHDocument } from "@powerhousedao/shared/document-model";
|
|
2
|
+
export declare const DRIVE_DOCUMENT_TYPE = "powerhouse/document-drive";
|
|
3
|
+
export declare const DRIVE_DOCUMENT_TYPES: Set<string>;
|
|
4
|
+
export declare const DEFAULT_BRANCH = "main";
|
|
5
|
+
export declare const DEFAULT_SCOPE = "global";
|
|
6
|
+
export interface DocumentOutput {
|
|
7
|
+
header: PHDocument["header"];
|
|
8
|
+
state: PHDocument["state"];
|
|
9
|
+
}
|
|
10
|
+
export declare function documentOutput(document: PHDocument): DocumentOutput;
|
|
11
|
+
export declare function displayName(document: PHDocument): string;
|
|
12
|
+
export declare function matchesState(document: PHDocument, match: {
|
|
13
|
+
path: string;
|
|
14
|
+
value: string;
|
|
15
|
+
} | undefined): boolean;
|
|
16
|
+
export interface ModelAction {
|
|
17
|
+
type: string;
|
|
18
|
+
module: string;
|
|
19
|
+
scope: string;
|
|
20
|
+
inputSchema: string | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const SET_NAME_ACTION: ModelAction;
|
|
23
|
+
export interface ModelDescription {
|
|
24
|
+
documentType: string;
|
|
25
|
+
name: string;
|
|
26
|
+
stateSchema: string | null;
|
|
27
|
+
actions: ModelAction[];
|
|
28
|
+
}
|
|
29
|
+
export declare function describeModel(module: DocumentModelModule): ModelDescription;
|
|
30
|
+
export declare function plainAction(type: string, input: unknown, scope?: string): Action;
|
|
31
|
+
export declare function typedAction(module: DocumentModelModule, type: string, input: unknown): Action;
|
|
32
|
+
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../../../pieces/reactor/lib/documents.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,UAAU,EACX,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,oBAAoB,aAG/B,CAAC;AAEH,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,UAAU,GAAG,cAAc,CAEnE;AAUD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,CAGxD;AAaD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GACjD,OAAO,CAYT;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAGD,eAAO,MAAM,eAAe,EAAE,WAK7B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,CAyB3E;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,KAAK,GAAE,MAAsB,GAC5B,MAAM,CAQR;AAWD,wBAAgB,WAAW,CACzB,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,MAAM,CAYR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../pieces/reactor/lib/parse.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAE9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5C,eAAO,MAAM,WAAW,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,EAG5D,CAAC;AA0DF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAgBpD;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../pieces/reactor/lib/parse.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,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YAAY,EACpB,KAAK,SAAY,GAChB,eAAe,CAoBjB;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,YAAY,EACpB,KAAK,SAAY,GAChB,iBAAiB,EAAE,CAErB;AAGD,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,YAAY,GACnB,aAAa,CAkBf;AAGD,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,YAAY,GACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB;AAID,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAW3D;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAK/D"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import {
|
|
1
|
+
import { type ReactorReadClient } from "@powerhousedao/pieces-framework";
|
|
2
|
+
import type { DocumentModelModule } from "@powerhousedao/shared/document-model";
|
|
3
3
|
import { type ActionInputSchema } from "./input-schema.js";
|
|
4
|
+
import { type ParseMode } from "./parse.js";
|
|
5
|
+
export interface FolderTarget {
|
|
6
|
+
driveId: string;
|
|
7
|
+
folderId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function documentModelModules(reactor: ReactorReadClient): Promise<DocumentModelModule[]>;
|
|
10
|
+
export declare function documentTypes(reactor: ReactorReadClient): Promise<{
|
|
11
|
+
documentType: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[]>;
|
|
4
14
|
export declare const documentTypeProp: (displayName?: string, required?: boolean, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
5
15
|
export declare const documentIdProp: (displayName?: string, required?: boolean, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
6
16
|
export declare const driveProp: (displayName: string, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
7
|
-
export declare const folderProp: (displayName: string, driveProp: string, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<
|
|
17
|
+
export declare const folderProp: (displayName: string, driveProp: string, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<FolderTarget, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<FolderTarget, true, undefined>;
|
|
8
18
|
export declare const actionsProp: (displayName: string, description?: string) => {
|
|
9
19
|
displayName: string;
|
|
10
20
|
description?: string | undefined;
|
|
@@ -19,8 +29,9 @@ export declare const actionsProp: (displayName: string, description?: string) =>
|
|
|
19
29
|
display: string;
|
|
20
30
|
};
|
|
21
31
|
export declare const parseProp: () => import("@powerhousedao/pieces-framework").StaticDropdownProperty<ParseMode, false> | import("@powerhousedao/pieces-framework").StaticDropdownProperty<ParseMode, true>;
|
|
32
|
+
export declare function targetModule(reactor: ReactorReadClient, propsValue: Record<string, unknown>): Promise<DocumentModelModule | undefined>;
|
|
22
33
|
export declare const actionTypeProp: (displayName?: string, required?: boolean, description?: string) => import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
23
|
-
export declare function
|
|
34
|
+
export declare function moduleInputSchema(module: DocumentModelModule, actionType: string): ActionInputSchema | undefined;
|
|
24
35
|
export declare const actionInputProp: (displayName?: string) => import("@powerhousedao/pieces-framework").DynamicProperties<false, undefined>;
|
|
25
36
|
export declare const ACTION_GROUP: (when: string) => {
|
|
26
37
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactor.d.ts","sourceRoot":"","sources":["../../../../../pieces/reactor/lib/reactor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"re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AAiB,CAC/B,MAAM,EAAE,mBAAmB,EAC3B,UAAU,EAAE,MAAM,GACjB,iBAAiB,GAAG,SAAS,CAU/B;AAGD,eAAO,MAAM,eAAe,yGAgBxB,CAAC;AAGL,eAAO,MAAM,YAAY,SAAU,MAAM;IACvC,GAAG;IACH,OAAO,EAAE,SAAS;IAClB,KAAK;IACL,WAAW;IACX,KAAK;CACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TriggerStrategy } from "@powerhousedao/pieces-framework";
|
|
2
|
-
export declare const documentEventTrigger: import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
2
|
+
export declare const documentEventTrigger: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
3
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
4
4
|
documentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
5
5
|
actionType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
@@ -15,8 +15,8 @@ export declare const documentEventTrigger: import("@powerhousedao/pieces-framewo
|
|
|
15
15
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
16
16
|
documentId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
17
17
|
actionType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const documentCreatedTrigger: import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
18
|
+
}>, "read">;
|
|
19
|
+
export declare const documentCreatedTrigger: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
20
20
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
21
21
|
driveId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
22
22
|
}> | import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
@@ -28,8 +28,8 @@ export declare const documentCreatedTrigger: import("@powerhousedao/pieces-frame
|
|
|
28
28
|
}> | import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
29
29
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
30
30
|
driveId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const documentDeletedTrigger: import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
31
|
+
}>, "read">;
|
|
32
|
+
export declare const documentDeletedTrigger: import("@powerhousedao/pieces-framework").Declared<import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
33
33
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
34
34
|
driveId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
35
35
|
}> | import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
@@ -41,5 +41,5 @@ export declare const documentDeletedTrigger: import("@powerhousedao/pieces-frame
|
|
|
41
41
|
}> | import("@powerhousedao/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@powerhousedao/pieces-framework").PieceAuthProperty[] | import("@powerhousedao/pieces-framework").PieceAuthProperty | undefined, {
|
|
42
42
|
documentType: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
43
43
|
driveId: import("@powerhousedao/pieces-framework").DropdownProperty<string, false, undefined> | import("@powerhousedao/pieces-framework").DropdownProperty<string, true, undefined>;
|
|
44
|
-
}>;
|
|
44
|
+
}>, "read">;
|
|
45
45
|
//# sourceMappingURL=document-event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-event.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/triggers/document-event.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAmCzC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"document-event.d.ts","sourceRoot":"","sources":["../../../../../../pieces/reactor/lib/triggers/document-event.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAmCzC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;WA4B/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;WAsBjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;WAsBjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactor.test.d.ts","sourceRoot":"","sources":["../../../../pieces/reactor/reactor.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-signer.d.ts","sourceRoot":"","sources":["../../../../pieces/reactor/test-signer.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,OAAO,EACb,MAAM,sCAAsC,CAAC;AAwB9C,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAmClE"}
|