Files
threshold-ui/addons/api/mirage/factories/channel-recording.js
T
Zhihe Li a829727b1b Feat/update models (#128)
* feat: 🎸 Add mime types field

* feat: 🎸 Add duration field to models
2023-03-20 14:06:15 -04:00

14 lines
372 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import factory from '../generated/factories/channel-recording';
import generateId from '../helpers/id';
import { TYPES_CHANNEL_RECORDING as types } from 'api/models/channel-recording';
export default factory.extend({
id: () => generateId('chr_'),
type: (i) => types[i % types.length],
});