Skip to content

CreateDataSourceType

Object for creating a new DataSourceType.

sourceobject(Source)required

The user-facing input format - a registered data type and the store it lives in. Together with target, it selects the matching data source type.

Example:
{ "store": "fdplan", "type": "production-forecast-fdplan-workbook" }
targetsArray of stringsrequired

List of Data Types.

Example:
[ "production-forecast" ]
editorsArray of objects or null(Editor)

List of editors defining how data source type is provided.

viewersArray of objects or null(Viewer)

List of viewers defining how data source type is viewed.

transformationProviderobject(TransformationProvider)

Transformation provider defines which provider is used to process the data.

copyProviderobject(CopyProvider)

Copy provider defines which provider copies the data sources of this data source type. Defaults to system (FDPlan copies internally); set a custom name to delegate copying to an external worker, which then handles copy_transformation_required events. Data source types in the fdplan store can only be processed by the system worker and are not allowed to have a custom copy provider.

{ "source": { "store": "fdplan", "type": "production-forecast-fdplan-workbook" }, "targets": [ "production-forecast" ] }