@powerhousedao/workflow 6.2.3-dev.89 → 6.2.3-dev.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/node/document-models/connection/index.mjs +67 -3
  2. package/dist/node/document-models/connection/index.mjs.map +1 -0
  3. package/dist/node/document-models/index.mjs +3 -3
  4. package/dist/node/document-models/workflow/index.mjs +86 -3
  5. package/dist/node/document-models/workflow/index.mjs.map +1 -0
  6. package/dist/node/editors/index.mjs +6 -4
  7. package/dist/node/editors/index.mjs.map +1 -0
  8. package/dist/node/index.mjs +5 -412
  9. package/dist/node/index.mjs.map +1 -1
  10. package/dist/node/{module-CuTg45ct.mjs → module-BXKUB58R.mjs} +9 -4
  11. package/dist/node/module-BXKUB58R.mjs.map +1 -0
  12. package/dist/node/{module-BEEASith.mjs → module-CaBtkQmd.mjs} +16 -16
  13. package/dist/node/module-CaBtkQmd.mjs.map +1 -0
  14. package/dist/node/pieces/ai/descriptor.json +1 -1
  15. package/dist/node/pieces/ai/index.mjs +13 -13
  16. package/dist/node/pieces/ai/package.json +1 -1
  17. package/dist/node/pieces/reactor/descriptor.json +1 -1
  18. package/dist/node/pieces/reactor/package.json +1 -1
  19. package/dist/node/rolldown-runtime-D7D4PA-g.mjs +13 -0
  20. package/dist/node/upgrade-manifests-BCCpSD1J.mjs +8 -0
  21. package/dist/node/{upgrade-manifests-BA5OaR4H.mjs.map → upgrade-manifests-BCCpSD1J.mjs.map} +1 -1
  22. package/dist/powerhouse.manifest.json +2 -2
  23. package/dist/types/document-models/connection/v1/actions.d.ts +1 -0
  24. package/dist/types/document-models/connection/v1/actions.d.ts.map +1 -1
  25. package/dist/types/document-models/connection/v1/module.d.ts +1 -0
  26. package/dist/types/document-models/connection/v1/module.d.ts.map +1 -1
  27. package/dist/types/document-models/document-models.d.ts +2 -0
  28. package/dist/types/document-models/document-models.d.ts.map +1 -1
  29. package/dist/types/document-models/workflow/v1/actions.d.ts +1 -0
  30. package/dist/types/document-models/workflow/v1/actions.d.ts.map +1 -1
  31. package/dist/types/document-models/workflow/v1/module.d.ts +1 -0
  32. package/dist/types/document-models/workflow/v1/module.d.ts.map +1 -1
  33. package/package.json +22 -10
  34. package/dist/node/BlockSelector-Cia1Rpwz.mjs +0 -8727
  35. package/dist/node/BlockSelector-Cia1Rpwz.mjs.map +0 -1
  36. package/dist/node/PieceMarkdown-CUSdTMH4.mjs +0 -23307
  37. package/dist/node/PieceMarkdown-CUSdTMH4.mjs.map +0 -1
  38. package/dist/node/block-type-kX-27vVt.mjs +0 -44
  39. package/dist/node/block-type-kX-27vVt.mjs.map +0 -1
  40. package/dist/node/connection-BZxipUlb.mjs +0 -90
  41. package/dist/node/connection-BZxipUlb.mjs.map +0 -1
  42. package/dist/node/connection-form-CJFKPwfg.mjs +0 -1364
  43. package/dist/node/connection-form-CJFKPwfg.mjs.map +0 -1
  44. package/dist/node/data-tree-D9jdFsaX.mjs +0 -1916
  45. package/dist/node/data-tree-D9jdFsaX.mjs.map +0 -1
  46. package/dist/node/editor-CwOjO82y.mjs +0 -3218
  47. package/dist/node/editor-CwOjO82y.mjs.map +0 -1
  48. package/dist/node/editor-NMRVprgI.mjs +0 -15573
  49. package/dist/node/editor-NMRVprgI.mjs.map +0 -1
  50. package/dist/node/editor-_c6UDRAN.mjs +0 -370
  51. package/dist/node/editor-_c6UDRAN.mjs.map +0 -1
  52. package/dist/node/editors/connection-editor/module.mjs +0 -15
  53. package/dist/node/editors/connection-editor/module.mjs.map +0 -1
  54. package/dist/node/editors/runtime/index.mjs +0 -2
  55. package/dist/node/editors/workflow-editor/module.mjs +0 -15
  56. package/dist/node/editors/workflow-editor/module.mjs.map +0 -1
  57. package/dist/node/editors/workflow-studio/module.mjs +0 -15
  58. package/dist/node/editors/workflow-studio/module.mjs.map +0 -1
  59. package/dist/node/graphql-D76E1YiQ.mjs +0 -14554
  60. package/dist/node/graphql-D76E1YiQ.mjs.map +0 -1
  61. package/dist/node/module-BEEASith.mjs.map +0 -1
  62. package/dist/node/module-CuTg45ct.mjs.map +0 -1
  63. package/dist/node/piece-auth-C0u0XTO8.mjs +0 -154
  64. package/dist/node/piece-auth-C0u0XTO8.mjs.map +0 -1
  65. package/dist/node/rolldown-runtime-B4iAMlE-.mjs +0 -35
  66. package/dist/node/runtime-queries-Ck5OoWdy.mjs +0 -3016
  67. package/dist/node/runtime-queries-Ck5OoWdy.mjs.map +0 -1
  68. package/dist/node/style.css +0 -667
  69. package/dist/node/trigger-text-T2D0a2Br.mjs +0 -3210
  70. package/dist/node/trigger-text-T2D0a2Br.mjs.map +0 -1
  71. package/dist/node/upgrade-manifests-BA5OaR4H.mjs +0 -8
  72. package/dist/node/workflow-BgURVzdc.mjs +0 -109
  73. package/dist/node/workflow-BgURVzdc.mjs.map +0 -1
@@ -1,3 +1,67 @@
1
- import { A as removeSecretRef, B as RemoveSecretRefInputSchema, C as recordCheckResult, D as setConnector, E as setConnectionName, F as ConnectionStateSchema, G as SetConnectionNameInputSchema, H as SetAccountLabelInputSchema, I as ConnectionStatusSchema, J as definedNonNullAnySchema, K as SetConnectorInputSchema, L as ReactorConnectionConfigSchema, M as setConfigValue, N as setSecretRef, O as creators_exports, P as ConnectionAuthTypeSchema, Q as supportedVersions, R as RecordCheckResultInputSchema, S as creators_exports$2, T as setAccountLabel, U as SetConfigInputSchema, V as SecretRefSchema, W as SetConfigValueInputSchema, X as connectionUpgradeManifest, Y as isDefinedNonNullAny, Z as latestVersion, _ as defaultReactorConnectionConfig, b as documentModel, c as ConnectionPHStateSchema, d as isConnectionDocument, f as isConnectionState, g as REACTOR_LOCAL_ENDPOINT, h as REACTOR_CONNECTOR_ID, i as initialLocalState, j as setConfig, k as removeConfigValue, l as assertIsConnectionDocument, m as reducer, n as utils, o as ConnectionDocumentHeaderSchema, p as connectionDocumentType, q as SetSecretRefInputSchema, r as initialGlobalState, s as ConnectionDocumentSchema, t as Connection, u as assertIsConnectionState, v as isReactorConnectorId, w as creators_exports$1, x as actions, y as parseReactorConnectionConfig, z as RemoveConfigValueInputSchema } from "../../module-BEEASith.mjs";
2
- import { a as createConnectionDocument, c as defaultLocalState, i as useSelectedConnectionDocument, l as defaultPHState, n as useConnectionDocumentsInSelectedDrive, o as createState, r as useConnectionDocumentsInSelectedFolder, s as defaultGlobalState, t as useConnectionDocumentById, u as ConnectionController } from "../../connection-BZxipUlb.mjs";
3
- export { Connection, ConnectionAuthTypeSchema, ConnectionController, ConnectionDocumentHeaderSchema, ConnectionDocumentSchema, ConnectionPHStateSchema, ConnectionStateSchema, ConnectionStatusSchema, REACTOR_CONNECTOR_ID, REACTOR_LOCAL_ENDPOINT, ReactorConnectionConfigSchema, RecordCheckResultInputSchema, RemoveConfigValueInputSchema, RemoveSecretRefInputSchema, SecretRefSchema, SetAccountLabelInputSchema, SetConfigInputSchema, SetConfigValueInputSchema, SetConnectionNameInputSchema, SetConnectorInputSchema, SetSecretRefInputSchema, actions, assertIsConnectionDocument, assertIsConnectionState, creators_exports as connectionConfigActions, creators_exports$1 as connectionConnectionActions, connectionDocumentType, creators_exports$2 as connectionHealthActions, connectionUpgradeManifest, createConnectionDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, defaultReactorConnectionConfig, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isConnectionDocument, isConnectionState, isDefinedNonNullAny, isReactorConnectorId, latestVersion, parseReactorConnectionConfig, recordCheckResult, reducer, removeConfigValue, removeSecretRef, setAccountLabel, setConfig, setConfigValue, setConnectionName, setConnector, setSecretRef, supportedVersions, useConnectionDocumentById, useConnectionDocumentsInSelectedDrive, useConnectionDocumentsInSelectedFolder, useSelectedConnectionDocument, utils };
1
+ import { A as setConnector, B as ReactorConnectionConfigSchema, C as documentModel, D as creators_exports$1, E as recordCheckResult, F as setConfigValue, G as SetAccountLabelInputSchema, H as RemoveConfigValueInputSchema, I as setSecretRef, J as SetConnectionNameInputSchema, K as SetConfigInputSchema, L as ConnectionAuthTypeSchema, M as removeConfigValue, N as removeSecretRef, O as setAccountLabel, P as setConfig, Q as isDefinedNonNullAny, R as ConnectionStateSchema, S as parseReactorConnectionConfig, T as creators_exports$2, U as RemoveSecretRefInputSchema, V as RecordCheckResultInputSchema, W as SecretRefSchema, X as SetSecretRefInputSchema, Y as SetConnectorInputSchema, Z as definedNonNullAnySchema, _ as reducer, a as utils$1, b as defaultReactorConnectionConfig, c as ConnectionPHStateSchema, d as isConnectionDocument, f as isConnectionState, g as supportedVersions, h as latestVersion, i as initialLocalState, j as creators_exports, k as setConnectionName, l as assertIsConnectionDocument, m as connectionUpgradeManifest, n as utils, o as ConnectionDocumentHeaderSchema, p as connectionDocumentType, q as SetConfigValueInputSchema, r as initialGlobalState, s as ConnectionDocumentSchema, t as Connection, u as assertIsConnectionState, v as REACTOR_CONNECTOR_ID, w as actions, x as isReactorConnectorId, y as REACTOR_LOCAL_ENDPOINT, z as ConnectionStatusSchema } from "../../module-CaBtkQmd.mjs";
2
+ import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
3
+ //#region document-models/connection/v1/gen/controller.ts
4
+ /**
5
+ * WARNING: DO NOT EDIT
6
+ * This file is auto-generated and updated by codegen
7
+ */
8
+ const ConnectionController = PHDocumentController.forDocumentModel(Connection);
9
+ //#endregion
10
+ //#region document-models/connection/v1/gen/ph-factories.ts
11
+ function defaultGlobalState() {
12
+ return {
13
+ name: "",
14
+ connectorId: "",
15
+ authType: "NONE",
16
+ config: {},
17
+ secretRefs: [],
18
+ status: "UNCONFIGURED",
19
+ lastCheckedAt: null,
20
+ lastError: null,
21
+ accountLabel: null
22
+ };
23
+ }
24
+ function defaultLocalState() {
25
+ return {};
26
+ }
27
+ function defaultPHState() {
28
+ return {
29
+ ...defaultBaseState(),
30
+ global: defaultGlobalState(),
31
+ local: defaultLocalState()
32
+ };
33
+ }
34
+ function createGlobalState(state) {
35
+ return {
36
+ ...defaultGlobalState(),
37
+ ...state || {}
38
+ };
39
+ }
40
+ function createLocalState(state) {
41
+ return {
42
+ ...defaultLocalState(),
43
+ ...state || {}
44
+ };
45
+ }
46
+ function createState(baseState, globalState, localState) {
47
+ return {
48
+ ...createBaseState(baseState?.auth, baseState?.document),
49
+ global: createGlobalState(globalState),
50
+ local: createLocalState(localState)
51
+ };
52
+ }
53
+ /**
54
+ * Creates a ConnectionDocument with custom global and local state
55
+ * This properly handles the PHBaseState requirements while allowing
56
+ * document-specific state to be set.
57
+ */
58
+ function createConnectionDocument(state) {
59
+ return utils$1.createDocument(createState(createBaseState(state?.auth, {
60
+ version: 1,
61
+ ...state?.document
62
+ }), state?.global, state?.local));
63
+ }
64
+ //#endregion
65
+ export { Connection, ConnectionAuthTypeSchema, ConnectionController, ConnectionDocumentHeaderSchema, ConnectionDocumentSchema, ConnectionPHStateSchema, ConnectionStateSchema, ConnectionStatusSchema, REACTOR_CONNECTOR_ID, REACTOR_LOCAL_ENDPOINT, ReactorConnectionConfigSchema, RecordCheckResultInputSchema, RemoveConfigValueInputSchema, RemoveSecretRefInputSchema, SecretRefSchema, SetAccountLabelInputSchema, SetConfigInputSchema, SetConfigValueInputSchema, SetConnectionNameInputSchema, SetConnectorInputSchema, SetSecretRefInputSchema, actions, assertIsConnectionDocument, assertIsConnectionState, creators_exports as connectionConfigActions, creators_exports$1 as connectionConnectionActions, connectionDocumentType, creators_exports$2 as connectionHealthActions, connectionUpgradeManifest, createConnectionDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, defaultReactorConnectionConfig, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isConnectionDocument, isConnectionState, isDefinedNonNullAny, isReactorConnectorId, latestVersion, parseReactorConnectionConfig, recordCheckResult, reducer, removeConfigValue, removeSecretRef, setAccountLabel, setConfig, setConfigValue, setConnectionName, setConnector, setSecretRef, supportedVersions, utils };
66
+
67
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["utils"],"sources":["../../../../document-models/connection/v1/gen/controller.ts","../../../../document-models/connection/v1/gen/ph-factories.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { Connection } from \"../module.js\";\nimport type { ConnectionAction, ConnectionPHState } from \"./types.js\";\n\nexport const ConnectionController = PHDocumentController.forDocumentModel<\n ConnectionPHState,\n ConnectionAction\n>(Connection);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating ConnectionDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n ConnectionDocument,\n ConnectionGlobalState,\n ConnectionLocalState,\n ConnectionPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): ConnectionGlobalState {\n return {\n name: \"\",\n connectorId: \"\",\n authType: \"NONE\",\n config: {},\n secretRefs: [],\n status: \"UNCONFIGURED\",\n lastCheckedAt: null,\n lastError: null,\n accountLabel: null,\n };\n}\n\nexport function defaultLocalState(): ConnectionLocalState {\n return {};\n}\n\nexport function defaultPHState(): ConnectionPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<ConnectionGlobalState>,\n): ConnectionGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<ConnectionLocalState>,\n): ConnectionLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as ConnectionLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<ConnectionGlobalState>,\n localState?: Partial<ConnectionLocalState>,\n): ConnectionPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a ConnectionDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createConnectionDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<ConnectionGlobalState>;\n local?: Partial<ConnectionLocalState>;\n }>,\n): ConnectionDocument {\n const document = utils.createDocument(\n createState(\n createBaseState(state?.auth, { version: 1, ...state?.document }),\n state?.global,\n state?.local,\n ),\n );\n\n return document;\n}\n"],"mappings":";;;;;;;AAQA,MAAa,uBAAuB,qBAAqB,iBAGvD,UAAU;;;ACIZ,SAAgB,qBAA4C;CAC1D,OAAO;EACL,MAAM;EACN,aAAa;EACb,UAAU;EACV,QAAQ,CAAC;EACT,YAAY,CAAC;EACb,QAAQ;EACR,eAAe;EACf,WAAW;EACX,cAAc;CAChB;AACF;AAEA,SAAgB,oBAA0C;CACxD,OAAO,CAAC;AACV;AAEA,SAAgB,iBAAoC;CAClD,OAAO;EACL,GAAG,iBAAiB;EACpB,QAAQ,mBAAmB;EAC3B,OAAO,kBAAkB;CAC3B;AACF;AAEA,SAAgB,kBACd,OACuB;CACvB,OAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,iBACd,OACsB;CACtB,OAAO;EACL,GAAG,kBAAkB;EACrB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,YACd,WACA,aACA,YACmB;CACnB,OAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,QAAQ;EACvD,QAAQ,kBAAkB,WAAW;EACrC,OAAO,iBAAiB,UAAU;CACpC;AACF;;;;;;AAOA,SAAgB,yBACd,OAMoB;CASpB,OARiBA,QAAM,eACrB,YACE,gBAAgB,OAAO,MAAM;EAAE,SAAS;EAAG,GAAG,OAAO;CAAS,CAAC,GAC/D,OAAO,QACP,OAAO,KACT,CAGY;AAChB"}
@@ -1,4 +1,4 @@
1
- import { t as Connection } from "../module-BEEASith.mjs";
2
- import { t as Workflow } from "../module-CuTg45ct.mjs";
3
- import { t as upgradeManifests } from "../upgrade-manifests-BA5OaR4H.mjs";
1
+ import { t as Connection } from "../module-CaBtkQmd.mjs";
2
+ import { t as Workflow } from "../module-BXKUB58R.mjs";
3
+ import { t as upgradeManifests } from "../upgrade-manifests-BCCpSD1J.mjs";
4
4
  export { Connection as ConnectionV1, Workflow as WorkflowV1, upgradeManifests };
@@ -1,3 +1,86 @@
1
- import { $ as AddStepPropertySettingInputSchema, A as setTrigger, At as SetWorkflowDescriptionInputSchema, B as setLastRun, Bt as WorkflowManagerSchema, C as setWorkflowName, Ct as SetTriggerConfigInputSchema, D as setVariable, Dt as SetTriggerPieceVersionInputSchema, E as removeVariable, Et as SetTriggerInputSchema, F as creators_exports$4, Ft as UpdateStepInputSchema, G as creators_exports$1, Gt as WorkflowVariableSchema, H as creators_exports$2, Ht as WorkflowStateSchema, I as removeStep, It as UpdateStepPositionInputSchema, J as creators_exports, K as setPolicy, Kt as definedNonNullAnySchema, L as setStepConfig, Lt as UpdateStepRetryPolicyInputSchema, M as setTriggerConnection, Mt as SetWorkflowStatusInputSchema, N as setTriggerPieceVersion, Nt as StepTestRecordSchema, O as clearTrigger, Ot as SetTriggerPropertySettingInputSchema, P as addStep, Pt as TriggerBindingSchema, Q as AddStepPositionInputSchema, R as updateStep, Rt as VariableTypeSchema, S as setWorkflowDescription, St as SetStepConfigPropertySettingInputSchema, T as creators_exports$6, Tt as SetTriggerConnectionInputSchema, U as publishWorkflow, Ut as WorkflowStatusSchema, V as setLastTest, Vt as WorkflowPolicySchema, W as revertToPublished, Wt as WorkflowStepSchema, X as AddEdgeInputSchema, Y as removeEdge, Z as AddStepInputSchema, _ as reducer, _t as SetLastTestInputSchema, at as PointSchema, b as creators_exports$7, bt as SetPolicyRetryPolicyInputSchema, c as WorkflowPHStateSchema, ct as PublishWorkflowInputSchema, d as isWorkflowDocument, dt as RemoveStepInputSchema, et as AddStepRetryPolicyInputSchema, f as isWorkflowState, ft as RemoveVariableInputSchema, g as supportedVersions, gt as SetLastRunInputSchema, h as latestVersion, ht as RunStatusSchema, i as initialLocalState, it as FailureModeSchema, j as setTriggerConfig, jt as SetWorkflowNameInputSchema, k as creators_exports$5, kt as SetVariableInputSchema, l as assertIsWorkflowDocument, lt as PublishedWorkflowSchema, m as workflowUpgradeManifest, mt as RevertToPublishedInputSchema, n as utils, nt as ClearTriggerInputSchema, o as WorkflowDocumentHeaderSchema, ot as PropertyModeSchema, p as workflowDocumentType, pt as RetryPolicySchema, q as addEdge, qt as isDefinedNonNullAny, r as initialGlobalState, rt as ConcurrencyModeSchema, s as WorkflowDocumentSchema, st as PropertySettingSchema, t as Workflow, tt as BackoffKindSchema, u as assertIsWorkflowState, ut as RemoveEdgeInputSchema, v as documentModel, vt as SetManagedByInputSchema, w as setWorkflowStatus, wt as SetTriggerConfigPropertySettingInputSchema, x as setManagedBy, xt as SetStepConfigInputSchema, y as actions, yt as SetPolicyInputSchema, z as creators_exports$3, zt as WorkflowEdgeSchema } from "../../module-CuTg45ct.mjs";
2
- import { a as createState, c as defaultLocalState, i as useWorkflowDocumentsInSelectedFolder, l as defaultPHState, n as useWorkflowDocumentById, o as createWorkflowDocument, r as useWorkflowDocumentsInSelectedDrive, s as defaultGlobalState, t as useSelectedWorkflowDocument, u as WorkflowController } from "../../workflow-BgURVzdc.mjs";
3
- export { AddEdgeInputSchema, AddStepInputSchema, AddStepPositionInputSchema, AddStepPropertySettingInputSchema, AddStepRetryPolicyInputSchema, BackoffKindSchema, ClearTriggerInputSchema, ConcurrencyModeSchema, FailureModeSchema, PointSchema, PropertyModeSchema, PropertySettingSchema, PublishWorkflowInputSchema, PublishedWorkflowSchema, RemoveEdgeInputSchema, RemoveStepInputSchema, RemoveVariableInputSchema, RetryPolicySchema, RevertToPublishedInputSchema, RunStatusSchema, SetLastRunInputSchema, SetLastTestInputSchema, SetManagedByInputSchema, SetPolicyInputSchema, SetPolicyRetryPolicyInputSchema, SetStepConfigInputSchema, SetStepConfigPropertySettingInputSchema, SetTriggerConfigInputSchema, SetTriggerConfigPropertySettingInputSchema, SetTriggerConnectionInputSchema, SetTriggerInputSchema, SetTriggerPieceVersionInputSchema, SetTriggerPropertySettingInputSchema, SetVariableInputSchema, SetWorkflowDescriptionInputSchema, SetWorkflowNameInputSchema, SetWorkflowStatusInputSchema, StepTestRecordSchema, TriggerBindingSchema, UpdateStepInputSchema, UpdateStepPositionInputSchema, UpdateStepRetryPolicyInputSchema, VariableTypeSchema, Workflow, WorkflowController, WorkflowDocumentHeaderSchema, WorkflowDocumentSchema, WorkflowEdgeSchema, WorkflowManagerSchema, WorkflowPHStateSchema, WorkflowPolicySchema, WorkflowStateSchema, WorkflowStatusSchema, WorkflowStepSchema, WorkflowVariableSchema, actions, addEdge, addStep, assertIsWorkflowDocument, assertIsWorkflowState, clearTrigger, createState, createWorkflowDocument, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isDefinedNonNullAny, isWorkflowDocument, isWorkflowState, latestVersion, publishWorkflow, reducer, removeEdge, removeStep, removeVariable, revertToPublished, setLastRun, setLastTest, setManagedBy, setPolicy, setStepConfig, setTrigger, setTriggerConfig, setTriggerConnection, setTriggerPieceVersion, setVariable, setWorkflowDescription, setWorkflowName, setWorkflowStatus, supportedVersions, updateStep, useSelectedWorkflowDocument, useWorkflowDocumentById, useWorkflowDocumentsInSelectedDrive, useWorkflowDocumentsInSelectedFolder, utils, workflowDocumentType, creators_exports as workflowEdgesActions, creators_exports$1 as workflowPolicyActions, creators_exports$2 as workflowPublishingActions, creators_exports$3 as workflowRuntimeActions, creators_exports$4 as workflowStepsActions, creators_exports$5 as workflowTriggerActions, workflowUpgradeManifest, creators_exports$6 as workflowVariablesActions, creators_exports$7 as workflowWorkflowActions };
1
+ import { $ as AddStepPropertySettingInputSchema, A as setTrigger, At as SetWorkflowDescriptionInputSchema, B as setLastRun, Bt as WorkflowManagerSchema, C as setWorkflowName, Ct as SetTriggerConfigInputSchema, D as setVariable, Dt as SetTriggerPieceVersionInputSchema, E as removeVariable, Et as SetTriggerInputSchema, F as creators_exports$4, Ft as UpdateStepInputSchema, G as creators_exports$1, Gt as WorkflowVariableSchema, H as creators_exports$2, Ht as WorkflowStateSchema, I as removeStep, It as UpdateStepPositionInputSchema, J as creators_exports, K as setPolicy, Kt as definedNonNullAnySchema, L as setStepConfig, Lt as UpdateStepRetryPolicyInputSchema, M as setTriggerConnection, Mt as SetWorkflowStatusInputSchema, N as setTriggerPieceVersion, Nt as StepTestRecordSchema, O as clearTrigger, Ot as SetTriggerPropertySettingInputSchema, P as addStep, Pt as TriggerBindingSchema, Q as AddStepPositionInputSchema, R as updateStep, Rt as VariableTypeSchema, S as setWorkflowDescription, St as SetStepConfigPropertySettingInputSchema, T as creators_exports$6, Tt as SetTriggerConnectionInputSchema, U as publishWorkflow, Ut as WorkflowStatusSchema, V as setLastTest, Vt as WorkflowPolicySchema, W as revertToPublished, Wt as WorkflowStepSchema, X as AddEdgeInputSchema, Y as removeEdge, Z as AddStepInputSchema, _ as reducer, _t as SetLastTestInputSchema, a as utils$1, at as PointSchema, b as creators_exports$7, bt as SetPolicyRetryPolicyInputSchema, c as WorkflowPHStateSchema, ct as PublishWorkflowInputSchema, d as isWorkflowDocument, dt as RemoveStepInputSchema, et as AddStepRetryPolicyInputSchema, f as isWorkflowState, ft as RemoveVariableInputSchema, g as supportedVersions, gt as SetLastRunInputSchema, h as latestVersion, ht as RunStatusSchema, i as initialLocalState, it as FailureModeSchema, j as setTriggerConfig, jt as SetWorkflowNameInputSchema, k as creators_exports$5, kt as SetVariableInputSchema, l as assertIsWorkflowDocument, lt as PublishedWorkflowSchema, m as workflowUpgradeManifest, mt as RevertToPublishedInputSchema, n as utils, nt as ClearTriggerInputSchema, o as WorkflowDocumentHeaderSchema, ot as PropertyModeSchema, p as workflowDocumentType, pt as RetryPolicySchema, q as addEdge, qt as isDefinedNonNullAny, r as initialGlobalState, rt as ConcurrencyModeSchema, s as WorkflowDocumentSchema, st as PropertySettingSchema, t as Workflow, tt as BackoffKindSchema, u as assertIsWorkflowState, ut as RemoveEdgeInputSchema, v as documentModel, vt as SetManagedByInputSchema, w as setWorkflowStatus, wt as SetTriggerConfigPropertySettingInputSchema, x as setManagedBy, xt as SetStepConfigInputSchema, y as actions, yt as SetPolicyInputSchema, z as creators_exports$3, zt as WorkflowEdgeSchema } from "../../module-BXKUB58R.mjs";
2
+ import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
3
+ //#region document-models/workflow/v1/gen/controller.ts
4
+ /**
5
+ * WARNING: DO NOT EDIT
6
+ * This file is auto-generated and updated by codegen
7
+ */
8
+ const WorkflowController = PHDocumentController.forDocumentModel(Workflow);
9
+ //#endregion
10
+ //#region document-models/workflow/v1/gen/ph-factories.ts
11
+ function defaultGlobalState() {
12
+ return {
13
+ name: "",
14
+ description: null,
15
+ status: "DRAFT",
16
+ version: 0,
17
+ trigger: null,
18
+ steps: [],
19
+ edges: [],
20
+ variables: [],
21
+ policy: {
22
+ concurrency: "QUEUE",
23
+ maxParallelRuns: null,
24
+ runTimeoutSeconds: 3600,
25
+ maxSuspensionDays: 30,
26
+ defaultRetry: {
27
+ maxAttempts: 1,
28
+ backoff: "FIXED",
29
+ initialDelaySeconds: 5,
30
+ maxDelaySeconds: 300,
31
+ retryOn: []
32
+ },
33
+ onFailure: "PARK",
34
+ retainRunsDays: 30,
35
+ journalAsDocument: false
36
+ },
37
+ published: null,
38
+ lastRunAt: null,
39
+ lastRunStatus: null,
40
+ managedBy: null
41
+ };
42
+ }
43
+ function defaultLocalState() {
44
+ return {};
45
+ }
46
+ function defaultPHState() {
47
+ return {
48
+ ...defaultBaseState(),
49
+ global: defaultGlobalState(),
50
+ local: defaultLocalState()
51
+ };
52
+ }
53
+ function createGlobalState(state) {
54
+ return {
55
+ ...defaultGlobalState(),
56
+ ...state || {}
57
+ };
58
+ }
59
+ function createLocalState(state) {
60
+ return {
61
+ ...defaultLocalState(),
62
+ ...state || {}
63
+ };
64
+ }
65
+ function createState(baseState, globalState, localState) {
66
+ return {
67
+ ...createBaseState(baseState?.auth, baseState?.document),
68
+ global: createGlobalState(globalState),
69
+ local: createLocalState(localState)
70
+ };
71
+ }
72
+ /**
73
+ * Creates a WorkflowDocument with custom global and local state
74
+ * This properly handles the PHBaseState requirements while allowing
75
+ * document-specific state to be set.
76
+ */
77
+ function createWorkflowDocument(state) {
78
+ return utils$1.createDocument(createState(createBaseState(state?.auth, {
79
+ version: 1,
80
+ ...state?.document
81
+ }), state?.global, state?.local));
82
+ }
83
+ //#endregion
84
+ export { AddEdgeInputSchema, AddStepInputSchema, AddStepPositionInputSchema, AddStepPropertySettingInputSchema, AddStepRetryPolicyInputSchema, BackoffKindSchema, ClearTriggerInputSchema, ConcurrencyModeSchema, FailureModeSchema, PointSchema, PropertyModeSchema, PropertySettingSchema, PublishWorkflowInputSchema, PublishedWorkflowSchema, RemoveEdgeInputSchema, RemoveStepInputSchema, RemoveVariableInputSchema, RetryPolicySchema, RevertToPublishedInputSchema, RunStatusSchema, SetLastRunInputSchema, SetLastTestInputSchema, SetManagedByInputSchema, SetPolicyInputSchema, SetPolicyRetryPolicyInputSchema, SetStepConfigInputSchema, SetStepConfigPropertySettingInputSchema, SetTriggerConfigInputSchema, SetTriggerConfigPropertySettingInputSchema, SetTriggerConnectionInputSchema, SetTriggerInputSchema, SetTriggerPieceVersionInputSchema, SetTriggerPropertySettingInputSchema, SetVariableInputSchema, SetWorkflowDescriptionInputSchema, SetWorkflowNameInputSchema, SetWorkflowStatusInputSchema, StepTestRecordSchema, TriggerBindingSchema, UpdateStepInputSchema, UpdateStepPositionInputSchema, UpdateStepRetryPolicyInputSchema, VariableTypeSchema, Workflow, WorkflowController, WorkflowDocumentHeaderSchema, WorkflowDocumentSchema, WorkflowEdgeSchema, WorkflowManagerSchema, WorkflowPHStateSchema, WorkflowPolicySchema, WorkflowStateSchema, WorkflowStatusSchema, WorkflowStepSchema, WorkflowVariableSchema, actions, addEdge, addStep, assertIsWorkflowDocument, assertIsWorkflowState, clearTrigger, createState, createWorkflowDocument, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isDefinedNonNullAny, isWorkflowDocument, isWorkflowState, latestVersion, publishWorkflow, reducer, removeEdge, removeStep, removeVariable, revertToPublished, setLastRun, setLastTest, setManagedBy, setPolicy, setStepConfig, setTrigger, setTriggerConfig, setTriggerConnection, setTriggerPieceVersion, setVariable, setWorkflowDescription, setWorkflowName, setWorkflowStatus, supportedVersions, updateStep, utils, workflowDocumentType, creators_exports as workflowEdgesActions, creators_exports$1 as workflowPolicyActions, creators_exports$2 as workflowPublishingActions, creators_exports$3 as workflowRuntimeActions, creators_exports$4 as workflowStepsActions, creators_exports$5 as workflowTriggerActions, workflowUpgradeManifest, creators_exports$6 as workflowVariablesActions, creators_exports$7 as workflowWorkflowActions };
85
+
86
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["utils"],"sources":["../../../../document-models/workflow/v1/gen/controller.ts","../../../../document-models/workflow/v1/gen/ph-factories.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { Workflow } from \"../module.js\";\nimport type { WorkflowAction, WorkflowPHState } from \"./types.js\";\n\nexport const WorkflowController = PHDocumentController.forDocumentModel<\n WorkflowPHState,\n WorkflowAction\n>(Workflow);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating WorkflowDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n WorkflowDocument,\n WorkflowGlobalState,\n WorkflowLocalState,\n WorkflowPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): WorkflowGlobalState {\n return {\n name: \"\",\n description: null,\n status: \"DRAFT\",\n version: 0,\n trigger: null,\n steps: [],\n edges: [],\n variables: [],\n policy: {\n concurrency: \"QUEUE\",\n maxParallelRuns: null,\n runTimeoutSeconds: 3600,\n maxSuspensionDays: 30,\n defaultRetry: {\n maxAttempts: 1,\n backoff: \"FIXED\",\n initialDelaySeconds: 5,\n maxDelaySeconds: 300,\n retryOn: [],\n },\n onFailure: \"PARK\",\n retainRunsDays: 30,\n journalAsDocument: false,\n },\n published: null,\n lastRunAt: null,\n lastRunStatus: null,\n managedBy: null,\n };\n}\n\nexport function defaultLocalState(): WorkflowLocalState {\n return {};\n}\n\nexport function defaultPHState(): WorkflowPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<WorkflowGlobalState>,\n): WorkflowGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<WorkflowLocalState>,\n): WorkflowLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as WorkflowLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<WorkflowGlobalState>,\n localState?: Partial<WorkflowLocalState>,\n): WorkflowPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a WorkflowDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createWorkflowDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<WorkflowGlobalState>;\n local?: Partial<WorkflowLocalState>;\n }>,\n): WorkflowDocument {\n const document = utils.createDocument(\n createState(\n createBaseState(state?.auth, { version: 1, ...state?.document }),\n state?.global,\n state?.local,\n ),\n );\n\n return document;\n}\n"],"mappings":";;;;;;;AAQA,MAAa,qBAAqB,qBAAqB,iBAGrD,QAAQ;;;ACIV,SAAgB,qBAA0C;CACxD,OAAO;EACL,MAAM;EACN,aAAa;EACb,QAAQ;EACR,SAAS;EACT,SAAS;EACT,OAAO,CAAC;EACR,OAAO,CAAC;EACR,WAAW,CAAC;EACZ,QAAQ;GACN,aAAa;GACb,iBAAiB;GACjB,mBAAmB;GACnB,mBAAmB;GACnB,cAAc;IACZ,aAAa;IACb,SAAS;IACT,qBAAqB;IACrB,iBAAiB;IACjB,SAAS,CAAC;GACZ;GACA,WAAW;GACX,gBAAgB;GAChB,mBAAmB;EACrB;EACA,WAAW;EACX,WAAW;EACX,eAAe;EACf,WAAW;CACb;AACF;AAEA,SAAgB,oBAAwC;CACtD,OAAO,CAAC;AACV;AAEA,SAAgB,iBAAkC;CAChD,OAAO;EACL,GAAG,iBAAiB;EACpB,QAAQ,mBAAmB;EAC3B,OAAO,kBAAkB;CAC3B;AACF;AAEA,SAAgB,kBACd,OACqB;CACrB,OAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,iBACd,OACoB;CACpB,OAAO;EACL,GAAG,kBAAkB;EACrB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,YACd,WACA,aACA,YACiB;CACjB,OAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,QAAQ;EACvD,QAAQ,kBAAkB,WAAW;EACrC,OAAO,iBAAiB,UAAU;CACpC;AACF;;;;;;AAOA,SAAgB,uBACd,OAMkB;CASlB,OARiBA,QAAM,eACrB,YACE,gBAAgB,OAAO,MAAM;EAAE,SAAS;EAAG,GAAG,OAAO;CAAS,CAAC,GAC/D,OAAO,QACP,OAAO,KACT,CAGY;AAChB"}
@@ -1,4 +1,6 @@
1
- import { ConnectionEditor } from "./connection-editor/module.mjs";
2
- import { WorkflowEditor } from "./workflow-editor/module.mjs";
3
- import { WorkflowStudio } from "./workflow-studio/module.mjs";
4
- export { ConnectionEditor, WorkflowEditor, WorkflowStudio };
1
+ //#region editors/index.ts
2
+ const editors = [];
3
+ //#endregion
4
+ export { editors };
5
+
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../editors/index.ts"],"sourcesContent":["export const editors = [];"],"mappings":";AAAA,MAAa,UAAU,CAAC"}