2e72f6faf4
yarn v1 is being deprecated and starts to have some issues Signed-off-by: Thomas Citharel <tcit@tcit.fr>
304 lines
6.4 KiB
TypeScript
304 lines
6.4 KiB
TypeScript
/* eslint-disable no-unused-vars */
|
|
export enum InstanceTermsType {
|
|
DEFAULT = "DEFAULT",
|
|
URL = "URL",
|
|
CUSTOM = "CUSTOM",
|
|
}
|
|
|
|
export enum InstancePrivacyType {
|
|
DEFAULT = "DEFAULT",
|
|
URL = "URL",
|
|
CUSTOM = "CUSTOM",
|
|
}
|
|
|
|
export enum ICurrentUserRole {
|
|
USER = "USER",
|
|
MODERATOR = "MODERATOR",
|
|
ADMINISTRATOR = "ADMINISTRATOR",
|
|
}
|
|
|
|
export enum INotificationPendingEnum {
|
|
NONE = "NONE",
|
|
DIRECT = "DIRECT",
|
|
ONE_DAY = "ONE_DAY",
|
|
ONE_HOUR = "ONE_HOUR",
|
|
ONE_WEEK = "ONE_WEEK",
|
|
}
|
|
|
|
export enum IAuthProvider {
|
|
LDAP = "ldap",
|
|
GOOGLE = "google",
|
|
DISCORD = "discord",
|
|
GITHUB = "github",
|
|
KEYCLOAK = "keycloak",
|
|
FACEBOOK = "facebook",
|
|
GITLAB = "gitlab",
|
|
TWITTER = "twitter",
|
|
}
|
|
|
|
export enum ErrorCode {
|
|
UNKNOWN = "unknown",
|
|
REGISTRATION_CLOSED = "registration_closed",
|
|
}
|
|
|
|
export enum CommentModeration {
|
|
ALLOW_ALL = "ALLOW_ALL",
|
|
MODERATED = "MODERATED",
|
|
CLOSED = "CLOSED",
|
|
}
|
|
|
|
export enum EventStatus {
|
|
TENTATIVE = "TENTATIVE",
|
|
CONFIRMED = "CONFIRMED",
|
|
CANCELLED = "CANCELLED",
|
|
}
|
|
|
|
export enum EventVisibility {
|
|
PUBLIC = "PUBLIC",
|
|
UNLISTED = "UNLISTED",
|
|
RESTRICTED = "RESTRICTED",
|
|
PRIVATE = "PRIVATE",
|
|
}
|
|
|
|
export enum EventJoinOptions {
|
|
FREE = "FREE",
|
|
RESTRICTED = "RESTRICTED",
|
|
INVITE = "INVITE",
|
|
EXTERNAL = "EXTERNAL",
|
|
}
|
|
|
|
export enum EventVisibilityJoinOptions {
|
|
PUBLIC = "PUBLIC",
|
|
LINK = "LINK",
|
|
LIMITED = "LIMITED",
|
|
}
|
|
|
|
export enum LoginErrorCode {
|
|
NEED_TO_LOGIN = "need_to_login",
|
|
}
|
|
|
|
export enum LoginError {
|
|
USER_NOT_CONFIRMED = "User account not confirmed",
|
|
USER_DOES_NOT_EXIST = "No user with this email was found",
|
|
USER_EMAIL_PASSWORD_INVALID = "Impossible to authenticate, either your email or password are invalid.",
|
|
LOGIN_PROVIDER_ERROR = "Error with Login Provider",
|
|
LOGIN_PROVIDER_NOT_FOUND = "Login Provider not found",
|
|
USER_DISABLED = "This user has been disabled",
|
|
}
|
|
|
|
export enum ResetError {
|
|
USER_IMPOSSIBLE_TO_RESET = "This user can't reset their password",
|
|
}
|
|
|
|
export enum ParticipantRole {
|
|
NOT_APPROVED = "NOT_APPROVED",
|
|
NOT_CONFIRMED = "NOT_CONFIRMED",
|
|
REJECTED = "REJECTED",
|
|
PARTICIPANT = "PARTICIPANT",
|
|
MODERATOR = "MODERATOR",
|
|
ADMINISTRATOR = "ADMINISTRATOR",
|
|
CREATOR = "CREATOR",
|
|
}
|
|
|
|
export enum PostVisibility {
|
|
PUBLIC = "PUBLIC",
|
|
UNLISTED = "UNLISTED",
|
|
RESTRICTED = "RESTRICTED",
|
|
PRIVATE = "PRIVATE",
|
|
}
|
|
|
|
export enum ReportStatusEnum {
|
|
OPEN = "OPEN",
|
|
CLOSED = "CLOSED",
|
|
RESOLVED = "RESOLVED",
|
|
}
|
|
|
|
export enum ActionLogAction {
|
|
NOTE_CREATION = "NOTE_CREATION",
|
|
NOTE_DELETION = "NOTE_DELETION",
|
|
REPORT_UPDATE_CLOSED = "REPORT_UPDATE_CLOSED",
|
|
REPORT_UPDATE_OPENED = "REPORT_UPDATE_OPENED",
|
|
REPORT_UPDATE_RESOLVED = "REPORT_UPDATE_RESOLVED",
|
|
EVENT_DELETION = "EVENT_DELETION",
|
|
COMMENT_DELETION = "COMMENT_DELETION",
|
|
ACTOR_SUSPENSION = "ACTOR_SUSPENSION",
|
|
ACTOR_UNSUSPENSION = "ACTOR_UNSUSPENSION",
|
|
USER_DELETION = "USER_DELETION",
|
|
}
|
|
|
|
export enum SearchTabs {
|
|
EVENTS = 0,
|
|
GROUPS = 1,
|
|
}
|
|
|
|
export enum ContentType {
|
|
ALL = "ALL",
|
|
EVENTS = "EVENTS",
|
|
GROUPS = "GROUPS",
|
|
}
|
|
|
|
export enum ActorType {
|
|
PERSON = "PERSON",
|
|
APPLICATION = "APPLICATION",
|
|
GROUP = "GROUP",
|
|
ORGANISATION = "ORGANISATION",
|
|
SERVICE = "SERVICE",
|
|
}
|
|
|
|
export enum MemberRole {
|
|
NOT_APPROVED = "NOT_APPROVED",
|
|
INVITED = "INVITED",
|
|
MEMBER = "MEMBER",
|
|
MODERATOR = "MODERATOR",
|
|
ADMINISTRATOR = "ADMINISTRATOR",
|
|
CREATOR = "CREATOR",
|
|
REJECTED = "REJECTED",
|
|
}
|
|
|
|
export enum Openness {
|
|
INVITE_ONLY = "INVITE_ONLY",
|
|
MODERATED = "MODERATED",
|
|
OPEN = "OPEN",
|
|
}
|
|
|
|
export enum RoutingType {
|
|
OPENSTREETMAP = "OPENSTREETMAP",
|
|
GOOGLE_MAPS = "GOOGLE_MAPS",
|
|
}
|
|
|
|
export enum RoutingTransportationType {
|
|
FOOT = "FOOT",
|
|
BIKE = "BIKE",
|
|
TRANSIT = "TRANSIT",
|
|
CAR = "CAR",
|
|
}
|
|
|
|
export enum GroupVisibility {
|
|
PUBLIC = "PUBLIC",
|
|
UNLISTED = "UNLISTED",
|
|
PRIVATE = "PRIVATE",
|
|
}
|
|
|
|
export enum AddressSearchType {
|
|
ADMINISTRATIVE = "ADMINISTRATIVE",
|
|
}
|
|
export enum ActivityType {
|
|
EVENT = "EVENT",
|
|
POST = "POST",
|
|
MEMBER = "MEMBER",
|
|
RESOURCE = "RESOURCE",
|
|
DISCUSSION = "DISCUSSION",
|
|
GROUP = "GROUP",
|
|
}
|
|
|
|
export enum ActivityEventSubject {
|
|
EVENT_CREATED = "event_created",
|
|
EVENT_UPDATED = "event_updated",
|
|
EVENT_DELETED = "event_deleted",
|
|
}
|
|
|
|
export enum ActivityEventCommentSubject {
|
|
COMMENT_POSTED = "comment_posted",
|
|
}
|
|
|
|
export enum ActivityEventParticipantSubject {
|
|
EVENT_NEW_PARTICIPATION = "event_new_participation",
|
|
}
|
|
|
|
export enum ActivityPostSubject {
|
|
POST_CREATED = "post_created",
|
|
POST_UPDATED = "post_updated",
|
|
POST_DELETED = "post_deleted",
|
|
}
|
|
|
|
export enum ActivityMemberSubject {
|
|
MEMBER_REQUEST = "member_request",
|
|
MEMBER_INVITED = "member_invited",
|
|
MEMBER_ACCEPTED_INVITATION = "member_accepted_invitation",
|
|
MEMBER_REJECTED_INVITATION = "member_rejected_invitation",
|
|
MEMBER_ADDED = "member_added",
|
|
MEMBER_JOINED = "member_joined",
|
|
MEMBER_APPROVED = "member_approved",
|
|
MEMBER_UPDATED = "member_updated",
|
|
MEMBER_REMOVED = "member_removed",
|
|
MEMBER_QUIT = "member_quit",
|
|
}
|
|
|
|
export enum ActivityResourceSubject {
|
|
RESOURCE_CREATED = "resource_created",
|
|
RESOURCE_UPDATED = "resource_renamed",
|
|
RESOURCE_MOVED = "resource_moved",
|
|
RESOURCE_DELETED = "resource_deleted",
|
|
}
|
|
|
|
export enum ActivityDiscussionSubject {
|
|
DISCUSSION_CREATED = "discussion_created",
|
|
DISCUSSION_REPLIED = "discussion_replied",
|
|
DISCUSSION_RENAMED = "discussion_renamed",
|
|
DISCUSSION_ARCHIVED = "discussion_archived",
|
|
DISCUSSION_DELETED = "discussion_deleted",
|
|
}
|
|
|
|
export enum ActivityGroupSubject {
|
|
GROUP_CREATED = "group_created",
|
|
GROUP_UPDATED = "group_updated",
|
|
}
|
|
|
|
export enum EventSortField {
|
|
BEGINS_ON = "BEGINS_ON",
|
|
INSERTED_AT = "INSERTED_AT",
|
|
UPDATED_AT = "UPDATED_AT",
|
|
}
|
|
|
|
export enum SortDirection {
|
|
ASC = "ASC",
|
|
DESC = "DESC",
|
|
}
|
|
|
|
export enum EventMetadataType {
|
|
STRING = "STRING",
|
|
INTEGER = "INTEGER",
|
|
FLOAT = "FLOAT",
|
|
BOOLEAN = "BOOLEAN",
|
|
}
|
|
|
|
export enum EventMetadataKeyType {
|
|
PLAIN = "PLAIN",
|
|
URL = "URL",
|
|
CHOICE = "CHOICE",
|
|
HANDLE = "HANDLE",
|
|
}
|
|
|
|
export enum EventMetadataCategories {
|
|
ACCESSIBILITY = "ACCESSIBILITY",
|
|
LIVE = "LIVE",
|
|
REPLAY = "REPLAY",
|
|
SOCIAL = "SOCIAL",
|
|
TOOLS = "TOOLS",
|
|
DETAILS = "DETAILS",
|
|
BOOKING = "BOOKING",
|
|
VIDEO_CONFERENCE = "VIDEO_CONFERENCE",
|
|
}
|
|
|
|
export enum InstanceFilterFollowStatus {
|
|
ALL = "ALL",
|
|
FOLLOWING = "FOLLOWING",
|
|
FOLLOWED = "FOLLOWED",
|
|
}
|
|
|
|
export enum InstanceFollowStatus {
|
|
APPROVED = "APPROVED",
|
|
PENDING = "PENDING",
|
|
NONE = "NONE",
|
|
}
|
|
|
|
export enum SearchTargets {
|
|
INTERNAL = "INTERNAL",
|
|
GLOBAL = "GLOBAL",
|
|
}
|
|
|
|
export enum AntiSpamFeedback {
|
|
HAM = "HAM",
|
|
SPAM = "SPAM",
|
|
}
|