@mobtakronio/capskit 0.1.1 → 0.1.3

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/index.d.cts CHANGED
@@ -6,7 +6,7 @@ interface CapsuleManifest {
6
6
  publishes?: string[];
7
7
  subscribes?: EventSubscription[];
8
8
  };
9
- routes?: RouteDefinition[];
9
+ [key: string]: any;
10
10
  }
11
11
  type ActionPreHook = (payload: any, context: ActionContext) => Promise<void> | void;
12
12
  type ActionPostHook = (payload: any, result: any, context: ActionContext) => Promise<any> | any;
@@ -31,13 +31,6 @@ interface EventSubscription {
31
31
  event: string;
32
32
  action: string;
33
33
  }
34
- interface RouteDefinition {
35
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
36
- path: string;
37
- action: string;
38
- schema?: any;
39
- traits?: Record<string, any>;
40
- }
41
34
  interface CapsKitConfig {
42
35
  capsuleDirs?: string[];
43
36
  dependencies?: Record<string, any>;
@@ -77,4 +70,4 @@ declare function createCapsKit(config: CapsKitConfig): Promise<any>;
77
70
 
78
71
  declare function loadCapsules(capsulesDir: string): Promise<CapsuleManifest[]>;
79
72
 
80
- export { type ActionContext, type ActionDefinition, type ActionHandler, type ActionInterceptor, type ActionPostHook, type ActionPreHook, CapsKit, type CapsKitConfig, type CapsuleManifest, type EventSubscription, type ICapsKit, type RouteDefinition, createCapsKit, loadCapsules };
73
+ export { type ActionContext, type ActionDefinition, type ActionHandler, type ActionInterceptor, type ActionPostHook, type ActionPreHook, CapsKit, type CapsKitConfig, type CapsuleManifest, type EventSubscription, type ICapsKit, createCapsKit, loadCapsules };
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ interface CapsuleManifest {
6
6
  publishes?: string[];
7
7
  subscribes?: EventSubscription[];
8
8
  };
9
- routes?: RouteDefinition[];
9
+ [key: string]: any;
10
10
  }
11
11
  type ActionPreHook = (payload: any, context: ActionContext) => Promise<void> | void;
12
12
  type ActionPostHook = (payload: any, result: any, context: ActionContext) => Promise<any> | any;
@@ -31,13 +31,6 @@ interface EventSubscription {
31
31
  event: string;
32
32
  action: string;
33
33
  }
34
- interface RouteDefinition {
35
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
36
- path: string;
37
- action: string;
38
- schema?: any;
39
- traits?: Record<string, any>;
40
- }
41
34
  interface CapsKitConfig {
42
35
  capsuleDirs?: string[];
43
36
  dependencies?: Record<string, any>;
@@ -77,4 +70,4 @@ declare function createCapsKit(config: CapsKitConfig): Promise<any>;
77
70
 
78
71
  declare function loadCapsules(capsulesDir: string): Promise<CapsuleManifest[]>;
79
72
 
80
- export { type ActionContext, type ActionDefinition, type ActionHandler, type ActionInterceptor, type ActionPostHook, type ActionPreHook, CapsKit, type CapsKitConfig, type CapsuleManifest, type EventSubscription, type ICapsKit, type RouteDefinition, createCapsKit, loadCapsules };
73
+ export { type ActionContext, type ActionDefinition, type ActionHandler, type ActionInterceptor, type ActionPostHook, type ActionPreHook, CapsKit, type CapsKitConfig, type CapsuleManifest, type EventSubscription, type ICapsKit, createCapsKit, loadCapsules };