founder-schema 0.17.0 → 0.19.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/README.md +186 -17
- package/dist/access/access.d.ts +1 -1
- package/dist/access/access.d.ts.map +1 -1
- package/dist/access/access.js +4 -1
- package/dist/access/access.js.map +1 -1
- package/dist/access/permissions.d.ts +27 -29
- package/dist/access/permissions.d.ts.map +1 -1
- package/dist/access/permissions.js +39 -3
- package/dist/access/permissions.js.map +1 -1
- package/dist/core/common.d.ts +54 -23
- package/dist/core/common.d.ts.map +1 -1
- package/dist/core/common.js +49 -24
- package/dist/core/common.js.map +1 -1
- package/dist/core/errors.d.ts +7 -5
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +17 -11
- package/dist/core/errors.js.map +1 -1
- package/dist/core/limits.d.ts +73 -17
- package/dist/core/limits.d.ts.map +1 -1
- package/dist/core/limits.js +77 -22
- package/dist/core/limits.js.map +1 -1
- package/dist/core/money.d.ts +33 -0
- package/dist/core/money.d.ts.map +1 -0
- package/dist/core/money.js +36 -0
- package/dist/core/money.js.map +1 -0
- package/dist/core/responses.d.ts +14 -4
- package/dist/core/responses.d.ts.map +1 -1
- package/dist/core/responses.js.map +1 -1
- package/dist/core/validation.d.ts +19 -2
- package/dist/core/validation.d.ts.map +1 -1
- package/dist/core/validation.js +19 -2
- package/dist/core/validation.js.map +1 -1
- package/dist/domains/billing/billing.d.ts +61 -8
- package/dist/domains/billing/billing.d.ts.map +1 -1
- package/dist/domains/billing/billing.js +58 -22
- package/dist/domains/billing/billing.js.map +1 -1
- package/dist/domains/billing/gst.d.ts.map +1 -1
- package/dist/domains/billing/gst.js +4 -3
- package/dist/domains/billing/gst.js.map +1 -1
- package/dist/domains/chat/chat.d.ts +0 -21
- package/dist/domains/chat/chat.d.ts.map +1 -1
- package/dist/domains/chat/chat.js +0 -20
- package/dist/domains/chat/chat.js.map +1 -1
- package/dist/domains/communities/communities.d.ts +30 -12
- package/dist/domains/communities/communities.d.ts.map +1 -1
- package/dist/domains/communities/communities.js +43 -15
- package/dist/domains/communities/communities.js.map +1 -1
- package/dist/domains/contributions/contributions.d.ts +1 -1
- package/dist/domains/contributions/contributions.js +1 -1
- package/dist/domains/contributions/contributions.js.map +1 -1
- package/dist/domains/dashboard/dashboard.d.ts +3 -1
- package/dist/domains/dashboard/dashboard.d.ts.map +1 -1
- package/dist/domains/dashboard/dashboard.js +23 -7
- package/dist/domains/dashboard/dashboard.js.map +1 -1
- package/dist/domains/discover/discover.d.ts +8 -8
- package/dist/domains/feed/feed.d.ts +55 -153
- package/dist/domains/feed/feed.d.ts.map +1 -1
- package/dist/domains/feed/feed.js +53 -58
- package/dist/domains/feed/feed.js.map +1 -1
- package/dist/domains/location/areas.d.ts +331 -0
- package/dist/domains/location/areas.d.ts.map +1 -0
- package/dist/domains/location/areas.js +238 -0
- package/dist/domains/location/areas.js.map +1 -0
- package/dist/domains/location/india.d.ts +41 -123
- package/dist/domains/location/india.d.ts.map +1 -1
- package/dist/domains/location/india.js +121 -59
- package/dist/domains/location/india.js.map +1 -1
- package/dist/domains/members/members.d.ts +2 -2
- package/dist/domains/membership/membership.d.ts +26 -0
- package/dist/domains/membership/membership.d.ts.map +1 -1
- package/dist/domains/membership/membership.js +55 -1
- package/dist/domains/membership/membership.js.map +1 -1
- package/dist/domains/moderation/moderation.d.ts +2 -2
- package/dist/domains/moderation/moderation.js +3 -3
- package/dist/domains/moderation/moderation.js.map +1 -1
- package/dist/domains/notifications/notifications.d.ts +1 -10
- package/dist/domains/notifications/notifications.d.ts.map +1 -1
- package/dist/domains/notifications/notifications.js +2 -3
- package/dist/domains/notifications/notifications.js.map +1 -1
- package/dist/domains/onboarding/onboarding-answers.d.ts +42 -14
- package/dist/domains/onboarding/onboarding-answers.d.ts.map +1 -1
- package/dist/domains/onboarding/onboarding-answers.js +49 -33
- package/dist/domains/onboarding/onboarding-answers.js.map +1 -1
- package/dist/domains/onboarding/onboarding.d.ts +332 -138
- package/dist/domains/onboarding/onboarding.d.ts.map +1 -1
- package/dist/domains/onboarding/onboarding.js +47 -59
- package/dist/domains/onboarding/onboarding.js.map +1 -1
- package/dist/domains/products/products.d.ts +43 -8
- package/dist/domains/products/products.d.ts.map +1 -1
- package/dist/domains/products/products.js +57 -11
- package/dist/domains/products/products.js.map +1 -1
- package/dist/domains/profile/founder-profile.d.ts +123 -143
- package/dist/domains/profile/founder-profile.d.ts.map +1 -1
- package/dist/domains/profile/founder-profile.js +77 -35
- package/dist/domains/profile/founder-profile.js.map +1 -1
- package/dist/domains/profile/my-profile.d.ts +3 -3
- package/dist/domains/reviews/reviews.d.ts +1 -1
- package/dist/domains/reviews/reviews.d.ts.map +1 -1
- package/dist/domains/reviews/reviews.js +2 -2
- package/dist/domains/reviews/reviews.js.map +1 -1
- package/dist/domains/support/support.d.ts +22 -3
- package/dist/domains/support/support.d.ts.map +1 -1
- package/dist/domains/support/support.js +19 -5
- package/dist/domains/support/support.js.map +1 -1
- package/dist/domains/team/team.d.ts.map +1 -1
- package/dist/domains/team/team.js +3 -6
- package/dist/domains/team/team.js.map +1 -1
- package/dist/domains/uploads/uploads.d.ts +7 -22
- package/dist/domains/uploads/uploads.d.ts.map +1 -1
- package/dist/domains/uploads/uploads.js +7 -21
- package/dist/domains/uploads/uploads.js.map +1 -1
- package/dist/env.d.ts +26 -13
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +58 -23
- package/dist/env.js.map +1 -1
- package/dist/index.d.ts +19 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* screen can be glanced at over a shoulder. Each block answers one question:
|
|
8
8
|
* is the community growing, is it talking, is anything waiting on staff.
|
|
9
9
|
*
|
|
10
|
-
* "Last 7 days" is the
|
|
10
|
+
* "Last 7 days" is the `DASHBOARD_RECENT_DAYS` days up to `generatedAt`, by the
|
|
11
|
+
* server's clock (the field names say 7: changing the constant renames them).
|
|
11
12
|
*
|
|
12
13
|
* @module founder-schema/domains/dashboard
|
|
13
14
|
*/
|
|
@@ -32,28 +33,43 @@ export const dashboardSchema = z.object({
|
|
|
32
33
|
moderation: z.object({
|
|
33
34
|
/** Reports nobody has decided on yet. */
|
|
34
35
|
openReports: count,
|
|
35
|
-
/**
|
|
36
|
+
/** The things those open reports are about: posts, polls, comments, products, reviews. */
|
|
36
37
|
reportedItems: count,
|
|
37
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Posts, polls, comments, products and reviews hidden by STAFF, not yet
|
|
40
|
+
* restored or removed (0.18.0: a community's own moderators hiding
|
|
41
|
+
* something in their community is theirs, and no longer counted here).
|
|
42
|
+
*/
|
|
38
43
|
hiddenItems: count,
|
|
39
44
|
}),
|
|
40
45
|
support: z.object({
|
|
41
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Tickets waiting on SUPPORT (status `open`), the same tickets the queue's
|
|
48
|
+
* Open filter lists (0.18.0: it counted the ones waiting on the member too,
|
|
49
|
+
* so the number never matched the list it opens).
|
|
50
|
+
*/
|
|
42
51
|
openTickets: count,
|
|
43
|
-
/**
|
|
52
|
+
/** Tickets waiting on the MEMBER (status `waiting`, 0.18.0). */
|
|
53
|
+
waitingTickets: count,
|
|
54
|
+
/** Of the open ones, those no agent has picked up. */
|
|
44
55
|
unassignedTickets: count,
|
|
45
56
|
}),
|
|
46
57
|
/** Memberships, plans and money (0.12.0). */
|
|
47
58
|
billing: z.object({
|
|
48
59
|
/** Accounts holding a membership, of any kind. Staff take part without one and are not counted. */
|
|
49
60
|
memberships: count,
|
|
50
|
-
/** Of those, founding (the first-100 coupon). */
|
|
61
|
+
/** Of those, founding members (#1 to #100: the launch waitlist since 0.14.0, the first-100 coupon before). */
|
|
51
62
|
founding: count,
|
|
52
63
|
/** Accounts on Premium or Business now. */
|
|
53
64
|
onPlan: count,
|
|
54
65
|
/** Payments captured in the window, refunded ones included. */
|
|
55
66
|
paymentsLast7Days: count,
|
|
56
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* What was TAKEN, in paise, GST included, less what was refunded, in
|
|
69
|
+
* Founder Circle or in the Razorpay dashboard (0.18.0: the same
|
|
70
|
+
* paid-less-refunded the payments screens show; it summed the list price
|
|
71
|
+
* and missed dashboard refunds).
|
|
72
|
+
*/
|
|
57
73
|
revenueLast7Days: count,
|
|
58
74
|
/** Payments a person must act on, at any age (`staffPaymentSummarySchema.needsAction`). */
|
|
59
75
|
paymentsNeedingAction: count,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/domains/dashboard/dashboard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/domains/dashboard/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,8DAA8D;QAC9D,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,KAAK;QACtB,kEAAkE;QAClE,eAAe,EAAE,KAAK;QACtB,SAAS,EAAE,KAAK;KACjB,CAAC;IACF,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,KAAK;QACrB,yFAAyF;QACzF,iBAAiB,EAAE,KAAK;KACzB,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;QACnB,yCAAyC;QACzC,WAAW,EAAE,KAAK;QAClB,0FAA0F;QAC1F,aAAa,EAAE,KAAK;QACpB;;;;WAIG;QACH,WAAW,EAAE,KAAK;KACnB,CAAC;IACF,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB;;;;WAIG;QACH,WAAW,EAAE,KAAK;QAClB,gEAAgE;QAChE,cAAc,EAAE,KAAK;QACrB,sDAAsD;QACtD,iBAAiB,EAAE,KAAK;KACzB,CAAC;IACF,6CAA6C;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,mGAAmG;QACnG,WAAW,EAAE,KAAK;QAClB,8GAA8G;QAC9G,QAAQ,EAAE,KAAK;QACf,2CAA2C;QAC3C,MAAM,EAAE,KAAK;QACb,+DAA+D;QAC/D,iBAAiB,EAAE,KAAK;QACxB;;;;;WAKG;QACH,gBAAgB,EAAE,KAAK;QACvB,2FAA2F;QAC3F,qBAAqB,EAAE,KAAK;KAC7B,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,8CAA8C;QAC9C,KAAK,EAAE,KAAK;QACZ;;;;WAIG;QACH,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,KAAK,CAAC;KAC5C,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC","sourcesContent":["/**\n * founder-schema: the staff Overview\n *\n * GET /api/v1/dashboard the numbers a superadmin or manager opens the day with\n *\n * Counts only, computed by the server when asked: no member's data, so the\n * screen can be glanced at over a shoulder. Each block answers one question:\n * is the community growing, is it talking, is anything waiting on staff.\n *\n * \"Last 7 days\" is the `DASHBOARD_RECENT_DAYS` days up to `generatedAt`, by the\n * server's clock (the field names say 7: changing the constant renames them).\n *\n * @module founder-schema/domains/dashboard\n */\n\nimport { z } from 'zod';\nimport { platformRoleSchema } from '../../access/roles.js';\n\nconst count = z.number().int().min(0);\n\nexport const dashboardSchema = z.object({\n members: z.object({\n /** Accounts that are not deleted, suspended ones included. */\n total: count,\n joinedLast7Days: count,\n /** Signed in and used the product at least once in the window. */\n activeLast7Days: count,\n suspended: count,\n }),\n content: z.object({\n postsLast7Days: count,\n pollsLast7Days: count,\n /** Comments still up (not deleted, not hidden), like the posts and polls beside them. */\n commentsLast7Days: count,\n }),\n moderation: z.object({\n /** Reports nobody has decided on yet. */\n openReports: count,\n /** The things those open reports are about: posts, polls, comments, products, reviews. */\n reportedItems: count,\n /**\n * Posts, polls, comments, products and reviews hidden by STAFF, not yet\n * restored or removed (0.18.0: a community's own moderators hiding\n * something in their community is theirs, and no longer counted here).\n */\n hiddenItems: count,\n }),\n support: z.object({\n /**\n * Tickets waiting on SUPPORT (status `open`), the same tickets the queue's\n * Open filter lists (0.18.0: it counted the ones waiting on the member too,\n * so the number never matched the list it opens).\n */\n openTickets: count,\n /** Tickets waiting on the MEMBER (status `waiting`, 0.18.0). */\n waitingTickets: count,\n /** Of the open ones, those no agent has picked up. */\n unassignedTickets: count,\n }),\n /** Memberships, plans and money (0.12.0). */\n billing: z.object({\n /** Accounts holding a membership, of any kind. Staff take part without one and are not counted. */\n memberships: count,\n /** Of those, founding members (#1 to #100: the launch waitlist since 0.14.0, the first-100 coupon before). */\n founding: count,\n /** Accounts on Premium or Business now. */\n onPlan: count,\n /** Payments captured in the window, refunded ones included. */\n paymentsLast7Days: count,\n /**\n * What was TAKEN, in paise, GST included, less what was refunded, in\n * Founder Circle or in the Razorpay dashboard (0.18.0: the same\n * paid-less-refunded the payments screens show; it summed the list price\n * and missed dashboard refunds).\n */\n revenueLast7Days: count,\n /** Payments a person must act on, at any age (`staffPaymentSummarySchema.needsAction`). */\n paymentsNeedingAction: count,\n }),\n team: z.object({\n /** People holding at least one staff role. */\n staff: count,\n /**\n * People per role. Someone holding two roles counts once in each. Every\n * role is a key (a record over an enum is exhaustive), zero rather than\n * missing.\n */\n byRole: z.record(platformRoleSchema, count),\n }),\n generatedAt: z.iso.datetime(),\n});\nexport type Dashboard = z.infer<typeof dashboardSchema>;\n"]}
|
|
@@ -20,8 +20,8 @@ import { z } from 'zod';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const discoverQuerySchema: z.ZodObject<{
|
|
22
22
|
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
23
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
24
|
-
q: z.
|
|
23
|
+
cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
24
|
+
q: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
25
25
|
industry: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
26
26
|
agritech: "agritech";
|
|
27
27
|
ai_ml: "ai_ml";
|
|
@@ -72,8 +72,8 @@ export declare const discoverQuerySchema: z.ZodObject<{
|
|
|
72
72
|
profitable: "profitable";
|
|
73
73
|
exited: "exited";
|
|
74
74
|
}>>>, unknown>;
|
|
75
|
-
city: z.
|
|
76
|
-
country: z.
|
|
75
|
+
city: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
76
|
+
country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
export type DiscoverQuery = z.infer<typeof discoverQuerySchema>;
|
|
79
79
|
export type DiscoverQueryInput = z.input<typeof discoverQuerySchema>;
|
|
@@ -83,21 +83,21 @@ export declare const discoverPageSchema: z.ZodObject<{
|
|
|
83
83
|
id: z.ZodString;
|
|
84
84
|
location: z.ZodOptional<z.ZodObject<{
|
|
85
85
|
city: z.ZodString;
|
|
86
|
-
state: z.
|
|
86
|
+
state: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
87
87
|
country: z.ZodString;
|
|
88
88
|
}, z.core.$strip>>;
|
|
89
89
|
displayName: z.ZodString;
|
|
90
|
-
userId: z.ZodString;
|
|
91
90
|
username: z.ZodString;
|
|
91
|
+
userId: z.ZodString;
|
|
92
92
|
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
93
|
-
headline: z.
|
|
93
|
+
headline: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
94
94
|
contribution: z.ZodObject<{
|
|
95
95
|
score: z.ZodNumber;
|
|
96
96
|
helpedCount: z.ZodNumber;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
venture: z.ZodOptional<z.ZodObject<{
|
|
99
99
|
name: z.ZodString;
|
|
100
|
-
tagline: z.
|
|
100
|
+
tagline: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
101
101
|
website: z.ZodOptional<z.ZodURL>;
|
|
102
102
|
industry: z.ZodEnum<{
|
|
103
103
|
agritech: "agritech";
|
|
@@ -243,21 +243,14 @@ export declare const feedImageSchema: z.ZodObject<{
|
|
|
243
243
|
alt: z.ZodOptional<z.ZodString>;
|
|
244
244
|
}, z.core.$strip>;
|
|
245
245
|
export type FeedImage = z.infer<typeof feedImageSchema>;
|
|
246
|
-
export declare const feedVideoSchema: z.ZodObject<{
|
|
247
|
-
kind: z.ZodLiteral<"video">;
|
|
248
|
-
url: z.ZodURL;
|
|
249
|
-
thumbnailUrl: z.ZodURL;
|
|
250
|
-
width: z.ZodNumber;
|
|
251
|
-
height: z.ZodNumber;
|
|
252
|
-
duration: z.ZodNumber;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
export type FeedVideo = z.infer<typeof feedVideoSchema>;
|
|
255
246
|
/**
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
247
|
+
* What a post carries, in the order it was attached. IMAGES ONLY (0.18.0):
|
|
248
|
+
* video is shared as a link in the post text (the user's decision,
|
|
249
|
+
* 2026-09-21), and the uploaded-video shape this used to admit described a
|
|
250
|
+
* server-made poster frame no server makes. `kind` stays, so a stored item
|
|
251
|
+
* says what it is.
|
|
259
252
|
*/
|
|
260
|
-
export declare const feedMediaSchema: z.
|
|
253
|
+
export declare const feedMediaSchema: z.ZodObject<{
|
|
261
254
|
id: z.ZodString;
|
|
262
255
|
url: z.ZodURL;
|
|
263
256
|
width: z.ZodNumber;
|
|
@@ -271,35 +264,8 @@ export declare const feedMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
271
264
|
kind: z.ZodLiteral<"image">;
|
|
272
265
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
273
266
|
alt: z.ZodOptional<z.ZodString>;
|
|
274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<"video">;
|
|
276
|
-
url: z.ZodURL;
|
|
277
|
-
thumbnailUrl: z.ZodURL;
|
|
278
|
-
width: z.ZodNumber;
|
|
279
|
-
height: z.ZodNumber;
|
|
280
|
-
duration: z.ZodNumber;
|
|
281
|
-
}, z.core.$strip>], "kind">;
|
|
282
|
-
export type FeedMedia = z.infer<typeof feedMediaSchema>;
|
|
283
|
-
/**
|
|
284
|
-
* Preview for the first link in a post body. Server-derived at write time and
|
|
285
|
-
* stored, never re-fetched at render: a card that fetches a third-party page
|
|
286
|
-
* per scroll leaks every reader's address to that site and blocks the feed on
|
|
287
|
-
* somebody else's latency.
|
|
288
|
-
*
|
|
289
|
-
* Both URLs take `safeUrlSchema`: the scheme and host rules, WITHOUT the
|
|
290
|
-
* typed-URL cap. `url` came out of a post body, which is already capped as a
|
|
291
|
-
* whole, and `imageUrl` is whatever the remote page advertised; a long CDN URL
|
|
292
|
-
* is ordinary, and one over `LINK_URL_MAX` would otherwise fail the whole feed
|
|
293
|
-
* page it sits on. Neither is ours, so a consumer still treats both as
|
|
294
|
-
* untrusted at render.
|
|
295
|
-
*/
|
|
296
|
-
export declare const linkPreviewSchema: z.ZodObject<{
|
|
297
|
-
url: z.ZodURL;
|
|
298
|
-
title: z.ZodOptional<z.ZodString>;
|
|
299
|
-
description: z.ZodOptional<z.ZodString>;
|
|
300
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
301
267
|
}, z.core.$strip>;
|
|
302
|
-
export type
|
|
268
|
+
export type FeedMedia = z.infer<typeof feedMediaSchema>;
|
|
303
269
|
/**
|
|
304
270
|
* What THIS viewer has done to this item, computed per request.
|
|
305
271
|
*
|
|
@@ -373,7 +339,7 @@ export declare const repostedSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
373
339
|
headline: z.ZodOptional<z.ZodString>;
|
|
374
340
|
}, z.core.$strip>;
|
|
375
341
|
text: z.ZodString;
|
|
376
|
-
media: z.ZodOptional<z.
|
|
342
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
377
343
|
id: z.ZodString;
|
|
378
344
|
url: z.ZodURL;
|
|
379
345
|
width: z.ZodNumber;
|
|
@@ -387,14 +353,7 @@ export declare const repostedSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
387
353
|
kind: z.ZodLiteral<"image">;
|
|
388
354
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
389
355
|
alt: z.ZodOptional<z.ZodString>;
|
|
390
|
-
}, z.core.$strip
|
|
391
|
-
kind: z.ZodLiteral<"video">;
|
|
392
|
-
url: z.ZodURL;
|
|
393
|
-
thumbnailUrl: z.ZodURL;
|
|
394
|
-
width: z.ZodNumber;
|
|
395
|
-
height: z.ZodNumber;
|
|
396
|
-
duration: z.ZodNumber;
|
|
397
|
-
}, z.core.$strip>], "kind">>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
398
357
|
product: z.ZodOptional<z.ZodObject<{
|
|
399
358
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
400
359
|
slug: z.ZodString;
|
|
@@ -433,7 +392,7 @@ export declare const feedPostSchema: z.ZodObject<{
|
|
|
433
392
|
headline: z.ZodOptional<z.ZodString>;
|
|
434
393
|
}, z.core.$strip>;
|
|
435
394
|
text: z.ZodString;
|
|
436
|
-
media: z.ZodArray<z.
|
|
395
|
+
media: z.ZodArray<z.ZodObject<{
|
|
437
396
|
id: z.ZodString;
|
|
438
397
|
url: z.ZodURL;
|
|
439
398
|
width: z.ZodNumber;
|
|
@@ -447,19 +406,6 @@ export declare const feedPostSchema: z.ZodObject<{
|
|
|
447
406
|
kind: z.ZodLiteral<"image">;
|
|
448
407
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
449
408
|
alt: z.ZodOptional<z.ZodString>;
|
|
450
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
451
|
-
kind: z.ZodLiteral<"video">;
|
|
452
|
-
url: z.ZodURL;
|
|
453
|
-
thumbnailUrl: z.ZodURL;
|
|
454
|
-
width: z.ZodNumber;
|
|
455
|
-
height: z.ZodNumber;
|
|
456
|
-
duration: z.ZodNumber;
|
|
457
|
-
}, z.core.$strip>], "kind">>;
|
|
458
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
459
|
-
url: z.ZodURL;
|
|
460
|
-
title: z.ZodOptional<z.ZodString>;
|
|
461
|
-
description: z.ZodOptional<z.ZodString>;
|
|
462
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
463
409
|
}, z.core.$strip>>;
|
|
464
410
|
topics: z.ZodArray<z.ZodEnum<{
|
|
465
411
|
ai_ml: "ai_ml";
|
|
@@ -573,7 +519,7 @@ export declare const feedPostSchema: z.ZodObject<{
|
|
|
573
519
|
headline: z.ZodOptional<z.ZodString>;
|
|
574
520
|
}, z.core.$strip>;
|
|
575
521
|
text: z.ZodString;
|
|
576
|
-
media: z.ZodOptional<z.
|
|
522
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
577
523
|
id: z.ZodString;
|
|
578
524
|
url: z.ZodURL;
|
|
579
525
|
width: z.ZodNumber;
|
|
@@ -587,14 +533,7 @@ export declare const feedPostSchema: z.ZodObject<{
|
|
|
587
533
|
kind: z.ZodLiteral<"image">;
|
|
588
534
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
589
535
|
alt: z.ZodOptional<z.ZodString>;
|
|
590
|
-
}, z.core.$strip
|
|
591
|
-
kind: z.ZodLiteral<"video">;
|
|
592
|
-
url: z.ZodURL;
|
|
593
|
-
thumbnailUrl: z.ZodURL;
|
|
594
|
-
width: z.ZodNumber;
|
|
595
|
-
height: z.ZodNumber;
|
|
596
|
-
duration: z.ZodNumber;
|
|
597
|
-
}, z.core.$strip>], "kind">>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
598
537
|
product: z.ZodOptional<z.ZodObject<{
|
|
599
538
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
600
539
|
slug: z.ZodString;
|
|
@@ -660,8 +599,8 @@ export type PollOption = z.infer<typeof pollOptionSchema>;
|
|
|
660
599
|
* own records keyed by (poll, voter) and a post has nothing equivalent.
|
|
661
600
|
*
|
|
662
601
|
* Polls are not editable. Changing a question or an option after a vote has
|
|
663
|
-
* been cast silently re-purposes that vote.
|
|
664
|
-
* is
|
|
602
|
+
* been cast silently re-purposes that vote. A poll closes at its `closesAt`;
|
|
603
|
+
* there is no closing it early.
|
|
665
604
|
*/
|
|
666
605
|
export declare const feedPollSchema: z.ZodObject<{
|
|
667
606
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -831,7 +770,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
831
770
|
headline: z.ZodOptional<z.ZodString>;
|
|
832
771
|
}, z.core.$strip>;
|
|
833
772
|
text: z.ZodString;
|
|
834
|
-
media: z.ZodArray<z.
|
|
773
|
+
media: z.ZodArray<z.ZodObject<{
|
|
835
774
|
id: z.ZodString;
|
|
836
775
|
url: z.ZodURL;
|
|
837
776
|
width: z.ZodNumber;
|
|
@@ -845,19 +784,6 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
845
784
|
kind: z.ZodLiteral<"image">;
|
|
846
785
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
847
786
|
alt: z.ZodOptional<z.ZodString>;
|
|
848
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
849
|
-
kind: z.ZodLiteral<"video">;
|
|
850
|
-
url: z.ZodURL;
|
|
851
|
-
thumbnailUrl: z.ZodURL;
|
|
852
|
-
width: z.ZodNumber;
|
|
853
|
-
height: z.ZodNumber;
|
|
854
|
-
duration: z.ZodNumber;
|
|
855
|
-
}, z.core.$strip>], "kind">>;
|
|
856
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
857
|
-
url: z.ZodURL;
|
|
858
|
-
title: z.ZodOptional<z.ZodString>;
|
|
859
|
-
description: z.ZodOptional<z.ZodString>;
|
|
860
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
861
787
|
}, z.core.$strip>>;
|
|
862
788
|
topics: z.ZodArray<z.ZodEnum<{
|
|
863
789
|
ai_ml: "ai_ml";
|
|
@@ -971,7 +897,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
971
897
|
headline: z.ZodOptional<z.ZodString>;
|
|
972
898
|
}, z.core.$strip>;
|
|
973
899
|
text: z.ZodString;
|
|
974
|
-
media: z.ZodOptional<z.
|
|
900
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
975
901
|
id: z.ZodString;
|
|
976
902
|
url: z.ZodURL;
|
|
977
903
|
width: z.ZodNumber;
|
|
@@ -985,14 +911,7 @@ export declare const feedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
985
911
|
kind: z.ZodLiteral<"image">;
|
|
986
912
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
987
913
|
alt: z.ZodOptional<z.ZodString>;
|
|
988
|
-
}, z.core.$strip
|
|
989
|
-
kind: z.ZodLiteral<"video">;
|
|
990
|
-
url: z.ZodURL;
|
|
991
|
-
thumbnailUrl: z.ZodURL;
|
|
992
|
-
width: z.ZodNumber;
|
|
993
|
-
height: z.ZodNumber;
|
|
994
|
-
duration: z.ZodNumber;
|
|
995
|
-
}, z.core.$strip>], "kind">>;
|
|
914
|
+
}, z.core.$strip>>;
|
|
996
915
|
product: z.ZodOptional<z.ZodObject<{
|
|
997
916
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
998
917
|
slug: z.ZodString;
|
|
@@ -1259,7 +1178,7 @@ export type FeedComment = z.infer<typeof feedCommentSchema>;
|
|
|
1259
1178
|
*/
|
|
1260
1179
|
export declare const feedQuerySchema: z.ZodObject<{
|
|
1261
1180
|
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1262
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1263
1182
|
sort: z.ZodPreprocess<z.ZodDefault<z.ZodEnum<{
|
|
1264
1183
|
new: "new";
|
|
1265
1184
|
top: "top";
|
|
@@ -1271,7 +1190,7 @@ export type FeedQueryInput = z.input<typeof feedQuerySchema>;
|
|
|
1271
1190
|
/** `GET /api/v1/feed/:contentKind/:contentId/comments`. */
|
|
1272
1191
|
export declare const commentsQuerySchema: z.ZodObject<{
|
|
1273
1192
|
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1274
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1275
1194
|
parentCommentId: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>, unknown>;
|
|
1276
1195
|
}, z.core.$strip>;
|
|
1277
1196
|
export type CommentsQuery = z.infer<typeof commentsQuerySchema>;
|
|
@@ -1283,7 +1202,7 @@ export type CommentsQueryInput = z.input<typeof commentsQuerySchema>;
|
|
|
1283
1202
|
*/
|
|
1284
1203
|
export declare const reactionsQuerySchema: z.ZodObject<{
|
|
1285
1204
|
limit: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1286
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1287
1206
|
type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
1288
1207
|
support: "support";
|
|
1289
1208
|
like: "like";
|
|
@@ -1363,7 +1282,7 @@ export declare const feedPageSchema: z.ZodObject<{
|
|
|
1363
1282
|
headline: z.ZodOptional<z.ZodString>;
|
|
1364
1283
|
}, z.core.$strip>;
|
|
1365
1284
|
text: z.ZodString;
|
|
1366
|
-
media: z.ZodArray<z.
|
|
1285
|
+
media: z.ZodArray<z.ZodObject<{
|
|
1367
1286
|
id: z.ZodString;
|
|
1368
1287
|
url: z.ZodURL;
|
|
1369
1288
|
width: z.ZodNumber;
|
|
@@ -1377,19 +1296,6 @@ export declare const feedPageSchema: z.ZodObject<{
|
|
|
1377
1296
|
kind: z.ZodLiteral<"image">;
|
|
1378
1297
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
1379
1298
|
alt: z.ZodOptional<z.ZodString>;
|
|
1380
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1381
|
-
kind: z.ZodLiteral<"video">;
|
|
1382
|
-
url: z.ZodURL;
|
|
1383
|
-
thumbnailUrl: z.ZodURL;
|
|
1384
|
-
width: z.ZodNumber;
|
|
1385
|
-
height: z.ZodNumber;
|
|
1386
|
-
duration: z.ZodNumber;
|
|
1387
|
-
}, z.core.$strip>], "kind">>;
|
|
1388
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
1389
|
-
url: z.ZodURL;
|
|
1390
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1391
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1392
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
1393
1299
|
}, z.core.$strip>>;
|
|
1394
1300
|
topics: z.ZodArray<z.ZodEnum<{
|
|
1395
1301
|
ai_ml: "ai_ml";
|
|
@@ -1503,7 +1409,7 @@ export declare const feedPageSchema: z.ZodObject<{
|
|
|
1503
1409
|
headline: z.ZodOptional<z.ZodString>;
|
|
1504
1410
|
}, z.core.$strip>;
|
|
1505
1411
|
text: z.ZodString;
|
|
1506
|
-
media: z.ZodOptional<z.
|
|
1412
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1507
1413
|
id: z.ZodString;
|
|
1508
1414
|
url: z.ZodURL;
|
|
1509
1415
|
width: z.ZodNumber;
|
|
@@ -1517,14 +1423,7 @@ export declare const feedPageSchema: z.ZodObject<{
|
|
|
1517
1423
|
kind: z.ZodLiteral<"image">;
|
|
1518
1424
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
1519
1425
|
alt: z.ZodOptional<z.ZodString>;
|
|
1520
|
-
}, z.core.$strip
|
|
1521
|
-
kind: z.ZodLiteral<"video">;
|
|
1522
|
-
url: z.ZodURL;
|
|
1523
|
-
thumbnailUrl: z.ZodURL;
|
|
1524
|
-
width: z.ZodNumber;
|
|
1525
|
-
height: z.ZodNumber;
|
|
1526
|
-
duration: z.ZodNumber;
|
|
1527
|
-
}, z.core.$strip>], "kind">>;
|
|
1426
|
+
}, z.core.$strip>>;
|
|
1528
1427
|
product: z.ZodOptional<z.ZodObject<{
|
|
1529
1428
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1530
1429
|
slug: z.ZodString;
|
|
@@ -1742,7 +1641,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
|
|
|
1742
1641
|
headline: z.ZodOptional<z.ZodString>;
|
|
1743
1642
|
}, z.core.$strip>;
|
|
1744
1643
|
text: z.ZodString;
|
|
1745
|
-
media: z.ZodArray<z.
|
|
1644
|
+
media: z.ZodArray<z.ZodObject<{
|
|
1746
1645
|
id: z.ZodString;
|
|
1747
1646
|
url: z.ZodURL;
|
|
1748
1647
|
width: z.ZodNumber;
|
|
@@ -1756,19 +1655,6 @@ export declare const pinnedItemsSchema: z.ZodObject<{
|
|
|
1756
1655
|
kind: z.ZodLiteral<"image">;
|
|
1757
1656
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
1758
1657
|
alt: z.ZodOptional<z.ZodString>;
|
|
1759
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1760
|
-
kind: z.ZodLiteral<"video">;
|
|
1761
|
-
url: z.ZodURL;
|
|
1762
|
-
thumbnailUrl: z.ZodURL;
|
|
1763
|
-
width: z.ZodNumber;
|
|
1764
|
-
height: z.ZodNumber;
|
|
1765
|
-
duration: z.ZodNumber;
|
|
1766
|
-
}, z.core.$strip>], "kind">>;
|
|
1767
|
-
linkPreview: z.ZodOptional<z.ZodObject<{
|
|
1768
|
-
url: z.ZodURL;
|
|
1769
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1770
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1771
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
1772
1658
|
}, z.core.$strip>>;
|
|
1773
1659
|
topics: z.ZodArray<z.ZodEnum<{
|
|
1774
1660
|
ai_ml: "ai_ml";
|
|
@@ -1882,7 +1768,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
|
|
|
1882
1768
|
headline: z.ZodOptional<z.ZodString>;
|
|
1883
1769
|
}, z.core.$strip>;
|
|
1884
1770
|
text: z.ZodString;
|
|
1885
|
-
media: z.ZodOptional<z.
|
|
1771
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1886
1772
|
id: z.ZodString;
|
|
1887
1773
|
url: z.ZodURL;
|
|
1888
1774
|
width: z.ZodNumber;
|
|
@@ -1896,14 +1782,7 @@ export declare const pinnedItemsSchema: z.ZodObject<{
|
|
|
1896
1782
|
kind: z.ZodLiteral<"image">;
|
|
1897
1783
|
thumbnailUrl: z.ZodOptional<z.ZodURL>;
|
|
1898
1784
|
alt: z.ZodOptional<z.ZodString>;
|
|
1899
|
-
}, z.core.$strip
|
|
1900
|
-
kind: z.ZodLiteral<"video">;
|
|
1901
|
-
url: z.ZodURL;
|
|
1902
|
-
thumbnailUrl: z.ZodURL;
|
|
1903
|
-
width: z.ZodNumber;
|
|
1904
|
-
height: z.ZodNumber;
|
|
1905
|
-
duration: z.ZodNumber;
|
|
1906
|
-
}, z.core.$strip>], "kind">>;
|
|
1785
|
+
}, z.core.$strip>>;
|
|
1907
1786
|
product: z.ZodOptional<z.ZodObject<{
|
|
1908
1787
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1909
1788
|
slug: z.ZodString;
|
|
@@ -2348,9 +2227,18 @@ export declare const attachedMediaSchema: z.ZodObject<{
|
|
|
2348
2227
|
}, z.core.$strip>;
|
|
2349
2228
|
export type AttachedMedia = z.infer<typeof attachedMediaSchema>;
|
|
2350
2229
|
/**
|
|
2351
|
-
* A post must carry something
|
|
2352
|
-
*
|
|
2230
|
+
* A post must carry something: text, media, or (a repost) the item it
|
|
2231
|
+
* reposts. ONE rule for writing and editing (0.18.0): an edit may clear the
|
|
2232
|
+
* text of a post that keeps its photos or its repost, and only a post that
|
|
2233
|
+
* would be left with nothing is refused (`postEmpty`, on `text`). The create
|
|
2234
|
+
* body checks it here; an edit can only be checked where the stored post is
|
|
2235
|
+
* known, so the server applies this same function there.
|
|
2353
2236
|
*/
|
|
2237
|
+
export declare function postHasContent(post: {
|
|
2238
|
+
text?: string | null;
|
|
2239
|
+
mediaCount: number;
|
|
2240
|
+
isRepost: boolean;
|
|
2241
|
+
}): boolean;
|
|
2354
2242
|
export declare const createPostBodySchema: z.ZodObject<{
|
|
2355
2243
|
communityId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
2356
2244
|
productId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -2439,8 +2327,12 @@ export declare const createPostBodySchema: z.ZodObject<{
|
|
|
2439
2327
|
}>>>;
|
|
2440
2328
|
}, z.core.$strip>;
|
|
2441
2329
|
export type CreatePostBody = z.infer<typeof createPostBodySchema>;
|
|
2442
|
-
/**
|
|
2443
|
-
*
|
|
2330
|
+
/**
|
|
2331
|
+
* Only the text is editable. Changing media after the fact makes every
|
|
2332
|
+
* earlier reply look like a reply to something else. Empty text is allowed
|
|
2333
|
+
* here and refused by the server only when the post would carry nothing
|
|
2334
|
+
* (`postHasContent`): a photo's caption can be cleared, a text post's cannot.
|
|
2335
|
+
*/
|
|
2444
2336
|
export declare const updatePostBodySchema: z.ZodObject<{
|
|
2445
2337
|
text: z.ZodString;
|
|
2446
2338
|
}, z.core.$strip>;
|
|
@@ -2534,8 +2426,11 @@ export declare const createPollBodySchema: z.ZodObject<{
|
|
|
2534
2426
|
}>>>;
|
|
2535
2427
|
}, z.core.$strip>;
|
|
2536
2428
|
export type CreatePollBody = z.infer<typeof createPollBodySchema>;
|
|
2537
|
-
/**
|
|
2538
|
-
*
|
|
2429
|
+
/**
|
|
2430
|
+
* Cast or change a vote. The server upserts on (poll, voter), so voting twice
|
|
2431
|
+
* replaces rather than doubles. Each option once (0.18.0: `[0, 0]` was taken
|
|
2432
|
+
* and silently cut to `[0]`).
|
|
2433
|
+
*/
|
|
2539
2434
|
export declare const castVoteBodySchema: z.ZodObject<{
|
|
2540
2435
|
optionIndices: z.ZodArray<z.ZodNumber>;
|
|
2541
2436
|
}, z.core.$strip>;
|
|
@@ -2622,6 +2517,13 @@ export declare const setReactionResponseSchema: z.ZodObject<{
|
|
|
2622
2517
|
}> & z.core.$partial, z.ZodNumber>;
|
|
2623
2518
|
}, z.core.$strip>;
|
|
2624
2519
|
export type SetReactionResponse = z.infer<typeof setReactionResponseSchema>;
|
|
2520
|
+
/**
|
|
2521
|
+
* Where a report stands (0.18.0: named here; the backend's model kept its own
|
|
2522
|
+
* list, and the permission rule that only an open report is decided checked a
|
|
2523
|
+
* plain string). Staff-only on the wire. Stored: append only.
|
|
2524
|
+
*/
|
|
2525
|
+
export declare const REPORT_STATUS_VALUES: readonly ["open", "actioned", "dismissed"];
|
|
2526
|
+
export type ReportStatus = (typeof REPORT_STATUS_VALUES)[number];
|
|
2625
2527
|
/**
|
|
2626
2528
|
* Why a member reported something.
|
|
2627
2529
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/domains/feed/feed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/domains/feed/feed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,iEAAiE;AACjE,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAClD,eAAe;AACf,eAAO,MAAM,oBAAoB,QAAc,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,QAAiB,CAAC;AAI7C;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,2BAA4B,CAAC;AAC7D,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,O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