@framebreak/types 0.1.8 → 0.1.10
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/index.d.ts +120 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,17 +24,32 @@ interface Comment {
|
|
|
24
24
|
isLiked: boolean;
|
|
25
25
|
replies?: Comment[];
|
|
26
26
|
}
|
|
27
|
+
interface CommunityPostLink {
|
|
28
|
+
url: string;
|
|
29
|
+
title: string | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
image: string | null;
|
|
32
|
+
favicon: string | null;
|
|
33
|
+
siteName: string | null;
|
|
34
|
+
}
|
|
35
|
+
interface Reaction {
|
|
36
|
+
type: string;
|
|
37
|
+
count: number;
|
|
38
|
+
isReacted: boolean;
|
|
39
|
+
}
|
|
27
40
|
interface CommunityComment {
|
|
28
41
|
id: string;
|
|
29
42
|
communityPostId: string;
|
|
30
43
|
parentId: string | null;
|
|
31
44
|
content: string;
|
|
32
45
|
images: string[];
|
|
46
|
+
link: CommunityPostLink | null;
|
|
33
47
|
createdAt: Date;
|
|
34
48
|
updatedAt: Date;
|
|
35
49
|
author: CommentAuthor;
|
|
36
50
|
likesCount: number;
|
|
37
51
|
isLiked: boolean;
|
|
52
|
+
reactions: Reaction[];
|
|
38
53
|
replies?: CommunityComment[];
|
|
39
54
|
}
|
|
40
55
|
|
|
@@ -1252,6 +1267,11 @@ declare const v1Router: {
|
|
|
1252
1267
|
likesCount: number;
|
|
1253
1268
|
commentsCount: number;
|
|
1254
1269
|
isLiked: boolean;
|
|
1270
|
+
reactions: {
|
|
1271
|
+
type: string;
|
|
1272
|
+
count: number;
|
|
1273
|
+
isReacted: boolean;
|
|
1274
|
+
}[];
|
|
1255
1275
|
};
|
|
1256
1276
|
replyAvatars: string[];
|
|
1257
1277
|
}[];
|
|
@@ -1286,6 +1306,11 @@ declare const v1Router: {
|
|
|
1286
1306
|
likesCount: number;
|
|
1287
1307
|
commentsCount: number;
|
|
1288
1308
|
isLiked: boolean;
|
|
1309
|
+
reactions: {
|
|
1310
|
+
type: string;
|
|
1311
|
+
count: number;
|
|
1312
|
+
isReacted: boolean;
|
|
1313
|
+
}[];
|
|
1289
1314
|
};
|
|
1290
1315
|
replyAvatars: string[];
|
|
1291
1316
|
}[];
|
|
@@ -1350,6 +1375,11 @@ declare const v1Router: {
|
|
|
1350
1375
|
likesCount: number;
|
|
1351
1376
|
commentsCount: number;
|
|
1352
1377
|
isLiked: boolean;
|
|
1378
|
+
reactions: {
|
|
1379
|
+
type: string;
|
|
1380
|
+
count: number;
|
|
1381
|
+
isReacted: boolean;
|
|
1382
|
+
}[];
|
|
1353
1383
|
};
|
|
1354
1384
|
};
|
|
1355
1385
|
}, {
|
|
@@ -1379,6 +1409,11 @@ declare const v1Router: {
|
|
|
1379
1409
|
likesCount: number;
|
|
1380
1410
|
commentsCount: number;
|
|
1381
1411
|
isLiked: boolean;
|
|
1412
|
+
reactions: {
|
|
1413
|
+
type: string;
|
|
1414
|
+
count: number;
|
|
1415
|
+
isReacted: boolean;
|
|
1416
|
+
}[];
|
|
1382
1417
|
};
|
|
1383
1418
|
};
|
|
1384
1419
|
}>, Record<never, never>, Record<never, never>>;
|
|
@@ -1440,6 +1475,7 @@ declare const v1Router: {
|
|
|
1440
1475
|
likesCount: number;
|
|
1441
1476
|
commentsCount: number;
|
|
1442
1477
|
isLiked: boolean;
|
|
1478
|
+
reactions: never[];
|
|
1443
1479
|
};
|
|
1444
1480
|
replyAvatars: never[];
|
|
1445
1481
|
};
|
|
@@ -1470,6 +1506,7 @@ declare const v1Router: {
|
|
|
1470
1506
|
likesCount: number;
|
|
1471
1507
|
commentsCount: number;
|
|
1472
1508
|
isLiked: boolean;
|
|
1509
|
+
reactions: never[];
|
|
1473
1510
|
};
|
|
1474
1511
|
replyAvatars: never[];
|
|
1475
1512
|
};
|
|
@@ -1749,6 +1786,47 @@ declare const v1Router: {
|
|
|
1749
1786
|
};
|
|
1750
1787
|
}>, Record<never, never>, Record<never, never>>;
|
|
1751
1788
|
};
|
|
1789
|
+
reactions: {
|
|
1790
|
+
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1791
|
+
session: {
|
|
1792
|
+
id: string;
|
|
1793
|
+
createdAt: Date;
|
|
1794
|
+
updatedAt: Date;
|
|
1795
|
+
userId: string;
|
|
1796
|
+
expiresAt: Date;
|
|
1797
|
+
token: string;
|
|
1798
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1799
|
+
userAgent?: string | null | undefined | undefined;
|
|
1800
|
+
};
|
|
1801
|
+
user: {
|
|
1802
|
+
id: string;
|
|
1803
|
+
createdAt: Date;
|
|
1804
|
+
updatedAt: Date;
|
|
1805
|
+
email: string;
|
|
1806
|
+
emailVerified: boolean;
|
|
1807
|
+
name: string;
|
|
1808
|
+
image?: string | null | undefined | undefined;
|
|
1809
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1810
|
+
linkedinVerified: boolean | null | undefined;
|
|
1811
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1812
|
+
linkedinId?: string | null | undefined;
|
|
1813
|
+
linkedinName?: string | null | undefined;
|
|
1814
|
+
username?: string | null | undefined;
|
|
1815
|
+
displayUsername?: string | null | undefined;
|
|
1816
|
+
};
|
|
1817
|
+
}>, zod.ZodObject<{
|
|
1818
|
+
communityPostId: zod.ZodString;
|
|
1819
|
+
type: zod.ZodString;
|
|
1820
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1821
|
+
data: {
|
|
1822
|
+
reactions: Reaction[];
|
|
1823
|
+
};
|
|
1824
|
+
}, {
|
|
1825
|
+
data: {
|
|
1826
|
+
reactions: Reaction[];
|
|
1827
|
+
};
|
|
1828
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
1829
|
+
};
|
|
1752
1830
|
comments: {
|
|
1753
1831
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1754
1832
|
session: {
|
|
@@ -1818,6 +1896,7 @@ declare const v1Router: {
|
|
|
1818
1896
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
1819
1897
|
content: zod.ZodString;
|
|
1820
1898
|
imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
1899
|
+
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
1821
1900
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1822
1901
|
data: CommunityComment;
|
|
1823
1902
|
}, {
|
|
@@ -1974,6 +2053,47 @@ declare const v1Router: {
|
|
|
1974
2053
|
};
|
|
1975
2054
|
}>, Record<never, never>, Record<never, never>>;
|
|
1976
2055
|
};
|
|
2056
|
+
reactions: {
|
|
2057
|
+
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2058
|
+
session: {
|
|
2059
|
+
id: string;
|
|
2060
|
+
createdAt: Date;
|
|
2061
|
+
updatedAt: Date;
|
|
2062
|
+
userId: string;
|
|
2063
|
+
expiresAt: Date;
|
|
2064
|
+
token: string;
|
|
2065
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2066
|
+
userAgent?: string | null | undefined | undefined;
|
|
2067
|
+
};
|
|
2068
|
+
user: {
|
|
2069
|
+
id: string;
|
|
2070
|
+
createdAt: Date;
|
|
2071
|
+
updatedAt: Date;
|
|
2072
|
+
email: string;
|
|
2073
|
+
emailVerified: boolean;
|
|
2074
|
+
name: string;
|
|
2075
|
+
image?: string | null | undefined | undefined;
|
|
2076
|
+
onboardingCompleted: boolean | null | undefined;
|
|
2077
|
+
linkedinVerified: boolean | null | undefined;
|
|
2078
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
2079
|
+
linkedinId?: string | null | undefined;
|
|
2080
|
+
linkedinName?: string | null | undefined;
|
|
2081
|
+
username?: string | null | undefined;
|
|
2082
|
+
displayUsername?: string | null | undefined;
|
|
2083
|
+
};
|
|
2084
|
+
}>, zod.ZodObject<{
|
|
2085
|
+
commentId: zod.ZodString;
|
|
2086
|
+
type: zod.ZodString;
|
|
2087
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
2088
|
+
data: {
|
|
2089
|
+
reactions: Reaction[];
|
|
2090
|
+
};
|
|
2091
|
+
}, {
|
|
2092
|
+
data: {
|
|
2093
|
+
reactions: Reaction[];
|
|
2094
|
+
};
|
|
2095
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2096
|
+
};
|
|
1977
2097
|
};
|
|
1978
2098
|
};
|
|
1979
2099
|
};
|