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

export const bundles = [<% 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) %>
            },
        <% } %>
        ]
    },
<% }  %>
]
