In this PR: - Remove deactivated objects from ActivityTargetInlineCell record picker - Prevent users to deactivate createdAt, updatedAt, deletedAt fields on any objects Still left: - write unit tests on the assert utils - write integration tests on field metadata service - prevent users to deactivate createdAt, updatedAt, deletedAt on FE
16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
import { 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,
|
|
});
|