appos 0.1.20-0 → 0.1.21-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
- import type { Container } from "#app/.server/primitives/container.ts";
2
- import type { InferWorkflows } from "#app/.server/primitives/workflow.ts";
3
- import type * as workflows from "#app/.server/workflows/index.ts";
1
+ /**
2
+ * Base workflows type provided by AppOS framework.
3
+ */
4
+ type BaseWorkflows = import("appos/server").InferWorkflows<
5
+ import("appos/server").Container,
6
+ typeof import("appos/server").workflows
7
+ >;
4
8
 
5
9
  /**
6
10
  * AppOS namespace for user-extensible types and Express augmentations.
@@ -9,8 +13,9 @@ declare global {
9
13
  namespace AppOS {
10
14
  /**
11
15
  * User-defined workflows from appos/workflows/*.ts
16
+ * This will be augmented by codegen with actual user workflows.
12
17
  */
13
- interface Workflows extends InferWorkflows<Container, typeof workflows> {}
18
+ interface Workflows {}
14
19
 
15
20
  /**
16
21
  * User-defined server-to-client realtime events from appos/realtime/*.ts
@@ -71,12 +76,15 @@ declare global {
71
76
  /**
72
77
  * The application container with base services and user-defined extensions.
73
78
  */
74
- container: Container;
79
+ container: import("appos/server").Container;
75
80
 
76
81
  /**
77
- * The application workflows that are defined in the app.
82
+ * All workflows available in the app (both base and user-defined).
83
+ * This merges base workflows with user workflows.
78
84
  */
79
- workflows: AppOS.Workflows;
85
+ workflows: BaseWorkflows & AppOS.Workflows;
80
86
  }
81
87
  }
82
88
  }
89
+
90
+ export {};