Forcing "type" to be explicit, works best will rollup on the frontend to exclude depdendencies
16 lines
496 B
TypeScript
16 lines
496 B
TypeScript
import { type CreateObjectInput } from 'src/engine/metadata-modules/object-metadata/dtos/create-object.input';
|
|
|
|
// TODO would tend to use faker
|
|
export const getMockCreateObjectInput = (
|
|
overrides?: Partial<Omit<CreateObjectInput, 'workspaceId' | 'dataSourceId'>>,
|
|
) => ({
|
|
namePlural: 'listingas',
|
|
nameSingular: 'listinga',
|
|
labelPlural: 'Listings',
|
|
labelSingular: 'Listing',
|
|
description: 'Listing object',
|
|
icon: 'IconListNumbers',
|
|
isLabelSyncedWithName: false,
|
|
...overrides,
|
|
});
|