@openpeepshq/common 0.1.44 → 0.1.46
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/lib/adminSections.d.ts +4 -0
- package/dist/lib/adminSections.js +5 -0
- package/dist/lib/capabilitiesHelpers.d.ts +9 -7
- package/dist/lib/capabilitiesHelpers.js +21 -13
- package/dist/lib/eventIcs.d.ts +17 -0
- package/dist/lib/eventIcs.js +138 -2
- package/dist/lib/eventRecurrence.d.ts +32 -0
- package/dist/lib/eventRecurrence.js +284 -0
- package/dist/lib/eventTime.d.ts +29 -0
- package/dist/lib/eventTime.js +143 -0
- package/dist/lib/federationHosts.d.ts +3 -0
- package/dist/lib/federationHosts.js +17 -0
- package/dist/lib/feedCursor.d.ts +14 -0
- package/dist/lib/feedCursor.js +22 -0
- package/dist/lib/feedFormat.d.ts +12 -0
- package/dist/lib/feedFormat.js +14 -0
- package/dist/lib/groupHelpers.d.ts +63 -41
- package/dist/lib/groupHelpers.js +155 -45
- package/dist/lib/groupTemplateHelpers.d.ts +16 -0
- package/dist/lib/groupTemplateHelpers.js +51 -0
- package/dist/lib/index.d.ts +11 -0
- package/dist/lib/index.js +11 -0
- package/dist/lib/jamHelpers.d.ts +38 -3
- package/dist/lib/jamHelpers.js +93 -8
- package/dist/lib/legacyThemeRoot.d.ts +3 -0
- package/dist/lib/legacyThemeRoot.js +10 -0
- package/dist/lib/markdownHelpers.d.ts +22 -0
- package/dist/lib/markdownHelpers.js +73 -3
- package/dist/lib/postHelpers.d.ts +164 -9
- package/dist/lib/postHelpers.js +353 -11
- package/dist/lib/profileHelpers.d.ts +11 -0
- package/dist/lib/profileHelpers.js +31 -0
- package/dist/lib/pushHelpers.d.ts +3 -1
- package/dist/lib/pushHelpers.js +13 -0
- package/dist/lib/reactions.d.ts +17 -0
- package/dist/lib/reactions.js +37 -0
- package/dist/lib/scopeHelpers.d.ts +31 -2
- package/dist/lib/scopeHelpers.js +37 -3
- package/dist/lib/ssoLoginUrl.d.ts +24 -0
- package/dist/lib/ssoLoginUrl.js +75 -0
- package/dist/lib/ssoProviders.d.ts +72 -0
- package/dist/lib/ssoProviders.js +370 -0
- package/dist/lib/text.d.ts +2 -0
- package/dist/lib/text.js +2 -0
- package/dist/lib/timeZone.d.ts +9 -0
- package/dist/lib/timeZone.js +44 -0
- package/dist/lib/tokenHelpers.d.ts +5 -0
- package/dist/lib/tokenHelpers.js +19 -0
- package/dist/types/analytics.d.ts +20 -0
- package/dist/types/analytics.js +4 -0
- package/dist/types/api.d.ts +42669 -10689
- package/dist/types/api.js +94 -16
- package/dist/types/auth.d.ts +22 -13
- package/dist/types/capabilities.d.ts +26 -5
- package/dist/types/capabilities.js +95 -1
- package/dist/types/config.d.ts +93 -6
- package/dist/types/config.js +56 -5
- package/dist/types/db.d.ts +1911 -248
- package/dist/types/db.js +17 -3
- package/dist/types/export.d.ts +120 -0
- package/dist/types/export.js +7 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/internal.d.ts +8313 -2675
- package/dist/types/internal.js +16 -1
- package/dist/types/models.d.ts +343 -16
- package/dist/types/models.js +98 -7
- package/dist/types/notifications.d.ts +1 -0
- package/dist/types/plugins.d.ts +43 -1
- package/dist/types/plugins.js +75 -1
- package/dist/types/roleDefaults.d.ts +31 -0
- package/dist/types/roleDefaults.js +110 -0
- package/dist/types/stats.d.ts +54359 -4718
- package/dist/types/stats.js +30 -0
- package/dist/types/utils.d.ts +2 -0
- package/dist/types/utils.js +1 -3
- package/package.json +1 -1
package/dist/types/internal.js
CHANGED
|
@@ -9,7 +9,7 @@ export const groupWithMetaSchema = groupDataSchema.extend({
|
|
|
9
9
|
});
|
|
10
10
|
export const adminGroupSchema = groupWithMetaSchema.extend({
|
|
11
11
|
postsCount: z.number(),
|
|
12
|
-
|
|
12
|
+
owners: profileSchema.array(),
|
|
13
13
|
});
|
|
14
14
|
export const membershipSchema = groupRoleSchema.extend({
|
|
15
15
|
group: modelSchema(groupWithMetaSchema),
|
|
@@ -23,6 +23,9 @@ export const profileWithMetaSchema = profileDataSchema.extend({
|
|
|
23
23
|
controllers: accountSchema.array(),
|
|
24
24
|
memberships: membershipSchema.array(),
|
|
25
25
|
profileStats: profileStatsSchema,
|
|
26
|
+
blockingIds: z.array(z.string()).default([]),
|
|
27
|
+
blockedByIds: z.array(z.string()).default([]),
|
|
28
|
+
followedHashtags: hashtagSchema.array().default([]),
|
|
26
29
|
});
|
|
27
30
|
export const memberExportStatsSchema = z.object({
|
|
28
31
|
postsCount: z.number(),
|
|
@@ -39,6 +42,10 @@ export const mentionWithProfileSchema = mentionDataSchema.extend({
|
|
|
39
42
|
const reactionWithProfileSchema = reactionDataSchema.extend({
|
|
40
43
|
profile: profileWithMetaSchema,
|
|
41
44
|
});
|
|
45
|
+
const repostWithProfileSchema = z.object({
|
|
46
|
+
profile: profileWithMetaSchema,
|
|
47
|
+
createdAt: z.string().datetime(),
|
|
48
|
+
});
|
|
42
49
|
const _answerWithProfileSchema = answerSchema.extend({
|
|
43
50
|
profile: profileWithMetaSchema,
|
|
44
51
|
});
|
|
@@ -90,11 +97,16 @@ export const replyPostSchema = z.object({
|
|
|
90
97
|
visibility: visibilityTypeSchema,
|
|
91
98
|
group: groupWithMetaSchema.optional().nullable(),
|
|
92
99
|
audience: z.array(profileWithMetaSchema).optional().nullable(),
|
|
100
|
+
seen: z.boolean().optional(),
|
|
101
|
+
inReplyToId: z.string().optional().nullable(),
|
|
102
|
+
hidden: z.boolean().optional(),
|
|
93
103
|
});
|
|
94
104
|
const basePostSchema = replyPostSchema.extend({
|
|
95
105
|
repostCount: z.number(),
|
|
96
106
|
replyCount: z.number(),
|
|
97
107
|
reactions: reactionWithProfileSchema.array(),
|
|
108
|
+
/** Capped lean list of who reposted (most recent). Count stays in repostCount. */
|
|
109
|
+
reposts: repostWithProfileSchema.array(),
|
|
98
110
|
application: applicationDataSchema.optional(),
|
|
99
111
|
mentions: z.array(mentionWithProfileSchema),
|
|
100
112
|
tags: z.array(hashtagSchema),
|
|
@@ -104,6 +116,9 @@ const basePostSchema = replyPostSchema.extend({
|
|
|
104
116
|
accountInteractions: accountInteractionsSchema.optional(),
|
|
105
117
|
rsvps: rsvpWithMetaSchema.array(),
|
|
106
118
|
seen: z.boolean().optional(),
|
|
119
|
+
occurrenceRecurrenceId: z.string().datetime().optional(),
|
|
120
|
+
occurrenceStart: z.string().datetime().optional(),
|
|
121
|
+
occurrenceEnd: z.string().datetime().optional(),
|
|
107
122
|
});
|
|
108
123
|
const withReplyPostSchema = basePostSchema.extend({
|
|
109
124
|
inReplyToId: z.string().optional().nullable(),
|