THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Core models that are made available in the UI are either declared in the package
streampipes-model
orstreampipes-model-client
If any core model class is changed or a new model class has been created, the following steps should be done to generate the corresponding typescript model:
- Go to the corresponding module (e.g., streampipes-model)
- Annotate new models with @TsModel so that it will be considered by the typescript generator. For more complex models (e.g., using inheritance), have a look at some existing examples (e.g., StaticProperty), where some additional Jackson annotations might be required.
- Execute mvn
typescript-generator:generate
- This creates a new single class containing all models from the module. Copy that file to the UI folder (ui/projects/streampipes/platform-services/src/applib/core-model/gen). There should be two files present (for streampipes-model and streampipes-model-client), overwrite the existing file.
- Paste the Apache Header into the generated file.
- That's it! Your model should now be available to the UI.
...