test: check old megalodon version

This commit is contained in:
Mar0xy 2023-09-25 01:20:03 +02:00
parent ead0667320
commit 89eea5df52
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
230 changed files with 7537 additions and 21119 deletions

View file

@ -1,26 +1,14 @@
import Entity from './entity'
import Entity from "./entity";
namespace NotificationType {
export const Follow: Entity.NotificationType = 'follow'
export const Favourite: Entity.NotificationType = 'favourite'
export const Reblog: Entity.NotificationType = 'reblog'
export const Mention: Entity.NotificationType = 'mention'
export const EmojiReaction: Entity.NotificationType = 'emoji_reaction'
export const FollowRequest: Entity.NotificationType = 'follow_request'
export const Status: Entity.NotificationType = 'status'
export const PollVote: Entity.NotificationType = 'poll_vote'
export const PollExpired: Entity.NotificationType = 'poll_expired'
export const Update: Entity.NotificationType = 'update'
export const Move: Entity.NotificationType = 'move'
export const AdminSignup: Entity.NotificationType = 'admin.sign_up'
export const AdminReport: Entity.NotificationType = 'admin.report'
export const Follow: Entity.NotificationType = "follow";
export const Favourite: Entity.NotificationType = "favourite";
export const Reblog: Entity.NotificationType = "reblog";
export const Mention: Entity.NotificationType = "mention";
export const Reaction: Entity.NotificationType = "reaction";
export const FollowRequest: Entity.NotificationType = "follow_request";
export const Status: Entity.NotificationType = "status";
export const Poll: Entity.NotificationType = "poll";
}
export class UnknownNotificationTypeError extends Error {
constructor() {
super()
Object.setPrototypeOf(this, UnknownNotificationTypeError.prototype)
}
}
export default NotificationType
export default NotificationType;