cbd4d98c85
Workspace Member will get their own record page in the future. This PR lays backend changes to prepare for this: - Settings most fields on WorkspaceMember as system fields - Renaming workspaceMember/workspaceMemberId to forWorkspaceMember/forWorkspaceMemberId as it conflicts with the morph relationship, if we want to be able to add a workspace member as favorite --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
139 lines
3.4 KiB
TypeScript
139 lines
3.4 KiB
TypeScript
import { companiesQueryResult } from '~/testing/mock-data/companies';
|
|
import { mockedWorkspaceMemberData } from '~/testing/mock-data/users';
|
|
import { mockedViewsData } from '~/testing/mock-data/views';
|
|
|
|
export const mockedFavoritesData = [
|
|
{
|
|
id: '20202020-dede-koko-873b-de4264d89025',
|
|
createdAt: new Date().toISOString(),
|
|
updatedAt: new Date().toISOString(),
|
|
deletedAt: null,
|
|
position: 0,
|
|
recordId: null,
|
|
workflowId: null,
|
|
workflow: null,
|
|
workflowRunId: null,
|
|
workflowRun: null,
|
|
workflowVersionId: null,
|
|
workflowVersion: null,
|
|
forWorkspaceMemberId: mockedWorkspaceMemberData.id,
|
|
forWorkspaceMember: mockedWorkspaceMemberData,
|
|
companyId: companiesQueryResult.companies.edges[0].node.id,
|
|
company: companiesQueryResult.companies.edges[0].node,
|
|
viewId: null,
|
|
view: null,
|
|
taskId: null,
|
|
task: null,
|
|
petId: null,
|
|
pet: null,
|
|
surveyResultId: null,
|
|
surveyResult: null,
|
|
personId: null,
|
|
person: null,
|
|
opportunityId: null,
|
|
opportunity: null,
|
|
noteId: null,
|
|
note: null,
|
|
__typename: 'Favorite',
|
|
},
|
|
{
|
|
id: '20202020-dede-koko-873b-de4264d89026',
|
|
createdAt: new Date().toISOString(),
|
|
updatedAt: new Date().toISOString(),
|
|
deletedAt: null,
|
|
position: 1,
|
|
recordId: null,
|
|
workflowId: null,
|
|
workflow: null,
|
|
workflowRunId: null,
|
|
workflowRun: null,
|
|
workflowVersionId: null,
|
|
workflowVersion: null,
|
|
forWorkspaceMemberId: null,
|
|
forWorkspaceMember: null,
|
|
companyId: null,
|
|
company: null,
|
|
viewId: mockedViewsData[0].id,
|
|
view: mockedViewsData[0],
|
|
taskId: null,
|
|
task: null,
|
|
petId: null,
|
|
pet: null,
|
|
surveyResultId: null,
|
|
surveyResult: null,
|
|
personId: null,
|
|
person: null,
|
|
opportunityId: null,
|
|
opportunity: null,
|
|
noteId: null,
|
|
note: null,
|
|
__typename: 'Favorite',
|
|
},
|
|
{
|
|
id: '20202020-dede-koko-873b-de4264d89026',
|
|
createdAt: new Date().toISOString(),
|
|
updatedAt: new Date().toISOString(),
|
|
deletedAt: null,
|
|
position: 1,
|
|
recordId: null,
|
|
workflowId: null,
|
|
workflow: null,
|
|
workflowRunId: null,
|
|
workflowRun: null,
|
|
workflowVersionId: null,
|
|
workflowVersion: null,
|
|
forWorkspaceMemberId: null,
|
|
forWorkspaceMember: null,
|
|
companyId: null,
|
|
company: null,
|
|
viewId: mockedViewsData[1].id,
|
|
view: mockedViewsData[1],
|
|
taskId: null,
|
|
task: null,
|
|
petId: null,
|
|
pet: null,
|
|
surveyResultId: null,
|
|
surveyResult: null,
|
|
personId: null,
|
|
person: null,
|
|
opportunityId: null,
|
|
opportunity: null,
|
|
noteId: null,
|
|
note: null,
|
|
__typename: 'Favorite',
|
|
},
|
|
{
|
|
id: '20202020-dede-koko-873b-de4264d89026',
|
|
createdAt: new Date().toISOString(),
|
|
updatedAt: new Date().toISOString(),
|
|
deletedAt: null,
|
|
position: 1,
|
|
recordId: null,
|
|
workflowId: null,
|
|
workflow: null,
|
|
workflowRunId: null,
|
|
workflowRun: null,
|
|
workflowVersionId: null,
|
|
workflowVersion: null,
|
|
forWorkspaceMemberId: null,
|
|
forWorkspaceMember: null,
|
|
companyId: null,
|
|
company: null,
|
|
viewId: mockedViewsData[1].id,
|
|
view: mockedViewsData[1],
|
|
taskId: null,
|
|
task: null,
|
|
petId: null,
|
|
pet: null,
|
|
surveyResultId: null,
|
|
surveyResult: null,
|
|
personId: null,
|
|
person: null,
|
|
opportunityId: null,
|
|
opportunity: null,
|
|
noteId: null,
|
|
note: null,
|
|
__typename: 'Favorite',
|
|
},
|
|
];
|