add consts

This commit is contained in:
syuilo 2021-11-11 22:49:16 +09:00
parent f08a840d7d
commit 43d9149c8a
4 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# 0.0.10
- add consts
# 0.0.9
- add list of api permission
- Update Note type

View file

@ -2046,6 +2046,9 @@ type FetchLike = (input: string, init?: {
json(): Promise<any>;
}>;
// @public (undocumented)
export const ffVisibility: readonly ["public", "followers", "private"];
// @public (undocumented)
type Following = {
id: ID;
@ -2177,6 +2180,9 @@ type MessagingMessage = {
groupId: UserGroup['id'] | null;
};
// @public (undocumented)
export const mutedNoteReasons: readonly ["word", "manual", "spam", "other"];
// @public (undocumented)
type Note = {
id: ID;
@ -2232,6 +2238,9 @@ type NoteReaction = {
type: string;
};
// @public (undocumented)
export const noteVisibilities: readonly ["public", "home", "followers", "specified"];
// @public (undocumented)
type Notification_2 = {
id: ID;
@ -2292,6 +2301,9 @@ type Notification_2 = {
icon?: string | null;
});
// @public (undocumented)
export const notificationTypes: readonly ["follow", "mention", "reply", "renote", "quote", "reaction", "pollVote", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app"];
// @public (undocumented)
type OriginType = 'combined' | 'local' | 'remote';

View file

@ -1,3 +1,11 @@
export const notificationTypes = ['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app'] as const;
export const noteVisibilities = ['public', 'home', 'followers', 'specified'] as const;
export const mutedNoteReasons = ['word', 'manual', 'spam', 'other'] as const;
export const ffVisibility = ['public', 'followers', 'private'] as const;
export const permissions = [
'read:account',
'write:account',

View file

@ -1,15 +1,20 @@
import { Endpoints } from './api.types';
import Stream from './streaming';
import { Acct } from './acct';
import { permissions } from './permissions';
import * as consts from './consts';
export {
Endpoints,
Stream,
Acct,
permissions,
};
export const permissions = consts.permissions;
export const notificationTypes = consts.notificationTypes;
export const noteVisibilities = consts.noteVisibilities;
export const mutedNoteReasons = consts.mutedNoteReasons;
export const ffVisibility = consts.ffVisibility;
// api extractor not supported yet
//export * as api from './api';
//export * as entities from './entities';