UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

15 lines (14 loc) 586 B
import { Notification } from '@/models/Notification' import { MockFunction } from '@/services/Mocker' export const randomNotification: MockFunction<Notification, [Partial<Notification>?]> = function(overrides = {}) { return new Notification({ id: this.create('id'), created: this.create('date'), updated: this.create('date'), isActive: this.create('boolean'), stateNames: this.createMany('stateType', this.create('number', [0, 3])), tags: this.createMany('noun', this.create('number', [0, 3])), blockDocumentId: this.create('id'), ...overrides, }) }