@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/CHANGELOG.md +16 -0
- package/dist/add-channel.d.ts +12 -2
- package/dist/add-channel.js +336 -109
- package/dist/add-functions.d.ts +7 -0
- package/dist/add-functions.js +269 -0
- package/dist/add-http-route.d.ts +15 -3
- package/dist/add-http-route.js +69 -80
- package/dist/add-schedule.d.ts +1 -1
- package/dist/add-schedule.js +14 -4
- package/dist/inspector.js +14 -4
- package/dist/types.d.ts +7 -10
- package/dist/utils.d.ts +21 -27
- package/dist/utils.js +631 -211
- package/dist/visit.d.ts +2 -1
- package/dist/visit.js +9 -4
- package/package.json +2 -2
- package/src/add-channel.ts +442 -140
- package/src/add-functions.ts +376 -0
- package/src/add-http-route.ts +94 -109
- package/src/add-schedule.ts +24 -4
- package/src/inspector.ts +17 -5
- package/src/types.ts +8 -12
- package/src/utils.ts +778 -286
- package/src/visit.ts +16 -6
- package/tsconfig.tsbuildinfo +1 -1
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
|