Migrate to a monorepo structure (#2909)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,344 @@
|
||||
import { FilterDefinition } from '@/object-record/object-filter-dropdown/types/FilterDefinition';
|
||||
import { SortDefinition } from '@/object-record/object-sort-dropdown/types/SortDefinition';
|
||||
import { ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition';
|
||||
|
||||
export const signInBackgroundMockColumnDefinitions = [
|
||||
{
|
||||
position: 0,
|
||||
fieldMetadataId: '20202020-5e4e-4007-a630-8a2617914889',
|
||||
label: 'Domain Name',
|
||||
size: 100,
|
||||
type: 'TEXT',
|
||||
metadata: {
|
||||
fieldName: 'domainName',
|
||||
placeHolder: 'Domain Name',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconLink',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 1,
|
||||
fieldMetadataId: '20202020-7fbd-41ad-b64d-25a15ff62f04',
|
||||
label: 'Employees',
|
||||
size: 100,
|
||||
type: 'NUMBER',
|
||||
metadata: {
|
||||
fieldName: 'employees',
|
||||
placeHolder: 'Employees',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconUsers',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 2,
|
||||
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c',
|
||||
label: 'Name',
|
||||
size: 100,
|
||||
type: 'TEXT',
|
||||
metadata: {
|
||||
fieldName: 'name',
|
||||
placeHolder: 'Name',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconBuildingSkyscraper',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 3,
|
||||
fieldMetadataId: '20202020-e7c8-4771-8cc4-ce0e8c36a3c0',
|
||||
label: 'Favorites',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'favorites',
|
||||
placeHolder: 'Favorites',
|
||||
relationType: 'FROM_MANY_OBJECTS',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconHeart',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 4,
|
||||
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
|
||||
label: 'Address',
|
||||
size: 100,
|
||||
type: 'TEXT',
|
||||
metadata: {
|
||||
fieldName: 'address',
|
||||
placeHolder: 'Address',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconMap',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 5,
|
||||
fieldMetadataId: '20202020-0739-495d-8e70-c0807f6b2268',
|
||||
label: 'Account Owner',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'accountOwner',
|
||||
placeHolder: 'Account Owner',
|
||||
relationType: 'TO_ONE_OBJECT',
|
||||
relationObjectMetadataNameSingular: 'workspaceMember',
|
||||
relationObjectMetadataNamePlural: 'workspaceMembers',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconUserCircle',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 6,
|
||||
fieldMetadataId: '20202020-68b4-4c8e-af19-738eba2a42a5',
|
||||
label: 'People',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'people',
|
||||
placeHolder: 'People',
|
||||
relationType: 'FROM_MANY_OBJECTS',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconUsers',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 7,
|
||||
fieldMetadataId: '20202020-61af-4ffd-b79b-baed6db8ad11',
|
||||
label: 'Attachments',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'attachments',
|
||||
placeHolder: 'Attachments',
|
||||
relationType: 'FROM_MANY_OBJECTS',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconFileImport',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 8,
|
||||
fieldMetadataId: '20202020-4dc2-47c9-bb15-6e6f19ba9e46',
|
||||
label: 'Creation date',
|
||||
size: 100,
|
||||
type: 'DATE_TIME',
|
||||
metadata: {
|
||||
fieldName: 'createdAt',
|
||||
placeHolder: 'Creation date',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconCalendar',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 9,
|
||||
fieldMetadataId: '20202020-9e9f-4235-98b2-c76f3e2d281e',
|
||||
label: 'ICP',
|
||||
size: 100,
|
||||
type: 'BOOLEAN',
|
||||
metadata: {
|
||||
fieldName: 'idealCustomerProfile',
|
||||
placeHolder: 'ICP',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconTarget',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 10,
|
||||
fieldMetadataId: '20202020-a61d-4b78-b998-3fd88b4f73a1',
|
||||
label: 'Linkedin',
|
||||
size: 100,
|
||||
type: 'LINK',
|
||||
metadata: {
|
||||
fieldName: 'linkedinLink',
|
||||
placeHolder: 'Linkedin',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconBrandLinkedin',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 11,
|
||||
fieldMetadataId: '20202020-e3fc-46ff-b552-3e757843f06e',
|
||||
label: 'Opportunities',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'opportunities',
|
||||
placeHolder: 'Opportunities',
|
||||
relationType: 'FROM_MANY_OBJECTS',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconTargetArrow',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 12,
|
||||
fieldMetadataId: '20202020-46e3-479a-b8f4-77137c74daa6',
|
||||
label: 'X',
|
||||
size: 100,
|
||||
type: 'LINK',
|
||||
metadata: {
|
||||
fieldName: 'xLink',
|
||||
placeHolder: 'X',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconBrandX',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 13,
|
||||
fieldMetadataId: '20202020-4a2e-4b41-8562-279963e8947e',
|
||||
label: 'Activities',
|
||||
size: 100,
|
||||
type: 'RELATION',
|
||||
metadata: {
|
||||
fieldName: 'activityTargets',
|
||||
placeHolder: 'Activities',
|
||||
relationType: 'FROM_MANY_OBJECTS',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconCheckbox',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
position: 14,
|
||||
fieldMetadataId: '20202020-4a5a-466f-92d9-c3870d9502a9',
|
||||
label: 'ARR',
|
||||
size: 100,
|
||||
type: 'CURRENCY',
|
||||
metadata: {
|
||||
fieldName: 'annualRecurringRevenue',
|
||||
placeHolder: 'ARR',
|
||||
relationObjectMetadataNameSingular: '',
|
||||
relationObjectMetadataNamePlural: '',
|
||||
objectMetadataNameSingular: 'company',
|
||||
},
|
||||
iconName: 'IconMoneybag',
|
||||
isVisible: true,
|
||||
},
|
||||
] as ColumnDefinition<any>[];
|
||||
|
||||
export const signInBackgroundMockFilterDefinitions = [
|
||||
{
|
||||
fieldMetadataId: '20202020-5e4e-4007-a630-8a2617914889',
|
||||
label: 'Domain Name',
|
||||
iconName: 'IconLink',
|
||||
type: 'TEXT',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-7fbd-41ad-b64d-25a15ff62f04',
|
||||
label: 'Employees',
|
||||
iconName: 'IconUsers',
|
||||
type: 'NUMBER',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c',
|
||||
label: 'Name',
|
||||
iconName: 'IconBuildingSkyscraper',
|
||||
type: 'TEXT',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
|
||||
label: 'Address',
|
||||
iconName: 'IconMap',
|
||||
type: 'TEXT',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-0739-495d-8e70-c0807f6b2268',
|
||||
label: 'Account Owner',
|
||||
iconName: 'IconUserCircle',
|
||||
relationObjectMetadataNamePlural: 'workspaceMembers',
|
||||
relationObjectMetadataNameSingular: 'workspaceMember',
|
||||
type: 'RELATION',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-4dc2-47c9-bb15-6e6f19ba9e46',
|
||||
label: 'Creation date',
|
||||
iconName: 'IconCalendar',
|
||||
type: 'DATE_TIME',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-a61d-4b78-b998-3fd88b4f73a1',
|
||||
label: 'Linkedin',
|
||||
iconName: 'IconBrandLinkedin',
|
||||
type: 'LINK',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-46e3-479a-b8f4-77137c74daa6',
|
||||
label: 'X',
|
||||
iconName: 'IconBrandX',
|
||||
type: 'LINK',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-4a5a-466f-92d9-c3870d9502a9',
|
||||
label: 'ARR',
|
||||
iconName: 'IconMoneybag',
|
||||
type: 'CURRENCY',
|
||||
},
|
||||
] as FilterDefinition[];
|
||||
|
||||
export const signInBackgroundMockSortDefinitions = [
|
||||
{
|
||||
fieldMetadataId: '20202020-5e4e-4007-a630-8a2617914889',
|
||||
label: 'Domain Name',
|
||||
iconName: 'IconLink',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-7fbd-41ad-b64d-25a15ff62f04',
|
||||
label: 'Employees',
|
||||
iconName: 'IconUsers',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c',
|
||||
label: 'Name',
|
||||
iconName: 'IconBuildingSkyscraper',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
|
||||
label: 'Address',
|
||||
iconName: 'IconMap',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-4dc2-47c9-bb15-6e6f19ba9e46',
|
||||
label: 'Creation date',
|
||||
iconName: 'IconCalendar',
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '20202020-9e9f-4235-98b2-c76f3e2d281e',
|
||||
label: 'ICP',
|
||||
iconName: 'IconTarget',
|
||||
},
|
||||
] as SortDefinition[];
|
||||
@ -0,0 +1,86 @@
|
||||
import { ViewField } from '@/views/types/ViewField';
|
||||
|
||||
export const signInBackgroundMockViewFields = [
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: '5168be09-f200-40f5-9e04-29d607de06e5',
|
||||
fieldMetadataId: '20202020-7fbd-41ad-b64d-25a15ff62f04',
|
||||
size: 150,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 4,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: '5ece850b-76fd-4135-9b99-06d49cad14ae',
|
||||
fieldMetadataId: '20202020-a61d-4b78-b998-3fd88b4f73a1',
|
||||
size: 170,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 5,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: '604dbdbb-df01-4e47-921b-f9963109f912',
|
||||
fieldMetadataId: '20202020-0739-495d-8e70-c0807f6b2268',
|
||||
size: 150,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 2,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: '7cbc36c8-37c6-4561-8c46-ddb316ddd121',
|
||||
fieldMetadataId: '20202020-4dc2-47c9-bb15-6e6f19ba9e46',
|
||||
size: 150,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 3,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: 'a7d19be3-1ce9-479b-9453-2930a381e07c',
|
||||
fieldMetadataId: '20202020-5e4e-4007-a630-8a2617914889',
|
||||
size: 100,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 1,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: 'cafacdc8-cbfc-4545-8242-94787f144ace',
|
||||
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c',
|
||||
size: 180,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 0,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
{
|
||||
__typename: 'ViewField',
|
||||
id: 'f0cc50c9-b9b6-405b-a1c0-23f7698ea731',
|
||||
fieldMetadataId: '20202020-ad10-4117-a039-3f04b7a5f939',
|
||||
size: 170,
|
||||
createdAt: '2023-11-23T15:38:03.706Z',
|
||||
viewId: '20202020-2441-4424-8163-4002c523d415',
|
||||
position: 6,
|
||||
isVisible: true,
|
||||
updatedAt: '2023-11-23T15:38:03.706Z',
|
||||
},
|
||||
] as (ViewField & {
|
||||
__typename: string;
|
||||
createdAt: string;
|
||||
viewId: string;
|
||||
updatedAt: string;
|
||||
})[];
|
||||
Reference in New Issue
Block a user