@pikku/inspector 0.6.4 → 0.7.1

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/src/types.ts CHANGED
@@ -2,6 +2,7 @@ import { ChannelsMeta } from '@pikku/core/channel'
2
2
  import { HTTPRoutesMeta } from '@pikku/core/http'
3
3
  import { ScheduledTasksMeta } from '@pikku/core/scheduler'
4
4
  import { TypesMap } from './types-map.js'
5
+ import { FunctionsMeta } from '@pikku/core'
5
6
 
6
7
  export type PathToNameAndType = Map<
7
8
  string,
@@ -17,18 +18,6 @@ export type MetaInputTypes = Map<
17
18
  }
18
19
  >
19
20
 
20
- export type APIFunctionMeta = Array<{
21
- name: string
22
- input: string
23
- output: string
24
- file: string
25
- }>
26
-
27
- export type InspectorAPIFunction = {
28
- typesMap: TypesMap
29
- meta: APIFunctionMeta
30
- }
31
-
32
21
  export interface InspectorHTTPState {
33
22
  typesMap: TypesMap
34
23
  metaInputTypes: MetaInputTypes
@@ -36,6 +25,12 @@ export interface InspectorHTTPState {
36
25
  files: Set<string>
37
26
  }
38
27
 
28
+ export interface InspectorFunctionState {
29
+ typesMap: TypesMap
30
+ meta: FunctionsMeta
31
+ files: Set<string>
32
+ }
33
+
39
34
  export interface InspectorChannelState {
40
35
  typesMap: TypesMap
41
36
  metaInputTypes: MetaInputTypes
@@ -54,6 +49,7 @@ export interface InspectorState {
54
49
  sessionServicesFactories: PathToNameAndType
55
50
  configFactories: PathToNameAndType
56
51
  http: InspectorHTTPState
52
+ functions: InspectorFunctionState
57
53
  channels: InspectorChannelState
58
54
  scheduledTasks: {
59
55
  meta: ScheduledTasksMeta