lml-main
Version:
This is now a mono repository published into many standalone packages.
43 lines • 1.31 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var faker_1 = require("faker");
var ts_utils_1 = require("@lml/ts-utils");
exports.mockBookingItemGroup = function () { return ({
id: faker_1.random.uuid(),
metadata: {},
items: ts_utils_1.createArray(exports.mockBookingItem),
collection: {
stopId: 'stop1',
instructions: 'Handle with care',
},
delivery: {
stopId: 'stop2',
instructions: 'Leave with reception',
},
timeslot: {
id: faker_1.random.uuid(),
collectionStart: '2018-01-08T14:35:40.000Z',
collectionEnd: '2018-01-08T14:35:40.000Z',
collectionIdeal: '2018-01-08T14:35:40.000Z',
deliveryStart: '2018-01-08T14:35:40.000Z',
deliveryEnd: '2018-01-08T14:35:40.000Z',
deliveryIdeal: '2018-01-08T14:35:40.000Z',
distance: 0.4492,
},
status: 'created',
statusUpdatedAt: '2018-01-08T14:03:16.274Z',
}); };
exports.mockBookingItem = function () { return ({
id: faker_1.random.uuid(),
description: faker_1.commerce.product(),
quantity: 1,
metrics: {
weight: 10,
dimension: {
width: 10,
height: 0.5,
length: 20,
},
},
}); };
//# sourceMappingURL=booking-items.js.map