A plugin for generating types/interfaces from sampling an existing event stream
npm install @flowcore/cli-plugin-typesFlowcore CLI Plugin - Types
=================
A plugin for generating types/interfaces from sampling an existing event stream



sh-session
$ npm install -g @flowcore/cli-plugin-types
$ types COMMAND
running command...
$ types (--version)
@flowcore/cli-plugin-types/2.13.0 darwin-arm64 node-v20.15.0
$ types --help [COMMAND]
USAGE
$ types COMMAND
...
`
Commands
* types types STREAM
* types types typescript STREAMtypes types STREAMGet json schema from event type
`
USAGE
$ types types STREAM --directory [--profile ] [--first ] [--last ] [--random
] [--all]ARGUMENTS
STREAM stream url to connect to
FLAGS
--all Sample all events
--directory= (required) Directory to write the types to
--first= Sample from the first messages
--last= Sample from the latest messages
--profile= Specify the configuration profile to use
--random= Sample a number of random events
DESCRIPTION
Get json schema from event type
EXAMPLES
$ types types "https://flowcore.io///*" --last 10
$ types types "https://flowcore.io///*" --first 10
$ types types "https://flowcore.io///*" --random 10
$ types types "https://flowcore.io///*" --all
`_See code: src/commands/types.ts_
types types typescript STREAMGet typescript types from event type
`
USAGE
$ types types typescript STREAM --directory [--profile ] [--first ] [--last ] [--random
] [--all]ARGUMENTS
STREAM stream url to connect to
FLAGS
--all Sample all events
--directory= (required) Directory to write the types to
--first= Sample from the first messages
--last= Sample from the latest messages
--profile= Specify the configuration profile to use
--random= Sample a number of random events
DESCRIPTION
Get typescript types from event type
EXAMPLES
$ types types typescript "https://flowcore.io///*" --last 10
$ types types typescript "https://flowcore.io///*" --first 10
$ types types typescript "https://flowcore.io///*" --random 10
$ types types typescript "https://flowcore.io///*" --all
``_See code: src/commands/types/typescript.ts_