@openpeepshq/core 0.1.35 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/report.d.ts +1 -1
- package/dist/config/defaults/logs.d.ts +4 -0
- package/dist/config/defaults/logs.js +5 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/db/pg/filters/posts.js +1 -1
- package/dist/groups/finders.d.ts +2 -2
- package/dist/groups/helpers.d.ts +6 -6
- package/dist/groups/mapping.d.ts +4 -4
- package/dist/jams/helpers.d.ts +2 -2
- package/dist/jams/livekit.d.ts +2 -2
- package/dist/jams/mapping.d.ts +10 -10
- package/dist/jams/mutations.d.ts +2 -2
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.js +1 -0
- package/dist/log/retention.d.ts +9 -0
- package/dist/log/retention.js +83 -0
- package/dist/log/retentionJobs.d.ts +17 -0
- package/dist/log/retentionJobs.js +50 -0
- package/dist/media/index.js +87 -10
- package/dist/mediaAttachments/mapping.d.ts +1 -1
- package/dist/notifications/defaultNotifications/jamModerator/index.js +25 -16
- package/dist/notifications/defaultNotifications/jamModerator/recipients.d.ts +2 -0
- package/dist/notifications/defaultNotifications/jamModerator/recipients.js +5 -0
- package/dist/notifications/defaultNotifications/newGroupPost/index.js +3 -3
- package/dist/notifications/defaultNotifications/newGroupPost/recipients.d.ts +5 -0
- package/dist/notifications/defaultNotifications/newGroupPost/recipients.js +23 -0
- package/dist/notifications/eventIcsAttachment.d.ts +6 -0
- package/dist/notifications/eventIcsAttachment.js +32 -0
- package/dist/notifications/helpers.d.ts +11 -1
- package/dist/notifications/helpers.js +26 -0
- package/dist/notifications/jobs.js +6 -0
- package/dist/notifications/mutations.js +9 -1
- package/dist/posts/activity.d.ts +1 -1
- package/dist/posts/activity.js +1 -1
- package/dist/posts/eventAgenda.js +4 -2
- package/dist/posts/finders.d.ts +6 -6
- package/dist/posts/helpers/index.d.ts +26 -26
- package/dist/posts/mapping.d.ts +98 -98
- package/dist/posts/mutations.d.ts +13 -13
- package/dist/posts/mutations.js +2 -4
- package/dist/profileSettings/mapping.d.ts +1 -0
- package/dist/profiles/mapping.d.ts +10 -10
- package/dist/reports/mapping.d.ts +1 -1
- package/dist/stats/mapping.d.ts +6 -6
- package/package.json +3 -3
- package/LICENSE +0 -674
|
@@ -2,26 +2,35 @@ import { notificationAll, } from '@openpeepshq/common/types';
|
|
|
2
2
|
import { findProfile } from '@openpeepshq/core/profiles';
|
|
3
3
|
import { maybeCreateNotification } from '@openpeepshq/core/notifications';
|
|
4
4
|
import { profileName } from '@openpeepshq/common/lib';
|
|
5
|
+
import { hub } from '../../../events/index.js';
|
|
5
6
|
import { initI18nEmailContext } from '../../../i18n/index.js';
|
|
6
7
|
import { PUSH_INVALIDATE } from '../../pushInvalidation.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const jam = post.data?.type === 'event'
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { jamModeratorsToNotify } from './recipients.js';
|
|
9
|
+
const notifyModerators = async (post, alreadyInvited) => {
|
|
10
|
+
const jam = post.data?.type === 'event' ? post.data.jam : undefined;
|
|
11
|
+
const profileIds = jamModeratorsToNotify(jam?.moderators, post.profile.id, alreadyInvited);
|
|
12
|
+
for (const profileId of profileIds) {
|
|
13
|
+
const profile = await findProfile(profileId);
|
|
14
|
+
if (!profile)
|
|
15
|
+
continue;
|
|
16
|
+
await maybeCreateNotification(profile, {
|
|
17
|
+
type: 'jamModerator',
|
|
18
|
+
fromProfileId: post.profile.id,
|
|
19
|
+
postId: post.id,
|
|
20
|
+
});
|
|
12
21
|
}
|
|
13
|
-
if (jam.moderators)
|
|
14
|
-
for (const profileId of jam.moderators) {
|
|
15
|
-
const profile = await findProfile(profileId);
|
|
16
|
-
if (profile && post.profile.id !== profileId) {
|
|
17
|
-
await maybeCreateNotification(profile, {
|
|
18
|
-
type: 'jamModerator',
|
|
19
|
-
fromProfileId: post.profile.id,
|
|
20
|
-
postId: post.id,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
22
|
};
|
|
23
|
+
const eventHandler = async (eventData) => {
|
|
24
|
+
await notifyModerators(eventData, []);
|
|
25
|
+
};
|
|
26
|
+
/** Second arg is the moderator id list from before this save. */
|
|
27
|
+
const updatedHandler = async (postArg, previousArg) => {
|
|
28
|
+
const previous = Array.isArray(previousArg)
|
|
29
|
+
? previousArg.filter((id) => typeof id === 'string')
|
|
30
|
+
: [];
|
|
31
|
+
await notifyModerators(postArg, previous);
|
|
32
|
+
};
|
|
33
|
+
hub.once('postUpdated', updatedHandler);
|
|
25
34
|
const pushRenderer = async (notification) => {
|
|
26
35
|
const { t } = await initI18nEmailContext();
|
|
27
36
|
return {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Moderators who should get an invite: not the creator, and not already invited. */
|
|
2
|
+
export const jamModeratorsToNotify = (moderatorIds, creatorId, alreadyInvited = []) => {
|
|
3
|
+
const skip = new Set([creatorId, ...alreadyInvited]);
|
|
4
|
+
return [...new Set(moderatorIds ?? [])].filter((id) => id && !skip.has(id));
|
|
5
|
+
};
|
|
@@ -4,15 +4,15 @@ import { maybeCreateNotification } from '@openpeepshq/core/notifications';
|
|
|
4
4
|
import { getGroupAvatar, profileName } from '@openpeepshq/common/lib';
|
|
5
5
|
import { communityConfig } from '../../../config/index.js';
|
|
6
6
|
import { PUSH_INVALIDATE } from '../../pushInvalidation.js';
|
|
7
|
+
import { newGroupPostRecipients } from './recipients.js';
|
|
7
8
|
const eventHandler = async (data) => {
|
|
8
9
|
const post = data;
|
|
9
10
|
if (!post.group) {
|
|
10
11
|
return;
|
|
11
12
|
}
|
|
12
13
|
const group = post.group;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.filter((profile) => post.profile.id !== profile.id))) {
|
|
14
|
+
const members = (await listGroupMembers(group)).map((m) => m.profile);
|
|
15
|
+
for (const groupMember of newGroupPostRecipients(post, members)) {
|
|
16
16
|
await maybeCreateNotification(groupMember, {
|
|
17
17
|
type: 'newGroupPost',
|
|
18
18
|
fromProfileId: post.profile.id,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PostWithMeta } from '@openpeepshq/common/types';
|
|
2
|
+
/** Group members to notify. Skips the author and anyone already notified of the reply. */
|
|
3
|
+
export declare const newGroupPostRecipients: <T extends {
|
|
4
|
+
id: string;
|
|
5
|
+
}>(post: PostWithMeta, members: T[]) => T[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parent author already gets a reply notification for this post.
|
|
3
|
+
* Event replies and direct posts do not create one, so they still
|
|
4
|
+
* receive the group notification.
|
|
5
|
+
*/
|
|
6
|
+
const replyNotificationRecipientId = (post) => {
|
|
7
|
+
if (post.data?.type === 'event' || post.visibility === 'direct') {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
if (!post.inReplyToId) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const parentAuthorId = post.replyTo?.profile?.id ?? post.replyTo?.creatorId;
|
|
14
|
+
if (!parentAuthorId || parentAuthorId === post.profile.id) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
return parentAuthorId;
|
|
18
|
+
};
|
|
19
|
+
/** Group members to notify. Skips the author and anyone already notified of the reply. */
|
|
20
|
+
export const newGroupPostRecipients = (post, members) => {
|
|
21
|
+
const parentAuthorId = replyNotificationRecipientId(post);
|
|
22
|
+
return members.filter((member) => member.id !== post.profile.id && member.id !== parentAuthorId);
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EmailAttachment, ExpandedNotification } from '@openpeepshq/common/types';
|
|
2
|
+
/**
|
|
3
|
+
* Calendar file so a notification email about an event can be added to a
|
|
4
|
+
* calendar. Non-event notifications return undefined.
|
|
5
|
+
*/
|
|
6
|
+
export declare const eventIcsEmailAttachment: (notification: ExpandedNotification, rootUrl: string) => EmailAttachment | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { buildEventIcs } from '@openpeepshq/common/lib';
|
|
2
|
+
const isEventPost = (post) => post?.type === 'event' && post.data?.type === 'event';
|
|
3
|
+
/** The event this notification is about: the post itself, or the post it reposts. */
|
|
4
|
+
const eventPostOf = (notification) => {
|
|
5
|
+
const post = notification.post;
|
|
6
|
+
if (!post)
|
|
7
|
+
return undefined;
|
|
8
|
+
if (isEventPost(post))
|
|
9
|
+
return post;
|
|
10
|
+
if (isEventPost(post.repost))
|
|
11
|
+
return post.repost;
|
|
12
|
+
return undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Calendar file so a notification email about an event can be added to a
|
|
16
|
+
* calendar. Non-event notifications return undefined.
|
|
17
|
+
*/
|
|
18
|
+
export const eventIcsEmailAttachment = (notification, rootUrl) => {
|
|
19
|
+
const post = eventPostOf(notification);
|
|
20
|
+
if (!post)
|
|
21
|
+
return undefined;
|
|
22
|
+
const ics = buildEventIcs(post, {
|
|
23
|
+
postUrl: `${rootUrl}/posts/${post.id}`,
|
|
24
|
+
});
|
|
25
|
+
if (!ics)
|
|
26
|
+
return undefined;
|
|
27
|
+
return {
|
|
28
|
+
filename: 'event.ics',
|
|
29
|
+
content: ics,
|
|
30
|
+
contentType: 'text/calendar; method=PUBLISH; charset=utf-8',
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { NotificationData, ProfileWithMeta, ProfileNotificationSettings, ExpandedNotification, DbNotification, ProfileSettings } from '@openpeepshq/common/types';
|
|
1
|
+
import { NotificationData, ProfileWithMeta, ProfileNotificationSettings, ExpandedNotification, DbNotification, ProfileSettings, GroupNotificationLevel } from '@openpeepshq/common/types';
|
|
2
2
|
import type { Mapping } from '../db/pg/map';
|
|
3
3
|
export declare const baseListNotifications: (profile: ProfileWithMeta) => Mapping<NotificationData, DbNotification>;
|
|
4
4
|
export declare const notificationSettings: (profileSettings: ProfileSettings, type: NotificationData["type"]) => ProfileNotificationSettings;
|
|
5
|
+
export declare const groupNotificationLevelFor: (profileSettings: ProfileSettings | undefined, groupId?: string | null) => GroupNotificationLevel;
|
|
6
|
+
/**
|
|
7
|
+
* `mostRelevant` keeps posts from people the member follows. Membership
|
|
8
|
+
* changes are only included at `all` — there is no separate relevance rank.
|
|
9
|
+
*/
|
|
10
|
+
export declare const allowsGroupNotification: ({ level, type, followsAuthor, }: {
|
|
11
|
+
level: GroupNotificationLevel;
|
|
12
|
+
type: string;
|
|
13
|
+
followsAuthor: boolean;
|
|
14
|
+
}) => boolean;
|
|
5
15
|
export declare const expandNotification: (notification: DbNotification) => Promise<ExpandedNotification>;
|
|
6
16
|
export declare const unseenNotifications: (profile: ProfileWithMeta) => Promise<number>;
|
|
7
17
|
export declare const unreadNotifications: (profile: ProfileWithMeta) => Promise<number>;
|
|
@@ -11,6 +11,32 @@ export const baseListNotifications = (profile) => notificationsMapping.filter(no
|
|
|
11
11
|
export const notificationSettings = (profileSettings, type) => profileSettings?.notifications?.[type] ??
|
|
12
12
|
defaultNotificationTypes.find((t) => t.type === type)?.defaultSettings ??
|
|
13
13
|
notificationDefaults;
|
|
14
|
+
/** Group events a member can quiet without changing account-wide settings. */
|
|
15
|
+
const groupScopedNotificationTypes = [
|
|
16
|
+
'newGroupPost',
|
|
17
|
+
'groupMemberJoined',
|
|
18
|
+
'groupMemberLeft',
|
|
19
|
+
];
|
|
20
|
+
export const groupNotificationLevelFor = (profileSettings, groupId) => {
|
|
21
|
+
if (!groupId)
|
|
22
|
+
return 'all';
|
|
23
|
+
return profileSettings?.groupNotificationLevels?.[groupId] ?? 'all';
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* `mostRelevant` keeps posts from people the member follows. Membership
|
|
27
|
+
* changes are only included at `all` — there is no separate relevance rank.
|
|
28
|
+
*/
|
|
29
|
+
export const allowsGroupNotification = ({ level, type, followsAuthor, }) => {
|
|
30
|
+
if (!groupScopedNotificationTypes.includes(type)) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
if (level === 'off')
|
|
34
|
+
return false;
|
|
35
|
+
if (level === 'mostRelevant') {
|
|
36
|
+
return type === 'newGroupPost' && followsAuthor;
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
};
|
|
14
40
|
export const expandNotification = async (notification) => {
|
|
15
41
|
const intermediateNotification = {
|
|
16
42
|
...notification,
|
|
@@ -10,6 +10,8 @@ import { getNotificationStats } from './finders.js';
|
|
|
10
10
|
import { findProfileSettings } from '../profileSettings/index.js';
|
|
11
11
|
import { logger } from '../log/index.js';
|
|
12
12
|
import { publishSessionEvent } from '../session/index.js';
|
|
13
|
+
import { serverRootUrl } from '../server/index.js';
|
|
14
|
+
import { eventIcsEmailAttachment } from './eventIcsAttachment.js';
|
|
13
15
|
const log = logger('core:notifications:worker');
|
|
14
16
|
const [notificationQueue, notificationWorker] = queueAndWorker('process-notification', async (job) => {
|
|
15
17
|
const notification = job.data;
|
|
@@ -30,6 +32,9 @@ const [notificationQueue, notificationWorker] = queueAndWorker('process-notifica
|
|
|
30
32
|
const { push, email } = notificationSettings(profileSettings, notification.type);
|
|
31
33
|
const accounts = await findByProfile(profile);
|
|
32
34
|
const mailer = await emailService();
|
|
35
|
+
const eventAttachment = email
|
|
36
|
+
? eventIcsEmailAttachment(notification, await serverRootUrl())
|
|
37
|
+
: undefined;
|
|
33
38
|
const notificationStats = await getNotificationStats(profile);
|
|
34
39
|
await logStep(jobLog, log, `Resolved ${accounts.length} account(s) for profile ${profile.id}; ` +
|
|
35
40
|
`delivery channels: email=${email} push=${push}`);
|
|
@@ -47,6 +52,7 @@ const [notificationQueue, notificationWorker] = queueAndWorker('process-notifica
|
|
|
47
52
|
? { timeZone: profileSettings.timeZone }
|
|
48
53
|
: {}),
|
|
49
54
|
},
|
|
55
|
+
...(eventAttachment ? { attachments: [eventAttachment] } : {}),
|
|
50
56
|
});
|
|
51
57
|
await logStep(jobLog, log, `Queued email notification to ${account.email}`);
|
|
52
58
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { notificationsMapping } from './mapping.js';
|
|
2
2
|
import { allpeepDb } from '../db/index.js';
|
|
3
3
|
import { notificationFilters } from '../db/pg/filters/index.js';
|
|
4
|
-
import { baseListNotifications, expandNotification, notificationSettings, } from './helpers.js';
|
|
4
|
+
import { allowsGroupNotification, baseListNotifications, expandNotification, groupNotificationLevelFor, notificationSettings, } from './helpers.js';
|
|
5
5
|
import { hub } from '../events/index.js';
|
|
6
6
|
import { findProfile } from '../profiles/index.js';
|
|
7
7
|
import { isBlockedPair } from '@openpeepshq/common/lib';
|
|
@@ -34,6 +34,14 @@ export const maybeCreateNotification = async (profile, data) => {
|
|
|
34
34
|
log.error(`profileSettings ${profile.id} not found`);
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
+
const followsAuthor = (fullProfile.following ?? []).some((followed) => followed.id === data.fromProfileId);
|
|
38
|
+
if (!allowsGroupNotification({
|
|
39
|
+
level: groupNotificationLevelFor(profileSettings, data.groupId),
|
|
40
|
+
type,
|
|
41
|
+
followsAuthor,
|
|
42
|
+
})) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
37
45
|
const settings = notificationSettings(profileSettings, type);
|
|
38
46
|
if (settings.create) {
|
|
39
47
|
const notificationData = {
|
package/dist/posts/activity.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import type { PgDb } from '../db/pg/client';
|
|
|
5
5
|
export declare const findReplyRootId: (db: PgDb, postId: string) => Promise<string>;
|
|
6
6
|
/** Bump conversation ordering without changing `created_at` or `updated_at`. */
|
|
7
7
|
export declare const touchPostActivity: (db: PgDb, postId: string) => Promise<void>;
|
|
8
|
-
/** Replies
|
|
8
|
+
/** Replies on any descendant bump the original/root post. */
|
|
9
9
|
export declare const bumpConversationActivity: (db: PgDb, postId: string) => Promise<void>;
|
package/dist/posts/activity.js
CHANGED
|
@@ -27,7 +27,7 @@ export const touchPostActivity = async (db, postId) => {
|
|
|
27
27
|
WHERE id = ${postId}::uuid
|
|
28
28
|
`);
|
|
29
29
|
};
|
|
30
|
-
/** Replies
|
|
30
|
+
/** Replies on any descendant bump the original/root post. */
|
|
31
31
|
export const bumpConversationActivity = async (db, postId) => {
|
|
32
32
|
const rootId = await findReplyRootId(db, postId);
|
|
33
33
|
await touchPostActivity(db, rootId);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notInArray, and, asc, desc, eq,
|
|
1
|
+
import { notInArray, and, asc, desc, eq, isNotNull, isNull, lte, or, sql, } from 'drizzle-orm';
|
|
2
2
|
import { canReadPost } from './helpers/filters.js';
|
|
3
3
|
import { transformPost } from './helpers/index.js';
|
|
4
4
|
import { allpeepDb } from '../db/index.js';
|
|
@@ -15,7 +15,9 @@ const occurrenceTimeFilter = (window, now) => {
|
|
|
15
15
|
const start = eventOccurrences.start;
|
|
16
16
|
const end = eventOccurrences.end;
|
|
17
17
|
if (window === 'upcoming') {
|
|
18
|
-
|
|
18
|
+
// Still this occurrence until it ends. A missing end counts as one hour,
|
|
19
|
+
// same as the current and past windows.
|
|
20
|
+
return sql `COALESCE(${end}, ${start} + interval '1 hour') >= ${now}`;
|
|
19
21
|
}
|
|
20
22
|
if (window === 'current') {
|
|
21
23
|
// A missing end is treated as a one-hour event, not an infinite one.
|
package/dist/posts/finders.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
44
44
|
};
|
|
45
45
|
description?: string | undefined;
|
|
46
46
|
blurhash?: string | undefined;
|
|
47
|
-
status?: "failed" | "
|
|
47
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
48
48
|
error?: string | undefined;
|
|
49
49
|
}[] | undefined;
|
|
50
50
|
customEmojis?: {
|
|
@@ -81,7 +81,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
81
81
|
};
|
|
82
82
|
description?: string | undefined;
|
|
83
83
|
blurhash?: string | undefined;
|
|
84
|
-
status?: "failed" | "
|
|
84
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
85
85
|
error?: string | undefined;
|
|
86
86
|
}[] | undefined;
|
|
87
87
|
customEmojis?: {
|
|
@@ -119,7 +119,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
119
119
|
};
|
|
120
120
|
description?: string | undefined;
|
|
121
121
|
blurhash?: string | undefined;
|
|
122
|
-
status?: "failed" | "
|
|
122
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
123
123
|
error?: string | undefined;
|
|
124
124
|
}[] | undefined;
|
|
125
125
|
customEmojis?: {
|
|
@@ -201,7 +201,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
201
201
|
};
|
|
202
202
|
description?: string | undefined;
|
|
203
203
|
blurhash?: string | undefined;
|
|
204
|
-
status?: "failed" | "
|
|
204
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
205
205
|
error?: string | undefined;
|
|
206
206
|
}[] | undefined;
|
|
207
207
|
customEmojis?: {
|
|
@@ -217,7 +217,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
217
217
|
} | {
|
|
218
218
|
type: "resource";
|
|
219
219
|
title: string;
|
|
220
|
-
resourceKind: "
|
|
220
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
221
221
|
content?: string | undefined;
|
|
222
222
|
sensitive?: boolean | undefined;
|
|
223
223
|
spoilerText?: string | undefined;
|
|
@@ -238,7 +238,7 @@ export declare const baseEventsFeed: (profile?: ProfileWithMeta) => Mapping<{
|
|
|
238
238
|
};
|
|
239
239
|
description?: string | undefined;
|
|
240
240
|
blurhash?: string | undefined;
|
|
241
|
-
status?: "failed" | "
|
|
241
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
242
242
|
error?: string | undefined;
|
|
243
243
|
}[] | undefined;
|
|
244
244
|
customEmojis?: {
|
|
@@ -35,7 +35,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
35
35
|
};
|
|
36
36
|
description?: string | undefined;
|
|
37
37
|
blurhash?: string | undefined;
|
|
38
|
-
status?: "failed" | "
|
|
38
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
39
39
|
error?: string | undefined;
|
|
40
40
|
}[] | undefined;
|
|
41
41
|
customEmojis?: {
|
|
@@ -72,7 +72,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
72
72
|
};
|
|
73
73
|
description?: string | undefined;
|
|
74
74
|
blurhash?: string | undefined;
|
|
75
|
-
status?: "failed" | "
|
|
75
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
76
76
|
error?: string | undefined;
|
|
77
77
|
}[] | undefined;
|
|
78
78
|
customEmojis?: {
|
|
@@ -110,7 +110,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
110
110
|
};
|
|
111
111
|
description?: string | undefined;
|
|
112
112
|
blurhash?: string | undefined;
|
|
113
|
-
status?: "failed" | "
|
|
113
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
114
114
|
error?: string | undefined;
|
|
115
115
|
}[] | undefined;
|
|
116
116
|
customEmojis?: {
|
|
@@ -192,7 +192,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
192
192
|
};
|
|
193
193
|
description?: string | undefined;
|
|
194
194
|
blurhash?: string | undefined;
|
|
195
|
-
status?: "failed" | "
|
|
195
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
196
196
|
error?: string | undefined;
|
|
197
197
|
}[] | undefined;
|
|
198
198
|
customEmojis?: {
|
|
@@ -208,7 +208,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
208
208
|
} | {
|
|
209
209
|
type: "resource";
|
|
210
210
|
title: string;
|
|
211
|
-
resourceKind: "
|
|
211
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
212
212
|
content?: string | undefined;
|
|
213
213
|
sensitive?: boolean | undefined;
|
|
214
214
|
spoilerText?: string | undefined;
|
|
@@ -229,7 +229,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
229
229
|
};
|
|
230
230
|
description?: string | undefined;
|
|
231
231
|
blurhash?: string | undefined;
|
|
232
|
-
status?: "failed" | "
|
|
232
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
233
233
|
error?: string | undefined;
|
|
234
234
|
}[] | undefined;
|
|
235
235
|
customEmojis?: {
|
|
@@ -268,7 +268,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
268
268
|
};
|
|
269
269
|
description?: string | undefined;
|
|
270
270
|
blurhash?: string | undefined;
|
|
271
|
-
status?: "failed" | "
|
|
271
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
272
272
|
error?: string | undefined;
|
|
273
273
|
}[] | undefined;
|
|
274
274
|
customEmojis?: {
|
|
@@ -305,7 +305,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
305
305
|
};
|
|
306
306
|
description?: string | undefined;
|
|
307
307
|
blurhash?: string | undefined;
|
|
308
|
-
status?: "failed" | "
|
|
308
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
309
309
|
error?: string | undefined;
|
|
310
310
|
}[] | undefined;
|
|
311
311
|
customEmojis?: {
|
|
@@ -343,7 +343,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
343
343
|
};
|
|
344
344
|
description?: string | undefined;
|
|
345
345
|
blurhash?: string | undefined;
|
|
346
|
-
status?: "failed" | "
|
|
346
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
347
347
|
error?: string | undefined;
|
|
348
348
|
}[] | undefined;
|
|
349
349
|
customEmojis?: {
|
|
@@ -425,7 +425,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
425
425
|
};
|
|
426
426
|
description?: string | undefined;
|
|
427
427
|
blurhash?: string | undefined;
|
|
428
|
-
status?: "failed" | "
|
|
428
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
429
429
|
error?: string | undefined;
|
|
430
430
|
}[] | undefined;
|
|
431
431
|
customEmojis?: {
|
|
@@ -441,7 +441,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
441
441
|
} | {
|
|
442
442
|
type: "resource";
|
|
443
443
|
title: string;
|
|
444
|
-
resourceKind: "
|
|
444
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
445
445
|
content?: string | undefined;
|
|
446
446
|
sensitive?: boolean | undefined;
|
|
447
447
|
spoilerText?: string | undefined;
|
|
@@ -462,7 +462,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
462
462
|
};
|
|
463
463
|
description?: string | undefined;
|
|
464
464
|
blurhash?: string | undefined;
|
|
465
|
-
status?: "failed" | "
|
|
465
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
466
466
|
error?: string | undefined;
|
|
467
467
|
}[] | undefined;
|
|
468
468
|
customEmojis?: {
|
|
@@ -488,7 +488,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
488
488
|
} | {
|
|
489
489
|
type: "rsvp";
|
|
490
490
|
data: {
|
|
491
|
-
response: "
|
|
491
|
+
response: "no" | "yes" | "tentative" | "removed";
|
|
492
492
|
recurrenceId?: string | undefined;
|
|
493
493
|
};
|
|
494
494
|
} | {
|
|
@@ -529,7 +529,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
529
529
|
};
|
|
530
530
|
description?: string | undefined;
|
|
531
531
|
blurhash?: string | undefined;
|
|
532
|
-
status?: "failed" | "
|
|
532
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
533
533
|
error?: string | undefined;
|
|
534
534
|
}[] | undefined;
|
|
535
535
|
customEmojis?: {
|
|
@@ -566,7 +566,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
566
566
|
};
|
|
567
567
|
description?: string | undefined;
|
|
568
568
|
blurhash?: string | undefined;
|
|
569
|
-
status?: "failed" | "
|
|
569
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
570
570
|
error?: string | undefined;
|
|
571
571
|
}[] | undefined;
|
|
572
572
|
customEmojis?: {
|
|
@@ -604,7 +604,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
604
604
|
};
|
|
605
605
|
description?: string | undefined;
|
|
606
606
|
blurhash?: string | undefined;
|
|
607
|
-
status?: "failed" | "
|
|
607
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
608
608
|
error?: string | undefined;
|
|
609
609
|
}[] | undefined;
|
|
610
610
|
customEmojis?: {
|
|
@@ -686,7 +686,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
686
686
|
};
|
|
687
687
|
description?: string | undefined;
|
|
688
688
|
blurhash?: string | undefined;
|
|
689
|
-
status?: "failed" | "
|
|
689
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
690
690
|
error?: string | undefined;
|
|
691
691
|
}[] | undefined;
|
|
692
692
|
customEmojis?: {
|
|
@@ -702,7 +702,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
702
702
|
} | {
|
|
703
703
|
type: "resource";
|
|
704
704
|
title: string;
|
|
705
|
-
resourceKind: "
|
|
705
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
706
706
|
content?: string | undefined;
|
|
707
707
|
sensitive?: boolean | undefined;
|
|
708
708
|
spoilerText?: string | undefined;
|
|
@@ -723,7 +723,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
723
723
|
};
|
|
724
724
|
description?: string | undefined;
|
|
725
725
|
blurhash?: string | undefined;
|
|
726
|
-
status?: "failed" | "
|
|
726
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
727
727
|
error?: string | undefined;
|
|
728
728
|
}[] | undefined;
|
|
729
729
|
customEmojis?: {
|
|
@@ -762,7 +762,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
762
762
|
};
|
|
763
763
|
description?: string | undefined;
|
|
764
764
|
blurhash?: string | undefined;
|
|
765
|
-
status?: "failed" | "
|
|
765
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
766
766
|
error?: string | undefined;
|
|
767
767
|
}[] | undefined;
|
|
768
768
|
customEmojis?: {
|
|
@@ -799,7 +799,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
799
799
|
};
|
|
800
800
|
description?: string | undefined;
|
|
801
801
|
blurhash?: string | undefined;
|
|
802
|
-
status?: "failed" | "
|
|
802
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
803
803
|
error?: string | undefined;
|
|
804
804
|
}[] | undefined;
|
|
805
805
|
customEmojis?: {
|
|
@@ -837,7 +837,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
837
837
|
};
|
|
838
838
|
description?: string | undefined;
|
|
839
839
|
blurhash?: string | undefined;
|
|
840
|
-
status?: "failed" | "
|
|
840
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
841
841
|
error?: string | undefined;
|
|
842
842
|
}[] | undefined;
|
|
843
843
|
customEmojis?: {
|
|
@@ -919,7 +919,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
919
919
|
};
|
|
920
920
|
description?: string | undefined;
|
|
921
921
|
blurhash?: string | undefined;
|
|
922
|
-
status?: "failed" | "
|
|
922
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
923
923
|
error?: string | undefined;
|
|
924
924
|
}[] | undefined;
|
|
925
925
|
customEmojis?: {
|
|
@@ -935,7 +935,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
935
935
|
} | {
|
|
936
936
|
type: "resource";
|
|
937
937
|
title: string;
|
|
938
|
-
resourceKind: "
|
|
938
|
+
resourceKind: "file" | "link" | "video" | "gallery" | "audio";
|
|
939
939
|
content?: string | undefined;
|
|
940
940
|
sensitive?: boolean | undefined;
|
|
941
941
|
spoilerText?: string | undefined;
|
|
@@ -956,7 +956,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
956
956
|
};
|
|
957
957
|
description?: string | undefined;
|
|
958
958
|
blurhash?: string | undefined;
|
|
959
|
-
status?: "failed" | "
|
|
959
|
+
status?: "failed" | "ready" | "processing" | undefined;
|
|
960
960
|
error?: string | undefined;
|
|
961
961
|
}[] | undefined;
|
|
962
962
|
customEmojis?: {
|
|
@@ -982,7 +982,7 @@ export declare const entryConnector: (db: import("../../db").PgDb, from: Profile
|
|
|
982
982
|
} | {
|
|
983
983
|
type: "rsvp";
|
|
984
984
|
data: {
|
|
985
|
-
response: "
|
|
985
|
+
response: "no" | "yes" | "tentative" | "removed";
|
|
986
986
|
recurrenceId?: string | undefined;
|
|
987
987
|
};
|
|
988
988
|
} | {
|