discourse-assign/test/javascripts/fixtures/notifications-fixtures.js

88 lines
2.4 KiB
JavaScript

export default {
"/assign/notifications/eviltrout": {
notifications: [
{
id: 193,
user_id: 26,
notification_type: 34,
read: false,
high_priority: true,
created_at: "2022-03-18T17:51:11.920Z",
post_number: 1,
topic_id: 59,
fancy_title:
"A bear, however hard he tries, grows tubby without exercise",
slug: "a-bear-however-hard-he-tries-grows-tubby-without-exercise",
data: {
message: "discourse_assign.assign_notification",
display_username: "system",
topic_title:
"A bear, however hard he tries, grows tubby without exercise",
},
},
{
id: 192,
user_id: 26,
notification_type: 12,
read: false,
high_priority: false,
created_at: "2022-03-18T16:47:09.668Z",
post_number: null,
topic_id: null,
slug: null,
data: {
badge_id: 5,
badge_name: "Welcome",
badge_slug: "welcome",
badge_title: false,
username: "eviltrout",
},
},
{
id: 191,
user_id: 26,
notification_type: 5,
read: false,
high_priority: false,
created_at: "2022-03-18T16:46:57.744Z",
post_number: 5,
topic_id: 59,
fancy_title:
"A bear, however hard he tries, grows tubby without exercise",
slug: "a-bear-however-hard-he-tries-grows-tubby-without-exercise",
data: {
topic_title:
"A bear, however hard he tries, grows tubby without exercise",
original_post_id: 285,
original_post_type: 1,
original_username: "system",
revision_number: null,
display_username: "system",
},
},
{
id: 148,
user_id: 26,
notification_type: 12,
read: false,
high_priority: false,
created_at: "2022-03-17T21:49:02.226Z",
post_number: null,
topic_id: null,
slug: null,
data: {
badge_id: 1,
badge_name: "Basic",
badge_slug: "basic",
badge_title: false,
username: "eviltrout",
},
},
],
total_rows_notifications: 4,
seen_notification_id: 193,
load_more_notifications:
"/notifications?filter=all&offset=60&username=eviltrout",
},
};