
import { AppBundleConfig } from './definitions';
import { PipeConverter, ByteSwapConverter, NumberConverter, StringConverter, FloatConverter, BooleanConverter, ArrayConverter } from '@iotize/device-client.js/all-converter';

export const bundles: AppBundleConfig[] = [<% for (let bundle of bundles) { %>
    {
        id: <%= bundle.id %>,
        name: "<%= bundle.name %>",
        variables: [<% for (let variable of bundle.variables) { %>
            {
                "id": <%= variable.id %>,
                "length": <%= variable.length %>,
                "type": "<%= variable.type %>",
                "name": "<%= variablenamify(variable.name) %>", 
                "converter": <%= createConverterInstance(variable) %>
            },
        <% } %>
        ]
    },
<% }  %>
]
