384 lines
8.4 KiB
TypeScript
384 lines
8.4 KiB
TypeScript
export const addCommentToThreadMockResponse = {
|
|
responseMeta: {
|
|
status: 201,
|
|
success: true,
|
|
},
|
|
data: {
|
|
id: "6063904791dea93f0eaf91d9",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "9b3or",
|
|
text: "new",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
};
|
|
|
|
export const createNewThreadMockResponse = {
|
|
responseMeta: {
|
|
status: 201,
|
|
success: true,
|
|
},
|
|
data: {
|
|
id: "60636f0591dea93f0eaf91d5",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 10.0,
|
|
leftPercent: 72.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "60636f0591dea93f0eaf91d6",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
},
|
|
};
|
|
|
|
export const fetchApplicationThreadsMockResponse = {
|
|
responseMeta: {
|
|
status: 200,
|
|
success: true,
|
|
},
|
|
data: [
|
|
{
|
|
id: "605c436591dea93f0eaf91bb",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 7.0,
|
|
leftPercent: 13.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c436591dea93f0eaf91bc",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605c444c91dea93f0eaf91bd",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 9.0,
|
|
leftPercent: 7.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c444c91dea93f0eaf91be",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605c519391dea93f0eaf91bf",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 2.0,
|
|
leftPercent: 18.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c519391dea93f0eaf91c0",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605c519c91dea93f0eaf91c1",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 1.0,
|
|
leftPercent: 23.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c519c91dea93f0eaf91c2",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
{
|
|
id: "605c51b191dea93f0eaf91c3",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605c51e891dea93f0eaf91c4",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 2.0,
|
|
leftPercent: 28.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c51e891dea93f0eaf91c5",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605c53b491dea93f0eaf91c6",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 2.0,
|
|
leftPercent: 33.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605c53b491dea93f0eaf91c7",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "605cb30c91dea93f0eaf91cb",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 1.0,
|
|
leftPercent: 3.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "605cb30c91dea93f0eaf91cc",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
{
|
|
id: "6060c45e91dea93f0eaf91ce",
|
|
userPermissions: [],
|
|
position: {
|
|
topPercent: 5.0,
|
|
leftPercent: 41.0,
|
|
},
|
|
refId: "0",
|
|
applicationId: "605c435a91dea93f0eaf91b8",
|
|
pageId: "605c435a91dea93f0eaf91ba",
|
|
comments: [
|
|
{
|
|
id: "6060c45e91dea93f0eaf91cf",
|
|
userPermissions: [],
|
|
body: {
|
|
blocks: [
|
|
{
|
|
key: "6bfm4",
|
|
text: "asdf",
|
|
type: "unstyled",
|
|
depth: 0,
|
|
inlineStyleRanges: [],
|
|
entityRanges: [],
|
|
data: {},
|
|
},
|
|
],
|
|
entityMap: {},
|
|
},
|
|
new: false,
|
|
},
|
|
],
|
|
new: false,
|
|
isViewed: true,
|
|
},
|
|
],
|
|
};
|
|
|
|
export const fetchPagesMockResponse = {
|
|
responseMeta: {
|
|
status: 200,
|
|
success: true,
|
|
},
|
|
data: {
|
|
workspaceId: "605c433c91dea93f0eaf91b5",
|
|
pages: [
|
|
{
|
|
id: "605c435a91dea93f0eaf91ba",
|
|
name: "Page1",
|
|
isDefault: true,
|
|
slug: "page-1",
|
|
},
|
|
],
|
|
},
|
|
};
|